sse.md (avx512f_fixupimm<mode>_maskz): Extend to support EVEX's RC.
[gcc.git] / gcc / ChangeLog
1 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Sergey Lega <sergey.s.lega@intel.com>
4 Anna Tikhonova <anna.tikhonova@intel.com>
5 Ilya Tocar <ilya.tocar@intel.com>
6 Andrey Turetskiy <andrey.turetskiy@intel.com>
7 Ilya Verbin <ilya.verbin@intel.com>
8 Kirill Yukhin <kirill.yukhin@intel.com>
9 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10
11 * config/i386/sse.md (avx512f_fixupimm<mode>_maskz): Extend to support
12 EVEX's RC.
13 (avx512f_sfixupimm<mode>_maskz): Ditto.
14 * config/i386/subst.md (round_saeonly_expand_name): New.
15 (round_saeonly_expand_nimm_predicate): Ditto.
16 (round_saeonly_expand_operand6): Ditto.
17 (round_saeonly_expand): Ditto.
18
19 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
20 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21 Sergey Lega <sergey.s.lega@intel.com>
22 Anna Tikhonova <anna.tikhonova@intel.com>
23 Ilya Tocar <ilya.tocar@intel.com>
24 Andrey Turetskiy <andrey.turetskiy@intel.com>
25 Ilya Verbin <ilya.verbin@intel.com>
26 Kirill Yukhin <kirill.yukhin@intel.com>
27 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
28
29 * config/i386/sse.md (avx512f_fmadd_<mode>_maskz): Extend to support
30 EVEX's RC.
31 (avx512f_fmaddsub_<mode>_maskz): Ditto.
32 * config/i386/subst.md (round_expand_name): New.
33 (round_expand_nimm_predicate): Ditto.
34 (round_expand_operand): Ditto.
35 (round_expand): Ditto.
36
37 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
38 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
39 Sergey Lega <sergey.s.lega@intel.com>
40 Anna Tikhonova <anna.tikhonova@intel.com>
41 Ilya Tocar <ilya.tocar@intel.com>
42 Andrey Turetskiy <andrey.turetskiy@intel.com>
43 Ilya Verbin <ilya.verbin@intel.com>
44 Kirill Yukhin <kirill.yukhin@intel.com>
45 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
46
47 * config/i386/sse.md (<code><mode>3<mask_name>): Extend to support
48 EVEX's SAE mode.
49 (*<code><mode>3_finite<mask_name>): Ditto.
50 (*<code><mode>3<mask_name>): Ditto.
51 (avx512f_cmp<mode>3<mask_scalar_merge_name>): Ditto.
52 (avx512f_vmcmp<mode>3): Ditto.
53 (avx512f_vmcmp<mode>3_mask): Ditto.
54 (<sse>_comi): Ditto.
55 (<sse>_ucomi): Ditto.
56 (sse_cvttss2si): Ditto.
57 (sse_cvttss2siq): Ditto.
58 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
59 (avx512f_vcvttss2usi): Ditto.
60 (avx512f_vcvttss2usiq): Ditto.
61 (avx512f_vcvttsd2usi): Ditto.
62 (avx512f_vcvttsd2usiq): Ditto.
63 (sse2_cvttsd2si): Ditto.
64 (sse2_cvttsd2siq): Ditto.
65 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
66 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
67 (avx512f_getexp<mode><mask_name>): Ditto.
68 (avx512f_fixupimm<mode><sd_maskz_name>): Ditto.
69 (avx512f_fixupimm<mode>_mask): Ditto.
70 (avx512f_sfixupimm<mode><sd_maskz_name>): Ditto.
71 (avx512f_sfixupimm<mode>_mask): Ditto.
72 (avx512f_rndscale<mode><mask_name>): Ditto.
73 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
74 (avx512f_getmant<mode><mask_name>): Ditto.
75 * config/i386/subst.md (round_saeonly_name): New.
76 (round_saeonly_mask_operand2): Ditto.
77 (round_saeonly_mask_operand3): Ditto.
78 (round_saeonly_mask_scalar_operand3): Ditto.
79 (round_saeonly_mask_scalar_operand4): Ditto.
80 (round_saeonly_mask_scalar_merge_operand4): Ditto.
81 (round_saeonly_sd_mask_operand5): Ditto.
82 (round_saeonly_op2): Ditto.
83 (round_saeonly_op4): Ditto.
84 (round_saeonly_op5): Ditto.
85 (round_saeonly_op6): Ditto.
86 (round_saeonly_mask_op2): Ditto.
87 (round_saeonly_mask_op3): Ditto.
88 (round_saeonly_mask_scalar_op3): Ditto.
89 (round_saeonly_mask_scalar_op4): Ditto.
90 (round_saeonly_mask_scalar_merge_op4): Ditto.
91 (round_saeonly_sd_mask_op5): Ditto.
92 (round_saeonly_constraint): Ditto.
93 (round_saeonly_constraint2): Ditto.
94 (round_saeonly_nimm_predicate): Ditto.
95 (round_saeonly_mode512bit_condition): Ditto.
96 (round_saeonly): Ditto.
97
98 2013-12-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
99 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
100 Sergey Lega <sergey.s.lega@intel.com>
101 Anna Tikhonova <anna.tikhonova@intel.com>
102 Ilya Tocar <ilya.tocar@intel.com>
103 Andrey Turetskiy <andrey.turetskiy@intel.com>
104 Ilya Verbin <ilya.verbin@intel.com>
105 Kirill Yukhin <kirill.yukhin@intel.com>
106 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
107
108 * config/i386/i386.c (ix86_print_operand): Print EVEX's RC modifiers.
109 * config/i386/i386.md (define_constants): Define EVEx's RC constants.
110 * gcc/config/i386/sse.md (<plusminus_insn><mode>3<mask_name>): Extend
111 to support EVEX's rounding control.
112 (*<plusminus_insn><mode>3<mask_name>): Ditto.
113 (mul<mode>3<mask_name>): Ditto.
114 (*mul<mode>3<mask_name>): Ditto.
115 (<sse>_div<mode>3<mask_name>): Ditto.
116 (<sse>_sqrt<mode>2<mask_name>): Ditto.
117 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>): Ditto.
118 (avx512f_fmadd_<mode>_mask): Ditto.
119 (avx512f_fmadd_<mode>_mask3): Ditto.
120 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>): Ditto.
121 (avx512f_fmsub_<mode>_mask): Ditto.
122 (avx512f_fmsub_<mode>_mask3): Ditto.
123 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>): Ditto.
124 (avx512f_fnmadd_<mode>_mask): Ditto.
125 (avx512f_fnmadd_<mode>_mask3): Ditto.
126 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>): Ditto.
127 (avx512f_fnmsub_<mode>_mask): Ditto.
128 (avx512f_fnmsub_<mode>_mask3): Ditto.
129 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name>): Ditto.
130 (avx512f_fmaddsub_<mode>_mask): Ditto.
131 (avx512f_fmaddsub_<mode>_mask3): Ditto.
132 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name>): Ditto.
133 (avx512f_fmsubadd_<mode>_mask): Ditto.
134 (avx512f_fmsubadd_<mode>_mask3): Ditto.
135 (fmai_vmfmadd_<mode>): Ditto.
136 (*fmai_fmadd_<mode>): Ditto.
137 (*fmai_fmsub_<mode>): Ditto.
138 (*fmai_fnmadd_<mode>): Ditto.
139 (*fmai_fnmsub_<mode>): Ditto.
140 (sse_cvtsi2ss): Ditto.
141 (sse_cvtsi2ssq): Ditto.
142 (sse_cvtss2si): Ditto.
143 (sse_cvtss2siq): Ditto.
144 (cvtusi2<ssescalarmodesuffix>32): Ditto.
145 (cvtusi2<ssescalarmodesuffix>64): Ditto.
146 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
147 (ufloatv16siv16sf2<mask_name>): Ditto.
148 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
149 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
150 (sse2_cvtsi2sdq): Ditto.
151 (avx512f_vcvtss2usi): Ditto.
152 (avx512f_vcvtss2usiq): Ditto.
153 (avx512f_vcvtsd2usi): Ditto.
154 (avx512f_vcvtsd2usiq): Ditto.
155 (sse2_cvtsd2si): Ditto.
156 (sse2_cvtsd2siq): Ditto.
157 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
158 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
159 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
160 (avx512f_scalef<mode><mask_name>): Ditto.
161 (<code><mode>3<mask_name>): Ditto.
162 (*avx2_<code><mode>3<mask_name>): Ditto.
163 (avx512er_exp2<mode><mask_name): Ditto.
164 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
165 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
166 (avx512f_fmadd_<mode>_maskz): New.
167 * config/i386/subst.md (SUBST_A): New.
168 (round_name): Ditto.
169 (round_mask_operand2): Ditto.
170 (round_mask_operand3): Ditto.
171 (round_mask_scalar_operand3): Ditto.
172 (round_sd_mask_operand4): Ditto.
173 (round_op2): Ditto.
174 (round_op3): Ditto.
175 (round_op4): Ditto.
176 (round_op5): Ditto.
177 (round_op6): Ditto.
178 (round_mask_op2): Ditto.
179 (round_mask_op3): Ditto.
180 (round_mask_scalar_op3): Ditto.
181 (round_sd_mask_op4): Ditto.
182 (round_constraint): Ditto.
183 (round_constraint2): Ditto.
184 (round_constraint3): Ditto.
185 (round_nimm_predicate): Ditto.
186 (round_mode512bit_condition): Ditto.
187 (round_modev4sf_condition): Ditto.
188 (round_codefor): Ditto.
189 (round_opnum): Ditto.
190 (round): Ditto.
191
192 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
193
194 PR target/59588
195 * config/i386/i386.c (ix86_option_override_internal): Don't
196 check generic tuning. Don't change i686 tuning.
197
198 2013-12-26 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR target/59601
201 * config/i386/i386.c (get_builtin_code_for_version): Map
202 PROCESSOR_NEHALEM to "corei7".
203
204 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
205
206 * config/i386/i386.c (get_builtin_code_for_version): Rename AMD
207 CPU names M_AMD_BOBCAT to M_AMD_BTVER1 and M_AMD_JAGUAR
208 to M_AMD_BTVER2.
209 (processor_model): Likewise.
210 (arch_names_table): Likewise.
211
212 2013-12-26 Uros Bizjak <ubizjak@gmail.com>
213
214 * config/i386/driver-i386.c (decode_caches_intel): Add missing entries.
215
216 2013-12-25 H.J. Lu <hongjiu.lu@intel.com>
217
218 PR target/59587
219 * config/i386/i386.c (struct ptt): Add a field for processor name.
220 (processor_target_table): Sync with processor_type.
221 Add processor names.
222 (cpu_names): Removed.
223 (ix86_option_override_internal): Default x_ix86_tune_string
224 to processor_target_table[TARGET_CPU_DEFAULT].name.
225 (ix86_function_specific_print): Assert arch and tune < PROCESSOR_max.
226 Use processor_target_table to print arch and tune names.
227 * config/i386/i386.h (TARGET_CPU_DEFAULT): Default to
228 PROCESSOR_GENERIC.
229 (target_cpu_default): Removed.
230 (processor_type): Reordered.
231
232 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org>
233 H.J. Lu <hongjiu.lu@intel.com>
234
235 PR target/59422
236 * config/i386/i386.c (get_builtin_code_for_version): Handle
237 PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1,
238 PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4.
239 Change priority of PROCESSOR_BDVER1 to P_PROC_XOP.
240 (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell",
241 "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a",
242 "fma4", "xop" and "fma" ISA names.
243
244 2013-12-24 H.J. Lu <hongjiu.lu@intel.com>
245
246 * config/i386/i386.c (ix86_option_override_internal): Check
247 opts->x_ix86_arch_string instead of ix86_arch_string.
248
249 2013-12-24 Renlin Li <Renlin.Li@arm.com>
250
251 * config/arm/arm-protos.h (vfp_const_double_for_bits): Declare.
252 * config/arm/constraints.md (Dp): Define new constraint.
253 * config/arm/predicates.md (const_double_vcvt_power_of_two): Define
254 new predicate.
255 * config/arm/arm.c (arm_print_operand): Add print for new fucntion.
256 (vfp3_const_double_for_bits): New function.
257 * config/arm/vfp.md (combine_vcvtf2i): Define new instruction.
258
259 2013-12-23 Hans-Peter Nilsson <hp@axis.com>
260
261 PR target/59203
262 * config/cris/cris.c (cris_pic_symbol_type_of): Fix typo,
263 checking t1 twice instead of t1 and t2 respectively.
264
265 PR middle-end/59584
266 * config/cris/predicates.md (cris_nonsp_register_operand):
267 New define_predicate.
268 * config/cris/cris.md: Replace register_operand with
269 cris_nonsp_register_operand for destinations in all
270 define_splits where a register is set more than once.
271
272 2013-12-23 Jason Merrill <jason@redhat.com>
273
274 * gdbinit.in (input_line, input_filename): Define.
275
276 * cgraph.h (struct cgraph_node): Add calls_comdat_local.
277 (symtab_comdat_local_p, symtab_in_same_comdat_p): New.
278 * cif-code.def: Add USES_COMDAT_LOCAL.
279 * symtab.c (verify_symtab_base): Make sure we don't refer to a
280 comdat-local symbol from outside its comdat.
281 * cgraph.c (verify_cgraph_node): Likewise.
282 * cgraphunit.c (mark_functions_to_output): Don't mark comdat-locals.
283 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
284 (function_and_variable_visibility): Handle comdat-local fns.
285 * ipa-cp.c (determine_versionability): Don't clone comdat-locals.
286 * ipa-inline-analysis.c (compute_inline_parameters): Update
287 calls_comdat_local.
288 * ipa-inline-transform.c (inline_call): Likewise.
289 (save_inline_function_body): Don't clear DECL_COMDAT_GROUP.
290 * ipa-inline.c (can_inline_edge_p): Check calls_comdat_local.
291 * lto-cgraph.c (input_overwrite_node): Read calls_comdat_local.
292 (lto_output_node): Write it.
293 * symtab.c (symtab_dissolve_same_comdat_group_list): Clear
294 DECL_COMDAT_GROUP for comdat-locals.
295
296 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
297
298 * config/i386/i386.c (processor_target_table): Move Bonnell and
299 Silvermont entries before generic.
300
301 2013-12-23 Bingfeng Mei <bmei@broadcom.com>
302
303 PR middle-end/59569
304 * tree-vect-stmts.c (vectorizable_store): Skip permutation for
305 consant/external operand, and add a few missing \n.
306
307 2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
308 Tocar Ilya <ilya.tocar@intel.com>
309
310 * config/i386/core2.md: Replace corei7 with nehalem.
311
312 * config/i386/driver-i386.c (host_detect_local_cpu): Use nehalem,
313 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont
314 for cpu names.
315
316 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
317 PROCESSOR_COREI7, PROCESSOR_COREI7_AVX, PROCESSOR_ATOM,
318 PROCESSOR_SLM with PROCESSOR_NEHALEM, PROCESSOR_SANDYBRIDGE,
319 PROCESSOR_BONNELL, PROCESSOR_SILVERMONT. Define
320 __nehalem/__nehalem__, __sandybridge/__sandybridge__,
321 __haswell/__haswell__, __tune_nehalem__, __tune_sandybridge__,
322 __tune_haswell__, __bonnell/__bonnell__,
323 __silvermont/__silvermont__, __tune_bonnell__,
324 __tune_silvermont__.
325
326 * config/i386/i386.c (m_COREI7): Renamed to ...
327 (m_NEHALEM): This.
328 (m_COREI7_AVX): Renamed to ...
329 (m_SANDYBRIDGE): This.
330 (m_ATOM): Renamed to ...
331 (m_BONNELL): This.
332 (m_SLM): Renamed to ...
333 (m_SILVERMONT): This.
334 (m_CORE_ALL): Updated.
335 (cpu_names): Add "nehalem", "westmere", "sandybridge",
336 "ivybridge", "haswell", "broadwell", "bonnell", "silvermont".
337 (PTA_CORE2): New.
338 (PTA_NEHALEM): Likewise.
339 (PTA_WESTMERE): Likewise.
340 (PTA_SANDYBRIDGE): Likewise.
341 (PTA_IVYBRIDGE): Likewise.
342 (PTA_HASWELL): Likewise.
343 (PTA_BROADWELL): Likewise.
344 (PTA_BONNELL): Likewise.
345 (PTA_SILVERMONT): Likewise.
346 (ix86_option_override_internal): Use new PTA_XXX. Add nehalem,
347 westmere, sandybridge, ivybridge, haswell, bonnell, silvermont.
348 (ix86_lea_outperforms): Updated.
349 (ix86_issue_rate): Likewise.
350 (ix86_adjust_cost): Likewise.
351 (ia32_multipass_dfa_lookahead): Likewise.
352 (do_reorder_for_imul): Likewise.
353 (swap_top_of_ready_list): Likewise.
354 (ix86_sched_reorder): Likewise.
355 (ix86_sched_init_global): Likewise.
356 (get_builtin_code_for_version): Likewise.
357 (processor_model): Replace M_INTEL_ATOM, M_INTEL_SLM with
358 M_INTEL_BONNELL, M_INTEL_SILVERMONT.
359 (arch_names_table): Updated.
360
361 * config/i386/i386.h (TARGET_COREI7): Removed.
362 (TARGET_COREI7_AVX): Likewise.
363 (TARGET_ATOM): Likewise.
364 (TARGET_SLM): Likewise.
365 (TARGET_NEHALEM): New.
366 (TARGET_SANDYBRIDGE): Likewise.
367 (TARGET_BONNELL): Likewise.
368 (TARGET_SILVERMONT): Likewise.
369 (target_cpu_default): Add TARGET_CPU_DEFAULT_core_avx2,
370 TARGET_CPU_DEFAULT_nehalem, TARGET_CPU_DEFAULT_westmere,
371 TARGET_CPU_DEFAULT_sandybridge, TARGET_CPU_DEFAULT_ivybridge,
372 TARGET_CPU_DEFAULT_broadwell, TARGET_CPU_DEFAULT_bonnell,
373 TARGET_CPU_DEFAULT_silvermont. Move TARGET_CPU_DEFAULT_haswell
374 before TARGET_CPU_DEFAULT_broadwell.
375 (processor_type): Replace PROCESSOR_COREI7, PROCESSOR_COREI7_AVX,
376 PROCESSOR_ATOM, PROCESSOR_SLM with PROCESSOR_NEHALEM,
377 PROCESSOR_SANDYBRIDGE, PROCESSOR_BONNELL, PROCESSOR_SILVERMONT.
378
379 * config/i386/i386.md (cpu): Replace corei7 with nehalem.
380
381 * config/i386/x86-tune.def: Updated.
382
383 * doc/invoke.texi: Replace corei7, corei7-avx, core-avx-i,
384 core-avx2, atom, slm with nehalem, sandybridge, ivybridge,
385 haswell, bonnel, silvermont. Add westmere.
386
387 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
388
389 PR rtl-optimization/57422
390 * sel-sched.c (fill_vec_av_set): Assert that the fence insn
391 can always be scheduled in its current form.
392
393 2013-12-23 Andrey Belevantsev <abel@ispras.ru>
394
395 PR rtl-optimization/57422
396 * sel-sched.c (mark_unavailable_hard_regs): Fix typo when calling
397 add_to_hard_reg_set.
398
399 2013-12-20 Sharad Singhai <singhai@google.com>
400
401 * Makefile.in: Add optinfo.texi.
402 * doc/invoke.texi: Fix typo.
403 * doc/optinfo.texi: New documentation for optimization info.
404 * doc/passes.texi: Add new node.
405
406 2013-12-20 Trevor saunders <tsaunders@mozilla.com>
407
408 * vec.h (stack_vec): Convert to a templaate specialization of
409 auto_vec.
410 * config/i386/i386.c, df-scan.c, function.c, genautomata.c,
411 gimplify.c, graphite-clast-to-gimple.c, graphite-dependences.c,
412 graphite-scop-detection.c, graphite-sese-to-poly.c, hw-doloop.c,
413 trans-mem.c, tree-call-cdce.c, tree-data-ref.c, tree-dfa.c,
414 tree-if-conv.c, tree-inline.c, tree-loop-distribution.c,
415 tree-parloops.c, tree-predcom.c, tree-ssa-alias.c,
416 tree-ssa-loop-ivcanon.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
417 tree-ssa-uncprop.c, tree-vect-loop.c, tree-vect-patterns.c,
418 tree-vect-slp.c, tree-vect-stmts.c, var-tracking.c: Adjust.
419
420 2013-12-20 Eric Botcazou <ebotcazou@adacore.com>
421
422 * config/arm/arm.c (arm_expand_prologue): In a nested APCS frame with
423 arguments to push onto the stack and no varargs, save ip into the last
424 stack slot if r3 isn't available on entry.
425
426 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
427
428 * config/arm/neon.ml (crypto_intrinsics): Add vceq_64 and vtst_p64.
429 * config/arm/arm_neon.h: Regenerate.
430 * config/arm/neon-docgen.ml: Add vceq_p64 and vtst_p64.
431 * doc/arm-neon-intrinsics.texi: Regenerate.
432
433 2013-12-20 Vladimir Makarov <vmakarov@redhat.com>
434
435 * config/arm/arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Return
436 NO_REGS for LRA.
437
438 2013-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
439
440 * config/arm/arm_acle.h: Add underscores before variables.
441
442 2013-12-20 Bingfeng Mei <bmei@broadcom.com>
443
444 PR tree-optimization/59544
445 * tree-vect-stmts.c (perm_mask_for_reverse): Move before
446 vectorizable_store.
447 (vectorizable_store): Handle negative step.
448
449 2013-12-20 Tocar Ilya <ilya.tocar@intel.com>
450
451 * config.gcc: Support march=broadwell.
452 * config/i386/driver-i386.c (host_detect_local_cpu): Detect Broadwell.
453 * config/i386/i386.c (ix86_option_override_internal): Add broadwell.
454 * doc/invoke.texi: Document march=broadwell.
455
456 2013-12-20 Jakub Jelinek <jakub@redhat.com>
457
458 * ubsan.c: Include tree-ssanames.h, asan.h and gimplify-me.h.
459 (ubsan_type_descriptor): Handle BOOLEAN_TYPE and ENUMERAL_TYPE
460 like INTEGER_TYPE.
461 (instrument_bool_enum_load): New function.
462 (ubsan_pass): Call it.
463 (gate_ubsan): Also enable for SANITIZE_BOOL or SANITIZE_ENUM.
464 * asan.c (create_cond_insert_point): No longer static.
465 * asan.h (create_cond_insert_point): Declare.
466 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE): New
467 built-in.
468 * opts.c (common_handle_option): Handle -fsanitize=bool and
469 -fsanitize=enum.
470 * builtins.c (fold_builtin_memory_op): When sanitizing bool
471 and enum loads, don't use enum or bool types for memcpy folding.
472 * flag-types.h (SANITIZE_BOOL, SANITIZE_ENUM): New.
473 (SANITIZE_UNDEFINED): Or these in.
474
475 2013-12-20 Chung-Ju Wu <jasonwucj@gmail.com>
476
477 * config/nds32/nds32.h (NDS32_MODE_TYPE_ALIGN): New macro.
478 (NDS32_AVAILABLE_REGNUM_FOR_ARG): Use more accurate alignment checking
479 to determine available register number.
480 * config/nds32/nds32.c (nds32_needs_double_word_align): Use new
481 macro NDS32_MODE_TYPE_ALIGN.
482 (nds32_function_arg): Refine code layout.
483
484 2013-12-19 Jeff Law <law@redhat.com>
485
486 * doc/invoke.texi: (dump-rtl-ree): Fix typo and clarify ree
487 handles both zero and sign extension.
488
489 2013-12-19 Teresa Johnson <tejohnson@google.com>
490
491 PR gcov-profile/59542
492 * bb-reorder.c (duplicate_computed_gotos): Invoke fixup_partitions
493 if we have made any changes.
494
495 2013-12-19 Jakub Jelinek <jakub@redhat.com>
496
497 PR other/59545
498 * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
499 (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
500 to unsigned.
501 (attr_rtx_1): Change hashcode variable to unsigned.
502 (attr_string): Likewise. Perform first multiplication in
503 unsigned type.
504 * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
505 overflows.
506 * double-int.c (neg_double): Likewise.
507 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
508 * combine.c (force_to_mode): Likewise.
509 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
510 reload_cse_move2add, move2add_note_store): Likewise.
511 * simplify-rtx.c (simplify_const_unary_operation,
512 simplify_const_binary_operation): Likewise.
513 * ipa-split.c (find_split_points): Initialize first.can_split
514 and first.non_ssa_vars.
515 * gengtype-state.c (read_state_files_list): Fix up check.
516 * genautomata.c (reserv_sets_hash_value): Use portable rotation idiom.
517
518 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
519
520 * config/arm/neon-docgen.ml: Add crypto intrinsics documentation.
521 * doc/arm-neon-intrinsics.texi: Regenerate.
522
523 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
524
525 * config/arm/neon-testgen.ml (effective_target): Handle "CRYPTO".
526
527 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
528
529 * config/arm/arm.c (enum arm_builtins): Add crypto builtins.
530 (arm_init_neon_builtins): Handle crypto builtins.
531 (bdesc_2arg): Likewise.
532 (bdesc_1arg): Likewise.
533 (bdesc_3arg): New table.
534 (arm_expand_ternop_builtin): New function.
535 (arm_expand_unop_builtin): Handle sha1h explicitly.
536 (arm_expand_builtin): Handle ternary builtins.
537 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS):
538 Define __ARM_FEATURE_CRYPTO.
539 * config/arm/arm.md: Include crypto.md.
540 (is_neon_type): Add crypto types.
541 * config/arm/arm_neon_builtins.def: Add TImode reinterprets.
542 * config/arm/crypto.def: New.
543 * config/arm/crypto.md: Likewise.
544 * config/arm/iterators.md (CRYPTO_UNARY): New int iterator.
545 (CRYPTO_BINARY): Likewise.
546 (CRYPTO_TERNARY): Likewise.
547 (CRYPTO_SELECTING): Likewise.
548 (crypto_pattern): New int attribute.
549 (crypto_size_sfx): Likewise.
550 (crypto_mode): Likewise.
551 (crypto_type): Likewise.
552 * config/arm/neon-gen.ml: Handle poly64_t and poly128_t types.
553 Handle crypto intrinsics.
554 * config/arm/neon.ml: Add support for poly64 and polt128 types
555 and intrinsics. Define crypto intrinsics.
556 * config/arm/neon.md (neon_vreinterpretti<mode>): New pattern.
557 (neon_vreinterpretv16qi<mode>): Use VQXMOV mode iterator.
558 (neon_vreinterpretv8hi<mode>): Likewise.
559 (neon_vreinterpretv4si<mode>): Likewise.
560 (neon_vreinterpretv4sf<mode>): Likewise.
561 (neon_vreinterpretv2di<mode>): Likewise.
562 * config/arm/unspecs.md (UNSPEC_AESD, UNSPEC_AESE, UNSPEC_AESIMC)
563 (UNSPEC_AESMC, UNSPEC_SHA1C, UNSPEC_SHA1M, UNSPEC_SHA1P, UNSPEC_SHA1H)
564 (UNSPEC_SHA1SU0, UNSPEC_SHA1SU1, UNSPEC_SHA256H, UNSPEC_SHA256H2)
565 (UNSPEC_SHA256SU0, UNSPEC_SHA256SU1, VMULLP64): Define.
566 * config/arm/arm_neon.h: Regenerate.
567
568 2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
569
570 PR driver/59321
571 * collect2.c (main): Check -fuse-ld=[bfd|gold] when
572 DEFAULT_LINKER is defined.
573 * common.opt (fuse-ld=bfd): Add Driver.
574 (fuse-ld=gold): Likewise.
575 * gcc.c (use_ld): New variable.
576 (driver_handle_option): Set use_ld for OPT_fuse_ld_bfd and
577 OPT_fuse_ld_gold.
578 (main): Check -fuse-ld=[bfd|gold] for -print-prog-name=ld.
579
580 2013-12-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
581
582 * Makefile.in (TEXI_GCC_FILES): Add arm-acle-intrinsics.texi.
583 * config.gcc (extra_headers): Add arm_acle.h.
584 * config/arm/arm.c (FL_CRC32): Define.
585 (arm_have_crc): Likewise.
586 (arm_option_override): Set arm_have_crc.
587 (arm_builtins): Add CRC32 builtins.
588 (bdesc_2arg): Likewise.
589 (arm_init_crc32_builtins): New function.
590 (arm_init_builtins): Initialise CRC32 builtins.
591 (arm_file_start): Handle architecture extensions.
592 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
593 __ARM_FEATURE_CRC32. Define __ARM_32BIT_STATE.
594 (TARGET_CRC32): Define.
595 * config/arm/arm-arches.def: Add armv8-a+crc.
596 * config/arm/arm-tables.opt: Regenerate.
597 * config/arm/arm.md (type): Add crc.
598 (<crc_variant>): New insn.
599 * config/arm/arm_acle.h: New file.
600 * config/arm/iterators.md (CRC): New int iterator.
601 (crc_variant, crc_mode): New int attributes.
602 * confg/arm/unspecs.md (UNSPEC_CRC32B, UNSPEC_CRC32H, UNSPEC_CRC32W,
603 UNSPEC_CRC32CB, UNSPEC_CRC32CH, UNSPEC_CRC32CW): New unspecs.
604 * doc/invoke.texi: Document -march=armv8-a+crc option.
605 * doc/extend.texi: Document ACLE intrinsics.
606
607 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
608
609 PR target/59142
610 * config/arm/arm-ldmstm.ml: Use low_register_operand for Thumb
611 patterns.
612 * config/arm/ldmstm.md: Regenerate.
613
614 2013-12-19 Charles Baylis <charles.baylis@linaro.org>
615
616 PR target/59142
617 * config/arm/predicates.md (arm_hard_general_register_operand):
618 New predicate.
619 (arm_hard_register_operand): Remove.
620 * config/arm/arm-ldmstm.ml: Use arm_hard_general_register_operand
621 for all 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 (vfp_hard_register_operand): New predicate.
628 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use
629 vfp_hard_register_operand.
630
631 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
632
633 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
634 Define builtin types for poly64_t poly128_t.
635 (TYPES_BINOPP, aarch64_types_binopp_qualifiers): New.
636 * aarch64/aarch64-simd-builtins.def: Update builtins table.
637 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi,
638 aarch64_crypto_pmullv2di): New.
639 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Update table for
640 poly64x2_t mangler.
641 * config/aarch64/arm_neon.h (poly64x2_t, poly64_t, poly128_t): Define.
642 (vmull_p64, vmull_high_p64): New.
643 * config/aarch64/iterators.md (UNSPEC_PMULL<2>): New.
644
645 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
646
647 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
648 * config/aarch64/aarch64-simd.md
649 (aarch64_crypto_sha256h<sha256_op>v4si, aarch64_crypto_sha256su0v4si,
650 aarch64_crypto_sha256su1v4si): New.
651 * config/aarch64/arm_neon.h (vsha256hq_u32, vsha256h2q_u32,
652 vsha256su0q_u32, vsha256su1q_u32): New.
653 * config/aarch64/iterators.md (UNSPEC_SHA256H<2>, UNSPEC_SHA256SU<01>):
654 New.
655 (CRYPTO_SHA256): New int iterator.
656 (sha256_op): New int attribute.
657
658 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
659
660 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
661 * config/aarch64/aarch64-builtins.c (aarch64_types_ternopu_qualifiers,
662 TYPES_TERNOPU): New.
663 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hsi,
664 aarch64_crypto_sha1su1v4si, aarch64_crypto_sha1<sha1_op>v4si,
665 aarch64_crypto_sha1su0v4si): New.
666 * config/aarch64/arm_neon.h (vsha1cq_u32, sha1mq_u32, vsha1pq_u32,
667 vsha1h_u32, vsha1su0q_u32, vsha1su1q_u32): New.
668 * config/aarch64/iterators.md (UNSPEC_SHA1<CPMH>, UNSPEC_SHA1SU<01>):
669 New.
670 (CRYPTO_SHA1): New int iterator.
671 (sha1_op): New int attribute.
672
673 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
674
675 * config/aarch64/aarch64-simd-builtins.def: Update builtins table.
676 * config/aarch64/aarch64-builtins.c (aarch64_types_binopu_qualifiers,
677 TYPES_BINOPU): New.
678 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi,
679 aarch64_crypto_aes<aesmc_op>v16qi): New.
680 * config/aarch64/arm_neon.h (vaeseq_u8, vaesdq_u8, vaesmcq_u8,
681 vaesimcq_u8): New.
682 * config/aarch64/iterators.md (UNSPEC_AESE, UNSPEC_AESD, UNSPEC_AESMC,
683 UNSPEC_AESIMC): New.
684 (CRYPTO_AES, CRYPTO_AESMC): New int iterators.
685 (aes_op, aesmc_op): New int attributes.
686
687 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
688
689 * config/arm/types.md (neon_mul_d_long, crypto_aes, crypto_sha1_xor,
690 crypto_sha1_fast, crypto_sha1_slow, crypto_sha256_fast,
691 crypto_sha256_slow): New.
692
693 2013-12-19 Tejas Belagod <tejas.belagod@arm.com>
694
695 * config/aarch64/aarch64.h (TARGET_CRYPTO): New.
696 (__ARM_FEATURE_CRYPTO): Define if TARGET_CRYPTO is true.
697
698 2013-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
699 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
700
701 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default): New
702 constant.
703 (s390_hotpatch_trampoline_halfwords_max): New constant.
704 (s390_hotpatch_trampoline_halfwords): New static variable.
705 (get_hotpatch_attribute): New function.
706 (s390_handle_hotpatch_attribute): New function.
707 (s390_attribute_table): New target specific attribute table to
708 implement the hotpatch attribute.
709 (s390_option_override): Parse hotpatch options.
710 (s390_function_num_hotpatch_trampoline_halfwords): New function.
711 (s390_can_inline_p): Implement target hook to
712 suppress hotpatching for explicitly inlined functions.
713 (s390_asm_output_function_label): Generate hotpatch prologue.
714 (TARGET_ATTRIBUTE_TABLE): Define to implement target attribute table.
715 (TARGET_CAN_INLINE_P): Define to implement target hook.
716 * config/s390/s390.opt (mhotpatch): New options -mhotpatch,
717 -mhotpatch=.
718 * config/s390/s390-protos.h (s390_asm_output_function_label): Add
719 prototype.
720 * config/s390/s390.h (ASM_OUTPUT_FUNCTION_LABEL): Target specific
721 function label generation for hotpatching.
722 (FUNCTION_BOUNDARY): Align functions to eight bytes.
723 * doc/extend.texi: Document hotpatch attribute.
724 * doc/invoke.texi: Document -mhotpatch option.
725
726 2013-12-19 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
727
728 * config/i386/i386.c: Include cfgloop.h.
729 (ix86_loop_memcount): New function.
730 (ix86_loop_unroll_adjust): New function.
731 (TARGET_LOOP_UNROLL_ADJUST): Define.
732 * config/i386/i386.h
733 (TARGET_ADJUST_UNROLL): Define.
734 * config/i386/x86-tune.def
735 (X86_TUNE_ADJUST_UNROLL): Define.
736
737 2013-12-19 Marek Polacek <polacek@redhat.com>
738
739 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
740 variable alg. Use index variable i directly.
741
742 2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
743
744 * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag
745 for all types.
746
747 2013-12-19 Monk Chiang <sh.chiang04@gmail.com>
748
749 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
750 Consider TARGET_CPU_DEFAULT settings.
751
752 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
753
754 * config/aarch64/aarch64-cores.def: Add support for
755 -mcpu=cortex-a57.cortex-a53.
756 * config/aarch64/aarch64-tune.md: Regenerate.
757 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
758
759 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
760
761 * config/aarch64/aarch64-cores.def: Add new column for SCHEDULER_IDENT.
762 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
763 * config/aarch64/aarch64.c (AARCH64_CORE): Handle SCHEDULER_IDENT.
764 (aarch64_parse_cpu): mcpu implies a default value for mtune.
765 * config/aarch64/aarch64.h (AARCH64_CORE): Handle SCHEDULER_IDENT.
766
767 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
768
769 * common/config/aarch64/aarch64-common.c
770 (aarch64_rewrite_selected_cpu): New.
771 (aarch64_rewrite_mcpu): New.
772 * config/aarch64/aarch64-protos.h
773 (aarch64_rewrite_selected_cpu): New.
774 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): New.
775 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
776 (ASM_CPU_SPEC): Likewise.
777 (EXTRA_SPEC_FUNCTIONS): Likewise.
778 (EXTRA_SPECS): Likewise.
779 (ASM_SPEC): Likewise.
780 * config/aarch64/aarch64.c (aarch64_start_file): Rewrite target
781 CPU name.
782
783 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
784
785 * omp-low.c (simd_clone_clauses_extract): Replaced the string
786 "cilk simd elemental" with "cilk simd function."
787 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
788 Removed a carriage-return from a warning string.
789
790 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
791
792 * passes.c (execute_function_dump): Set graph_dump_initialized
793 appropriately.
794 (pass_init_dump_file): Similarly.
795 (execute_one_pass): Pass new argument to do_per_function.
796 * tree-pass.h (class opt_pass): New field graph_dump_initialized.
797
798 2013-12-18 Aldy Hernandez <aldyh@redhat.com>
799
800 * doc/tree-ssa.texi (SSA Operands): Remove reference to
801 SSA_OP_VMAYUSE.
802 Synchronize SSA_OP* definitions with source.
803 * ssa-iterators.h: Fix comment for FOR_EACH_IMM_USE_STMT.
804 Add not to SSA_OP* macro definitions.
805
806 2013-12-18 Jakub Jelinek <jakub@redhat.com>
807
808 PR target/59539
809 * config/i386/sse.md
810 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
811 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): New expanders,
812 prefix existing define_insn names with *.
813
814 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
815
816 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Fix thinko.
817
818 2013-12-18 James Greenhalgh <james.greenhalgh@arm.com>
819 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
820
821 * config/arm/t-aprofile: Add cortex-a15.cortex-a7, cortex-a12,
822 cortex-a57, cortex-a57.cortex-a53.
823
824 2013-12-18 Eric Botcazou <ebotcazou@adacore.com>
825
826 PR debug/59418
827 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_offset): Fix comment and tidy.
828 (dwarf2out_frame_debug_cfa_restore): Handle TARGET_DWARF_REGISTER_SPAN.
829 (dwarf2out_frame_debug_expr): Tidy.
830
831 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
832 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
833 Sergey Lega <sergey.s.lega@intel.com>
834 Anna Tikhonova <anna.tikhonova@intel.com>
835 Ilya Tocar <ilya.tocar@intel.com>
836 Andrey Turetskiy <andrey.turetskiy@intel.com>
837 Ilya Verbin <ilya.verbin@intel.com>
838 Kirill Yukhin <kirill.yukhin@intel.com>
839 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
840
841 * config/i386/sse.md (*fma_fmadd_<mode>): Extend to support masking.
842 (*fma_fmsub_<mode>): Ditto.
843 (*fma_fnmadd_<mode>): Ditto.
844 (*fma_fnmsub_<mode>): Ditto.
845 (*fma_fmaddsub_<mode>): Ditto.
846 (*fma_fmsubadd_<mode>): Ditto.
847 (avx512f_vternlog<mode>): Ditto.
848 (avx512f_fixupimm<mode>): Ditto.
849 (avx512f_sfixupimm<mode>): Ditto.
850 (avx512f_vpermi2var<mode>3): Ditto.
851 (avx512f_vpermt2var<mode>3): Ditto.
852 (avx512f_fmaddsub_<mode>_maskz): New.
853 (avx512f_vternlog<mode>_maskz): Ditto.
854 (avx512f_fixupimm<mode>_maskz): Ditto.
855 (avx512f_sfixupimm<mode>_maskz): Ditto.
856 (avx512f_vpermi2var<mode>3_maskz): Ditto.
857 (avx512f_vpermt2var<mode>3_maskz): Ditto.
858 (avx512f_expand<mode>_maskz): Ditto.
859 * config/i386/subst.md (sd_maskz_name): Ditto.
860 (sd_mask_op4): Ditto.
861 (sd_mask_op5): Ditto.
862 (sd_mask_codefor): Ditto.
863 (sd_mask_mode512bit_condition): Ditto.
864 (sd): Ditto.
865
866 2013-12-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
867 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
868 Sergey Lega <sergey.s.lega@intel.com>
869 Anna Tikhonova <anna.tikhonova@intel.com>
870 Ilya Tocar <ilya.tocar@intel.com>
871 Andrey Turetskiy <andrey.turetskiy@intel.com>
872 Ilya Verbin <ilya.verbin@intel.com>
873 Kirill Yukhin <kirill.yukhin@intel.com>
874 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
875
876 * config/i386/sse.md (avx512f_cmp<mode>3): Extend to support masking.
877 (avx512f_ucmp<mode>3): Ditto.
878 (avx512f_eq<mode>3): Ditto.
879 (avx512f_gt<mode>3): Ditto.
880 (avx512f_testm<mode>3): Ditto.
881 (avx512f_testnm<mode>3): Ditto.
882 * config/i386/subst.md (SUBST_S): New.
883 (mask_scalar_merge_name): Ditto.
884 (mask_scalar_merge_operand3): Ditto.
885 (mask_scalar_merge_operand4): Ditto.
886 (mask_scalar_merge): Ditto.
887
888 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
889
890 PR middle-end/35545
891 * gimple-fold.c (fold_gimple_assign): Attempt to devirtualize
892 OBJ_TYPE_REF.
893 (gimple_fold_stmt_to_constant_1): Bypass OBJ_TYPE_REF wrappers.
894
895 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
896
897 PR middle-end/35545
898 * tree-vrp.c (extract_range_from_unary_expr_1): Handle OBJ_TYPE_REF.
899
900 2013-12-17 Teresa Johnson <tejohnson@google.com>
901
902 PR gcov-profile/59527
903 * cfgrtl.c (fixup_reorder_chain): Handle a region-crossing
904 branch, which can't be eliminated.
905
906 2013-12-18 Martin Liska <marxin.liska@gmail.com>
907 Jan Hubicka <jh@suse.cz>
908
909 * cgraphunit.c (node_cmp): New function.
910 (expand_all_functions): Function ordering added.
911 * common.opt: New profile based function reordering flag introduced.
912 * lto-partition.c: Support for time profile added.
913 * lto.c: Likewise.
914 * predict.c (handle_missing_profiles): Time profile handled in
915 missing profiles.
916
917 2013-12-17 Jakub Jelinek <jakub@redhat.com>
918
919 PR tree-optimization/59523
920 * tree-vectorizer.c (fold_loop_vectorized_call): Call update_stmt
921 on updated stmts.
922
923 2013-12-17 Aldy Hernandez <aldyh@redhat.com>
924
925 * ipa-inline.c (gate_ipa_inline): Remove.
926 (const pass_data pass_data_ipa_inline): Unset has_gate.
927 (class pass_ipa_inline): Remove gate() method.
928
929 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
930
931 * ipa-devirt.c (get_polymorphic_call_info): Fix offset calculatoin
932 in contains_type_p query.
933
934 2013-12-17 Thomas Schwinge <thomas@codesourcery.com>
935
936 * omp-low.c (tmp_ompfn_id_num): Remove leftover variable definition.
937
938 * tree-pass.h (make_pass_expand_omp_ssa): Remove leftover function
939 declaration.
940
941 * omp-low.c: Remove leftover comment.
942
943 * omp-low.c (check_combined_parallel): Reflect reality in comment.
944
945 * doc/cfg.texi (Control Flow): Refer to passes.def instead of passes.c.
946 * doc/passes.texi (Pass manager): Refer to passes.def.
947
948 * doc/gccint.texi (Top): Fix inclusion order.
949
950 2013-12-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
951
952 * config/arm/arm-cores.def (cortex-a12): Use cortexa15 scheduling.
953 * config/arm/arm.c (arm_issue_rate): Handle cortexa12.
954 * config/arm/arm.md (generic_vfp): Remove cortexa12.
955
956 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
957
958 * config/arm/arm-cores.def (cortex-a57.cortex-a53): New.
959 * doc/invoke.texi: Document -mcpu=cortex-a57.cortex-a53.
960 * config/arm/arm-tables.opt: Regenerate.
961 * config/arm/arm-tune.md: Regenerate.
962 * config/arm/bpabi.h
963 (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.cortex-a53.
964
965 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
966
967 * config/arm/arm-cores.def (cortex-a57): New.
968 * doc/invoke.texi: Document -mcpu=cortex-a57.
969 * config/arm/arm-tables.opt: Regenerate.
970 * config/arm/arm-tune.md: Regenerate.
971 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle -mcpu=cortex-a57.
972
973 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
974
975 * config/arm/arm-cores.def (cortex-a15.cortex-a7): New.
976 * doc/invoke.texi: Document -mcpu=cortex-a15.cortex-a7.
977 * config/arm/arm-tables.opt: Regenerate.
978 * config/arm/arm-tune.md: Regenerate.
979 * config/arm/bpabi.h
980 (BE8_LINK_SPEC): Handle -mcpu=cortex-a5.cortex-a7.
981
982 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
983
984 * config/arm/arm-cores.def: Add new column for TUNE_IDENT.
985 * config/arm/genopt.sh: Improve layout.
986 * config/arm/arm-tune.md: Regenerate.
987 * config/arm/arm-tables.opt: Regenerate.
988 * config/arm/arm-opts.h (ARM_CORE): Modify macro for TUNE_IDENT.
989 * config/arm/arm.c (ARM_CORE): Modify macro for TUNE_IDENT.
990 (arm_option_override): When a CPU is chosen, that should also
991 form the tune target.
992 * config/arm/arm.h (ARM_CORE): Modify macro for TUNE_IDENT.
993
994 2013-12-17 James Greenhalgh <james.greenhalgh@arm.com>
995
996 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): New.
997 (arm_rewrite_mcpu): Likewise.
998 * config/arm/arm-protos.h (arm_rewrite_selected_cpu): New.
999 * config/arm/arm.h (BIG_LITTLE_SPEC): New.
1000 (BIG_LITTLE_SPEC_FUNCTIONS): Likewise.
1001 (EXTRA_SPEC_FUNCTIONS): Include BIG_LITTLE_SPEC_FUNCTIONS.
1002 (ASM_CPU_SPEC): Include BIG_LITTLE_SPEC.
1003 * config/arm/arm.c (arm_file_start): Rewrite arm_selecetd_cpu values.
1004
1005 2013-12-17 Eric Botcazou <ebotcazou@adacore.com>
1006
1007 * expmed.c (lowpart_bit_field_p): Fix comment.
1008 (store_bit_field_using_insv): Fix formatting.
1009 (store_bit_field): Likewise.
1010 (store_fixed_bit_field): More declaration and remove return.
1011 (store_fixed_bit_field_1): Fix formatting.
1012 (extract_fixed_bit_field): Move declaration.
1013 (extract_fixed_bit_field_1): Simplify.
1014
1015 2013-12-17 Jan Hubicka <hubicka@ucw.cz>
1016
1017 * ipa-utils.h (possible_polymorphic_call_targets): Determine
1018 context of the call.
1019 * gimple-fold.c (gimple_fold_call): Use ipa-devirt to devirtualize.
1020
1021 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1022
1023 * expr.c (convert_modes): For SUBREG_PROMOTED_VAR_P use SUBREG_REG (x)
1024 instead of x as last gen_lowpart argument.
1025
1026 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1027
1028 * predict.h (PROB_LIKELY): Fix the value.
1029 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Add support
1030 for overflow checking for modes without 2xwider supported mode,
1031 if the mode has 2xnarrower mode.
1032
1033 * internal-fn.c: Include stringpool.h and tree-ssanames.h.
1034 (ubsan_expand_si_overflow_addsub_check): In the generic expansion,
1035 try to improve generated code if one of the arguments is constant
1036 or get_range_info says that one of the argument is always
1037 negative or always non-negative.
1038 * tree-vrp.c (simplify_internal_call_using_ranges): New function.
1039 (simplify_stmt_using_ranges): Call it.
1040
1041 2013-12-16 Vladimir Makarov <vmakarov@redhat.com>
1042
1043 PR rtl-optimization/59466
1044 * emit-rtl.c (change_address_1): Don't validate address for LRA.
1045 * recog.c (general_operand): Accept any memory for LRA.
1046 * lra.c (lra_set_insn_recog_data): Add an assert.
1047
1048 2013-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1049
1050 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a12 entry.
1051
1052 2013-12-14 Jan Hubicka <jh@suse.cz>
1053 Markus Trippelsdorf <octoploid@yandex.com>
1054
1055 PR ipa/59265
1056 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
1057 call is already devirtualized.
1058
1059 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1060
1061 * Makefile.in (version.o): Restore dependencies on
1062 $(REVISION), $(DATESTAMP), $(BASEVER) and $(DEVPHASE).
1063
1064 2013-12-14 Jan Hubicka <jh@suse.cz>
1065
1066 PR ipa/59473
1067 * ipa-devirt.c (get_class_context): Do not ICE when type is found
1068 at wrong offset.
1069
1070 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1071
1072 PR libgomp/58756
1073 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_REDUCTION>: For
1074 reductions without placeholder if is_simd, but when not using
1075 GOMP_SIMD* internal calls, also perform the reduction operation
1076 on the outer var rather than simple assignment.
1077
1078 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1079
1080 PR middle-end/58956
1081 PR middle-end/59470
1082 * gimple-walk.h (walk_stmt_load_store_addr_fn): New typedef.
1083 (walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Use it
1084 for callback params.
1085 * gimple-walk.c (walk_stmt_load_store_ops): Likewise.
1086 (walk_stmt_load_store_addr_ops): Likewise. Adjust all callback
1087 calls to supply the gimple operand containing the base tree
1088 as an extra argument.
1089 * tree-ssa-ter.c: Include gimple-walk.h.
1090 (find_ssaname, find_ssaname_in_store): New helper functions.
1091 (find_replaceable_in_bb): For calls or GIMPLE_ASM, only set
1092 same_root_var if USE is used somewhere in the stores of the stmt.
1093 * ipa-prop.c (visit_ref_for_mod_analysis): Remove name of the stmt
1094 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1095 * ipa-pure-const.c (check_load, check_store, check_ipa_load,
1096 check_ipa_store): Likewise.
1097 * gimple.c (gimple_ior_addresses_taken_1, check_loadstore): Likewise.
1098 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Likewise.
1099 (verify_non_ssa_vars, visit_bb): Adjust their callers.
1100 * cfgexpand.c (add_scope_conflicts_1): Use
1101 walk_stmt_load_store_addr_fn type for visit variable.
1102 (visit_op, visit_conflict): Remove name of the stmt
1103 argument and ATTRIBUTE_UNUSED, add another unnamed tree argument.
1104 * tree-sra.c (asm_visit_addr): Likewise. Remove name of the data
1105 argument and ATTRIBUTE_UNUSED.
1106 * cgraphbuild.c (mark_address, mark_load, mark_store): Add another
1107 unnamed tree argument.
1108 * gimple-ssa-isolate-paths.c (check_loadstore): Likewise. Remove
1109 ATTRIBUTE_UNUSED from stmt parameter.
1110
1111 2013-12-16 Chung-Lin Tang <cltang@codesourcery.com>
1112
1113 * opts-common.c (integral_argument): Add support for
1114 hexadecimal command option integer arguments. Update comments.
1115
1116 2013-12-14 Jan Hubicka <jh@suse.cz>
1117
1118 PR ipa/59265
1119 * ipa-prop.c (ipa_analyze_call_uses): Skip already
1120 devirtualized calls.
1121
1122 2013-12-14 Jan Hubicka <jh@suse.cz>
1123
1124 PR middle-end/58477
1125 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
1126
1127 2013-12-14 Jan Hubicka <jh@suse.cz>
1128
1129 PR middle-end/58477
1130 * cgraphclones.c (cgraph_clone_edge): Do not resolve speculative edges.
1131
1132 2013-12-14 H.J. Lu <hongjiu.lu@intel.com>
1133
1134 PR target/59492
1135 * config/i386/i386.c (ix86_function_specific_restore): Don't
1136 change -fPIC.
1137
1138 2013-12-14 Eric Botcazou <ebotcazou@adacore.com>
1139
1140 * var-tracking.c (add_stores): Fix oversight in latest commit.
1141
1142 2013-12-14 Marek Polacek <polacek@redhat.com>
1143
1144 PR sanitizer/59503
1145 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Call
1146 expand_binop with correct optab depending on code.
1147
1148 2013-12-14 Tom de Vries <tom@codesourcery.com>
1149
1150 * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
1151
1152 2013-12-13 DJ Delorie <dj@redhat.com>
1153
1154 * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed.
1155
1156 * config/msp430/msp430.md (movqi): replace general_operand with
1157 msp_general_operand and nonimmediate_operand with
1158 msp_nonimmediate_operand to allow volatile operands.
1159 (movhi): Likewise.
1160 (movpsi): Likewise.
1161 (addpsi3): Likewise.
1162 (addhi3): Likewise.
1163 (addhi3_cy): Likewise.
1164 (addchi4_cy): Likewise.
1165 (xor<mode>3): Likewise.
1166 (ome_cmpl<mode>2): Likewise.
1167 (extendqihi2): Likewise.
1168 (zero_extendqihi2): Likewise.
1169 (zero_extendhipsi2): Likewise.
1170 (truncpsihi2): Likewise.
1171 (srai_1): Likewise.
1172
1173 2013-12-13 Vladimir Makarov <vmakarov@redhat.com>
1174
1175 * ira.h (struct ira_reg_equiv): Rename to ira_reg_equiv_s.
1176 * ira.c: Ditto.
1177 * lra-int.h (lra_init_equiv): New prototype.
1178 * lra-constraints.c (lra_init_equiv, update_equiv): New functions.
1179 (loc_equivalence_callback): Use the 3rd arg.
1180 (lra_constraints): Update equivalences. Pass curr_insn to
1181 simplify_replace_fn_rtx.
1182 * lra.c (lra): Call lra_init_equiv.
1183
1184 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1185
1186 * genmodes.c (emit_max_int): Fixed missing parens.
1187
1188 2013-12-13 Aldy Hernandez <aldyh@redhat.com>
1189
1190 PR tree-optimization/59149
1191 * calls.c (flags_from_decl_or_type): Fail on non decl or type.
1192 * trans-mem.c (diagnose_tm_1): Do not call flags_from_decl_or_type
1193 if no type or decl.
1194
1195 2013-12-13 Kenneth Zadeck <zadeck@naturalbridge.com>
1196
1197 * config/arc/arc.h (BITS_PER_UNIT): Removed.
1198 * config/bfin/bfin.h (BITS_PER_UNIT): Removed.
1199 * config/lm32/lm32.h (BITS_PER_UNIT): Removed.
1200 * config/m32c/m32c.h (BITS_PER_UNIT): Removed.
1201 * config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
1202 * config/picochip/picochip.h (BITS_PER_UNIT): Removed.
1203 * config/spu/spu.h (BITS_PER_UNIT): Removed.
1204 * defaults.h (BITS_PER_UNIT): Removed.
1205 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
1206 * doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
1207 (MAX_BITSIZE_MODE_ANY_INT): Updated.
1208 * doc/tm.texi (BITS_PER_UNIT): Removed.
1209 * doc/tm.texi.in (BITS_PER_UNIT): Removed.
1210 * genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
1211 (create_modes): Added code to set bits_per_unit and
1212 max_bitsize_mode_any_int.
1213 (emit_max_int): Changed code generation.
1214 * mkconfig.sh: Added insn-modes.h.
1215
1216 2013-12-13 Jeff Law <law@redhat.com>
1217
1218 PR tree-optimization/45685
1219 * tree-ssa-phiopt.c (neg_replacement): New function.
1220 (tree_ssa_phiopt_worker): Call it.
1221
1222 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1223
1224 * config/i386/i386.c (slm_cost): Fix imul cost for HI.
1225
1226 2013-12-13 Bin Cheng <bin.cheng@arm.com>
1227
1228 PR tree-optimization/58296
1229 PR tree-optimization/41488
1230 * tree-scalar-evolution.c: Include necessary header files.
1231 (simplify_peeled_chrec): New function.
1232 (analyze_evolution_in_loop): New static variable.
1233 Call simplify_peeled_chrec.
1234 * tree-ssa-loop-ivopts.c (mark_bivs): Don't mark peeled IV as biv.
1235 (add_old_iv_candidates): Don't add candidate for peeled IV.
1236 * tree-affine.h (aff_combination_zero_p): New function.
1237
1238 2013-12-13 Nick Clifton <nickc@redhat.com>
1239
1240 * config/msp430/msp430.c (is_wakeup_func): New function. Returns
1241 true if the current function has the wakeup attribute.
1242 (msp430_start_function): Note if the function has the wakeup
1243 attribute.
1244 (msp430_attribute_table): Add wakeup attribute.
1245 (msp430_expand_epilogue): Add support for wakeup functions.
1246 * config/msp430/msp430.md (disable_interrupts): Emit a NOP after
1247 the DINT instruction.
1248 * doc/extend.texi: Document the wakeup attribute.
1249
1250 2013-12-13 Kai Tietz <kitetz@redhat.com>
1251
1252 PR c++/57897
1253 * config/i386/i386.c (ix86_option_override_internal): Set for
1254 x64 target flag_unwind_tables, if flag_asynchronous_unwind_tables
1255 was explicit set.
1256
1257 2013-12-12 Jeff Law <law@redhat.com>
1258
1259 * i386.md (simple LEA peephole2): Add missing mode to zero_extend
1260 for zero-extended MULT simple LEA pattern.
1261
1262 2013-12-12 Vladimir Makarov <vmakarov@redhat.com>
1263
1264 PR middle-end/59470
1265 * lra-coalesce.c (lra_coalesce): Invalidate inheritance pseudo
1266 values if necessary.
1267
1268 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1269
1270 PR libgomp/59467
1271 * gimplify.c (omp_check_private): Add copyprivate argument, if it
1272 is true, don't check omp_privatize_by_reference.
1273 (gimplify_scan_omp_clauses): For OMP_CLAUSE_COPYPRIVATE verify
1274 decl is private in outer context. Adjust omp_check_private caller.
1275
1276 2013-12-11 Jeff Law <law@redhat.com>
1277
1278 PR rtl-optimization/59446
1279 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1280 test for crossing a loop header.
1281
1282 2013-12-11 Sriraman Tallam <tmsriram@google.com>
1283
1284 PR target/59390
1285 * config/i386/i386.c (get_builtin): New function.
1286 (ix86_builtin_vectorized_function): Replace all instances of
1287 ix86_builtins[...] with get_builtin(...).
1288 (ix86_builtin_reciprocal): Ditto.
1289
1290 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1291
1292 * langhooks.h (lang_hooks_for_decls): Remove lang_hooks_for_cilkplus.
1293 (lang_hooks_for_cilkplus): Remove.
1294 * langhooks.c (lhd_cilk_detect_spawn): Likewise.
1295 (lhd_install_body_with_frame_cleanup): Likewise.
1296 * langhooks-def.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1297 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1298 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1299 (LANG_HOOKS_CILKPLUS): Likewise.
1300 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_CILKPLUS.
1301 * gimplify.c (gimplify_expr): Removed CILK_SPAWN_STMT case.
1302 (gimplify_modify_expr): Removed handling of _Cilk_spawn in expr.
1303 (gimplify_call_expr): Likewise.
1304
1305 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1306
1307 * expr.c (expand_assignment): Remove dependency on
1308 flag_strict_volatile_bitfields. Always set the memory access mode.
1309 (expand_expr_real_1): Likewise.
1310
1311 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1312
1313 PR middle-end/59134
1314 * expmed.c (store_bit_field): Use narrow_bit_field_mem and
1315 store_fixed_bit_field_1 for -fstrict-volatile-bitfields.
1316 (store_fixed_bit_field): Split up. Call store_fixed_bit_field_1
1317 to do the real work.
1318 (store_fixed_bit_field_1): New function.
1319 (store_split_bit_field): Limit the unit size to the memory mode size,
1320 to prevent recursion.
1321
1322 2013-12-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1323 Sandra Loosemore <sandra@codesourcery.com>
1324
1325 PR middle-end/23623
1326 PR middle-end/48784
1327 PR middle-end/56341
1328 PR middle-end/56997
1329 * expmed.c (strict_volatile_bitfield_p): Add bitregion_start
1330 and bitregion_end parameters. Test for compliance with C++
1331 memory model.
1332 (store_bit_field): Adjust call to strict_volatile_bitfield_p.
1333 Add fallback logic for cases where -fstrict-volatile-bitfields
1334 is supposed to apply, but cannot.
1335 (extract_bit_field): Likewise. Use narrow_bit_field_mem and
1336 extract_fixed_bit_field_1 to do the extraction.
1337 (extract_fixed_bit_field): Revert to previous mode selection algorithm.
1338 Call extract_fixed_bit_field_1 to do the real work.
1339 (extract_fixed_bit_field_1): New function.
1340
1341 2013-12-11 Sandra Loosemore <sandra@codesourcery.com>
1342
1343 PR middle-end/23623
1344 PR middle-end/48784
1345 PR middle-end/56341
1346 PR middle-end/56997
1347 * expmed.c (strict_volatile_bitfield_p): New function.
1348 (store_bit_field_1): Don't special-case strict volatile
1349 bitfields here.
1350 (store_bit_field): Handle strict volatile bitfields here instead.
1351 (store_fixed_bit_field): Don't special-case strict volatile
1352 bitfields here.
1353 (extract_bit_field_1): Don't special-case strict volatile
1354 bitfields here.
1355 (extract_bit_field): Handle strict volatile bitfields here instead.
1356 (extract_fixed_bit_field): Don't special-case strict volatile
1357 bitfields here. Simplify surrounding code to resemble that in
1358 store_fixed_bit_field.
1359 * doc/invoke.texi (Code Gen Options): Update
1360 -fstrict-volatile-bitfields description.
1361
1362 2013-12-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1363
1364 * configure.ac: Add check for aarch64 assembler -mabi support.
1365 * configure: Regenerate.
1366 * config.in: Regenerate.
1367 * config/aarch64/aarch64-elf.h (ASM_MABI_SPEC): New define.
1368 (ASM_SPEC): Update to substitute -mabi with ASM_MABI_SPEC.
1369 * config/aarch64/aarch64.h (aarch64_override_options): Issue error
1370 if assembler does not support -mabi and option ilp32 is selected.
1371 * doc/install.texi: Added note that building gcc 4.9 and after
1372 with pre 2.24 binutils will not support -mabi=ilp32.
1373
1374 2013-12-11 Marek Polacek <polacek@redhat.com>
1375
1376 PR sanitizer/59399
1377 * expr.c (expand_expr_real_1): Remove assert dealing with
1378 internal calls and turn that into a condition instead.
1379
1380 2013-12-11 Yvan Roux <yvan.roux@linaro.org>
1381
1382 * config/arm/arm.opt (mlra): Enable LRA by default.
1383
1384 2013-12-11 Jakub Jelinek <jakub@redhat.com>
1385
1386 PR tree-optimization/59417
1387 * tree-ssa-copy.c (fini_copy_prop): If copy_of[i].value is defined
1388 in a different bb rhan var, only duplicate points-to info and
1389 not alignment info and don't duplicate range info.
1390 * tree-ssa-loop-niter.c (determine_value_range): Instead of
1391 assertion failure handle inconsistencies in range info by only
1392 using var's range info and not PHI result range infos.
1393
1394 PR tree-optimization/59386
1395 * tree-inline.c (remap_gimple_stmt): If not id->do_not_unshare,
1396 unshare_expr (id->retval) before passing it to gimple_build_assign.
1397
1398 2013-12-11 Bin Cheng <bin.cheng@arm.com>
1399
1400 Reverted:
1401 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1402 PR tree-optimization/41488
1403 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1404 for PEELED_CHREC kind IV.
1405 * tree-scalar-evolution.c: Include necessary header files.
1406 (peeled_chrec_map, simplify_peeled_chrec): New.
1407 (analyze_evolution_in_loop): New static variable.
1408 Call simplify_peeled_chrec.
1409 (scev_initialize): Initialize peeled_chrec_map.
1410 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1411
1412 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1413
1414 PR target/59458
1415 * config/i386/i386.md (*movsf_internal): Set mode to SI for
1416 alternative 13.
1417
1418 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1419
1420 PR rtl-optimization/58295
1421 * simplify-rtx.c (simplify_truncation): Restrict the distribution for
1422 WORD_REGISTER_OPERATIONS targets.
1423
1424 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1425
1426 * genrecog.c (validate_pattern): Treat all messages except missing
1427 modes as errors.
1428 * config/epiphany/epiphany.md: Remove constraints from
1429 define_peephole2s.
1430 * config/h8300/h8300.md: Remove constraints from define_splits.
1431 * config/msp430/msp430.md: Likewise.
1432 * config/mcore/mcore.md (movdi_i, movsf_i, movdf_k): Use
1433 nonimmediate_operand rather than general_operand for operand 0.
1434 * config/moxie/moxie.md (*movsi, *movqi, *movhi): Likewise.
1435 * config/pdp11/predicates.md (float_operand, float_nonimm_operand):
1436 Use match_operator rather than match_test to invoke general_operand.
1437 * config/v850/v850.md (*movqi_internal, *movhi_internal)
1438 (*movsi_internal_v850e, *movsi_internal, *movsf_internal): Likewise.
1439
1440 2013-12-10 Richard Sandiford <rdsandiford@googlemail.com>
1441
1442 * config/tilegx/tilegx.md (insn_ld_add<bitsuffix>): Use
1443 register_operand rather than pointer_operand. Add modes to the
1444 operands.
1445 (insn_ldna_add<bitsuffix>): Likewise.
1446 (insn_ld<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1447 (insn_ldnt_add<bitsuffix>): Likewise.
1448 (insn_ldnt<I124MODE:n><s>_add<I48MODE:bitsuffix>): Likewise.
1449 (insn_ld_add_L2<bitsuffix>): Likewise.
1450 (insn_ldna_add_L2<bitsuffix>): Likewise.
1451 (insn_ld<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1452 (insn_ldnt_add_L2<bitsuffix>): Likewise.
1453 (insn_ldnt<I124MODE:n><s>_add_L2<I48MODE:bitsuffix>): Likewise.
1454 (insn_ld_add_miss<bitsuffix>): Likewise.
1455 (insn_ldna_add_miss<bitsuffix>): Likewise.
1456 (insn_ld<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1457 (insn_ldnt_add_miss<bitsuffix>): Likewise.
1458 (insn_ldnt<I124MODE:n><s>_add_miss<I48MODE:bitsuffix>): Likewise.
1459 (insn_st_add<bitsuffix>): Likewise.
1460 (insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1461 (*insn_st<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1462 (insn_stnt_add<bitsuffix>): Likewise.
1463 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1464 (*insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Likewise.
1465 (vec_pack_<pack_optab>_v4hi): Use register_operand rather than
1466 reg_or_0_operand for operand 0.
1467 (insn_v2<pack_insn>): Likewise.
1468 (vec_pack_hipart_v4hi): Likewise.
1469 (insn_v2packh): Likewise.
1470 (vec_pack_ssat_v2si): Likewise.
1471 (insn_v4packsc): Likewise.
1472
1473 2013-12-10 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 * basic-block.h (gcov_working_set_t): Put back typedef.
1476 * gcov-io.h (gcov_bucket_type): Likewise.
1477 (gcov_working_set_info, gcov_working_set_t): Likewise.
1478
1479 2013-12-10 Oleg Endo <olegendo@gcc.gnu.org>
1480
1481 * cgraph.h (cgraph_node_set_iterator, varpool_node_set_iterator):
1482 Remove typedef.
1483 (cgraph_inline_failed_enum, cgraph_inline_failed_t): Remove typedef and
1484 rename to cgraph_inline_failed_t.
1485 * tree-ssa-alias.h (ao_ref_s, ao_ref): Remove typedef and rename
1486 to ao_ref.
1487 * reload.h (reg_equivs_s, reg_equivs_t): Remove typedef and rename
1488 to reg_equivs_t.
1489 * conditions.h (CC_STATUS): Remove typedef.
1490 * bitmap.h (bitmap_obstack): Remove typedef.
1491 (bitmap_element_def, bitmap_element): Remove typedef and rename to
1492 bitmap_element.
1493 (bitmap_head_def, bitmap_head): Remove typedef and rename to
1494 bitmap_head.
1495 (bitmap_iterator): Remove typedef.
1496 * target.h (cumulative_args_t, print_switch_type,
1497 secondary_reload_info): Remove typedef.
1498 * dwarf2out.h (dw_cfi_oprnd_struct, dw_cfi_oprnd): Remove
1499 dw_cfi_oprnd_struct alias.
1500 (dw_cfi_struct, dw_cfi_node): Remove typedef and rename to dw_cfi_node.
1501 (dw_fde_struct, dw_fde_node): Remove typedef and rename to dw_fde_node.
1502 (cfa_loc, dw_cfa_location): Remove typedef and rename to
1503 dw_cfa_location.
1504 (dw_vec_struct, dw_vec_const): Remove typedef and rename to
1505 dw_vec_const.
1506 (dw_val_struct, dw_val_node): Remove typedef and rename to dw_val_node.
1507 (dw_loc_descr_struct, dw_loc_descr_node): Remove typedef and rename to
1508 dw_loc_descr_node.
1509 * params.h (param_info, compiler_param): Remove typedef.
1510 * opts.h (cl_deferred_param): Remove typedef.
1511 * sreal.h (sreal): Remove typedef.
1512 * ddg.h (dep_type, dep_data_type): Remove typedef.
1513 * graphite-clast-to-gimple.h (cloog_prog_clast, bb_pbb_def): Remove
1514 typedef.
1515 * lto-streamer.h (lto_decl_stream_e_t, lto_encoder_entry,
1516 lto_symtab_encoder_iterator, res_pair): Remove typedef.
1517 * tree-affine.h (affine_tree_combination, aff_tree): Remove typedef
1518 and rename to aff_tree.
1519 * sched-int.h (region): Remove typedef.
1520 * diagnostic.h (diagnostic_info,
1521 diagnostic_classification_change_t): Remove typedef.
1522 * tree-ssa-loop.h (affine_iv_d): Remove typedef and rename to
1523 affine_iv.
1524 * sbitmap.h (sbitmap_iterator): Remove typedef.
1525 * ssa-iterators.h (immediate_use_iterator_d, imm_use_iterator):
1526 Remove typedef and rename to imm_use_iterator.
1527 (ssa_operand_iterator_d, ssa_op_iter): Remove typedef and rename to
1528 ssa_op_iter.
1529 * ggc-internal.h (ggc_statistics): Remove typedef.
1530 * cselib.h (cselib_val_struct, cselib_val): Remove typedef and
1531 rename to cselib_val.
1532 * tree-core.h (alias_pair): Remove typedef.
1533 (constructor_elt_d, constructor_elt): Remove typedef and rename to
1534 constructor_elt.
1535 (ssa_use_operand_d, ssa_use_operand_t): Remove typedef and rename to
1536 ssa_use_operand_t.
1537 * graphite-sese-to-poly.h (base_alias_pair): Remove typedef.
1538 * tree-data-ref.h (conflict_function): Remove typedef.
1539 * tree-inline.h (copy_body_data): Remove typedef.
1540 * ipa-inline.h (condition, size_time_entry, inline_param_summary_t,
1541 edge_growth_cache_entry): Remove typedef.
1542 * regrename.h (operand_rr_info, insn_rr_info): Remove typedef.
1543 * gimple-iterator.h (gimple_stmt_iterator_d, gimple_stmt_iterator):
1544 Remove typedef and rename to gimple_stmt_iterator.
1545 * basic-block.h (ce_if_block, ce_if_block_t): Remove typedef and
1546 rename to ce_if_block.
1547 (edge_iterator): Remove typedef.
1548 * ipa-prop.h (ipa_agg_jf_item, ipa_agg_jf_item_t): Remove typedef
1549 and rename to ipa_agg_jf_item.
1550 (ipa_agg_jump_function_t, ipa_param_descriptor_t, ipa_node_params_t,
1551 ipa_parm_adjustment_t): Remove typedef.
1552 (ipa_jump_func, ipa_jump_func_t): Remove typedef and rename to
1553 ipa_jump_func.
1554 (ipa_edge_args, ipa_edge_args_t): Remove typedef and rename to
1555 ipa_edge_args.
1556 * gcov-io.h (gcov_bucket_type): Remove typedef.
1557 (gcov_working_set_info, gcov_working_set_t): Remove typedef and rename
1558 to gcov_working_set_t.
1559 * ira-int.h (minmax_set_iterator, ira_allocno_iterator,
1560 ira_object_iterator, ira_allocno_object_iterator, ira_pref_iterator,
1561 ira_copy_iterator, ira_object_conflict_iterator): Remove typedef.
1562 * tree-iterator.h (tree_stmt_iterator): Remove typedef.
1563 * rtl.h (addr_diff_vec_flags, mem_attrs, reg_attrs,
1564 replace_label_data): Remove typedef.
1565 (rtunion_def, rtunion): Remove typedef and rename to rtunion.
1566 * hard-reg-set.h (hard_reg_set_iterator): Remove typedef.
1567 * sel-sched-ir.h (_list_iterator, sel_global_bb_info_def,
1568 sel_region_bb_info_def, succ_iterator): Remove typedef.
1569 (deps_where_def, deps_where_t): Remove typedef and rename to
1570 deps_where_t.
1571 * coretypes.h: Adapt forward declarations.
1572 * tree-scalar-evolution.h: Likewise.
1573 * tree-ssa-address.h: Likewise.
1574 * tree-ssa-operands.h: Likewise.
1575 * function.h: Likewise.
1576 * config/frv/frv-protos.h: Likewise.
1577 * targhooks.h: Likewise.
1578 * basic_block.h: Likewise.
1579 * rtl.def: Adapt documentation.
1580 * doc/tm.texi: Likewise.
1581 * ipa-cp.c: Adapt uses.
1582 * bitmap.c: Likewise.
1583 * dwarf2out.c: Likewise.
1584 * target.def: Likewise.
1585 * ipa-inline-analysis.c: Likewise.
1586 * dwarf2cfi.c: Likewise.
1587 * tree-ssa-loop-ivopts.c: Likewise.
1588 * lto-cgraph.c: Likewise.
1589 * config/frv/frv.c: Likewise.
1590 * ifcvt.c: Likewise.
1591 * ipa-prop.c: Likewise.
1592
1593 2013-12-10 Kai Tietz <ktietz@redhat.com>
1594
1595 PR target/56807
1596 * config/i386/i386.c (ix86_expand_prologue): Address saved
1597 registers stack-relative, not via frame-pointer.
1598
1599 2013-12-10 Richard Biener <rguenther@suse.de>
1600
1601 PR middle-end/38474
1602 * tree-ssa-structalias.c (solution_set_expand): Expand into
1603 a different possibly cached bitmap and return the result.
1604 (set_union_with_increment): Pass in a shared expanded bitmap
1605 and adjust.
1606 (do_sd_constraint): Likewise.
1607 (do_ds_constraint): Likewise.
1608 (do_complex_constraint): Likewise.
1609 (solve_graph): Manage the shared expanded bitmap.
1610
1611 2013-12-10 Jakub Jelinek <jakub@redhat.com>
1612
1613 * tree-vectorizer.h (struct _loop_vec_info): Add scalar_loop field.
1614 (LOOP_VINFO_SCALAR_LOOP): Define.
1615 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1616 * config/i386/sse.md (maskload<mode>, maskstore<mode>): New expanders.
1617 * tree-data-ref.c (get_references_in_stmt): Handle MASK_LOAD and
1618 MASK_STORE.
1619 * internal-fn.def (LOOP_VECTORIZED, MASK_LOAD, MASK_STORE): New
1620 internal fns.
1621 * tree-if-conv.c: Include expr.h, optabs.h, tree-ssa-loop-ivopts.h and
1622 tree-ssa-address.h.
1623 (release_bb_predicate): New function.
1624 (free_bb_predicate): Use it.
1625 (reset_bb_predicate): Likewise. Don't unallocate bb->aux
1626 just to immediately allocate it again.
1627 (add_to_predicate_list): Add loop argument. If basic blocks that
1628 dominate loop->latch don't insert any predicate.
1629 (add_to_dst_predicate_list): Adjust caller.
1630 (if_convertible_phi_p): Add any_mask_load_store argument, if true,
1631 handle it like flag_tree_loop_if_convert_stores.
1632 (insert_gimplified_predicates): Likewise.
1633 (ifcvt_can_use_mask_load_store): New function.
1634 (if_convertible_gimple_assign_stmt_p): Add any_mask_load_store
1635 argument, check if some conditional loads or stores can't be
1636 converted into MASK_LOAD or MASK_STORE.
1637 (if_convertible_stmt_p): Add any_mask_load_store argument,
1638 pass it down to if_convertible_gimple_assign_stmt_p.
1639 (predicate_bbs): Don't return bool, only check if the last stmt
1640 of a basic block is GIMPLE_COND and handle that. Adjust
1641 add_to_predicate_list caller.
1642 (if_convertible_loop_p_1): Only call predicate_bbs if
1643 flag_tree_loop_if_convert_stores and free_bb_predicate in that case
1644 afterwards, check gimple_code of stmts here. Replace is_predicated
1645 check with dominance check. Add any_mask_load_store argument,
1646 pass it down to if_convertible_stmt_p and if_convertible_phi_p,
1647 call if_convertible_phi_p only after all if_convertible_stmt_p calls.
1648 (if_convertible_loop_p): Add any_mask_load_store argument,
1649 pass it down to if_convertible_loop_p_1.
1650 (predicate_mem_writes): Emit MASK_LOAD and/or MASK_STORE calls.
1651 (combine_blocks): Add any_mask_load_store argument, pass
1652 it down to insert_gimplified_predicates and call predicate_mem_writes
1653 if it is set. Call predicate_bbs.
1654 (version_loop_for_if_conversion): New function.
1655 (tree_if_conversion): Adjust if_convertible_loop_p and combine_blocks
1656 calls. Return todo flags instead of bool, call
1657 version_loop_for_if_conversion if if-conversion should be just
1658 for the vectorized loops and nothing else.
1659 (main_tree_if_conversion): Adjust caller. Don't call
1660 tree_if_conversion for dont_vectorize loops if if-conversion
1661 isn't explicitly enabled.
1662 * tree-vect-data-refs.c (vect_check_gather): Handle
1663 MASK_LOAD/MASK_STORE.
1664 (vect_analyze_data_refs, vect_supportable_dr_alignment): Likewise.
1665 * gimple.h (gimple_expr_type): Handle MASK_STORE.
1666 * internal-fn.c (expand_LOOP_VECTORIZED, expand_MASK_LOAD,
1667 expand_MASK_STORE): New functions.
1668 * tree-vectorizer.c: Include tree-cfg.h and gimple-fold.h.
1669 (vect_loop_vectorized_call, fold_loop_vectorized_call): New functions.
1670 (vectorize_loops): Don't try to vectorize loops with
1671 loop->dont_vectorize set. Set LOOP_VINFO_SCALAR_LOOP for if-converted
1672 loops, fold LOOP_VECTORIZED internal call depending on if loop
1673 has been vectorized or not.
1674 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1675 New function.
1676 (slpeel_tree_duplicate_loop_to_edge_cfg): Add scalar_loop argument.
1677 If non-NULL, copy basic blocks from scalar_loop instead of loop, but
1678 still to loop's entry or exit edge.
1679 (slpeel_tree_peel_loop_to_edge): Add scalar_loop argument, pass it
1680 down to slpeel_tree_duplicate_loop_to_edge_cfg.
1681 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_loop_alignment):
1682 Adjust callers.
1683 (vect_loop_versioning): If LOOP_VINFO_SCALAR_LOOP, perform loop
1684 versioning from that loop instead of LOOP_VINFO_LOOP, move it to the
1685 right place in the CFG afterwards.
1686 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1687 MASK_STORE.
1688 * cfgloop.h (struct loop): Add dont_vectorize field.
1689 * tree-loop-distribution.c (copy_loop_before): Adjust
1690 slpeel_tree_duplicate_loop_to_edge_cfg caller.
1691 * optabs.def (maskload_optab, maskstore_optab): New optabs.
1692 * passes.def: Add a note that pass_vectorize must immediately follow
1693 pass_if_conversion.
1694 * tree-predcom.c (split_data_refs_to_components): Give up if
1695 DR_STMT is a call.
1696 * tree-vect-stmts.c (vect_mark_relevant): Don't crash if lhs is NULL.
1697 (exist_non_indexing_operands_for_use_p): Handle MASK_LOAD
1698 and MASK_STORE.
1699 (vectorizable_mask_load_store): New function.
1700 (vectorizable_call): Call it for MASK_LOAD or MASK_STORE.
1701 (vect_transform_stmt): Handle MASK_STORE.
1702 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Ignore
1703 DR_STMT where lhs is NULL.
1704 * optabs.h (can_vec_perm_p): Fix up comment typo.
1705 (can_vec_mask_load_store_p): New prototype.
1706 * optabs.c (can_vec_mask_load_store_p): New function.
1707
1708 2013-12-10 Eric Botcazou <ebotcazou@adacore.com>
1709
1710 * expr.c (expand_expr_real_1) <normal_inner_ref>: Always return 0 for
1711 the extraction of a bit-field of null size.
1712
1713 2013-12-10 Marek Polacek <polacek@redhat.com>
1714
1715 PR sanitizer/59437
1716 * vtable-verify.c (var_is_used_for_virtual_call_p): Check the
1717 return value of gimple_call_fn. Use is_gimple_call/is_gimple_assign
1718 instead of gimple_code.
1719
1720 2013-12-10 Maxim Kuvyrkov <maxim@kugelworks.com>
1721
1722 * config.gcc (mips*-mti-linux*, mips64*-*-linux*):
1723 Add android definitions.
1724 (s390x-*-linux*): Use linux-protos.h.
1725
1726 2013-12-10 Bin Cheng <bin.cheng@arm.com>
1727
1728 PR tree-optimization/41488
1729 * tree-ssa-loop-ivopts.c (add_old_iv_candidates): Don't add cand
1730 for PEELED_CHREC kind IV.
1731 * tree-scalar-evolution.c: Include necessary header files.
1732 (peeled_chrec_map, simplify_peeled_chrec): New.
1733 (analyze_evolution_in_loop): New static variable.
1734 Call simplify_peeled_chrec.
1735 (scev_initialize): Initialize peeled_chrec_map.
1736 (scev_reset, scev_finalize): Reset and release peeled_chrec_map.
1737
1738 2013-12-09 Andrew Pinski <apinski@cavium.com>
1739
1740 * config/aarch64/t-aarch64 (MULTILIB_OPTIONS): Fix definition so
1741 that options are conflicting ones.
1742
1743 2013-12-09 Eric Botcazou <ebotcazou@adacore.com>
1744
1745 * optabs.c (gen_int_libfunc): Do not compare modes directly.
1746
1747 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1748
1749 * basic-block.h (FOR_ALL_BB): Eliminate macro.
1750
1751 * cfg.c (alloc_aux_for_blocks, clear_aux_for_blocks): Replace
1752 uses of FOR_ALL_BB with FOR_ALL_BB_FN, making uses of cfun explicit.
1753
1754 * cfganal.c (inverted_post_order_compute): Likewise.
1755 * cfgcleanup.c (try_optimize_cfg): Likewise.
1756 * cfgexpand.c (add_scope_conflicts): Likewise.
1757 * cfghooks.c (dump_flow_info, account_profile_record): Likewise.
1758 * cfgrtl.c (relink_block_chain): Likewise.
1759 * dce.c (mark_artificial_uses): Likewise.
1760 * df-core.c (df_set_blocks, df_compute_cfg_image, df_dump): Likewise.
1761 * df-problems.c (df_lr_verify_solution_start,
1762 df_lr_verify_solution_end, df_lr_verify_transfer_functions,
1763 df_live_verify_solution_start, df_live_verify_solution_end,
1764 df_live_set_all_dirty, df_live_verify_transfer_functions,
1765 df_md_local_comput): Likewise.
1766 * df-scan.c (df_scan_free_internal, df_scan_alloc)
1767 df_reorganize_refs_by_insn, df_scan_verify): Likewise.
1768 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
1769 free_dominance_info): Likewise.
1770 * dse.c (dse_step1, dse_step3, dse_step4, dse_step6): Likewise.
1771 * graph.c (draw_cfg_edges): Likewise.
1772 * graphite-scop-detection.c (print_graphite_scop_statistics,
1773 dot_all_scops_1): Likewise.
1774 * graphite.c (print_global_statistics,
1775 print_graphite_scop_statistics): Likewise.
1776 * ira.c (do_reload): Likewise.
1777 * loop-init.c (loop_optimizer_finalize): Likewise.
1778 * lto-streamer-in.c (input_function): Likewise.
1779 * lto-streamer-out.c (output_function): Likewise.
1780 * mcf.c (adjust_cfg_counts): Likewise.
1781 * predict.c (estimate_loops): Likewise.
1782 * sched-rgn.c (haifa_find_rgns): Likewise.
1783 * tree-cfg.c (split_critical_edges): Likewise.
1784 * tree-dfa.c (renumber_gimple_stmt_uids): Likewise.
1785 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1786 * tree-ssa-pre.c (compute_antic, insert, init_pre): Likewise.
1787 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1788 * var-tracking.c (vt_initialize, vt_finalize): Likewise.
1789 * vtable-verify.c (vtable_verify_main): Likewise.
1790 * web.c (web_main): Likewise.
1791
1792 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1793
1794 * basic-block.h (FOR_EACH_BB_REVERSE): Eliminate macro.
1795
1796 * cfghooks.c (verify_flow_info): Replace uses of FOR_EACH_BB_REVERSE
1797 with FOR_EACH_BB_REVERSE_FN, making uses of cfun explicit.
1798 * cfgrtl.c (print_rtl_with_bb, rtl_verify_edges,
1799 rtl_verify_bb_insns, rtl_verify_bb_pointers,
1800 rtl_verify_bb_insn_chain, rtl_verify_fallthru): Likewise.
1801 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1802 * config/sh/sh.c (sh_md_init_global): Likewise.
1803 * config/sh/sh_optimize_sett_clrt.cc
1804 (sh_optimize_sett_clrt::execute): Likewise.
1805 * dce.c (reset_unmarked_insns_debug_uses, delete_unmarked_insns):
1806 Likewise.
1807 * dominance.c (calc_dfs_tree): Likewise.
1808 * final.c (final): Likewise.
1809 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1810 * gcse.c (compute_code_hoist_vbeinout): Likewise.
1811 * ira.c (update_equiv_regs, build_insn_chain): Likewise.
1812 * lcm.c (compute_antinout_edge): Likewise.
1813 * mode-switching.c (optimize_mode_switching): Likewise.
1814 * postreload.c (reload_combine): Likewise.
1815 * recog.c (split_all_insns, peephole2_optimize): Likewise.
1816 * tree-ssa-live.c (live_worklist): Likewise.
1817
1818 2013-12-09 David Malcolm <dmalcolm@redhat.com>
1819
1820 * basic-block.h (FOR_EACH_BB): Eliminate macro.
1821
1822 * asan.c (transform_statements, execute_sanopt): Eliminate
1823 use of FOR_EACH_BB in favor of FOR_EACH_BB_FN, to make use of cfun
1824 explicit.
1825 * auto-inc-dec.c (rest_of_handle_auto_inc_dec): Likewise.
1826 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges,
1827 set_edge_can_fallthru_flag, fix_up_fall_thru_edges,
1828 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes,
1829 insert_section_boundary_note, rest_of_handle_reorder_blocks,
1830 duplicate_computed_gotos): Likewise.
1831 * cfg.c (clear_edges, compact_blocks, brief_dump_cfg): Likewise.
1832 * cfganal.c (find_unreachable_blocks, add_noreturn_fake_exit_edges,
1833 compute_dominance_frontiers_1, single_pred_before_succ_order): Likewise.
1834 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
1835 * cfgcleanup.c (try_optimize_cfg, delete_dead_jumptables): Likewise.
1836 * cfgexpand.c (add_scope_conflicts, discover_nonconstant_array_refs):
1837 Likewise.
1838 * cfgloop.c (flow_loops_cfg_dump, get_loop_body, record_loop_exits,
1839 verify_loop_structure): Likewise.
1840 * cfgloopanal.c (mark_loop_exit_edges): Likewise.
1841 * cfgrtl.c (compute_bb_for_insn, find_partition_fixes,
1842 verify_hot_cold_block_grouping, purge_all_dead_edges,
1843 fixup_abnormal_edges, record_effective_endpoints,
1844 outof_cfg_layout_mode, fixup_reorder_chain, force_one_exit_fallthru,
1845 break_superblocks): Likewise.
1846 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges,
1847 cgraph_rebuild_references): Likewise.
1848 * combine-stack-adj.c (combine_stack_adjustments): Likewise.
1849 * combine.c (delete_noop_moves, create_log_links,
1850 combine_instructions): Likewise.
1851 * config/arm/arm.c (thumb1_reorg, thumb2_reorg): Likewise.
1852 * config/bfin/bfin.c (bfin_gen_bundles, reorder_var_tracking_notes):
1853 Likewise.
1854 * config/c6x/c6x.c (c6x_gen_bundles, conditionalize_after_sched,
1855 c6x_reorg): Likewise.
1856 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
1857 * config/frv/frv.c (frv_optimize_membar): Likewise.
1858 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
1859 * config/ia64/ia64.c (ia64_reorg): Likewise.
1860 * config/mips/mips.c (mips_annotate_pic_calls): Likewise.
1861 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1862 * config/rs6000/rs6000.c (rs6000_alloc_sdmode_stack_slot): Likewise.
1863 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
1864 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Likewise.
1865 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
1866 * config/tilegx/tilegx.c (tilegx_gen_bundles,
1867 reorder_var_tracking_notes): Likewise.
1868 * config/tilepro/tilepro.c (tilepro_gen_bundles,
1869 reorder_var_tracking_notes): Likewise.
1870 * coverage.c (coverage_compute_cfg_checksum): Likewise.
1871 * cprop.c (compute_hash_table_work, compute_cprop_data,
1872 local_cprop_pass, find_implicit_sets): Likewise.
1873 * cse.c (cse_condition_code_reg): Likewise.
1874 * dce.c (prescan_insns_for_dce): Likewise.
1875 * df-core.c (df_compact_blocks): Likewise.
1876 * df-problems.c (df_word_lr_alloc): Likewise.
1877 * df-scan.c (df_scan_start_dump, df_scan_blocks, df_insn_rescan_all,
1878 df_update_entry_exit_and_calls): Likewise.
1879 * dominance.c (calculate_dominance_info, verify_dominators,
1880 debug_dominance_info): Likewise.
1881 * dse.c (dse_step5_nospill): Likewise.
1882 * except.c (finish_eh_generation): Likewise.
1883 * final.c (compute_alignments): Likewise.
1884 * function.c (thread_prologue_and_epilogue_insns,
1885 rest_of_match_asm_constraints): Likewise.
1886 * gcse.c (compute_hash_table_work, prune_expressions,
1887 compute_pre_data, compute_code_hoist_vbeinout, hoist_code,
1888 calculate_bb_reg_pressure, compute_ld_motion_mems): Likewise.
1889 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1890 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour,
1891 find_explicit_erroneous_behaviour): Likewise.
1892 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa,
1893 rewrite_cross_bb_scalar_deps_out_of_ssa): Likewise.
1894 * haifa-sched.c (haifa_sched_init): Likewise.
1895 * hw-doloop.c (discover_loops, set_bb_indices, reorder_loops):
1896 Likewise.
1897 * ifcvt.c (if_convert): Likewise.
1898 * init-regs.c (initialize_uninitialized_regs): Likewise.
1899 * ipa-prop.c (ipcp_transform_function): Likewise.
1900 * ipa-pure-const.c (analyze_function): Likewise.
1901 * ipa-split.c (find_split_points, execute_split_functions): Likewise.
1902 * ira-build.c (form_loop_tree): Likewise.
1903 * ira-costs.c (find_costs_and_classes): Likewise.
1904 * ira-emit.c (emit_moves, add_ranges_and_copies, ira_emit): Likewise.
1905 * ira.c (decrease_live_ranges_number, compute_regs_asm_clobbered,
1906 mark_elimination, update_equiv_regs, find_moveable_pseudos,
1907 split_live_ranges_for_shrink_wrap, allocate_initial_values): Likewise.
1908 * jump.c (mark_all_labels): Likewise.
1909 * lcm.c (compute_laterin, compute_insert_delete, compute_available,
1910 compute_nearerout, compute_rev_insert_delete): Likewise.
1911 * loop-init.c (fix_loop_structure): Likewise.
1912 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1913 * lower-subreg.c (decompose_multiword_subregs,
1914 decompose_multiword_subregs): Likewise.
1915 * lra-assigns.c (assign_by_spills): Likewise.
1916 * lra-coalesce.c (lra_coalesce): Likewise.
1917 * lra-constraints.c (lra_inheritance, remove_inheritance_pseudos):
1918 Likewise.
1919 * lra-eliminations.c (lra_init_elimination): Likewise.
1920 * lra-spills.c (assign_spill_hard_regs, spill_pseudos,
1921 lra_final_code_change): Likewise.
1922 * lra.c (remove_scratches, check_rtl, has_nonexceptional_receiver,
1923 update_inc_notes): Likewise.
1924 * mcf.c (adjust_cfg_counts): Likewise.
1925 * mode-switching.c (optimize_mode_switching): Likewise.
1926 * modulo-sched.c (rest_of_handle_sms): Likewise.
1927 * omp-low.c (optimize_omp_library_calls, expand_omp_taskreg,
1928 expand_omp_target): Likewise.
1929 * postreload-gcse.c (alloc_mem, compute_hash_table): Likewise.
1930 * postreload.c (reload_cse_regs_1): Likewise.
1931 * predict.c (strip_predict_hints, tree_bb_level_predictions,
1932 tree_estimate_probability, expensive_function_p,
1933 estimate_bb_frequencies, compute_function_frequency): Likewise.
1934 * profile.c (is_inconsistent, compute_branch_probabilities,
1935 branch_prob): Likewise.
1936 * ree.c (find_removable_extensions): Likewise.
1937 * reg-stack.c (compensate_edges, convert_regs, reg_to_stack): Likewise.
1938 * regcprop.c (copyprop_hardreg_forward): Likewise.
1939 * reginfo.c (init_subregs_of_mode): Likewise.
1940 * regrename.c (regrename_analyze): Likewise.
1941 * regstat.c (regstat_compute_ri, regstat_compute_calls_crossed):
1942 Likewise.
1943 * reload1.c (has_nonexceptional_receiver, reload,
1944 calculate_elim_costs_all_insns): Likewise.
1945 * resource.c (init_resource_info, free_resource_info): Likewise.
1946 * sched-ebb.c (schedule_ebbs): Likewise.
1947 * sched-rgn.c (is_cfg_nonregular, find_single_block_region,
1948 haifa_find_rgns, sched_rgn_local_init): Likewise.
1949 * sel-sched-dump.c (sel_dump_cfg_2): Likewise.
1950 * sel-sched-ir.c (init_lv_sets, free_lv_sets,
1951 make_regions_from_the_rest): Likewise.
1952 * sese.c (build_sese_loop_nests, sese_build_liveouts): Likewise.
1953 * stack-ptr-mod.c (notice_stack_pointer_modification): Likewise.
1954 * store-motion.c (compute_store_table, build_store_vectors,
1955 one_store_motion_pass): Likewise.
1956 * tracer.c (tail_duplicate): Likewise.
1957 * trans-mem.c (compute_transaction_bits): Likewise.
1958 * tree-call-cdce.c (tree_call_cdce): Likewise.
1959 * tree-cfg.c (replace_loop_annotate, factor_computed_gotos,
1960 fold_cond_expr_cond, make_edges, assign_discriminators,
1961 make_abnormal_goto_edges, cleanup_dead_labels, group_case_labels,
1962 dump_cfg_stats, gimple_verify_flow_info, print_loop,
1963 execute_fixup_cfg): Likewise.
1964 * tree-cfgcleanup.c (cleanup_tree_cfg_1, merge_phi_nodes): Likewise.
1965 * tree-complex.c (init_dont_simulate_again, tree_lower_complex):
1966 Likewise.
1967 * tree-dfa.c (collect_dfa_stats, dump_enumerated_decls): Likewise.
1968 * tree-eh.c (execute_lower_resx, execute_lower_eh_dispatch,
1969 mark_reachable_handlers): Likewise.
1970 * tree-emutls.c (lower_emutls_function_body): Likewise.
1971 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1972 * tree-inline.c (optimize_inline_calls): Likewise.
1973 * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Likewise.
1974 * tree-nrv.c (tree_nrv, execute_return_slot_opt): Likewise.
1975 * tree-object-size.c (compute_object_sizes): Likewise.
1976 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees,
1977 insert_backedge_copies, tree_profiling): Likewise.
1978 * tree-scalar-evolution.c (scev_const_prop): Likewise.
1979 * tree-sra.c (scan_function, sra_modify_function_body,
1980 propagate_dereference_distances, ipa_sra_modify_function_body,
1981 convert_callers): Likewise.
1982 * tree-ssa-ccp.c (ccp_initialize, execute_fold_all_builtins): Likewise.
1983 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1984 create_outofssa_var_map, coalesce_partitions): Likewise.
1985 * tree-ssa-copy.c (init_copy_prop): Likewise.
1986 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1987 * tree-ssa-dce.c (find_obviously_necessary_stmts,
1988 eliminate_unnecessary_stmts): Likewise.
1989 * tree-ssa-dom.c (free_all_edge_infos, tree_ssa_dominator_optimize):
1990 Likewise.
1991 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
1992 * tree-ssa-live.c (clear_unused_block_pointer, remove_unused_locals,
1993 new_tree_live_info, calculate_live_on_exit, dump_live_info,
1994 analyze_memory_references, fill_always_executed_in,
1995 tree_ssa_lim_finalize): Likewise.
1996 * tree-ssa-loop-manip.c (find_uses_to_rename, verify_loop_closed_ssa):
1997 Likewise.
1998 * tree-ssa-math-opts.c (execute_cse_reciprocals, execute_cse_sincos,
1999 execute_optimize_bswap, execute_optimize_widening_mul): Likewise.
2000 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
2001 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2002 * tree-ssa-tail-merge.c (find_same_succ, reset_cluster_vectors):
2003 Likewise.
2004 * tree-ssa-ter.c (find_replaceable_exprs): Likewise.
2005 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2006 * tree-ssa-uncprop.c (associate_equivalences_with_edges,
2007 tree_ssa_uncprop): Likewise.
2008 * tree-ssa-uninit.c (warn_uninitialized_vars,
2009 execute_late_warn_uninitialized): Likewise.
2010 * tree-ssa.c (verify_ssa, execute_update_addresses_taken): Likewise.
2011 * tree-stdarg.c (check_all_va_list_escapes, execute_optimize_stdarg):
2012 Likewise.
2013 * tree-switch-conversion.c (do_switchconv): Likewise.
2014 * tree-vect-generic.c (expand_vector_operations): Likewise.
2015 * tree-vectorizer.c (adjust_simduid_builtins, note_simd_array_uses,
2016 execute_vect_slp): Likewise.
2017 * tree-vrp.c (check_all_array_refs, remove_range_assertions,
2018 vrp_initialize, identify_jump_threads, instrument_memory_accesses):
2019 Likewise.
2020 * ubsan.c (ubsan_pass): Likewise.
2021 * value-prof.c (verify_histograms,
2022 gimple_value_profile_transformations, gimple_find_values_to_profile):
2023 Likewise.
2024 * var-tracking.c (vt_find_locations, dump_dataflow_sets, vt_emit_notes,
2025 vt_initialize, delete_debug_insns, vt_finalize): Likewise.
2026
2027 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2028
2029 * basic-block.h (last_basic_block): Eliminate macro.
2030
2031 * asan.c (transform_statements): Eliminate use of last_basic_block
2032 in favor of last_basic_block_for_fn, in order to make use of cfun
2033 explicit.
2034 * bb-reorder.c (copy_bb, reorder_basic_blocks): Likewise.
2035 * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out,
2036 link_btr_uses, build_btr_def_use_webs, migrate_btr_defs): Likewise.
2037 * cfg.c (compact_blocks): Likewise.
2038 * cfganal.c (mark_dfs_back_edges,
2039 control_dependences::control_dependences, post_order_compute,
2040 pre_and_rev_post_order_compute_fn, dfs_enumerate_from, compute_idf,
2041 single_pred_before_succ_order): Likewise.
2042 * cfgbuild.c (make_edges): Likewise.
2043 * cfgexpand.c (add_scope_conflicts, gimple_expand_cfg): Likewise.
2044 * cfghooks.c (verify_flow_info): Likewise.
2045 * cfgloop.c (verify_loop_structure): Likewise.
2046 * cfgloopanal.c (just_once_each_iteration_p,
2047 mark_irreducible_loops): Likewise.
2048 * cfgloopmanip.c (fix_bb_placements, remove_path,
2049 update_dominators_in_loop): Likewise.
2050 * cfgrtl.c (create_basic_block_structure, rtl_create_basic_block,
2051 break_superblocks, rtl_flow_call_edges_add): Likewise.
2052 * config/epiphany/resolve-sw-modes.c (resolve_sw_modes): Likewise.
2053 * config/frv/frv.c (frv_optimize_membar): Likewise.
2054 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2055 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2056 * cprop.c (compute_local_properties, find_implicit_sets,
2057 bypass_conditional_jumps, one_cprop_pass): Likewise.
2058 * cse.c (cse_main): Likewise.
2059 * df-core.c (rest_of_handle_df_initialize, df_worklist_dataflow,
2060 df_analyze, df_grow_bb_info, df_compact_blocks): Likewise.
2061 * df-problems.c (df_lr_verify_solution_start,
2062 df_live_verify_solution_start, df_md_local_compute): Likewise.
2063 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2064 calc_idoms): Likewise.
2065 * domwalk.c (dom_walker::walk): Likewise.
2066 * dse.c (dse_step0, dse_step3): Likewise.
2067 * function.c (epilogue_done): Likewise.
2068 * gcse.c (alloc_gcse_mem, compute_local_properties,
2069 prune_insertions_deletions, compute_pre_data,
2070 pre_expr_reaches_here_p, one_pre_gcse_pass,
2071 compute_code_hoist_vbeinout, should_hoist_expr_to_dom, hoist_code,
2072 one_code_hoisting_pass): Likewise.
2073 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2074 * graphite-sese-to-poly.c (build_scop_bbs): Likewise.
2075 * haifa-sched.c (unlink_bb_notes): Likewise.
2076 * ipa-split.c (execute_split_functions): Likewise.
2077 * ira-build.c (create_loop_tree_nodes, remove_unnecessary_regions):
2078 Likewise.
2079 * ira-emit.c (ira_emit): Likewise.
2080 * ira.c (find_moveable_pseudos, ira): Likewise.
2081 * lcm.c (compute_antinout_edge, compute_laterin,
2082 compute_insert_delete, pre_edge_lcm, compute_available,
2083 compute_nearerout, compute_rev_insert_delete,
2084 pre_edge_rev_lcm): Likewise.
2085 * loop-unroll.c (opt_info_start_duplication, apply_opt_in_copies):
2086 Likewise.
2087 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2088 * lra-lives.c (lra_create_live_ranges): Likewise.
2089 * lra.c (lra): Likewise.
2090 * mode-switching.c (optimize_mode_switching): Likewise.
2091 * recog.c (split_all_insns): Likewise.
2092 * regcprop.c (copyprop_hardreg_forward): Likewise.
2093 * regrename.c (regrename_analyze): Likewise.
2094 * reload1.c (reload): Likewise.
2095 * resource.c (init_resource_info): Likewise.
2096 * sched-rgn.c (haifa_find_rgns, extend_rgns, compute_trg_info,
2097 realloc_bb_state_array, schedule_region, extend_regions): Likewise.
2098 * sel-sched-ir.c (sel_extend_global_bb_info, extend_region_bb_info,
2099 recompute_rev_top_order, sel_init_pipelining,
2100 make_regions_from_the_rest): Likewise.
2101 * store-motion.c (remove_reachable_equiv_notes,build_store_vectors)
2102 Likewise.
2103 * tracer.c (tail_duplicate): Likewise.
2104 * trans-mem.c (tm_region_init, get_bb_regions_instrumented): Likewise.
2105 * tree-cfg.c (create_bb, cleanup_dead_labels, gimple_dump_cfg,
2106 gimple_flow_call_edges_add): Likewise.
2107 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls,
2108 cleanup_tree_cfg_1): Likewise.
2109 * tree-complex.c (tree_lower_complex): Likewise.
2110 * tree-inline.c (copy_cfg_body): Likewise.
2111 * tree-into-ssa.c (mark_phi_for_rewrite, rewrite_into_ssa,
2112 prepare_def_site_for, update_ssa): Likewise.
2113 * tree-ssa-dce.c (tree_dce_init, perform_tree_ssa_dce): Likewise.
2114 * tree-ssa-dom.c (record_edge_info): Likewise.
2115 * tree-ssa-live.c (new_tree_live_info, live_worklist): Likewise.
2116 * tree-ssa-loop-im.c (fill_always_executed_in_1): Likewise.
2117 * tree-ssa-loop-manip.c (copy_phi_node_args
2118 gimple_duplicate_loop_to_header_edge): Likewise.
2119 * tree-ssa-pre.c (compute_antic): Likewise.
2120 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2121 * tree-ssa-reassoc.c (init_reassoc): Likewise.
2122 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2123 * tree-ssa-tail-merge.c (init_worklist): Likewise.
2124 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2125 * tree-stdarg.c (reachable_at_most_once): Likewise.
2126 * tree-vrp.c (find_assert_locations): Likewise.
2127 * var-tracking.c (vt_find_locations): Likewise.
2128
2129 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2130
2131 * basic-block.h (profile_status): Eliminate macro.
2132
2133 * cfgbuild.c (find_many_sub_basic_blocks): Eliminate use of
2134 profile_status macro in favor of profile_status_for_fn, making
2135 use of cfun explicit.
2136 * cfghooks.c (account_profile_record): Likewise.
2137 * cfgloopanal.c (single_likely_exit):
2138 * cfgrtl.c (rtl_verify_edges, rtl_account_profile_record): Likewise.
2139 * graphite.c (graphite_finalize):
2140 * internal-fn.c (ubsan_expand_si_overflow_addsub_check,
2141 ubsan_expand_si_overflow_neg_check,
2142 ubsan_expand_si_overflow_mul_check): Likewise.
2143 * ipa-split.c (consider_split, execute_split_functions):
2144 * loop-unroll.c (decide_peel_simple):
2145 * optabs.c (emit_cmp_and_jump_insn_1):
2146 * predict.c (maybe_hot_edge_p, probably_never_executed,
2147 predictable_edge_p, probability_reliable_p, gimple_predict_edge,
2148 tree_estimate_probability_driver, estimate_bb_frequencies,
2149 compute_function_frequency, rebuild_frequencies): Likewise.
2150 * profile.c (compute_branch_probabilities): Likewise.
2151 * tree-cfg.c (gimple_account_profile_record): Likewise.
2152 * tree-inline.c (optimize_inline_calls): Likewise.
2153
2154 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2155
2156 * basic-block.h (label_to_block_map): Eliminate macro.
2157
2158 * gimple.c (gimple_set_bb): Replace uses of label_to_block_map with
2159 uses of label_to_block_map_for_fn, making uses of cfun be explicit.
2160 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2161 (verify_gimple_label): Likewise.
2162
2163 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2164
2165 * basic-block.h (basic_block_info): Eliminate macro.
2166
2167 * cfgrtl.c (rtl_create_basic_block): Replace uses of basic_block_info
2168 with basic_block_info_for_fn, making uses of cfun be explicit.
2169 * tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
2170
2171 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2172
2173 * basic-block.h (BASIC_BLOCK): Eliminate macro.
2174
2175 * alias.c (init_alias_analysis): Eliminate BASIC_BLOCK macro in
2176 favor of uses of BASIC_BLOCK_FOR_FN, making uses of cfun explicit.
2177 * bt-load.c (compute_defs_uses_and_gen, compute_out, link_btr_uses,
2178 block_at_edge_of_live_range_p, migrate_btr_defs): Likewise.
2179 * caller-save.c (insert_one_insn): Likewise.
2180 * cfg.c (debug_bb, get_bb_original, get_bb_copy): Likewise.
2181 * cfgexpand.c (add_scope_conflicts): Likewise.
2182 * cfghooks.c (verify_flow_info): Likewise.
2183 * cfgloop.c (flow_loops_find): Likewise.
2184 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2185 * config/mips/mips.c (r10k_insert_cache_barriers): Likewise.
2186 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
2187 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
2188 * cse.c (cse_main): Likewise.
2189 * dce.c (fast_dce): Likewise.
2190 * df-core.c (df_set_blocks, df_worklist_propagate_forward,
2191 df_worklist_propagate_backward, df_worklist_dataflow_doublequeue,
2192 df_bb_replace, df_dump_region): Likewise.
2193 * df-problems.c (df_rd_bb_local_compute, df_lr_bb_local_compute,
2194 df_live_bb_local_compute, df_chain_remove_problem)
2195 df_chain_create_bb, df_word_lr_bb_local_compute, df_note_bb_compute,
2196 df_md_bb_local_compute, df_md_local_compute,
2197 df_md_transfer_function): Likewise.
2198 * df-scan.c (df_scan_blocks, df_reorganize_refs_by_reg_by_insn,
2199 df_reorganize_refs_by_insn, df_bb_refs_collect,
2200 df_record_entry_block_defs, df_update_entry_block_defs,
2201 df_record_exit_block_uses): Likewise.
2202 * dominance.c (nearest_common_dominator_for_set): Likewise.
2203 * gcse.c (hoist_code): Likewise.
2204 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2205 * ipa-inline-analysis.c (param_change_prob,
2206 estimate_function_body_sizes): Likewise.
2207 * ipa-split.c (dominated_by_forbidden): Likewise.
2208 * loop-unroll.c (apply_opt_in_copies): Likewise.
2209 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2210 * lra-lives.c (lra_create_live_ranges): Likewise.
2211 * predict.c (propagate_freq): Likewise.
2212 * regrename.c (regrename_analyze): Likewise.
2213 * regstat.c (regstat_bb_compute_ri, regstat_bb_compute_calls_crossed):
2214 Likewise.
2215 * resource.c (mark_target_live_regs): Likewise.
2216 * sched-ebb.c (ebb_fix_recovery_cfg): Likewise.
2217 * sched-int.h (EBB_FIRST_BB, EBB_LAST_BB): Likewise.
2218 * sched-rgn.c (debug_region, dump_region_dot, too_large,
2219 haifa_find_rgns, extend_rgns, compute_dom_prob_ps, update_live,
2220 propagate_deps, sched_is_disabled_for_current_region_p): Likewise.
2221 * sched-vis.c (debug_bb_n_slim): Likewise.
2222 * sel-sched-ir.c (sel_finish_global_and_expr, verify_backedges,
2223 purge_empty_blocks, sel_remove_loop_preheader): Likewise.
2224 * sel-sched.c (remove_insns_that_need_bookkeeping)
2225 (current_region_empty_p, sel_region_init, simplify_changed_insns):
2226 Likewise.
2227 * trans-mem.c (execute_tm_mark, execute_tm_edges,
2228 tm_memopt_compute_antic, ipa_tm_scan_irr_function): Likewise.
2229 * tree-cfg.c (make_edges, end_recording_case_labels,
2230 label_to_block_fn, gimple_debug_bb, gimple_flow_call_edges_add,
2231 remove_edge_and_dominated_blocks, remove_edge_and_dominated_blocks,
2232 gimple_purge_all_dead_eh_edges,
2233 gimple_purge_all_dead_abnormal_call_edges): Likewise.
2234 * tree-cfgcleanup.c (fixup_noreturn_call,
2235 split_bbs_on_noreturn_calls, cleanup_tree_cfg_1): Likewise.
2236 * tree-inline.c (copy_cfg_body, fold_marked_statements): Likewise.
2237 * tree-into-ssa.c (set_livein_block, prune_unused_phi_nodes,
2238 insert_phi_nodes_for, insert_updated_phi_nodes_for): Likewise.
2239 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2240 * tree-ssa-live.c (live_worklist): Likewise.
2241 * tree-ssa-loop-manip.c (compute_live_loop_exits, add_exit_phis_var,
2242 find_uses_to_rename, copy_phi_node_args): Likewise.
2243 * tree-ssa-pre.c (compute_antic): Likewise.
2244 * tree-ssa-reassoc.c (update_range_test, optimize_range_tests):
2245 Likewise.
2246 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2247 * tree-ssa-tail-merge.c (same_succ_hash, same_succ_def::equal,
2248 same_succ_flush_bbs, update_worklist, set_cluster,
2249 same_phi_alternatives, find_clusters_1, apply_clusters,
2250 update_debug_stmts): Likewise.
2251 * tree-ssa-threadupdate.c (mark_threaded_blocks,
2252 thread_through_all_blocks): Likewise.
2253 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
2254 * tree-vrp.c (find_assert_locations): Likewise.
2255
2256 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2257
2258 * basic-block.h (SET_BASIC_BLOCK): Eliminate macro.
2259
2260 * cfg.c (compact_blocks): Replace uses of SET_BASIC_BLOCK
2261 with SET_BASIC_BLOCK_FOR_FN, making use of cfun explicit.
2262 (expunge_block): Likewise.
2263 * cfgrtl.c (create_basic_block_structure): Likewise.
2264 * df-core.c (df_compact_blocks, df_bb_replace): Likewise.
2265 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2266 * tree-cfg.c (create_bb): Likewise.
2267
2268 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2269
2270 * basic-block.h (profile_status_for_function): Rename to...
2271 (profile_status_for_fn): ...this.
2272
2273 * cfg.c (check_bb_profile): Update for renaming.
2274 * cgraphbuild.c (compute_call_stmt_bb_frequency): Likewise.
2275 * lto-streamer-in.c (input_cfg): Likewise.
2276 * lto-streamer-out.c (output_cfg): Likewise.
2277 * predict.c (maybe_hot_frequency_p, maybe_hot_count_p,
2278 maybe_hot_bb_p, probably_never_executed)
2279 (handle_missing_profiles): Likewise.
2280 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2281 * tree-inline.c (copy_bb, initialize_cfun): Likewise.
2282
2283 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2284
2285 * basic-block.h (label_to_block_map_for_function): Rename to...
2286 (label_to_block_map_for_fn): ...this.
2287
2288 * lto-streamer-in.c (input_cfg): Update for renaming.
2289 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2290
2291 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2292
2293 * basic-block.h (last_basic_block_for_function): Rename to...
2294 (last_basic_block_for_fn): ...this.
2295
2296 * ipa-utils.c (ipa_merge_profiles): Update for renaming of
2297 last_basic_block_for_function to last_basic_block_for_fn.
2298 * lto-streamer-in.c (input_cfg): Likewise.
2299 * lto-streamer-out.c (output_cfg): Likewise.
2300 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2301 * tree-sra.c (propagate_dereference_distances, ipa_early_sra):
2302 Likewise.
2303
2304 2013-12-09 David Malcolm <dmalcolm@redhat.com>
2305
2306 * basic-block.h (basic_block_info_for_function): Rename to...
2307 (basic_block_info_for_fn): ...this.
2308 (BASIC_BLOCK_FOR_FUNCTION): Rename to...
2309 (BASIC_BLOCK_FOR_FN): ...this.
2310 (SET_BASIC_BLOCK_FOR_FUNCTION): Rename to...
2311 (SET_BASIC_BLOCK_FOR_FN): ...this.
2312
2313 * gimple-streamer-in.c (input_phi, input_bb): Update for renaming
2314 of BASIC_BLOCK_FOR_FUNCTION to BASIC_BLOCK_FOR_FN.
2315 * ipa-utils.c (ipa_merge_profiles): Likewise.
2316 * lto-streamer-in.c (make_new_block): Update for renaming of
2317 SET_BASIC_BLOCK_FOR_FUNCTION to SET_BASIC_BLOCK_FOR_FN.
2318 (input_cfg): Update for renamings.
2319 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2320 (dump_function_to_file): Update for renaming of
2321 basic_block_info_for_function to basic_block_info_for_fn.
2322
2323 2013-12-09 Richard Biener <rguenther@suse.de>
2324
2325 PR middle-end/38474
2326 * tree-ssa-structalias.c (set_union_with_increment): Remove
2327 unreachable code.
2328 (do_complex_constraint): Call set_union_with_increment with
2329 the solution delta, not the full solution.
2330 (make_transitive_closure_constraints): Merge the two constraints.
2331
2332 2013-12-09 Richard Earnshaw <rearnsha@arm.com>
2333
2334 * arm.c (mem_ok_for_ldrd_strd): Rename first argument as MEM. Do
2335 more address validation checks.
2336
2337 2013-12-09 Marek Polacek <polacek@redhat.com>
2338
2339 PR sanitizer/59415
2340 * vtable-verify.c (verify_bb_vtables): Check the return value
2341 of gimple_call_fn. Use is_gimple_call instead of gimple_code.
2342
2343 2013-12-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2344
2345 * config/arm/arm.md (generic_sched): Add cortexa12.
2346 (generic_vfp): Likewise.
2347 * config/arm/arm.c (cortexa12_extra_costs): New cost table.
2348 (arm_cortex_a12_tune): New tuning struct.
2349 * config/arm/arm-cores.def: Add cortex-a12.
2350 * config/arm/arm-tables.opt: Regenerate.
2351 * config/arm/arm-tune.md: Likewise.
2352 * config/arm/bpabi.h: Add cortex-a12.
2353 * doc/invoke.texi: Document -mcpu=cortex-a12.
2354
2355 2013-12-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2356
2357 * doc/install.texi (Prerequisites): Explicitly mention C library
2358 and its headers for multilib builds.
2359
2360 2013-12-08 Oleg Endo <olegendo@gcc.gnu.org>
2361
2362 PR target/52898
2363 PR target/51697
2364 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
2365 OPT_mcbranchdi entry.
2366 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Mark as undocumented and
2367 emit a warning.
2368 * config/sh/sh.c (sh_option_override): Initialize TARGET_CBRANCHDI4
2369 and TARGET_CMPEQDI_T variables.
2370 * doc/invoke.texi (SH options): Undocument -mcbranchdi and -mcmpeqdi.
2371
2372 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2373
2374 * config/linux.h: Fix typo in a comment.
2375
2376 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2377
2378 * config.gcc (*linux*): Split libc selection from Android support.
2379 Add libc selection to all *linux* targets. Add Android support to
2380 architectures that support it.
2381 (arm*-*-linux-*, i[34567]86-*-linux*, x86_64-*-linux*,)
2382 (mips*-*-linux*): Add Android support.
2383
2384 2013-12-07 Alexander Ivchenko <alexander.ivchenko@intel.com>
2385 Maxim Kuvyrkov <maxim@kugelworks.com>
2386
2387 * config/bfin/uclinux.h, config/c6x/uclinux-elf.h,
2388 * config/lm32/uclinux-elf.h, config/m68k/uclinux.h,
2389 * config/moxie/uclinux.h (TARGET_LIBC_HAS_FUNCTION): Move definitions
2390 to linux.h.
2391 * config/linux-android.h (TARGET_HAS_IFUNC_P): Move definition
2392 to linux.h.
2393 * config/linux.h (TARGET_LIBC_HAS_FUNCTION, TARGET_HAS_IFUNC_P):
2394 Define appropriately for Linux and uClinux targets.
2395
2396 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2397
2398 * config/linux.c (linux_has_ifunc_p): Use correct test.
2399
2400 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2401
2402 * config/linux.c (linux_android_has_ifunc_p): Rename to
2403 linux_has_ifunc_p.
2404 (linux_android_libc_has_function): Rename to linux_libc_has_function.
2405 * config/linux-protos.h (linux_android_has_ifunc_p,)
2406 (linux_android_libc_has_function): Update declarations.
2407 * config/linux.h, config/linux-android.h, config/alpha/linux.h,
2408 * config/rs6000/linux.h, config/rs6000/linux64.h: Update.
2409
2410 2013-12-07 Maxim Kuvyrkov <maxim@kugelworks.com>
2411
2412 * linux-android.c: Rename to linux.c.
2413 * t-linux-android: Rename to t-linux. Update references
2414 to linux-android.c
2415 * config.gcc: Update references to t-linux-android and linux-android.o.
2416
2417 2013-12-07 Alan Modra <amodra@gmail.com>
2418
2419 * config/rs6000/rs6000.md (bswapdi2_32bit): Remove ?? from r->r
2420 alternative.
2421
2422 2013-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
2423
2424 * config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.
2425
2426 2013-12-06 Vladimir Makarov <vmakarov@redhat.com>
2427
2428 * config/rs6000/rs600.md (*bswapdi2_64bit): Remove ?? from the
2429 constraint.
2430
2431 2013-12-06 Caroline Tice <cmtice@google.com>
2432
2433 Submitting patch from Stephen Checkoway, s@cs.jhu.edu
2434 * vtable-verify.c (verify_bb_vtables): Replace all uses of verified
2435 vtable pointer with the results of the verification call, rather than
2436 only the uses in the next statement.
2437
2438 2013-12-06 Andrew Pinski <apinski@cavium.com>
2439
2440 PR target/59092
2441 * config/aarch64/aarch64.md (trap): New pattern.
2442
2443 2013-12-06 Jakub Jelinek <jakub@redhat.com>
2444
2445 PR tree-optimization/59388
2446 * tree-ssa-reassoc.c (update_range_test): If op == range->exp,
2447 gimplify tem after stmt rather than before it.
2448
2449 * tree-data-ref.c (struct data_ref_loc_d): Replace pos field with ref.
2450 (get_references_in_stmt): Don't record operand addresses, but
2451 operands themselves.
2452 (find_data_references_in_stmt, graphite_find_data_references_in_stmt):
2453 Adjust for the pos -> ref change.
2454
2455 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
2456
2457 * config.gcc: Change --with-cpu=ia to --with-cpu=intel.
2458
2459 * config/i386/i386.c (cpu_names): Replace "ia" with "intel".
2460 (processor_alias_table): Likewise.
2461 (ix86_option_override_internal): Likewise.
2462 * config/i386/i386.h (target_cpu_default): Replace
2463 TARGET_CPU_DEFAULT_ia with TARGET_CPU_DEFAULT_intel.
2464
2465 * doc/invoke.texi: Replace -mtune=ia with -mtune=intel.
2466
2467 2013-12-06 Uros Bizjak <ubizjak@gmail.com>
2468
2469 PR target/59405
2470 * config/i386/i386.c (type_natural_mode): Properly handle
2471 size 8 for !TARGET_64BIT.
2472
2473 2013-12-06 Trevor Saunders <tsaunders@mozilla.com>
2474
2475 * tree-ssa-pre.c (compute_antic_aux): Remove redundant call to
2476 vec::release.
2477
2478 2013-12-06 Ian Bolton <ian.bolton@arm.com>
2479 Mark Mitchell <mark@codesourcery.com>
2480
2481 PR target/59091
2482 * config/arm/arm.md (trap): New pattern.
2483 * config/arm/types.md: Added a type for trap.
2484
2485 2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2486
2487 * expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2488
2489 2013-12-06 Eric Botcazou <ebotcazou@adacore.com>
2490
2491 PR target/59316
2492 * config/sparc/sparc.h (SPARC_LOW_FE_EXCEPT_VALUES): Define.
2493 * config/sparc/sol2.h (SPARC_LOW_FE_EXCEPT_VALUES): Redefine.
2494 * config/sparc/sparc.c (TARGET_INIT_BUILTINS): Move around.
2495 (TARGET_BUILTIN_DECL): Define.
2496 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Likewise.
2497 (sparc32_initialize_trampoline): Adjust call to gen_flush.
2498 (enum sparc_builtins): New enumeral type.
2499 (sparc_builtins): New static array.
2500 (sparc_builtins_icode): Likewise.
2501 (def_builtin): Accept a separate icode and save the result.
2502 (def_builtin_const): Likewise.
2503 (sparc_fpu_init_builtins): New function.
2504 (sparc_vis_init_builtins): Pass the builtin code.
2505 (sparc_init_builtins): Call it if TARGET_FPU.
2506 (sparc_builtin_decl): New function.
2507 (sparc_expand_builtin): Deal with SPARC_BUILTIN_{LD,ST}FSR.
2508 (sparc_handle_vis_mul8x16): Use the builtin code.
2509 (sparc_fold_builtin): Likewise. Deal with SPARC_BUILTIN_{LD,ST}FSR
2510 and SPARC_BUILTIN_PDISTN.
2511 (compound_expr): New helper function.
2512 (sparc_atomic_assign_expand_fenv): New function.
2513 * config/sparc/sparc.md (unspecv): Reorder values, add UNSPECV_LDFSR
2514 and UNSPECV_STFSR.
2515 (flush, flushdi): Merge into single pattern.
2516 (ldfsr): New instruction.
2517 (stfsr): Likewise.
2518
2519 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2520
2521 * asan.c: Remove struct tags when referring to class varpool_node.
2522 * cgraph.h: Likewise.
2523 * cgraphbuild.c: Likewise.
2524 * cgraphunit.c: Likewise.
2525 * dbxout.c: Likewise.
2526 * dwarf2out.c: Likewise.
2527 * gimple-fold.c: Likewise.
2528 * ipa-devirt.c: Likewise.
2529 * ipa-ref-inline.h: Likewise.
2530 * ipa-ref.h: Likewise.
2531 * ipa-reference.c: Likewise.
2532 * ipa-utils.c: Likewise.
2533 * ipa.c: Likewise.
2534 * lto-cgraph.c: Likewise.
2535 * lto-streamer-out.c: Likewise.
2536 * lto-streamer.h: Likewise.
2537 * passes.c: Likewise.
2538 * toplev.c: Likewise.
2539 * tree-eh.c: Likewise.
2540 * tree-emutls.c: Likewise.
2541 * tree-pass.h: Likewise.
2542 * tree-ssa-structalias.c: Likewise.
2543 * tree-vectorizer.c: Likewise.
2544 * tree.c: Likewise.
2545 * varasm.c: Likewise.
2546 * varpool.c: Likewise.
2547
2548 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
2549
2550 * cgraphunit.c: Remove struct tags when referring to class
2551 ipa_opt_pass_d or class opt_pass.
2552 * function.h: Likewise.
2553 * lto-cgraph.c: Likewise.
2554 * pass_manager.h: Likewise.
2555 * passes.c: Likewise.
2556 * tree-pass.h: Likewise.
2557
2558 2013-12-06 Richard Biener <rguenther@suse.de>
2559
2560 PR tree-optimization/59058
2561 * tree-vectorizer.h (struct _loop_vec_info): Add num_itersm1 member.
2562 (LOOP_VINFO_NITERSM1): New macro.
2563 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Express
2564 the vector loop entry test in terms of scalar latch executions.
2565 (vect_do_peeling_for_alignment): Update LOOP_VINFO_NITERSM1.
2566 * tree-vect-loop.c (vect_get_loop_niters): Also return the
2567 number of latch executions.
2568 (new_loop_vec_info): Initialize LOOP_VINFO_NITERSM1.
2569 (vect_analyze_loop_form): Likewise.
2570 (vect_generate_tmps_on_preheader): Compute the number of
2571 vectorized iterations differently.
2572
2573 2013-12-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2574
2575 * config/score/score.c (score_force_temporary): Delete function.
2576 (score_split_symbol): Ditto.
2577 * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
2578 parentheses to silence ambiguity warning and reindent.
2579
2580 2013-12-05 Marek Polacek <polacek@redhat.com>
2581
2582 * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
2583
2584 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
2585
2586 * config.gcc: Support --with-cpu=ia.
2587
2588 * config/i386/i386.c (cpu_names): Add "ia".
2589 (processor_alias_table): Likewise.
2590 (ix86_option_override_internal): Disallow -march=ia.
2591 * config/i386/i386.h (target_cpu_default): Add TARGET_CPU_DEFAULT_ia.
2592
2593 * doc/invoke.texi: Document -mtune=ia.
2594
2595 2013-12-05 Vladimir Makarov <vmakarov@redhat.com>
2596
2597 PR rtl-optimization/59317
2598 * lra-constraints.c (in_class_p): Don't ignore insn with constant
2599 as a source.
2600
2601 2013-12-05 Martin Jambor <mjambor@suse.cz>
2602
2603 PR ipa/58253
2604 * ipa-prop.c (ipa_modify_formal_parameters): Create decls of
2605 non-BLKmode in their naturally aligned type.
2606
2607 2013-12-05 Marek Polacek <polacek@redhat.com>
2608
2609 PR sanitizer/59333
2610 PR sanitizer/59397
2611 * ubsan.c: Include rtl.h and expr.h.
2612 (ubsan_encode_value): Add new parameter. If expanding, assign
2613 a stack slot for DECL_RTL of the temporary and call expand_assignment.
2614 Handle BOOLEAN_TYPE and ENUMERAL_TYPE.
2615 (ubsan_build_overflow_builtin): Adjust ubsan_encode_value call.
2616 * ubsan.h (ubsan_encode_value): Adjust declaration.
2617 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Move
2618 ubsan_build_overflow_builtin above expand_normal call. Surround
2619 this call with push_temp_slots and pop_temp_slots.
2620 (ubsan_expand_si_overflow_neg_check): Likewise.
2621 (ubsan_expand_si_overflow_mul_check): Likewise.
2622
2623 2013-12-05 Yufeng Zhang <yufeng.zhang@arm.com>
2624
2625 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Guard
2626 the get_alternative_base call with flag_expensive_optimizations.
2627 (alloc_cand_and_find_basis): Likewise.
2628
2629 2013-12-05 Tejas Belagod <tejas.belagod@arm.com>
2630
2631 * rtlanal.c (set_noop_p): Return nonzero in case of redundant
2632 vec_select for overlapping register lanes.
2633
2634 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2635
2636 * config/i386/i386.c (ix86_expand_builtin): Generate
2637 reg for readflags built-in when optimizing.
2638 * config/i386/i386.md (*pushfl<mode>): Rename to ...
2639 (pushfl<mode>2): This. Fix iterator.
2640 (*popfl<mode>): Rename to ...
2641 (*popfl<mode>1): This. Fix iterator.
2642
2643 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2644
2645 * config/i386/i386.c (IX86_BUILTIN_READ_FLAGS): New.
2646 (IX86_BUILTIN_WRITE_FLAGS): Ditto.
2647 (ix86_init_mmx_sse_builtins): Define
2648 __builtin_ia32_writeeflags_u32, __builtin_ia32_writeeflags_u64,
2649 __builtin_ia32_readeflags_u32, __builtin_ia32_readeflags_u64.
2650 (ix86_expand_builtin): Expand them.
2651 * config/i386/ia32intrin.h (__readeflags): New.
2652 (__writeeflags): Ditto.
2653 * config/i386/i386.md (*pushfl<mode>): Ditto.
2654 (*popfl<mode>1): Ditto.
2655
2656 2013-12-05 Richard Biener <rguenther@suse.de>
2657
2658 PR tree-optimization/59374
2659 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2660 Commonize known and unknown dependence case fixing the allowed
2661 read-write dependence case and dropping code that should not matter.
2662
2663 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
2664
2665 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
2666 generation of predicated version.
2667 (epilogue_deallocate_stack): Ditto.
2668 (prologue_allocate_stack_pr): Add explicit predicated version.
2669 (epilogue_deallocate_stack_pr): Ditto.
2670 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
2671
2672 2013-12-05 Alan Modra <amodra@gmail.com>
2673
2674 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
2675 build != host.
2676 <recursive call for build != host>: Clear GMPINC. Don't bother
2677 saving CFLAGS.
2678
2679 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2680 Marek Polacek <polacek@redhat.com>
2681
2682 * opts.c (common_handle_option): Handle
2683 -fsanitize=signed-integer-overflow.
2684 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
2685 negv<mode>3, negv<mode>3_1): Define expands.
2686 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define insns.
2687 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
2688 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
2689 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
2690 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
2691 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
2692 PROB_ALWAYS): Define.
2693 (ubsan_build_overflow_builtin): Declare.
2694 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
2695 internal functions.
2696 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
2697 (ubsan_build_overflow_builtin): New function.
2698 (instrument_si_overflow): Likewise.
2699 (ubsan_pass): Add signed integer overflow checking.
2700 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
2701 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
2702 * internal-fn.c: Include ubsan.h and target.h.
2703 (ubsan_expand_si_overflow_addsub_check): New function.
2704 (ubsan_expand_si_overflow_neg_check): Likewise.
2705 (ubsan_expand_si_overflow_mul_check): Likewise.
2706 (expand_UBSAN_CHECK_ADD): Likewise.
2707 (expand_UBSAN_CHECK_SUB): Likewise.
2708 (expand_UBSAN_CHECK_MUL): Likewise.
2709 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
2710 (-A) + B -> B - A when doing the signed integer overflow checking.
2711 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
2712 Define.
2713 * tree-vrp.c (extract_range_basic): Handle internal calls.
2714 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
2715 optabs.
2716 * asan.c: Include predict.h.
2717 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
2718 * predict.c: Move the PROB_* macros...
2719 * predict.h (enum br_predictor): ...here.
2720 (PROB_LIKELY, PROB_UNLIKELY): Define.
2721 * trans-mem.c: Include predict.h.
2722 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
2723 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
2724
2725 2013-12-04 Jeff Law <law@redhat.com>
2726
2727 * common.opt: Split up -fisolate-erroneous-paths into
2728 -fisolate-erroneous-paths-dereference and
2729 -fisolate-erroneous-paths-attribute.
2730 * invoke.texi: Corresponding changes.
2731 * gimple.c (infer_nonnull_range): Add and use new arguments to control
2732 what kind of statements can be used to infer a non-null range.
2733 * gimple.h (infer_nonnull_range): Update prototype.
2734 * tree-vrp.c (infer_value_range): Corresponding changes.
2735 * opts.c (default_options_table): Update due to option split.
2736 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
2737 (find_implicit_erroneous_behaviour): Pass additional arguments
2738 to infer_nonnull_range.
2739 (find_explicit_erroneous_behaviour): Similarly.
2740 (gate_isolate_erroneous_paths): Check both of the new options.
2741
2742 2013-12-04 Jeff Law <law@redhat.com>
2743
2744 * expr.c (expand_assignment): Update comments.
2745
2746 2013-12-04 Tobias Burnus <burnus@net-b.de>
2747
2748 PR debug/37132
2749 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
2750 * tree.def (NAMELIST_DECL): Add.
2751 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
2752 * tree.c (initialize_tree_contains_struct): Add asserts for it.
2753 * dwarf2out.c (gen_namelist_decl): New function.
2754 (gen_decl_die, dwarf2out_decl): Call it.
2755 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
2756 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
2757 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
2758 call.
2759 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
2760
2761 2013-12-03 Xinliang David Li <davidxl@google.com>
2762
2763 * tree-ssa-structalias.c (constraint_set_union): Change return type
2764 from void to bool.
2765 (merge_node_constraints): Ditto.
2766 (unify_nodes): Update changed set when constraints set changes.
2767
2768 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
2769
2770 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
2771 -fsanitize=address.
2772 * configure: Regenerated.
2773
2774 * gdbasan.in: New file.
2775
2776 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2777
2778 PR rtl-optimization/58726
2779 * combine.c (force_to_mode): Fix comment typo. Don't destructively
2780 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
2781
2782 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2783 Uros Bizjak <ubizjak@gmail.com>
2784
2785 PR target/59163
2786 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
2787 !TARGET_AVX there is misaligned MEM operand with vector mode
2788 and get_attr_ssememalign is 0, return false.
2789 (ix86_expand_special_args_builtin): Add get_pointer_alignment
2790 computed alignment and for non-temporal loads/stores also
2791 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
2792 * config/i386/sse.md
2793 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
2794 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
2795 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
2796 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
2797 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
2798 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
2799 *vec_interleave_highv2df, *vec_interleave_lowv2df,
2800 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
2801 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
2802 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
2803 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
2804 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
2805 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
2806 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
2807 * config/i386/i386.md (ssememalign): New define_attr.
2808
2809 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2810
2811 PR tree-optimization/59355
2812 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
2813 * opts.c (common_handle_option): Fix comment spelling.
2814
2815 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
2816
2817 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
2818 (name_expansions): New static variable.
2819 (alt_base_map): Ditto.
2820 (get_alternative_base): New function.
2821 (find_basis_for_candidate): For CAND_REF, optionally call
2822 find_basis_for_base_expr with the returned value from
2823 get_alternative_base.
2824 (record_potential_basis): Add new parameter 'base' of type 'tree';
2825 add an assertion of non-NULL base; use base to set node->base_expr.
2826 (alloc_cand_and_find_basis): Update; call record_potential_basis
2827 for CAND_REF with the returned value from get_alternative_base.
2828 (replace_refs): Dump details on the replacing.
2829 (execute_strength_reduction): Call pointer_map_create for
2830 alt_base_map; call free_affine_expand_cache with &name_expansions.
2831
2832 2013-12-03 Wei Mi <wmi@google.com>
2833
2834 PR rtl-optimization/59020
2835 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
2836 (sched_analyze_insn): Call try_group_insn.
2837 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
2838 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
2839 (group_insns_for_macro_fusion): Removed.
2840 (sched_init): Remove calling group_insns_for_macro_fusion.
2841
2842 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
2843
2844 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
2845 typo in macro name.
2846 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
2847
2848 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
2849
2850 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
2851 LR_REGNUM.
2852 (aarch64_can_eliminate): Don't check elimination source when
2853 frame_pointer_required is false.
2854
2855 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2856
2857 * config/avr/avr.c (avr_option_override): Warn if asked to generate
2858 position independent code.
2859 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
2860
2861 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
2862
2863 PR target/59363
2864 * config/i386/i386.c (emit_memset): Adjust destination address
2865 after gen_strset.
2866 (expand_setmem_epilogue): Likewise.
2867
2868 2013-12-03 Marek Polacek <polacek@redhat.com>
2869
2870 PR middle-end/56344
2871 * calls.c (expand_call): Disallow passing huge arguments by value.
2872
2873 2013-12-03 Jakub Jelinek <jakub@redhat.com>
2874
2875 PR tree-optimization/59362
2876 * tree-object-size.c (object_sizes): Change into array of
2877 vec<unsigned HOST_WIDE_INT>.
2878 (compute_builtin_object_size): Check computed bitmap for
2879 non-NULL instead of object_sizes. Call safe_grow on object_sizes
2880 vector if new SSA_NAMEs appeared.
2881 (init_object_sizes): Check computed bitmap for non-NULL.
2882 Call safe_grow on object_sizes elements instead of initializing
2883 it with XNEWVEC.
2884 (fini_object_sizes): Call release on object_sizes elements, don't
2885 set it to NULL.
2886
2887 PR middle-end/59011
2888 * gimplify.c (nonlocal_vla_vars): New variable.
2889 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
2890 nonlocal_vla_vars chain.
2891 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
2892 if outer_bind has DECL_INITIAL (current_function_decl) block.
2893
2894 PR target/58864
2895 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
2896 New functions.
2897 * expr.h (struct saved_pending_stack_adjust): New type.
2898 (save_pending_stack_adjust, restore_pending_stack_adjust): New
2899 prototypes.
2900 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
2901 and get_last_insn before do_pending_stack_adjust, call
2902 restore_pending_stack_adjust after delete_insns_since.
2903 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
2904 before calling emit_conditional_move.
2905 * expmed.c (expand_sdiv_pow2): Likewise.
2906 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
2907
2908 2013-12-02 Jeff Law <law@redhat.com>
2909
2910 PR tree-optimization/59322
2911 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
2912 Remove code which copied jump threading paths.
2913
2914 2013-12-02 Sriraman Tallam <tmsriram@google.com>
2915
2916 PR target/58944
2917 * config/i386/i386.opt (ix86_arch_string): Mark this variable
2918 for saving in cl_target_option.
2919 (ix86_tune_string): Ditto.
2920 (ix86_cmodel): Ditto.
2921 (ix86_abi): Ditto.
2922 (ix86_asm_dialect): Ditto.
2923 (ix86_branch_cost): Ditto.
2924 (ix86_dump_tunes): Ditto.
2925 (ix86_force_align_arg_pointer): Ditto.
2926 (ix86_force_drap): Ditto.
2927 (ix86_incoming_stack_boundary_arg): Ditto.
2928 (ix86_pmode): Ditto.
2929 (ix86_preferred_stack_boundary_arg): Ditto.
2930 (ix86_recip_name): Ditto.
2931 (ix86_regparm): Ditto.
2932 (ix86_section_threshold): Ditto.
2933 (ix86_sse2avx): Ditto.
2934 (ix86_stack_protector_guard): Ditto.
2935 (ix86_stringop_alg): Ditto.
2936 (ix86_tls_dialect): Ditto.
2937 (ix86_tune_ctrl_string): Ditto.
2938 (ix86_tune_memcpy_strategy): Ditto.
2939 (ix86_tune_memset_strategy): Ditto.
2940 (ix86_tune_no_default): Ditto.
2941 (ix86_veclibabi_type): Ditto.
2942 * config/i386/i386.c (function_specific_save): Save the above
2943 variables in gcc_options to cl_target_option.
2944 (function_specific_restore): Do the reverse done in
2945 function_specific_save.
2946 (ix86_valid_target_attribute_tree): Change ix86_arch_string
2947 and ix86_tune_string to use the opts structure.
2948 (ix86_option_override_internal):Change
2949 ix86_incoming_stack_boundary_arg to
2950 opts->x_ix86_incoming_stack_boundary_arg
2951
2952 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
2953
2954 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
2955 in #ifndef IN_LIBGCC2 / #endif.
2956
2957 2013-12-02 Jakub Jelinek <jakub@redhat.com>
2958
2959 PR tree-optimization/59358
2960 * tree-vrp.c (union_ranges): To check for the partially overlapping
2961 ranges or adjacent ranges, also compare *vr0max with vr1max.
2962
2963 2013-12-02 Sterling Augustine  <saugustine@google.com>
2964
2965 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
2966 when there isn't a skeleton die.
2967
2968 2013-12-02 Marek Polacek <polacek@redhat.com>
2969
2970 PR sanitizer/59353
2971 * doc/invoke.texi: Document -fsanitize=return.
2972
2973 2013-12-02 Tobias Burnus <burnus@net-b.de>
2974 Manuel López-Ibáñez <manu@gcc.gnu.org>
2975
2976 PR middle-end/59257
2977 * doc/invoke.texi: Add missing @opindex.
2978 (-fsanitize=): Use @gcctabopt instead of @itemize.
2979
2980 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2981
2982 Fix C++0x memory model for unaligned fields in packed, aligned(4)
2983 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
2984 targets like arm-none-eabi.
2985 * expr.c (expand_assignment): Handle normal fields like bit regions.
2986
2987 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2988
2989 PR target/58115
2990 * function.c (invoke_set_current_function_hook): Call
2991 targetm.set_current_function after setting this_fn_optabs.
2992
2993 2013-12-02 Richard Biener <rguenther@suse.de>
2994
2995 PR tree-optimization/59139
2996 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
2997 code in get_val_for.
2998 (get_val_for): Use gcc_checking_asserts.
2999
3000 2013-12-02 Richard Biener <rguenther@suse.de>
3001
3002 PR middle-end/59199
3003 * tree-ssa-operands.c (opf_implicit): Remove.
3004 (opf_address_taken): New flag.
3005 (get_expr_operands): Remove early out, pass down opf_address_taken for
3006 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
3007 (get_indirect_ref_operands): Rename to ...
3008 (get_mem_ref_operands): ... this.
3009 (get_asm_expr_operands): Rename to ...
3010 (get_asm_stmt_operands): ... this.
3011
3012 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3013
3014 * ipa-inline.c (check_callers): Add missed pointer de-reference.
3015
3016 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
3017
3018 PR tree-optimization/59356
3019 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
3020 offset computation using the precision of the index type.
3021
3022 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
3023
3024 PR target/58785
3025 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
3026 when rclass is GENERAL_REGS.
3027
3028 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3029
3030 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
3031 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
3032
3033 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
3034
3035 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
3036 identifier node.
3037
3038 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3039
3040 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
3041
3042 2013-11-30 Paulo Matos <pmatos@broadcom.com>
3043 Eric Botcazou <ebotcazou@adacore.com>
3044
3045 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
3046 as applied to nonzero_sign_valid when last_set_mode has less precision
3047 than mode.
3048
3049 2013-11-30 Tobias Burnus <burnus@net-b.de>
3050
3051 PR sanitizer/59275
3052 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
3053 environment variable and link to a list with flags.
3054 (-fsanitize=thread): Ditto and update link.
3055
3056 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
3057
3058 PR rtl-optimization/59340
3059 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
3060
3061 Revert
3062 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
3063
3064 * lra.c (lra): Set lra_in_progress before check_rtl call.
3065 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
3066 adding clobber regs when LRA is running.
3067
3068 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3069
3070 PR target/59289
3071 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
3072
3073 2013-11-29 Richard Biener <rguenther@suse.de>
3074
3075 PR middle-end/59208
3076 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
3077 free_stmt_operands, update_stmt_operands): Add struct function
3078 argument.
3079 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
3080 function argument from fini_ssa_operands, verify_ssa_operands,
3081 free_stmt_operands and update_stmt_operands everywhere.
3082 * tree-ssanames.h (release_ssa_name_fn): New.
3083 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
3084 * tree-ssanames.c (release_ssa_name): Rename to ...
3085 (release_ssa_name_fn): ... this and add struct function argument.
3086 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
3087 (update_stmt_fn): New function.
3088 * tree-cfg.c (move_block_to_fn): Adjust.
3089 * tree-if-conv.c (free_bb_predicate): Likewise.
3090 * tree-ssa.c (verify_ssa): Likewise.
3091 (delete_tree_ssa): Likewise.
3092 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
3093 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
3094 update_stmt_fn instead of update_stmt.
3095
3096 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3097
3098 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
3099 for LRA.
3100
3101 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3102
3103 * config/arm/arm.md (store_minmaxsi): Use only when
3104 optimize_function_for_size_p.
3105
3106 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3107 Yury Gribov <y.gribov@samsung.com>
3108
3109 PR sanitizer/59063
3110 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
3111 * gcc.c: Using libsanitizer spec instead of explicit libs.
3112
3113 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
3114
3115 Reverted:
3116 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3117 * cgraph.h (varpool_node): Add need_bounds_init field.
3118 * lto-cgraph.c (lto_output_varpool_node): Output
3119 need_bounds_init value.
3120 (input_varpool_node): Read need_bounds_init value.
3121 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
3122
3123 Reverted:
3124 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
3125 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
3126 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
3127 (gen_type_die_with_usage): Skip pointer bounds.
3128 (dwarf2out_global_decl): Likewise.
3129
3130 Reverted:
3131 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3132 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3133 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3134 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3135 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3136 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3137 (gimple_call_with_bounds_p): New.
3138 (gimple_call_set_with_bounds): New.
3139 (gimple_call_num_nobnd_args): Remove.
3140 (gimple_call_nobnd_arg): Remove.
3141 * tree.h (CALL_WITH_BOUNDS_P): New.
3142 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3143
3144 Reverted:
3145 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
3146 * common.opt (fcheck-pointer-bounds): Move to ...
3147 * c-family/c.opt: ... here.
3148 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
3149 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
3150 * langhooks.h (lang_hooks): Remove chkp_supported field.
3151 * toplev.c (process_options): Remove chkp_supported check.
3152
3153 Reverted:
3154 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3155 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
3156 * tree.h (POINTER_BOUNDS_P): New.
3157 (BOUNDED_TYPE_P): New.
3158 (BOUNDED_P): New.
3159 (pointer_bounds_type_node): New.
3160 * tree.c (build_common_tree_nodes): Initialize
3161 pointer_bounds_type_node.
3162 * gimple.h (gimple_call_get_nobnd_arg_index): New.
3163 (gimple_call_num_nobnd_args): New.
3164 (gimple_call_nobnd_arg): New.
3165 (gimple_return_retbnd): New.
3166 (gimple_return_set_retbnd): New
3167 * gimple.c (gimple_build_return): Increase number of ops
3168 for return statement.
3169 (gimple_call_get_nobnd_arg_index): New.
3170 * gimple-pretty-print.c (dump_gimple_return): Print second op.
3171
3172 Reverted:
3173 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3174 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
3175 with "chkp ctor" and "bnd_legacy" attributes.
3176 * gimplify.c (gimplify_init_constructor): Avoid infinite
3177 loop during gimplification of bounds initializer.
3178
3179 Reverted:
3180 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3181 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
3182 (handle_bnd_legacy): New.
3183 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
3184 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
3185 attributes.
3186
3187 Reverted:
3188 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
3189 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
3190 (BT_FN_PTR_CONST_PTR): New.
3191 (BT_FN_CONST_PTR_CONST_PTR): New.
3192 (BT_FN_PTR_CONST_PTR_SIZE): New.
3193 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
3194 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
3195 (BT_FN_VOID_CONST_PTR_SIZE): New.
3196 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
3197 * chkp-builtins.def: New.
3198 * builtins.def: include chkp-builtins.def.
3199 (DEF_CHKP_BUILTIN): New.
3200 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
3201 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
3202 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
3203 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
3204 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
3205 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
3206 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
3207 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
3208 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
3209 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
3210 * common.opt (fcheck-pointer-bounds): New.
3211 * toplev.c (process_options): Check Pointer Bounds Checker is
3212 supported.
3213 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
3214
3215 Reverted:
3216 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
3217 * target.def (builtin_chkp_function): New.
3218 (chkp_bound_type): New.
3219 (chkp_bound_mode): New.
3220 (fn_abi_va_list_bounds_size): New.
3221 (load_bounds_for_arg): New.
3222 (store_bounds_for_arg): New.
3223 * targhooks.h (default_load_bounds_for_arg): New.
3224 (default_store_bounds_for_arg): New.
3225 (default_fn_abi_va_list_bounds_size): New.
3226 (default_chkp_bound_type): New.
3227 (default_chkp_bound_mode): New.
3228 (default_builtin_chkp_function): New.
3229 * targhooks.c (default_load_bounds_for_arg): New.
3230 (default_store_bounds_for_arg): New.
3231 (default_fn_abi_va_list_bounds_size): New.
3232 (default_chkp_bound_type): New.
3233 (default_chkp_bound_mode); New.
3234 (default_builtin_chkp_function): New.
3235 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
3236 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
3237 (TARGET_STORE_BOUNDS_FOR_ARG): New.
3238 (TARGET_BUILTIN_CHKP_FUNCTION): New.
3239 (TARGET_CHKP_BOUND_TYPE): New.
3240 (TARGET_CHKP_BOUND_MODE): New.
3241 * doc/tm.texi: Regenerated.
3242 * langhooks.h (lang_hooks): Add chkp_supported field.
3243 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
3244 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
3245
3246 Reverted:
3247 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3248 * config/i386/constraints.md (B): New.
3249 (Ti): New.
3250 (Tb): New.
3251 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
3252 * config/i386/i386-modes.def (BND32): New.
3253 (BND64): New.
3254 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
3255 * config/i386/i386.c (isa_opts): Add mmpx.
3256 (regclass_map): Add bound registers.
3257 (dbx_register_map): Likewise.
3258 (dbx64_register_map): Likewise.
3259 (svr4_dbx_register_map): Likewise.
3260 (PTA_MPX): New.
3261 (ix86_option_override_internal): Support MPX ISA.
3262 (ix86_conditional_register_usage): Support bound registers.
3263 (print_reg): Likewise.
3264 (ix86_code_end): Add MPX bnd prefix.
3265 (output_set_got): Likewise.
3266 (ix86_output_call_insn): Likewise.
3267 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
3268 (ix86_print_operand_punct_valid_p): Likewise.
3269 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
3270 UNSPEC_BNDMK_ADDR.
3271 (ix86_class_likely_spilled_p): Add bound regs support.
3272 (ix86_hard_regno_mode_ok): Likewise.
3273 (x86_order_regs_for_local_alloc): Likewise.
3274 (ix86_bnd_prefixed_insn_p): New.
3275 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
3276 (FIXED_REGISTERS): Add bound registers.
3277 (CALL_USED_REGISTERS): Likewise.
3278 (REG_ALLOC_ORDER): Likewise.
3279 (HARD_REGNO_NREGS): Likewise.
3280 (TARGET_MPX): New.
3281 (VALID_BND_REG_MODE): New.
3282 (FIRST_BND_REG): New.
3283 (LAST_BND_REG): New.
3284 (reg_class): Add BND_REGS.
3285 (REG_CLASS_NAMES): Likewise.
3286 (REG_CLASS_CONTENTS): Likewise.
3287 (BND_REGNO_P): New.
3288 (ANY_BND_REG_P): New.
3289 (BNDmode): New.
3290 (HI_REGISTER_NAMES): Add bound registers.
3291 * config/i386/i386.md (UNSPEC_BNDMK): New.
3292 (UNSPEC_BNDMK_ADDR): New.
3293 (UNSPEC_BNDSTX): New.
3294 (UNSPEC_BNDLDX): New.
3295 (UNSPEC_BNDLDX_ADDR): New.
3296 (UNSPEC_BNDCL): New.
3297 (UNSPEC_BNDCU): New.
3298 (UNSPEC_BNDCN): New.
3299 (UNSPEC_MPX_FENCE): New.
3300 (BND0_REG): New.
3301 (BND1_REG): New.
3302 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
3303 (length_immediate): Likewise.
3304 (prefix_0f): Likewise.
3305 (memory): Likewise.
3306 (prefix_rep): Check for bnd prefix.
3307 (length_nobnd): New.
3308 (length): Use length_nobnd if specified.
3309 (BND): New.
3310 (bnd_ptr): New.
3311 (BNDCHECK): New.
3312 (bndcheck): New.
3313 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
3314 (*jcc_2): Likewise.
3315 (jump): Likewise.
3316 (simple_return_internal): Likewise.
3317 (simple_return_pop_internal): Likewise.
3318 (*indirect_jump): Add MPX bnd prefix.
3319 (*tablejump_1): Likewise.
3320 (simple_return_internal_long): Likewise.
3321 (simple_return_indirect_internal): Likewise.
3322 (<mode>_mk): New.
3323 (*<mode>_mk): New.
3324 (mov<mode>): New.
3325 (*mov<mode>_internal_mpx): New.
3326 (<mode>_<bndcheck>): New.
3327 (*<mode>_<bndcheck>): New.
3328 (<mode>_ldx): New.
3329 (*<mode>_ldx): New.
3330 (<mode>_stx): New.
3331 (*<mode>_stx): New.
3332 * config/i386/predicates.md (lea_address_operand): Rename to...
3333 (address_no_seg_operand): ... this.
3334 (address_mpx_no_base_operand): New.
3335 (address_mpx_no_index_operand): New.
3336 (bnd_mem_operator): New.
3337 * config/i386/i386.opt (mmpx): New.
3338 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
3339 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
3340
3341 Reverted:
3342 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
3343 * mode-classes.def (MODE_POINTER_BOUNDS): New.
3344 * tree.def (POINTER_BOUNDS_TYPE): New.
3345 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
3346 (POINTER_BOUNDS_MODE): New.
3347 (make_pointer_bounds_mode): New.
3348 * machmode.h (POINTER_BOUNDS_MODE_P): New.
3349 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
3350 (layout_type): Support POINTER_BOUNDS_TYPE.
3351 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
3352 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
3353 (type_contains_placeholder_1): Likewise.
3354 * tree.h (POINTER_BOUNDS_TYPE_P): New.
3355 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
3356 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
3357
3358 2013-11-29 Richard Biener <rguenther@suse.de>
3359
3360 PR middle-end/59338
3361 * tree-cfg.c (verify_expr): Restrict bounds verification of
3362 BIT_FIELD_REF arguments to non-aggregate typed base objects.
3363
3364 2013-11-29 Richard Biener <rguenther@suse.de>
3365
3366 PR tree-optimization/59334
3367 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
3368 in previous commit.
3369
3370 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3371 Richard Biener <rguenther@suse.de>
3372
3373 PR lto/59326
3374 * omp-low.c (simd_clone_create): Return NULL if for definition
3375 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
3376 before calling cgraph_function_versioning.
3377 (expand_simd_clones): Look for "omp declare simd" attribute first.
3378 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
3379 Punt if node->global.inlined_to.
3380 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
3381 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
3382 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
3383
3384 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3385
3386 PR lto/59326
3387 * tree-core.h (enum omp_clause_schedule_kind): Add
3388 OMP_CLAUSE_SCHEDULE_LAST.
3389 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
3390 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
3391 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
3392 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
3393 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
3394 (DFS_write_tree_body): Handle OMP_CLAUSE.
3395 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
3396 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
3397 (write_ts_omp_clause_tree_pointers): New function.
3398 (streamer_write_tree_body): Call it for OMP_CLAUSE.
3399 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
3400 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
3401 (unpack_value_fields): Call it for OMP_CLAUSE.
3402 (streamer_alloc_tree): Handle OMP_CLAUSE.
3403 (lto_input_ts_omp_clause_tree_pointers): New function.
3404 (streamer_read_tree_body): Call it for OMP_CLAUSE.
3405
3406 2013-11-29 Joseph Myers <joseph@codesourcery.com>
3407
3408 * doc/implement-c.texi: Document C11 implementation-defined
3409 behavior. Refer to -ffp-contract=fast for contraction behavior.
3410 * doc/invoke.texi (-std=c99, std=c11): Update description of
3411 completeness.
3412 (-std=gnu99): Don't mention as future default.
3413 (-std=gnu11): Mention as intended future default.
3414 * doc/standards.texi: Update descriptions of C99 and C11 support.
3415 Limit statement about C99 facilities for freestanding
3416 implementations to some platforms only.
3417
3418 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3419
3420 PR middle-end/59327
3421 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
3422
3423 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
3424
3425 PR target/57293
3426 * ira.h (ira_setup_eliminable_regset): Remove parameter.
3427 * ira.c (ira_setup_eliminable_regset): Ditto. Add
3428 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
3429 Don't call lra_init_elimination.
3430 (ira): Call ira_setup_eliminable_regset without arguments.
3431 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
3432 from ira_setup_eliminable_regset call.
3433 * gcse.c (calculate_bb_reg_pressure): Ditto.
3434 * haifa-sched.c (sched_init): Ditto.
3435 * lra.h (lra_init_elimination): Remove the prototype.
3436 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
3437 used_insn_alternative upper.
3438 (lra_eliminate_regs_1): Add one more parameter.
3439 (lra-eliminate): Ditto.
3440 * lra.c (lra_invalidate_insn_data): Set sp_offset.
3441 (setup_sp_offset): New.
3442 (lra_process_new_insns): Call setup_sp_offset.
3443 (lra): Add argument to lra_eliminate calls.
3444 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
3445 (get_equiv_with_elimination): New.
3446 (process_addr_reg): Call get_equiv_with_elimination instead of
3447 get_equiv_substitution.
3448 (equiv_address_substitution): Ditto.
3449 (loc_equivalence_change_p): Ditto.
3450 (loc_equivalence_callback, lra_constraints): Ditto.
3451 (curr_insn_transform): Ditto. Print the sp offset
3452 (process_alt_operands): Prevent stack pointer reloads.
3453 (lra_constraints): Remove one argument from lra_eliminate call.
3454 Move it up. Mark used hard regs bfore it. Use
3455 get_equiv_with_elimination instead of get_equiv_substitution.
3456 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
3457 assert for param values combination. Use sp offset. Add argument
3458 to lra_eliminate_regs_1 calls.
3459 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
3460 (curr_sp_change): New static var.
3461 (mark_not_eliminable): Add parameter. Update curr_sp_change.
3462 Don't prevent elimination to sp if we can calculate its change.
3463 Pass the argument to mark_not_eliminable calls.
3464 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
3465 argument to lra_eliminate_regs_1 call.
3466 (update_reg_eliminate): Move calculation of hard regs for spill
3467 lower. Switch off lra_in_progress temporarily to generate regs
3468 involved into elimination.
3469 (lra_init_elimination): Rename to init_elimination. Make it
3470 static. Set up insn sp offset, check the offsets at the end of BBs.
3471 (process_insn_for_elimination): Add parameter. Pass its value to
3472 eliminate_regs_in_insn.
3473 (lra_eliminate): : Add parameter. Pass its value to
3474 process_insn_for_elimination. Add assert for param values
3475 combination. Call init_elimination. Don't update offsets in
3476 equivalence substitutions.
3477 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
3478 for created stack slot.
3479 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
3480 onto stack slot.
3481
3482 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3483
3484 * config/arm/iterators.md (vrint_conds): New int attribute.
3485 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
3486 (smax<mode>3): Likewise.
3487 (smin<mode>3): Likewise.
3488
3489 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
3490
3491 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
3492 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
3493 * tree-ssanames.h (set_range_info): Add range_type argument.
3494 (duplicate_ssa_name_range_info): Likewise.
3495 * tree-ssanames.c (set_range_info): Take the range type as argument
3496 and store it in SSA_NAME_ANTI_RANGE_P.
3497 (duplicate_ssa_name_range_info): Likewise.
3498 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
3499 (set_nonzero_bits): Update call to set_range_info.
3500 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
3501 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3502 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
3503 (vrp_finalize): Likewise, passing anti-ranges directly.
3504
3505 2013-11-28 Richard Biener <rguenther@suse.de>
3506
3507 PR tree-optimization/59330
3508 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
3509 and fix delayed marking of free calls not necessary.
3510
3511 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
3512
3513 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
3514 is_gimple_reg_type.
3515 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3516
3517 2013-11-28 Terry Guo <terry.guo@arm.com>
3518
3519 * config/arm/arm.c (v7m_extra_costs): New table.
3520 (arm_v7m_tune): Use it.
3521
3522 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523
3524 * config/sol2.h (TIME_LIBRARY): Define.
3525
3526 2013-11-28 Richard Biener <rguenther@suse.de>
3527
3528 PR lto/59323
3529 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
3530 CONST_DECLs in function context are not indexable.
3531
3532 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
3533
3534 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
3535 not optimized for size.
3536
3537 2013-11-28 Jakub Jelinek <jakub@redhat.com>
3538
3539 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
3540 fields.
3541 (expand_stack_vars): For -fsanitize=address, use (and set initially)
3542 data->asan_base as base for vars and update asan_alignb.
3543 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
3544 Pass them to asan_emit_stack_protection.
3545 * asan.c (asan_detect_stack_use_after_return): New variable.
3546 (asan_emit_stack_protection): Add pbase and alignb arguments.
3547 Implement use after return sanitization.
3548 * asan.h (asan_emit_stack_protection): Adjust prototype.
3549 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
3550
3551 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3552
3553 * common.opt: Introduced a new option -fsimd-cost-model.
3554 * doc/invoke.texi: Introduced a new openmp-simd warning and
3555 a new -fsimd-cost-model option.
3556 * tree-vectorizer.h (unlimited_cost_model): Interface updated
3557 to rely on the particular loop info.
3558 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
3559 (vect_peeling_hash_choose_best_peeling): Ditto.
3560 (vect_enhance_data_refs_alignment): Ditto.
3561 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
3562 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
3563 plus added openmp-simd warining.
3564
3565 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
3566
3567 PR rtl-optimization/59311
3568 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
3569 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
3570
3571 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3572
3573 * var-tracking.c (track_expr_p): Do not track declarations for parts
3574 of tracked parameters.
3575 (add_stores): Do not track values for tracked parameters passed in
3576 multiple locations.
3577 (vt_get_decl_and_offset): Handle PARALLEL.
3578 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
3579
3580 2013-11-27 Jeff Law <law@redhat.com>
3581
3582 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
3583 clobber the loop structure thread_block was unsuccessful. If
3584 thread_block was unsuccessful, cleanup appropriately.
3585
3586 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
3587
3588 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
3589 (score_char_to_class): Likewise.
3590
3591 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3592
3593 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
3594 the overflow bit set.
3595
3596 2013-11-27 Richard Biener <rguenther@suse.de>
3597
3598 PR middle-end/58723
3599 * cgraphbuild.c (build_cgraph_edges): Do not build edges
3600 for internal calls.
3601 (rebuild_cgraph_edges): Likewise.
3602 * ipa-inline-analysis.c (estimate_function_body_sizes):
3603 Skip internal calls.
3604 * tree-inline.c (estimate_num_insns): Estimate size of internal
3605 calls as 0.
3606 (gimple_expand_calls_inline): Do not try inline-expanding
3607 internal calls.
3608 * lto-streamer-in.c (input_cfg): Stream loop safelen,
3609 force_vect and simduid.
3610 (input_struct_function_base): Stream has_force_vect_loops
3611 and has_simduid_loops.
3612 (input_function): Adjust.
3613 * lto-streamer-out.c (output_cfg): Stream loop safelen,
3614 force_vect and simduid.
3615 (output_struct_function_base): Stream has_force_vect_loops
3616 and has_simduid_loops.
3617
3618 2013-11-27 Kai Tietz <ktietz@redhat.com>
3619
3620 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
3621 pointer cast.
3622
3623 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
3624
3625 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
3626 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
3627
3628 2013-11-27 Marek Polacek <polacek@redhat.com>
3629
3630 PR sanitizer/59306
3631 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
3632 instead of walk_gimple_op.
3633 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
3634
3635 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
3636 Jakub Jelinek <jakub@redhat.com>
3637
3638 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
3639 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
3640 (struct cgraph_node): Add simdclone and simd_clones fields.
3641 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
3642 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
3643 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3644 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
3645 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3646 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
3647 * doc/tm.texi: Regenerated.
3648 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
3649 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
3650 attribute is present.
3651 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
3652 (simd_clone_vector_of_formal_parm_types): New function.
3653 (simd_clone_struct_alloc, simd_clone_struct_copy,
3654 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
3655 simd_clone_compute_base_data_type, simd_clone_mangle,
3656 simd_clone_create, simd_clone_adjust_return_type,
3657 create_tmp_simd_array, simd_clone_adjust_argument_types,
3658 simd_clone_init_simd_arrays): New functions.
3659 (struct modify_stmt_info): New type.
3660 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
3661 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
3662 functions.
3663 (pass_data_omp_simd_clone): New variable.
3664 (pass_omp_simd_clone): New class.
3665 (make_pass_omp_simd_clone): New function.
3666 * passes.def (pass_omp_simd_clone): New.
3667 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
3668 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
3669 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
3670 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
3671 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
3672 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
3673 * tree-vect-data-refs.c: Include cgraph.h.
3674 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
3675 and find_data_references_in_bb, if find_data_references_in_stmt
3676 fails, still allow calls to #pragma omp declare simd functions
3677 in #pragma omp simd loops unless they contain data references among
3678 the call arguments or in lhs.
3679 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3680 calls with no lhs.
3681 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
3682 without lhs.
3683 * tree-vectorizer.h (enum stmt_vec_info_type): Add
3684 call_simd_clone_vec_info_type.
3685 (struct _stmt_vec_info): Add simd_clone_fndecl field.
3686 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
3687 * tree-vect-stmts.c: Include tree-ssa-loop.h,
3688 tree-scalar-evolution.h and cgraph.h.
3689 (vectorizable_call): Handle calls without lhs. Assert
3690 !stmt_can_throw_internal instead of failing for it. Don't update
3691 EH stuff.
3692 (struct simd_call_arg_info): New.
3693 (vectorizable_simd_clone_call): New function.
3694 (vect_transform_stmt): Call it.
3695 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
3696 calls without lhs.
3697 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
3698 if cgraph_function_with_gimple_body_p is true.
3699
3700 2013-11-27 Tom de Vries <tom@codesourcery.com>
3701 Marc Glisse <marc.glisse@inria.fr>
3702
3703 PR middle-end/59037
3704 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
3705 BIT_FIELD_REF.
3706 * gimple-fold.c (gimple_fold_indirect_ref): Same.
3707 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
3708 out-of-bounds.
3709
3710 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
3711
3712 PR middle-end/59138
3713 * expr.c (emit_group_store): Don't write past the end of the structure.
3714 (store_bit_field): Fix formatting.
3715
3716 2013-11-27 Richard Biener <rguenther@suse.de>
3717
3718 PR tree-optimization/59288
3719 * tree-vect-loop.c (get_initial_def_for_induction): Do not
3720 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
3721
3722 2013-11-27 Marek Polacek <polacek@redhat.com>
3723
3724 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
3725 for a decl, recreate that decl. Save into the hash table VAR_DECLs
3726 rather than ADDR_EXPRs.
3727
3728 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3729
3730 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
3731
3732 2013-11-26 David Malcolm <dmalcolm@redhat.com>
3733
3734 * gengtype.c (struct seen_tag): New.
3735 (already_seen_tag): New.
3736 (mark_tag_as_seen): New.
3737 (walk_subclasses): Support having multiple subclasses using the
3738 same tag by tracking which tags have already been seen, and using
3739 this to avoid adding duplicate cases to the "switch" statement.
3740 The call to already_seen_tag introduces an O(N^2) when running
3741 gengtype on N, the number of tags, due to the repeated linear
3742 search, but currently max(N) is relatively small (the number of
3743 GSS codes, which is 26).
3744 (walk_type): Pass in a seen_tag for use by the walk_subclasses
3745 recursion.
3746
3747 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
3748 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
3749 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
3750 GIMPLE_OMP_RETURN happens to share the data layout of
3751 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
3752 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
3753 underlying GSS value from GSS_OMP_PARALLEL to
3754 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
3755 not directly related; they merely share in-memory layout.
3756 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
3757 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
3758
3759 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
3760 Rename to...
3761 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
3762 ...these.
3763 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
3764 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
3765 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
3766 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
3767 ...these.
3768
3769 * gimple.h (gimple_statement_resx): New subclass of
3770 gimple_statement_eh_ctrl, with the invariant that
3771 stmt->code == GIMPLE_RESX.
3772 (gimple_statement_eh_dispatch): New subclass of
3773 gimple_statement_eh_ctrl, with the invariant that
3774 stmt->code == GIMPLE_EH_DISPATH.
3775
3776 (gimple_statement_omp_parallel): The existing class expressed
3777 a layout (GSS_OMP_PARALLEL), but the codes with that layout
3778 are not all related, so it makes more sense for this class to
3779 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
3780 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
3781 rename the existing gimple_statement_omp_parallel class to...
3782 (gimple_statement_omp_parallel_layout): ...this, expressing
3783 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
3784 (gimple_statement_omp_taskreg): New subclass of
3785 gimple_statement_omp_parallel_layout, expressing the invariant
3786 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
3787 as used by the various gimple_omp_taskreg_ accessors.
3788 (gimple_statement_omp_parallel): Reintroduce this class, this time
3789 as a subclass of gimple_statement_omp_taskreg to express the
3790 invariant stmt->code == GIMPLE_OMP_PARALLEL.
3791 (gimple_statement_omp_target) New class, subclassing
3792 gimple_statement_omp_parallel_layout, to express the invariant
3793 stmt->code == GIMPLE_OMP_TARGET.
3794 (gimple_statement_omp_task): Update to inherit from
3795 gimple_statement_omp_taskreg rather than
3796 gimple_statement_omp_parallel.
3797
3798 (gimple_statement_omp_single): Rename to...
3799 (gimple_statement_omp_single_layout): ...this, expressing the
3800 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
3801 (gimple_statement_omp_single): ...and reintroduce this name as
3802 a subclass of gimple_statement_omp_single_layout, expressing
3803 the invariant that code == GIMPLE_OMP_SINGLE.
3804 (gimple_statement_omp_teams): New class, subclassing
3805 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
3806
3807 (gimple_statement_omp_atomic_store): Rename to...
3808 (gimple_statement_omp_atomic_store_layout): ...this, expressing
3809 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
3810 (gimple_statement_omp_atomic_store): ...and reintroduce this
3811 name as a subclass of gimple_statement_omp_atomic_store_layout
3812 with code == GIMPLE_OMP_ATOMIC_STORE.
3813 (gimple_statement_omp_return): New class, subclassing
3814 gimple_statement_omp_atomic_store_layout for the code
3815 GIMPLE_OMP_RETURN.
3816
3817 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
3818 (is_a_helper <gimple_statement_resx>::test): New.
3819 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
3820 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
3821 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3822 (is_a_helper <gimple_statement_omp_return>::test): New.
3823 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
3824 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
3825 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3826 GIMPLE_OMP_TARGET.
3827 (is_a_helper <gimple_statement_omp_target>::test): New.
3828 (is_a_helper <gimple_statement_omp_single>::test): Only check
3829 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3830 (is_a_helper <gimple_statement_omp_teams>::test): New.
3831
3832 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
3833 (is_a_helper <const gimple_statement_resx>::test): New.
3834 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
3835 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
3836 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
3837 (is_a_helper <const gimple_statement_omp_return>::test): New.
3838 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
3839 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
3840 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
3841 GIMPLE_OMP_TARGET.
3842 (is_a_helper <const gimple_statement_omp_target>::test): New.
3843 (is_a_helper <const gimple_statement_omp_single>::test): Only
3844 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
3845 (is_a_helper <const gimple_statement_omp_teams>::test): New.
3846
3847 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
3848 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
3849 gimple_statement_omp_atomic_store with downcasts to
3850 gimple_statement_omp_return, thus requiring that the code be
3851 GIMPLE_OMP_RETURN.
3852 (gimple_resx_region, gimple_resx_set_region): Replace bogus
3853 downcasts to gimple_statement_eh_ctrl with downcasts to
3854 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
3855 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
3856 Replace bogus downcasts to const gimple_statement_eh_ctrl with
3857 downcasts to gimple_statement_eh_dispatch, thus requiring that
3858 the code be GIMPLE_EH_DISPATCH.
3859 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
3860 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
3861 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
3862 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
3863 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
3864 gimple_statement_omp_parallel with downcasts to
3865 gimple_statement_omp_taskreg, thus requiring that the code be
3866 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
3867 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
3868 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
3869 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
3870 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
3871 gimple_omp_target_set_data_arg): Replace bogus downcasts to
3872 gimple_statement_omp_parallel with downcasts to
3873 gimple_statement_omp_target, thus requiring that the code be
3874 GIMPLE_OMP_TARGET.
3875 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
3876 gimple_omp_teams_set_clauses): Replace bogus downcasts to
3877 gimple_statement_omp_single with downcasts to
3878 gimple_statement_omp_teams, thus requiring that the code be
3879 GIMPLE_OMP_TEAMS.
3880
3881 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
3882 gimple_statement_resx.
3883 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
3884 gimple_statement_eh_dispatch.
3885
3886 2013-11-26 Jakub Jelinek <jakub@redhat.com>
3887
3888 PR tree-optimization/59014
3889 * tree-vrp.c (register_edge_assert_for_1): Don't look
3890 through conversions from non-integral types or through
3891 narrowing conversions.
3892
3893 PR target/59229
3894 * config/i386/i386.c (device_alg): Fix up formatting.
3895 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
3896 similarly to count && count < epilogue_size_needed. Fix up
3897 comment typo.
3898 * builtins.c (determine_block_size): Fix comment typo.
3899
3900 PR sanitizer/59258
3901 * ubsan.c (ubsan_source_location): Don't add any location
3902 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
3903 (ubsan_create_data): Strip block info from LOC.
3904
3905 PR middle-end/59273
3906 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
3907 if there isn't optab handler for the corresponding vector PLUS_EXPR.
3908
3909 PR rtl-optimization/59166
3910 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
3911 DF_REF_LOC in validate_change call.
3912 (split_live_ranges_for_shrink_wrap): Likewise.
3913
3914 PR middle-end/59150
3915 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
3916 of references to constant size types in simd loops, defer emitting
3917 initializer for the new_var, emit it later on only if not using
3918 SIMD arrays for it.
3919
3920 PR middle-end/59152
3921 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
3922 for the inner loop if collapse_bb is non-NULL.
3923 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
3924
3925 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
3926
3927 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
3928 a constant immediate before force_reg.
3929
3930 2013-11-26 Richard Biener <rguenther@suse.de>
3931
3932 PR tree-optimization/59245
3933 * tree-vrp.c (set_value_range): Assert that we don't have
3934 overflowed constants (but our infinities).
3935 (set_value_range_to_value): Drop all overflow flags.
3936 (vrp_visit_phi_node): Likewise.
3937 (vrp_visit_assignment_or_call): Use set_value_range_to_value
3938 to set a constant range.
3939
3940 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3941
3942 PR target/59290
3943 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
3944 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
3945 for zero_extend case.
3946
3947 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
3948
3949 PR bootstrap/55552
3950 * configure.ac (install_gold_as_default): New. Set to yes for
3951 --disable-ld or --enable-gold=default.
3952 (gcc_cv_ld_gold_srcdir): New.
3953 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
3954 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
3955 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3956 * configure: Regenerated.
3957
3958 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
3959 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
3960 (original) [collect-ld && -fuse-ld=bfd]: Set to
3961 $ORIGINAL_LD_BFD_FOR_TARGET.
3962 (original) [collect-ld && -fuse-ld=gold]: Set to
3963 $ORIGINAL_LD_GOLD_FOR_TARGET.
3964 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
3965 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
3966
3967 2013-11-26 Terry Guo <terry.guo@arm.com>
3968
3969 * config/arm/arm.c (require_pic_register): Handle high pic base
3970 register for thumb-1.
3971 (arm_load_pic_register): Also initialize high pic base register.
3972 * doc/invoke.texi: Update documentation for option -mpic-register.
3973
3974 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
3975
3976 PR target/58314
3977 PR target/50751
3978 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
3979 Prefix function names with 'sh_'. Make them non-static.
3980 * config/sh/sh-protos.h (sh_disp_addr_displacement,
3981 sh_max_mov_insn_displacement): Add declarations.
3982 * config/sh/constraints.md (Q): Reject QImode.
3983 (Sdd): Use match_code "mem".
3984 (Snd): Fix erroneous matching of non-memory operands.
3985 * config/sh/predicates.md (short_displacement_mem_operand): New
3986 predicate.
3987 (general_movsrc_operand): Disallow PC relative QImode loads.
3988 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
3989 (*movqi, *movhi): Merge both insns into...
3990 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
3991 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
3992 on the operand types.
3993
3994 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
3995
3996 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3997 Remove unused variable save_config.
3998 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
3999 assert.
4000
4001 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4002
4003 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
4004 using other intrinsics.
4005 (vtbx3_<psu>8): Likewise.
4006
4007 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4008
4009 * config/aarch64/aarch64-builtins.c
4010 (aarch64_types_bsl_p_qualifiers): New.
4011 (aarch64_types_bsl_s_qualifiers): Likewise.
4012 (aarch64_types_bsl_u_qualifiers): Likewise.
4013 (TYPES_BSL_P): Likewise.
4014 (TYPES_BSL_S): Likewise.
4015 (TYPES_BSL_U): Likewise.
4016 (BUILTIN_VALLDIF): Likewise.
4017 (BUILTIN_VDQQH): Likewise.
4018 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
4019 * config/aarch64/aarch64-simd.md
4020 (aarch64_simd_bsl<mode>_internal): Handle more modes.
4021 (aarch64_simd_bsl<mode>): Likewise.
4022 * config/aarch64/arm_neon.h
4023 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
4024 * config/aarch64/iterators.md (VALLDIF): New.
4025 (Vbtype): Handle more modes.
4026
4027 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4028
4029 * config/aarch64/aarch64-builtins.c
4030 (aarch64_type_qualifiers): Add qualifier_poly.
4031 (aarch64_build_scalar_type): Also build Poly types.
4032 (aarch64_build_vector_type): Likewise.
4033 (aarch64_build_type): Likewise.
4034 (aarch64_build_signed_type): New.
4035 (aarch64_build_unsigned_type): Likewise.
4036 (aarch64_build_poly_type): Likewise.
4037 (aarch64_init_simd_builtins): Also handle Poly types.
4038
4039 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
4040
4041 * config/aarch64/aarch64-builtins.c
4042 (VAR1): Use new naming scheme for aarch64_builtins.
4043 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
4044
4045 2013-11-26 Richard Biener <rguenther@suse.de>
4046
4047 PR tree-optimization/59287
4048 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4049 Remove no longer necessary special-casing of union accesses.
4050
4051 2013-11-26 Richard Biener <rguenther@suse.de>
4052
4053 * pretty-print.c (output_buffer::~output_buffer): Really
4054 free the obstacks.
4055
4056 2013-11-25 Jeff Law <law@redhat.com>
4057
4058 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
4059 invalidate loop information.
4060
4061 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4062
4063 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
4064
4065 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
4066
4067 PR target/53976
4068 PR target/59243
4069 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
4070 comments.
4071 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
4072 previously visited basic blocks before recursing instead of only one
4073 basic block.
4074
4075 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4076
4077 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
4078 * config/aarch64/aarch64-cores.def (cortex-a53):
4079 Use cortexa53 tuning struct.
4080
4081 2013-11-25 Andrew Macleod <amacleod@redhat.com>
4082
4083 PR bootstrap/59260
4084 * fold-const.c: Include hash-table.h.
4085
4086 2013-11-25 Marek Polacek <polacek@redhat.com>
4087
4088 PR sanitizer/59258
4089 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
4090
4091 2013-11-25 Richard Biener <rguenther@suse.de>
4092
4093 * tree-dfa.c: Remove unused convert.h include.
4094
4095 2013-11-25 Terry Guo <terry.guo@arm.com>
4096
4097 * doc/invoke.texi (-mslow-flash-data): Document new option.
4098 * config/arm/arm.opt (mslow-flash-data): New option.
4099 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
4100 Declare it.
4101 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
4102 are disabled.
4103 (arm_disable_literal_pool): Declare it.
4104 * config/arm/arm.c (arm_disable_literal_pool): New variable.
4105 (arm_option_override): Handle new option.
4106 (thumb2_legitimate_address_p): Don't allow symbol references when
4107 literal pools are disabled.
4108 (arm_max_const_double_inline_cost): New function.
4109 * config/arm/arm.md (types.md): Include it before ...
4110 (use_literal_pool): New attribute.
4111 (enabled): Use new attribute.
4112 (split pattern): Replace symbol+offset with MOVW/MOVT.
4113
4114 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4115
4116 PR bootstrap/59279
4117 Revert previous commit.
4118
4119 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
4120
4121 * jump.c (reset_insn_reg_label_operand_notes): New function,
4122 split out from ...
4123 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
4124 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
4125 split out from ...
4126 (delete_dead_jumptables): ... here. Handle cfglayout mode.
4127 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
4128 expensive CFG cleanup is called for.
4129 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
4130 (cfg_layout_finalize): Delete dead jump tables before re-building
4131 the insns chain.
4132 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
4133 basic blocks, not before.
4134 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
4135
4136 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
4137 insns chain of a scheduling extended basic block, they cannot appear
4138 there in cfglayout mode.
4139
4140 2013-11-24 Tobias Burnus <burnus@net-b.de>
4141
4142 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
4143
4144 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4145
4146 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
4147 for little endian.
4148
4149 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
4150
4151 * graphite-sese-to-poly.c: Don't include extra "expr.h".
4152
4153 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4154
4155 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
4156
4157 2013-11-23 David Edelson <dje.gcc@gmail.com>
4158 Andrew Dixie <andrewd@gentrack.com>
4159
4160 PR target/33704
4161 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
4162 (COLLECT_SHARED_FINI_FUNC): Define.
4163
4164 * collect2.c (aix_shared_initname): Declare.
4165 (aix_shared_fininame): Declare.
4166 (symkind): Add SYM_AIXI and SYM_AIXD.
4167 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
4168 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
4169 (aixlazy_flag): Parse.
4170 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
4171 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
4172
4173 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
4174
4175 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
4176 (rs6000_xcoff_select_section): Place decls with stricter alignment
4177 into named sections.
4178 (rs6000_xcoff_unique_section): Allow unique sections for
4179 uninitialized data with strict alignment.
4180
4181 2013-11-23 Jakub Jelinek <jakub@redhat.com>
4182
4183 PR tree-optimization/59154
4184 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
4185 rhs1 of a cast and new_op is invariant, fold_convert it.
4186 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
4187 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
4188
4189 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
4190
4191 PR target/56788
4192 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
4193 Declare as MULTI_ARG_1_SF instruction.
4194 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
4195 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
4196 from *xop_vmfrcz_<mode>.
4197 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
4198 to merge scalar result with __A.
4199 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
4200 result with __A.
4201
4202 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
4203
4204 * gimplify.h (recalculate_side_effects): Delete.
4205 * gimplify.c (recalculate_side_effects): Make static and add comment.
4206
4207 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4208
4209 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
4210 for the destination of a define_peephole2. Likewise register_operand
4211 rather than arith_reg_operand. Remove constraints from
4212 define_peephole2s.
4213
4214 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4215
4216 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
4217 Delete.
4218 (mn10300_store_multiple_operation_p): Declare.
4219 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
4220 Rename to...
4221 (mn10300_store_multiple_operation_p): ...this and remove mode
4222 argument.
4223 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
4224 Define.
4225
4226 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
4227
4228 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
4229 (pop_multiple_operation): Delete.
4230 (analyze_push_multiple_operation): Declare.
4231 (analyze_pop_multiple_operation): Declare.
4232 * config/bfin/bfin.c (push_multiple_operation): Rename to...
4233 (analyze_push_multiple_operation): ...this and remove mode argument.
4234 (pop_multiple_operation): Rename to...
4235 (analyze_pop_multiple_operation): ...this and remove mode argument.
4236 * config/bfin/predicates.md (push_multiple_operation): Define.
4237 (pop_multiple_operation): Likewise.
4238
4239 2013-11-23 Alan Modra <amodra@gmail.com>
4240
4241 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
4242
4243 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4244
4245 PR sanitizer/59061
4246 * common.opt (static-liblsan): Add.
4247 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
4248 Define.
4249 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
4250 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
4251 SANITIZE_RETURN.
4252 * opts.c (common_handle_option): Handle -fsanitize=leak.
4253 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
4254 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
4255 (LIBUBSAN_EARLY_SPEC): Remove.
4256 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
4257 (SANITIZER_SPEC): Add -fsanitize=leak handling.
4258 (sanitize_spec_function): Handle %sanitize(leak).
4259 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
4260
4261 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
4262 Jakub Jelinek <jakub@redhat.com>
4263
4264 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
4265 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
4266 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
4267 (ipa_modify_formal_parameters): Adjust caller. Remove
4268 synth_parm_prefix argument. Use operator enum instead of bit fields.
4269 Add assert for properly handling vector of references. Handle
4270 creating brand new parameters.
4271 (ipa_modify_call_arguments): Use operator enum instead of bit
4272 fields.
4273 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
4274 used.
4275 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
4276 New functions.
4277 (ipa_dump_param_adjustments): Rename reduction to new_decl.
4278 Use operator enum instead of bit fields.
4279 * ipa-prop.h (enum ipa_parm_op): New.
4280 (struct ipa_parm_adjustment): New field op. Rename reduction
4281 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
4282 and copy_param.
4283 (ipa_modify_formal_parameters): Remove last argument.
4284 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
4285 ipa_get_adjustment_candidate): New prototypes.
4286 * tree-sra.c (turn_representatives_into_adjustments): Use operator
4287 enum. Set arg_prefix.
4288 (get_adjustment_for_base): Use operator enum.
4289 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
4290 ipa-prop.c.
4291 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
4292 (ipa_sra_modify_function_body): Same. No longer static.
4293 (sra_ipa_reset_debug_stmts): Use operator enum.
4294 (modify_function): Do not pass prefix argument.
4295
4296 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4297
4298 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
4299 (ubsan_pass): Ignore clobber stmts.
4300
4301 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
4302 * opts.c (common_handle_option): Add -fsanitize=return.
4303 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
4304 or it into SANITIZE_UNDEFINED.
4305
4306 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
4307 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
4308 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
4309 Don't instrument accesses to VAR_DECLs which are known to fit
4310 into their bounds and the vars are known to have shadow bytes
4311 indicating allowed access.
4312 (asan_dynamic_init_call): New function.
4313 (asan_add_global): If vnode->dynamically_initialized,
4314 set __has_dynamic_init to 1 instead of 0.
4315 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
4316 * asan.h (asan_dynamic_init_call): New prototype.
4317 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
4318
4319 2013-11-22 Martin Jambor <mjambor@suse.cz>
4320
4321 PR rtl-optimization/10474
4322 * ira.c (interesting_dest_for_shprep_1): New function.
4323 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
4324 also check parallels.
4325
4326 2013-11-22 Jeff Law <law@redhat.com>
4327
4328 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
4329 NULL for RHS, which we used to invalidate equivalences.
4330 (record_temporary_equivalences_from_phis): New bitmap arguments
4331 and a boolean indicating if we have passed a backedge. If we
4332 have passed a backedge, then set the appropriate bit in the
4333 bitmaps for the SRC & DEST of PHIs creating equivalences.
4334 (invalidate_equivalences, dummy_simplify): New functions.
4335 (cond_arg_set_in_b): Remove.
4336 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
4337 arguments and a boolean indicating if we have passed a backedge.
4338 If we have passed a backedge, then perform invalidations as needed.
4339 (thread_around_empty_blocks): If we have seen a backedge, then
4340 use the dummy simplify routine.
4341 (thread_through_normal_block): Likewise. Pass bitmaps and
4342 backedge status to children. Do not pessimize so much when
4343 traversing backedges in the CFG.
4344 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
4345 If we have seen a backedge, then use the dummy simplify routine.
4346 Do not pessimize so much when traversing backedges.
4347
4348 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
4349
4350 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
4351 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4352
4353 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
4354
4355 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
4356 PTA_PCLMUL and PTA_RDRND for Silvermont.
4357 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
4358 for Silvermont.
4359
4360 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
4361
4362 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4363
4364 * hooks.h (hook_uint_mode_0): Add Prototype.
4365 * hooks.c (hook_uint_mode_0): New default function.
4366 * target.def (atomic_align_for_mode): New target hook.
4367 * tree.c (build_atomic_base): Add alignment override parameter.
4368 (build_common_tree_nodes): Use atomic alignment override.
4369 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
4370 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
4371
4372 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
4373
4374 * gimple.h: Remove all includes.
4375 (recalculate_side_effects): Move prototype to gimplify.h.
4376 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
4377 * gengtype.c (open_base_files): Add gimple.h include list.
4378 * gimplify.h (recalculate_side_effects): Relocate prototype here.
4379 * gimple.c: Adjust include list.
4380 (recalculate_side_effects): Move to gimplify.c.
4381 * gimplify.c: Adjust include list.
4382 (recalculate_side_effects): Relocate from gimple.c.
4383 * alias.c: Add required include files removed from gimple.h.
4384 * asan.c: Likewise.
4385 * builtins.c: Likewise.
4386 * calls.c: Likewise.
4387 * cfgexpand.c: Likewise.
4388 * cfgloop.c: Likewise.
4389 * cfgloopmanip.c: Likewise.
4390 * cgraphbuild.c: Likewise.
4391 * cgraph.c: Likewise.
4392 * cgraphclones.c: Likewise.
4393 * cgraphunit.c: Likewise.
4394 * cilk-common.c: Likewise.
4395 * data-streamer.c: Likewise.
4396 * data-streamer-in.c: Likewise.
4397 * data-streamer-out.c: Likewise.
4398 * dse.c: Likewise.
4399 * dwarf2out.c: Likewise.
4400 * emit-rtl.c: Likewise.
4401 * except.c: Likewise.
4402 * expr.c: Likewise.
4403 * fold-const.c: Likewise.
4404 * function.c: Likewise.
4405 * gimple-builder.c: Likewise.
4406 * gimple-expr.c: Likewise.
4407 * gimple-fold.c: Likewise.
4408 * gimple-iterator.c: Likewise.
4409 * gimple-low.c: Likewise.
4410 * gimple-pretty-print.c: Likewise.
4411 * gimple-ssa-isolate-paths.c: Likewise.
4412 * gimple-ssa-strength-reduction.c: Likewise.
4413 * gimple-streamer-in.c: Likewise.
4414 * gimple-streamer-out.c: Likewise.
4415 * gimple-walk.c: Likewise.
4416 * gimplify-me.c: Likewise.
4417 * graphite-blocking.c: Likewise.
4418 * graphite.c: Likewise.
4419 * graphite-clast-to-gimple.c: Likewise.
4420 * graphite-dependences.c: Likewise.
4421 * graphite-interchange.c: Likewise.
4422 * graphite-optimize-isl.c: Likewise.
4423 * graphite-poly.c: Likewise.
4424 * graphite-scop-detection.c: Likewise.
4425 * graphite-sese-to-poly.c: Likewise.
4426 * internal-fn.c: Likewise.
4427 * ipa.c: Likewise.
4428 * ipa-cp.c: Likewise.
4429 * ipa-devirt.c: Likewise.
4430 * ipa-inline-analysis.c: Likewise.
4431 * ipa-inline.c: Likewise.
4432 * ipa-profile.c: Likewise.
4433 * ipa-prop.c: Likewise.
4434 * ipa-pure-const.c: Likewise.
4435 * ipa-reference.c: Likewise.
4436 * ipa-split.c: Likewise.
4437 * ipa-utils.c: Likewise.
4438 * langhooks.c: Likewise.
4439 * lto-cgraph.c: Likewise.
4440 * lto-compress.c: Likewise.
4441 * lto-opts.c: Likewise.
4442 * lto-section-in.c: Likewise.
4443 * lto-section-out.c: Likewise.
4444 * lto-streamer.c: Likewise.
4445 * lto-streamer-in.c: Likewise.
4446 * lto-streamer-out.c: Likewise.
4447 * omp-low.c: Likewise.
4448 * opts-global.c: Likewise.
4449 * passes.c: Likewise.
4450 * predict.c: Likewise.
4451 * profile.c: Likewise.
4452 * sese.c: Likewise.
4453 * stmt.c: Likewise.
4454 * stor-layout.c: Likewise.
4455 * symtab.c: Likewise.
4456 * targhooks.c: Likewise.
4457 * toplev.c: Likewise.
4458 * tracer.c: Likewise.
4459 * trans-mem.c: Likewise.
4460 * tree-affine.c: Likewise.
4461 * tree.c: Likewise.
4462 * tree-call-cdce.c: Likewise.
4463 * tree-cfg.c: Likewise.
4464 * tree-cfgcleanup.c: Likewise.
4465 * tree-chrec.c: Likewise.
4466 * tree-complex.c: Likewise.
4467 * tree-data-ref.c: Likewise.
4468 * tree-dfa.c: Likewise.
4469 * tree-eh.c: Likewise.
4470 * tree-emutls.c: Likewise.
4471 * tree-if-conv.c: Likewise.
4472 * tree-inline.c: Likewise.
4473 * tree-into-ssa.c: Likewise.
4474 * tree-loop-distribution.c: Likewise.
4475 * tree-nested.c: Likewise.
4476 * tree-nrv.c: Likewise.
4477 * tree-object-size.c: Likewise.
4478 * tree-outof-ssa.c: Likewise.
4479 * tree-parloops.c: Likewise.
4480 * tree-phinodes.c: Likewise.
4481 * tree-predcom.c: Likewise.
4482 * tree-pretty-print.c: Likewise.
4483 * tree-profile.c: Likewise.
4484 * tree-scalar-evolution.c: Likewise.
4485 * tree-sra.c: Likewise.
4486 * tree-ssa-address.c: Likewise.
4487 * tree-ssa-alias.c: Likewise.
4488 * tree-ssa.c: Likewise.
4489 * tree-ssa-ccp.c: Likewise.
4490 * tree-ssa-coalesce.c: Likewise.
4491 * tree-ssa-copy.c: Likewise.
4492 * tree-ssa-copyrename.c: Likewise.
4493 * tree-ssa-dce.c: Likewise.
4494 * tree-ssa-dom.c: Likewise.
4495 * tree-ssa-dse.c: Likewise.
4496 * tree-ssa-forwprop.c: Likewise.
4497 * tree-ssa-ifcombine.c: Likewise.
4498 * tree-ssa-live.c: Likewise.
4499 * tree-ssa-loop.c: Likewise.
4500 * tree-ssa-loop-ch.c: Likewise.
4501 * tree-ssa-loop-im.c: Likewise.
4502 * tree-ssa-loop-ivcanon.c: Likewise.
4503 * tree-ssa-loop-ivopts.c: Likewise.
4504 * tree-ssa-loop-manip.c: Likewise.
4505 * tree-ssa-loop-niter.c: Likewise.
4506 * tree-ssa-loop-prefetch.c: Likewise.
4507 * tree-ssa-loop-unswitch.c: Likewise.
4508 * tree-ssa-math-opts.c: Likewise.
4509 * tree-ssanames.c: Likewise.
4510 * tree-ssa-operands.c: Likewise.
4511 * tree-ssa-phiopt.c: Likewise.
4512 * tree-ssa-phiprop.c: Likewise.
4513 * tree-ssa-pre.c: Likewise.
4514 * tree-ssa-propagate.c: Likewise.
4515 * tree-ssa-reassoc.c: Likewise.
4516 * tree-ssa-sccvn.c: Likewise.
4517 * tree-ssa-sink.c: Likewise.
4518 * tree-ssa-strlen.c: Likewise.
4519 * tree-ssa-structalias.c: Likewise.
4520 * tree-ssa-tail-merge.c: Likewise.
4521 * tree-ssa-ter.c: Likewise.
4522 * tree-ssa-threadedge.c: Likewise.
4523 * tree-ssa-threadupdate.c: Likewise.
4524 * tree-ssa-uncprop.c: Likewise.
4525 * tree-ssa-uninit.c: Likewise.
4526 * tree-stdarg.c: Likewise.
4527 * tree-streamer.c: Likewise.
4528 * tree-streamer-in.c: Likewise.
4529 * tree-streamer-out.c: Likewise.
4530 * tree-switch-conversion.c: Likewise.
4531 * tree-tailcall.c: Likewise.
4532 * tree-vect-data-refs.c: Likewise.
4533 * tree-vect-generic.c: Likewise.
4534 * tree-vect-loop.c: Likewise.
4535 * tree-vect-loop-manip.c: Likewise.
4536 * tree-vectorizer.c: Likewise.
4537 * tree-vect-patterns.c: Likewise.
4538 * tree-vect-slp.c: Likewise.
4539 * tree-vect-stmts.c: Likewise.
4540 * tree-vrp.c: Likewise.
4541 * tsan.c: Likewise.
4542 * ubsan.c: Likewise.
4543 * value-prof.c: Likewise.
4544 * varpool.c: Likewise.
4545 * var-tracking.c: Likewise.
4546 * vtable-verify.c: Likewise.
4547 * config/darwin.c: Likewise.
4548 * config/aarch64/aarch64-builtins.c: Likewise.
4549 * config/aarch64/aarch64.c: Likewise.
4550 * config/alpha/alpha.c: Likewise.
4551 * config/i386/i386.c: Likewise.
4552 * config/i386/winnt.c: Likewise.
4553 * config/ia64/ia64.c: Likewise.
4554 * config/m32c/m32c.c: Likewise.
4555 * config/mep/mep.c: Likewise.
4556 * config/mips/mips.c: Likewise.
4557 * config/rs6000/rs6000.c: Likewise.
4558 * config/s390/s390.c: Likewise.
4559 * config/sh/sh.c: Likewise.
4560 * config/sparc/sparc.c: Likewise.
4561 * config/spu/spu.c: Likewise.
4562 * config/stormy16/stormy16.c: Likewise.
4563 * config/tilegx/tilegx.c: Likewise.
4564 * config/tilepro/tilepro.c: Likewise.
4565 * config/xtensa/xtensa.c: Likewise.
4566
4567 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
4568
4569 PR target/59216
4570 * arm.md (negdi_extendsidi): Fix invalid split.
4571
4572 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
4573
4574 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
4575 (vmov_n_f64): Likewise.
4576 (vmov_n_p8): Likewise.
4577 (vmov_n_p16): Likewise.
4578 (vmov_n_s8): Likewise.
4579 (vmov_n_s16): Likewise.
4580 (vmov_n_s32): Likewise.
4581 (vmov_n_s64): Likewise.
4582 (vmov_n_u8): Likewise.
4583 (vmov_n_u16): Likewise.
4584 (vmov_n_u32): Likewise.
4585 (vmov_n_u64): Likewise.
4586 (vmovq_n_f32): Likewise.
4587 (vmovq_n_f64): Likewise.
4588 (vmovq_n_p8): Likewise.
4589 (vmovq_n_p16): Likewise.
4590 (vmovq_n_s8): Likewise.
4591 (vmovq_n_s16): Likewise.
4592 (vmovq_n_s32): Likewise.
4593 (vmovq_n_s64): Likewise.
4594 (vmovq_n_u8): Likewise.
4595 (vmovq_n_u16): Likewise.
4596 (vmovq_n_u32): Likewise.
4597 (vmovq_n_u64): Likewise.
4598
4599 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4600
4601 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4602 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
4603 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
4604 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
4605 and also change to float UNSPEC.
4606 (reduc_maxmin_uns>_<mode>): Remove V2DI.
4607 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
4608 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
4609 result access for big-endian.
4610 (__LANE0): New macro used to fix up lane access of 'across-lanes'
4611 intrinsics for big-endian.
4612 * config/aarch64/iterators.md (VDQV): Add V2DI.
4613 (VDQV_S): New.
4614 (vp): New mode attribute.
4615
4616 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4617
4618 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
4619 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
4620 big-endian.
4621
4622 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4623
4624 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
4625 for big-endian element order.
4626 (aarch64_simd_vec_setv2di): Likewise.
4627 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
4628 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
4629 (vec_extract): Expand using aarch64_get_lane.
4630 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
4631
4632 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
4633
4634 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
4635 and stores to be ABI compliant.
4636
4637 2013-11-22 David Malcolm <dmalcolm@redhat.com>
4638
4639 * input.h (input_line): Remove.
4640 (input_filename): Likewise.
4641 (in_system_header): Likewise.
4642 * tree.h (EXPR_LOC_OR_HERE): Remove.
4643 * config/bfin/bfin.c (output_file_start): Remove use of
4644 input_filename macro.
4645 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
4646 * gimplify.c (internal_get_tmp_var): Likewise.
4647 EXPR_LOC_OR_HERE macro.
4648 (shortcut_cond_expr): Likewise.
4649 * tree-diagnostic.c (diagnostic_report_current_function): Remove
4650 use of input_filename macro.
4651 * tree.c (get_file_function_name): Likewise.
4652
4653 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
4654
4655 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
4656
4657 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4658
4659 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
4660 (same sized) elements even if the type of the CONSTRUCTOR has
4661 vector mode and target is a REG.
4662
4663 2013-11-22 Richard Biener <rguenther@suse.de>
4664
4665 Revert
4666 2013-11-21 Richard Biener <rguenther@suse.de>
4667
4668 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4669 nb_iterations_upper_bound by one.
4670
4671 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
4672
4673 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
4674 for Silvermont.
4675
4676 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
4677 core-avx-i, core-avx2 and slm.
4678
4679 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
4680
4681 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
4682
4683 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
4684
4685 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
4686 (stzx_24_<mode>): Likewise mra_operand.
4687
4688 2013-11-22 Jeff Law <law@redhat.com>
4689
4690 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
4691 (thread_block_1): Do not cancel jump threads which go from
4692 inside a loop, through the header, then back inside the loop.
4693 (bb_ends_with_multiway_branch): New function.
4694 (thread_through_all_blocks): Handle threading cases which start
4695 in a loop through the loop header to a point in the loop.
4696
4697 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
4698 jump thread path properly.
4699
4700 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
4701
4702 * vec.h (auto_vec): New class.
4703 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
4704 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
4705 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
4706 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
4707 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
4708 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
4709 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4710 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
4711 appropriate instead of vec for local variables.
4712
4713 2013-11-21 Teresa Johnson <tejohnson@google.com>
4714
4715 PR target/59233
4716 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
4717 not understood by old_insns_match_p.
4718
4719 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
4720
4721 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
4722 little endian change.
4723 (vec_pack_sfix_trunc_v2df): Likewise.
4724 (vec_pack_ufix_trunc_v2df): Likewise.
4725 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
4726 double checking of endianness.
4727
4728 2013-11-22 Jakub Jelinek <jakub@redhat.com>
4729
4730 * tree-vect-generic.c (optimize_vector_constructor): New function.
4731 (expand_vector_operations_1): Call it.
4732
4733 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
4734
4735 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
4736 ix86_zero_extend_to_Pmode where appropriate.
4737 (ix86_expand_builtin): Ditto.
4738
4739 2013-11-21 Cary Coutant <ccoutant@google.com>
4740
4741 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
4742 (add_linkage_name): Don't add linkage name for -g1.
4743 (decls_for_scope): Process subblocks for -g1.
4744 (dwarf2out_source_line): Output line tables for -g1.
4745 (dwarf2out_finish): Likewise.
4746 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
4747 unused scopes for -g1.
4748 * opts.c (common_handle_option): Handle -g same as -g2.
4749 * doc/invoke.texi: Update description for -g1.
4750
4751 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
4752
4753 * doc/extend.texi: Document htm builtins.
4754
4755 2013-11-21 Jeff Law <law@redhat.com>
4756
4757 PR tree-optimization/59221
4758 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
4759 temporary equivalences when threading through joiner blocks.
4760
4761 2013-11-21 Joseph Myers <joseph@codesourcery.com>
4762
4763 PR rtl-optimization/55950
4764 * real.c (real_sqrt): Remove function.
4765 * real.h (real_sqrt): Remove prototype.
4766 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
4767 SQRT using real_sqrt.
4768
4769 2013-11-21 Richard Biener <rguenther@suse.de>
4770
4771 PR tree-optimization/59058
4772 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
4773 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
4774 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
4775 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
4776 (NITERS_KNOWN_P): Fold into ...
4777 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
4778 (LOOP_VINFO_PEELING_FOR_NITER): Add.
4779 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
4780 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4781 (vect_do_peeling_for_alignment): Re-use precomputed niter
4782 instead of re-emitting it.
4783 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4784 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4785 * tree-vect-loop.c (vect_get_loop_niters): Use
4786 number_of_latch_executions.
4787 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
4788 (vect_analyze_loop_form): Simplify.
4789 (vect_analyze_loop_operations): Move epilogue peeling code ...
4790 (vect_analyze_loop_2): ... here and adjust it to compute
4791 LOOP_VINFO_PEELING_FOR_NITER.
4792 (vect_estimate_min_profitable_iters): Use
4793 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
4794 (vect_build_loop_niters): Emit on the preheader.
4795 (vect_generate_tmps_on_preheader): Likewise.
4796 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
4797 of recomputing it. Adjust.
4798
4799 2013-11-21 Richard Biener <rguenther@suse.de>
4800
4801 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4802 LOC_LINE): Remove wrappers and fix all users.
4803 (struct _loop_vec_info): Remove loop_line_number member.
4804 (LOOP_VINFO_LOC): Remove.
4805 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
4806 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
4807 and LOC_LINE.
4808
4809 2013-11-21 Richard Biener <rguenther@suse.de>
4810
4811 * tree-ssa-forwprop.c (simplify_vce): New function.
4812 (ssa_forward_propagate_and_combine): Call it.
4813
4814 2013-11-21 Richard Biener <rguenther@suse.de>
4815
4816 * tree-vect-loop-manip.c (vect_build_loop_niters,
4817 vect_generate_tmps_on_preheader): Move ...
4818 * tree-vect-loop.c (vect_build_loop_niters,
4819 vect_generate_tmps_on_preheader): ... here and simplify.
4820 (vect_transform_loop): Call them here and pass down results
4821 to consumers.
4822 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
4823 Get niter variables from caller.
4824 (vect_do_peeling_for_alignment): Likewise.
4825 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
4826 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4827 Adjust prototypes.
4828
4829 2013-11-21 Richard Biener <rguenther@suse.de>
4830
4831 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
4832 nb_iterations_upper_bound by one.
4833
4834 2013-11-21 Richard Biener <rguenther@suse.de>
4835
4836 PR tree-optimization/59058
4837 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
4838 (build_size_arg_loc): Apply niter adjustment here.
4839 (generate_memset_builtin): Adjust.
4840 (generate_memcpy_builtin): Likewise.
4841 (classify_partition): Do not use number_of_exit_cond_executions
4842 but record whether niter needs to be adjusted.
4843
4844 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
4845
4846 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
4847 could throw.
4848
4849 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
4850
4851 PR target/53976
4852 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
4853 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
4854 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
4855 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
4856 sh_optimize_sett_clrt pass.o to extra_objs.
4857
4858 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4859
4860 * cfg.c (dump_edge_info): Remove redundant comment.
4861 * cfgcleanup.c (outgoing_edges_match): Reword reference to
4862 EXIT_BLOCK_PTR in comment.
4863 (try_optimize_cfg): Likewise.
4864 * cfgrtl.c (last_bb_in_partition): Likewise.
4865 * cgraph.c (cgraph_node_cannot_return): Likewise.
4866 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4867 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
4868 * ipa-split.c (consider_split): Likewise.
4869 * profile.c (find_spanning_tree): Likewise.
4870 * sched-int.h (common_sched_info_def.add_block): Likewise.
4871 * dominance.c (calc_dfs_tree_nonrec): Reword references in
4872 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
4873 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
4874 in comments to now removed ENTRY_BLOCK_PTR macro.
4875 (tree_forwarder_block_p): Reword reference in comment to
4876 EXIT_BLOCK_PTR.
4877 * tree-inline.c (copy_cfg_body): Reword references in comments to
4878 now removed ENTRY_BLOCK_PTR macro.
4879 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
4880 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
4881 a comma to the comment to clarify the meaning.
4882
4883 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
4884
4885 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
4886 Move to gimplify.c.
4887 (free_gimplify_stack): Add prototype.
4888 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
4889 (struct gimplify_ctx): Relocate here.
4890 (gimplify_ctxp): Make static.
4891 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
4892 list of struct gimplify_ctx.
4893 (push_gimplify_context): Add default parameters and allocate a struct
4894 from the pool.
4895 (pop_gimplify_context): Free a struct back to the pool.
4896 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4897 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
4898 use a local 'struct gimplify_ctx'.
4899 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
4900 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
4901 Likewise.
4902 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4903 lower_omp_ordered, lower_omp_critical, lower_omp_for,
4904 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
4905 lower_omp_teams, execute_lower_omp): Likewise.
4906 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
4907 * tree-inline.c (optimize_inline_calls): Likewise.
4908
4909 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4910
4911 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
4912 (vsx_extract_<mode>): Likewise.
4913 (*vsx_extract_<mode>_one_le): New LE variant on
4914 *vsx_extract_<mode>_zero.
4915 (vsx_extract_v4sf): Adjust for little endian.
4916
4917 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
4918
4919 PR rtl-optimization/59133
4920 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
4921 new pseudos.
4922 (lra_create_new_reg_with_unique_value): Pass new argument value.
4923 (lra_emit_add, lra_emit_move): Ditto.
4924 * lra-constraints.c (in_class_p): Add check for move for a new insn.
4925 (change_class): Rename to lra_change_class. Move to lra-int.h.
4926 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
4927 change_class.
4928 (process_addr_reg, process_addr): Ditto.
4929 (curr_insn_transform): Ditto. Add check on old pseudo for
4930 optional reload.
4931 * lra-int.h (lra_get_regno_hard_regno): Move below.
4932 (lra_change_class): Renamed change_class from lra.c.
4933
4934 2013-11-20 David Malcolm <dmalcolm@redhat.com>
4935
4936 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
4937 the children of a NULL pointer.
4938
4939 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
4940
4941 * lra.c (lra): Set lra_in_progress before check_rtl call.
4942 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
4943 adding clobber regs when LRA is running.
4944
4945 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4946
4947 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
4948 restriction for ISA_MIPS32R2.
4949 (ISA_HAS_LXC1_SXC1): New macro.
4950 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
4951 (ISA_HAS_NMADD4_NMSUB4): Likewise.
4952 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
4953 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
4954 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
4955 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
4956 (*<ANYF:storex>_<P:mode>): Likewise.
4957
4958 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
4959
4960 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
4961 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
4962 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
4963 * config/mips/mips.md (recip_condition): Remove mode attribute.
4964 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
4965 <recip_condition>.
4966 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
4967
4968 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4969
4970 PR target/59207
4971 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
4972 Make sure neg2_ovf is set before being used.
4973
4974 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
4975
4976 * plugin.def: Add comment about register_callback and
4977 invoke_plugin_callbacks_full.
4978
4979 * plugin.c (register_callback, invoke_plugin_callbacks_full):
4980 Handle PLUGIN_INCLUDE_FILE event.
4981
4982 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4983
4984 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
4985 allow subregs of TDmode in FPRs of smaller size in little-endian.
4986 (rs6000_split_multireg_move): When splitting an access to TDmode
4987 in FPRs, do not use simplify_gen_subreg.
4988
4989 2013-11-20 Joseph Myers <joseph@codesourcery.com>
4990
4991 PR middle-end/21718
4992 * real.c: Remove comment about decimal string conversion and
4993 rounding errors.
4994 (real_from_string): Use MPFR to convert nonzero decimal constant
4995 to REAL_VALUE_TYPE.
4996
4997 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
4998
4999 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
5000 endianness of the D registers for the legacy encodings.
5001
5002 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
5003
5004 PR rtl-optimization/54300
5005 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
5006 outputs in a single-set are killed from the value chains.
5007
5008 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5009
5010 * cgraph.h (varpool_node): Add need_bounds_init field.
5011 * lto-cgraph.c (lto_output_varpool_node): Output
5012 need_bounds_init value.
5013 (input_varpool_node): Read need_bounds_init value.
5014 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
5015
5016 2013-11-20 Jan Hubicka <jh@suse.cz>
5017
5018 * opts.c (finish_options): Imply -ffat-lto-objects with
5019 -fno-use-linker-plugin.
5020 * common.opt (fuse-linker-plugin): Add var.
5021
5022 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
5023
5024 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
5025 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
5026 (gen_type_die_with_usage): Skip pointer bounds.
5027 (dwarf2out_global_decl): Likewise.
5028
5029 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5030
5031 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
5032 from all insns.
5033
5034 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
5035
5036 PR target/57756
5037 * config/i386/i386.c (ix86_option_override_internal): Add missed
5038 argument prefix for 'ix86_fpmath'.
5039 * config/i386/ssemath.h: Add missed definition of
5040 TARGET_FPMATH_DEFAULT_P macros.
5041
5042 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5043 Mike Stump <mikestump@comcast.net>
5044 Richard Sandiford <rdsandiford@googlemail.com>
5045
5046 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
5047 instead of TREE_INT_CST_LOW, in cases where there is a protecting
5048 tree_fits_shwi_p or tree_fits_uhwi_p.
5049 * builtins.c (fold_builtin_powi): Likewise.
5050 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
5051 Likewise.
5052 * dbxout.c (dbxout_symbol): Likewise.
5053 * expr.c (expand_expr_real_1): Likewise.
5054 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
5055 (fold_binary_loc): Likewise.
5056 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
5057 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
5058 * omp-low.c (lower_omp_for_lastprivate): Likewise.
5059 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5060 * stor-layout.c (compute_record_mode): Likewise.
5061 * tree-cfg.c (verify_expr): Likewise.
5062 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5063 * tree-pretty-print.c (dump_array_domain): Likewise.
5064 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
5065 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
5066 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
5067 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
5068 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5069 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
5070 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5071 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
5072 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
5073 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
5074 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
5075 (create_variable_info_for_1): Likewise.
5076 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
5077 (vect_verify_datarefs_alignment): Likewise.
5078 (vect_analyze_data_ref_accesses): Likewise.
5079 (vect_prune_runtime_alias_test_list): Likewise.
5080 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
5081
5082 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5083
5084 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
5085 overflow. Use tree_to_shwi.
5086
5087 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
5088
5089 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
5090 HOST_WIDE_INTs when folding (x >> c) << c.
5091
5092 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5093 Dominik Vogt <vogt@linux.vnet.ibm.com>
5094
5095 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
5096 int comparisons with an out of range condition code.
5097 (s390_optimize_nonescaping_tx): Skip empty BBs.
5098 Generate the new tbegin RTX when removing the FPR clobbers (with
5099 two SETs).
5100 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
5101 result before doing the retry calculations.
5102 (s390_init_builtins): Make tbegin "returns_twice" and tabort
5103 "noreturn".
5104 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
5105 the TDB setting part of an tbegin.
5106 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
5107 ("tx_assist"): Set unused argument to an immediate zero instead of
5108 loading zero into a GPR and pass it as argument.
5109 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
5110 Remove inline and related attributes.
5111 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
5112 (__TM_is_illegal, __TM_is_footprint_exceeded)
5113 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
5114
5115 2013-11-20 Richard Biener <rguenther@suse.de>
5116
5117 PR lto/59035
5118 * lto-opts.c (lto_write_options): Write defaults only if
5119 they were not explicitely specified. Also write
5120 -ffp-contract default.
5121 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
5122 conservatively.
5123 (run_gcc): Pass through -ffp-contract.
5124
5125 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5126
5127 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
5128
5129 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
5130
5131 * config/aarch64/aarch64-builtins.c
5132 (aarch64_simd_itype): Remove.
5133 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
5134 (VAR1): Use qualifiers.
5135 (aarch64_build_scalar_type): New.
5136 (aarch64_build_vector_type): Likewise.
5137 (aarch64_build_type): Likewise.
5138 (aarch64_init_simd_builtins): Refactor, remove special cases,
5139 consolidate main loop.
5140 (aarch64_simd_expand_args): Likewise.
5141
5142 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
5143
5144 PR c/53001
5145 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
5146
5147 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
5148
5149 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
5150
5151 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5152
5153 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
5154 to "vec<>" instances.
5155 (build_pretty_printer): Register the vec<>* prettyprinter.
5156
5157 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5158
5159 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
5160 (GdbSubprinter.handles_type): New.
5161 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
5162 (GdbSubprinterRegex): New subclass of GdbSubprinter.
5163 (GdbPrettyPrinters.add_printer): Remove in favor of...
5164 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
5165 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
5166 (GdbPrettyPrinters.__call__): Update search for subprinter
5167 to use handles_type method.
5168 (build_pretty_printer): Update registration of subprinters to
5169 use the new API above, supporting multiple spelling of each type,
5170 and allowing for future regex-based subprinters.
5171
5172 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5173
5174 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
5175 V16QI vector splat case for little endian.
5176
5177 2013-11-19 Jeff Law <law@redhat.com>
5178
5179 * tree-ssa-threadedge.c (thread_across_edge): After threading
5180 through a joiner, allow threading a normal block requiring duplication.
5181
5182 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
5183 jump threading requests that would muck up the loop structures.
5184
5185 * tree-ssa-threadupdate.c: Fix trailing whitespace.
5186 * tree-ssa-threadupdate.h: Likewise.
5187
5188 2013-11-19 Mike Stump <mikestump@comcast.net>
5189
5190 * gdbinit.in: Add pmz to print out mpz values.
5191
5192 2013-11-20 Jan Hubicka <jh@suse.cz>
5193
5194 * common.opt (ffat-lto-objects): Disable by default.
5195 * doc/invoke.texi (fat-lto-objects): Update documentation.
5196 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
5197
5198 2013-11-19 Martin Jambor <mjambor@suse.cz>
5199
5200 PR rtl-optimization/59099
5201 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
5202 here.
5203 (ira): Move init_reg_equiv and call to
5204 split_live_ranges_for_shrink_wrap up, remove analyses around call
5205 to find_moveable_pseudos.
5206
5207 2013-11-20 Alan Modra <amodra@gmail.com>
5208
5209 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
5210 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
5211 to strict alignment on older processors when little-endian.
5212 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
5213 for ELFv2.
5214
5215 2013-11-19 Teresa Johnson <tejohnson@google.com>
5216
5217 * common/config/i386/i386-common.c: Enable
5218 -freorder-blocks-and-partition at -O2 and up for x86.
5219 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
5220 * opts.c (finish_options): Only warn if
5221 -freorder-blocks-and-partition was set on command line.
5222
5223 2013-11-19 Sriraman Tallam <tmsriram@google.com>
5224
5225 * final.c (final_scan_insn): Emit a label for the split
5226 cold function part. Label name is formed by suffixing
5227 the original function name with "cold".
5228
5229 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5230
5231 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
5232 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
5233 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
5234 (EXIT_BLOCK_PTR_FOR_FN): ...this.
5235 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
5236 cfun be explicit.
5237 (EXIT_BLOCK_PTR): Likewise.
5238 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
5239 (FOR_ALL_BB_FN): Update for renaming of
5240 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
5241
5242 * cfg.c (init_flow): Likewise.
5243 (check_bb_profile): Likewise.
5244 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
5245 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
5246 * cfghooks.c (account_profile_record): Likewise.
5247 * cfgloop.c (init_loops_structure): Likewise.
5248 * cgraphbuild.c (record_eh_tables): Likewise.
5249 (compute_call_stmt_bb_frequency): Likewise.
5250 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
5251 * lto-streamer-in.c (input_cfg): Likewise.
5252 * predict.c (maybe_hot_frequency_p): Likewise.
5253 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5254 * tree-inline.c (initialize_cfun): Likewise.
5255 (copy_cfg_body): Likewise.
5256 (copy_body): Likewise.
5257 (tree_function_versioning): Likewise.
5258
5259 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
5260 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5261 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
5262 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
5263 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5264 (connect_traces): Likewise.
5265 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5266 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
5267 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
5268 macro.
5269 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
5270 EXIT_BLOCK_PTR.
5271 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
5272 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
5273 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
5274 (rotate_loop): Likewise.
5275 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
5276 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5277 EXIT_BLOCK_PTR.
5278 (alloc_aux_for_edges): Likewise.
5279 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
5280 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5281 EXIT_BLOCK_PTR.
5282 (compact_blocks): Likewise.
5283 (clear_edges): Likewise.
5284 * cfganal.c (single_pred_before_succ_order): Remove usage of
5285 ENTRY_BLOCK_PTR macro.
5286 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5287 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5288 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
5289 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
5290 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5291 EXIT_BLOCK_PTR.
5292 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
5293 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
5294 EXIT_BLOCK_PTR.
5295 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
5296 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5297 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5298 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5299 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5300 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
5301 EXIT_BLOCK_PTR.
5302 (print_edge_list): Likewise.
5303 (create_edge_list): Likewise.
5304 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5305 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5306 EXIT_BLOCK_PTR.
5307 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
5308 macro.
5309 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
5310 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5311 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
5312 (try_optimize_cfg): Likewise.
5313 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
5314 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
5315 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
5316 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
5317 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
5318 (try_forward_edges): Likewise.
5319 (try_simplify_condjump): Likewise.
5320 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
5321 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5322 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
5323 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
5324 EXIT_BLOCK_PTR.
5325 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
5326 (expand_gimple_tailcall): Likewise.
5327 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
5328 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5329 (tidy_fallthru_edges): Likewise.
5330 (verify_flow_info): Likewise.
5331 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
5332 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
5333 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
5334 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
5335 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
5336 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
5337 (get_loop_body_in_dom_order): Likewise.
5338 (get_loop_body): Likewise.
5339 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
5340 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5341 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
5342 macro.
5343 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
5344 (fix_bb_placement): Likewise.
5345 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
5346 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5347 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
5348 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
5349 EXIT_BLOCK_PTR.
5350 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5351 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
5352 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5353 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5354 macro.
5355 (fixup_fallthru_exit_predecessor): Remove uses of macros:
5356 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5357 (fixup_reorder_chain): Likewise.
5358 (relink_block_chain): Likewise.
5359 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
5360 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5361 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5362 (force_one_exit_fallthru): Likewise.
5363 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
5364 EXIT_BLOCK_PTR.
5365 (rtl_verify_edges): Likewise.
5366 (commit_edge_insertions): Likewise.
5367 (commit_one_edge_insertion): Likewise.
5368 (rtl_split_edge): Likewise.
5369 (force_nonfallthru_and_redirect): Likewise.
5370 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
5371 (skip_insns_after_block): Likewise.
5372 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
5373 EXIT_BLOCK_PTR.
5374 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
5375 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
5376 EXIT_BLOCK_PTR.
5377 (contains_no_active_insn_p): Likewise.
5378 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5379 (entry_of_function): Likewise.
5380 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
5381 (fixup_new_cold_bb): Likewise.
5382 (patch_jump_insn): Likewise.
5383 (try_redirect_by_replacing_jump): Likewise.
5384 (block_label): Likewise.
5385 (could_fall_through): Likewise.
5386 (can_fallthru): Likewise.
5387 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
5388 ENTRY_BLOCK_PTR macro.
5389 (rebuild_cgraph_edges): Likewise.
5390 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
5391 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5392 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
5393 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
5394 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
5395 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
5396 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
5397 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
5398 macro.
5399 (reg_nonzero_bits_for_combine): Likewise.
5400 (set_nonzero_bits_and_sign_copies): Likewise.
5401 (combine_instructions): Likewise.
5402 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
5403 EXIT_BLOCK_PTR.
5404 (bypass_conditional_jumps): Likewise.
5405 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
5406 (find_implicit_sets): Likewise.
5407 (cprop_jump): Likewise.
5408 * cse.c (cse_cc_succs): Likewise.
5409 (cse_find_path): Likewise.
5410 * df-problems.c (df_lr_confluence_0): Likewise.
5411 * df-scan.c (df_entry_block_defs_collect): Remove usage of
5412 ENTRY_BLOCK_PTR macro.
5413 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
5414 * dominance.c (iterate_fix_dominators): Remove usage of
5415 ENTRY_BLOCK_PTR macro.
5416 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5417 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
5418 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
5419 EXIT_BLOCK_PTR.
5420 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
5421 macro.
5422 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
5423 EXIT_BLOCK_PTR.
5424 * domwalk.c (cmp_bb_postorder): Likewise.
5425 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
5426 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
5427 macro.
5428 (sjlj_emit_function_enter): Likewise.
5429 * final.c (compute_alignments): Likewise.
5430 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
5431 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5432 (reposition_prologue_and_epilogue_notes): Remove usage of
5433 EXIT_BLOCK_PTR macro.
5434 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
5435 EXIT_BLOCK_PTR.
5436 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
5437 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
5438 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
5439 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
5440 (compute_code_hoist_vbeinout): Likewise.
5441 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5442 (pre_expr_reaches_here_p_work): Likewise.
5443 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
5444 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
5445 EXIT_BLOCK_PTR.
5446 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
5447 ENTRY_BLOCK_PTR macro.
5448 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
5449 macro.
5450 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
5451 ENTRY_BLOCK_PTR macro.
5452 * graphite-scop-detection.c (build_scops): Likewise.
5453 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
5454 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
5455 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
5456 macro.
5457 (unlink_bb_notes): Likewise.
5458 (create_check_block_twin): Likewise.
5459 (init_before_recovery): Likewise.
5460 (sched_extend_bb): Likewise.
5461 (priority): Likewise.
5462 * hw-doloop.c (reorder_loops): Likewise.
5463 (discover_loop): Likewise.
5464 * ifcvt.c (dead_or_predicable): Remove uses of macros:
5465 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5466 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
5467 (block_has_only_trap): Likewise.
5468 (cond_exec_find_if_block): Likewise.
5469 (merge_if_block): Likewise.
5470 * ipa-inline-analysis.c (param_change_prob): Remove usage of
5471 ENTRY_BLOCK_PTR macro.
5472 (record_modified): Likewise.
5473 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
5474 EXIT_BLOCK_PTR macro.
5475 (local_pure_const): Likewise.
5476 * ipa-split.c (split_function): Remove uses of macros:
5477 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5478 (find_split_points): Likewise.
5479 (consider_split): Likewise.
5480 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
5481 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5482 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
5483 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
5484 * ira-emit.c (entered_from_non_parent_p): Remove usage of
5485 ENTRY_BLOCK_PTR macro.
5486 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
5487 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
5488 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
5489 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5490 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
5491 macro.
5492 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
5493 EXIT_BLOCK_PTR.
5494 (compute_farthest): Likewise.
5495 (compute_available): Likewise.
5496 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
5497 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
5498 EXIT_BLOCK_PTR.
5499 (compute_earliest): Likewise.
5500 (compute_antinout_edge): Likewise.
5501 * loop-iv.c (simplify_using_initial_values): Remove usage of
5502 ENTRY_BLOCK_PTR macro.
5503 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
5504 macro.
5505 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
5506 macro.
5507 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
5508 macro.
5509 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
5510 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5511 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
5512 macro.
5513 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
5514 macro.
5515 * lto-streamer-out.c (output_cfg): Likewise.
5516 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
5517 EXIT_BLOCK_PTR.
5518 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
5519 * mode-switching.c (optimize_mode_switching): Likewise.
5520 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
5521 * modulo-sched.c (rest_of_handle_sms): Likewise.
5522 (canon_loop): Likewise.
5523 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
5524 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
5525 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5526 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
5527 macro.
5528 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
5529 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
5530 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
5531 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
5532 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
5533 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
5534 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
5535 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5536 (gimple_predict_edge): Likewise.
5537 (probably_never_executed): Likewise.
5538 * profile.c (find_spanning_tree): Remove uses of macros:
5539 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5540 (branch_prob): Likewise.
5541 (compute_branch_probabilities): Likewise.
5542 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
5543 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
5544 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
5545 (set_bb_counts): Likewise.
5546 (correct_negative_edge_counts): Likewise.
5547 (get_exec_counts): Likewise.
5548 (instrument_values): Likewise.
5549 (instrument_edges): Likewise.
5550 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
5551 EXIT_BLOCK_PTR.
5552 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
5553 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
5554 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5555 (reg_to_stack): Likewise.
5556 * regs.h (REG_N_SETS): Likewise.
5557 * reload.c (find_dummy_reload): Likewise.
5558 (combine_reloads): Likewise.
5559 (push_reload): Likewise.
5560 * reload1.c (has_nonexceptional_receiver): Remove usage of
5561 EXIT_BLOCK_PTR macro.
5562 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
5563 macro.
5564 (find_basic_block): Likewise.
5565 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5566 (schedule_ebbs): Likewise.
5567 * sched-int.h (sel_sched_p): Likewise.
5568 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
5569 macro.
5570 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
5571 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
5572 EXIT_BLOCK_PTR.
5573 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
5574 (extend_rgns): Likewise.
5575 (find_single_block_region): Likewise.
5576 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
5577 ENTRY_BLOCK_PTR macro.
5578 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
5579 (sel_create_recovery_block): Likewise.
5580 (bb_ends_ebb_p): Likewise.
5581 (sel_bb_end): Likewise.
5582 (sel_bb_head): Likewise.
5583 (free_lv_sets): Likewise.
5584 (init_lv_sets): Likewise.
5585 (tidy_control_flow): Likewise.
5586 (maybe_tidy_empty_bb): Likewise.
5587 * sel-sched-ir.h (_succ_iter_cond): Likewise.
5588 (_succ_iter_start): Likewise.
5589 (sel_bb_empty_or_nop_p): Likewise.
5590 (get_loop_exit_edges_unique_dests): Likewise.
5591 (inner_loop_header_p): Likewise.
5592 * sel-sched.c (create_block_for_bookkeeping): Likewise.
5593 (find_block_for_bookkeeping): Likewise.
5594 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5595 (insert_store): Likewise.
5596 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
5597 ENTRY_BLOCK_PTR macro.
5598 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
5599 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
5600 (gate_tm_init): Likewise.
5601 (tm_region_init): Likewise.
5602 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
5603 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5604 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
5605 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
5606 EXIT_BLOCK_PTR.
5607 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
5608 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
5609 EXIT_BLOCK_PTR.
5610 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
5611 macro.
5612 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
5613 EXIT_BLOCK_PTR.
5614 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
5615 macro.
5616 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5617 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
5618 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
5619 (build_gimple_cfg): Likewise.
5620 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
5621 (gimple_can_merge_blocks_p): Likewise.
5622 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
5623 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5624 * tree-complex.c (update_parameter_components): Remove usage of
5625 ENTRY_BLOCK_PTR macro.
5626 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
5627 EXIT_BLOCK_PTR macro.
5628 * tree-inline.c (tree_function_versioning): Remove uses of macros:
5629 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5630 (delete_unreachable_blocks_update_callgraph): Likewise.
5631 (initialize_cfun): Likewise.
5632 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
5633 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
5634 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
5635 * tree-into-ssa.c (update_ssa): Likewise.
5636 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
5637 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
5638 (rewrite_into_ssa): Likewise.
5639 (rewrite_debug_stmt_uses): Likewise.
5640 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
5641 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5642 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
5643 ENTRY_BLOCK_PTR macro.
5644 * tree-scalar-evolution.h (block_before_loop): Likewise.
5645 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
5646 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
5647 EXIT_BLOCK_PTR.
5648 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
5649 macro.
5650 (propagate_dereference_distances): Remove uses of macros:
5651 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5652 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
5653 macro.
5654 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
5655 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
5656 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5657 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
5658 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5659 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
5660 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
5661 (mark_control_dependent_edges_necessary): Remove uses of macros:
5662 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5663 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
5664 ENTRY_BLOCK_PTR macro.
5665 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
5666 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
5667 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5668 (calculate_live_on_exit): Likewise.
5669 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
5670 (loe_visit_block): Likewise.
5671 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
5672 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5673 (live_on_entry): Likewise.
5674 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
5675 EXIT_BLOCK_PTR macro.
5676 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
5677 ENTRY_BLOCK_PTR macro.
5678 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
5679 (bound_difference): Likewise.
5680 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
5681 of EXIT_BLOCK_PTR macro.
5682 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
5683 of ENTRY_BLOCK_PTR macro.
5684 * tree-ssa-math-opts.c (register_division_in): Likewise.
5685 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
5686 * tree-ssa-pre.c (compute_avail): Likewise.
5687 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
5688 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
5689 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5690 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
5691 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
5692 EXIT_BLOCK_PTR.
5693 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
5694 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
5695 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5696 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
5697 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
5698 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
5699 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
5700 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
5701 (find_pdom): Likewise.
5702 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
5703 * tree-stdarg.c (reachable_at_most_once): Likewise.
5704 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
5705 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5706 (eliminate_tail_call): Likewise.
5707 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
5708 macro.
5709 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
5710 * var-tracking.c (vt_initialize): Remove uses of macros:
5711 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
5712 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
5713 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
5714 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
5715 EXIT_BLOCK_PTR.
5716 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
5717 macro.
5718 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5719 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
5720 of EXIT_BLOCK_PTR macro.
5721 * config/arm/arm.c (require_pic_register): Remove usage of
5722 ENTRY_BLOCK_PTR macro.
5723 (arm_r3_live_at_start_p): Likewise.
5724 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
5725 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5726 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
5727 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
5728 ENTRY_BLOCK_PTR macro.
5729 * config/i386/i386.c (ix86_count_insn): Likewise.
5730 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
5731 (ix86_pad_short_function): Likewise.
5732 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
5733 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
5734 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
5735 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
5736 (ix86_expand_epilogue): Likewise.
5737 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
5738 (ia64_expand_prologue): Likewise.
5739
5740 2013-11-19 Catherine Moore <clm@codesourcery.com>
5741
5742 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
5743 * config/mips/mips.opt (mfix-rm7000): New option.
5744 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
5745 * config/mips/mips.c (mips_reorg_process_insns): Disable
5746 noreorder for TARGET_FIX_RM7000.
5747
5748 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
5749
5750 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
5751
5752 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5753
5754 * config/arm/arm.c (arm_new_rtx_costs):
5755 Handle narrow mode add-shifts properly.
5756 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
5757 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
5758 Declare extern.
5759
5760 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
5761
5762 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
5763
5764 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5765
5766 * config/rs6000/vector.md ("mov<mode>"): Do not call
5767 rs6000_emit_le_vsx_move to move into or out of GPRs.
5768 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
5769 source and destination are not GPR hard regs.
5770
5771 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5772
5773 * basic-block.h (n_edges_for_function): Rename macro to...
5774 (n_edges_for_fn): ...this.
5775 (n_edges): Eliminate macro as work towards making uses of
5776 cfun be explicit.
5777
5778 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
5779 to "n_edges_for_fn".
5780
5781 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
5782 (clear_edges): Likewise.
5783 (free_edge): Likewise.
5784 * cfghooks.c (dump_flow_info): Likewise.
5785 * cprop.c (is_too_expensive): Likewise.
5786 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5787 * gcse.c (is_too_expensive): Likewise.
5788 (prune_insertions_deletions): Likewise.
5789 * mcf.c (create_fixup_graph): Likewise.
5790 * sched-rgn.c (haifa_find_rgns): Likewise.
5791 * tree-cfg.c (gimple_dump_cfg): Likewise.
5792 * var-tracking.c (variable_tracking_main_1): Likewise.
5793
5794 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5795
5796 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
5797 length lines.
5798
5799 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5800
5801 * config/aarch64/aarch64.md
5802 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
5803
5804 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
5805
5806 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
5807
5808 2013-11-19 Joseph Myers <joseph@codesourcery.com>
5809
5810 * varasm.c (align_variable): Give error instead of warning for
5811 unsupported alignment.
5812 (assemble_noswitch_variable): Likewise.
5813
5814 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
5815
5816 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
5817 cb_file_change.
5818
5819 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
5820
5821 * loop-doloop.c (doloop_optimize_loops): Remove unused
5822 loop iterator argument from FOR_EACH_LOOP.
5823
5824 2013-11-19 David Malcolm <dmalcolm@redhat.com>
5825
5826 Convert gimple types from a union to C++ inheritance.
5827 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
5828 * coretypes.h (union gimple_statement_d): Remove declaration.
5829 (gimple): Convert from being a "union gimple_statement_d *"
5830 to a "struct gimple_statement_base *".
5831 (const_gimple): Likewise (with "const").
5832 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
5833 (ggc_alloc_cleared_gimple_statement_stat): ...this.
5834 * gimple-pretty-print.c (debug): Change parameter from a
5835 "gimple_statement_d &" to a "gimple_statement_base &".
5836 (debug): Change parameter from a "gimple_statement_d *" to
5837 a "gimple_statement_base *".
5838 * gimple-pretty-print.h (debug): Update declarations as above.
5839 * gimple.c (gimple_alloc_stat): Update for renaming of
5840 ggc_alloc_cleared_gimple_statement_d_stat to
5841 ggc_alloc_cleared_gimple_statement_stat.
5842 * gimple.h: Include "is-a.h" for use by is_a_helper
5843 specializations in followup autogenerated patch.
5844 (struct gimple statement_base): Make this type usable as a base
5845 class by adding "desc", "tag" and "variable_size" to GTY, thus
5846 using opting-in to gengtype's support for simple inheritance.
5847 (gimple_statement_with_ops_base): Convert to a subclass of
5848 gimple_statement_base, dropping initial "gsbase" field. Note that
5849 this type is abstract, with no GSS_ value, and thus no GTY tag value.
5850 (gimple_statement_with_ops): Convert to a subclass of
5851 gimple_statement_with_ops_base, dropping initial "opbase" field.
5852 Add tag value to GTY marking. Update marking of op field to
5853 reflect how num_ops field is accessed via inheritance.
5854 (gimple_statement_with_memory_ops_base): Convert to a subclass of
5855 gimple_statement_with_ops_base, dropping initial "opbase" field.
5856 Add tag value to GTY marking.
5857 (gimple_statement_with_memory_ops): Convert to a subclass of
5858 public gimple_statement_with_memory_ops_base, dropping initial
5859 "membase" field. Add tag value to GTY marking. Update marking
5860 of op field to reflect how num_ops field is accessed via inheritance.
5861 (gimple_statement_call): Analogous changes that also update the
5862 marking of the "u" union.
5863 (gimple_statement_omp): Convert to a subclass of
5864 gimple_statement_base, dropping initial "gsbase" field, adding
5865 tag value to GTY marking.
5866 (gimple_statement_bind): Likewise.
5867 (gimple_statement_catch): Likewise.
5868 (gimple_statement_eh_filter): Likewise.
5869 (gimple_statement_eh_else): Likewise.
5870 (gimple_statement_eh_mnt): Likewise.
5871 (gimple_statement_phi): Likewise.
5872 (gimple_statement_eh_ctrl): Likewise.
5873 (gimple_statement_try): Likewise.
5874 (gimple_statement_wce): Likewise.
5875 (gimple_statement_asm): Convert to a subclass of
5876 gimple_statement_with_memory_ops_base, dropping initial
5877 "membase" field, adding tag value to GTY marking, and updating
5878 marking of op field.
5879 (gimple_statement_omp_critical): Convert to a subclass of
5880 gimple_statement_omp, dropping initial "omp" field, adding tag
5881 value to GTY marking.
5882 (gimple_statement_omp_for): Likewise.
5883 (gimple_statement_omp_parallel): Likewise.
5884 (gimple_statement_omp_task): Convert to a subclass of
5885 gimple_statement_omp_parallel, dropping initial "par" field,
5886 adding tag value to GTY marking.
5887 (gimple_statement_omp_sections): Convert to a subclass of
5888 gimple_statement_omp, dropping initial "omp" field, adding
5889 tag value to GTY marking.
5890 (gimple_statement_omp_continue): Convert to a subclass of
5891 gimple_statement_base, dropping initial "gsbase" field, adding
5892 tag value to GTY marking.
5893 (gimple_statement_omp_single): Convert to a subclass of
5894 gimple_statement_omp, dropping initial "omp" field, adding
5895 tag value to GTY marking.
5896 (gimple_statement_omp_atomic_load): Convert to a subclass of
5897 gimple_statement_base, dropping initial "gsbase" field, adding
5898 tag value to GTY marking.
5899 (gimple_statement_omp_atomic_store): Convert to a subclass of
5900 gimple_statement_base, dropping initial "gsbase" field, adding
5901 tag value to GTY marking.
5902 (gimple_statement_transaction): Convert to a subclass of
5903 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
5904 field, adding tag value to GTY marking.
5905 (union gimple_statement_d): Remove.
5906 * system.h (CONST_CAST_GIMPLE): Update to use
5907 "struct gimple_statement_base *" rather than
5908 "union gimple_statement_d *".
5909 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
5910 gimple_statement_d to gimple_statement_base.
5911
5912 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
5913 (gimple_set_use_ops): Port from union to usage of as_a.
5914 (gimple_set_vuse): Likewise.
5915 (gimple_set_vdef): Likewise.
5916 (gimple_call_internal_fn): Port from union to a static_cast,
5917 given that the type has already been asserted.
5918 (gimple_omp_body_ptr): Port from unchecked union usage to
5919 a static_cast.
5920 (gimple_omp_set_body): Likewise.
5921
5922 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
5923 gimple types to a true class hierarchy.
5924 (update_call_edge_frequencies): Likewise.
5925 (gsi_insert_seq_nodes_before): Likewise.
5926 (gsi_insert_seq_nodes_after): Likewise.
5927 (gsi_split_seq_after): Likewise.
5928 (gsi_set_stmt): Likewise.
5929 (gsi_split_seq_before): Likewise.
5930 (gsi_remove): Likewise.
5931 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
5932 (gsi_next): Likewise.
5933 (gsi_prev): Likewise.
5934 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
5935 * gimple-ssa.h (gimple_vuse_op): Likewise.
5936 (gimple_vdef_op): Likewise.
5937 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
5938 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5939 * gimple.c (gimple_set_code): Likewise.
5940 (gimple_alloc_stat): Likewise.
5941 (gimple_set_subcode): Likewise.
5942 (gimple_build_call_internal_1): Likewise.
5943 (gimple_check_failed): Likewise.
5944 (gimple_call_flags): Likewise.
5945 (gimple_set_bb): Likewise.
5946 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
5947 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
5948 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
5949 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
5950 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
5951 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
5952 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
5953 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
5954 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
5955 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
5956 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
5957 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
5958 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
5959 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
5960 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
5961 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
5962 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
5963 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
5964 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
5965 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
5966 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
5967 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
5968 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
5969 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
5970 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
5971 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
5972 Likewise.
5973 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
5974 Likewise.
5975 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
5976 Likewise.
5977 (is_a_helper <const gimple_statement_omp_atomic_store>
5978 (const_gimple)): Likewise.
5979 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
5980 Likewise.
5981 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
5982 Likewise.
5983 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
5984 Likewise.
5985 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
5986 Likewise.
5987 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
5988 Likewise.
5989 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
5990 Likewise.
5991 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
5992 Likewise.
5993 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
5994 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
5995 Likewise.
5996 (gimple_seq_last): Update for conversion of gimple types to a true
5997 class hierarchy.
5998 (gimple_seq_set_last): Likewise.
5999 (gimple_code): Likewise.
6000 (gimple_bb): Likewise.
6001 (gimple_block): Likewise.
6002 (gimple_set_block): Likewise.
6003 (gimple_location): Likewise.
6004 (gimple_location_ptr): Likewise.
6005 (gimple_set_location): Likewise.
6006 (gimple_no_warning_p): Likewise.
6007 (gimple_set_no_warning): Likewise.
6008 (gimple_set_visited): Likewise.
6009 (gimple_visited_p): Likewise.
6010 (gimple_set_plf): Likewise.
6011 (gimple_plf): Likewise.
6012 (gimple_set_uid): Likewise.
6013 (gimple_uid): Likewise.
6014 (gimple_init_singleton): Likewise.
6015 (gimple_modified_p): Likewise.
6016 (gimple_set_modified): Likewise.
6017 (gimple_expr_code): Likewise.
6018 (gimple_has_volatile_ops): Likewise.
6019 (gimple_set_has_volatile_ops): Likewise.
6020 (gimple_omp_subcode): Likewise.
6021 (gimple_omp_set_subcode): Likewise.
6022 (gimple_omp_return_set_nowait): Likewise.
6023 (gimple_omp_section_set_last): Likewise.
6024 (gimple_omp_parallel_set_combined_p): Likewise.
6025 (gimple_omp_atomic_set_need_value): Likewise.
6026 (gimple_omp_atomic_set_seq_cst): Likewise.
6027 (gimple_num_ops): Likewise.
6028 (gimple_set_num_ops): Likewise.
6029 (gimple_assign_nontemporal_move_p): Likewise.
6030 (gimple_assign_set_nontemporal_move): Likewise.
6031 (gimple_assign_rhs_code): Likewise.
6032 (gimple_assign_set_rhs_code): Likewise.
6033 (gimple_call_internal_p): Likewise.
6034 (gimple_call_with_bounds_p): Likewise.
6035 (gimple_call_set_with_bounds): Likewise.
6036 (gimple_call_set_tail): Likewise.
6037 (gimple_call_tail_p): Likewise.
6038 (gimple_call_set_return_slot_opt): Likewise.
6039 (gimple_call_return_slot_opt_p): Likewise.
6040 (gimple_call_set_from_thunk): Likewise.
6041 (gimple_call_from_thunk_p): Likewise.
6042 (gimple_call_set_va_arg_pack): Likewise.
6043 (gimple_call_va_arg_pack_p): Likewise.
6044 (gimple_call_set_nothrow): Likewise.
6045 (gimple_call_set_alloca_for_var): Likewise.
6046 (gimple_call_alloca_for_var_p): Likewise.
6047 (gimple_call_copy_flags): Likewise.
6048 (gimple_cond_code): Likewise.
6049 (gimple_cond_set_code): Likewise.
6050 (gimple_cond_make_false): Likewise.
6051 (gimple_cond_make_true): Likewise.
6052 (gimple_asm_volatile_p): Likewise.
6053 (gimple_asm_set_volatile): Likewise.
6054 (gimple_asm_set_input): Likewise.
6055 (gimple_asm_input_p): Likewise.
6056 (gimple_try_kind): Likewise.
6057 (gimple_try_set_kind): Likewise.
6058 (gimple_try_catch_is_cleanup): Likewise.
6059 (gimple_try_set_catch_is_cleanup): Likewise.
6060 (gimple_wce_cleanup_eh_only): Likewise.
6061 (gimple_wce_set_cleanup_eh_only): Likewise.
6062 (gimple_debug_bind_p): Likewise.
6063 (gimple_debug_source_bind_p): Likewise.
6064 (gimple_omp_for_set_kind): Likewise.
6065 (gimple_omp_for_set_combined_p): Likewise.
6066 (gimple_omp_for_set_combined_into_p): Likewise.
6067 (gimple_omp_target_set_kind): Likewise.
6068 (gimple_transaction_subcode): Likewise.
6069 (gimple_transaction_set_subcode): Likewise.
6070 (gimple_predict_predictor): Likewise.
6071 (gimple_predict_set_predictor): Likewise.
6072 (gimple_predict_outcome): Likewise.
6073 (gimple_predict_set_outcome): Likewise.
6074 (gimple_transaction_set_label): Likewise.
6075 (gimple_transaction_set_body): Likewise.
6076 (gimple_transaction_label_ptr): Likewise.
6077 (gimple_transaction_label): Likewise.
6078 (gimple_transaction_body_ptr): Likewise.
6079 (gimple_omp_continue_set_control_use): Likewise.
6080 (gimple_omp_continue_control_use_ptr): Likewise.
6081 (gimple_omp_continue_control_use): Likewise.
6082 (gimple_omp_continue_set_control_def): Likewise.
6083 (gimple_omp_continue_control_def_ptr): Likewise.
6084 (gimple_omp_continue_control_def): Likewise.
6085 (gimple_omp_atomic_load_rhs_ptr): Likewise.
6086 (gimple_omp_atomic_load_rhs): Likewise.
6087 (gimple_omp_atomic_load_set_rhs): Likewise.
6088 (gimple_omp_atomic_load_lhs_ptr): Likewise.
6089 (gimple_omp_atomic_load_lhs): Likewise.
6090 (gimple_omp_atomic_load_set_lhs): Likewise.
6091 (gimple_omp_atomic_store_val_ptr): Likewise.
6092 (gimple_omp_atomic_store_val): Likewise.
6093 (gimple_omp_atomic_store_set_val): Likewise.
6094 (gimple_omp_for_cond): Likewise.
6095 (gimple_omp_for_set_cond): Likewise.
6096 (gimple_omp_sections_set_control): Likewise.
6097 (gimple_omp_sections_control_ptr): Likewise.
6098 (gimple_omp_sections_control): Likewise.
6099 (gimple_omp_sections_set_clauses): Likewise.
6100 (gimple_omp_sections_clauses_ptr): Likewise.
6101 (gimple_omp_sections_clauses): Likewise.
6102 (gimple_omp_teams_set_clauses): Likewise.
6103 (gimple_omp_teams_clauses_ptr): Likewise.
6104 (gimple_omp_teams_clauses): Likewise.
6105 (gimple_omp_target_set_data_arg): Likewise.
6106 (gimple_omp_target_data_arg_ptr): Likewise.
6107 (gimple_omp_target_data_arg): Likewise.
6108 (gimple_omp_target_set_child_fn): Likewise.
6109 (gimple_omp_target_child_fn_ptr): Likewise.
6110 (gimple_omp_target_child_fn): Likewise.
6111 (gimple_omp_target_set_clauses): Likewise.
6112 (gimple_omp_target_clauses_ptr): Likewise.
6113 (gimple_omp_target_clauses): Likewise.
6114 (gimple_omp_single_set_clauses): Likewise.
6115 (gimple_omp_single_clauses_ptr): Likewise.
6116 (gimple_omp_single_clauses): Likewise.
6117 (gimple_omp_task_set_arg_align): Likewise.
6118 (gimple_omp_task_arg_align_ptr): Likewise.
6119 (gimple_omp_task_arg_align): Likewise.
6120 (gimple_omp_task_set_arg_size): Likewise.
6121 (gimple_omp_task_arg_size_ptr): Likewise.
6122 (gimple_omp_task_arg_size): Likewise.
6123 (gimple_omp_task_set_copy_fn): Likewise.
6124 (gimple_omp_task_copy_fn_ptr): Likewise.
6125 (gimple_omp_task_copy_fn): Likewise.
6126 (gimple_omp_task_set_data_arg): Likewise.
6127 (gimple_omp_task_data_arg_ptr): Likewise.
6128 (gimple_omp_task_data_arg): Likewise.
6129 (gimple_omp_task_set_child_fn): Likewise.
6130 (gimple_omp_task_child_fn_ptr): Likewise.
6131 (gimple_omp_task_child_fn): Likewise.
6132 (gimple_omp_task_set_clauses): Likewise.
6133 (gimple_omp_task_clauses_ptr): Likewise.
6134 (gimple_omp_task_clauses): Likewise.
6135 (gimple_omp_parallel_set_data_arg): Likewise.
6136 (gimple_omp_parallel_data_arg_ptr): Likewise.
6137 (gimple_omp_parallel_data_arg): Likewise.
6138 (gimple_omp_parallel_set_child_fn): Likewise.
6139 (gimple_omp_parallel_child_fn_ptr): Likewise.
6140 (gimple_omp_parallel_child_fn): Likewise.
6141 (gimple_omp_parallel_set_clauses): Likewise.
6142 (gimple_omp_parallel_clauses_ptr): Likewise.
6143 (gimple_omp_parallel_clauses): Likewise.
6144 (gimple_omp_for_set_pre_body): Likewise.
6145 (gimple_omp_for_pre_body_ptr): Likewise.
6146 (gimple_omp_for_set_incr): Likewise.
6147 (gimple_omp_for_incr_ptr): Likewise.
6148 (gimple_omp_for_incr): Likewise.
6149 (gimple_omp_for_set_final): Likewise.
6150 (gimple_omp_for_final_ptr): Likewise.
6151 (gimple_omp_for_final): Likewise.
6152 (gimple_omp_for_set_initial): Likewise.
6153 (gimple_omp_for_initial_ptr): Likewise.
6154 (gimple_omp_for_initial): Likewise.
6155 (gimple_omp_for_set_index): Likewise.
6156 (gimple_omp_for_index_ptr): Likewise.
6157 (gimple_omp_for_index): Likewise.
6158 (gimple_omp_for_collapse): Likewise.
6159 (gimple_omp_for_set_clauses): Likewise.
6160 (gimple_omp_for_clauses_ptr): Likewise.
6161 (gimple_omp_for_clauses): Likewise.
6162 (gimple_omp_critical_set_name): Likewise.
6163 (gimple_omp_critical_name_ptr): Likewise.
6164 (gimple_omp_critical_name): Likewise.
6165 (gimple_eh_dispatch_set_region): Likewise.
6166 (gimple_eh_dispatch_region): Likewise.
6167 (gimple_resx_set_region): Likewise.
6168 (gimple_resx_region): Likewise.
6169 (gimple_phi_set_arg): Likewise.
6170 (gimple_phi_arg): Likewise.
6171 (gimple_phi_set_result): Likewise.
6172 (gimple_phi_result_ptr): Likewise.
6173 (gimple_phi_result): Likewise.
6174 (gimple_phi_num_args): Likewise.
6175 (gimple_phi_capacity): Likewise.
6176 (gimple_wce_set_cleanup): Likewise.
6177 (gimple_wce_cleanup_ptr): Likewise.
6178 (gimple_try_set_cleanup): Likewise.
6179 (gimple_try_set_eval): Likewise.
6180 (gimple_try_cleanup_ptr): Likewise.
6181 (gimple_try_eval_ptr): Likewise.
6182 (gimple_eh_else_set_e_body): Likewise.
6183 (gimple_eh_else_set_n_body): Likewise.
6184 (gimple_eh_else_e_body_ptr): Likewise.
6185 (gimple_eh_else_n_body_ptr): Likewise.
6186 (gimple_eh_must_not_throw_set_fndecl): Likewise.
6187 (gimple_eh_must_not_throw_fndecl): Likewise.
6188 (gimple_eh_filter_set_failure): Likewise.
6189 (gimple_eh_filter_set_types): Likewise.
6190 (gimple_eh_filter_failure_ptr): Likewise.
6191 (gimple_eh_filter_types_ptr): Likewise.
6192 (gimple_eh_filter_types): Likewise.
6193 (gimple_catch_set_handler): Likewise.
6194 (gimple_catch_set_types): Likewise.
6195 (gimple_catch_handler_ptr): Likewise.
6196 (gimple_catch_types_ptr): Likewise.
6197 (gimple_catch_types): Likewise.
6198 (gimple_asm_string): Likewise.
6199 (gimple_asm_set_label_op): Likewise.
6200 (gimple_asm_label_op): Likewise.
6201 (gimple_asm_set_clobber_op): Likewise.
6202 (gimple_asm_clobber_op): Likewise.
6203 (gimple_asm_set_output_op): Likewise.
6204 (gimple_asm_output_op_ptr): Likewise.
6205 (gimple_asm_output_op): Likewise.
6206 (gimple_asm_set_input_op): Likewise.
6207 (gimple_asm_input_op_ptr): Likewise.
6208 (gimple_asm_input_op): Likewise.
6209 (gimple_asm_nlabels): Likewise.
6210 (gimple_asm_nclobbers): Likewise.
6211 (gimple_asm_noutputs): Likewise.
6212 (gimple_asm_ninputs): Likewise.
6213 (gimple_bind_set_block): Likewise.
6214 (gimple_bind_block): Likewise.
6215 (gimple_bind_add_seq): Likewise.
6216 (gimple_bind_add_stmt): Likewise.
6217 (gimple_bind_set_body): Likewise.
6218 (gimple_bind_body_ptr): Likewise.
6219 (gimple_bind_append_vars): Likewise.
6220 (gimple_bind_set_vars): Likewise.
6221 (gimple_bind_vars): Likewise.
6222 (gimple_call_clobber_set): Likewise.
6223 (gimple_call_use_set): Likewise.
6224 (gimple_call_set_internal_fn): Likewise.
6225 (gimple_call_set_fntype): Likewise.
6226 (gimple_call_fntype): Likewise.
6227 (gimple_omp_return_lhs_ptr): Likewise.
6228 (gimple_omp_return_lhs): Likewise.
6229 (gimple_omp_return_set_lhs): Likewise.
6230 (gimple_omp_taskreg_set_data_arg): Likewise.
6231 (gimple_omp_taskreg_data_arg_ptr): Likewise.
6232 (gimple_omp_taskreg_data_arg): Likewise.
6233 (gimple_omp_taskreg_set_child_fn): Likewise.
6234 (gimple_omp_taskreg_child_fn_ptr): Likewise.
6235 (gimple_omp_taskreg_child_fn): Likewise.
6236 (gimple_omp_taskreg_set_clauses): Likewise.
6237 (gimple_omp_taskreg_clauses_ptr): Likewise.
6238 (gimple_omp_taskreg_clauses): Likewise.
6239 (gimple_vuse): Likewise.
6240 (gimple_vdef): Likewise.
6241 (gimple_vuse_ptr): Likewise.
6242 (gimple_vdef_ptr): Likewise.
6243 * tree-inline.c (copy_debug_stmt): Likewise.
6244 * tree-phinodes.c (make_phi_node): Likewise.
6245
6246 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
6247 (is_a_helper <gimple_statement_with_ops>::test): New.
6248 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
6249 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
6250
6251 * gimple-streamer-in.c (input_gimple_stmt): Port from union
6252 access to use of as_a.
6253 * gimple.c (gimple_build_asm_1): Likewise.
6254 (gimple_build_try): Likewise. Also, return a specific subclass
6255 rather than just gimple.
6256 (gimple_build_resx): Port from union access to use of as_a.
6257 (gimple_build_eh_dispatch): Likewise.
6258 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
6259 now that gengtype no longer provides a typed allocator function.
6260 (gimple_copy): Likewise.
6261 * gimple.h (gimple_build_try): Return a specific subclass rather
6262 than just gimple.
6263 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
6264 with subclass access by making use of new return type of
6265 gimple_build_try.
6266 * tree-phinodes.c: (allocate_phi_node): Return a
6267 "gimple_statement_phi *" rather than just a gimple.
6268 (resize_phi_node): Likewise.
6269 (make_phi_node): Replace union access with subclass access by
6270 making use of new return type of allocate_phi_node.
6271 (reserve_phi_args_for_new_edge): Replace union access with as_a.
6272 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
6273 than just a gimple.
6274 (remove_phi_args): Update for change to remove_phi_arg_num.
6275
6276 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
6277 code field to reflect inheritance, rather than embedding of
6278 the base gimple type.
6279
6280 2013-11-19 Richard Biener <rguenther@suse.de>
6281
6282 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
6283 and destructor and make fel_next a member function.
6284 (fel_next): Transform into ...
6285 (loop_iterator::next): ... this.
6286 (fel_init): Transform into ...
6287 (loop_iterator::loop_iterator): ... this.
6288 (loop_iterator::~loop_iterator): New.
6289 (FOR_EACH_LOOP): Remove loop-iterator argument.
6290 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
6291 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
6292 graphite-clast-to-gimple.c, graphite-scop-detection.c,
6293 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
6294 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
6295 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
6296 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
6297 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
6298 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
6299 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6300 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
6301 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
6302 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
6303 FOR_EACH_LOOP_BREAK with break.
6304
6305 2013-11-19 Richard Biener <rguenther@suse.de>
6306
6307 PR tree-optimization/59164
6308 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
6309 Uncomment assert.
6310 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
6311 whether we can create an epilogue loop to reflect thecases where
6312 we create one.
6313
6314 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
6315
6316 * graphite-sese-to-poly.c: Include expr.h.
6317
6318 2013-11-19 Richard Biener <rguenther@suse.de>
6319
6320 PR middle-end/58956
6321 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
6322 loads into stmts that may clobber it.
6323
6324 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
6325
6326 * cgraphunit.c (symtab_terminator): New variable.
6327 (queued_nodes): Renamed from first. Use symtab_terminator as
6328 initializer.
6329 (analyze_functions): Adjust accordingly.
6330 (cgraph_process_new_functions): Return void.
6331 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
6332
6333 2013-11-19 Marek Polacek <polacek@redhat.com>
6334
6335 * opts.c (common_handle_option): Add -fsanitize=null option.
6336 Turn off -fdelete-null-pointer-checks option when doing the
6337 NULL pointer checking.
6338 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
6339 * tree-pass.h (make_pass_ubsan): Declare.
6340 (make_pass_sanopt): Declare.
6341 * timevar.def (TV_TREE_UBSAN): New timevar.
6342 * passes.def: Add pass_sanopt and pass_ubsan.
6343 * ubsan.h (ubsan_null_ckind): New enum.
6344 (ubsan_mismatch_data): New struct.
6345 (ubsan_expand_null_ifn): Declare.
6346 (ubsan_create_data): Adjust declaration.
6347 (ubsan_type_descriptor): Likewise.
6348 * asan.c: Include "ubsan.h".
6349 (pass_data_sanopt): New pass.
6350 (execute_sanopt): New function.
6351 (gate_sanopt): Likewise.
6352 (make_pass_sanopt): Likewise.
6353 (class pass_sanopt): New class.
6354 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
6355 gimple-iterator.h and cfgloop.h.
6356 (PROB_VERY_UNLIKELY): Define.
6357 (tree_type_map_hash): New function.
6358 (ubsan_type_descriptor): Add new parameter.
6359 Improve type name generation.
6360 (ubsan_create_data): Add new parameter. Add pointer data into
6361 ubsan structure.
6362 (ubsan_expand_null_ifn): New function.
6363 (instrument_member_call): Likewise.
6364 (instrument_mem_ref): Likewise.
6365 (instrument_null): Likewise.
6366 (ubsan_pass): Likewise.
6367 (gate_ubsan): Likewise.
6368 (make_pass_ubsan): Likewise.
6369 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
6370 (class pass_ubsan): New class.
6371 (pass_data_ubsan): New pass.
6372 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
6373 * internal-fn.c (expand_UBSAN_NULL): New function.
6374 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
6375 even when !flag_toplevel_reorder.
6376 * internal-fn.def (UBSAN_NULL): New.
6377
6378 2013-11-19 Jan Hubicka <jh@suse.cz>
6379
6380 * cgraph.c (cgraph_create_indirect_edge): Use
6381 get_polymorphic_call_info.
6382 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
6383 maybe_in_construction and maybe_derived_type.
6384 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
6385 (ipa_dummy_polymorphic_call_context): New global var.
6386 (possible_polymorphic_call_targets): Add context paramter.
6387 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
6388 (possible_polymorphic_call_target_p): Likewise.
6389 (get_polymorphic_call_info): New function.
6390 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
6391 (add_type_duplicate): Remove forgotten debug output.
6392 (method_class_type): Add sanity check.
6393 (maybe_record_node): Add FINALP parameter.
6394 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
6395 by info by get_binfo_at_offset.
6396 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
6397 parameters; pass them to record-binfo.
6398 (polymorphic_call_target_d): Add context and FINAL.
6399 (polymorphic_call_target_hasher::hash): Hash context.
6400 (polymorphic_call_target_hasher::equal): Compare context.
6401 (free_polymorphic_call_targets_hash):
6402 (get_class_context): New function.
6403 (contains_type_p): New function.
6404 (get_polymorphic_call_info): New function.
6405 (walk_bases): New function.
6406 (possible_polymorphic_call_targets): Add context parameter; honnor it.
6407 (dump_possible_polymorphic_call_targets): Dump context.
6408 (possible_polymorphic_call_target_p): Add context.
6409 (update_type_inheritance_graph): Update comment.s
6410 (ipa_set_jf_known_type): Assert that compoentn type is known.
6411 (ipa_note_param_call): Do not tamper with offsets.
6412 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
6413 outer type.
6414 (update_indirect_edges_after_inlining): Likewise.
6415 (ipa_write_indirect_edge_info): Stream new fields.
6416 (ipa_read_indirect_edge_info): Stream in new fields.
6417
6418 2013-11-19 Jan Hubicka <jh@suse.cz>
6419
6420 * tree-pretty-print.c (dump_generic_node): Print class type of
6421 OBJ_TYPE_REF.
6422
6423 2013-11-19 Joey Ye <joey.ye@arm.com>
6424
6425 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
6426 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
6427 for new option.
6428 * config/arm/arm.c (arm_option_override): By default disable
6429 -marm-pic-data-is-text-relative.
6430 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
6431 (arm_assemble_integer): Likewise.
6432 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
6433 New macro to initialize -marm-pic-data-is-text-relative.
6434
6435 2013-11-19 Bin Cheng <bin.cheng@arm.com>
6436
6437 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
6438 (address_cost_data): New field.
6439 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
6440 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
6441
6442 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
6443
6444 * config/aarch64/aarch64.md: Remove v8type from all insns.
6445
6446 2013-11-19 Richard Biener <rguenther@suse.de>
6447
6448 PR tree-optimization/57517
6449 * tree-predcom.c (combinable_refs_p): Verify the combination
6450 is always executed when the refs are.
6451
6452 2013-11-19 Jeff Law <law@redhat.com>
6453
6454 * tree-ssa-threadupdate.c: Include ssa-iterators.h
6455 (copy_phi_arg_into_existing_phi): New function.
6456 (any_remaining_duplicated_blocks): Likewise.
6457 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
6458 blocks on a jump threading path.
6459
6460 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
6461 thread through a joiner which has the latch edge.
6462
6463 2013-11-19 Jan Hubicka <jh@suse.cz>
6464
6465 * md.texi (setmem): Document new parameter.
6466 * optabs.c (maybe_gen_insn): Support 9 operands.
6467 * builtins.c (determine_block_size): Add probable_max_size;
6468 support anti-ranges.
6469 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
6470 probable_max_size.
6471 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
6472 emit_block_move, clear_storage_hints, set_storage_via_setmem):
6473 Likewise.
6474 * expr.h (emit_block_move_hints, clear_storage_hints,
6475 set_storage_via_setmem): Update prototype.
6476 * i386.md (setmem, movmem patterns): Add 9th operand.
6477 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
6478 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
6479 argument; pass it to decide_alg.
6480
6481 2013-11-19 David Malcolm <dmalcolm@redhat.com>
6482
6483 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
6484 (n_basic_blocks_for_fn): ...this.
6485
6486 (n_basic_blocks): Eliminate macro as work towards making uses of
6487 cfun be explicit.
6488
6489 * cfgloop.c (init_loops_structure): Update for renaming of
6490 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
6491 * graph.c (draw_cfg_nodes_no_loops): Likewise.
6492 * ipa-utils.c (ipa_merge_profiles): Likewise.
6493 * lto-streamer-in.c (make_new_block): Likewise.
6494 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
6495 (dump_function_to_file): Likewise.
6496
6497 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
6498 macro with "n_basic_blocks_for_fn (cfun)".
6499 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
6500 (duplicate_computed_gotos): Likewise.
6501 (reorder_basic_blocks): Likewise.
6502 * bt-load.c (augment_live_range): Likewise.
6503 * cfg.c (expunge_block): Likewise.
6504 (compact_blocks): Likewise.
6505 * cfganal.c (single_pred_before_succ_order): Likewise.
6506 (compute_idf): Likewise.
6507 (flow_dfs_compute_reverse_init): Likewise.
6508 (pre_and_rev_post_order_compute): Likewise.
6509 (pre_and_rev_post_order_compute_fn): Likewise.
6510 (inverted_post_order_compute): Likewise.
6511 (post_order_compute): Likewise.
6512 (print_edge_list): Likewise.
6513 (find_unreachable_blocks): Likewise.
6514 (mark_dfs_back_edges): Likewise.
6515 * cfgcleanup.c (try_optimize_cfg): Likewise.
6516 (try_forward_edges): Likewise.
6517 * cfghooks.c (dump_flow_info): Likewise.
6518 * cfgloop.c (verify_loop_structure): Likewise.
6519 (get_loop_body): Likewise.
6520 (flow_loops_find): Likewise.
6521 * cfgloopmanip.c (add_loop): Likewise.
6522 (remove_path): Likewise.
6523 (find_path): Likewise.
6524 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6525 (rtl_verify_bb_layout): Likewise.
6526 (entry_of_function): Likewise.
6527 (rtl_create_basic_block): Likewise.
6528 * coverage.c (coverage_compute_cfg_checksum): Likewise.
6529 * cprop.c (one_cprop_pass): Likewise.
6530 (is_too_expensive): Likewise.
6531 * df-core.c (df_compute_cfg_image): Likewise.
6532 (df_compact_blocks): Likewise.
6533 (df_worklist_dataflow_doublequeue): Likewise.
6534 * dominance.c (calculate_dominance_info): Likewise.
6535 (calc_dfs_tree): Likewise.
6536 (calc_dfs_tree_nonrec): Likewise.
6537 (init_dom_info): Likewise.
6538 * domwalk.c (cmp_bb_postorder): Likewise.
6539 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6540 (generate_setjmp_warnings): Likewise.
6541 * fwprop.c (build_single_def_use_links): Likewise.
6542 * gcse.c (is_too_expensive): Likewise.
6543 (one_code_hoisting_pass): Likewise.
6544 (one_pre_gcse_pass): Likewise.
6545 * graphite.c (graphite_initialize): Likewise.
6546 * haifa-sched.c (haifa_sched_init): Likewise.
6547 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
6548 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
6549 * ira-build.c (ira_build): Likewise.
6550 * lcm.c (compute_nearerout): Likewise.
6551 (compute_available): Likewise.
6552 (compute_laterin): Likewise.
6553 (compute_antinout_edge): Likewise.
6554 * lra-lives.c (lra_create_live_ranges): Likewise.
6555 * lra.c (has_nonexceptional_receiver): Likewise.
6556 * mcf.c (create_fixup_graph): Likewise.
6557 * profile.c (branch_prob): Likewise.
6558 * reg-stack.c (convert_regs_2): Likewise.
6559 * regrename.c (regrename_analyze): Likewise.
6560 * reload1.c (has_nonexceptional_receiver): Likewise.
6561 * reorg.c (dbr_schedule): Likewise.
6562 * sched-deps.c (sched_deps_init): Likewise.
6563 * sched-ebb.c (schedule_ebbs): Likewise.
6564 * sched-rgn.c (extend_regions): Likewise.
6565 (schedule_insns): Likewise.
6566 (sched_rgn_init): Likewise.
6567 (extend_rgns): Likewise.
6568 (haifa_find_rgns): Likewise.
6569 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
6570 (sel_recompute_toporder): Likewise.
6571 * sel-sched.c (run_selective_scheduling): Likewise.
6572 * store-motion.c (one_store_motion_pass): Likewise.
6573 (remove_reachable_equiv_notes): Likewise.
6574 * tracer.c (tracer): Likewise.
6575 (tail_duplicate): Likewise.
6576 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
6577 (dump_cfg_stats): Likewise.
6578 (gimple_dump_cfg): Likewise.
6579 (create_bb): Likewise.
6580 (build_gimple_cfg): Likewise.
6581 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6582 * tree-inline.c (optimize_inline_calls): Likewise.
6583 (fold_marked_statements): Likewise.
6584 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
6585 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6586 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6587 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
6588 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6589 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6590 * tree-ssa-pre.c (do_pre): Likewise.
6591 (init_pre): Likewise.
6592 (compute_avail): Likewise.
6593 * tree-ssa-reassoc.c (init_reassoc): Likewise.
6594 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
6595 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
6596 (init_worklist): Likewise.
6597 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6598 * var-tracking.c (variable_tracking_main_1): Likewise.
6599 (vt_find_locations): Likewise.
6600 (vt_stack_adjustments): Likewise.
6601 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
6602 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
6603
6604 2013-11-18 Jan Hubicka <jh@suse.cz>
6605
6606 * profile.c (compute_branch_probabilities): Do not sanity check
6607 run_max.
6608
6609 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6610
6611 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
6612 GET_MODE_PRECISION.
6613 * fold-const.c (fold_single_bit_test_into_sign_test)
6614 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
6615
6616 2013-11-18 Teresa Johnson <tejohnson@google.com>
6617
6618 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
6619 cfglayout after bb reordering.
6620 * passes.def: Move compgotos before bb reordering since it goes into
6621 cfglayout.
6622
6623 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
6624
6625 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
6626 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
6627 static.
6628 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
6629 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
6630 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
6631 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
6632 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
6633 Remove all_lto_gen_passes.
6634 * passes.c (pass_manager::dump_passes): Remove its use.
6635 (pass_manager::register_pass): Likewise.
6636 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
6637 (pass_manager::pass_manager): Don't initialize or use it.
6638 (write_lto): New static function.
6639 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
6640 instead of using all_lto_gen_passes.
6641 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
6642 pass_ipa_lto_finish_out): Delete.
6643 * tree-pass.h (make_pass_ipa_lto_gimple_out,
6644 make_pass_ipa_lto_finish_out): Don't declare.
6645
6646 2013-11-18 Jeff Law <law@redhat.com>
6647
6648 * tree-ssa-threadupdate.c (redirection_data): Record two
6649 duplicated blocks instead of just one.
6650 (local_info): Explain why we don't create a template for the
6651 second duplicated block in a thread path.
6652 (create_block_for_threading): Accept argument indicating array
6653 index into redirection_data to store its result.
6654 (lookup_redirection_data): Initialize both duplicate blocks.
6655 (ssa_create_duplicates): If a jump threading path needs multiple
6656 blocks duplicated, then duplicate them.
6657 (ssa_fix_duplicate_block_edges): Corresponding changes.
6658 (ssa_fixup_template_block, thread_single_edge): Likewise.
6659
6660 2013-11-18 Marek Polacek <polacek@redhat.com>
6661
6662 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
6663
6664 2013-11-18 Andrew Pinski <apinski@cavium.com>
6665 Steve Ellcey <sellcey@mips.com>
6666
6667 PR target/56552
6668 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
6669 type restriction from equality_operator on conditonal move.
6670 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
6671 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
6672
6673 2013-11-18 Jeff Law <law@redhat.com>
6674
6675 * tree-ssa-threadupdate.c: Fix file block comment.
6676 Fix minor indention issue.
6677
6678 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
6679
6680 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
6681 ix86_address_subreg_operand. Move subreg checks to
6682 ix86_validate_address_register. Move address override check to
6683 ix86_legitimate_address_p.
6684 (ix86_validate_address_register): New function.
6685 (ix86_legitimate_address_p): Call ix86_validate_address_register
6686 to validate base and index registers. Add address override check
6687 from ix86_decompose_address.
6688 (ix86_decompose_address): Remove.
6689
6690 2013-11-18 Richard Biener <rguenther@suse.de>
6691
6692 PR tree-optimization/59125
6693 PR tree-optimization/54570
6694 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
6695 is not complete do not treat component-references with offset zero
6696 but different fields as equal.
6697 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
6698 (compute_object_sizes): Apply TLC. Propagate the constant
6699 results into all uses and fold their stmts.
6700 * passes.def (pass_all_optimizations): Move pass_object_sizes
6701 after the first pass_forwprop and before pass_fre.
6702
6703 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6704
6705 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6706 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
6707 (tree_ctz): Remove cast to unsigned type.
6708 * builtins.c (fold_builtin_memory_op): Likewise.
6709 * dwarf2out.c (descr_info_loc): Likewise.
6710 * godump.c (go_output_typedef): Likewise.
6711 * omp-low.c (expand_omp_simd): Likewise.
6712 * stor-layout.c (excess_unit_span): Likewise.
6713 * tree-object-size.c (addr_object_size): Likewise.
6714 * tree-sra.c (analyze_all_variable_accesses): Likewise.
6715 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
6716 (simplify_rotate): Likewise.
6717 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
6718 (handle_pointer_plus): Likewise.
6719 * tree-switch-conversion.c (check_range): Likewise.
6720 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
6721 * tsan.c (instrument_builtin_call): Likewise.
6722 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
6723 * trans-mem.c (tm_log_add): Likewise.
6724 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
6725 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6726 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
6727 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
6728
6729 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6730
6731 * tree.h (host_integerp, tree_low_cst): Delete.
6732 * tree.c (host_integerp, tree_low_cst): Delete.
6733
6734 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6735
6736 * expr.h: Update comments to refer to tree_to_[su]hwi rather
6737 than tree_low_cst.
6738 * fold-const.c (fold_binary_loc): Likewise.
6739 * expr.c (store_constructor): Use tree_to_uhwi rather than
6740 tree_low_cst.
6741 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
6742 * stmt.c (emit_case_dispatch_table): Likewise.
6743 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6744
6745 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6746
6747 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
6748 config/aarch64/aarch64.c, config/alpha/predicates.md,
6749 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
6750 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
6751 config/mep/mep-pragma.c, config/mips/mips.c,
6752 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
6753 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
6754 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
6755 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
6756 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
6757 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
6758 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
6759 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
6760 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
6761 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
6762
6763 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6764
6765 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
6766 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
6767 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
6768 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
6769 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
6770 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
6771 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
6772 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
6773 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
6774 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
6775 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
6776
6777 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6778
6779 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
6780 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
6781
6782 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6783
6784 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
6785 than host_integerp.
6786
6787 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6788
6789 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
6790 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
6791 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
6792 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
6793 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6794 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
6795 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
6796 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
6797 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
6798 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
6799 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
6800 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
6801 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
6802 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
6803 tree_fits_uhwi_p throughout.
6804
6805 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6806
6807 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
6808 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
6809 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
6810 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
6811 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
6812 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
6813 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
6814 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
6815 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
6816 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
6817 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
6818 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
6819 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
6820 throughout.
6821
6822 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6823
6824 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
6825 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
6826
6827 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
6828
6829 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
6830 flag if it kills its address, not its post-increment.
6831
6832 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
6833
6834 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
6835 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
6836 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
6837 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
6838 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6839 (gimple_call_with_bounds_p): New.
6840 (gimple_call_set_with_bounds): New.
6841 (gimple_call_num_nobnd_args): Remove.
6842 (gimple_call_nobnd_arg): Remove.
6843 * tree.h (CALL_WITH_BOUNDS_P): New.
6844 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6845
6846 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
6847
6848 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
6849 (symtab_node_name): Rename to symtab_node::name.
6850 (cgraph_node_asm_name): Remove.
6851 (varpool_node_asm_name): Remove.
6852 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
6853 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
6854 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
6855 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
6856 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
6857
6858 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6859
6860 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
6861 * config/arm/arm.c (arm_cortex_a53_tune): New.
6862 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
6863
6864 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6865
6866 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
6867 (case ${target}): Add bdver4.
6868 * config/i386/bdver3.md: Add bdver4.
6869 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6870 -march=native recognize bdver4 processors.
6871 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6872 bdver4 def_and_undef
6873 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
6874 (m_BDVER4): New definition.
6875 (m_AMD_MULTIPLE): Includes m_BDVER4.
6876 (processor_target_table): Add bdver4 entry.
6877 (static const char *const cpu_names): Add bdver4 entry.
6878 (software_prefetching_beneficial_p): Add bdver3.
6879 (ix86_option_override_internal): Add bdver4 instruction sets.
6880 (ix86_issue_rate): Add bdver4.
6881 (ix86_adjust_cost): Add bdver4.
6882 (ia32_multipass_dfa_lookahead): Add bdver4.
6883 (enum processor_model): Add M_AMDFAM15H_BDVER4.
6884 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
6885 (has_dispatch): Add bdver4.
6886 * config/i386/i386.h (TARGET_BDVER4): New definition.
6887 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
6888 (enum processor_type): Add PROCESSOR_BDVER4.
6889 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
6890 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
6891 * doc/extend.texi: Add details about bdver4.
6892 * doc/invoke.texi: Add details about bdver4. Add
6893 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
6894
6895 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6896
6897 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
6898 sdmode_stack_slot also in little-endian mode.
6899
6900 2013-11-17 Jan Hubicka <jh@suse.cz>
6901
6902 * doc/md.texi (setmem, movstr): Update documentation.
6903 * builtins.c (determine_block_size): New function.
6904 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
6905 (expand_builtin_memset_args): Use it and pass it to
6906 set_storage_via_setmem.
6907 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
6908 parameters; update call to expander.
6909 (emit_block_move_hints): Add min_size/max_size parameters.
6910 (clear_storage_hints): Likewise.
6911 (set_storage_via_setmem): Likewise.
6912 (clear_storage): Update.
6913 * expr.h (emit_block_move_hints, clear_storage_hints,
6914 set_storage_via_setmem): Update prototypes.
6915 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
6916 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6917 (ix86_expand_movmem, ix86_expand_setmem): Remove.
6918 * i386.md (movmem, setmem): Pass parameters.
6919
6920 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
6921
6922 PR target/59153
6923 * config/i386/i386.c (ix86_address_subreg_operand): Do not
6924 reject non-integer subregs.
6925 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
6926 Move check for invalid x32 constant addresses ...
6927 (ix86_legitimate_address_p): ... here.
6928
6929 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6930
6931 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
6932 parameter and use it in REG_FRAME_RELATED_EXPR note.
6933 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
6934 parameter.
6935 (rs6000_emit_prologue): Likewise, but for little endian VSX
6936 stores, pass the source register of the store instead.
6937
6938 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
6939
6940 * gimple.h: Reorder prototypes to match .c declaration order, and
6941 remove protyotypes for functions not in gimple.c.
6942 (LABEL): Move to tree-into-ssa.c.
6943 * gimple.c: Remove unused prototypes.
6944 (get_base_address): Move to tree.c.
6945 * tree.c (get_base_address): Relocate from gimple.c.
6946 * builtins.h (validate_gimple_arglist): Add prototype.
6947 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
6948 * cfgexpand.h: New File.
6949 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
6950 * tree.h (build_addr): Move to tree-nested.h.
6951 * tree-nested.h: New File.
6952 (build_addr, lower_nested_functions, insert_field_into_struct): Add
6953 prototypes.
6954 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
6955 * ipa-inline-analysis.c: Include cfgexpand.h.
6956 * cgraphunit.c: Include tree-nested.h.
6957 * omp-low.c: Likewise.
6958 * tree-parloops.c: Likewise.
6959 * gimple-low.h: Likewise.
6960 * tree-profile.h: Likewise.
6961 * expr.c: Include cfgexpand.h.
6962 * tree-affine.c: Likewise.
6963 * tree-ssa.c: Likewise.
6964 * tree-ssa-loop-im.c: Include trans-mem.h.
6965 * tree-ssa-tail-merge.c: Likewise.
6966 * value-prof.c: Include builtins.h and tree-nested.h.
6967 * tree-into-ssa.c (LABEL): Define here.
6968
6969 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6970
6971 * config/arc/arc.c (arc_predicate_delay_insns): New function.
6972 (pass_data_arc_predicate_delay_insns): New pass_data instance.
6973 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
6974 (make_pass_arc_predicate_delay_insns): New function.
6975 (arc_init): Register pass_arc_predicate_delay_insns if
6976 flag_delayed_branch is active.
6977
6978 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
6979
6980 * config/arc/constraints.md (Rcq): Simplify register number test.
6981
6982 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6983
6984 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
6985
6986 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
6987
6988 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
6989 is null.
6990
6991 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
6992
6993 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
6994 * gimple-pretty-print.c (dump_omp_for): Add case for
6995 GF_OMP_FOR_KIND_CILKSIMD.
6996 * gimple.h (enum gf_mask): Restructure entries to add
6997 GF_OMP_FOR_KIND_CILKSIMD.
6998 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
6999 (gimplify_omp_for): Handle CILK_SIMD.
7000 (gimplify_expr): Add ccase for CILK_SIMD.
7001 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
7002 (build_outer_var_ref): Same.
7003 (check_omp_nesting_restrictions): Same.
7004 (lower_rec_input_clauses): Same.
7005 (lower_lastprivate_clauses): Same.
7006 (expand_omp_for): Same.
7007 (execute_expand_omp): Check flag_enable_cilkplus.
7008 (execute_lower_omp): Same.
7009 (diagnose_sb_0): Handle CILK_SIMD.
7010 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
7011 (setjmp_or_longjmp_p): New.
7012 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
7013 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
7014 * tree.def: Add tree code for CILK_SIMD.
7015
7016 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7017
7018 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
7019 Remove.
7020 (altivec_vperm_<mode>): Revert earlier little endian change.
7021 (*altivec_vperm_<mode>_internal): Remove.
7022 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
7023 (*altivec_vperm_<mode>_uns_internal): Remove.
7024 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
7025
7026 2013-11-15 Jeff Law <law@redhat.com>
7027
7028 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
7029 has_abnormal_or_outgoing_edge. Check for EH edges as well.
7030 * gimple-ssa-isolate-paths.c
7031 (find_implicit_erroneous_behaviour): Corresponding changes.
7032 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
7033 (find_explicit_erroneous_behaviour): Likewise.
7034
7035 2013-11-15 Jeff Law <law@redhat.com>
7036
7037 * ifcvt.c (find_cond_trap): Properly handle case where
7038 trap_bb == else_bb.
7039
7040 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
7041
7042 * configure: Regenerate.
7043
7044 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
7045
7046 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
7047 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
7048 where it is incorrect or missing.
7049
7050 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
7051
7052 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
7053 host_integerp test.
7054 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7055 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
7056 constant.
7057 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
7058 pair with a TREE_CODE test and TREE_INT_CST_LOW.
7059 * tree-vect-generic.c (expand_vector_divmod): Likewise.
7060
7061 2013-11-15 Richard Biener <rguenther@suse.de>
7062
7063 PR tree-optimization/50262
7064 * tree-ssa-alias.h (struct pt_solution): Split
7065 vars_contains_global into vars_contains_nonlocal,
7066 vars_contains_escaped and vars_contains_escaped_heap.
7067 * tree-ssa-structalias.c (label_visit): Expand comment.
7068 (handle_lhs_call): Adjust comment.
7069 (set_uids_in_ptset): Set the new flags appropriately.
7070 (pt_solution_set): Adjust.
7071 (pt_solution_set_var): Likewise.
7072 (pt_solution_ior_into): Likewise.
7073 (pt_solution_includes_global): Likewise.
7074 (pt_solutions_intersect_1): Optimize escaped handling.
7075 (compute_points_to_sets): Remove heap variable globalization.
7076 (ipa_escaped_pt): Adjust initializer.
7077 (pass_data_ipa_pta): Do not run TODO_update_ssa.
7078 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
7079 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
7080
7081 2013-11-15 Richard Biener <rguenther@suse.de>
7082
7083 * tree-loop-distribution.c (tree_loop_distribution): Make sure
7084 to distribute all stores.
7085
7086 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7087
7088 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
7089
7090 2013-11-15 Joseph Myers <joseph@codesourcery.com>
7091
7092 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
7093 * configure.ac: Determine target_header_dir earlier.
7094 (--with-glibc-version): New configure option.
7095 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
7096 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
7097 * configure: Regenerate.
7098 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
7099 native toolchains for default.
7100 (--with-glibc-version): Document.
7101
7102 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
7103
7104 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
7105
7106 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
7107
7108 * lto-streamer-in.c (input function): Call cgraph_create_node if
7109 cgraph_get_node failed.
7110
7111 2013-11-14 Olivier Hainque <hainque@adacore.com>
7112
7113 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
7114 defer allocation of DECL_IGNORED_P variables at toplevel unless really
7115 small. Factorize size threshold computation from the existing one.
7116 (expand_used_vars): Refine comment.
7117
7118 2013-11-14 Cong Hou <congh@google.com>
7119
7120 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
7121 address field as it can be obtained from dr. Rename the struct.
7122 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
7123 steps of data references during sort.
7124 (vect_prune_runtime_alias_test_list): Adjust with the change to
7125 struct dr_with_seg_len.
7126 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7127 Adjust with the change to struct dr_with_seg_len.
7128
7129 2013-11-14 Jeff Law <law@redhat.com>
7130
7131 PR middle-end/59127
7132 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
7133 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
7134 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
7135 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
7136 edges, then ignore it. If the statement exhibiting erroneous
7137 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
7138 then we can not optimize.
7139 (find_explicit_erroneous_behaviour): Likewise.
7140
7141 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
7142
7143 * gimplify-me.h: New file. Add prototypes.
7144 * gimplify.h: Don't include gimple.h.
7145 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
7146 Relocate from gimple.h.
7147 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
7148 is_gimple_sizepos): Move to gimplify.h.
7149 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
7150 (enum gsi_iterator_update): Move to gimple-iterator.h.
7151 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
7152 * gimplify-me.c: New File.
7153 (force_gimple_operand_1, force_gimple_operand,
7154 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7155 gimple_regimplify_operands): Relocate from gimplify.c.
7156 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
7157 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
7158 gimple_regimplify_operands): Move to gimplify-me.c.
7159 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
7160 from gimple.h.
7161 * Makefile.in (OBJS): Add gimplify-me.o
7162 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
7163 required.
7164 * cfgloopmanip.c: Likewise.
7165 * cgraphunit.c: Likewise.
7166 * cilk-common.c: Likewise.
7167 * fold-const.c: Likewise.
7168 * function.c: Likewise.
7169 * gimple-expr.c: Likewise.
7170 * gimple-fold.c: Likewise.
7171 * gimple-ssa-strength-reduction.c: Likewise.
7172 * gimple.c: Likewise.
7173 * graphite-clast-to-gimple.c: Likewise.
7174 * graphite-sese-to-poly.c: Likewise.
7175 * ipa-prop.c: Likewise.
7176 * ipa-split.c: Likewise.
7177 * ipa.c: Likewise.
7178 * langhooks.c: Likewise.
7179 * omp-low.c: Likewise.
7180 * sese.c: Likewise.
7181 * stor-layout.c: Likewise.
7182 * targhooks.c: Likewise.
7183 * trans-mem.c: Likewise.
7184 * tree-affine.c: Likewise.
7185 * tree-cfg.c: Likewise.
7186 * tree-cfgcleanup.c: Likewise.
7187 * tree-complex.c: Likewise.
7188 * tree-if-conv.c: Likewise.
7189 * tree-inline.c: Likewise.
7190 * tree-loop-distribution.c: Likewise.
7191 * tree-nested.c: Likewise.
7192 * tree-parloops.c: Likewise.
7193 * tree-predcom.c: Likewise.
7194 * tree-profile.c: Likewise.
7195 * tree-scalar-evolution.c: Likewise.
7196 * tree-sra.c: Likewise.
7197 * tree-ssa-address.c: Likewise.
7198 * tree-ssa-ccp.c: Likewise.
7199 * tree-ssa-dce.c: Likewise.
7200 * tree-ssa-forwprop.c: Likewise.
7201 * tree-ssa-ifcombine.c: Likewise.
7202 * tree-ssa-loop-im.c: Likewise.
7203 * tree-ssa-loop-ivopts.c: Likewise.
7204 * tree-ssa-loop-manip.c: Likewise.
7205 * tree-ssa-loop-niter.c: Likewise.
7206 * tree-ssa-loop-prefetch.c: Likewise.
7207 * tree-ssa-loop-unswitch.c: Likewise.
7208 * tree-ssa-math-opts.c: Likewise.
7209 * tree-ssa-phiopt.c: Likewise.
7210 * tree-ssa-phiprop.c: Likewise.
7211 * tree-ssa-pre.c: Likewise.
7212 * tree-ssa-propagate.c: Likewise.
7213 * tree-ssa-reassoc.c: Likewise.
7214 * tree-ssa-sccvn.c: Likewise.
7215 * tree-ssa-strlen.c: Likewise.
7216 * tree-ssa.c: Likewise.
7217 * tree-switch-conversion.c: Likewise.
7218 * tree-tailcall.c: Likewise.
7219 * tree-vect-data-refs.c: Likewise.
7220 * tree-vect-generic.c: Likewise.
7221 * tree-vect-loop-manip.c: Likewise.
7222 * tree-vect-loop.c: Likewise.
7223 * tree-vect-patterns.c: Likewise.
7224 * tree-vect-stmts.c: Likewise.
7225 * tree.c: Likewise.
7226 * tsan.c: Likewise.
7227 * value-prof.c: Likewise.
7228 * config/aarch64/aarch64.c: Likewise.
7229 * config/alpha/alpha.c: Likewise.
7230 * config/darwin.c: Likewise.
7231 * config/i386/i386.c: Likewise.
7232 * config/ia64/ia64.c: Likewise.
7233 * config/mep/mep.c: Likewise.
7234 * config/mips/mips.c: Likewise.
7235 * config/rs6000/rs6000.c: Likewise.
7236 * config/s390/s390.c: Likewise.
7237 * config/sh/sh.c: Likewise.
7238 * config/sparc/sparc.c: Likewise.
7239 * config/spu/spu.c: Likewise.
7240 * config/stormy16/stormy16.c: Likewise.
7241 * config/tilegx/tilegx.c: Likewise.
7242 * config/tilepro/tilepro.c: Likewise.
7243 * config/xtensa/xtensa.c: Likewise.
7244
7245 2013-11-14 Diego Novillo <dnovillo@google.com>
7246
7247 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
7248
7249 2013-11-14 Diego Novillo <dnovillo@google.com>
7250
7251 * tree.h: Include fold-const.h.
7252 (aggregate_value_p): Moved to function.h.
7253 (alloca_call_p): Moved to calls.h.
7254 (allocate_struct_function): Moved to function.h.
7255 (apply_tm_attr): Moved to attribs.h.
7256 (array_at_struct_end_p): Moved to expr.h.
7257 (array_ref_element_size): Moved to tree-dfa.h.
7258 (array_ref_low_bound): Moved to tree-dfa.h.
7259 (array_ref_up_bound): Moved to tree.h.
7260 (assemble_alias): Moved to cgraph.h.
7261 (bit_from_pos): Moved to stor-layout.h.
7262 (build_addr): Moved to tree-nested.h.
7263 (build_duplicate_type): Moved to tree-inline.h.
7264 (build_fold_addr_expr): Moved to fold-const.h.
7265 (build_fold_addr_expr_with_type): Moved to fold-const.h.
7266 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
7267 (build_fold_indirect_ref): Moved to fold-const.h.
7268 (build_fold_indirect_ref_loc): Moved to fold-const.h.
7269 (build_personality_function): Moved to tree.h.
7270 (build_range_check): Moved to fold-const.h.
7271 (build_simple_mem_ref): Moved to fold-const.h.
7272 (build_simple_mem_ref_loc): Moved to fold-const.h.
7273 (build_tm_abort_call): Moved to trans-mem.h.
7274 (byte_from_pos): Moved to stor-layout.h.
7275 (call_expr_flags): Moved to calls.h.
7276 (can_move_by_pieces): Moved to expr.h.
7277 (categorize_ctor_elements): Moved to expr.h.
7278 (change_decl_assembler_name): Moved to gcc-symtab.h.
7279 (combine_comparisons): Moved to fold-const.h.
7280 (complete_ctor_at_level_p): Moved to tree.h.
7281 (component_ref_field_offset): Moved to tree-dfa.h.
7282 (compute_builtin_object_size): Moved to tree-object-size.h.
7283 (compute_record_mode): Moved to stor-layout.h.
7284 (constant_boolean_node): Moved to fold-const.h.
7285 (constructor_static_from_elts_p): Moved to varasm.h.
7286 (cxx11_attribute_p): Moved to attribs.h.
7287 (debug_body): Moved to print-tree.h.
7288 (debug_find_tree): Moved to tree-inline.h.
7289 (debug_fold_checksum): Moved to fold-const.h.
7290 (debug_head): Moved to print-tree.h.
7291 (debug_head): Moved to print-tree.h.
7292 (debug_raw): Moved to print-tree.h.
7293 (debug_tree): Moved to print-tree.h.
7294 (debug_vec_tree): Moved to print-tree.h.
7295 (debug_verbose): Moved to print-tree.h.
7296 (debug_verbose): Moved to print-tree.h.
7297 (decl_attributes): Moved to attribs.h.
7298 (decl_binds_to_current_def_p): Moved to varasm.h.
7299 (decl_default_tls_model): Moved to varasm.h.
7300 (decl_replaceable_p): Moved to varasm.h.
7301 (div_if_zero_remainder): Moved to fold-const.h.
7302 (double_int mem_ref_offset): Moved to fold-const.h.
7303 (dump_addr): Moved to print-tree.h.
7304 (element_precision): Moved to machmode.h.
7305 (expand_dummy_function_end): Moved to function.h.
7306 (expand_function_end): Moved to function.h.
7307 (expand_function_start): Moved to function.h.
7308 (expand_label): Moved to stmt.h.
7309 (expr_first): Moved to tree-iterator.h.
7310 (expr_last): Moved to tree-iterator.h.
7311 (finalize_size_functions): Moved to stor-layout.h.
7312 (finish_builtin_struct): Moved to stor-layout.h.
7313 (finish_record_layout): Moved to stor-layout.h.
7314 (fixup_signed_type): Moved to stor-layout.h.
7315 (fixup_unsigned_type): Moved to stor-layout.h.
7316 (flags_from_decl_or_type): Moved to calls.h.
7317 (fold): Moved to fold-const.h.
7318 (fold_abs_const): Moved to fold-const.h.
7319 (fold_binary): Moved to fold-const.h.
7320 (fold_binary_loc): Moved to fold-const.h.
7321 (fold_binary_to_constant): Moved to fold-const.h.
7322 (fold_build1): Moved to fold-const.h.
7323 (fold_build1_initializer_loc): Moved to fold-const.h.
7324 (fold_build1_loc): Moved to fold-const.h.
7325 (fold_build1_stat_loc): Moved to fold-const.h.
7326 (fold_build2): Moved to fold-const.h.
7327 (fold_build2_initializer_loc): Moved to fold-const.h.
7328 (fold_build2_loc): Moved to fold-const.h.
7329 (fold_build2_stat_loc): Moved to fold-const.h.
7330 (fold_build3): Moved to fold-const.h.
7331 (fold_build3_loc): Moved to fold-const.h.
7332 (fold_build3_stat_loc): Moved to fold-const.h.
7333 (fold_build_call_array): Moved to fold-const.h.
7334 (fold_build_call_array_initializer): Moved to fold-const.h.
7335 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
7336 (fold_build_call_array_loc): Moved to fold-const.h.
7337 (fold_build_cleanup_point_expr): Moved to fold-const.h.
7338 (fold_convert): Moved to fold-const.h.
7339 (fold_convert_loc): Moved to fold-const.h.
7340 (fold_convertible_p): Moved to fold-const.h.
7341 (fold_defer_overflow_warnings): Moved to fold-const.h.
7342 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
7343 (fold_fma): Moved to fold-const.h.
7344 (fold_ignored_result): Moved to fold-const.h.
7345 (fold_indirect_ref): Moved to fold-const.h.
7346 (fold_indirect_ref_1): Moved to fold-const.h.
7347 (fold_indirect_ref_loc): Moved to fold-const.h.
7348 (fold_read_from_constant_string): Moved to fold-const.h.
7349 (fold_real_zero_addition_p): Moved to fold-const.h.
7350 (fold_single_bit_test): Moved to fold-const.h.
7351 (fold_strip_sign_ops): Moved to fold-const.h.
7352 (fold_ternary): Moved to fold-const.h.
7353 (fold_ternary_loc): Moved to fold-const.h.
7354 (fold_unary): Moved to tree-data-ref.h.
7355 (fold_unary_ignore_overflow): Moved to fold-const.h.
7356 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
7357 (fold_unary_loc): Moved to fold-const.h.
7358 (fold_unary_to_constant): Moved to fold-const.h.
7359 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
7360 (fold_undefer_overflow_warnings): Moved to fold-const.h.
7361 (folding_initializer): Moved to fold-const.h.
7362 (free_temp_slots): Moved to function.h.
7363 (generate_setjmp_warnings): Moved to function.h.
7364 (get_attribute_name): Moved to attribs.h.
7365 (get_identifier): Moved to stringpool.h.
7366 (get_identifier_with_length): Moved to stringpool.h.
7367 (get_inner_reference): Moved to tree.h.
7368 (gimple_alloca_call_p): Moved to calls.h.
7369 (gimplify_parameters): Moved to function.h.
7370 (highest_pow2_factor): Moved to expr.h.
7371 (indent_to): Moved to print-tree.h.
7372 (init_attributes): Moved to attribs.h.
7373 (init_dummy_function_start): Moved to function.h.
7374 (init_function_start): Moved to function.h.
7375 (init_inline_once): Moved to tree-inline.h.
7376 (init_object_sizes): Moved to tree-object-size.h.
7377 (init_temp_slots): Moved to function.h.
7378 (init_tree_optimization_optabs): Moved to optabs.h.
7379 (initialize_sizetypes): Moved to stor-layout.h.
7380 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
7381 (initializer_constant_valid_p): Moved to varasm.h.
7382 (int_const_binop): Moved to fold-const.h.
7383 (internal_reference_types): Moved to stor-layout.h.
7384 (invert_tree_comparison): Moved to fold-const.h.
7385 (invert_truthvalue): Moved to fold-const.h.
7386 (invert_truthvalue_loc): Moved to fold-const.h.
7387 (is_tm_ending_fndecl): Moved to trans-mem.h.
7388 (is_tm_may_cancel_outer): Moved to trans-mem.h.
7389 (is_tm_pure): Moved to trans-mem.h.
7390 (is_tm_safe): Moved to trans-mem.h.
7391 (layout_decl): Moved to stor-layout.h.
7392 (layout_type): Moved to stor-layout.h.
7393 (lookup_attribute_spec): Moved to attribs.h.
7394 (make_accum_type): Moved to stor-layout.h.
7395 (make_decl_one_only): Moved to varasm.h.
7396 (make_decl_rtl): Moved to tree.h.
7397 (make_decl_rtl_for_debug): Moved to varasm.h.
7398 (make_fract_type): Moved to stor-layout.h.
7399 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
7400 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
7401 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
7402 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
7403 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
7404 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
7405 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
7406 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
7407 (make_range): Moved to fold-const.h.
7408 (make_range_step): Moved to fold-const.h.
7409 (make_sat_signed_accum_type): Moved to stor-layout.h.
7410 (make_sat_signed_fract_type): Moved to stor-layout.h.
7411 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
7412 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
7413 (make_signed_accum_type): Moved to stor-layout.h.
7414 (make_signed_fract_type): Moved to stor-layout.h.
7415 (make_signed_type): Moved to stor-layout.h.
7416 (make_unsigned_accum_type): Moved to stor-layout.h.
7417 (make_unsigned_fract_type): Moved to stor-layout.h.
7418 (make_unsigned_type): Moved to stor-layout.h.
7419 (mark_decl_referenced): Moved to varasm.h.
7420 (mark_referenced): Moved to varasm.h.
7421 (may_negate_without_overflow_p): Moved to fold-const.h.
7422 (maybe_get_identifier): Moved to stringpool.h.
7423 (merge_ranges): Moved to fold-const.h.
7424 (merge_weak): Moved to varasm.h.
7425 (mode_for_size_tree): Moved to stor-layout.h.
7426 (multiple_of_p): Moved to fold-const.h.
7427 (must_pass_in_stack_var_size): Moved to calls.h.
7428 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
7429 (native_encode_expr): Moved to fold-const.h.
7430 (native_interpret_expr): Moved to fold-const.h.
7431 (non_lvalue): Moved to fold-const.h.
7432 (non_lvalue_loc): Moved to fold-const.h.
7433 (normalize_offset): Moved to stor-layout.h.
7434 (normalize_rli): Moved to stor-layout.h.
7435 (notice_global_symbol): Moved to varasm.h.
7436 (omit_one_operand): Moved to fold-const.h.
7437 (omit_one_operand_loc): Moved to fold-const.h.
7438 (omit_two_operands): Moved to fold-const.h.
7439 (omit_two_operands_loc): Moved to fold-const.h.
7440 (operand_equal_p): Moved to tree-data-ref.h.
7441 (parse_input_constraint): Moved to stmt.h.
7442 (parse_output_constraint): Moved to stmt.h.
7443 (place_field): Moved to stor-layout.h.
7444 (pop_function_context): Moved to function.h.
7445 (pop_temp_slots): Moved to function.h.
7446 (pos_from_bit): Moved to stor-layout.h.
7447 (preserve_temp_slots): Moved to function.h.
7448 (print_node): Moved to print-tree.h.
7449 (print_node_brief): Moved to print-tree.h.
7450 (print_rtl): Moved to rtl.h.
7451 (process_pending_assemble_externals): Moved to varasm.h.
7452 (ptr_difference_const): Moved to fold-const.h.
7453 (push_function_context): Moved to function.h.
7454 (push_struct_function): Moved to function.h.
7455 (push_temp_slots): Moved to function.h.
7456 (record_tm_replacement): Moved to trans-mem.h.
7457 (relayout_decl): Moved to stor-layout.h.
7458 (resolve_asm_operand_names): Moved to stmt.h.
7459 (resolve_unique_section): Moved to varasm.h.
7460 (rli_size_so_far): Moved to stor-layout.h.
7461 (rli_size_unit_so_far): Moved to stor-layout.h.
7462 (round_down): Moved to fold-const.h.
7463 (round_down_loc): Moved to fold-const.h.
7464 (round_up): Moved to fold-const.h.
7465 (round_up_loc): Moved to fold-const.h.
7466 (set_decl_incoming_rtl): Moved to emit-rtl.h.
7467 (set_decl_rtl): Moved to tree.h.
7468 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
7469 (set_user_assembler_name): Moved to varasm.h.
7470 (setjmp_call_p): Moved to calls.h.
7471 (size_binop): Moved to fold-const.h.
7472 (size_binop_loc): Moved to fold-const.h.
7473 (size_diffop): Moved to fold-const.h.
7474 (size_diffop_loc): Moved to fold-const.h.
7475 (size_int_kind): Moved to fold-const.h.
7476 (stack_protect_epilogue): Moved to function.h.
7477 (start_record_layout): Moved to stor-layout.h.
7478 (supports_one_only): Moved to varasm.h.
7479 (swap_tree_comparison): Moved to fold-const.h.
7480 (tm_malloc_replacement): Moved to trans-mem.h.
7481 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
7482 (tree build_invariant_address): Moved to fold-const.h.
7483 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
7484 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
7485 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
7486 (tree_expr_nonnegative_p): Moved to fold-const.h.
7487 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
7488 (tree_output_constant_def): Moved to varasm.h.
7489 (tree_overlaps_hard_reg_set): Moved to stmt.h.
7490 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
7491 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
7492 (tree_swap_operands_p): Moved to fold-const.h.
7493 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
7494 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
7495 (update_alignment_for_field): Moved to stor-layout.h.
7496 (use_register_for_decl): Moved to function.h.
7497 (variable_size): Moved to rtl.h.
7498 (vector_type_mode): Moved to stor-layout.h.
7499 * cgraph.h: Corresponding changes.
7500 * emit-rtl.h: Corresponding changes.
7501 * expr.h: Corresponding changes.
7502 * function.h: Corresponding changes.
7503 * optabs.h: Corresponding changes.
7504 * trans-mem.h: Corresponding changes.
7505 Protect against multiple inclusion.
7506 * tree-inline.h: Corresponding changes.
7507 * tree-iterator.h: Corresponding changes.
7508 * tree-dfa.h: Include expr.h.
7509 * tree-ssanames.h: Include stringpool.h.
7510 * attribs.h: New file.
7511 * calls.h: New file.
7512 * fold-const.h: New file.
7513 * gcc-symtab.h: New file.
7514 * print-rtl.h: New file.
7515 * print-tree.h: New file.
7516 * stmt.h: New file.
7517 * stor-layout.h: New file.
7518 * strinpool.h: New file.
7519 * tree-nested.h: New file
7520 * tree-object-size.h: New file.
7521 * varasm.h: New file.
7522
7523 2013-11-14 Diego Novillo <dnovillo@google.com>
7524
7525 * alias.c: Include varasm.h.
7526 Include expr.h.
7527 * asan.c: Include calls.h.
7528 Include stor-layout.h.
7529 Include varasm.h.
7530 * attribs.c: Include stringpool.h.
7531 Include attribs.h.
7532 Include stor-layout.h.
7533 * builtins.c: Include stringpool.h.
7534 Include stor-layout.h.
7535 Include calls.h.
7536 Include varasm.h.
7537 Include tree-object-size.h.
7538 * calls.c: Include stor-layout.h.
7539 Include varasm.h.
7540 Include stringpool.h.
7541 Include attribs.h.
7542 * cfgexpand.c: Include stringpool.h.
7543 Include varasm.h.
7544 Include stor-layout.h.
7545 Include stmt.h.
7546 Include print-tree.h.
7547 * cgraph.c: Include varasm.h.
7548 Include calls.h.
7549 Include print-tree.h.
7550 * cgraphclones.c: Include stringpool.h.
7551 Include function.h.
7552 Include emit-rtl.h.
7553 Move inclusion of rtl.h earlier in the file.
7554 * cgraphunit.c: Include varasm.h.
7555 Include stor-layout.h.
7556 Include stringpool.h.
7557 * cilk-common.c: Include stringpool.h.
7558 Include stor-layout.h.
7559 * combine.c: Include stor-layout.h.
7560 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
7561 Include stringpool.h.
7562 Include calls.h.
7563 * config/aarch64/aarch64.c: Include stringpool.h.
7564 Include stor-layout.h.
7565 Include calls.h.
7566 Include varasm.h.
7567 * config/alpha/alpha.c: Include stor-layout.h.
7568 Include calls.h.
7569 Include varasm.h.
7570 * config/arc/arc.c: Include varasm.h.
7571 Include stor-layout.h.
7572 Include stringpool.h.
7573 Include calls.h.
7574 * config/arm/arm.c: Include stringpool.h.
7575 Include stor-layout.h.
7576 Include calls.h.
7577 Include varasm.h.
7578 * config/avr/avr-c.c: Include stor-layout.h.
7579 * config/avr/avr-log.c: Include print-tree.h.
7580 * config/avr/avr.c: Include print-tree.h.
7581 Include calls.h.
7582 Include stor-layout.h.
7583 Include stringpool.h.
7584 * config/bfin/bfin.c: Include varasm.h.
7585 Include calls.h.
7586 * config/c6x/c6x.c: Include stor-layout.h.
7587 Include varasm.h.
7588 Include calls.h.
7589 Include stringpool.h.
7590 * config/cr16/cr16.c: Include stor-layout.h.
7591 Include calls.h.
7592 * config/cris/cris.c: Include varasm.h.
7593 Include stor-layout.h.
7594 Include calls.h.
7595 Include stmt.h.
7596 * config/darwin.c: Include stringpool.h.
7597 Include varasm.h.
7598 Include stor-layout.h.
7599 * config/epiphany/epiphany.c: Include stor-layout.h.
7600 Include varasm.h.
7601 Include calls.h.
7602 Include stringpool.h.
7603 * config/fr30/fr30.c: Include stor-layout.h.
7604 Include varasm.h.
7605 * config/frv/frv.c: Include varasm.h.
7606 Include stor-layout.h.
7607 Include stringpool.h.
7608 * config/h8300/h8300.c: Include stor-layout.h.
7609 Include varasm.h.
7610 Include calls.h.
7611 Include stringpool.h.
7612 * config/i386/i386.c: Include stringpool.h.
7613 Include attribs.h.
7614 Include calls.h.
7615 Include stor-layout.h.
7616 Include varasm.h.
7617 * config/i386/winnt-cxx.c: Include stringpool.h.
7618 Include attribs.h.
7619 * config/i386/winnt.c: Include stringpool.h.
7620 Include varasm.h.
7621 * config/ia64/ia64-c.c: Include stringpool.h.
7622 * config/ia64/ia64.c: Include stringpool.h.
7623 Include stor-layout.h.
7624 Include calls.h.
7625 Include varasm.h.
7626 * config/iq2000/iq2000.c: Include stor-layout.h.
7627 Include calls.h.
7628 Include varasm.h.
7629 * config/lm32/lm32.c: Include calls.h.
7630 * config/m32c/m32c.c: Include stor-layout.h.
7631 Include varasm.h.
7632 Include calls.h.
7633 * config/m32r/m32r.c: Include stor-layout.h.
7634 Include varasm.h.
7635 Include stringpool.h.
7636 Include calls.h.
7637 * config/m68k/m68k.c: Include calls.h.
7638 Include stor-layout.h.
7639 Include varasm.h.
7640 * config/mcore/mcore.c: Include stor-layout.h.
7641 Include varasm.h.
7642 Include stringpool.h.
7643 Include calls.h.
7644 * config/mep/mep.c: Include varasm.h.
7645 Include calls.h.
7646 Include stringpool.h.
7647 Include stor-layout.h.
7648 * config/microblaze/microblaze.c: Include varasm.h.
7649 Include stor-layout.h.
7650 Include calls.h.
7651 * config/mips/mips.c: Include varasm.h.
7652 Include stringpool.h.
7653 Include stor-layout.h.
7654 Include calls.h.
7655 * config/mmix/mmix.c: Include varasm.h.
7656 Include stor-layout.h.
7657 Include calls.h.
7658 * config/mn10300/mn10300.c: Include stor-layout.h.
7659 Include varasm.h.
7660 Include calls.h.
7661 * config/moxie/moxie.c: Include stor-layout.h.
7662 Include varasm.h.
7663 Include calls.h.
7664 * config/msp430/msp430.c: Include stor-layout.h.
7665 Include calls.h.
7666 * config/nds32/nds32.c: Include stor-layout.h.
7667 Include varasm.h.
7668 Include calls.h.
7669 * config/pa/pa.c: Include stor-layout.h.
7670 Include stringpool.h.
7671 Include varasm.h.
7672 Include calls.h.
7673 * config/pdp11/pdp11.c: Include stor-layout.h.
7674 Include varasm.h.
7675 Include calls.h.
7676 * config/picochip/picochip.c: Include calls.h.
7677 Include stor-layout.h.
7678 Include stringpool.h.
7679 Include varasm.h.
7680 * config/rl78/rl78.c: Include varasm.h.
7681 Include stor-layout.h.
7682 Include calls.h.
7683 * config/rs6000/rs6000-c.c: Include stor-layout.h.
7684 Include stringpool.h.
7685 * config/rs6000/rs6000.c: Include stringpool.h.
7686 Include stor-layout.h.
7687 Include calls.h.
7688 Include print-tree.h.
7689 Include varasm.h.
7690 * config/rx/rx.c: Include varasm.h.
7691 Include stor-layout.h.
7692 Include calls.h.
7693 * config/s390/s390.c: Include print-tree.h.
7694 Include stringpool.h.
7695 Include stor-layout.h.
7696 Include varasm.h.
7697 Include calls.h.
7698 * config/score/score.c: Include stringpool.h.
7699 Include calls.h.
7700 Include varasm.h.
7701 Include stor-layout.h.
7702 * config/sh/sh-c.c: Include stringpool.h.
7703 Include attribs.h.h.
7704 * config/sh/sh.c: Include stringpool.h.
7705 Include stor-layout.h.
7706 Include calls.h.
7707 Include varasm.h.
7708 * config/sol2-c.c: Include stringpool.h.
7709 Include attribs.h.
7710 * config/sol2-cxx.c: Include stringpool.h.
7711 * config/sol2.c: Include stringpool.h.
7712 Include varasm.h.
7713 * config/sparc/sparc.c: Include stringpool.h.
7714 Include stor-layout.h.
7715 Include calls.h.
7716 Include varasm.h.
7717 * config/spu/spu-c.c: Include stringpool.h.
7718 * config/spu/spu.c: Include stringpool.h.
7719 Include stor-layout.h.
7720 Include calls.h.
7721 Include varasm.h.
7722 * config/stormy16/stormy16.c: Include stringpool.h.
7723 Include stor-layout.h.
7724 Include varasm.h.
7725 Include calls.h.
7726 * config/tilegx/tilegx.c: Include stringpool.h.
7727 Include stor-layout.h.
7728 Include varasm.h.
7729 Include calls.h.
7730 * config/tilepro/tilepro.c: Include stringpool.h.
7731 Include stor-layout.h.
7732 Include varasm.h.
7733 Include calls.h.
7734 * config/v850/v850-c.c: Include stringpool.h.
7735 Include attribs.h.
7736 * config/v850/v850.c: Include stringpool.h.
7737 Include stor-layout.h.
7738 Include varasm.h.
7739 Include calls.h.
7740 * config/vax/vax.c: Include calls.h.
7741 Include varasm.h.
7742 * config/vms/vms.c: Include stringpool.h.
7743 * config/vxworks.c: Include stringpool.h.
7744 * config/xtensa/xtensa.c: Include stringpool.h.
7745 Include stor-layout.h.
7746 Include calls.h.
7747 Include varasm.h.
7748 * convert.c: Include stor-layout.h.
7749 * coverage.c: Include stringpool.h.
7750 Include stor-layout.h.
7751 * dbxout.c: Include varasm.h.
7752 Include stor-layout.h.
7753 * dojump.c: Include stor-layout.h.
7754 * dse.c: Include stor-layout.h.
7755 * dwarf2asm.c: Include stringpool.h.
7756 Include varasm.h.
7757 * dwarf2cfi.c: Include stor-layout.h.
7758 * dwarf2out.c: Include rtl.h.
7759 Include stringpool.h.
7760 Include stor-layout.h.
7761 Include varasm.h.
7762 Include function.h.
7763 Include emit-rtl.h.
7764 Move inclusion of rtl.h earlier in the file.
7765 * emit-rtl.c: Include varasm.h.
7766 * except.c: Include stringpool.h.
7767 Include stor-layout.h.
7768 * explow.c: Include stor-layout.h.
7769 * expmed.c: Include stor-layout.h.
7770 * expr.c: Include stringpool.h.
7771 Include stor-layout.h.
7772 Include attribs.h.
7773 Include varasm.h.
7774 * final.c: Include varasm.h.
7775 * fold-const.c: Include stor-layout.h.
7776 Include calls.h.
7777 Include tree-iterator.h.
7778 * function.c: Include stor-layout.h.
7779 Include varasm.h.
7780 Include stringpool.h.
7781 * genattrtab.c (write_header): Emit includes for varasm.h,
7782 stor-layout.h and calls.h.
7783 * genautomata.c (main): Likewise.
7784 * genemit.c: Likewise.
7785 * genopinit.c: Likewise.
7786 * genoutput.c (output_prologue): Likewise.
7787 * genpeep.c: Likewise.
7788 * genpreds.c (write_insn_preds_c): Likewise.
7789 * gengtype.c (open_base_files): Add stringpool.h.
7790 * gimple-expr.c: Include stringpool.h.
7791 Include stor-layout.h.
7792 * gimple-fold.c: Include stringpool.h.
7793 Include expr.h.
7794 Include stmt.h.
7795 Include stor-layout.h.
7796 * gimple-low.c: Include tree-nested.h.
7797 Include calls.h.
7798 * gimple-pretty-print.c: Include stringpool.h.
7799 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
7800 Include expr.h.
7801 * gimple-walk.c: Include stmt.h.
7802 * gimple.c: Include calls.h.
7803 Include stmt.h.
7804 Include stor-layout.h.
7805 * gimplify.c: Include stringpool.h.
7806 Include calls.h.
7807 Include varasm.h.
7808 Include stor-layout.h.
7809 Include stmt.h.
7810 Include print-tree.h.
7811 Include expr.h.
7812 * gimplify-me.c: Include stmt.h
7813 Include stor-layout.h
7814 * internal-fn.c: Include stor-layout.h.
7815 * ipa-devirt.c: Include print-tree.h.
7816 Include calls.h.
7817 * ipa-inline-analysis.c: Include stor-layout.h.
7818 Include stringpool.h.
7819 Include print-tree.h.
7820 * ipa-inline.c: Include trans-mem.h.
7821 Include calls.h.
7822 * ipa-prop.c: Include expr.h.
7823 Include stor-layout.h.
7824 Include print-tree.h.
7825 * ipa-pure-const.c: Include print-tree.h.
7826 Include calls.h.
7827 * ipa-reference.c: Include calls.h.
7828 * ipa-split.c: Include stringpool.h.
7829 Include expr.h.
7830 Include calls.h.
7831 * ipa.c: Include calls.h.
7832 Include stringpool.h.
7833 * langhooks.c: Include stringpool.h.
7834 Include attribs.h.
7835 * lto-cgraph.c: Include stringpool.h.
7836 * lto-streamer-in.c: Include stringpool.h.
7837 * lto-streamer-out.c: Include stor-layout.h.
7838 Include stringpool.h.
7839 * omp-low.c: Include stringpool.h.
7840 Include stor-layout.h.
7841 Include expr.h.
7842 * optabs.c: Include stor-layout.h.
7843 Include stringpool.h.
7844 Include varasm.h.
7845 * passes.c: Include varasm.h.
7846 * predict.c: Include calls.h.
7847 * print-rtl.c: Include print-tree.h.
7848 * print-tree.c: Include varasm.h.
7849 Include print-rtl.h.
7850 Include stor-layout.h.
7851 * realmpfr.c: Include stor-layout.h.
7852 * reg-stack.c: Include varasm.h.
7853 * sdbout.c: Include varasm.h.
7854 Include stor-layout.h.
7855 * simplify-rtx.c: Include varasm.h.
7856 * stmt.c: Include varasm.h.
7857 Include stor-layout.h.
7858 * stor-layout.c: Include stor-layout.h.
7859 Include stringpool.h.
7860 Include varasm.h.
7861 Include print-tree.h.
7862 * symtab.c: Include rtl.h.
7863 Include print-tree.h.
7864 Include varasm.h.
7865 Include function.h.
7866 Include emit-rtl.h.
7867 * targhooks.c: Include stor-layout.h.
7868 Include varasm.h.
7869 * toplev.c: Include varasm.h.
7870 Include tree-inline.h.
7871 * trans-mem.c: Include calls.h.
7872 Include function.h.
7873 Include rtl.h.
7874 Include emit-rtl.h.
7875 * tree-affine.c: Include expr.h.
7876 * tree-browser.c: Include print-tree.h.
7877 * tree-call-cdce.c: Include stor-layout.h.
7878 * tree-cfg.c: Include trans-mem.h.
7879 Include stor-layout.h.
7880 Include print-tree.h.
7881 * tree-complex.c: Include stor-layout.h.
7882 * tree-data-ref.c: Include expr.h.
7883 * tree-dfa.c: Include stor-layout.h.
7884 * tree-eh.c: Include expr.h.
7885 Include calls.h.
7886 * tree-emutls.c: Include stor-layout.h.
7887 Include varasm.h.
7888 * tree-if-conv.c: Include stor-layout.h.
7889 * tree-inline.c: Include stor-layout.h.
7890 Include calls.h.
7891 * tree-loop-distribution.c: Include stor-layout.h.
7892 * tree-nested.c: Include stringpool.h.
7893 Include stor-layout.h.
7894 * tree-object-size.c: Include tree-object-size.h.
7895 * tree-outof-ssa.c: Include stor-layout.h.
7896 * tree-parloops.c: Include stor-layout.h.
7897 Include tree-nested.h.
7898 * tree-pretty-print.c: Include stor-layout.h.
7899 Include expr.h.
7900 * tree-profile.c: Include varasm.h.
7901 Include tree-nested.h.
7902 * tree-scalar-evolution.c: Include expr.h.
7903 * tree-sra.c: Include stor-layout.h.
7904 * tree-ssa-address.c: Include stor-layout.h.
7905 * tree-ssa-ccp.c: Include stor-layout.h.
7906 * tree-ssa-dce.c: Include calls.h.
7907 * tree-ssa-dom.c: Include stor-layout.h.
7908 * tree-ssa-forwprop.c: Include stor-layout.h.
7909 * tree-ssa-ifcombine.c: Include stor-layout.h.
7910 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
7911 * tree-ssa-loop-niter.c: Include calls.h.
7912 Include expr.h.
7913 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
7914 * tree-ssa-math-opts.c: Include stor-layout.h.
7915 * tree-ssa-operands.c: Include stmt.h.
7916 Include print-tree.h.
7917 * tree-ssa-phiopt.c: Include stor-layout.h.
7918 * tree-ssa-reassoc.c: Include stor-layout.h.
7919 * tree-ssa-sccvn.c: Include stor-layout.h.
7920 * tree-ssa-sink.c: Include stor-layout.h.
7921 * tree-ssa-strlen.c: Include stor-layout.h.
7922 * tree-ssa-structalias.c: Include stor-layout.h.
7923 Include stmt.h.
7924 * tree-ssa-tail-merge.c: Include stor-layout.h.
7925 Include trans-mem.h.
7926 * tree-ssa-uncprop.c: Include stor-layout.h.
7927 * tree-ssa.c: Include stor-layout.h.
7928 * tree-ssanames.c: Include stor-layout.h.
7929 * tree-streamer-in.c: Include stringpool.h.
7930 * tree-streamer-out.c: Include stor-layout.h.
7931 * tree-switch-conversion.c: Include varasm.h.
7932 Include stor-layout.h.
7933 * tree-tailcall.c: Include stor-layout.h.
7934 * tree-vect-data-refs.c: Include stor-layout.h.
7935 * tree-vect-generic.c: Include stor-layout.h.
7936 * tree-vect-loop.c: Include stor-layout.h.
7937 * tree-vect-patterns.c: Include stor-layout.h.
7938 * tree-vect-slp.c: Include stor-layout.h.
7939 * tree-vect-stmts.c: Include stor-layout.h.
7940 * tree-vectorizer.c: Include stor-layout.h.
7941 * tree-vrp.c: Include stor-layout.h.
7942 Include calls.h.
7943 * tree.c: Include stor-layout.h.
7944 Include calls.h.
7945 Include attribs.h.
7946 Include varasm.h.
7947 * tsan.c: Include expr.h.
7948 * ubsan.c: Include stor-layout.h.
7949 Include stringpool.h.
7950 * value-prof.c: Include tree-nested.h.
7951 Include calls.h.
7952 * var-tracking.c: Include varasm.h.
7953 Include stor-layout.h.
7954 * varasm.c: Include stor-layout.h.
7955 Include stringpool.h.
7956 Include gcc-symtab.h.
7957 Include varasm.h.
7958 * varpool.c: Include varasm.h.
7959 * vmsdbgout.c: Include varasm.h.
7960 * xcoffout.c: Include varasm.h.
7961
7962 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
7963
7964 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
7965 use (.&-4) idiom.
7966
7967 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7968
7969 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
7970
7971 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7972 Alan Modra <amodra@gmail.com>
7973
7974 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
7975 (RS6000_SAVE_TOC): Remove.
7976 (RS6000_TOC_SAVE_SLOT): New macro.
7977 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
7978 (rs6000_parm_start): Use it.
7979 (rs6000_function_arg_advance_1): Likewise.
7980 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
7981 (rs6000_emit_epilogue): Likewise.
7982 (rs6000_call_aix): Likewise.
7983 (rs6000_output_function_prologue): Do not save/restore r11
7984 around calling _mcount for ABI_ELFv2.
7985
7986 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7987 Alan Modra <amodra@gmail.com>
7988
7989 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
7990 Add prototype.
7991 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
7992 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
7993 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
7994 (rs6000_function_parms_need_stack): Likewise.
7995 (rs6000_reg_parm_stack_space): Likewise.
7996 (rs6000_function_arg): Do not replace BLKmode by Pmode when
7997 returning a register argument.
7998
7999 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8000 Michael Gschwind <mkg@us.ibm.com>
8001
8002 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
8003 (ALTIVEC_ARG_MAX_RETURN): Likewise.
8004 (FUNCTION_VALUE_REGNO_P): Use them.
8005 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
8006 (rs6000_return_in_msb): New function.
8007 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
8008 Handle aggregates of up to 16 bytes for ELFv2.
8009 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
8010
8011 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8012 Michael Gschwind <mkg@us.ibm.com>
8013
8014 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8015 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8016 (rs6000_discover_homogeneous_aggregate): Likewise.
8017 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8018 (rs6000_function_arg_advance_1): Likewise.
8019 (rs6000_function_arg): Likewise.
8020 (rs6000_arg_partial_bytes): Likewise.
8021 (rs6000_psave_function_arg): Handle BLKmode arguments.
8022
8023 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8024 Michael Gschwind <mkg@us.ibm.com>
8025
8026 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
8027 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
8028 (rs6000_discover_homogeneous_aggregate): Likewise.
8029 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
8030 (rs6000_function_arg_advance_1): Likewise.
8031 (rs6000_function_arg): Likewise.
8032 (rs6000_arg_partial_bytes): Likewise.
8033 (rs6000_psave_function_arg): Handle BLKmode arguments.
8034
8035 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8036
8037 * config/rs6000/rs6000.c (machine_function): New member
8038 r2_setup_needed.
8039 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
8040 (rs6000_output_mi_thunk): Set r2_setup_needed.
8041 (rs6000_output_function_prologue): Output global entry point
8042 prologue and local entry point marker if needed for ABI_ELFv2.
8043 Output -mprofile-kernel code here.
8044 (output_function_profiler): Do not output -mprofile-kernel
8045 code here; moved to rs6000_output_function_prologue.
8046 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
8047
8048 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
8049 (rs6000_output_function_entry): Likewise.
8050 (rs6000_assemble_integer): Likewise.
8051 (rs6000_elf_encode_section_info): Likewise.
8052 (rs6000_elf_declare_function_name): Do not create dot symbols
8053 or .opd section for ABI_ELFv2.
8054
8055 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
8056 (rs6000_trampoline_init): Likewise.
8057 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
8058
8059 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
8060 for function descriptors in ABI_ELFv2.
8061
8062 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
8063 on ABI_AIX only, not ABI_ELFv2.
8064 ("*call_value_indirect_aix<mode>"): Likewise.
8065 ("*call_indirect_elfv2<mode>"): New pattern.
8066 ("*call_value_indirect_elfv2<mode>"): Likewise.
8067
8068 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
8069 check for function descriptors in ABI_ELFv2.
8070 ("current_file_function_operand"): Likewise.
8071
8072 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
8073 (toc): Undefine.
8074 (FUNC_NAME): Define ELFv2 variant.
8075 (JUMP_TARGET): Likewise.
8076 (FUNC_START): Likewise.
8077 (HIDDEN_FUNC): Likewise.
8078 (FUNC_END): Likeiwse.
8079
8080 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8081
8082 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
8083 and --with-abi=elfv2.
8084 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
8085 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
8086 (mabi=elfv2): Likewise.
8087 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
8088 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
8089 if !RS6000_BI_ARCH.
8090 (ELFv2_ABI_CHECK): New macro.
8091 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
8092 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
8093 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
8094 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
8095 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
8096
8097 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
8098 (debug_stack_info): Likewise.
8099 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
8100 (rs6000_legitimize_tls_address): Likewise.
8101 (rs6000_conditional_register_usage): Likewise.
8102 (rs6000_emit_move): Likewise.
8103 (init_cumulative_args): Likewise.
8104 (rs6000_function_arg_advance_1): Likewise.
8105 (rs6000_function_arg): Likewise.
8106 (rs6000_arg_partial_bytes): Likewise.
8107 (rs6000_output_function_entry): Likewise.
8108 (rs6000_assemble_integer): Likewise.
8109 (rs6000_savres_strategy): Likewise.
8110 (rs6000_stack_info): Likewise.
8111 (rs6000_function_ok_for_sibcall): Likewise.
8112 (rs6000_emit_load_toc_table): Likewise.
8113 (rs6000_savres_routine_name): Likewise.
8114 (ptr_regno_for_savres): Likewise.
8115 (rs6000_emit_prologue): Likewise.
8116 (rs6000_emit_epilogue): Likewise.
8117 (rs6000_output_function_epilogue): Likewise.
8118 (output_profile_hook): Likewise.
8119 (output_function_profiler): Likewise.
8120 (rs6000_trampoline_size): Likewise.
8121 (rs6000_trampoline_init): Likewise.
8122 (rs6000_elf_output_toc_section_asm_op): Likewise.
8123 (rs6000_elf_encode_section_info): Likewise.
8124 (rs6000_elf_reloc_rw_mask): Likewise.
8125 (rs6000_elf_declare_function_name): Likewise.
8126 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
8127 except that rs6000_compat_align_parm is always assumed false.
8128 (rs6000_gimplify_va_arg): Likewise.
8129 (rs6000_call_aix): Update comment.
8130 (rs6000_sibcall_aix): Likewise.
8131 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
8132 Treat ABI_ELFv2 the same as ABI_AIX.
8133 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8134 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
8135 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
8136 ("load_toc_aix_si"): Likewise.
8137 ("load_toc_aix_di"): Likewise.
8138 ("call"): Likewise.
8139 ("call_value"): Likewise.
8140 ("*call_local_aix<mode>"): Likewise.
8141 ("*call_value_local_aix<mode>"): Likewise.
8142 ("*call_nonlocal_aix<mode>"): Likewise.
8143 ("*call_value_nonlocal_aix<mode>"): Likewise.
8144 ("*call_indirect_aix<mode>"): Likewise.
8145 ("*call_value_indirect_aix<mode>"): Likewise.
8146 ("sibcall"): Likewise.
8147 ("sibcall_value"): Likewise.
8148 ("*sibcall_aix<mode>"): Likewise.
8149 ("*sibcall_value_aix<mode>"): Likewise.
8150 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
8151 ("current_file_function_operand"): Likewise.
8152
8153 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8154
8155 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
8156 by making use of the fact that for vector / floating point arguments
8157 passed both in VRs/FPRs and in the fixed parameter area, the partial
8158 bytes mechanism is in fact not used.
8159
8160 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8161
8162 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
8163 (rs6000_finish_function_arg): Likewise.
8164 (rs6000_function_arg): Use rs6000_psave_function_arg and
8165 rs6000_finish_function_arg to handle both vector and floating
8166 point arguments that are also passed in GPRs / the stack.
8167
8168 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8169
8170 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
8171 (USE_ALTIVEC_FOR_ARG_P): Likewise.
8172 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
8173 (rs6000_function_arg_advance_1):Likewise.
8174 (rs6000_darwin64_record_arg_recurse): Likewise.
8175 (rs6000_function_arg): Likewise.
8176 (rs6000_arg_partial_bytes): Likewise.
8177
8178 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8179
8180 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
8181 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
8182 (rs6000_savres_strategy): Likewise.
8183 (rs6000_return_addr): Likewise.
8184 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
8185 testing for ABI_V4 (since ABI_DARWIN is impossible here).
8186 (rs6000_emit_prologue): Likewise.
8187 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
8188 (rs6000_elf_declare_function_name): Remove duplicated test.
8189 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
8190 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
8191 ("load_toc_v4_PIC_1_normal"): Likewise.
8192 ("load_toc_v4_PIC_1_476"): Likewise.
8193 ("load_toc_v4_PIC_1b"): Likewise.
8194 ("load_toc_v4_PIC_1b_normal"): Likewise.
8195 ("load_toc_v4_PIC_1b_476"): Likewise.
8196 ("load_toc_v4_PIC_2"): Likewise.
8197 ("load_toc_v4_PIC_3b"): Likewise.
8198 ("load_toc_v4_PIC_3c"): Likewise.
8199 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
8200 (RS6000_SAVE_AREA): Likewise.
8201 (FP_ARG_MAX_REG): Likewise.
8202 (RETURN_ADDRESS_OFFSET): Likewise.
8203 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
8204 of ABI_AIX.
8205 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8206 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8207
8208 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8209
8210 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
8211 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
8212 Create call insn directly instead of via various gen_... routines.
8213 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
8214 (rs6000_sibcall_aix): New function.
8215 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
8216 (TOC_SAVE_OFFSET_64BIT): Likewise.
8217 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
8218 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
8219 (AIX_FUNC_DESC_SC_32BIT): Likewise.
8220 (AIX_FUNC_DESC_SC_64BIT): Likewise.
8221 ("call" expander): Call rs6000_call_aix.
8222 ("call_value" expander): Likewise.
8223 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
8224 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8225 ("*call_indirect_aix<mode>"): ... by this insn pattern.
8226 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
8227 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
8228 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
8229 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
8230 ("*call_nonlocal_aix<mode>"): ... this pattern.
8231 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
8232 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
8233 ("*call_local_aix<mode>"): New insn pattern.
8234 ("*call_value_local_aix<mode>"): Likewise.
8235 ("sibcall" expander): Call rs6000_sibcall_aix.
8236 ("sibcall_value" expander): Likewise. Move earlier in file.
8237 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
8238 ("*sibcall_aix<mode>"): ... this pattern.
8239 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
8240 ("*sibcall_value_aix<mode>"): ... this pattern.
8241 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
8242 (rs6000_call_aix): Add prototype.
8243 (rs6000_sibcall_aix): Likewise.
8244
8245 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8246
8247 PR sanitizer/59122
8248 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
8249 isn't confused by the artificial decl.
8250
8251 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8252
8253 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
8254 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
8255 Instead, add USEs of all modified call-saved CR fields to the
8256 insn storing the result to the stack slot, and provide an
8257 appropriate REG_FRAME_RELATED_EXPR for that insn.
8258 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
8259 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
8260
8261 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8262 Alan Modra <amodra@gmail.com>
8263
8264 * function.c (assign_parms): Use all.reg_parm_stack_space instead
8265 of re-evaluating REG_PARM_STACK_SPACE target macro.
8266 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
8267 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
8268 (assign_parm_find_entry_rtl): Update call.
8269 * calls.c (initialize_argument_information): Update call.
8270 (emit_library_call_value_1): Likewise.
8271 * expr.h (locate_and_pad_parm): Update prototype.
8272
8273 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8274
8275 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
8276 arguments.
8277
8278 2013-11-14 DJ Delorie <dj@redhat.com>
8279
8280 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
8281 to 16 bits.
8282
8283 2013-11-14 Jeff Law <law@redhat.com>
8284
8285 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
8286 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
8287
8288 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8289
8290 * doc/invoke.texi: Update documentation for AArch64's -mcpu
8291 and -mtune options.
8292
8293 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8294
8295 * config/aarch64/aarch64-cores.def (example-1): Remove.
8296 (example-2): Likewise.
8297 * config/aarch64/aarch64-tune.md: Regenerate.
8298 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
8299 (generic_sched): Remove "large", "small".
8300 * config/aarch64/large.md: Delete.
8301 * config/aarch64/small.md: Delete.
8302
8303 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8304
8305 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
8306 * config/aarch64/aarch64-tune.md: Regenerate.
8307 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
8308 (generic_sched): "no" if we are tuning for cortexa15.
8309 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
8310 relative path.
8311
8312 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8313
8314 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
8315 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
8316 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
8317 (all_cores): Use cortexa53 when tuning for "generic".
8318 (aarch64_override_options): Fix comment.
8319 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
8320 * config/aarch64/aarch64-generic.md: Delete.
8321
8322 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
8323
8324 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
8325
8326 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8327
8328 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
8329 (generic_rtx_cost_table): Remove.
8330 (aarch64_rtx_costs): Use fields from cpu_cost_table.
8331 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
8332 insn_extra_cost.
8333 (cpu_rtx_cost_table): Remove.
8334
8335 2013-11-14 Julian Brown <julian@codesourcery.com>
8336 Joey Ye <joey.ye@arm.com>
8337
8338 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
8339 (arm_v7m_tune): New.
8340 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
8341 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
8342 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
8343 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
8344
8345 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
8346
8347 PR target/57491
8348 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
8349 flag setting.
8350
8351 2013-11-14 Jakub Jelinek <jakub@redhat.com>
8352 Uros Bizjak <ubizjak@gmail.com>
8353
8354 PR target/59101
8355 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
8356 operands[2] satisfies_constraint_Z that might have bit 31 set.
8357
8358 2013-11-13 Jeff Law <law@redhat.com>
8359
8360 PR tree-optimization/59102
8361 * gimple-ssa-isolate-paths.c
8362 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
8363 gimple assignment before looking at gimple_assign_lhs.
8364
8365 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8366
8367 * ira.c: Add comment about threads at the top of file.
8368
8369 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8370
8371 * ira-color.c (coalesce_allocnos): Don't allocate and free
8372 sorted_copies.
8373
8374 2013-11-14 Tom de Vries <tom@codesourcery.com>
8375
8376 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
8377 equality for GIMPLE_ASSIGN.
8378
8379 2013-11-14 Tom de Vries <tom@codesourcery.com>
8380
8381 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
8382 function out of ...
8383 (gimple_equal_p): ... here.
8384
8385 2013-11-14 Tom de Vries <tom@codesourcery.com>
8386
8387 * trans-mem.c (is_tm_ending): New function.
8388 * gimple.h (is_tm_ending): Declare.
8389 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
8390 BUILT_IN_TM_COMMIT.
8391 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
8392
8393 2013-11-14 Tom de Vries <tom@codesourcery.com>
8394
8395 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
8396
8397 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
8398
8399 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
8400 (struct walk_stmt_info): Relocate here from gimple.h.
8401 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
8402 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
8403 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8404 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8405 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8406 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8407 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
8408 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
8409 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
8410 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
8411 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
8412 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
8413 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
8414 (struct walk_stmt_info): Move to gimple-walk.h.
8415 (gimple_seq_set_location): Move to gimple.c
8416 * gimple-walk.c: New File.
8417 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
8418 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
8419 walk_stmt_load_store_ops): Relocate here from gimple.c.
8420 * gimple-iterator.c: Include gimple-iterator.h.
8421 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
8422 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
8423 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
8424 gimple-walk.c.
8425 (gimple_seq_set_location): Relocate from gimple.h.
8426 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
8427 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
8428 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
8429 * Makefile.in (OBJS): Add gimple-walk.o
8430 * asan.c: Update Include list as required for gimple-iterator.h and
8431 gimple-walk.h.
8432 * cfgexpand.c: Likewise.
8433 * cfgloop.c: Likewise.
8434 * cfgloopmanip.c: Likewise.
8435 * cgraph.c: Likewise.
8436 * cgraphbuild.c: Likewise.
8437 * cgraphunit.c: Likewise.
8438 * gimple-fold.c: Likewise.
8439 * gimple-low.c: Likewise.
8440 * gimple-pretty-print.c: Likewise.
8441 * gimple-ssa-isolate-paths.c: Likewise.
8442 * gimple-ssa-strength-reduction.c: Likewise.
8443 * gimple-streamer-in.c: Likewise.
8444 * gimple-streamer-out.c: Likewise.
8445 * gimplify.c: Likewise.
8446 * graphite-blocking.c: Likewise.
8447 * graphite-clast-to-gimple.c: Likewise.
8448 * graphite-dependences.c: Likewise.
8449 * graphite-interchange.c: Likewise.
8450 * graphite-optimize-isl.c: Likewise.
8451 * graphite-poly.c: Likewise.
8452 * graphite-scop-detection.c: Likewise.
8453 * graphite-sese-to-poly.c: Likewise.
8454 * graphite.c: Likewise.
8455 * ipa-inline-analysis.c: Likewise.
8456 * ipa-profile.c: Likewise.
8457 * ipa-prop.c: Likewise.
8458 * ipa-pure-const.c: Likewise.
8459 * ipa-split.c: Likewise.
8460 * lto-streamer-in.c: Likewise.
8461 * lto-streamer-out.c: Likewise.
8462 * omp-low.c: Likewise.
8463 * predict.c: Likewise.
8464 * profile.c: Likewise.
8465 * sese.c: Likewise.
8466 * tracer.c: Likewise.
8467 * trans-mem.c: Likewise.
8468 * tree-call-cdce.c: Likewise.
8469 * tree-cfg.c: Likewise.
8470 * tree-cfgcleanup.c: Likewise.
8471 * tree-complex.c: Likewise.
8472 * tree-data-ref.c: Likewise.
8473 * tree-dfa.c: Likewise.
8474 * tree-eh.c: Likewise.
8475 * tree-emutls.c: Likewise.
8476 * tree-if-conv.c: Likewise.
8477 * tree-inline.c: Likewise.
8478 * tree-into-ssa.c: Likewise.
8479 * tree-loop-distribution.c: Likewise.
8480 * tree-nested.c: Likewise.
8481 * tree-nrv.c: Likewise.
8482 * tree-object-size.c: Likewise.
8483 * tree-outof-ssa.c: Likewise.
8484 * tree-parloops.c: Likewise.
8485 * tree-predcom.c: Likewise.
8486 * tree-profile.c: Likewise.
8487 * tree-scalar-evolution.c: Likewise.
8488 * tree-sra.c: Likewise.
8489 * tree-ssa-ccp.c: Likewise.
8490 * tree-ssa-coalesce.c: Likewise.
8491 * tree-ssa-copy.c: Likewise.
8492 * tree-ssa-copyrename.c: Likewise.
8493 * tree-ssa-dce.c: Likewise.
8494 * tree-ssa-dom.c: Likewise.
8495 * tree-ssa-dse.c: Likewise.
8496 * tree-ssa-forwprop.c: Likewise.
8497 * tree-ssa-ifcombine.c: Likewise.
8498 * tree-ssa-live.c: Likewise.
8499 * tree-ssa-loop-ch.c: Likewise.
8500 * tree-ssa-loop-im.c: Likewise.
8501 * tree-ssa-loop-ivcanon.c: Likewise.
8502 * tree-ssa-loop-ivopts.c: Likewise.
8503 * tree-ssa-loop-manip.c: Likewise.
8504 * tree-ssa-loop-niter.c: Likewise.
8505 * tree-ssa-loop-prefetch.c: Likewise.
8506 * tree-ssa-loop.c: Likewise.
8507 * tree-ssa-math-opts.c: Likewise.
8508 * tree-ssa-phiopt.c: Likewise.
8509 * tree-ssa-phiprop.c: Likewise.
8510 * tree-ssa-pre.c: Likewise.
8511 * tree-ssa-propagate.c: Likewise.
8512 * tree-ssa-reassoc.c: Likewise.
8513 * tree-ssa-sink.c: Likewise.
8514 * tree-ssa-strlen.c: Likewise.
8515 * tree-ssa-structalias.c: Likewise.
8516 * tree-ssa-tail-merge.c: Likewise.
8517 * tree-ssa-ter.c: Likewise.
8518 * tree-ssa-threadedge.c: Likewise.
8519 * tree-ssa-threadupdate.c: Likewise.
8520 * tree-ssa-uncprop.c: Likewise.
8521 * tree-ssa-uninit.c: Likewise.
8522 * tree-ssa.c: Likewise.
8523 * tree-stdarg.c: Likewise.
8524 * tree-switch-conversion.c: Likewise.
8525 * tree-tailcall.c: Likewise.
8526 * tree-vect-data-refs.c: Likewise.
8527 * tree-vect-generic.c: Likewise.
8528 * tree-vect-loop-manip.c: Likewise.
8529 * tree-vect-loop.c: Likewise.
8530 * tree-vect-patterns.c: Likewise.
8531 * tree-vect-slp.c: Likewise.
8532 * tree-vect-stmts.c: Likewise.
8533 * tree-vectorizer.c: Likewise.
8534 * tree-vrp.c: Likewise.
8535 * tree.c: Likewise.
8536 * tsan.c: Likewise.
8537 * value-prof.c: Likewise.
8538 * vtable-verify.c: Likewise.
8539
8540 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8541
8542 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
8543 fix.
8544
8545 2013-11-13 Jeff Law <law@redhat.com>
8546
8547 * PR middle-end/59119
8548 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
8549 function, extracted from gimple_ssa_isolate_erroneous_paths.
8550 (find_explicit_erroneous_behaviour): Similarly.
8551 (insert_trap_and_remove_trailing_statements): Remove statements
8552 in reverse order.
8553
8554 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
8555
8556 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
8557 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
8558 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
8559 looking at INSN_CODE.
8560 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
8561 active_insn_p object, respect basic block boundaries.
8562 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
8563 follows immediately after the jump table data label.
8564 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
8565 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
8566 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
8567
8568 2013-11-13 Teresa Johnson <tejohnson@google.com>
8569
8570 PR ipa/58862
8571 * predict.c (drop_profile): Error is currently too strict.
8572 (handle_missing_profiles): Pass call_count to drop_profile.
8573
8574 2013-11-13 Teresa Johnson <tejohnson@google.com>
8575
8576 PR ipa/58862
8577 * ipa-inline.c (edge_badness): Fix overflow.
8578
8579 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
8580
8581 PR rtl-optimization/59036
8582 * ira-color.c (struct allocno_color_data): Add new members
8583 first_thread_allocno, next_thread_allocno, thread_freq.
8584 (sorted_copies): New static var.
8585 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
8586 (allocno_thread_conflict_p, merge_threads)
8587 (form_threads_from_copies, form_threads_from_bucket)
8588 (form_threads_from_colorable_allocno, init_allocno_threads): New
8589 functions.
8590 (bucket_allocno_compare_func): Add comparison by thread frequency
8591 and threads.
8592 (add_allocno_to_ordered_bucket): Rename to
8593 add_allocno_to_ordered_colorable_bucket. Remove parameter.
8594 (push_only_colorable): Call form_threads_from_bucket.
8595 (color_pass): Call init_allocno_threads. Use
8596 consideration_allocno_bitmap instead of coloring_allocno_bitmap
8597 for nuillify allocno color data.
8598 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
8599 (coalesce_allocnos): Use static sorted copies.
8600
8601 2013-11-13 Jakub Jelinek <jakub@redhat.com>
8602
8603 * passes.c (execute_todo): Don't call do_per_function if
8604 flags are zero.
8605 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
8606 execute_function_dump if dump_file is NULL.
8607
8608 2013-11-13 Martin Jambor <mjambor@suse.cz>
8609
8610 * cgraph.c (cgraph_get_create_node): Do what
8611 cgraph_get_create_real_symbol_node used to do.
8612 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
8613 call cgraph_get_create_node.
8614 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
8615 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
8616 cgraph_get_create_node. Assert we get a node.
8617
8618 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8619
8620 * config/aarch64/aarch64-simd.md (vec_extract): New.
8621
8622 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
8623
8624 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
8625 the constraint.
8626
8627 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8628
8629 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
8630 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
8631 or if optimization is enabled.
8632 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
8633 require that all the names based on a PARM_DECL or a RESULT_DECL that
8634 isn't ignored for debug info be coalesced.
8635
8636 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8637
8638 * config/c6x/c6x.c: Include "gimple-expr.h".
8639
8640 2013-11-13 Richard Biener <rguenther@suse.de>
8641
8642 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
8643 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
8644 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
8645 dealing with type mismatches inside component reference chains.
8646
8647 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
8648
8649 PR tree-optimization/59077
8650 * ipa-pure-const.c (better_state): Update *state.
8651
8652 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
8653
8654 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
8655 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8656 Update offset calculations.
8657
8658 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
8659
8660 PR ada/35998
8661 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
8662 for fields. Do not add the attribute if the size is negative.
8663
8664 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8665
8666 * config/arm/arm.c: Include aarch-cost-tables.h.
8667 (generic_extra_costs): Move from here...
8668 * config/arm/aarch-cost-tables.h: ... To here. New file.
8669
8670 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
8671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8672 Sergey Lega <sergey.s.lega@intel.com>
8673 Anna Tikhonova <anna.tikhonova@intel.com>
8674 Ilya Tocar <ilya.tocar@intel.com>
8675 Andrey Turetskiy <andrey.turetskiy@intel.com>
8676 Ilya Verbin <ilya.verbin@intel.com>
8677 Kirill Yukhin <kirill.yukhin@intel.com>
8678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8679
8680 * config/i386/i386.c (ix86_print_operand): Support z-masking.
8681 * config/i386/predicate.md (const_0_to_4_operand): New.
8682 (const_0_to_5_operand): Ditto.
8683 * config/i386/sse.md (UNSPEC_COMPRESS): New.
8684 (UNSPEC_COMPRESS_STORE): Ditto.
8685 (UNSPEC_EXPAND): Ditto.
8686 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
8687 (define_mode_attr ssescalarsize): Ditto.
8688 (avx512f_load<mode>_mask): Ditto.
8689 (avx512f_store<mode>_mask): Ditto.
8690 (avx512f_storedqu<mode>_mask): Ditto.
8691 (avx512f_vmcmp<mode>3_mask): Ditto.
8692 (avx512f_fmadd_<mode>_mask): Ditto.
8693 (avx512f_fmadd_<mode>_mask3): Ditto.
8694 (avx512f_fmsub_<mode>_mask): Ditto.
8695 (avx512f_fmsub_<mode>_mask3): Ditto.
8696 (avx512f_fnmadd_<mode>_mask): Ditto.
8697 (avx512f_fnmadd_<mode>_mask3): Ditto.
8698 (avx512f_fnmsub_<mode>_mask): Ditto.
8699 (avx512f_fnmsub_<mode>_mask3): Ditto.
8700 (avx512f_fmaddsub_<mode>_mask): Ditto.
8701 (avx512f_fmaddsub_<mode>_mask3): Ditto.
8702 (avx512f_fmsubadd_<mode>_mask): Ditto.
8703 (avx512f_fmsubadd_<mode>_mask3): Ditto.
8704 (vec_unpacku_float_lo_v16si): Ditto.
8705 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
8706 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
8707 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
8708 (vec_extract_lo_<mode>_maskm): Ditto.
8709 (vec_extract_hi_<mode>_maskm): Ditto.
8710 (avx512f_vternlog<mode>_mask): Ditto.
8711 (avx512f_shufps512_mask): Ditto.
8712 (avx512f_fixupimm<mode>_mask): Ditto.
8713 (avx512f_shufpd512_mask): Ditto.
8714 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
8715 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
8716 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
8717 (ashr<mode>3<mask_name>): Ditto.
8718 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
8719 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
8720 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
8721 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
8722 (avx512f_pshufdv3_mask): Ditto.
8723 (avx512f_perm<mode>_mask): Ditto.
8724 (avx512f_vpermi2var<mode>3_mask): Ditto.
8725 (avx512f_vpermt2var<mode>3_mask): Ditto.
8726 (avx512f_compress<mode>_mask): Ditto.
8727 (avx512f_compressstore<mode>_mask): Ditto.
8728 (avx512f_expand<mode>_mask): Ditto.
8729 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
8730 to support masking.
8731 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
8732 (<plusminus_insn><mode>3<mask_name>): Ditto.
8733 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8734 (mul<mode>3<mask_name>): Ditto.
8735 (*mul<mode>3<mask_name>): Ditto.
8736 (<sse>_div<mode>3<mask_name>): Ditto.
8737 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
8738 (<sse>_sqrt<mode>2<mask_name>): Ditto.
8739 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
8740 (<code><mode>3<mask_name>/smaxmin): Ditto.
8741 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
8742 (*<code><mode>3<mask_name>/smaxmin): Ditto.
8743 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
8744 (ufloatv16siv16sf2<mask_name>): Ditto.
8745 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
8746 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
8747 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
8748 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
8749 (ufloatv8siv8df<mask_name>): Ditto.
8750 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
8751 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
8752 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
8753 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
8754 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
8755 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
8756 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
8757 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
8758 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
8759 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8760 (vec_extract_lo_<mode><mask_name>): Ditto.
8761 (vec_extract_hi_<mode><mask_name>): Ditto.
8762 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8763 (avx512f_movddup512<mask_name>): Ditto.
8764 (avx512f_unpcklpd512<mask_name>): Ditto.
8765 (*avx512f_unpcklpd512<mask_name>): Ditto.
8766 (*avx512f_vmscalef<mode>): Ditto.
8767 (avx512f_scalef<mode><mask_name>): Ditto.
8768 (avx512f_getexp<mode><mask_name>): Ditto.
8769 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
8770 (avx512f_rndscale<mode><mask_name>): Ditto.
8771 (avx512f_shufps512_1<mask_name>): Ditto.
8772 (avx512f_shufpd512_1<mask_name>): Ditto.
8773 (<plusminus_insn><mode>3<mask_name>): Ditto.
8774 (*<plusminus_insn><mode>3<mask_name>): Ditto.
8775 (vec_widen_umult_even_v16si<mask_name>): Ditto.
8776 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
8777 (vec_widen_smult_even_v16si<mask_name>): Ditto.
8778 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
8779 (mul<mode>3<mask_name>): Ditto.
8780 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
8781 (<shift_insn><mode>3<mask_name>): Ditto.
8782 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
8783 (avx512f_<rotate><mode><mask_name>): Ditto.
8784 (<code><mode>3<mask_name>/maxmin): Ditto.
8785 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
8786 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
8787 (*andnot<mode>3<mask_name>): Ditto.
8788 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
8789 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
8790 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
8791 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
8792 (vec_set_lo_<mode><mask_name>): Ditto.
8793 (vec_set_hi_<mode><mask_name>): Ditto.
8794 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
8795 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
8796 (avx512f_pshufd_1<mask_name>): Ditto.
8797 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
8798 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
8799 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
8800 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
8801 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
8802 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
8803 (avx512er_exp2<mode><mask_name>): Ditto.
8804 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
8805 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
8806 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
8807 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
8808 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
8809 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
8810 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
8811 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
8812 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
8813 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
8814 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
8815 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
8816 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
8817 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
8818 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
8819 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
8820 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
8821 (avx512f_getmant<mode><mask_name>): Ditto.
8822 (clz<mode>2<mask_name>): Ditto.
8823 (<mask_codefor>conflict<mode><mask_name>): Ditto.
8824 (*srcp14<mode>): Remove visibility.
8825 (*rsqrt14<mode>): Ditto.
8826 (*fma_fmsub_<mode>): Ditto.
8827 (*fma_fnmadd_<mode>): Ditto.
8828 (*avx512f_rndscale<mode>): Ditto.
8829 * config/i386/subst.md: New file.
8830
8831 2013-11-13 Joseph Myers <joseph@codesourcery.com>
8832
8833 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
8834 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
8835 (atomic_load_explicit, atomic_exchange_explicit)
8836 (atomic_compare_exchange_strong_explicit)
8837 (atomic_compare_exchange_weak_explicit): Use __auto_type to
8838 declare variable initialized with PTR argument.
8839
8840 2013-11-12 Jeff Law <law@redhat.com>
8841
8842 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
8843 backedge_seen_p. Set, use and pass it to children appropriately.
8844 (thread_through_normal_block): Similarly.
8845 (thread_across_edge): Similarly.
8846
8847 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
8848 memory references as volatile.
8849 (insert_trap_and_remove_trailing_statements): Fix comment.
8850
8851 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
8852
8853 PR other/58712
8854 * ira-costs.c (record_operand_costs): Check operands number for
8855 the single set.
8856
8857 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8858
8859 PR target/59054
8860 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
8861 constraints that would allow DImode into the traditional Altivec
8862 registers, but cause undesirable code generation when loading 0 as
8863 a constant.
8864 (movdi_internal64): Likewise.
8865 (cmp<mode>_fpr): Do not use %x for CR register output.
8866 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
8867 -mallow-upper-sf debug switches are used.
8868
8869 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
8870
8871 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
8872 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
8873 Relocate prototypes from gimple.h.
8874 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
8875 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
8876 from gimple.h.
8877 * gimple.h: Move some prototypes to gimplify.h.
8878 (gimple_predicate, enum fallback, enum gimplify_status): Move to
8879 gimplify.h.
8880 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
8881 Relocate from gimpify.c.
8882 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8883 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
8884 is_gimple_reg_rhs) Relocate from gimplify.c.
8885 * gimplify.c (mark_addressable): Move to gimple-expr.c.
8886 (gimple_seq_add_stmt_without_update): Move to gimple.c.
8887 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
8888 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
8889 is_gimple_reg_rhs): Move to gimple-expr.c.
8890 (should_carry_location_p): Move to gimple.c.
8891 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
8892 to gimple.h.
8893 (annotate_one_with_location, annotate_all_with_location_after,
8894 annotate_all_with_location): Move to gimple.c.
8895 (compare_case_labels, sort_case_labels,
8896 preprocess_case_label_vec_for_gimple): Move to gimple.c.
8897 (rhs_predicate_for): Make static.
8898 (gimplify_assign): Relocate from gimple.c.
8899 * gimple.c (gimplify_assign): Move to gimplify.c.
8900 (gimple_seq_add_stmt_without_update, should_carry_location_p,
8901 annotate_one_with_location, annotate_all_with_location_after,
8902 annotate_all_with_location, compare_case_labels, sort_case_labels,
8903 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
8904 * tree.h (unshare_expr, unshare_expr_without_location,
8905 mark_addressable): Move prototypes to gimplify.h.
8906 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
8907 tmp_var_id_num
8908 * asan.c: Include gimplify.h rather than gimple.h.
8909 * cfgloopmanip.c: Likewise.
8910 * cgraphunit.c: Likewise.
8911 * cilk-common.c: Likewise.
8912 * dwarf2out.c: Dont include gimple.h.
8913 * fold-const.c: Include gimplify.h rather than gimple.h.
8914 * function.c: Likewise.
8915 * gimple-fold.c: Likewise.
8916 * gimple-ssa-strength-reduction.c: Likewise.
8917 * graphite-clast-to-gimple.c: Likewise.
8918 * graphite-sese-to-poly.c: Likewise.
8919 * ipa-prop.c: Likewise.
8920 * ipa-split.c: Likewise.
8921 * ipa.c: Likewise.
8922 * langhooks.c: Dont include gimple.h.
8923 * loop-init.c: Include gimplify.h rather than gimple.h.
8924 * omp-low.c: Likewise.
8925 * sese.c: Likewise.
8926 * stor-layout.c: Likewise.
8927 * targhooks.c: Likewise.
8928 * trans-mem.c: Likewise.
8929 * tree-affine.c: Likewise.
8930 * tree-cfg.c: Likewise.
8931 * tree-cfgcleanup.c: Likewise.
8932 * tree-complex.c: Likewise.
8933 * tree-if-conv.c: Likewise.
8934 * tree-inline.c: Likewise.
8935 * tree-iterator.c: Likewise.
8936 * tree-loop-distribution.c: Likewise.
8937 * tree-nested.c: Likewise.
8938 * tree-parloops.c: Likewise.
8939 * tree-predcom.c: Likewise.
8940 * tree-profile.c: Likewise.
8941 * tree-scalar-evolution.c: Likewise.
8942 * tree-sra.c: Likewise.
8943 * tree-ssa-address.c: Likewise.
8944 * tree-ssa-ccp.c: Likewise.
8945 * tree-ssa-dce.c: Likewise.
8946 * tree-ssa-forwprop.c: Likewise.
8947 * tree-ssa-ifcombine.c: Likewise.
8948 * tree-ssa-loop-im.c: Likewise.
8949 * tree-ssa-loop-ivopts.c: Likewise.
8950 * tree-ssa-loop-manip.c: Likewise.
8951 * tree-ssa-loop-niter.c: Likewise.
8952 * tree-ssa-loop-prefetch.c: Likewise.
8953 * tree-ssa-loop-unswitch.c: Likewise.
8954 * tree-ssa-math-opts.c: Likewise.
8955 * tree-ssa-phiopt.c: Likewise.
8956 * tree-ssa-phiprop.c: Likewise.
8957 * tree-ssa-pre.c: Likewise.
8958 * tree-ssa-propagate.c: Likewise.
8959 * tree-ssa-reassoc.c: Likewise.
8960 * tree-ssa-sccvn.c: Likewise.
8961 * tree-ssa-strlen.c: Likewise.
8962 * tree-ssa.c: Likewise.
8963 * tree-switch-conversio: Likewise.n.c
8964 * tree-tailcall.c: Likewise.
8965 * tree-vect-data-refs.c: Likewise.
8966 * tree-vect-generic.c: Likewise.
8967 * tree-vect-loop-manip.c: Likewise.
8968 * tree-vect-loop.c: Likewise.
8969 * tree-vect-patterns.c: Likewise.
8970 * tree-vect-stmts.c: Likewise.
8971 * tsan.c: Likewise.
8972 * value-prof.c: Likewise.
8973 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
8974 * config/alpha/alpha.c: Likewise.
8975 * config/darwin.c: Likewise.
8976 * config/i386/i386.c: Likewise.
8977 * config/ia64/ia64.c: Likewise.
8978 * config/mep/mep.c: Likewise.
8979 * config/mips/mips.c: Likewise.
8980 * config/rs6000/rs6000.c: Likewise.
8981 * config/s390/s390.c: Likewise.
8982 * config/sh/sh.c: Likewise.
8983 * config/sparc/sparc.c: Likewise.
8984 * config/spu/spu.c: Likewise.
8985 * config/stormy16/stormy16.c: Likewise.
8986 * config/tilegx/tilegx.c: Likewise.
8987 * config/tilepro/tilepro.c: Likewise.
8988 * config/xtensa/xtensa.c: Likewise.
8989
8990 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
8991
8992 * tree.c (grow_tree_vec_stat): New function ...
8993 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
8994 and macro front-end.
8995
8996 2013-11-12 Marek Polacek <polacek@redhat.com>
8997
8998 * final.c (update_alignments): Initialize label to NULL_RTX.
8999
9000 2013-11-12 Jeff Law <law@redhat.com>
9001
9002 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
9003 (insert_trap_and_remove_trailing_statements): New argument OP which
9004 is the NULL pointer. Emit the trap after the load/store through
9005 the NULL pointer. Simplify the RHS of a store through a NULL pointer
9006 when trivial to do so.
9007 (isolate_path): Corresponding changes.
9008 (gimple_ssa_isolate_erroneous_path): Likewise.
9009
9010 2013-11-12 Teresa Johnson <tejohnson@google.com>
9011 Jan Hubicka <jh@suse.cz>
9012
9013 * predict.c (drop_profile): New function.
9014 (handle_missing_profiles): Ditto.
9015 (counts_to_freqs): Don't overwrite estimated frequencies
9016 when function has no profile counts.
9017 * predict.h (handle_missing_profiles): Declare.
9018 * tree-inline.c (freqs_to_counts): New function.
9019 (copy_cfg_body): Invoke freqs_to_counts as needed.
9020 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
9021
9022 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9023
9024 PR target/59088
9025 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
9026 Set for m_HASWELL.
9027 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
9028
9029 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
9030
9031 PR target/59084
9032 * config/i386/i386.c (ix86_option_override_internal): Check
9033 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
9034 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
9035 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
9036 MASK_AVX256_SPLIT_UNALIGNED_STORE.
9037
9038 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
9039 Clear m_COREI7_AVX and update comments.
9040 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
9041
9042 2013-11-12 Martin Jambor <mjambor@suse.cz>
9043
9044 PR rtl-optimization/10474
9045 * ira.c (interesting_dest_for_shprep): New function.
9046 (split_live_ranges_for_shrink_wrap): Likewise.
9047 (find_moveable_pseudos): Move calculation of dominance info,
9048 df_analysios and the final anlyses to...
9049 (ira): ...here, call split_live_ranges_for_shrink_wrap.
9050
9051 2013-11-12 Bin Cheng <bin.cheng@arm.com>
9052
9053 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
9054 Handle type conversion.
9055
9056 2013-11-11 Martin Liska <marxin.liska@gmail.com>
9057 Jan Hubicka <jh@suse.cz>
9058
9059 * cgraph.c (dump_cgraph_node): Profile dump added.
9060 * cgraph.h (struct cgraph_node): New time profile variable added.
9061 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
9062 * gcov-io.h (gcov_type): New profiler type introduced.
9063 * ipa-profile.c (lto_output_node): Streaming for time profile added.
9064 (input_node): Time profiler is read from LTO stream.
9065 * predict.c (maybe_hot_count_p): Hot prediction changed.
9066 * profile.c (instrument_values): New case for time profiler added.
9067 (compute_value_histograms): Read of time profile.
9068 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
9069 * tree-profile.c (init_ic_make_global_vars): Time profiler
9070 function added.
9071 (gimple_init_edge_profiler): TP function instrumentation.
9072 (gimple_gen_time_profiler): New.
9073 * value-prof.c (gimple_add_histogram_value): Support for time profiler
9074 added.
9075 (dump_histogram_value): TP type added to dumps.
9076 (visit_hist): More sensitive check that takes TP into account.
9077 (gimple_find_values_to_profile): TP instrumentation.
9078 * value-prof.h (hist_type): New histogram type added.
9079 (struct histogram_value_t): Pointer to struct function added.
9080 * libgcc/Makefile.in: New GCOV merge function for TP added.
9081 * libgcov.c: function_counter variable introduced.
9082 (_gcov_merge_time_profile): New.
9083 (_gcov_time_profiler): New.
9084
9085 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
9086 Jeff Law <law@redhat.com>
9087
9088 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
9089 ao_ref_init_from_ptr_and_size for builtins.
9090
9091 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
9092 H.J. Lu <hongjiu.lu@intel.com>
9093
9094 PR target/58853
9095 * config/i386/x86-tune.def
9096 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9097 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
9098 * config/i386/i386.h
9099 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
9100 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
9101 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
9102 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
9103 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
9104 misaligned_prologue_used. Check that
9105 desired_aling <= epilogue_size_needed.
9106
9107 2013-11-11 Cong Hou <congh@google.com>
9108
9109 PR tree-optimization/59050
9110 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
9111
9112 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9113
9114 PR middle-end/59049
9115 * expmed.c (emit_store_flag): Fail for const-const comparison.
9116
9117 2013-11-11 Tristan Gingold <gingold@adacore.com>
9118 Eric Botcazou <ebotcazou@adacore.com>
9119
9120 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
9121 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
9122 * tree.def (CONSTRUCTOR): Likewise.
9123 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
9124 * gimplify.c (gimplify_init_constructor): Do not clear the object when
9125 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
9126
9127 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
9128
9129 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
9130 diagnostic_finish.
9131
9132 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9133
9134 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
9135 comparisons.
9136
9137 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
9138
9139 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
9140
9141 2013-11-08 Jeff Law <law@redhat.com>
9142
9143 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
9144 threading paths first, then perform PHI node checks if applicable.
9145
9146 2013-11-10 Karlson2k <k2k@narod.ru>
9147 Kai Tietz <ktietz@redhat.com>
9148
9149 PR plugin/52872
9150 * configure.ac: Adding for exported symbols check
9151 and for rdynamic-check executable-extension.
9152 * configure: Regenerated.
9153
9154 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
9155
9156 * mode-switching.c (optimize_mode_switching): Mark block as
9157 nontransparent, if last_mode at block exit is different from no_mode.
9158
9159 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9160
9161 * function.c (NAME__MAIN): Move to...
9162 * cfgexpand.c (NAME__MAIN): ...here.
9163
9164 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
9165
9166 * target.def (can_use_doloop_p): New hook.
9167 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
9168 * doc/tm.texi: Regenerate.
9169 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
9170 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
9171 * hooks.c (hook_bool_dint_dint_uint_true): New function.
9172 * targhooks.h (can_use_doloop_if_innermost): Declare.
9173 * targhooks.c (can_use_doloop_if_innermost): New function.
9174 * target.h: Include double-int.h.
9175 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
9176 Remove iteration count, maximum iteration count, loop depth and
9177 enter-at-top inputs from doloop_begin and doloop_end.
9178 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
9179 interface.
9180 * config/arc/arc.c (arc_can_use_doloop_p): New function.
9181 (TARGET_CAN_USE_DOLOOP_P): Define.
9182 * config/arm/thumb2.md (doloop_end): Update for new interface.
9183 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
9184 * config/bfin/bfin.md (doloop_end): Update for new interface.
9185 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
9186 (TARGET_CAN_USE_DOLOOP_P): Define.
9187 * config/c6x/c6x.md (doloop_end): Update for new interface.
9188 * config/ia64/ia64.md (doloop_end): Update for new interface.
9189 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
9190 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
9191 interface.
9192 * config/mep/mep.c (mep_emit_doloop): Likewise.
9193 (TARGET_CAN_USE_DOLOOP_P): Define.
9194 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
9195 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
9196 * config/s390/s390.md (doloop_end): Update for new interface.
9197 * config/sh/sh.md (doloop_end): Likewise.
9198 * config/spu/spu.md (doloop_end): Likewise.
9199 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
9200 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
9201 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
9202 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
9203 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
9204 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
9205 interface.
9206 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
9207
9208 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
9209
9210 PR other/59055
9211 * doc/extend.texi: Move Cilk Plus Builtins node before Other
9212 Builtins node.
9213
9214 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
9215 Joseph Myers <joseph@codesourcery.com>
9216
9217 * ginclude/stdatomic.h: New file.
9218 * Makefile.in (USER_H): Add stdatomic.h.
9219
9220 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9221
9222 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
9223 comparisons.
9224
9225 2013-11-08 Jeff Law <law@redhat.com>
9226
9227 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
9228 * tree-ssa-threadupdate.c (delete_thread_path): New function.
9229 (ssa_redirect_edges, thread_block_1): Use it.
9230 (thread_through_loop_header, mark_threaded_blocks): Likewise.
9231 (thread_through_all_blocks, register_jump_thread): Likewise.
9232 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
9233
9234 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
9235
9236 * config/arm/aarch-common.c
9237 (search_term): New typedef.
9238 (shift_rtx_costs): New array.
9239 (arm_rtx_shift_left_p): New.
9240 (arm_find_sub_rtx_with_search_term): Likewise.
9241 (arm_find_sub_rtx_with_code): Likewise.
9242 (arm_early_load_addr_dep): Add sanity checking.
9243 (arm_no_early_alu_shift_dep): Likewise.
9244 (arm_no_early_alu_shift_value_dep): Likewise.
9245 (arm_no_early_mul_dep): Likewise.
9246 (arm_no_early_store_addr_dep): Likewise.
9247
9248 2013-11-08 Richard Biener <rguenther@suse.de>
9249
9250 PR tree-optimization/59047
9251 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
9252
9253 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
9254
9255 * common.opt (fcheck-pointer-bounds): Move to ...
9256 * c-family/c.opt: ... here.
9257 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
9258 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
9259 * langhooks.h (lang_hooks): Remove chkp_supported field.
9260 * toplev.c (process_options): Remove chkp_supported check.
9261
9262 2013-11-08 Richard Biener <rguenther@suse.de>
9263
9264 PR tree-optimization/59038
9265 PR tree-optimization/58955
9266 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
9267 previous change. Handle known dependences correctly.
9268
9269 2013-11-08 Tom de Vries <tom@codesourcery.com>
9270
9271 * config/rs6000/t-xilinx: Remove duplicate contents.
9272
9273 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
9274 Joseph Myers <joseph@codesourcery.com>
9275
9276 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
9277 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
9278 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
9279 (struct tree_base): Add atomic_flag field.
9280 * tree.h (TYPE_ATOMIC): New accessor macro.
9281 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
9282 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
9283 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
9284 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
9285 * tree.c (set_type_quals): Set TYPE_ATOMIC.
9286 (find_atomic_core_type): New function.
9287 (build_qualified_type): Adjust alignment for qualified types.
9288 (build_atomic_base): New function
9289 (build_common_tree_nodes): Build atomicQI_type_node,
9290 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
9291 atomicTI_type_node.
9292 * print-tree.c (print_node): Print atomic qualifier.
9293 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
9294 * target.def (atomic_assign_expand_fenv): New hook.
9295 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
9296 * doc/tm.texi: Regenerate.
9297 * targhooks.c (default_atomic_assign_expand_fenv): New function.
9298 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
9299 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
9300 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
9301 function type.
9302 * config/i386/i386.c (enum ix86_builtins): Add
9303 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
9304 IX86_BUILTIN_FNCLEX.
9305 (bdesc_special_args): Add __builtin_ia32_fnstenv,
9306 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
9307 (ix86_expand_builtin): Handle the new built-in functions.
9308 (ix86_atomic_assign_expand_fenv): New function.
9309 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
9310 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
9311 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
9312 (fnstenv, fldenv, fnstsw, fnclex): New insns.
9313
9314 2013-11-07 Steve Ellcey <sellcey@mips.com>
9315
9316 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
9317 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
9318 (MULTILIB_DIRNAMES): Add fp64 directory.
9319 (MULTILIB_EXCEPTIONS): Add new exclusions.
9320
9321 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
9322
9323 * gimplify.c (gimple_regimplify_operands): Do not set
9324 SSA_NAME_DEF_STMT.
9325 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
9326 (rewrite_close_phi_out_of_ssa): Same.
9327 (rewrite_phi_out_of_ssa): Same.
9328 (rewrite_degenerate_phi): Same.
9329 (handle_scalar_deps_crossing_scop_limits): Same.
9330 * tree-if-conv.c (predicate_scalar_phi): Same.
9331 * tree-parloops.c (create_loads_for_reductions): Same.
9332 (create_final_loads_for_reduction): Same.
9333 (create_loads_and_stores_for_name): Same.
9334 (transform_to_exit_first_loop): Same.
9335 (create_parallel_loop): Same.
9336 * tree-ssa-loop-im.c
9337 (move_computations_dom_walker::before_dom_children): Same.
9338 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
9339 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
9340 * tree-ssa-propagate.c (substitute_and_fold): Same.
9341 * tree-vect-loop.c (vect_finalize_reduction): Same.
9342 * tree-vect-stmts.c (vectorizable_call): Same.
9343
9344 2013-11-07 Mike Stump <mikestump@comcast.net>
9345
9346 * config/pdp11/pdp11.c: Include dbxout.h.
9347 * config/picochip/picochip.c: Likewise.
9348
9349 2013-11-07 Cong Hou <congh@google.com>
9350
9351 PR tree-optimization/56764
9352 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9353 Combine alias checks if it is possible to amortize the runtime
9354 overhead. Return the number of alias checks after merging.
9355 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9356 Use the function vect_create_cond_for_alias_checks () to check
9357 the number of alias checks.
9358
9359 2013-11-07 Jeff Law <law@redhat.com>
9360
9361 * varpool.c (ctor_for_folding): Fix typo in comment.
9362
9363 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
9364
9365 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
9366 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
9367
9368 2013-11-07 Jeff Law <law@redhat.com>
9369
9370 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
9371
9372 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
9373 No longer check if we have __builtin_trap, assume it's available.
9374
9375 2013-11-07 Diego Novillo <dnovillo@google.com>
9376
9377 * attribs.c (lookup_scoped_attribute_spec): Make static.
9378 (get_attribute_namespace): Likewise.
9379 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
9380 (validate_arglist): Move earlier in the file. Make static.
9381 (expand_stack_restore): Move from stmt.c
9382 (expand_stack_save): Move from stmt.c
9383 (rewrite_call_expr_array): Move earlier in the file.
9384 (rewrite_call_expr_valist): Likewise.
9385 * cfgexpand.c: Include hard-reg-set.h before tree.h
9386 Include recog.h.
9387 Include output.h.
9388 (expand_asm_loc): Move from stmt.c.
9389 (n_occurrences): Move from stmt.c.
9390 (check_operand_nalternatives): Move from stmt.c.
9391 (tree_conflicts_with_clobbers_p): Move from stmt.c.
9392 (expand_asm_operands): Move from stmt.c
9393 (expand_asm_stmt): Move from stmt.c
9394 (expand_computed_goto): Move from stmt.c
9395 (expand_goto): Move from stmt.c
9396 (expand_null_return_1): Move from stmt.c
9397 (expand_null_return): Move from stmt.c
9398 (expand_value_return): Move from stmt.c
9399 (expand_return): Move from stmt.c
9400 (expand_main_function): Move from function.c
9401 (stack_protect_prologue): Move from function.c
9402 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
9403 (build_function_decl_skip_args): Move from tree.c.
9404 * explow.c (tree_expr_size): Move from tree.c.
9405 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
9406 (fields_length): Move from tree.c.
9407 * fold-const.c (size_low_cst): Move from tree.c.
9408 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
9409 (tree_expr_nonzero_p): Make static. Move earlier in the file.
9410 (fold_build3_initializer_loc): Remove.
9411 (tree_invalid_nonnegative_warnv_p): Make static.
9412 * function.c (expand_main_function): Move to cfgexpand.c.
9413 (stack_protect_prologue): Move to cfgexpand.c.
9414 (set_insn_locations): Move earlier in the file.
9415 * gimple-fold.c: Include langhooks.h.
9416 (truth_type_for): Move from tree.c.
9417 * print-tree.c (print_vec_tree): Remove.
9418 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
9419 (expand_goto): Move to cfgexpand.c.
9420 (n_occurrences): Move to cfgexpand.c.
9421 (expand_asm_loc): Move to cfgexpand.c
9422 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
9423 (expand_asm_operands): Move to cfgexpand.c.
9424 (expand_asm_stmt): Move to cfgexpand.c.
9425 (check_operand_nalternatives): Move to cfgexpand.c
9426 (expand_null_return): Move to cfgexpand.c.
9427 (expand_value_return): Move to cfgexpand.c.
9428 (expand_null_return_1): Move to cfgexpand.c.
9429 (expand_return): Move to cfgexpand.c.
9430 (expand_stack_save): Move to builtins.c.
9431 (expand_stack_restore): Move to builtins.c
9432 * symtab.c: Include output.h.
9433 (decl_assembler_name_hash): Move from tree.c.
9434 (decl_assembler_name_equal): Move from tree.c.
9435 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
9436 * tree-eh.c (in_array_bounds_p): Move from tree.c.
9437 (range_in_array_bounds_p): Move from tree.c.
9438 * tree-object-size.c (fini_object_sizes): Make static.
9439 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
9440 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
9441 * tree.c (decl_assembler_name_equal): Move to symtab.c.
9442 (tree_expr_size): Move to explow.c.
9443 (decl_assembler_name_hash): Move to symtab.c.
9444 (real_twop): Remove.
9445 (tree_expr_size): Move to explow.c.
9446 (stabilize_reference_1): Move earlier in the file. Make static.
9447 (omp_remove_redundant_declare_simd_attrs): Remove.
9448 (simple_cst_list_equal): Move earlier in the file. Make static.
9449 (size_low_cst): Move to fold-const.c.
9450 (build_type_no_quals): Remove.
9451 (build_function_type_skip_args): Move to cgraphclones.c.
9452 (build_function_decl_skip_args): Move to cgraphclones.c.
9453 (in_array_bounds_p): Move to tree-eh.c.
9454 (range_in_array_bounds_p): Move to tree-eh.c.
9455 (truth_type_for): Move to gimple-fold.c.
9456 (list_equal_p): Remove.
9457 * tree.h (decl_assembler_name_equal): Remove.
9458 (decl_assembler_name_hash): Remove.
9459 (truth_type_for): Remove.
9460 (build_type_no_quals): Remove.
9461 (build_function_decl_skip_args): Remove.
9462 (in_array_bounds_p): Remove.
9463 (range_in_array_bounds_p): Remove.
9464 (size_low_cst): Remove.
9465 (omp_remove_redundant_declare_simd_attrs): Remove.
9466 (tree_expr_size): Remove.
9467 (fields_length): Remove.
9468 (stabilize_reference_1): Remove.
9469 (expand_goto): Remove.
9470 (expand_stack_save): Remove.
9471 (expand_stack_restore): Remove.
9472 (expand_return): Remove.
9473 (fold_build3_initializer_loc): Remove.
9474 (tree_expr_nonzero_p): Remove.
9475 (tree_invalid_nonnegative_warnv_p): Remove.
9476 (tree_expr_nonzero_warnv_p): Remove.
9477 (fold_builtin_snprintf_chk): Remove.
9478 (validate_arglist): Remove.
9479 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
9480 (simple_cst_list_equal): Remove.
9481 (real_twop): Remove.
9482 (expand_main_function): Remove.
9483 (stack_protect_prologue): Remove.
9484 (print_vec_tree): Remove.
9485 (lookup_scoped_attribute_spec): Remove.
9486 (get_attribute_namespace): Remove.
9487 (expand_computed_goto): Remove.
9488 (expand_asm_stmt): Remove.
9489 (list_equal_p): Remove.
9490 (ssa_name_nonnegative_p): Remove.
9491 (fini_object_sizes): Remove.
9492 (addr_expr_of_non_mem_decl_p): Remove.
9493 (is_tm_safe_or_pure): Move to trans-mem.c.
9494 (more_const_call_expr_args_p): Remove.
9495 (save_vtable_map_decl): Remove.
9496
9497 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9498
9499 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
9500 linker plugins, too.
9501
9502 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
9503 link to libgomp and its dependencies.
9504 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9505 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9506 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9507 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
9508
9509 2013-11-07 Jakub Jelinek <jakub@redhat.com>
9510
9511 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
9512 (determine_value_range): Add loop argument. Use get_range_info to
9513 improve range.
9514 (bound_difference): Adjust caller.
9515
9516 2013-11-07 Richard Biener <rguenther@suse.de>
9517 Jakub Jelinek <jakub@redhat.com>
9518
9519 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
9520 latches from header PHI arguments from the latch edge.
9521
9522 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
9523
9524 PR c++/58176
9525 * varasm.c (output_constant): Handle NULLPTR_TYPE.
9526
9527 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9528
9529 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
9530 misaligned_prologue_used when it has been set.
9531
9532 2013-11-07 Yury Gribov <y.gribov@samsung.com>
9533 Jakub Jelinek <jakub@redhat.com>
9534
9535 PR sanitizer/59029
9536 * asan.c (get_mem_refs_of_builtin_call): Allow
9537 integer literals as addresses in instrumented builtins.
9538
9539 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9540
9541 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9542 Explain why plus_constant is not used.
9543
9544 2013-11-07 Richard Biener <rguenther@suse.de>
9545
9546 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
9547 (canonicalize_value): ... this. Also handle stripping of
9548 TREE_OVERFLOW.
9549 (get_value, set_lattice_value, get_value_for_expr): Adjust.
9550 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
9551 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9552
9553 2013-11-07 Richard Biener <rguenther@suse.de>
9554
9555 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
9556
9557 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
9558
9559 PR target/59034
9560 * config/i386/i386.md (push peepholer/splitter): Use Pmode
9561 with stack_pointer_rtx.
9562
9563 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9564
9565 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
9566 using operand_equal_p.
9567
9568 2013-11-07 Bin Cheng <bin.cheng@arm.com>
9569
9570 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
9571 * tree-affine.c (get_inner_reference_aff): Return base.
9572 * tree-affine.h (get_inner_reference_aff): Change prototype.
9573
9574 2013-11-06 Tobias Burnus <burnus@net-b.de>
9575
9576 * doc/invoke.texi (Wdate-time): Fix typo.
9577
9578 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9579
9580 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
9581 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
9582 fp_arith_reg_operand instead of arith_reg_operand.
9583
9584 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
9585
9586 * config/sh/sh.md (adddi3): Remove empty constraints.
9587 Remove can_create_pseudo_p and arith_reg_operand check.
9588 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
9589 Split before reload.
9590
9591 2013-11-06 Jeff Law <law@redhat.com>
9592 Tom Tromey <tromey@redhat.com>
9593
9594 * gdbinit.in: Disable strict type checking.
9595
9596 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
9597
9598 * tree-pass.h (make_pass_live_range_shrinkage): New external.
9599 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
9600 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
9601 (rest_of_handle_live_range_shrinkage): Ditto
9602 (class pass_live_range_shrinkage): Ditto.
9603 (pass_data_live_range_shrinkage): Ditto.
9604 (make_pass_live_range_shrinkage): Ditto.
9605 * sched-int.h (initialize_live_range_shrinkage): New prototype.
9606 (finish_live_range_shrinkage): Ditto.
9607 * sched-deps.c (create_insn_reg_set): Make void return value.
9608 * passes.def: Add pass_live_range_shrinkage.
9609 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
9610 * haifa-sched.c (live_range_shrinkage_p): New.
9611 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
9612 New functions.
9613 (rank_for_schedule): Add code for pressure relief through live
9614 range shrinkage.
9615 (schedule_insn): Print more debug info.
9616 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
9617 through live range shrinkage.
9618 * doc/invoke.texi (-flive-range-shrinkage): New.
9619 * common.opt (flive-range-shrinkage): New.
9620
9621 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
9622
9623 PR target/59021
9624 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
9625 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
9626 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
9627 RTXes that return in AVX256 register.
9628
9629 2013-11-06 Richard Biener <rguenther@suse.de>
9630
9631 PR tree-optimization/58653
9632 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
9633 (prepare_initializers_chain): Adjust.
9634
9635 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
9636
9637 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
9638 (gimple_in_transaction): Use bb_in_transaction.
9639 * basic-block.h (bb_in_transaction): Relocate here and rename.
9640 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
9641
9642 2013-11-06 Richard Biener <rguenther@suse.de>
9643
9644 * tree.c (drop_tree_overflow): New function.
9645 * tree.h (drop_tree_overflow): Declare.
9646 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
9647 * tree-vrp.c (range_int_cst_singleton_p): Use
9648 is_overflow_infinity instead of testing TREE_OVERFLOW.
9649 (extract_range_from_assert): Likewise.
9650 (zero_nonzero_bits_from_vr): Likewise.
9651 (extract_range_basic): Likewise.
9652 (register_new_assert_for): Use drop_tree_overflow.
9653 (vrp_visit_phi_node): Likewise.
9654
9655 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
9656
9657 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
9658 checking for leaf functions without dynamic stack allocation.
9659 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
9660 (ia64_expand_prologue): Likewise.
9661 * config/mips/mips.c (mips_expand_prologue): Likewise.
9662 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9663 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9664 (sparc_flat_expand_prologue): Likewise.
9665
9666 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
9667
9668 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
9669 (__ST3_LANE_FUNC): Likewise.
9670 (__ST4_LANE_FUNC): Likewise.
9671
9672 2013-11-06 Nick Clifton <nickc@redhat.com>
9673
9674 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
9675 name returned by msp430_mcu_name.
9676 (LIB_SPEC): If a -T option has not been specified then set a
9677 default, mcu-specific, linker script.
9678 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
9679 * config/msp430/msp430.c (msp430x_names): Likewise.
9680 Alpha sort the names for ease of comparison.
9681 (msp430_mcu_name): New function: Returns a string suitable for
9682 use as a C preprocessor symbol based upon the name of the MCU
9683 being targeted.
9684 (msp430_option_override): Accept msp430x and msp430xv2 as generic
9685 mcu names.
9686 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
9687
9688 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
9689 unless it is the last part of a spec substring.
9690 * doc/invoke.texi (Spec Files): Document space insertion
9691 behaviour of %*.
9692
9693 2013-11-06 Christian Bruel <christian.bruel@st.com>
9694
9695 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
9696 Factorize probabilities, Use adjust_address instead of
9697 adjust_automodify_address when possible. Enable for optimize.
9698 (sh_expand_strlen): New function.
9699 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
9700 * config/sh/sh.md (strlensi): New pattern.
9701 (UNSPEC_BUILTIN_STRLEN): Define.
9702
9703 2013-11-06 Jakub Jelinek <jakub@redhat.com>
9704
9705 PR middle-end/58970
9706 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
9707 (expand_assignment): If *bitpos is negative, set *offset
9708 and adjust *bitpos, so that it is not negative.
9709
9710 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9711
9712 * config/i386/bdver3.md : Added two additional decoder units
9713 to support issue rate of 4 and remodeled vector unit.
9714 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
9715 architectures is set to 4.
9716 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
9717 lookahead is set to 4 for BD architectures.
9718
9719 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9720
9721 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9722 Remove restriction against use of VSX instructions when generating
9723 code for little endian mode.
9724
9725 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9726
9727 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
9728 for both big and little endian.
9729 (mulv8hi3): Swap input operands for merge high and merge low
9730 instructions for little endian.
9731
9732 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9733
9734 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
9735 define_insn to define_expand that uses even patterns for big
9736 endian and odd patterns for little endian.
9737 (vec_widen_smult_even_v16qi): Likewise.
9738 (vec_widen_umult_even_v8hi): Likewise.
9739 (vec_widen_smult_even_v8hi): Likewise.
9740 (vec_widen_umult_odd_v16qi): Likewise.
9741 (vec_widen_smult_odd_v16qi): Likewise.
9742 (vec_widen_umult_odd_v8hi): Likewise.
9743 (vec_widen_smult_odd_v8hi): Likewise.
9744 (altivec_vmuleub): New define_insn.
9745 (altivec_vmuloub): Likewise.
9746 (altivec_vmulesb): Likewise.
9747 (altivec_vmulosb): Likewise.
9748 (altivec_vmuleuh): Likewise.
9749 (altivec_vmulouh): Likewise.
9750 (altivec_vmulesh): Likewise.
9751 (altivec_vmulosh): Likewise.
9752
9753 2013-11-05 Mike Stump <mikestump@comcast.net>
9754
9755 * Makefile.in (mostlyclean): Remove c-family objects.
9756
9757 2013-11-05 Ian Lance Taylor <iant@google.com>
9758
9759 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9760 If possible, add .cfi directives to record change to bx.
9761 * config/i386/i386.c (ix86_emit_cfi): New function.
9762 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9763
9764 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
9765
9766 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
9767 immediately after a label for a tablejump pattern.
9768
9769 * config/arm/arm.c (is_jump_table): Remove.
9770 (create_fix_barrier): Use tablejump_p instead.
9771 (arm_reorg): Likewise.
9772 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
9773 (thumb2_output_casesi): Likewise.
9774 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
9775 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
9776 casesi_shift_media, casesi_load_media): Likewise.
9777 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
9778 * config/microblaze/microblaze.md: Likewise.
9779
9780 2013-11-05 Tobias Burnus <burnus@net-b.de>
9781
9782 * doc/invoke.texi (-Wdate-time): Document.
9783
9784 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
9785
9786 * double-int.c (lshift_double, rshift_double): Remove
9787 SHIFT_COUNT_TRUNCATED handling.
9788
9789 2013-11-05 Jeff Law <law@redhat.com>
9790
9791 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
9792 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
9793 * gimple-ssa-isolate-paths.c: New file.
9794 * gimple.c (check_loadstore): New function.
9795 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
9796 Verify OP is in the argument list and the argument corresponding
9797 to OP is a pointer type. Use operand_equal_p rather than
9798 pointer equality when testing if OP is on the nonnull list.
9799 Use check_loadstore rather than count_ptr_derefs. Handle
9800 GIMPLE_RETURN statements.
9801 * tree-vrp.c (infer_nonnull_range): Remove.
9802 * gimple.h (infer_nonnull_range): Declare.
9803 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
9804 * passes.def: Add pass_isolate_erroneous_paths.
9805 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
9806 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
9807 * tree-ssa.c (struct count_ptr_d): Remove.
9808 (count_ptr_derefs, count_uses_and_derefs): Remove.
9809 * tree-ssa.h (count_uses_and_derefs): Remove.
9810
9811 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9812
9813 PR rtl-optimization/58997
9814 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
9815 get_iv_value to be in iv->mode rather than iv->extend_mode.
9816 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
9817 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
9818 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
9819 mode.
9820
9821 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9822
9823 * gimple.h: Move some prototypes to gimple-expr.h and add to include
9824 list.
9825 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
9826 Move to gimple-expr.h.
9827 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
9828 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
9829 is_gimple_id, virtual_operand_p, is_gimple_addressable,
9830 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
9831 Relocate here.
9832 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
9833 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
9834 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
9835 is_gimple_address, is_gimple_invariant_address,
9836 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9837 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
9838 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
9839 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
9840 gimple_decl_printable_name, useless_type_conversion_p,
9841 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
9842 gimple-expr.[ch].
9843 * gimple-expr.c: New File.
9844 (useless_type_conversion_p, gimple_set_body, gimple_body,
9845 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
9846 gimple_can_coalesce_p, extract_ops_from_tree_1,
9847 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
9848 is_gimple_address, is_gimple_invariant_address,
9849 is_gimple_ip_invariant_address, is_gimple_min_invariant,
9850 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
9851 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
9852 is_gimple_mem_ref_addr): Relocate here.
9853 * Makefile.in (OBJS): Add gimple-expr.o.
9854
9855 2013-11-05 David Malcolm <dmalcolm@redhat.com>
9856
9857 * gengtype-parse.c (struct_field_seq): Support empty structs.
9858
9859 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9860
9861 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
9862
9863 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
9864
9865 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
9866 for !TARGET_80387.
9867 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
9868 _SOFT_FLOAT here.
9869 (LONG_DOUBLE_TYPE_SIZE): New define.
9870 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
9871
9872 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
9873
9874 PR c++/58724
9875 * doc/extend.texi [visibility ("visibility_type")]: Add example
9876 about visibility attribute on namespace declaration.
9877
9878 2013-11-05 Richard Biener <rguenther@suse.de>
9879
9880 PR ipa/58492
9881 * passes.def (all_passes): Start with pass_fixup_cfg again.
9882
9883 2013-11-05 Richard Biener <rguenther@suse.de>
9884
9885 PR tree-optimization/58955
9886 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
9887 edge direction.
9888
9889 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9890
9891 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
9892 little endian.
9893 (vec_pack_ufix_trunc_v2df): Likewise.
9894
9895 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
9896
9897 PR middle-end/58981
9898 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
9899 pattern, instead of word_mode.
9900
9901 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
9902 Pmode for size.
9903 (set_storage_via_setmem): Likewise.
9904
9905 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
9906
9907 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
9908 gimple.h and the rest of the condition in eliminate_build.
9909 (eliminate_build): Call new routine.
9910 * gimple.h (phi_ssa_name_p): Delete.
9911
9912 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
9913
9914 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
9915 case of no prefix and reserving zero slots, because when that's the
9916 case we'll never get here.
9917 * vec.h (va_heap::reserve): Don't try and handle
9918 vec_prefix::calculate_allocation returning zero because that should
9919 never happen.
9920
9921 2013-11-05 Richard Biener <rguenther@suse.de>
9922
9923 PR middle-end/58941
9924 * tree-dfa.c (get_ref_base_and_extent): Merge common code
9925 in MEM_REF and TARGET_MEM_REF handling. Make sure to
9926 process trailing array detection before diving into the
9927 view-converted object (and possibly apply some extra offset).
9928
9929 2013-11-05 Joseph Myers <joseph@codesourcery.com>
9930
9931 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
9932 New function.
9933 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
9934
9935 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9936
9937 PR tree-optimization/58958
9938 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
9939 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9940
9941 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
9942
9943 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
9944 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
9945
9946 2013-11-05 Jakub Jelinek <jakub@redhat.com>
9947
9948 PR tree-optimization/58984
9949 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
9950 set *SIZE_P if non-NULL on success.
9951 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
9952 callers.
9953 (ipcp_transform_function): Likewise. Punt if size of access
9954 is different from TYPE_SIZE on v->value's type.
9955
9956 2013-11-05 Tobias Burnus <burnus@net-b.de>
9957
9958 * doc/invoke.texi (-fopenmp-simd): Document new option.
9959 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
9960 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
9961 * tree.c (attribute_value_equal): Ditto.
9962
9963 2013-11-04 Wei Mi <wmi@google.com>
9964
9965 * sched-rgn.c (add_branch_dependences): Keep insns in
9966 a SCHED_GROUP at the end of BB to remain their location.
9967
9968 2013-11-04 Wei Mi <wmi@google.com>
9969
9970 * config/i386/i386.c (memory_address_length): Extract a part
9971 of code to rip_relative_addr_p.
9972 (rip_relative_addr_p): New Function.
9973 (ix86_macro_fusion_p): Ditto.
9974 (ix86_macro_fusion_pair_p): Ditto.
9975 * config/i386/i386.h: Add new tune features about macro-fusion.
9976 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
9977 * doc/tm.texi: Generated.
9978 * doc/tm.texi.in: Ditto.
9979 * haifa-sched.c (try_group_insn): New Function.
9980 (group_insns_for_macro_fusion): Ditto.
9981 (sched_init): Call group_insns_for_macro_fusion.
9982 * target.def: Add two hooks: macro_fusion_p and
9983 macro_fusion_pair_p.
9984
9985 2013-11-04 Kostya Serebryany <kcc@google.com>
9986
9987 Update to match the changed asan API.
9988 * asan.c (asan_function_start): New function.
9989 (asan_emit_stack_protection): Update the string stored in the
9990 stack red zone to match new API. Store the PC of the current
9991 function in the red zone.
9992 (asan_global_struct): Update the __asan_global definition to match
9993 the new API.
9994 (asan_add_global): Ditto.
9995 * asan.h (asan_function_start): New prototype.
9996 * final.c (final_start_function): Call asan_function_start.
9997 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
9998 to __asan_init_v3.
9999
10000 2013-11-04 Wei Mi <wmi@google.com>
10001
10002 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
10003 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
10004 * config/i386/i386.c (ix86_option_override_internal): Ditto.
10005 (ix86_issue_rate): Ditto.
10006 (ix86_adjust_cost): Ditto.
10007 (ia32_multipass_dfa_lookahead): Ditto.
10008 (ix86_sched_init_global): Ditto.
10009 (get_builtin_code_for_version): Ditto.
10010 * config/i386/i386.h (enum target_cpu_default): Ditto.
10011 (enum processor_type): Ditto.
10012 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
10013
10014 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10015
10016 PR rtl-optimization/58967
10017 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
10018 !lra_in_progress for mode sizes bigger word.
10019
10020 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10021
10022 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
10023 arguments to merge instruction for little endian.
10024 (vec_widen_umult_lo_v16qi): Likewise.
10025 (vec_widen_smult_hi_v16qi): Likewise.
10026 (vec_widen_smult_lo_v16qi): Likewise.
10027 (vec_widen_umult_hi_v8hi): Likewise.
10028 (vec_widen_umult_lo_v8hi): Likewise.
10029 (vec_widen_smult_hi_v8hi): Likewise.
10030 (vec_widen_smult_lo_v8hi): Likewise.
10031
10032 2013-11-04 Ian Lance Taylor <iant@google.com>
10033
10034 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
10035 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
10036 builtins that take pointers.
10037 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
10038 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
10039 (run_gcc): Pass -fnon-call-exceptions.
10040
10041 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10042
10043 * optabs.c (expand_vec_perm): Revert one incorrect line from
10044 2013-10-31 change.
10045
10046 PR tree-optimization/58978
10047 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
10048 use_stmt by single_imm_use directly. Only call single_imm_use
10049 on SSA_NAMEs.
10050
10051 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
10052
10053 PR rtl-optimization/58968
10054 * lra-spills.c (return_regno_p): New function.
10055 (lra_final_code_change): Use it.
10056
10057 2013-11-04 Joseph Myers <joseph@codesourcery.com>
10058
10059 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
10060 * target.def (float_exceptions_rounding_supported_p): New hook.
10061 * targhooks.c (default_float_exceptions_rounding_supported_p): New
10062 function.
10063 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
10064 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
10065 New @hook.
10066 * doc/tm.texi: Regenerate.
10067 * config.gcc (powerpc*-*-linux*): Set extra_objs.
10068 * config/rs6000/rs6000-linux.c: New file.
10069 * config/rs6000/rs6000-protos.h
10070 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
10071 * config/rs6000/linux.h
10072 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
10073 * config/rs6000/linux64.h
10074 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
10075 * config/rs6000/t-linux (rs6000-linux.o): New rule.
10076 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
10077
10078 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10079
10080 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
10081 Replace the define_insn_and_split with a define_insn and two
10082 define_splits, with the split after reload re-permuting the source
10083 register to its original value.
10084 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
10085 (*vsx_le_perm_store_v8hi): Likewise.
10086 (*vsx_le_perm_store_v16qi): Likewise.
10087
10088 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10089
10090 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
10091 little endian.
10092
10093 2013-11-04 Jakub Jelinek <jakub@redhat.com>
10094
10095 PR tree-optimization/58946
10096 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
10097 bbs with bbinfo[idx].op != NULL before all blocks with
10098 bbinfo[idx].op == NULL.
10099
10100 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
10101
10102 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
10103 (avr_dump_double_int_hex): Likewise.
10104 (avr_log_vadump): Remove %D and %X handling.
10105 * config/avr/avr.c (avr_double_int_push_digit): Delete.
10106 (avr_map_op_t): Change map from double_int to unsigned int.
10107 (avr_map_op): Update accordingly.
10108 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
10109 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
10110 unsigned ints rather than double_ints.
10111
10112 2013-11-03 Marek Polacek <polacek@redhat.com>
10113
10114 Implement -fsanitize=vla-bound.
10115 * opts.c (common_handle_option): Handle vla-bound.
10116 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
10117 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
10118 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
10119
10120 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10121
10122 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
10123 little endian.
10124
10125 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
10126
10127 * config/i386/constraints.md (Ts, Tv): New address constrains.
10128 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
10129 constraint for address_no_seg_operand.
10130 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
10131 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
10132 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
10133 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
10134 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
10135 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
10136 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
10137 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
10138 constraint for vsib_address_operand.
10139
10140 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
10141
10142 * gcse.c (pre_delete): Remove references to regmove from comments.
10143 * recog.c: (validate_replace_rtx_1): Likewise.
10144 * config/rl78/rl78.c: Likewise.
10145 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
10146 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
10147 * common/config/mmix/mmix-common.c: Likewise.
10148
10149 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
10150
10151 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
10152 * gimplify.c (gimplify_compound_lval): Likewise.
10153 * graphite-clast-to-gimple.c (gloog): Likewise.
10154 * graphite-dependences.c (loop_is_parallel_p): Likewise.
10155 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
10156 (limit_scop); Likewise.
10157 (build_scops): Likewise.
10158 (dot_scop): Likewise.
10159 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
10160 (build_scop_drs): Likewise.
10161 (insert_stmts): Likewise.
10162 (insert_out_of_ssa_copy): Likewise.
10163 (remove_phi): Likewise.
10164 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
10165 * hw-doloop.c (discover_loop): Likewise.
10166 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
10167 * tree-dfa.c (dump_enumerated_decls): Likewise.
10168 * tree-if-conv.c (if_convertable_loop_p): Likewise.
10169 * tree-inline.c (tree_function_versioning): Likewise.
10170 * tree-loop-distribution.c (build_rdg): Likewise.
10171 (rdg_flag_vertex_and_dependent): Likewise.
10172 (distribute_loop): Likewise.
10173 * tree-parloops.c (loop_parallel_p): Likewise.
10174 (eliminate_local_variables): Likewise.
10175 (separate_decls_in_region): Likewise.
10176 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
10177 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
10178 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
10179 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
10180 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
10181 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10182 (vectorizable_condition): Likewise.
10183
10184 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
10185
10186 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
10187 * configure: Regenerate.
10188 * config/i386/i386.md (*movdi_internal): Change
10189 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
10190 (*movdf_internal): Ditto.
10191 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
10192 * config/i386/sse.md (vec_concatv2di): Output interunit movq
10193 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
10194
10195 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
10196
10197 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
10198 after comment.
10199
10200 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10201
10202 Automated part of renaming of symtab_node_base to symtab_node.
10203
10204 Patch autogenerated by rename_symtab.py from
10205 https://github.com/davidmalcolm/gcc-refactoring-scripts
10206 revision 58bb219cc090b2f4516a9297d868c245495ee622
10207 with ChangeLog entry fixed up by hand.
10208
10209 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
10210 symtab_node.
10211 (cgraph_node_for_asm): Likewise.
10212 * cgraph.h (symtab_node_base): Likewise.
10213 (cgraph_node): Likewise.
10214 (varpool_node): Likewise.
10215 (is_a_helper <cgraph_node>::test): Likewise.
10216 (is_a_helper <varpool_node>::test): Likewise.
10217 (symtab_nodes): Likewise.
10218 (symtab_register_node): Likewise.
10219 (symtab_unregister_node): Likewise.
10220 (symtab_remove_node): Likewise.
10221 (symtab_get_node): Likewise.
10222 (symtab_node_for_asm): Likewise.
10223 (symtab_node_asm_name): Likewise.
10224 (symtab_node_name): Likewise.
10225 (symtab_insert_node_to_hashtable): Likewise.
10226 (symtab_add_to_same_comdat_group): Likewise.
10227 (symtab_dissolve_same_comdat_group_list): Likewise.
10228 (dump_symtab_node): Likewise.
10229 (debug_symtab_node): Likewise.
10230 (dump_symtab_base): Likewise.
10231 (verify_symtab_node): Likewise.
10232 (verify_symtab_base): Likewise.
10233 (symtab_used_from_object_file_p): Likewise.
10234 (symtab_alias_ultimate_target): Likewise.
10235 (symtab_resolve_alias): Likewise.
10236 (fixup_same_cpp_alias_visibility): Likewise.
10237 (symtab_for_node_and_aliases): Likewise.
10238 (symtab_nonoverwritable_alias): Likewise.
10239 (availability symtab_node_availability): Likewise.
10240 (symtab_semantically_equivalent_p): Likewise.
10241 (fixup_same_cpp_alias_visibility): Likewise.
10242 (symtab_prevail_in_asm_name_hash): Likewise.
10243 (cgraph): Likewise.
10244 (varpool): Likewise.
10245 (varpool_first_variable): Likewise.
10246 (varpool_next_variable): Likewise.
10247 (varpool_first_static_initializer): Likewise.
10248 (varpool_next_static_initializer): Likewise.
10249 (varpool_first_defined_variable): Likewise.
10250 (varpool_next_defined_variable): Likewise.
10251 (cgraph_first_defined_function): Likewise.
10252 (cgraph_next_defined_function): Likewise.
10253 (cgraph_first_function): Likewise.
10254 (cgraph_next_function): Likewise.
10255 (cgraph_first_function_with_gimple_body): Likewise.
10256 (cgraph_next_function_with_gimple_body): Likewise.
10257 (symtab_alias_target): Likewise.
10258 (symtab_real_symbol_p): Likewise.
10259 (symtab_can_be_discarded): Likewise.
10260 * cgraphbuild.c (mark_address): Likewise.
10261 (mark_load): Likewise.
10262 (mark_store): Likewise.
10263 * cgraphunit.c (decide_is_symbol_needed): Likewise.
10264 (first): Likewise.
10265 (enqueue_node): Likewise.
10266 (referred_to_p): Likewise.
10267 (cgraph_process_same_body_aliases): Likewise.
10268 (analyze_functions): Likewise.
10269 (handle_alias_pairs): Likewise.
10270 (output_weakrefs): Likewise.
10271 (compile): Likewise.
10272 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
10273 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10274 * ipa-prop.c (remove_described_reference): Likewise.
10275 (try_decrement_rdesc_refcount): Likewise.
10276 (ipa_edge_duplication_hook): Likewise.
10277 * ipa-ref.c (ipa_record_reference): Likewise.
10278 (ipa_maybe_record_reference): Likewise.
10279 (ipa_clone_ref): Likewise.
10280 (ipa_clone_references): Likewise.
10281 (ipa_clone_referring): Likewise.
10282 (ipa_find_reference): Likewise.
10283 (ipa_remove_stmt_references): Likewise.
10284 (ipa_clear_stmts_in_references): Likewise.
10285 * ipa-ref.h (symtab_node_base): Likewise.
10286 (ipa_ref): Likewise.
10287 (ipa_record_reference): Likewise.
10288 (ipa_maybe_record_reference): Likewise.
10289 (ipa_clone_references): Likewise.
10290 (ipa_clone_referring): Likewise.
10291 (ipa_clone_ref): Likewise.
10292 (ipa_find_reference): Likewise.
10293 (ipa_remove_stmt_references): Likewise.
10294 (ipa_clear_stmts_in_references): Likewise.
10295 * ipa-reference.c (ipa_reference_write_optimization_summary):
10296 Likewise.
10297 * ipa.c (enqueue_node): Likewise.
10298 (process_references): Likewise.
10299 (walk_polymorphic_call_targets): Likewise.
10300 (symtab_remove_unreachable_nodes): Likewise.
10301 (address_taken_from_non_vtable_p): Likewise.
10302 (comdat_can_be_unshared_p_1): Likewise.
10303 (comdat_can_be_unshared_p): Likewise.
10304 (can_replace_by_local_alias): Likewise.
10305 (function_and_variable_visibility): Likewise.
10306 * is-a.h: Likewise (within example in comment).
10307 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
10308 (lto_symtab_encoder_encode): Likewise.
10309 (lto_symtab_encoder_delete_node): Likewise.
10310 (lto_symtab_encoder_in_partition_p): Likewise.
10311 (lto_set_symtab_encoder_in_partition): Likewise.
10312 (output_refs): Likewise.
10313 (compute_ltrans_boundary): Likewise.
10314 (output_symtab): Likewise.
10315 (input_node): Likewise.
10316 (input_ref): Likewise.
10317 (input_edge): Likewise.
10318 (input_cgraph_1): Likewise.
10319 (input_refs): Likewise.
10320 (output_cgraph_opt_summary): Likewise.
10321 (input_node_opt_summary): Likewise.
10322 (input_cgraph_opt_section): Likewise.
10323 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
10324 Likewise.
10325 * lto-streamer-out.c (lto_output): Likewise.
10326 (output_symbol_p): Likewise.
10327 (produce_symtab): Likewise.
10328 * lto-streamer.h (lto_encoder_entry): Likewise.
10329 (lto_free_function_in_decl_state_for_node): Likewise.
10330 (lto_symtab_encoder_encode): Likewise.
10331 (lto_symtab_encoder_delete_node): Likewise.
10332 (lto_symtab_encoder_in_partition_p): Likewise.
10333 (lto_set_symtab_encoder_in_partition): Likewise.
10334 (lto_symtab_encoder_lookup): Likewise.
10335 (lsei_node): Likewise.
10336 (lto_symtab_encoder_deref): Likewise.
10337 * symtab.c (symtab_hash): Likewise.
10338 (assembler_name_hash): Likewise.
10339 (symtab_nodes): Likewise.
10340 (hash_node): Likewise.
10341 (eq_node): Likewise.
10342 (hash_node_by_assembler_name): Likewise.
10343 (eq_assembler_name): Likewise.
10344 (insert_to_assembler_name_hash): Likewise.
10345 (unlink_from_assembler_name_hash): Likewise.
10346 (symtab_prevail_in_asm_name_hash): Likewise.
10347 (symtab_register_node): Likewise.
10348 (symtab_insert_node_to_hashtable): Likewise.
10349 (symtab_unregister_node): Likewise.
10350 (symtab_get_node): Likewise.
10351 (symtab_remove_node): Likewise.
10352 (symtab_initialize_asm_name_hash): Likewise.
10353 (symtab_node_for_asm): Likewise.
10354 (symtab_add_to_same_comdat_group): Likewise.
10355 (symtab_dissolve_same_comdat_group_list): Likewise.
10356 (symtab_node_asm_name): Likewise.
10357 (symtab_node_name): Likewise.
10358 (dump_symtab_base): Likewise.
10359 (dump_symtab_node): Likewise.
10360 (dump_symtab): Likewise.
10361 (debug_symtab_node): Likewise.
10362 (verify_symtab_base): Likewise.
10363 (verify_symtab_node): Likewise.
10364 (verify_symtab): Likewise.
10365 (symtab_used_from_object_file_p): Likewise.
10366 (symtab_node_availability): Likewise.
10367 (symtab_alias_ultimate_target): Likewise.
10368 (fixup_same_cpp_alias_visibility): Likewise.
10369 (symtab_resolve_alias): Likewise.
10370 (symtab_for_node_and_aliases): Likewise.
10371 (symtab_for_node_and_aliases): Likewise.
10372 (symtab_nonoverwritable_alias_1): Likewise.
10373 (symtab_nonoverwritable_alias): Likewise.
10374 (symtab_semantically_equivalent_p): Likewise.
10375 * value-prof.c (init_node_map): Likewise.
10376 * varasm.c (find_decl): Likewise.
10377 * varpool.c (varpool_node_for_asm): Likewise.
10378 (varpool_remove_unreferenced_decls): Likewise.
10379
10380 2013-10-31 David Malcolm <dmalcolm@redhat.com>
10381
10382 Manual part of renaming of symtab_node_base to symtab_node.
10383
10384 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
10385 clashes with the preferred name for the base class.
10386 (const_symtab_node): Remove redundant typedef.
10387
10388 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10389
10390 * optabs.c (expand_vec_perm): Avoid vector mode punning
10391 SUBREGs in SET_DEST.
10392 * expmed.c (store_bit_field_1): Likewise.
10393 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
10394 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
10395 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
10396 * config/i386/i386.c (ix86_expand_vector_move_misalign,
10397 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
10398 ix86_expand_sse_unpack, ix86_expand_args_builtin,
10399 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
10400 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
10401 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
10402 expand_vec_perm_vpshufb2_vpermq,
10403 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
10404 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
10405 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
10406 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
10407 than *d itself.
10408
10409 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
10410
10411 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
10412 Use gcc_unreachable for unhandled modes. Do not check results of
10413 expand_simple_binop. If not expanded to target, move the result.
10414
10415 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
10416 Shiva Chen <shiva0217@gmail.com>
10417
10418 * config.gcc (nds32*-*-*): Add nds32 target.
10419 * config/nds32/nds32.c: New file.
10420 * config/nds32/nds32.h: New file.
10421 * config/nds32/nds32.md: New file.
10422 * config/nds32/constants.md: New file.
10423 * config/nds32/constraints.md: New file.
10424 * config/nds32/iterators.md: New file.
10425 * config/nds32/nds32-doubleword.md: New file.
10426 * config/nds32/nds32-intrinsic.md: New file.
10427 * config/nds32/nds32_intrinsic.h: New file.
10428 * config/nds32/nds32-modes.def: New file.
10429 * config/nds32/nds32-multiple.md: New file.
10430 * config/nds32/nds32.opt: New file.
10431 * config/nds32/nds32-opts.h: New file.
10432 * config/nds32/nds32-protos.h: New file.
10433 * config/nds32/nds32-peephole2.md: New file.
10434 * config/nds32/pipelines.md: New file.
10435 * config/nds32/predicates.md: New file.
10436 * config/nds32/t-mlibs: New file.
10437 * common/config/nds32: New directory and files.
10438
10439 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
10440 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
10441 * doc/install.texi (Cross-Compiler-Specific Options): Document
10442 --with-nds32-lib for nds32 target.
10443 * doc/extend.texi (Function Attributes, Target Builtins): Document
10444 nds32 specific attributes.
10445
10446 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
10447
10448 * lra-constraints (process_alt_operands): Use the result
10449 elimination register for operand when matching constraints.
10450
10451 2013-10-31 Jakub Jelinek <jakub@redhat.com>
10452
10453 * tree-vrp.c (maybe_set_nonzero_bits): New function.
10454 (remove_range_assertions): Call it.
10455
10456 * tree.c (tree_ctz): New function.
10457 * tree.h (tree_ctz): New prototype.
10458 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
10459 first argument from tree to const_tree.
10460 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
10461 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
10462 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
10463 static.
10464 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
10465 * tree-vect-loop.c (vect_analyze_loop_operations,
10466 vect_transform_loop): Don't force scalar loop for bound just because
10467 number of iterations is unknown, only do it if it is not known to be
10468 a multiple of vectorization_factor.
10469 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
10470
10471 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
10472 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
10473 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
10474 (set_nonzero_bits, get_nonzero_bits): New prototypes.
10475 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
10476 a default def isn't partially constant.
10477 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
10478 is known to be partially zero.
10479 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
10480 to see if a default def isn't partially constant.
10481 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
10482 creation of a range, if VR_RANGE, try to improve nonzero_bits from
10483 the range.
10484 (set_nonzero_bits, get_nonzero_bits): New functions.
10485
10486 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
10487 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
10488 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
10489 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
10490 uses but in the condition and ASSERT_EXPR and the other successor of
10491 the predecessor bb is __builtin_unreachable (), set_range_info of the
10492 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
10493
10494 2013-10-31 Martin Jambor <mjambor@suse.cz>
10495
10496 PR rtl-optimization/58934
10497 Revert:
10498 2013-10-30 Martin Jambor <mjambor@suse.cz>
10499 PR rtl-optimization/10474
10500 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10501 nor df analysis.
10502 (interesting_dest_for_shprep): New function.
10503 (split_live_ranges_for_shrink_wrap): Likewise.
10504 (ira): Calculate dominance info and df analysis. Call
10505 split_live_ranges_for_shrink_wrap.
10506
10507 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10508 Yury Gribov <y.gribov@samsung.com>
10509
10510 PR sanitizer/58543
10511 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
10512 shadow pointer to avoid clobbering the main one.
10513
10514 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10515
10516 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
10517
10518 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10519
10520 PR bootstrap/58933
10521 * ira-color.c (update_costs_from_copies): Add new parameter. Use
10522 it for calling update_costs_from_allocno.
10523 (assign_hard_reg): Call restore_costs_from_copies only for
10524 !retry_p. Pass new argument to update_costs_from_copies.
10525 (color_pass): Pass new argument to update_costs_from_copies.
10526 (ira_mark_allocation_change): Ditto.
10527
10528 2013-10-30 Sharad Singhai <singhai@google.com>
10529
10530 PR middle-end/58134
10531 * opts.c (common_handle_option): Remove deprecated option
10532 -ftree-vectorizer-verbose.
10533 * doc/invoke.texi (Debugging Options): Ditto.
10534 * opts-global.c (handle_common_deferred_options): Ditto.
10535 (dump_remap_tree_vectorizer_verbose): Delete.
10536 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
10537
10538 2013-10-30 DJ Delorie <dj@redhat.com>
10539
10540 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
10541 that take no arguments.
10542
10543 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
10544
10545 PR other/58545
10546 * reload1.c (update_eliminables_and_spill): New function, broken
10547 out of reload.
10548 (reload): Use it. Check for frame size change after frame size
10549 alignment, and call update_eliminables_and_spill first if continue-ing.
10550
10551 2013-10-30 Cong Hou <congh@google.com>
10552
10553 PR target/58762
10554 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
10555 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
10556 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
10557
10558 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
10559
10560 PR rtl-optimization/58369
10561 * reload1.c (compute_reload_subreg_offset): New function.
10562 (choose_reload_regs): Use it to pass endian-correct
10563 offset to subreg_regno_offset.
10564
10565 2013-10-30 Tobias Burnus <burnus@net-b.de>
10566
10567 PR other/33426
10568 * tree-cfg.c (replace_loop_annotate): Replace warning by
10569 warning_at.
10570
10571 2013-10-30 Jason Merrill <jason@redhat.com>
10572
10573 * configure.ac (loose_warn): Add -Wno-format if
10574 --disable-build-format-warnings.
10575
10576 2013-10-30 David Malcolm <dmalcolm@redhat.com>
10577
10578 * cgraphunit.c (analyze_functions): Split symtab_node declarations
10579 onto multiple lines to make things easier for rename_symtab.py.
10580
10581 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
10582 (symtab_semantically_equivalent_p): Likewise.
10583
10584 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10585
10586 PR target/58784
10587 * lra.c (check_rtl): Remove address check before LRA work.
10588
10589 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
10590
10591 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
10592 POINTER_PLUS_EXPR in the defining statement.
10593
10594 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
10595
10596 * regmove.c: Remove.
10597 * tree-pass.h (make_pass_regmove): Remove.
10598 * timevar.def (TV_REGMOVE): Remove.
10599 * passes.def (pass_regmove): Remove.
10600 * opts.c (default_options_table): Remove entry for regmove.
10601 * doc/passes.texi: Remove regmove pass description.
10602 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
10603 options.
10604 (-fdump-rtl-regmove): Ditto.
10605 * common.opt (foptimize-register-move, fregmove): Ignore.
10606 * Makefile.in (OBJS): Remove regmove.o.
10607 * regmove.c: Remove.
10608 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
10609 and type.
10610 (struct ira_allocno) New member allocno_prefs.
10611 (ALLOCNO_PREFS): New macro.
10612 (ira_prefs, ira_prefs_num): New external vars.
10613 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
10614 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
10615 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
10616 Ditto.
10617 (ira_add_allocno_copy_to_list): Remove prototype.
10618 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
10619 (ira_pref_iterator): New type.
10620 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
10621 (FOR_EACH_PREF): New macro.
10622 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
10623 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
10624 code.
10625 (ira_setup_alts): New function.
10626 (decrease_live_ranges_number): New function.
10627 (ira): Call the above function.
10628 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
10629 (ira_create_allocno): Initialize allocno prefs.
10630 (pref_pool, pref_vec): New static vars.
10631 (initiate_prefs, find_allocno_pref, ira_create_pref): New
10632 functions.
10633 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
10634 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
10635 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
10636 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
10637 (ira_add_allocno_copy_to_list): Make static. Rename to
10638 add_allocno_copy_to_list.
10639 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
10640 swap_allocno_copy_ends_if_necessary.
10641 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
10642 ira_remove_allocno_prefs.
10643 (ira_flattening): Ditto.
10644 (ira_build): Call initiate_prefs, print_prefs.
10645 (ira_destroy): Call finish_prefs.
10646 * ira-color.c (struct update_cost_record): New.
10647 (struct allocno_color_data): Add new member update_cost_records.
10648 (update_cost_record_pool): New static var.
10649 (init_update_cost_records, get_update_cost_record): New functions.
10650 (free_update_cost_record_list, finish_update_cost_records): Ditto.
10651 (struct update_cost_queue_elem): Add member from.
10652 (initiate_cost_update): Call init_update_cost_records.
10653 (finish_cost_update): Call finish_update_cost_records.
10654 (queue_update_cost, get_next_update_cost): Add new param from.
10655 (Update_allocno_cost, update_costs_from_allocno): New functions.
10656 (update_costs_from_prefs): Ditto.
10657 (update_copy_costs): Rename to update_costs_from_copies.
10658 (restore_costs_from_copies): New function.
10659 (update_conflict_hard_regno_costs): Don't go back.
10660 (assign_hard_reg): Call restore_costs_from_copies. Add printing
10661 more debug info.
10662 (pop_allocnos): Add priniting more debug info.
10663 (color_allocnos): Remove prefs for conflicting hard regs.
10664 Call update_costs_from_prefs.
10665 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
10666 (get_dup_num): Rename, modify, and move to ira.c
10667 (process_regs_for_copy): Add prefs.
10668 (add_insn_allocno_copies): Put src as first arg of
10669 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
10670 * ira-costs.c (record_reg_classes): Modify and move code into
10671 record_operands_costs.
10672 (find_costs_and_classes): Create prefs for the hard reg of small
10673 reg class.
10674 (process_bb_node_for_hard_reg_moves): Add prefs.
10675
10676 2013-10-30 Richard Biener <rguenther@suse.de>
10677
10678 PR middle-end/57100
10679 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
10680 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
10681 as worker for ...
10682 (pre_and_rev_post_order_compute): ... which now wraps it.
10683 * graph.c (draw_cfg_nodes_no_loops): Use
10684 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
10685 on cfun.
10686
10687 2013-10-30 Christian Bruel <christian.bruel@st.com>
10688
10689 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
10690 (sh_expand_cmpstr): Handle known align and schedule improvements.
10691 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
10692 * config/sh/sh.md (cmpstrnsi): New pattern.
10693
10694 2013-10-30 Martin Jambor <mjambor@suse.cz>
10695
10696 PR rtl-optimization/10474
10697 * ira.c (find_moveable_pseudos): Do not calculate dominance info
10698 nor df analysis.
10699 (interesting_dest_for_shprep): New function.
10700 (split_live_ranges_for_shrink_wrap): Likewise.
10701 (ira): Calculate dominance info and df analysis. Call
10702 split_live_ranges_for_shrink_wrap.
10703
10704 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10705
10706 PR target/58854
10707 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
10708
10709 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10710
10711 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
10712 * tree.h (POINTER_BOUNDS_P): New.
10713 (BOUNDED_TYPE_P): New.
10714 (BOUNDED_P): New.
10715 (pointer_bounds_type_node): New.
10716 * tree.c (build_common_tree_nodes): Initialize
10717 pointer_bounds_type_node.
10718 * gimple.h (gimple_call_get_nobnd_arg_index): New.
10719 (gimple_call_num_nobnd_args): New.
10720 (gimple_call_nobnd_arg): New.
10721 (gimple_return_retbnd): New.
10722 (gimple_return_set_retbnd): New
10723 * gimple.c (gimple_build_return): Increase number of ops
10724 for return statement.
10725 (gimple_call_get_nobnd_arg_index): New.
10726 * gimple-pretty-print.c (dump_gimple_return): Print second op.
10727
10728 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10729
10730 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
10731 with "chkp ctor" and "bnd_legacy" attributes.
10732 * gimplify.c (gimplify_init_constructor): Avoid infinite
10733 loop during gimplification of bounds initializer.
10734
10735 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10736
10737 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
10738 (handle_bnd_legacy): New.
10739 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
10740 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
10741 attributes.
10742
10743 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
10744
10745 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
10746 (BT_FN_PTR_CONST_PTR): New.
10747 (BT_FN_CONST_PTR_CONST_PTR): New.
10748 (BT_FN_PTR_CONST_PTR_SIZE): New.
10749 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
10750 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
10751 (BT_FN_VOID_CONST_PTR_SIZE): New.
10752 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
10753 * chkp-builtins.def: New.
10754 * builtins.def: include chkp-builtins.def.
10755 (DEF_CHKP_BUILTIN): New.
10756 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
10757 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
10758 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
10759 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
10760 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
10761 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
10762 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
10763 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
10764 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
10765 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
10766 * common.opt (fcheck-pointer-bounds): New.
10767 * toplev.c (process_options): Check Pointer Bounds Checker is
10768 supported.
10769 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
10770
10771 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
10772
10773 * target.def (builtin_chkp_function): New.
10774 (chkp_bound_type): New.
10775 (chkp_bound_mode): New.
10776 (fn_abi_va_list_bounds_size): New.
10777 (load_bounds_for_arg): New.
10778 (store_bounds_for_arg): New.
10779 * targhooks.h (default_load_bounds_for_arg): New.
10780 (default_store_bounds_for_arg): New.
10781 (default_fn_abi_va_list_bounds_size): New.
10782 (default_chkp_bound_type): New.
10783 (default_chkp_bound_mode): New.
10784 (default_builtin_chkp_function): New.
10785 * targhooks.c (default_load_bounds_for_arg): New.
10786 (default_store_bounds_for_arg): New.
10787 (default_fn_abi_va_list_bounds_size): New.
10788 (default_chkp_bound_type): New.
10789 (default_chkp_bound_mode); New.
10790 (default_builtin_chkp_function): New.
10791 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
10792 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
10793 (TARGET_STORE_BOUNDS_FOR_ARG): New.
10794 (TARGET_BUILTIN_CHKP_FUNCTION): New.
10795 (TARGET_CHKP_BOUND_TYPE): New.
10796 (TARGET_CHKP_BOUND_MODE): New.
10797 * doc/tm.texi: Regenerated.
10798 * langhooks.h (lang_hooks): Add chkp_supported field.
10799 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
10800 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
10801
10802 2013-10-29 Andrew Pinski <apinski@cavium.com>
10803
10804 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
10805 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
10806 fails, combining the branches anyways.
10807 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
10808 increases the number of combinings.
10809 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
10810
10811 2013-10-29 Mike Stump <mikestump@comcast.net>
10812
10813 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
10814 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
10815 (make_vector_mode): Increase namebuf to 16.
10816 (emit_insn_modes_h): When processing BImode, don't
10817 also match partial int modes.
10818 (emit_class_narrowest_mode): Likewise.
10819
10820 * config/bfin/bfin-modes.def: Add precision to PDI.
10821 * config/m32c/m32c-modes.def: Add precision to PSI.
10822 * config/msp430/msp430-modes.def: Add precision to PSI.
10823 * config/rs6000/rs6000-modes.def: Add precision to PTI.
10824 * config/sh/sh-modes.def: Add precision to PSI and PDI.
10825
10826 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
10827
10828 PR target/54236
10829 * config/sh/sh.md (*addc): Rename existing variations to ...
10830 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
10831 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
10832 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
10833 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
10834
10835 2013-10-29 Teresa Johnson <tejohnson@google.com>
10836
10837 PR ipa/58862
10838 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
10839 insanities when updating probabilities.
10840
10841 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10842
10843 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
10844 prettyprinter for cgraph_node to reflect the conversion of the
10845 symtable types to a C++ class hierarchy: it now *is* a
10846 symtab_node_base, rather than having one (named "symbol").
10847
10848 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
10849
10850 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
10851 __cilkrts_pop_frame. If matched, then return true for built-in
10852 function name.
10853 (expand_builtin): Added BUILT_IN_CILK_DETACH and
10854 BUILT_IN_CILK_POP_FRAME case.
10855 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
10856 (lhs_cilk_detect_spawn): Likewise.
10857 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
10858 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
10859 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
10860 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
10861 (LANG_HOOKS_CILKPLUS): Likewise.
10862 * tree.h (CILK_SPAWN_FN): Likewise.
10863 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
10864 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
10865 (OBJS): Added cilk-common.o.
10866 (BUILTINS_DEF): Added cilk-builtins.def.
10867 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
10868 (lhd_cilk_detect_spawn): Likewise.
10869 * langhooks.h (lang_hooks_for_cilkplus): New struct.
10870 (struct lang_hooks): Added new field called "cilkplus."
10871 * cilk-common.c: New file.
10872 * cilk.h: Likewise.
10873 * cilk-builtins.def: Likewise.
10874 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
10875 "__cilk" macro and set it to 200.
10876 * function.h (struct function::cilk_frame_decl): New field.
10877 (struct function::is_cilk_function): Likewise.
10878 (struct function::calls_cilk_spawn): Likewise.
10879 * gimplify.c (gimplify_call_expr): Added a check if the function call
10880 being gimplified is a spawn detach point. If so, then add pop_frame
10881 and detach function calls.
10882 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
10883 for gimplifying _Cilk_spawn and _Cilk_sync statements.
10884 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
10885 function. If so, added a _Cilk_sync and gimplified it.
10886 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
10887 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
10888 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
10889 spawner function.
10890 (can_inline_edge_p): Prevent inling of spawnee function.
10891 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
10892 for functions that use Cilk keywords.
10893 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
10894 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
10895 CILK_SYNC_STMT cases.
10896 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
10897 trees.
10898 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
10899 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
10900 * passes.texi (Cilk Keywords): New section that describes the compiler
10901 code changes for handling Cilk Keywords.
10902
10903 2013-10-29 David Malcolm <dmalcolm@redhat.com>
10904
10905 Patch autogenerated by refactor_symtab.py from
10906 https://github.com/davidmalcolm/gcc-refactoring-scripts
10907 revision 58bb219cc090b2f4516a9297d868c245495ee622
10908
10909 * asan.c (asan_finish_file): Update for conversion of symtab types to
10910 a true class hierarchy.
10911 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10912 * cgraph.c (cgraph_get_body): Likewise.
10913 (cgraph_get_create_real_symbol_node): Likewise.
10914 (verify_cgraph_node): Likewise.
10915 (verify_edge_corresponds_to_fndecl): Likewise.
10916 (verify_edge_count_and_frequency): Likewise.
10917 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
10918 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
10919 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
10920 (cgraph_node_cannot_return): Likewise.
10921 (cgraph_set_pure_flag_1): Likewise.
10922 (cgraph_set_const_flag_1): Likewise.
10923 (cgraph_set_nothrow_flag_1): Likewise.
10924 (cgraph_make_node_local_1): Likewise.
10925 (cgraph_for_node_and_aliases): Likewise.
10926 (cgraph_for_node_thunks_and_aliases): Likewise.
10927 (cgraph_node_can_be_local_p): Likewise.
10928 (cgraph_node_cannot_be_local_p_1): Likewise.
10929 (cgraph_function_body_availability): Likewise.
10930 (dump_cgraph_node): Likewise.
10931 (cgraph_rtl_info): Likewise.
10932 (cgraph_mark_address_taken_node): Likewise.
10933 (cgraph_remove_node): Likewise.
10934 (cgraph_release_function_body): Likewise.
10935 (cgraph_update_edges_for_call_stmt_node): Likewise.
10936 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10937 (cgraph_make_edge_direct): Likewise.
10938 (cgraph_resolve_speculation): Likewise.
10939 (cgraph_speculative_call_info): Likewise.
10940 (cgraph_turn_edge_to_speculative): Likewise.
10941 (cgraph_create_edge_1): Likewise.
10942 (cgraph_set_call_stmt): Likewise.
10943 (cgraph_node_for_asm): Likewise.
10944 (cgraph_add_thunk): Likewise.
10945 (cgraph_same_body_alias): Likewise.
10946 (cgraph_create_function_alias): Likewise.
10947 (cgraph_create_node): Likewise.
10948 (cgraph_create_empty_node): Likewise.
10949 (record_function_versions): Likewise.
10950 (used_from_object_file_p): Likewise.
10951 * cgraph.h (symtab_can_be_discarded): Likewise.
10952 (symtab_real_symbol_p): Likewise.
10953 (cgraph_mark_force_output_node): Likewise.
10954 (cgraph_edge_recursive_p): Likewise.
10955 (symtab_alias_target): Likewise.
10956 (varpool_all_refs_explicit_p): Likewise.
10957 (varpool_can_remove_if_no_refs): Likewise.
10958 (cgraph_only_called_directly_or_aliased_p): Likewise.
10959 (cgraph_next_function_with_gimple_body): Likewise.
10960 (cgraph_first_function_with_gimple_body): Likewise.
10961 (cgraph_function_with_gimple_body_p): Likewise.
10962 (cgraph_next_function): Likewise.
10963 (cgraph_first_function): Likewise.
10964 (cgraph_next_defined_function): Likewise.
10965 (cgraph_first_defined_function): Likewise.
10966 (varpool_next_defined_variable): Likewise.
10967 (varpool_first_defined_variable): Likewise.
10968 (varpool_next_static_initializer): Likewise.
10969 (varpool_first_static_initializer): Likewise.
10970 (varpool_next_variable): Likewise.
10971 (varpool_first_variable): Likewise.
10972 (varpool_node_name): Likewise.
10973 (varpool): Likewise.
10974 (cgraph): Likewise.
10975 (is_a_helper <varpool_node>::test): Likewise.
10976 (is_a_helper <cgraph_node>::test): Likewise.
10977 (varpool_variable_node): Likewise.
10978 (cgraph_function_or_thunk_node): Likewise.
10979 (varpool_alias_target): Likewise.
10980 (cgraph_alias_target): Likewise.
10981 (cgraph_node_name): Likewise.
10982 (varpool_node_asm_name): Likewise.
10983 (cgraph_node_asm_name): Likewise.
10984 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
10985 (cgraph_rebuild_references): Likewise.
10986 (rebuild_cgraph_edges): Likewise.
10987 (record_eh_tables): Likewise.
10988 (build_cgraph_edges): Likewise.
10989 (mark_store): Likewise.
10990 (mark_load): Likewise.
10991 (mark_address): Likewise.
10992 (record_type_list): Likewise.
10993 (record_reference): Likewise.
10994 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
10995 (cgraph_materialize_clone): Likewise.
10996 (cgraph_function_versioning): Likewise.
10997 (cgraph_copy_node_for_versioning): Likewise.
10998 (update_call_expr): Likewise.
10999 (cgraph_find_replacement_node): Likewise.
11000 (cgraph_create_virtual_clone): Likewise.
11001 (cgraph_clone_node): Likewise.
11002 * cgraphunit.c (compile): Likewise.
11003 (output_weakrefs): Likewise.
11004 (output_in_order): Likewise.
11005 (expand_function): Likewise.
11006 (assemble_thunks_and_aliases): Likewise.
11007 (expand_thunk): Likewise.
11008 (mark_functions_to_output): Likewise.
11009 (handle_alias_pairs): Likewise.
11010 (analyze_functions): Likewise.
11011 (walk_polymorphic_call_targets): Likewise.
11012 (varpool_finalize_decl): Likewise.
11013 (process_function_and_variable_attributes): Likewise.
11014 (cgraph_process_same_body_aliases): Likewise.
11015 (analyze_function): Likewise.
11016 (cgraph_add_new_function): Likewise.
11017 (cgraph_finalize_function): Likewise.
11018 (referred_to_p): Likewise.
11019 (cgraph_reset_node): Likewise.
11020 (cgraph_process_new_functions): Likewise.
11021 (enqueue_node): Likewise.
11022 (decide_is_symbol_needed): Likewise.
11023 * coverage.c (coverage_compute_profile_id): Likewise.
11024 * dbxout.c (dbxout_expand_expr): Likewise.
11025 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
11026 (reference_to_unused): Likewise.
11027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
11028 * gimplify.c (unvisit_body): Likewise.
11029 (unshare_body): Likewise.
11030 * ipa-cp.c (ipcp_generate_summary): Likewise.
11031 (ipcp_decision_stage): Likewise.
11032 (identify_dead_nodes): Likewise.
11033 (decide_whether_version_node): Likewise.
11034 (decide_about_value): Likewise.
11035 (perhaps_add_new_callers): Likewise.
11036 (create_specialized_node): Likewise.
11037 (update_profiling_info): Likewise.
11038 (ipcp_propagate_stage): Likewise.
11039 (estimate_local_effects): Likewise.
11040 (good_cloning_opportunity_p): Likewise.
11041 (devirtualization_time_bonus): Likewise.
11042 (propagate_constants_accross_call): Likewise.
11043 (initialize_node_lattices): Likewise.
11044 (ipcp_cloning_candidate_p): Likewise.
11045 (determine_versionability): Likewise.
11046 (print_all_lattices): Likewise.
11047 (print_lattice): Likewise.
11048 (ipcp_discover_new_direct_edges): Likewise.
11049 * ipa-devirt.c (ipa_devirt): Likewise.
11050 (likely_target_p): Likewise.
11051 (update_type_inheritance_graph): Likewise.
11052 (possible_polymorphic_call_target_p): Likewise.
11053 (dump_possible_polymorphic_call_targets): Likewise.
11054 (devirt_variable_node_removal_hook): Likewise.
11055 (record_binfo): Likewise.
11056 (maybe_record_node): Likewise.
11057 (build_type_inheritance_graph): Likewise.
11058 * ipa-inline-analysis.c (inline_write_summary): Likewise.
11059 (inline_generate_summary): Likewise.
11060 (inline_analyze_function): Likewise.
11061 (do_estimate_growth): Likewise.
11062 (simple_edge_hints): Likewise.
11063 (estimate_node_size_and_time): Likewise.
11064 (estimate_edge_devirt_benefit): Likewise.
11065 (compute_inline_parameters): Likewise.
11066 (estimate_function_body_sizes): Likewise.
11067 (compute_bb_predicates): Likewise.
11068 (initialize_inline_failed): Likewise.
11069 (dump_inline_summary): Likewise.
11070 (dump_inline_edge_summary): Likewise.
11071 * ipa-inline-transform.c (inline_transform): Likewise.
11072 (preserve_function_body_p): Likewise.
11073 (save_inline_function_body): Likewise.
11074 (inline_call): Likewise.
11075 (clone_inlined_nodes): Likewise.
11076 (can_remove_node_now_p): Likewise.
11077 (can_remove_node_now_p_1): Likewise.
11078 * ipa-inline.c (early_inliner): Likewise.
11079 (early_inline_small_functions): Likewise.
11080 (inline_always_inline_functions): Likewise.
11081 (ipa_inline): Likewise.
11082 (flatten_function): Likewise.
11083 (inline_small_functions): Likewise.
11084 (speculation_useful_p): Likewise.
11085 (recursive_inlining): Likewise.
11086 (update_caller_keys): Likewise.
11087 (reset_edge_caches): Likewise.
11088 (update_edge_key): Likewise.
11089 (edge_badness): Likewise.
11090 (relative_time_benefit): Likewise.
11091 (want_inline_self_recursive_call_p): Likewise.
11092 (want_inline_small_function_p): Likewise.
11093 (want_early_inline_function_p): Likewise.
11094 (num_calls): Likewise.
11095 (can_early_inline_edge_p): Likewise.
11096 (can_inline_edge_p): Likewise.
11097 (report_inline_failed_reason): Likewise.
11098 * ipa-profile.c (ipa_profile): Likewise.
11099 (ipa_propagate_frequency): Likewise.
11100 (ipa_propagate_frequency_1): Likewise.
11101 (ipa_profile_generate_summary): Likewise.
11102 * ipa-prop.c (ipcp_transform_function): Likewise.
11103 (read_replacements_section): Likewise.
11104 (ipa_prop_read_section): Likewise.
11105 (ipa_modify_call_arguments): Likewise.
11106 (ipa_print_node_params): Likewise.
11107 (propagate_controlled_uses): Likewise.
11108 (update_indirect_edges_after_inlining): Likewise.
11109 (remove_described_reference): Likewise.
11110 (ipa_make_edge_direct_to_target): Likewise.
11111 (ipa_analyze_node): Likewise.
11112 (ipa_analyze_params_uses): Likewise.
11113 (ipa_compute_jump_functions): Likewise.
11114 (ipa_get_callee_param_type): Likewise.
11115 (ipa_print_node_jump_functions): Likewise.
11116 (ipa_initialize_node_params): Likewise.
11117 (ipa_populate_param_decls): Likewise.
11118 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
11119 (write_agg_replacement_chain): Likewise.
11120 (ipa_write_node_info): Likewise.
11121 (ipa_edge_duplication_hook): Likewise.
11122 (try_decrement_rdesc_refcount): Likewise.
11123 * ipa-pure-const.c (propagate_nothrow): Likewise.
11124 (propagate_pure_const): Likewise.
11125 (pure_const_read_summary): Likewise.
11126 (pure_const_write_summary): Likewise.
11127 (analyze_function): Likewise.
11128 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
11129 (ipa_ref_referring_ref_list): Likewise.
11130 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
11131 (ipa_remove_stmt_references): Likewise.
11132 (ipa_find_reference): Likewise.
11133 (ipa_dump_referring): Likewise.
11134 (ipa_dump_references): Likewise.
11135 (ipa_record_reference): Likewise.
11136 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
11137 (ipa_reference_write_optimization_summary): Likewise.
11138 (write_node_summary_p): Likewise.
11139 (propagate): Likewise.
11140 (read_write_all_from_decl): Likewise.
11141 (generate_summary): Likewise.
11142 (analyze_function): Likewise.
11143 (propagate_bits): Likewise.
11144 (ipa_reference_get_not_written_global): Likewise.
11145 (ipa_reference_get_not_read_global): Likewise.
11146 * ipa-split.c (execute_split_functions): Likewise.
11147 (split_function): Likewise.
11148 * ipa-utils.c (ipa_merge_profiles): Likewise.
11149 (dump_cgraph_node_set): Likewise.
11150 (ipa_reverse_postorder): Likewise.
11151 (ipa_edge_within_scc): Likewise.
11152 (ipa_get_nodes_in_cycle): Likewise.
11153 (ipa_free_postorder_info): Likewise.
11154 (ipa_reduced_postorder): Likewise.
11155 (searchc): Likewise.
11156 (recursive_call_p): Likewise.
11157 * ipa.c (ipa_cdtor_merge): Likewise.
11158 (record_cdtor_fn): Likewise.
11159 (function_and_variable_visibility): Likewise.
11160 (varpool_externally_visible_p): Likewise.
11161 (cgraph_externally_visible_p): Likewise.
11162 (comdat_can_be_unshared_p): Likewise.
11163 (comdat_can_be_unshared_p_1): Likewise.
11164 (address_taken_from_non_vtable_p): Likewise.
11165 (ipa_discover_readonly_nonaddressable_vars): Likewise.
11166 (symtab_remove_unreachable_nodes): Likewise.
11167 (walk_polymorphic_call_targets): Likewise.
11168 (process_references): Likewise.
11169 (enqueue_node): Likewise.
11170 (has_addr_references_p): Likewise.
11171 (cgraph_non_local_node_p_1): Likewise.
11172 * is-a.h (varpool_analyze_node): Likewise.
11173 * lto-cgraph.c (input_symtab): Likewise.
11174 (merge_profile_summaries): Likewise.
11175 (input_cgraph_1): Likewise.
11176 (input_edge): Likewise.
11177 (input_varpool_node): Likewise.
11178 (input_node): Likewise.
11179 (input_overwrite_node): Likewise.
11180 (compute_ltrans_boundary): Likewise.
11181 (output_refs): Likewise.
11182 (lto_output_varpool_node): Likewise.
11183 (lto_output_node): Likewise.
11184 (reachable_from_other_partition_p): Likewise.
11185 (referenced_from_other_partition_p): Likewise.
11186 (lto_output_edge): Likewise.
11187 (output_node_opt_summary): Likewise.
11188 (add_node_to): Likewise.
11189 (reachable_from_this_partition_p): Likewise.
11190 (lto_set_symtab_encoder_in_partition): Likewise.
11191 (lto_symtab_encoder_in_partition_p): Likewise.
11192 (lto_set_symtab_encoder_encode_initializer): Likewise.
11193 (lto_symtab_encoder_encode_initializer_p): Likewise.
11194 (lto_set_symtab_encoder_encode_body): Likewise.
11195 (lto_symtab_encoder_encode_body_p): Likewise.
11196 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
11197 Likewise.
11198 * lto-streamer-in.c (lto_read_body): Likewise.
11199 (fixup_call_stmt_edges): Likewise.
11200 (fixup_call_stmt_edges_1): Likewise.
11201 * lto-streamer-out.c (produce_symtab): Likewise.
11202 (output_symbol_p): Likewise.
11203 (write_symbol): Likewise.
11204 (lto_output): Likewise.
11205 (copy_function): Likewise.
11206 (output_function): Likewise.
11207 * passes.c (function_called_by_processed_nodes_p): Likewise.
11208 (ipa_write_optimization_summaries): Likewise.
11209 (ipa_write_summaries): Likewise.
11210 (do_per_function_toporder): Likewise.
11211 (do_per_function): Likewise.
11212 (dump_passes): Likewise.
11213 * symtab.c (symtab_semantically_equivalent_p): Likewise.
11214 (symtab_nonoverwritable_alias): Likewise.
11215 (symtab_nonoverwritable_alias_1): Likewise.
11216 (symtab_for_node_and_aliases): Likewise.
11217 (symtab_resolve_alias): Likewise.
11218 (fixup_same_cpp_alias_visibility): Likewise.
11219 (symtab_alias_ultimate_target): Likewise.
11220 (symtab_used_from_object_file_p): Likewise.
11221 (verify_symtab_base): Likewise.
11222 (dump_symtab_base): Likewise.
11223 (symtab_node_name): Likewise.
11224 (symtab_node_asm_name): Likewise.
11225 (symtab_dissolve_same_comdat_group_list): Likewise.
11226 (symtab_add_to_same_comdat_group): Likewise.
11227 (symtab_unregister_node): Likewise.
11228 (symtab_insert_node_to_hashtable): Likewise.
11229 (symtab_register_node): Likewise.
11230 (unlink_from_assembler_name_hash): Likewise.
11231 (insert_to_assembler_name_hash): Likewise.
11232 (eq_assembler_name): Likewise.
11233 (hash_node_by_assembler_name): Likewise.
11234 (eq_node): Likewise.
11235 (hash_node): Likewise.
11236 * toplev.c (wrapup_global_declaration_2): Likewise.
11237 * trans-mem.c (ipa_tm_execute): Likewise.
11238 (ipa_tm_transform_clone): Likewise.
11239 (ipa_tm_transform_transaction): Likewise.
11240 (ipa_tm_transform_calls_redirect): Likewise.
11241 (ipa_tm_insert_gettmclone_call): Likewise.
11242 (ipa_tm_insert_irr_call): Likewise.
11243 (ipa_tm_create_version): Likewise.
11244 (ipa_tm_create_version_alias): Likewise.
11245 (ipa_tm_mark_forced_by_abi_node): Likewise.
11246 (ipa_tm_mark_force_output_node): Likewise.
11247 (ipa_tm_diagnose_tm_safe): Likewise.
11248 (ipa_tm_mayenterirr_function): Likewise.
11249 (ipa_tm_scan_irr_function): Likewise.
11250 (ipa_tm_note_irrevocable): Likewise.
11251 (ipa_tm_scan_calls_clone): Likewise.
11252 (get_cg_data): Likewise.
11253 * tree-eh.c (tree_could_trap_p): Likewise.
11254 * tree-emutls.c (ipa_lower_emutls): Likewise.
11255 (create_emultls_var): Likewise.
11256 (lower_emutls_function_body): Likewise.
11257 (gen_emutls_addr): Likewise.
11258 (emutls_decl): Likewise.
11259 (new_emutls_decl): Likewise.
11260 * tree-inline.c (tree_function_versioning): Likewise.
11261 (optimize_inline_calls): Likewise.
11262 (expand_call_inline): Likewise.
11263 (estimate_num_insns): Likewise.
11264 (copy_bb): Likewise.
11265 (delete_unreachable_blocks_update_callgraph): Likewise.
11266 * tree-nested.c (gimplify_all_functions): Likewise.
11267 (create_nesting_tree): Likewise.
11268 (check_for_nested_with_variably_modified): Likewise.
11269 * tree-pretty-print.c (dump_function_header): Likewise.
11270 * tree-profile.c (tree_profiling): Likewise.
11271 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
11272 (modify_function): Likewise.
11273 (convert_callers): Likewise.
11274 (convert_callers_for_node): Likewise.
11275 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
11276 (associate_varinfo_to_alias): Likewise.
11277 (create_variable_info_for): Likewise.
11278 (get_constraint_for_ssa_var): Likewise.
11279 * tree-vectorizer.c (increase_alignment): Likewise.
11280 * tree.c (find_decls_types_in_var): Likewise.
11281 (find_decls_types_in_node): Likewise.
11282 (free_lang_data_in_decl): Likewise.
11283 * value-prof.c (gimple_ic_transform): Likewise.
11284 (gimple_ic): Likewise.
11285 (check_ic_target): Likewise.
11286 (init_node_map): Likewise.
11287 * varasm.c (decl_binds_to_current_def_p): Likewise.
11288 (default_binds_local_p_1): Likewise.
11289 (dump_tm_clone_pairs): Likewise.
11290 (assemble_alias): Likewise.
11291 (find_decl): Likewise.
11292 (mark_decl_referenced): Likewise.
11293 * varpool.c (varpool_for_node_and_aliases): Likewise.
11294 (varpool_extra_name_alias): Likewise.
11295 (varpool_create_variable_alias): Likewise.
11296 (add_new_static_var): Likewise.
11297 (varpool_finalize_named_section_flags): Likewise.
11298 (varpool_remove_unreferenced_decls): Likewise.
11299 (enqueue_node): Likewise.
11300 (varpool_assemble_decl): Likewise.
11301 (assemble_aliases): Likewise.
11302 (varpool_analyze_node): Likewise.
11303 (cgraph_variable_initializer_availability): Likewise.
11304 (varpool_add_new_variable): Likewise.
11305 (ctor_for_folding): Likewise.
11306 (dump_varpool_node): Likewise.
11307 (varpool_remove_initializer): Likewise.
11308 (varpool_remove_node): Likewise.
11309 (varpool_node_for_decl): Likewise.
11310 (varpool_create_empty_node): Likewise.
11311 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
11312 (ix86_get_function_versions_dispatcher): Likewise.
11313
11314 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11315
11316 * cgraph.h (symtab_node_base): Convert to a class;
11317 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
11318 chain_next/prev from symtab_node_def.
11319 (cgraph_node): Inherit from symtab_node; add GTY option
11320 tag ("SYMTAB_FUNCTION").
11321 (varpool_node): Inherit from symtab_node; add GTY option
11322 tag ("SYMTAB_VARIABLE").
11323 (symtab_node_def): Remove.
11324 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
11325 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
11326 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
11327 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
11328
11329 * ipa-ref.h (symtab_node_def): Drop.
11330 (symtab_node): Change underlying type from symtab_node_def to
11331 symtab_node_base.
11332 (const_symtab_node): Likwise.
11333
11334 * is-a.h: Update examples in comment.
11335
11336 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
11337 (assembler_name_hash): Likewise.
11338
11339 2013-10-29 Martin Liska <marxin.liska@gmail.com>
11340
11341 * doc/tree-ssa.texi (gimple_phi_result): Document.
11342 (gimple_phi_num_args, gimple_phi_arg): Likewise.
11343 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
11344 (PHI_RESULT, PHI_NUM_ARGS): Remove.
11345 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
11346
11347 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11348
11349 * expr.h: Revert change and include tree-core.h.
11350 * rtl.h: Revert change and don't include tree-core.h.
11351
11352 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11353
11354 * config/darwin.c: Include gimple.h.
11355 * config/i386/winnt.c: Likewise.
11356
11357 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
11358
11359 PR tree-optimization/19831
11360 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
11361
11362 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
11363
11364 * tree-outof-ssa.h: Remove include files.
11365 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
11366 * expr.c: Likewise.
11367 * tree-ssa-coalesce.c: Likewise.
11368 * cfgexpand.c: Likewise.
11369 * tree-ssa-ter.c: Likewise.
11370 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
11371 * lto-streamer.h: Likewise.
11372 * cgraphbuild.c: Add gimple.h to include list.
11373 * data-streamer-in.c: Likewise.
11374 * ipa-cp.c: Likewise.
11375 * tree-streamer.c: Likewise.
11376 * lto-compress.c: Likewise.
11377 * ipa-reference.c: Likewise.
11378 * data-streamer-out.c: Likewise.
11379 * lto-cgraph.c: Likewise.
11380 * cgraphclones.c: Likewise.
11381 * ipa-utils.c: Likewise.
11382 * data-streamer.c: Likewise.
11383 * ipa-split.c: Likewise.
11384 * lto-section-in.c: Likewise.
11385 * tree-streamer-out.c: Likewise.
11386 * ipa-prop.c: Likewise.
11387 * tree-streamer-in.c: Likewise.
11388 * symtab.c: Likewise.
11389 * opts-global.c: Likewise.
11390 * lto-opts.c: Likewise.
11391 * lto-section-out.c: Likewise.
11392 * lto-streamer.c: Likewise.
11393 * rtl.h: Add tree-core.h to include list.
11394 * expr.h: Remove tree-core.h from include list.
11395 * gimple.h: Likewise.
11396 * ipa-utils.h: Likewise.
11397 * streamer-hooks.h: Likewise.
11398 * streamer-hooks.c: Include input.h.
11399
11400 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11401
11402 * config/arm/arm.c (cortexa7_extra_costs): New table.
11403 (arm_cortex_a7_tune): New.
11404 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
11405
11406 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
11407
11408 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
11409
11410 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11411
11412 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
11413 to use autogenerated markers for a class-hierarchy, every class
11414 must have a GTY marker.
11415 * gengtype.h (struct type): Add linked list of subclasses to
11416 the "s" member of the union.
11417 (add_subclass): New decl.
11418 * gengtype-state.c (read_state_struct_type): Set up subclass
11419 linked list.
11420 * gengtype.c (get_ultimate_base_class): New.
11421 (add_subclass): New.
11422 (new_structure): Set up subclass linked list.
11423 (set_gc_used_type): Propagate usage information to subclasses.
11424 (output_mangled_typename): Use get_ultimate_base_class.
11425 (walk_subclasses): Use the subclass linked list, avoiding an
11426 O(N^2) when writing out all types.
11427 (walk_type): Issue an error if the base class is missing a tag,
11428 rather than generating bogus C code. Add a gcc_unreachable
11429 default case, in case people omit tags from concrete subclasses,
11430 or get the values wrong.
11431 (write_func_for_structure): Issue an error for subclasses for
11432 which the base doesn't have a "desc", since otherwise the
11433 autogenerated routines for the base would silently fail to visit
11434 any subclass fields.
11435 (write_root): Use get_ultimate_base_class, tweaking constness of
11436 tp to match that function's signature.
11437
11438 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11439
11440 * doc/gty.texi (GTY Options): Add note about inheritance to
11441 description of desc and tag.
11442 (Inheritance and GTY): New.
11443
11444 2013-10-29 David Malcolm <dmalcolm@redhat.com>
11445
11446 * gengtype-parse.c (opts_have): Drop "static" so that
11447 we can use this from gengtype.c.
11448 * gengtype.c (set_gc_used_type): Mark any base class as used;
11449 update field traversal to visit inherited fields.
11450 (output_mangled_typename): Convert references to classes within
11451 an inheritance hierarchy to reference the ultimate base class,
11452 since only it will have gt_ functions.
11453 (get_string_option): New.
11454 (walk_subclasses): New.
11455 (walk_type): Treat GTY structs that have a "desc" as being the
11456 root of an inheritance hierarchy. Generate a switch on it
11457 within the marking function which walks all subclasses, adding
11458 cases for them via walk_subclasses. For subclasses, visit all
11459 fields of the type (including inherited ones).
11460 (write_func_for_structure): Don't write fns for subclasses, only
11461 for the ultimate base class within an inheritance hierarchy.
11462 Subclasses-marking will be handled by the base class marking functions.
11463 (write_types): Likewise.
11464 (write_local_func_for_structure): Likewise.
11465 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
11466 a "tag" option (and are thus concrete subclasses).
11467 (write_root): Use the marker function for the ultimate base class.
11468 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
11469 (opts_have): Add declaration.
11470
11471 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
11472
11473 * lra-spills.c (lra_final_code_change): Remove useless move insns
11474 originated from moves of pseudos.
11475
11476 2013-10-28 Jeff Law <law@redhat.com>
11477
11478 * lower-subreg.c (resolve_simple_move): Fix comment typo.
11479
11480 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
11481
11482 * df-scan.c (df_collection_rec): Adjust.
11483 (copy_defs): New constant.
11484 (copy_uses): Likewise.
11485 (copy_eq_uses): Likewise.
11486 (copy_mw): Likewise.
11487 (copy_all): Likewise.
11488 (df_insn_rescan): Adjust.
11489 (df_notes_rescan): Likewise.
11490 (df_swap_refs): Likewise.
11491 (df_sort_and_compress_refs): Likewise.
11492 (df_sort_and_compress_mws): Likewise.
11493 (df_install_refs): Likewise.
11494 (df_install_mws): Likewise.
11495 (df_refs_add_to_chains): Add flags parameter controlling which vectors
11496 are coppied.
11497 (df_bb_refs_record): Adjust.
11498 (df_record_entry_block_defs): Likewise.
11499 (df_record_exit_block_defs): Likewise.
11500 (df_refs_verify): Likewise.
11501 (df_mws_verify): Likewise.
11502 (df_insn_refs_verify): Likewise.
11503 (df_bb_verify): Likewise.
11504 * ipa-pure-const.c (finish_state): Remove.
11505 (propagate): Adjust.
11506 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
11507 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
11508 var-tracking.c: Adjust.
11509 * vec.c (stack_vecs): Remove.
11510 (register_stack_vec): Likewise.
11511 (stack_vec_register_index): Likewise.
11512 (unregister_stack_vec): Likewise.
11513 * vec.h (struct va_stack): Remove.
11514 (struct vec<T, A, vl_ptr>): Specialize as
11515 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
11516 allocation strategy compatable with the vl_ptr layout.
11517 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
11518 specialization anyway.
11519 (class stack_vec): New class.
11520 (vec_stack_alloc): Remove.
11521 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
11522
11523 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11524 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11525 Sergey Lega <sergey.s.lega@intel.com>
11526 Anna Tikhonova <anna.tikhonova@intel.com>
11527 Ilya Tocar <ilya.tocar@intel.com>
11528 Andrey Turetskiy <andrey.turetskiy@intel.com>
11529 Ilya Verbin <ilya.verbin@intel.com>
11530 Kirill Yukhin <kirill.yukhin@intel.com>
11531 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11532
11533 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
11534 (*prefetch_avx512pf_<mode>): New.
11535 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
11536 (avx512f_maskcmp<mode>3): Ditto.
11537 (vashrv16si3): Ditto.
11538
11539 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
11540 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11541 Sergey Lega <sergey.s.lega@intel.com>
11542 Anna Tikhonova <anna.tikhonova@intel.com>
11543 Ilya Tocar <ilya.tocar@intel.com>
11544 Andrey Turetskiy <andrey.turetskiy@intel.com>
11545 Ilya Verbin <ilya.verbin@intel.com>
11546 Kirill Yukhin <kirill.yukhin@intel.com>
11547 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11548
11549 * config/i386/i386.md (any_truncate): New.
11550 (trunsuffix): Ditto.
11551 * config/i386/predicates.md (const_8_to_9_operand): New.
11552 (const_10_to_11_operand): Ditto.
11553 (const_12_to_13_operand): Ditto.
11554 (const_14_to_15_operand): Ditto.
11555 (const_16_to_19_operand): Ditto.
11556 (const_20_to_23_operand): Ditto.
11557 (const_24_to_27_operand): Ditto.
11558 (const_28_to_31_operand): Ditto.
11559 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
11560 (cvtusi2<ssescalarmodesuffix>32): New.
11561 (cvtusi2<ssescalarmodesuffix>64): Ditto.
11562 (ufloatv16siv16sf2): Ditto.
11563 (avx512f_fix_notruncv16sfv16si): Ditto.
11564 (avx512f_ufix_notruncv16sfv16si): Ditto.
11565 (avx512f_vcvtss2usi): Ditto.
11566 (avx512f_vcvtss2usiq): Ditto.
11567 (avx512f_vcvttss2usi): Ditto.
11568 (avx512f_vcvttss2usiq): Ditto.
11569 (avx512f_vcvtsd2usi): Ditto.
11570 (avx512f_vcvtsd2usiq): Ditto.
11571 (avx512f_vcvttsd2usi): Ditto.
11572 (avx512f_vcvttsd2usiq): Ditto.
11573 (ufloatv8siv8df): Ditto.
11574 (avx512f_cvtdq2pd512_2): Ditto.
11575 (avx512f_cvtpd2dq512): Ditto.
11576 (avx512f_ufix_notruncv8dfv8si): Ditto.
11577 (avx512f_cvtpd2ps512): Ditto.
11578 (vec_unpacks_lo_v16sf): Ditto.
11579 (vec_unpacks_hi_v16sf): Ditto.
11580 (vec_unpacks_float_hi_v16si): Ditto.
11581 (vec_unpacks_float_lo_v16si): Ditto.
11582 (avx512f_unpckhps512): Ditto.
11583 (avx512f_unpcklps512): Ditto.
11584 (avx512f_movshdup512): Ditto.
11585 (avx512f_movsldup512): Ditto.
11586 (vec_extract_lo_v32hi): Ditto.
11587 (vec_extract_hi_v32hi): Ditto.
11588 (vec_extract_lo_v64qi): Ditto.
11589 (vec_extract_hi_v64qi): Ditto.
11590 (avx512f_unpckhpd512): Ditto.
11591 (avx512f_movddup512): Ditto.
11592 (avx512f_unpcklpd512): Ditto.
11593 (*avx512f_unpcklpd512): Ditto.
11594 (avx512f_shufps512_1): Ditto.
11595 (avx512f_shufpd512_1): Ditto.
11596 (avx512f_interleave_highv8di): Ditto.
11597 (avx512f_interleave_lowv8di): Ditto.
11598 (PMOV_DST_MODE): Ditto.
11599 (pmov_src_mode): Ditto.
11600 (pmov_src_lower): Ditto.
11601 (pmov_suff): Ditto.
11602 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
11603 (*avx512f_<code>v8div16qi2): Ditto.
11604 (*avx512f_<code>v8div16qi2_store): Ditto.
11605 (vec_widen_umult_even_v16si): Ditto.
11606 (*vec_widen_umult_even_v16si): Ditto.
11607 (vec_widen_smult_even_v16si): Ditto.
11608 (*vec_widen_smult_even_v16si): Ditto.
11609 (avx512f_interleave_highv16si): Ditto.
11610 (avx512f_interleave_lowv16si): Ditto.
11611 (avx512f_<code>v16qiv16si2): Ditto.
11612 (avx512f_<code>v16hiv16si2): Ditto.
11613 (avx512f_<code>v8qiv8di2): Ditto.
11614 (avx512f_<code>v8hiv8di2): Ditto.
11615 (avx512f_<code>v8siv8di2): Ditto.
11616 (avx512cd_maskb_vec_dupv8di): Ditto.
11617 (avx512cd_maskw_vec_dupv16si): Ditto.
11618 (avx512f_vcvtph2ps512): Ditto.
11619 (avx512f_vcvtps2ph512): Ditto.
11620 (VEC_EXTRACT_MODE): Extened with wider modes.
11621 (VEC_PERM_AVX2): Ditto.
11622 (VEC_PERM_CONST): Ditto.
11623
11624 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
11625
11626 * config/arc/arc.c (arc_ccfsm_post_advance):
11627 Add comment about TYPE_RETURN.
11628
11629 2013-10-28 Bin Cheng <bin.cheng@arm.com>
11630
11631 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
11632 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
11633 (strip_offset): Convert offset to unsigned number.
11634
11635 2013-10-27 Tom de Vries <tom@codesourcery.com>
11636
11637 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
11638 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
11639
11640 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
11641
11642 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
11643 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
11644 (TARGET_BIG_ENDIAN): New macro.
11645 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
11646 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
11647 * config/sh/sh.c: Likewise.
11648 * config/sh/sh.h: Likewise.
11649
11650 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
11651
11652 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
11653 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
11654
11655 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11656
11657 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
11658 Fix formatting.
11659 (cmpstr_t, cmpstrsi): Fix formatting.
11660
11661 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
11662
11663 PR target/52483
11664 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
11665 addressing, do not use general_operand for memory operands.
11666
11667 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
11668
11669 Revert:
11670 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11671 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11672
11673 2013-10-26 Jeff Law <law@redhat.com>
11674
11675 * predict.c (PRED_MUDFLAP): Remove.
11676 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
11677
11678 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
11679 (OBJS): Remove tree-nomudflap.o
11680 (GTFILES): Remove tree-mudflap.c
11681 * builtins.c (expand_builtin_alloc): Remove mudflap support.
11682 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11683 (mfwrap_spec, mflib_spec): Likewise.
11684 (cpp_unique_options, cc1_options, static_specs): Likewise.
11685 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
11686 * passes.def: Likewise.
11687 * toplev.c (compile_file, process_options): Likewise.
11688 * tree-inline.c (copy_tree_r): Likewise.
11689 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
11690 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
11691 (build_constant_desc, output_constant_def_contents): Likewise.
11692 (categorize_decl_for_section): Likewise.
11693 * tree-mudflap.c: Removed.
11694 * tree-mudflap.h: Removed.
11695 * tree-nomudflap.c: Removed.
11696 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
11697 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
11698 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
11699 * config/sol2.h (MFLIB_SPEC): Likewise.
11700 * doc/install.texi: Remove mudflap references.
11701 * doc/passes.texi: Similarly.
11702 * doc/sourcebuild.texi: Similarly.
11703 * doc/invoke.texi: Remove mudlfap related options.
11704
11705 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11706
11707 PR rtl-optimization/58759
11708 * lra-constraints.c (lra_constraints): Remove wrong condition to
11709 remove insn setting up an equivalent pseudo.
11710
11711 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
11712
11713 * config/rs6000/rs6000-protos.h
11714 (rs6000_secondary_memory_needed_mode): New prototype.
11715 * config/rs6000/rs6000.c: Include ira.h.
11716 (TARGET_LRA_P): Redefine.
11717 (rs6000_legitimate_offset_address_p): Call
11718 legitimate_constant_pool_address_p in strict mode for LRA.
11719 (rs6000_legitimate_address_p): Ditto.
11720 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
11721 (rs6000_emit_move): Add LRA version of code to generate load/store
11722 of SDmode values.
11723 (rs6000_secondary_memory_needed_mode): New.
11724 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
11725 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
11726 constants, memory, and FP registers.
11727 (rs6000_lra_p): New.
11728 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
11729 * config/rs6000/rs6000.opt (mlra): New option.
11730 * lra-spills.c (lra_final_code_change): Remove useless move insns.
11731
11732 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
11733
11734 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
11735 has_single_use () and not do the conversion if has_single_use ()
11736 returns false for the multiplication result.
11737
11738 2013-10-25 David Malcolm <dmalcolm@redhat.com>
11739
11740 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
11741 to "NODE", since this works on a "tree", not an
11742 "enum tree_code".
11743 (CONSTANT_CLASS_P): Likewise.
11744 (TYPE_P): Likewise.
11745 (DECL_P): Likewise.
11746 (INDIRECT_REF_P): Likewise.
11747 (REFERENCE_CLASS_P): Likewise.
11748 (COMPARISON_CLASS_P): Likewise.
11749 (UNARY_CLASS_P): Likewise.
11750 (BINARY_CLASS_P): Likewise.
11751 (STATEMENT_CLASS_P): Likewise.
11752 (VL_EXP_CLASS_P): Likewise.
11753 (EXPRESSION_CLASS_P): Likewise.
11754 (IS_TYPE_OR_DECL_P): Likewise.
11755
11756 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
11757
11758 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
11759 ADDR_EXPR in the defining statement.
11760
11761 2013-10-25 Richard Biener <rguenther@suse.de>
11762
11763 PR tree-optimization/58626
11764 * tree-loop-distribution.c (enum rdg_dep_type): Remove
11765 anti_dd, output_dd and input_dd.
11766 (struct rdg_edge): Remove level and relation members.
11767 (RDGE_LEVEL, RDGE_RELATION): Remove.
11768 (dot_rdg_1): Adjust.
11769 (create_rdg_edge_for_ddr): Remove.
11770 (create_rdg_edges_for_scalar): Adjust.
11771 (create_edge_for_control_dependence): Likewise.
11772 (create_rdg_edges): Split into ...
11773 (create_rdg_flow_edges): ... this
11774 (create_rdg_cd_edges): ... and this.
11775 (free_rdg): Adjust.
11776 (build_rdg): Likewise, do not compute data dependences or
11777 add edges for them.
11778 (pg_add_dependence_edges): New function.
11779 (pgcmp): Likewise.
11780 (distribute_loop): First apply all non-dependence based
11781 partition mergings. Then compute dependences between partitions
11782 and merge and order partitions according to them.
11783
11784 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11785
11786 PR rtl-optimization/58831
11787 * alias.c (init_alias_analysis): At the beginning of each iteration,
11788 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
11789
11790 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
11791
11792 * recog.c (search_ofs): New static variable moved from...
11793 (peep2_find_free_register): ...here.
11794 (peephole2_optimize): Initialize it.
11795
11796 2013-10-25 Tobias Burnus <burnus@net-b.de>
11797
11798 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
11799
11800 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
11801
11802 * config/i386/i386.h (TARGET_MPX): New define.
11803 (TARGET_MPX_P): Ditto.
11804
11805 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11806
11807 * config/i386/constraints.md (B): New.
11808 (Ti): New.
11809 (Tb): New.
11810 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
11811 * config/i386/i386-modes.def (BND32): New.
11812 (BND64): New.
11813 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
11814 * config/i386/i386.c (isa_opts): Add mmpx.
11815 (regclass_map): Add bound registers.
11816 (dbx_register_map): Likewise.
11817 (dbx64_register_map): Likewise.
11818 (svr4_dbx_register_map): Likewise.
11819 (PTA_MPX): New.
11820 (ix86_option_override_internal): Support MPX ISA.
11821 (ix86_conditional_register_usage): Support bound registers.
11822 (print_reg): Likewise.
11823 (ix86_code_end): Add MPX bnd prefix.
11824 (output_set_got): Likewise.
11825 (ix86_output_call_insn): Likewise.
11826 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
11827 (ix86_print_operand_punct_valid_p): Likewise.
11828 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
11829 UNSPEC_BNDMK_ADDR.
11830 (ix86_class_likely_spilled_p): Add bound regs support.
11831 (ix86_hard_regno_mode_ok): Likewise.
11832 (x86_order_regs_for_local_alloc): Likewise.
11833 (ix86_bnd_prefixed_insn_p): New.
11834 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
11835 (FIXED_REGISTERS): Add bound registers.
11836 (CALL_USED_REGISTERS): Likewise.
11837 (REG_ALLOC_ORDER): Likewise.
11838 (HARD_REGNO_NREGS): Likewise.
11839 (TARGET_MPX): New.
11840 (VALID_BND_REG_MODE): New.
11841 (FIRST_BND_REG): New.
11842 (LAST_BND_REG): New.
11843 (reg_class): Add BND_REGS.
11844 (REG_CLASS_NAMES): Likewise.
11845 (REG_CLASS_CONTENTS): Likewise.
11846 (BND_REGNO_P): New.
11847 (ANY_BND_REG_P): New.
11848 (BNDmode): New.
11849 (HI_REGISTER_NAMES): Add bound registers.
11850 * config/i386/i386.md (UNSPEC_BNDMK): New.
11851 (UNSPEC_BNDMK_ADDR): New.
11852 (UNSPEC_BNDSTX): New.
11853 (UNSPEC_BNDLDX): New.
11854 (UNSPEC_BNDLDX_ADDR): New.
11855 (UNSPEC_BNDCL): New.
11856 (UNSPEC_BNDCU): New.
11857 (UNSPEC_BNDCN): New.
11858 (UNSPEC_MPX_FENCE): New.
11859 (BND0_REG): New.
11860 (BND1_REG): New.
11861 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
11862 (length_immediate): Likewise.
11863 (prefix_0f): Likewise.
11864 (memory): Likewise.
11865 (prefix_rep): Check for bnd prefix.
11866 (length_nobnd): New.
11867 (length): Use length_nobnd if specified.
11868 (BND): New.
11869 (bnd_ptr): New.
11870 (BNDCHECK): New.
11871 (bndcheck): New.
11872 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
11873 (*jcc_2): Likewise.
11874 (jump): Likewise.
11875 (simple_return_internal): Likewise.
11876 (simple_return_pop_internal): Likewise.
11877 (*indirect_jump): Add MPX bnd prefix.
11878 (*tablejump_1): Likewise.
11879 (simple_return_internal_long): Likewise.
11880 (simple_return_indirect_internal): Likewise.
11881 (<mode>_mk): New.
11882 (*<mode>_mk): New.
11883 (mov<mode>): New.
11884 (*mov<mode>_internal_mpx): New.
11885 (<mode>_<bndcheck>): New.
11886 (*<mode>_<bndcheck>): New.
11887 (<mode>_ldx): New.
11888 (*<mode>_ldx): New.
11889 (<mode>_stx): New.
11890 (*<mode>_stx): New.
11891 * config/i386/predicates.md (lea_address_operand): Rename to...
11892 (address_no_seg_operand): ... this.
11893 (address_mpx_no_base_operand): New.
11894 (address_mpx_no_index_operand): New.
11895 (bnd_mem_operator): New.
11896 * config/i386/i386.opt (mmpx): New.
11897 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
11898 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
11899
11900 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
11901
11902 * mode-classes.def (MODE_POINTER_BOUNDS): New.
11903 * tree.def (POINTER_BOUNDS_TYPE): New.
11904 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
11905 (POINTER_BOUNDS_MODE): New.
11906 (make_pointer_bounds_mode): New.
11907 * machmode.h (POINTER_BOUNDS_MODE_P): New.
11908 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
11909 (layout_type): Support POINTER_BOUNDS_TYPE.
11910 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
11911 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
11912 (type_contains_placeholder_1): Likewise.
11913 * tree.h (POINTER_BOUNDS_TYPE_P): New.
11914 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
11915 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
11916
11917 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11918
11919 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
11920 mode of address computation when calling memory_address_addr_space.
11921
11922 2013-08-24 Richard Henderson <rth@twiddle.net>
11923
11924 PR rtl/58542
11925 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
11926 instead of create_convert_operand_to.
11927 (maybe_emit_sync_lock_test_and_set): Likewise.
11928 (expand_atomic_compare_and_swap): Likewise.
11929 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
11930
11931 2013-08-24 Sriraman Tallam <tmsriram@google.com>
11932
11933 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
11934 Change param_is to use the struct and not the pointer to the struct.
11935
11936 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
11937
11938 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
11939 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11940 Move to targhooks.c.
11941 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
11942 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
11943 Relocate from gimplify.c.
11944 * targhooks.h: Add 2 prototypes.
11945 * tree.h: Delete 2 prototypes.
11946
11947 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
11948
11949 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
11950 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
11951
11952 2013-10-24 Cong Hou <congh@google.com>
11953
11954 * convert.c (convert_to_real): Guard those unsafe math function
11955 convertions with flag_unsafe_math_optimizations. Handle sqrt()
11956 specially.
11957
11958 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
11959
11960 PR ipa/58712
11961 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
11962 as argument.
11963 (cgraph_create_edge): Use the new argument.
11964 (cgraph_create_indirect_edge): Likewise.
11965
11966 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
11967
11968 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
11969 TYPE_UNCOND_BRANCH.
11970 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
11971 changes statep->state.
11972
11973 2013-10-24 Tobias Burnus <burnus@net-b.de>
11974
11975 PR other/33426
11976 * tree-cfg.c (replace_loop_annotate): New function.
11977 (execute_build_cfg): Call it.
11978 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
11979 * internal-fn.c (expand_ANNOTATE): New function.
11980 * internal-fn.def (ANNOTATE): Define as new internal function.
11981 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
11982 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
11983 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
11984 * doc/extend.texi (Pragmas): Document #pragma ivdep.
11985 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
11986
11987 2013-10-17 Ian Bolton <ian.bolton@arm.com>
11988 Marcus Shawcroft <marcus.shawcroft@arm.com>
11989
11990 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
11991 Special case reload SP+C into none GENERAL_REGS.
11992
11993 2013-10-24 Michael Matz <matz@suse.de>
11994
11995 * gengtype.c (is_file_equal): Check that files will be same length.
11996
11997 2013-10-25 Christian Bruel <christian.bruel@st.com>
11998
11999 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
12000 * config/sh/t-sh (sh-mem.o): New rule.
12001 * config/sh/sh-mem.cc (expand_block_move): Moved here.
12002 (sh_expand_cmpstr): New function.
12003 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
12004 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
12005 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
12006 (rotlhi3_8): Rename.
12007
12008 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12009
12010 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
12011 * Makefile.in (CXXDEPMODE): Assign and change users.
12012 (CCDEPMODE): Delete.
12013 * configure: Regenerate.
12014
12015 2013-10-23 David Malcolm <dmalcolm@redhat.com>
12016
12017 * gengtype-parse.c (require_without_advance): New.
12018 (type): For GTY-marked types that are not GTY((user)), parse any
12019 base classes, requiring them to be single-inheritance, and not
12020 be templates. For non-GTY-marked types and GTY((user)),
12021 continue to skip over any C++ inheritance specification.
12022 * gengtype-state.c (state_writer::write_state_struct_type):
12023 Write base class of type (if any).
12024 (read_state_struct_type): Read base class of type (if any).
12025 * gengtype.c (new_structure): Add a "base_class" parameter.
12026 (create_optional_field_): Update for new parameter to new_structure.
12027 (adjust_field_rtx_def): Likewise.
12028 (adjust_field_tree_exp): Likewise.
12029 * gengtype.h (struct type): Add "base_class" field to the s
12030 union field.
12031 (new_structure): Add "base" parameter.
12032
12033 2013-10-23 Sriraman Tallam <tmsriram@google.com>
12034
12035 PR target/57756
12036 * config/i386/i386.c (ix86_option_override_internal):
12037 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
12038 (ix86_valid_target_attribute_tree):
12039 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
12040 Change TARGET_SSE to TARGET_SSE_P (opts->...)
12041
12042 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12043
12044 * tree-ssa-loop.h: Remove include files.
12045 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12046 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
12047 * graphite-clast-to-gimple.c: Likewise.
12048 * graphite-scop-detection.c: Likewise.
12049 * graphite-sese-to-poly.c: Likewise.
12050 * ipa-inline-analysis.c: Likewise.
12051 * ipa-pure-const.c: Likewise.
12052 * loop-init.c: Likewise.
12053 * passes.c: Likewise.
12054 * predict.c: Likewise.
12055 * tree-cfg.c: Likewise.
12056 * tree-cfgcleanup.c: Likewise.
12057 * tree-chrec.c: Likewise.
12058 * tree-data-ref.c: Likewise.
12059 * tree-loop-distribution.c: Likewise.
12060 * tree-parloops.c: Likewise.
12061 * tree-predcom.c: Likewise.
12062 * tree-scalar-evolution.c: Likewise.
12063 * tree-ssa-address.c: Likewise.
12064 * tree-ssa.c: Likewise.
12065 * tree-ssa-dce.c: Likewise.
12066 * tree-ssa-loop.c: Likewise.
12067 * tree-ssa-loop-im.c: Likewise.
12068 * tree-ssa-loop-ivcanon.c: Likewise.
12069 * tree-ssa-loop-ivopts.c: Likewise.
12070 * tree-ssa-loop-manip.c: Likewise.
12071 * tree-ssa-loop-niter.c: Likewise.
12072 * tree-ssa-loop-prefetch.c: Likewise.
12073 * tree-ssa-loop-unswitch.c: Likewise.
12074 * tree-ssa-reassoc.c: Likewise.
12075 * tree-vect-data-refs.c: Likewise.
12076 * tree-vect-loop.c: Likewise.
12077 * tree-vect-loop-manip.c: Likewise.
12078 * tree-vectorizer.c: Likewise.
12079 * tree-vect-stmts.c: Likewise.
12080 * tree-vrp.c: Likewise.
12081
12082 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12083
12084 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
12085
12086 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12087
12088 PR tree-optimization/58775
12089 PR tree-optimization/58791
12090 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
12091 (insert_stmt_after): Rewritten, don't move the stmt, but really
12092 insert it.
12093 (get_stmt_uid_with_default): Remove.
12094 (build_and_add_sum): Use insert_stmt_after and
12095 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
12096 (update_range_test): Set uid on stmts added by
12097 force_gimple_operand_gsi. Don't immediately modify statements
12098 in inter-bb optimization, just update oe->op values.
12099 (optimize_range_tests): Return bool whether any changed have been made.
12100 (update_ops): New function.
12101 (struct inter_bb_range_test_entry): New type.
12102 (maybe_optimize_range_tests): Perform statement changes here.
12103 (not_dominated_by, appears_later_in_bb, get_def_stmt,
12104 ensure_ops_are_available): Remove.
12105 (find_insert_point): Rewritten.
12106 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
12107 return LHS of the (new resp. old) stmt. Don't call
12108 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
12109 instead of last, move new stmt at the right place.
12110 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
12111 (negate_value): Likewise. Set uids.
12112 (break_up_subtract_bb): Initialize uids.
12113 (reassociate_bb): Adjust rewrite_expr_tree caller.
12114 (do_reassoc): Don't call renumber_gimple_stmt_uids.
12115
12116 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
12117
12118 PR target/58838
12119 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
12120 TARGET_32BIT final condition.
12121 (mulsi3_internal2 and splitter): Same.
12122
12123 2013-10-23 Jeff Law <law@redhat.com>
12124
12125 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
12126 through joiner blocks with abnormal outgoing edges.
12127
12128 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
12129 Add parameter JOINERS, to allow/disallow threading through joiner
12130 blocks.
12131 (thread_block): New. Call thread_block_1.
12132 (mark_threaded_blocks): Remove code to filter out certain cases
12133 of threading through joiner blocks.
12134 (thread_through_all_blocks): Document how we can have a dangling
12135 edge AUX field and clear it.
12136
12137 2013-10-23 Ian Lance Taylor <iant@google.com>
12138
12139 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
12140 (C++ Dialect Options): Likewise.
12141 (Optimize Options): Likewise.
12142
12143 2013-10-23 Tom de Vries <tom@codesourcery.com>
12144
12145 PR tree-optimization/58805
12146 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
12147
12148 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12149
12150 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
12151 sequence based on get_range_info returned range.
12152
12153 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
12154
12155 * tree-ssa.h: Remove all #include's
12156 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
12157 * alias.c: Move required includes from tree-ssa.h.
12158 * asan.c: Likewise.
12159 * builtins.c: Likewise.
12160 * calls.c: Likewise.
12161 * cfgexpand.c: Likewise.
12162 * cfghooks.c: Likewise.
12163 * cfgloop.c: Likewise.
12164 * cfgloopmanip.c: Likewise.
12165 * cgraph.c: Likewise.
12166 * cgraphbuild.c: Likewise.
12167 * cgraphclones.c: Likewise.
12168 * cgraphunit.c: Likewise.
12169 * dse.c: Likewise.
12170 * except.c: Likewise.
12171 * expr.c: Likewise.
12172 * final.c: Likewise.
12173 * fold-const.c: Likewise.
12174 * ggc-page.c: Likewise.
12175 * gimple-builder.c: Likewise.
12176 * gimple-fold.c: Likewise.
12177 * gimple-iterator.c: Likewise.
12178 * gimple-low.c: Likewise.
12179 * gimple-pretty-print.c: Likewise.
12180 * gimple-ssa-strength-reduction.c: Likewise.
12181 * gimple-streamer-in.c: Likewise.
12182 * gimple-streamer-out.c: Likewise.
12183 * gimplify.c: Likewise.
12184 * graphite-blocking.c: Likewise.
12185 * graphite-clast-to-gimple.c: Likewise.
12186 * graphite-dependences.c: Likewise.
12187 * graphite-interchange.c: Likewise.
12188 * graphite-optimize-isl.c: Likewise.
12189 * graphite-poly.c: Likewise.
12190 * graphite-scop-detection.c: Likewise.
12191 * graphite-sese-to-poly.c: Likewise.
12192 * graphite.c: Likewise.
12193 * ipa-cp.c: Likewise.
12194 * ipa-inline-analysis.c: Likewise.
12195 * ipa-inline-transform.c: Likewise.
12196 * ipa-inline.c: Likewise.
12197 * ipa-prop.c: Likewise.
12198 * ipa-pure-const.c: Likewise.
12199 * ipa-reference.c: Likewise.
12200 * ipa-split.c: Likewise.
12201 * ipa-utils.c: Likewise.
12202 * loop-init.c: Likewise.
12203 * lto-cgraph.c: Likewise.
12204 * lto-section-in.c: Likewise.
12205 * lto-section-out.c: Likewise.
12206 * lto-streamer-in.c: Likewise.
12207 * lto-streamer-out.c: Likewise.
12208 * lto-streamer.c: Likewise.
12209 * omp-low.c: Likewise.
12210 * passes.c: Likewise.
12211 * predict.c: Likewise.
12212 * print-tree.c: Likewise.
12213 * profile.c: Likewise.
12214 * sese.c: Likewise.
12215 * targhooks.c: Likewise.
12216 * tracer.c: Likewise.
12217 * trans-mem.c: Likewise.
12218 * tree-call-cdce.c: Likewise.
12219 * tree-cfg.c: Likewise.
12220 * tree-cfgcleanup.c: Likewise.
12221 * tree-chrec.c: Likewise.
12222 * tree-complex.c: Likewise.
12223 * tree-data-ref.c: Likewise.
12224 * tree-dfa.c: Likewise.
12225 * tree-eh.c: Likewise.
12226 * tree-emutls.c: Likewise.
12227 * tree-if-conv.c: Likewise.
12228 * tree-inline.c: Likewise.
12229 * tree-into-ssa.c: Likewise.
12230 * tree-loop-distribution.c: Likewise.
12231 * tree-mudflap.c: Likewise.
12232 * tree-nested.c: Likewise.
12233 * tree-nrv.c: Likewise.
12234 * tree-object-size.c: Likewise.
12235 * tree-outof-ssa.c: Likewise.
12236 * tree-parloops.c: Likewise.
12237 * tree-phinodes.c: Likewise.
12238 * tree-predcom.c: Likewise.
12239 * tree-pretty-print.c: Likewise.
12240 * tree-profile.c: Likewise.
12241 * tree-scalar-evolution.c: Likewise.
12242 * tree-sra.c: Likewise.
12243 * tree-ssa-address.c: Likewise.
12244 * tree-ssa-alias.c: Likewise.
12245 * tree-ssa-ccp.c: Likewise.
12246 * tree-ssa-coalesce.c: Likewise.
12247 * tree-ssa-copy.c: Likewise.
12248 * tree-ssa-copyrename.c: Likewise.
12249 * tree-ssa-dce.c: Likewise.
12250 * tree-ssa-dom.c: Likewise.
12251 * tree-ssa-dse.c: Likewise.
12252 * tree-ssa-forwprop.c: Likewise.
12253 * tree-ssa-ifcombine.c: Likewise.
12254 * tree-ssa-live.c: Likewise.
12255 * tree-ssa-loop-ch.c: Likewise.
12256 * tree-ssa-loop-im.c: Likewise.
12257 * tree-ssa-loop-ivcanon.c: Likewise.
12258 * tree-ssa-loop-ivopts.c: Likewise.
12259 * tree-ssa-loop-manip.c: Likewise.
12260 * tree-ssa-loop-niter.c: Likewise.
12261 * tree-ssa-loop-prefetch.c: Likewise.
12262 * tree-ssa-loop-unswitch.c: Likewise.
12263 * tree-ssa-loop.c: Likewise.
12264 * tree-ssa-math-opts.c: Likewise.
12265 * tree-ssa-operands.c: Likewise.
12266 * tree-ssa-phiopt.c: Likewise.
12267 * tree-ssa-phiprop.c: Likewise.
12268 * tree-ssa-pre.c: Likewise.
12269 * tree-ssa-propagate.c: Likewise.
12270 * tree-ssa-reassoc.c: Likewise.
12271 * tree-ssa-sccvn.c: Likewise.
12272 * tree-ssa-sink.c: Likewise.
12273 * tree-ssa-strlen.c: Likewise.
12274 * tree-ssa-structalias.c: Likewise.
12275 * tree-ssa-tail-merge.c: Likewise.
12276 * tree-ssa-ter.c: Likewise.
12277 * tree-ssa-threadedge.c: Likewise.
12278 * tree-ssa-threadupdate.c: Likewise.
12279 * tree-ssa-uncprop.c: Likewise.
12280 * tree-ssa-uninit.c: Likewise.
12281 * tree-ssa.c: Likewise.
12282 * tree-ssanames.c: Likewise.
12283 * tree-stdarg.c: Likewise.
12284 * tree-streamer-in.c: Likewise.
12285 * tree-switch-conversion.c: Likewise.
12286 * tree-tailcall.c: Likewise.
12287 * tree-vect-data-refs.c: Likewise.
12288 * tree-vect-generic.c: Likewise.
12289 * tree-vect-loop-manip.c: Likewise.
12290 * tree-vect-loop.c: Likewise.
12291 * tree-vect-patterns.c: Likewise.
12292 * tree-vect-slp.c: Likewise.
12293 * tree-vect-stmts.c: Likewise.
12294 * tree-vectorizer.c: Likewise.
12295 * tree-vrp.c: Likewise.
12296 * tree.c: Likewise.
12297 * tsan.c: Likewise.
12298 * value-prof.c: Likewise.
12299 * var-tracking.c: Likewise.
12300 * varpool.c: Likewise.
12301 * vtable-verify.c: Likewise.
12302
12303 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12304
12305 * config/tilegx/tilegx.c: Include "tree.h".
12306
12307 2013-10-23 Jakub Jelinek <jakub@redhat.com>
12308
12309 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
12310 the info, not after it.
12311 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
12312 dump_ssaname_info call.
12313 (pp_gimple_stmt_1): Adjust caller.
12314 (dump_phi_nodes): Likewise. Don't print "# " here.
12315
12316 2013-10-22 Jan Hubicka <jh@suse.cz>
12317
12318 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
12319 tuning flag.
12320 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
12321 * i386.c (expand_small_movmem_or_setmem): New function.
12322 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
12323 function.
12324 (alg_usable_p): Add support for value ranges; cleanup.
12325 (ix86_expand_set_or_movmem): Add support for misaligned moves.
12326
12327 2013-10-22 Sterling Augustine <saugustine@google.com>
12328
12329 * doc/invoke.texi: Document -ggnu-pubnames.
12330 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
12331 logic.
12332 * dwarf2out.c: Include gdb/gdb-index.h.
12333 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
12334 debug_generate_pub_sections.
12335 (is_java, output_pubtables, output_pubname): New functions.
12336 (include_pubname_in_output): Handle debug_generate_pub_sections at
12337 level 2.
12338 (size_of_pubnames): Use new local space_for_flags based on
12339 debug_generate_pub_sections.
12340 (output_pubnames): Unify pubnames and pubtypes output logic.
12341 Genericize comments. Call output_pubname.
12342 (dwarf2out_finish): Move logic to output_pubnames and call it.
12343
12344 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
12345
12346 PR target/58779
12347 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
12348 Remove CCCmode handling.
12349 <case LTU>: Return 'c' suffix for CCCmode.
12350 <case GEU>: Return 'nc' suffix for CCCmode.
12351 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
12352 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
12353 (*sub<mode>3_cc_overflow): Ditto.
12354 (*subsi3_zext_cc_overflow): Ditto.
12355
12356 2013-10-22 Steve Ellcey <sellcey@mips.com>
12357
12358 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
12359 (AND (NOT OP1) (NOT OP2)).
12360
12361 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
12362
12363 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
12364 meaning of merge-high and merge-low masks for little endian; avoid
12365 use of vector-pack masks for little endian for mismatched modes.
12366
12367 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12368
12369 * config/tilepro/tilepro.c: Include "tree.h".
12370
12371 2013-10-22 Andreas Schwab <schwab@suse.de>
12372
12373 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
12374 with PRE_DEC.
12375
12376 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
12377
12378 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
12379 [Ed Smith-Rowland]): New entries.
12380 ([Stephen M. Webb]): Update.
12381
12382 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
12383
12384 * tree-ssa-ter.h: Remove duplicate copy of file contents.
12385
12386 2013-10-21 Marek Polacek <polacek@redhat.com>
12387
12388 PR middle-end/58809
12389 * fold-const.c (fold_range_test): Return 0 if the type is not
12390 an integral type.
12391
12392 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
12393
12394 * system.h: Move hwint.h include further down.
12395 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
12396 gcc_checking_asserts.
12397 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
12398
12399 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12400
12401 Fix volatile issues in optimize_bit_field_compare.
12402 * fold-const.c (optimize_bit_field_compare): Bail out if
12403 lvolatilep or rvolatilep.
12404
12405 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12406
12407 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
12408 and get_inner_reference returning different pmode for non-volatile
12409 bit-field members dependent on flag_strict_volatile_bitfields.
12410 * stor-layout.c (layout_decl): Remove special handling of
12411 flag_strict_volatile_bitfields.
12412 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
12413 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
12414
12415 2013-10-21 Paulo Matos <pmatos@broadcom.com>
12416
12417 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
12418 calculations.
12419
12420 2013-10-21 Jeff Law <law@redhat.com>
12421
12422 * tree-ssa-threadedge.c (thread_through_normal_block): New
12423 argument VISITED. Remove VISISTED as a local variable. When we
12424 have a threadable jump, verify the destination of the jump has not
12425 been visised.
12426 (thread_across_edge): Allocate VISITED bitmap once at function
12427 scope and use it throughout. Make sure to set appropriate bits in
12428 VISITED for E (start of jump thread path).
12429 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
12430 through a joiner if any edge on the path has a recorded jump thread.
12431
12432 2013-10-21 Ian Lance Taylor <iant@google.com>
12433
12434 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
12435 don't imply that attributes can solve all problems.
12436 (Directory Options): Fix typo.
12437
12438 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12439
12440 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
12441 extend and extend_add.
12442
12443 2013-10-21 Richard Biener <rguenther@suse.de>
12444
12445 PR tree-optimization/58794
12446 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
12447 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
12448
12449 2013-10-21 Richard Biener <rguenther@suse.de>
12450
12451 PR middle-end/58742
12452 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
12453 to (T) X for sign-changing conversions (or no conversion).
12454
12455 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
12456
12457 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
12458
12459 2013-10-20 Jan Hubicka <jh@suse.cz>
12460
12461 * config/i386/i386-tune.def: Add comment; organize into categories
12462
12463 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12464
12465 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
12466 argument. Update function comment.
12467 (expand_set_or_movmem_via_rep): New function combining
12468 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
12469 (expand_movmem_via_rep_mov): Remove.
12470 expand_setmem_via_rep_stos): Remove.
12471 (expand_movmem_epilogue): Update calls correspondingly.
12472 (expand_setmem_epilogue_via_loop): Likewise.
12473 (emit_memset): New.
12474 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
12475 (expand_set_or_movmem_prologue): New function combining
12476 expand_movmem_prologue and expand_setmem_prologue.
12477 (expand_movmem_prologue): Remove.
12478 (expand_setmem_prologue): Remove.
12479 (expand_set_or_movmem_constant_prologue): New function combining
12480 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
12481 (expand_constant_movmem_prologue): Remove.
12482 (expand_constant_setmem_prologue): Remove.
12483 (promote_duplicated_reg): Allow vector-const0 value.
12484 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
12485 and ix86_expand_setmem.
12486 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
12487 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
12488
12489 2013-10-21 Diego Novillo <dnovillo@google.com>
12490
12491 * asan.c: Include tree.h
12492 * bb-reorder.c: Likewise.
12493 * cfgcleanup.c: Likewise.
12494 * cfgloopmanip.c: Likewise.
12495 * data-streamer-in.c: Likewise.
12496 * data-streamer-out.c: Likewise.
12497 * data-streamer.c: Likewise.
12498 * dwarf2cfi.c: Likewise.
12499 * graphite-blocking.c: Likewise.
12500 * graphite-clast-to-gimple.c: Likewise.
12501 * graphite-dependences.c: Likewise.
12502 * graphite-interchange.c: Likewise.
12503 * graphite-optimize-isl.c: Likewise.
12504 * graphite-poly.c: Likewise.
12505 * graphite-scop-detection.c: Likewise.
12506 * graphite-sese-to-poly.c: Likewise.
12507 * graphite.c: Likewise.
12508 * ipa-devirt.c: Likewise.
12509 * ipa-profile.c: Likewise.
12510 * ipa.c: Likewise.
12511 * ira.c: Likewise.
12512 * loop-init.c: Likewise.
12513 * loop-unroll.c: Likewise.
12514 * lower-subreg.c: Likewise.
12515 * lto/lto-object.c: Likewise.
12516 * recog.c: Likewise.
12517 * reginfo.c: Likewise.
12518 * tree-loop-distribution.c: Likewise.
12519 * tree-parloops.c: Likewise.
12520 * tree-ssa-strlen.c: Likewise.
12521 * tree-streamer.c: Likewise.
12522 * value-prof.c: Likewise.
12523 * target-globals.c: Likewise.
12524 * expr.h: Include tree-core.h instead of tree.h.
12525 * gimple.h: Likewise.
12526 * ipa-prop.h: Likewise.
12527 * ipa-utils.h: Likewise.
12528 * lto-streamer.h: Likewise.
12529 * streamer-hooks.h: Likewise.
12530 * ipa-reference.h: Include cgraph.h instead of tree.h.
12531 * cgraph.h: Include basic-block.h instead of tree.h.
12532 * tree-streamer.h: Do not include tree.h.
12533 * genattrtab.c (write_header): Generate inclusion of tree.h.
12534 * genautomata.c (main): Likewise.
12535 * genemit.c: Likewise.
12536 * genopinit.c: Likewise.
12537 * genoutput.c (output_prologue): Likewise.
12538 * genpeep.c: Likewise.
12539
12540 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12541
12542 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
12543 little endian.
12544 (vec_unpacku_hi_v8hi): Likewise.
12545 (vec_unpacku_lo_v16qi): Likewise.
12546 (vec_unpacku_lo_v8hi): Likewise.
12547
12548 2013-10-20 Jan Hubicka <jh@suse.cz>
12549
12550 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
12551 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
12552 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
12553
12554 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
12555
12556 * config/mips/mips.h (ISA_HAS_WSBH): Define.
12557 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
12558 constants.
12559 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
12560
12561 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
12562
12563 PR target/58603
12564 * system.h: Undef m_slot.
12565
12566 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12567
12568 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
12569 all elements for both endian flavors.
12570
12571 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12572
12573 PR target/58792
12574 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
12575 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
12576 and SI_REG for 64bit SYSV ABI targets.
12577
12578 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
12579
12580 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
12581 to multi_reg_return. Clarify that we are skipping USEs of multiple
12582 return registers. Use bool type where appropriate.
12583
12584 2013-10-18 Jan Hubicka <jh@suse.cz>
12585
12586 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
12587 for cold functions.
12588 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
12589 (X86_TUNE_PUSH_MEMORY): Likewise.
12590 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
12591 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
12592 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
12593 New.
12594 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
12595 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
12596 Remove.
12597 (ix86_option_override_internal): Update to use tune features instead
12598 of variables.
12599
12600 2013-10-18 Cong Hou <congh@google.com>
12601
12602 PR tree-optimization/58508
12603 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
12604 statement that contains data refs with zero-step.
12605
12606 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12607
12608 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
12609 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
12610 * gimple-low.c (gimple_check_call_arg,
12611 gimple_check_call_matching_types): Move to cgraph.c.
12612 * gimple-low.h: Remove prototype.
12613 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
12614 Relocate from gimple-low.c.
12615 * cgraph.h: Add prototype. Don't include basic-block.h.
12616 * gimplify.c: Add gimple-low to include list.
12617 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
12618 * tree-eh.c: Add gimple-low to include list.
12619 * tree-nested.c: Likewise.
12620 * cfgexpand.c: Add tree-ssa-address.h to include list.
12621 * expr.c: Likewise.
12622 * gimple-fold.c: Likewise.
12623 * gimple-ssa-strength-reduction.c: Likewise.
12624 * trans-mem.c: Likewise.
12625 * tree-mudflap.c: Likewise.
12626 * tree-ssa-loop-ivopts.c: Likewise.
12627 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
12628 (degenerate_phi_result): Move to tree-phinodes.c.
12629 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
12630 * tree-ssa-threadedge.c: Likewise.
12631 * tree-vrp.c: Likewise.
12632 * tree-phinodes.c (degenerate_phi_result): Relocate here.
12633 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
12634 * tree-phinodes.h (degenerate_phi_result): Add prototype.
12635 * tree-ssa-copy.c: Include tree-ssa-dom.h.
12636 * tree-ssa-forwprop.c: Likewise.
12637 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
12638 pass_data_cleanup_cfg_post_optimizing,
12639 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
12640 * tree-optimize.c: Delete File.
12641 * graphite.c: Include tree-cfgcleanup.h.
12642 * passes.c: Likewise.
12643 * tree-cfg.c: Likewise.
12644 * tree-profile.c: Likewise.
12645 * tree-ssa-dse.c: Likewise.
12646 * tree-ssa-loop-ivcanon.c: Likewise.
12647 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
12648 * tree-outof-ssa.c: Include sbitmap.h.
12649 * tree-ssa-live.c: Likewise.
12650 * tree-ssa-propagate.c: Likewise.
12651 * tree-ssa-structalias.c: Likewise.
12652 * tree-stdarg.c: Likewise.
12653 * Makefile.in (OBJS): Delete tree-optimize.o.
12654 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
12655 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
12656 * varasm.c: Include basic-block.h.
12657 * cfgloop.h: Include function.h instead of basic-block.h
12658 (bb_loop_depth): Move to cfgloop.c.
12659 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
12660
12661 2013-10-18 Teresa Johnson <tejohnson@google.com>
12662
12663 * predict.c (probably_never_executed): Compare frequency-based
12664 count to number of training runs.
12665 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
12666
12667 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12668
12669 * config/arm/arm.c (cortexa9_extra_costs): New table.
12670 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
12671
12672 2013-10-18 Jeff Law <law@redhat.com>
12673
12674 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
12675
12676 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
12677 (register_jump_thread): Add "registered_jump_thread" debug
12678 counter support.
12679 * dbgcnt.def (registered_jump_thread): New debug counter.
12680
12681 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12682
12683 * config/rs6000/rs6000.c: Include cgraph.h.
12684
12685 2013-10-18 Teresa Johnson <tejohnson@google.com>
12686
12687 * tree-ssa-tail-merge.c (replace_block_by): Update edge
12688 weights during merging.
12689
12690 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
12691
12692 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
12693 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
12694 * tree-ssa-operands.h: Remove prototype.
12695 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
12696 * gimple.c (virtual_operand_p): Relocate from gimple.c.
12697 * gimple.h: Add prototype.
12698 * gimple-ssa.h: Include tree-ssa-operands.h.
12699 * tree-dump.c: Add tree-cfg.h to include list.
12700 * tree-ssa-alias.c: Add ipa-reference.h to include list.
12701 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
12702 * config/i386/i386.c: Don't include tree-flow.h.
12703 * config/rs6000/rs6000.c: Likewise.
12704
12705 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12706
12707 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
12708
12709 2013-10-18 Richard Biener <rguenther@suse.de>
12710
12711 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
12712 or TYPE_UNSIGNED of integral types.
12713 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
12714 NULL_TREE for zero-precision integral types.
12715
12716 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
12717
12718 * config/aarch64/arm_neon.h
12719 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
12720
12721 2013-10-17 Sriraman Tallam <tmsriram@google.com>
12722
12723 PR target/57756
12724 * opth-gen.awk: Define target_flags_explicit.
12725
12726 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12727
12728 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
12729 fields to the reg_addr array that describes the valid addressing
12730 mode for any register, general purpose registers, floating point
12731 registers, and Altivec registers.
12732 (FIRST_RELOAD_REG_CLASS): Likewise.
12733 (LAST_RELOAD_REG_CLASS): Likewise.
12734 (struct reload_reg_map_type): Likewise.
12735 (reload_reg_map_type): Likewise.
12736 (RELOAD_REG_VALID): Likewise.
12737 (RELOAD_REG_MULTIPLE): Likewise.
12738 (RELOAD_REG_INDEXED): Likewise.
12739 (RELOAD_REG_OFFSET): Likewise.
12740 (RELOAD_REG_PRE_INCDEC): Likewise.
12741 (RELOAD_REG_PRE_MODIFY): Likewise.
12742 (reg_addr): Likewise.
12743 (mode_supports_pre_incdec_p): New helper functions to say whether
12744 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
12745 (mode_supports_pre_modify_p): Likewise.
12746 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
12747 print the valid address mode bits for each mode.
12748 (rs6000_debug_print_mode): Likewise.
12749 (rs6000_debug_reg_global): Likewise.
12750 (rs6000_setup_reg_addr_masks): New function to set up the address
12751 mask bits for each type.
12752 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
12753 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
12754 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
12755 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
12756 PRE_MODIFY are supported.
12757 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
12758 registers, instead of {src,dest}_av_p.
12759 (rs6000_print_options_internal): Tweak the debug output slightly.
12760
12761 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12762
12763 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
12764 isa attribute.
12765
12766 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
12767
12768 * tree-flow.h (struct omp_region): Move to omp-low.c.
12769 Remove omp_ prototypes and variables.
12770 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
12771 (copy_var_decl): Relocate prototype from tree-flow.h.
12772 * gimple.c (copy_var_decl): Relocate from omp-low.c.
12773 * tree.h: Move prototype to omp-low.h.
12774 * omp-low.h: New File. Relocate prototypes here.
12775 * omp-low.c (struct omp_region): Make local here.
12776 (root_omp_region): Make static.
12777 (copy_var_decl) Move to gimple.c.
12778 (new_omp_region): Make static.
12779 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
12780 * tree-cfg.c: Include omp-low.h.
12781 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
12782 * gimplify.c: Include omp-low.h.
12783 * tree-parloops.c: Likewise.
12784
12785 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
12786
12787 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
12788 operands are in memory, prefer to force non-matched operand 1 to
12789 the register.
12790
12791 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
12792
12793 PR target/58673
12794 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
12795 restrict TImode addresses to single indirect registers if both
12796 -mquad-memory and -mvsx-timode are used.
12797 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
12798 we should emit load/store quad. Remove using %y for quad memory
12799 addresses.
12800
12801 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
12802 constraints to allow load/store quad on machines where TImode is
12803 not allowed in VSX registers. Use 'n' instead of 'F' constraint
12804 for TImode to load integer constants.
12805
12806 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12807
12808 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
12809
12810 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
12811
12812 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
12813 handling of STACK_REG.
12814
12815 2013-10-17 Richard Biener <rguenther@suse.de>
12816
12817 PR tree-optimization/58143
12818 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
12819 New function.
12820 (rewrite_to_defined_overflow): Likewise.
12821 (move_computations_dom_walker::before_dom): Rewrite stmts
12822 with undefined signed overflow that are not always executed
12823 into unsigned arithmetic.
12824
12825 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
12826
12827 PR target/57756
12828 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
12829 explicit isa flag to be an options variable, instead of using
12830 global_options_set. Remove define from rs6000.h.
12831 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
12832
12833 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12834 Initialize rs6000_isa_flags_explicit.
12835 (rs6000_function_specific_save): Add gcc_options* parameter, so
12836 that the powerpc builds after the 2013-10-15 changes.
12837 (rs6000_function_specific_restore): Likewise.
12838
12839 2013-10-16 DJ Delorie <dj@redhat.com>
12840
12841 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
12842 op is a REG before checking REGNO.
12843 (rl78_alloc_physical_registers): Verify pattern is a SET before
12844 checking SET_SRC.
12845
12846 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12847
12848 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
12849 endianness.
12850 (vec_unpacks_lo_v4sf): Likewise.
12851 (vec_unpacks_float_hi_v4si): Likewise.
12852 (vec_unpacks_float_lo_v4si): Likewise.
12853 (vec_unpacku_float_hi_v4si): Likewise.
12854 (vec_unpacku_float_lo_v4si): Likewise.
12855
12856 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12857
12858 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
12859 (vsx_concat_v2sf): Likewise.
12860
12861 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
12862
12863 * config/aarch64/aarch64.md
12864 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
12865
12866 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
12867
12868 PR tree-optimization/58697
12869 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
12870 estimated_loop_iterations_int.
12871 (max_stmt_executions_int): Call get_max_loop_iterations_int.
12872 (get_max_loop_iterations_int): New. HWINT version of
12873 get_max_loop_iterations.
12874 * cfgloop.h: Add prototypes.
12875 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
12876 * loop-unroll.c (decide_peel_once_rolling): Call
12877 get_estimated_loop_iterations_int.
12878 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
12879 * tree-ssa-loop-niter.h: Tweak prototypes.
12880
12881 2013-10-16 David Malcolm <dmalcolm@redhat.com>
12882
12883 * gengtype-parse.c (struct_field_seq): Ignore access-control
12884 keywords ("public:" etc).
12885
12886 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
12887
12888 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
12889 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
12890
12891 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
12892
12893 * config/arm/arm.opt (mlra): New option.
12894 * config/arm/arm.c (arm_lra_p): New function.
12895 (TARGET_LRA_P): Define.
12896
12897 2013-10-16 Paulo Matos <pmatos@broadcom.com>
12898
12899 * tree-core.h (tree_code_name): Remove.
12900 * tree.h (get_tree_code_name): New prototype.
12901 * tree.c (tree_code_name): Make static.
12902 (get_tree_code_name): New function.
12903 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
12904 tree_class_check_failed, tree_range_check_failed,
12905 tree_not_class_check_failed, omp_clause_check_failed,
12906 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
12907 wrapper get_tree_code_name instead of calling tree_code_name directly.
12908 * tree-vrp.c (dump_asserts_for): Likewise.
12909 * tree-dump.c (dequeue_and_dump): Likewise.
12910 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
12911 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
12912 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
12913 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
12914 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12915 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
12916 dump_gimple_omp_for): Likewise.
12917 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
12918 * tree-ssa-pre.c (print_pre_expr): Likewise.
12919 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
12920 * print-tree.c (print_node_brief, print_node): Likewise.
12921 * gimple.c (gimple_check_failed): Likewise.
12922 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
12923 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
12924 * config/mep/mep.c (mep_validate_vliw): Likewise.
12925 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
12926 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12927
12928 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12929
12930 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
12931 for AMD bdver3.
12932
12933 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
12934
12935 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
12936 (MULTILIB_MATCHES): Add multilib for -march=v8.
12937
12938 2013-10-15 Sriraman Tallam <tmsriram@google.com>
12939
12940 PR target/57756
12941 * optc-save-gen.awk: Add extra parameter to the save and restore
12942 target calls.
12943 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
12944 * tree.c (build_optimization_node): New parameter. Add extra parameter
12945 to call to cl_optimization_save.
12946 (build_target_option_node): New parameter. Add extra parameter
12947 to call to cl_target_option_save.
12948 * tree.h (build_optimization_node): New parameter.
12949 (build_target_option_node): New parameter.
12950 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
12951 build_optimization_node and build_target_option_node.
12952 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
12953 (handle_pragma_push_options): Ditto.
12954 * toplev.c (process_options): Ditto.
12955 * opts.c (init_options_struct): Check for opts_set non-null.
12956 * target.def (target_option.save): New parameter.
12957 (target_option.restore): New parameter.
12958 * tm.texi: Generate.
12959 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
12960 (ix86_pragma_target_parse): Ditto.
12961 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
12962 parameters.
12963 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
12964 to build_optimization_node and build_target_option_node.
12965 (rs6000_valid_attribute_p): Ditto.
12966 (rs6000_pragma_target_parse): Ditto.
12967 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
12968 data.
12969 * config/i386/i386.h:
12970 TARGET_64BIT_P: New Macro
12971 TARGET_MMX_P: New Macro.
12972 TARGET_3DNOW_P: New Macro.
12973 TARGET_3DNOW_A_P: New Macro.
12974 TARGET_SSE_P: New Macro.
12975 TARGET_SSE2_P: New Macro.
12976 TARGET_SSE3_P: New Macro.
12977 TARGET_SSSE3_P: New Macro.
12978 TARGET_SSE4_1_P: New Macro.
12979 TARGET_SSE4_2_P: New Macro.
12980 TARGET_AVX_P: New Macro.
12981 TARGET_AVX2_P: New Macro.
12982 TARGET_AVX512F_P: New Macro.
12983 TARGET_AVX512PF_P: New Macro.
12984 TARGET_AVX512ER_P: New Macro.
12985 TARGET_AVX512CD_P: New Macro.
12986 TARGET_FMA_P: New Macro.
12987 TARGET_SSE4A_P: New Macro.
12988 TARGET_FMA4_P: New Macro.
12989 TARGET_XOP_P: New Macro.
12990 TARGET_LWP_P: New Macro.
12991 TARGET_ABM_P: New Macro.
12992 TARGET_BMI_P: New Macro.
12993 TARGET_BMI2_P: New Macro.
12994 TARGET_LZCNT_P: New Macro.
12995 TARGET_TBM_P: New Macro.
12996 TARGET_POPCNT_P: New Macro.
12997 TARGET_SAHF_P: New Macro.
12998 TARGET_MOVBE_P: New Macro.
12999 TARGET_CRC32_P: New Macro.
13000 TARGET_AES_P: New Macro.
13001 TARGET_PCLMUL_P: New Macro.
13002 TARGET_CMPXCHG16B_P: New Macro.
13003 TARGET_FSGSBASE_P: New Macro.
13004 TARGET_RDRND_P: New Macro.
13005 TARGET_F16C_P: New Macro.
13006 TARGET_RTM_P: New Macro.
13007 TARGET_HLE_P: New Macro.
13008 TARGET_RDSEED_P: New Macro.
13009 TARGET_PRFCHW_P: New Macro.
13010 TARGET_ADX_P: New Macro.
13011 TARGET_FXSR_P: New Macro.
13012 TARGET_XSAVE_P: New Macro.
13013 TARGET_XSAVEOPT_P: New Macro.
13014 TARGET_LP64_P: New Macro.
13015 TARGET_X32_P: New Macro.
13016 TARGET_FPMATH_DEFAULT_P: New Macro.
13017 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
13018 * config/i386/i386.c (ix86_option_override_internal): New parameters.
13019 opts and opts_set.
13020 Change ix86_tune_string to access opts->x_ix86_tune_string.
13021 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
13022 Change ix86_arch_string to access opts->x_ix86_arch_string.
13023 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
13024 Change ix86_pmode to access opts->x_ix86_pmode.
13025 Change ix86_abi to access opts->x_ix86_abi.
13026 Change ix86_cmodel to access opts->x_ix86_cmodel.
13027 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
13028 Change ix86_isa_flags_explicit to access
13029 opts->x_ix86_isa_flags_explicit.
13030 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
13031 Change ix86_regparm to access opts->x_ix86_regparm.
13032 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
13033 Change ix86_preferred_stack_boundary_arg to access
13034 opts->x_ix86_preferred_stack_boundary_arg.
13035 Change ix86_force_align_arg_pointer to access
13036 opts->x_ix86_force_align_arg_pointer.
13037 Change ix86_incoming_stack_boundar_arg to access
13038 opts->x_ix86_incoming_stack_boundar_arg.
13039 Change ix86_fpmath to access opts->x_ix86_fpmath.
13040 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
13041 Change ix86_recip_name to access opts->x_ix86_recip_name.
13042 Change ix86_stack_protector_guard to access
13043 opts->x_ix86_stack_protector_guard.
13044 Change ix86_tune_memcpy_strategy to access
13045 opts->x_ix86_tune_memcpy_strategy.
13046 Change ix86_tune_memset_strategy to access
13047 opts->x_ix86_tune_memset_strategy.
13048 Change global_options to access opts.
13049 Change global_options_set to access opts_set.
13050 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
13051 Change TARGET_MMX to TARGET_MMX_P (opts->...).
13052 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
13053 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
13054 Change TARGET_SSE to TARGET_SSE_P (opts->...).
13055 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
13056 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
13057 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
13058 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
13059 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
13060 Change TARGET_AVX to TARGET_AVX_P (opts->...).
13061 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
13062 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
13063 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
13064 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
13065 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
13066 Change TARGET_FMA to TARGET_FMA_P (opts->...).
13067 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
13068 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
13069 Change TARGET_XOP to TARGET_XOP_P (opts->...).
13070 Change TARGET_LWP to TARGET_LWP_P (opts->...).
13071 Change TARGET_ABM to TARGET_ABM_P (opts->...).
13072 Change TARGET_BMI to TARGET_BMI_P (opts->...).
13073 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
13074 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
13075 Change TARGET_TBM to TARGET_TBM_P (opts->...).
13076 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
13077 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
13078 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
13079 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
13080 Change TARGET_AES to TARGET_AES_P (opts->...).
13081 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
13082 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
13083 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
13084 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
13085 Change TARGET_F16C to TARGET_F16C_P (opts->...).
13086 Change TARGET_RTM to TARGET_RTM_P (opts->...).
13087 Change TARGET_HLE to TARGET_HLE_P (opts->...).
13088 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
13089 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
13090 Change TARGET_ADX to TARGET_ADX_P (opts->...).
13091 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
13092 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
13093 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
13094 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
13095 Change TARGET_X32 to TARGET_X32_P (opts->...).
13096 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
13097 Change TARGET_FLOAT_RETURNS_IN_80387 to
13098 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
13099 (ix86_function_specific_save): New parameter. Use opts-> fields
13100 to replace global fields.
13101 (ix86_function_specific_restore): Ditto.
13102 (ix86_valid_target_attribute_inner_p): New parameters.
13103 Fix recursive call.
13104 Fix call to ix86_handle_option and set_option.
13105 (ix86_valid_target_attribute_tree): New parameters.
13106 Change global_options to access opts.
13107 Change global_options_set to access opts_set.
13108 Fix call to ix86_valid_target_attribute_inner_p.
13109 Change ix86_tune_string to access opts->x_ix86_tune_string.
13110 Change ix86_arch_string to access opts->x_ix86_arch_string.
13111 Change ix86_fpmath to access opts->x_ix86_fpmath
13112 Fix call to ix86_option_override_internal.
13113 Fix call to ix86_add_new_builtins.
13114 Fix calls to build_optimization_node and build_target_option_node.
13115 (ix86_valid_target_attribute_p): Remove access to global_options.
13116 Use new gcc_options structure func_options.
13117 Fix call to ix86_valid_target_attribute_tree.
13118 Fix call to build_optimization_node.
13119 (get_builtin_code_for_version): Fix call to
13120 ix86_valid_target_attribute_tree.
13121
13122 2013-10-15 David Malcolm <dmalcolm@redhat.com>
13123
13124 * Makefile.in (PICFLAG): New.
13125 (enable_host_shared): New.
13126 (INTERNAL_CFLAGS): Use PICFLAG.
13127 (LIBIBERTY): Use pic build of libiberty.a if configured with
13128 --enable-host-shared.
13129 * configure.ac: Add --enable-host-shared, setting up new
13130 PICFLAG variable.
13131 * configure: Regenerate.
13132 * doc/install.texi (--enable-shared): Add note contrasting it with ...
13133 (--enable-host-shared): New option.
13134
13135 2013-10-15 Richard Biener <rguenther@suse.de>
13136
13137 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
13138 for built-in functions.
13139
13140 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
13141
13142 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
13143 (optimize_range_tests_1): New function,
13144 extracted from optimize_range_tests.
13145 (optimize_range_tests_xor): Similarly.
13146 (optimize_range_tests_diff): New function.
13147 (optimize_range_tests): Use optimize_range_tests_1.
13148
13149 2013-10-15 Cong Hou <congh@google.com>
13150
13151 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
13152 requirement of the reduction pattern so that one operand of the
13153 reduction operation can come from outside of the loop.
13154
13155 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13156
13157 * config/arm/neon-schedgen.ml: Remove.
13158 * config/arm/cortex-a9-neon.md: Remove comment regarding
13159 neon-schedgen.ml.
13160
13161 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13162
13163 * config/arm/types: Remove old neon types.
13164
13165 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13166
13167 * config/arm/cortex-a7.md
13168 (cortex_a7_neon_type): New.
13169 (cortex_a7_neon_mul): Update for new types.
13170 (cortex_a7_neon_mla): Likewise.
13171 (cortex_a7_neon): Likewise.
13172
13173 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13174
13175 * config/arm/cortex-a15-neon.md
13176 (cortex_a15_neon_type): New,
13177
13178 (cortex_a15_neon_int_1): Remove.
13179 (cortex_a15_neon_int_2): Likewise.
13180 (cortex_a15_neon_int_3): Likewise.
13181 (cortex_a15_neon_int_4): Likewise.
13182 (cortex_a15_neon_int_5): Likewise.
13183 (cortex_a15_neon_vqneg_vqabs): Likewise.
13184 (cortex_a15_neon_vmov): Likewise.
13185 (cortex_a15_neon_vaba): Likewise.
13186 (cortex_a15_neon_vaba_qqq): Likewise.
13187 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13188 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13189 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13190 Likewise.
13191 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13192 (cortex_a15_neon_mla_qqq_8_16): Likewise.
13193 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
13194 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13195 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13196 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
13197 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13198 (cortex_a15_neon_shift_1): Likewise.
13199 (cortex_a15_neon_shift_2): Likewise.
13200 (cortex_a15_neon_shift_3): Likewise.
13201 (cortex_a15_neon_vshl_ddd): Likewise.
13202 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13203 (cortex_a15_neon_vsra_vrsra): Likewise.
13204 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13205 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13206 (cortex_a15_neon_bp_3cycle): Likewise.
13207 (cortex_a15_neon_ldm_2): Likewise.
13208 (cortex_a15_neon_stm_2): Likewise.
13209 (cortex_a15_neon_mcr): Likewise.
13210 (cortex_a15_neon_mrc): Likewise.
13211 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
13212 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
13213 (cortex_a15_neon_fp_vmul_ddd): Likewise.
13214 (cortex_a15_neon_fp_vmul_qqd): Likewise.
13215 (cortex_a15_neon_fp_vmla_ddd): Likewise.
13216 (cortex_a15_neon_fp_vmla_qqq): Likewise.
13217 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
13218 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
13219 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13220 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13221 (cortex_a15_neon_bp_simple): Likewise.
13222 (cortex_a15_neon_bp_2cycle): Likewise.
13223 (cortex_a15_neon_bp_3cycle): Likewise.
13224 (cortex_a15_neon_vld1_1_2_regs): Likewise.
13225 (cortex_a15_neon_vld1_3_4_regs): Likewise.
13226 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13227 (cortex_a15_neon_vld2_4_regs): Likewise.
13228 (cortex_a15_neon_vld3_vld4): Likewise.
13229 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13230 (cortex_a15_neon_vst1_3_4_regs): Likewise.
13231 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
13232 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
13233 (cortex_a15_neon_vst3_vst4): Rename to...
13234 (cortex_a15_neon_vst4): This, update for new attributes.
13235 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
13236 (cortex_a15_neon_vld3_vld4_lane): Likewise.
13237 (cortex_a15_neon_vst1_vst2_lane): Likewise.
13238 (cortex_a15_neon_vst3_vst4_lane): Likewise.
13239 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
13240 (cortex_a15_neon_ldm_2): Likewise.
13241 (cortex_a15_neon_stm_2): Likewise.
13242 (cortex_a15_neon_mcr): Likewise.
13243 (cortex_a15_neon_mcr_2_mcrr): Likewise.
13244 (cortex_a15_neon_mrc): Likewise.
13245 (cortex_a15_neon_mrrc): Likewise.
13246
13247 (cortex_a15_neon_abd): New.
13248 (cortex_a15_neon_abd_q): Likewise.
13249 (cortex_a15_neon_aba): Likewise.
13250 (cortex_a15_neon_aba_q): Likewise.
13251 (cortex_a15_neon_acc): Likewise.
13252 (cortex_a15_neon_acc_q): Likewise.
13253 (cortex_a15_neon_arith_basic): Likewise.
13254 (cortex_a15_neon_arith_complex): Likewise.
13255 (cortex_a15_neon_multiply): Likewise.
13256 (cortex_a15_neon_multiply_q): Likewise.
13257 (cortex_a15_neon_mla): Likewise.
13258 (cortex_a15_neon_mla_q): Likewise.
13259 (cortex_a15_neon_sat_mla_long): Likewise.
13260 (cortex_a15_neon_shift_acc): Likewise.
13261 (cortex_a15_neon_shift_imm_basic): Likewise.
13262 (cortex_a15_neon_shift_imm_complex): Likewise.
13263 (cortex_a15_neon_shift_reg_basic): Likewise.
13264 (cortex_a15_neon_shift_reg_basic_q): Likewise.
13265 (cortex_a15_neon_shift_reg_complex): Likewise.
13266 (cortex_a15_neon_shift_reg_complex_q): Likewise.
13267 (cortex_a15_neon_fp_negabs): Likewise
13268 (cortex_a15_neon_fp_arith): Likewise
13269 (cortex_a15_neon_fp_arith_q): Likewise
13270 (cortex_a15_neon_fp_cvt_int): Likewise
13271 (cortex_a15_neon_fp_cvt_int_q): Likewise
13272 (cortex_a15_neon_fp_cvt_16): Likewise
13273 (cortex_a15_neon_fp_mul): Likewise
13274 (cortex_a15_neon_fp_mul_q): Likewise
13275 (cortex_a15_neon_fp_mla): Likewise
13276 (cortex_a15_neon_fp_mla_q): Likewise
13277 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
13278 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
13279 (cortex_a15_neon_bitops): Likewise.
13280 (cortex_a15_neon_bitops_q): Likewise.
13281 (cortex_a15_neon_from_gp): Likewise.
13282 (cortex_a15_neon_from_gp_q): Likewise.
13283 (cortex_a15_neon_tbl3_tbl4): Likewise.
13284 (cortex_a15_neon_zip_q): Likewise.
13285 (cortex_a15_neon_to_gp): Likewise.
13286 (cortex_a15_neon_load_a): Likewise.
13287 (cortex_a15_neon_load_b): Likewise.
13288 (cortex_a15_neon_load_c): Likewise.
13289 (cortex_a15_neon_load_d): Likewise.
13290 (cortex_a15_neon_load_e): Likewise.
13291 (cortex_a15_neon_load_f): Likewise.
13292 (cortex_a15_neon_store_a): Likewise.
13293 (cortex_a15_neon_store_b): Likewise.
13294 (cortex_a15_neon_store_c): Likewise.
13295 (cortex_a15_neon_store_d): Likewise.
13296 (cortex_a15_neon_store_e): Likewise.
13297 (cortex_a15_neon_store_f): Likewise.
13298 (cortex_a15_neon_store_g): Likewise.
13299 (cortex_a15_neon_store_h): Likewise.
13300 (cortex_a15_vfp_to_from_gp): Likewise.
13301
13302 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13303
13304 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
13305
13306 (cortex_a9_neon_vshl_ddd): Remove.
13307 (cortex_a9_neon_vst3_vst4): Likewise.
13308 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13309
13310 (cortex_a9_neon_bit_ops_q): New.
13311
13312 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
13313 (cortex_a9_neon_int_2): Likewise.
13314 (cortex_a9_neon_int_3): Likewise.
13315 (cortex_a9_neon_int_4): Likewise.
13316 (cortex_a9_neon_int_5): Likewise.
13317 (cortex_a9_neon_vqneg_vqabs): Likewise.
13318 (cortex_a9_neon_vmov): Likewise.
13319 (cortex_a9_neon_vaba): Likewise.
13320 (cortex_a9_neon_vaba_qqq): Likewise.
13321 (cortex_a9_neon_shift_1): Likewise.
13322 (cortex_a9_neon_shift_2): Likewise.
13323 (cortex_a9_neon_shift_3): Likewise.
13324 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13325 (cortex_a9_neon_vsra_vrsra): Likewise.
13326 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13327 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13328 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13329 Likewise.
13330 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13331 (cortex_a9_neon_mla_qqq_8_16): Likewise.
13332 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13333 Likewise.
13334 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13335 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13336 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
13337 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13338 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
13339 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
13340 (cortex_a9_neon_fp_vsum): Likewise.
13341 (cortex_a9_neon_fp_vmul_ddd): Likewise.
13342 (cortex_a9_neon_fp_vmul_qqd): Likewise.
13343 (cortex_a9_neon_fp_vmla_ddd): Likewise.
13344 (cortex_a9_neon_fp_vmla_qqq): Likewise.
13345 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
13346 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
13347 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13348 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13349 (cortex_a9_neon_bp_simple): Likewise.
13350 (cortex_a9_neon_bp_2cycle): Likewise.
13351 (cortex_a9_neon_bp_3cycle): Likewise.
13352 (cortex_a9_neon_ldr): Likewise.
13353 (cortex_a9_neon_str): Likewise.
13354 (cortex_a9_neon_vld1_1_2_regs): Likewise.
13355 (cortex_a9_neon_vld1_3_4_regs): Likewise.
13356 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13357 (cortex_a9_neon_vld2_4_regs): Likewise.
13358 (cortex_a9_neon_vld3_vld4): Likewise.
13359 (cortex_a9_neon_vld1_vld2_lane): Likewise.
13360 (cortex_a9_neon_vld3_vld4_lane): Likewise.
13361 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
13362 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13363 (cortex_a9_neon_vst1_3_4_regs): Likewise.
13364 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
13365 (cortex_a9_neon_vst1_vst2_lane): Likewise.
13366 (cortex_a9_neon_vst3_vst4_lane): Likewise.
13367 (cortex_a9_neon_mcr): Likewise.
13368 (cortex_a9_neon_mcr_2_mcrr): Likewise.
13369 (cortex_a9_neon_mrc): Likewise.
13370 (cortex_a9_neon_mrrc): Likewise.
13371
13372 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13373
13374 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
13375
13376 (cortex_a8_neon_vshl_ddd): Remove.
13377 (cortex_a8_neon_vst3_vst4): Likewise.
13378 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
13379
13380 (cortex_a8_neon_bit_ops_q): New.
13381
13382 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
13383 (cortex_a8_neon_int_2): Likewise..
13384 (cortex_a8_neon_int_3): Likewise.
13385 (cortex_a8_neon_int_5): Likewise.
13386 (cortex_a8_neon_vqneg_vqabs): Likewise.
13387 (cortex_a8_neon_int_4): Likewise.
13388 (cortex_a8_neon_vaba): Likewise.
13389 (cortex_a8_neon_vaba_qqq): Likewise.
13390 (cortex_a8_neon_shift_1): Likewise.
13391 (cortex_a8_neon_shift_2): Likewise.
13392 (cortex_a8_neon_shift_3): Likewise.
13393 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
13394 (cortex_a8_neon_vsra_vrsra): Likewise.
13395 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13396 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
13397 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
13398 Likewise.
13399 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
13400 (cortex_a8_neon_mla_qqq_8_16): Likewise.
13401 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
13402 Likewise.
13403 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
13404 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
13405 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
13406 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
13407 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
13408 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
13409 (cortex_a8_neon_fp_vsum): Likewise.
13410 (cortex_a8_neon_fp_vmul_ddd): Likewise.
13411 (cortex_a8_neon_fp_vmul_qqd): Likewise.
13412 (cortex_a8_neon_fp_vmla_ddd): Likewise.
13413 (cortex_a8_neon_fp_vmla_qqq): Likewise.
13414 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
13415 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
13416 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
13417 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
13418 (cortex_a8_neon_bp_simple): Likewise.
13419 (cortex_a8_neon_bp_2cycle): Likewise.
13420 (cortex_a8_neon_bp_3cycle): Likewise.
13421 (cortex_a8_neon_ldr): Likewise.
13422 (cortex_a8_neon_str): Likewise.
13423 (cortex_a8_neon_vld1_1_2_regs): Likewise.
13424 (cortex_a8_neon_vld1_3_4_regs): Likewise.
13425 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
13426 (cortex_a8_neon_vld2_4_regs): Likewise.
13427 (cortex_a8_neon_vld3_vld4): Likewise.
13428 (cortex_a8_neon_vld1_vld2_lane): Likewise.
13429 (cortex_a8_neon_vld3_vld4_lane): Likewise.
13430 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
13431 (cortex_a8_neon_vst1_3_4_regs): Likewise.
13432 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
13433 (cortex_a8_neon_vst1_vst2_lane): Likewise.
13434 (cortex_a8_neon_vst3_vst4_lane): Likewise.
13435 (cortex_a8_neon_mcr): Likewise.
13436 (cortex_a8_neon_mcr_2_mcrr): Likewise.
13437 (cortex_a8_neon_mrc): Likewise.
13438 (cortex_a8_neon_mrrc): Likewise.
13439
13440 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13441
13442 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
13443 (fp): New.
13444 * config/aarch64/aarch64-simd.md (neon_type): Remove.
13445 (aarch64_simd_dup<mode>): Add "type" attribute.
13446 (aarch64_dup_lane<mode>): Likewise.
13447 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
13448 (*aarch64_simd_mov<mode>): Likewise.
13449 (aarch64_simd_mov_from_<mode>low): Likewise.
13450 (aarch64_simd_mov_from_<mode>high): Likewise.
13451 (orn<mode>3): Likewise.
13452 (bic<mode>3): Likewise.
13453 (add<mode>3): Likewise.
13454 (sub<mode>3): Likewise.
13455 (mul<mode>3): Likewise.
13456 (*aarch64_mul3_elt<mode>): Likewise.
13457 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
13458 (*aarch64_mul3_elt_to_128df): Likewise.
13459 (*aarch64_mul3_elt_to_64v2df): Likewise.
13460 (neg<mode>2): Likewise.
13461 (abs<mode>2): Likewise.
13462 (abd<mode>_3): Likewise.
13463 (aba<mode>_3): Likewise.
13464 (fabd<mode>_3): Likewise.
13465 (*fabd_scalar<mode>3): Likewise.
13466 (and<mode>3): Likewise.
13467 (ior<mode>3): Likewise.
13468 (xor<mode>3): Likewise.
13469 (one_cmpl<mode>2): Likewise.
13470 (aarch64_simd_vec_set<mode>): Likewise.
13471 (aarch64_simd_lshr<mode>): Likewise.
13472 (aarch64_simd_ashr<mode>): Likewise.
13473 (aarch64_simd_imm_shl<mode>): Likewise.
13474 (aarch64_simd_reg_sshl<mode): Likewise.
13475 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
13476 (aarch64_simd_reg_shl<mode>_signed): Likewise.
13477 (aarch64_simd_vec_setv2di): Likewise.
13478 (aarch64_simd_vec_set<mode>): Likewise.
13479 (aarch64_mla<mode>): Likewise.
13480 (*aarch64_mla_elt<mode>): Likewise.
13481 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
13482 (aarch64_mls<mode>): Likewise.
13483 (*aarch64_mls_elt<mode>): Likewise.
13484 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
13485 (<su><maxmin><mode>3): Likewise.
13486 (move_lo_quad_<mode>): Likewise.
13487 (aarch64_simd_move_hi_quad_<mode>): Likewise.
13488 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
13489 (vec_pack_trunc_<mode>): Likewise.
13490 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
13491 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
13492 (*aarch64_<su>mlal_lo<mode>): Likewise.
13493 (*aarch64_<su>mlal_hi<mode>): Likewise.
13494 (*aarch64_<su>mlsl_lo<mode>): Likewise.
13495 (*aarch64_<su>mlsl_hi<mode>): Likewise.
13496 (*aarch64_<su>mlal<mode>): Likewise.
13497 (*aarch64_<su>mlsl<mode>): Likewise.
13498 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
13499 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
13500 (add<mode>3): Likewise.
13501 (sub<mode>3): Likewise.
13502 (mul<mode>3): Likewise.
13503 (div<mode>3): Likewise.
13504 (neg<mode>2): Likewise.
13505 (abs<mode>2): Likewise.
13506 (fma<mode>4): Likewise.
13507 (*aarch64_fma4_elt<mode>): Likewise.
13508 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
13509 (*aarch64_fma4_elt_to_128df): Likewise.
13510 (*aarch64_fma4_elt_to_64v2df): Likewise.
13511 (fnma<mode>4): Likewise.
13512 (*aarch64_fnma4_elt<mode>): Likewise.
13513 (*aarch64_fnma4_elt_<vswap_width_name><mode>
13514 (*aarch64_fnma4_elt_to_128df): Likewise.
13515 (*aarch64_fnma4_elt_to_64v2df): Likewise.
13516 (<frint_pattern><mode>2): Likewise.
13517 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13518 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
13519 (vec_unpacks_lo_v4sf): Likewise.
13520 (aarch64_float_extend_lo_v2df): Likewise.
13521 (vec_unpacks_hi_v4sf): Likewise.
13522 (aarch64_float_truncate_lo_v2sf): Likewise.
13523 (aarch64_float_truncate_hi_v4sf): Likewise.
13524 (aarch64_vmls<mode>): Likewise.
13525 (<su><maxmin><mode>3): Likewise.
13526 (<maxmin_uns><mode>3): Likewise.
13527 (reduc_<sur>plus_<mode>): Likewise.
13528 (reduc_<sur>plus_v2di): Likewise.
13529 (reduc_<sur>plus_v2si): Likewise.
13530 (reduc_<sur>plus_<mode>): Likewise.
13531 (aarch64_addpv4sf): Likewise.
13532 (clz<mode>2): Likewise.
13533 (reduc_<maxmin_uns>_<mode>): Likewise.
13534 (reduc_<maxmin_uns>_v2di): Likewise.
13535 (reduc_<maxmin_uns>_v2si): Likewise.
13536 (reduc_<maxmin_uns>_<mode>): Likewise.
13537 (reduc_<maxmin_uns>_v4sf): Likewise.
13538 (aarch64_simd_bsl<mode>_internal): Likewise.
13539 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
13540 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
13541 (aarch64_get_lane<mode>): Likewise.
13542 (*aarch64_combinez<mode>): Likewise.
13543 (aarch64_combine<mode>): Likewise.
13544 (aarch64_simd_combine<mode>): Likewise.
13545 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
13546 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
13547 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
13548 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
13549 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
13550 (aarch64_<sur>h<addsub><mode>): Likewise.
13551 (aarch64_<sur><addsub>hn<mode>): Likewise.
13552 (aarch64_<sur><addsub>hn2<mode>): Likewise.
13553 (aarch64_pmul<mode>): Likewise.
13554 (aarch64_<su_optab><optab><mode>): Likewise.
13555 (aarch64_<sur>qadd<mode>): Likewise.
13556 (aarch64_sqmovun<mode>): Likewise.
13557 (aarch64_<sur>qmovn<mode>): Likewise.
13558 (aarch64_s<optab><mode>): Likewise.
13559 (aarch64_sq<r>dmulh<mode>): Likewise.
13560 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13561 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
13562 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
13563 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
13564 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13565 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
13566 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
13567 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
13568 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13569 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
13570 (aarch64_sqdmull<mode>): Likewise.
13571 (aarch64_sqdmull_lane<mode>_internal): Likewise.
13572 (aarch64_sqdmull_n<mode>): Likewise.
13573 (aarch64_sqdmull2<mode>_internal): Likewise.
13574 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13575 (aarch64_sqdmull2_n<mode>_internal): Likewise.
13576 (aarch64_<sur>shl<mode>): Likewise.
13577 (aarch64_<sur>q<r>shl<mode>
13578 (aarch64_<sur>shll_n<mode>): Likewise.
13579 (aarch64_<sur>shll2_n<mode>): Likewise.
13580 (aarch64_<sur>shr_n<mode>): Likewise.
13581 (aarch64_<sur>sra_n<mode>): Likewise.
13582 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13583 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13584 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
13585 (aarch64_cm<optab><mode>): Likewise.
13586 (aarch64_cm<optab>di): Likewise.
13587 (aarch64_cm<optab><mode>): Likewise.
13588 (aarch64_cm<optab>di): Likewise.
13589 (aarch64_cmtst<mode>): Likewise.
13590 (aarch64_cmtstdi): Likewise.
13591 (aarch64_cm<optab><mode>): Likewise.
13592 (*aarch64_fac<optab><mode>): Likewise.
13593 (aarch64_addp<mode>): Likewise.
13594 (aarch64_addpdi): Likewise.
13595 (sqrt<mode>2): Likewise.
13596 (vec_load_lanesoi<mode>): Likewise.
13597 (vec_store_lanesoi<mode>): Likewise.
13598 (vec_load_lanesci<mode>): Likewise.
13599 (vec_store_lanesci<mode>): Likewise.
13600 (vec_load_lanesxi<mode>): Likewise.
13601 (vec_store_lanesxi<mode>): Likewise.
13602 (*aarch64_mov<mode>): Likewise.
13603 (aarch64_ld2<mode>_dreg): Likewise.
13604 (aarch64_ld2<mode>_dreg): Likewise.
13605 (aarch64_ld3<mode>_dreg): Likewise.
13606 (aarch64_ld3<mode>_dreg): Likewise.
13607 (aarch64_ld4<mode>_dreg): Likewise.
13608 (aarch64_ld4<mode>_dreg): Likewise.
13609 (aarch64_tbl1<mode>): Likewise.
13610 (aarch64_tbl2v16qi): Likewise.
13611 (aarch64_combinev16qi): Likewise.
13612 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
13613 (aarch64_st2<mode>_dreg): Likewise.
13614 (aarch64_st2<mode>_dreg): Likewise.
13615 (aarch64_st3<mode>_dreg): Likewise.
13616 (aarch64_st3<mode>_dreg): Likewise.
13617 (aarch64_st4<mode>_dreg): Likewise.
13618 (aarch64_st4<mode>_dreg): Likewise.
13619 (*aarch64_simd_ld1r<mode>): Likewise.
13620 (aarch64_frecpe<mode>): Likewise.
13621 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13622 (aarch64_frecps<mode>): Likewise.
13623
13624 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13625
13626 * config/arm/iterators.md (V_elem_ch): New.
13627 (q): Likewise.
13628 (VQH_type): Likewise.
13629 * config/arm/arm.md (is_neon_type): New.
13630 (conds): Use is_neon_type.
13631 (anddi3_insn): Update type attribute.
13632 (xordi3_insn): Likewise.
13633 (one_cmpldi2): Likewise.
13634 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
13635 * config/arm/neon.md (neon_mov): Update type attribute.
13636 (*movmisalign<mode>_neon_store): Likewise.
13637 (*movmisalign<mode>_neon_load): Likewise.
13638 (vec_set<mode>_internal): Likewise.
13639 (vec_set<mode>_internal): Likewise.
13640 (vec_setv2di_internal): Likewise.
13641 (vec_extract<mode>): Likewise.
13642 (vec_extract<mode>): Likewise.
13643 (vec_extractv2di): Likewise.
13644 (*add<mode>3_neon): Likewise.
13645 (adddi3_neon): Likewise.
13646 (*sub<mode>3_neon): Likewise.
13647 (subdi3_neon): Likewise.
13648 (fma<VCVTF:mode>4): Likewise.
13649 (fma<VCVTF:mode>4_intrinsic): Likewise.
13650 (*fmsub<VCVTF:mode>4): Likewise.
13651 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
13652 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
13653 (ior<mode>3): Likewise.
13654 (and<mode>3): Likewise.
13655 (orn<mode>3_neon): Likewise.
13656 (orndi3_neon): Likewise.
13657 (bic<mode>3_neon): Likewise.
13658 (bicdi3_neon): Likewise.
13659 (xor<mode>3): Likewise.
13660 (one_cmpl<mode>2): Likewise.
13661 (abs<mode>2): Likewise.
13662 (neg<mode>2): Likewise.
13663 (negdi2_neon): Likewise.
13664 (*umin<mode>3_neon): Likewise.
13665 (*umax<mode>3_neon): Likewise.
13666 (*smin<mode>3_neon): Likewise.
13667 (*smax<mode>3_neon): Likewise.
13668 (vashl<mode>3): Likewise.
13669 (vashr<mode>3_imm): Likewise.
13670 (vlshr<mode>3_imm): Likewise.
13671 (ashl<mode>3_signed): Likewise.
13672 (ashl<mode>3_unsigned): Likewise.
13673 (neon_load_count): Likewise.
13674 (ashldi3_neon_noclobber): Likewise.
13675 (ashldi3_neon): Likewise.
13676 (signed_shift_di3_neon): Likewise.
13677 (unsigned_shift_di3_neon): Likewise.
13678 (ashrdi3_neon_imm_noclobber): Likewise.
13679 (lshrdi3_neon_imm_noclobber): Likewise.
13680 (<shift>di3_neon): Likewise.
13681 (widen_ssum<mode>3): Likewise.
13682 (widen_usum<mode>3): Likewise.
13683 (quad_halves_<code>v4si): Likewise.
13684 (quad_halves_<code>v4sf): Likewise.
13685 (quad_halves_<code>v8hi): Likewise.
13686 (quad_halves_<code>v16qi): Likewise.
13687 (reduc_splus_v2di): Likewise.
13688 (neon_vpadd_internal<mode>): Likewise.
13689 (neon_vpsmin<mode>): Likewise.
13690 (neon_vpsmax<mode>): Likewise.
13691 (neon_vpumin<mode>): Likewise.
13692 (neon_vpumax<mode>): Likewise.
13693 (*ss_add<mode>_neon): Likewise.
13694 (*us_add<mode>_neon): Likewise.
13695 (*ss_sub<mode>_neon): Likewise.
13696 (*us_sub<mode>_neon): Likewise.
13697 (neon_vadd<mode>_unspec): Likewise.
13698 (neon_vaddl<mode>): Likewise.
13699 (neon_vaddw<mode>): Likewise.
13700 (neon_vhadd<mode>): Likewise.
13701 (neon_vqadd<mode>): Likewise.
13702 (neon_vaddhn<mode>): Likewise.
13703 (neon_vmul<mode>): Likewise.
13704 (neon_vfms<VCVTF:mode>): Likewise.
13705 (neon_vmlal<mode>): Likewise.
13706 (neon_vmls<mode>): Likewise.
13707 (neon_vmlsl<mode>): Likewise.
13708 (neon_vqdmulh<mode>): Likewise.
13709 (neon_vqdmlal<mode>): Likewise.
13710 (neon_vqdmlsl<mode>): Likewise.
13711 (neon_vmull<mode>): Likewise.
13712 (neon_vqdmull<mode>): Likewise.
13713 (neon_vsub<mode>_unspec): Likewise.
13714 (neon_vsubl<mode>): Likewise.
13715 (neon_vsubw<mode>): Likewise.
13716 (neon_vqsub<mode>): Likewise.
13717 (neon_vhsub<mode>): Likewise.
13718 (neon_vsubhn<mode>): Likewise.
13719 (neon_vceq<mode>): Likewise.
13720 (neon_vcge<mode>): Likewise.
13721 (neon_vcgeu<mode>): Likewise.
13722 (neon_vcgt<mode>): Likewise.
13723 (neon_vcgtu<mode>): Likewise.
13724 (neon_vcle<mode>): Likewise.
13725 (neon_vclt<mode>): Likewise.
13726 (neon_vcage<mode>): Likewise.
13727 (neon_vcagt<mode>): Likewise.
13728 (neon_vtst<mode>): Likewise.
13729 (neon_vabd<mode>): Likewise.
13730 (neon_vabdl<mode>): Likewise.
13731 (neon_vaba<mode>): Likewise.
13732 (neon_vabal<mode>): Likewise.
13733 (neon_vmax<mode>): Likewise.
13734 (neon_vmin<mode>): Likewise.
13735 (neon_vpaddl<mode>): Likewise.
13736 (neon_vpadal<mode>): Likewise.
13737 (neon_vpmax<mode>): Likewise.
13738 (neon_vpmin<mode>): Likewise.
13739 (neon_vrecps<mode>): Likewise.
13740 (neon_vrsqrts<mode>): Likewise.
13741 (neon_vqabs<mode>): Likewise.
13742 (neon_vqneg<mode>): Likewise.
13743 (neon_vcls<mode>): Likewise.
13744 (clz<mode>2): Likewise.
13745 (popcount<mode>2): Likewise.
13746 (neon_vrecpe<mode>): Likewise.
13747 (neon_vrsqrte<mode>): Likewise.
13748 (neon_vget_lane<mode>_sext_internal): Likewise.
13749 (neon_vget_lane<mode>_zext_internal): Likewise.
13750 (neon_vdup_n<mode>): Likewise.
13751 (neon_vdup_n<mode>): Likewise.
13752 (neon_vdup_nv2di): Likewise.
13753 (neon_vdup_lane<mode>_interal): Likewise.
13754 (*neon_vswp<mode>): Likewise.
13755 (neon_vcombine<mode>): Likewise.
13756 (float<mode><V_cvtto>2): Likewise.
13757 (floatuns<mode><V_cvtto>2): Likewise.
13758 (fix_trunc<mode><V_cvtto>2): Likewise.
13759 (fixuns_trunc<mode><V_cvtto>2
13760 (neon_vcvt<mode>): Likewise.
13761 (neon_vcvt<mode>): Likewise.
13762 (neon_vcvtv4sfv4hf): Likewise.
13763 (neon_vcvtv4hfv4sf): Likewise.
13764 (neon_vcvt_n<mode>): Likewise.
13765 (neon_vcvt_n<mode>): Likewise.
13766 (neon_vmovn<mode>): Likewise.
13767 (neon_vqmovn<mode>): Likewise.
13768 (neon_vqmovun<mode>): Likewise.
13769 (neon_vmovl<mode>): Likewise.
13770 (neon_vmul_lane<mode>): Likewise.
13771 (neon_vmul_lane<mode>): Likewise.
13772 (neon_vmull_lane<mode>): Likewise.
13773 (neon_vqdmull_lane<mode>): Likewise.
13774 (neon_vqdmulh_lane<mode>): Likewise.
13775 (neon_vqdmulh_lane<mode>): Likewise.
13776 (neon_vmla_lane<mode>): Likewise.
13777 (neon_vmla_lane<mode>): Likewise.
13778 (neon_vmlal_lane<mode>): Likewise.
13779 (neon_vqdmlal_lane<mode>): Likewise.
13780 (neon_vmls_lane<mode>): Likewise.
13781 (neon_vmls_lane<mode>): Likewise.
13782 (neon_vmlsl_lane<mode>): Likewise.
13783 (neon_vqdmlsl_lane<mode>): Likewise.
13784 (neon_vext<mode>): Likewise.
13785 (neon_vrev64<mode>): Likewise.
13786 (neon_vrev32<mode>): Likewise.
13787 (neon_vrev16<mode>): Likewise.
13788 (neon_vbsl<mode>_internal): Likewise.
13789 (neon_vshl<mode>): Likewise.
13790 (neon_vqshl<mode>): Likewise.
13791 (neon_vshr_n<mode>): Likewise.
13792 (neon_vshrn_n<mode>): Likewise.
13793 (neon_vqshrn_n<mode>): Likewise.
13794 (neon_vqshrun_n<mode>): Likewise.
13795 (neon_vshl_n<mode>): Likewise.
13796 (neon_vqshl_n<mode>): Likewise.
13797 (neon_vqshlu_n<mode>): Likewise.
13798 (neon_vshll_n<mode>): Likewise.
13799 (neon_vsra_n<mode>): Likewise.
13800 (neon_vsri_n<mode>): Likewise.
13801 (neon_vsli_n<mode>): Likewise.
13802 (neon_vtbl1v8qi): Likewise.
13803 (neon_vtbl2v8qi): Likewise.
13804 (neon_vtbl3v8qi): Likewise.
13805 (neon_vtbl4v8qi): Likewise.
13806 (neon_vtbl1v16qi): Likewise.
13807 (neon_vtbl2v16qi): Likewise.
13808 (neon_vcombinev16qi): Likewise.
13809 (neon_vtbx1v8qi): Likewise.
13810 (neon_vtbx2v8qi): Likewise.
13811 (neon_vtbx3v8qi): Likewise.
13812 (neon_vtbx4v8qi): Likewise.
13813 (*neon_vtrn<mode>_insn): Likewise.
13814 (*neon_vzip<mode>_insn): Likewise.
13815 (*neon_vuzp<mode>_insn): Likewise.
13816 (neon_vld1<mode>): Likewise.
13817 (neon_vld1_lane<mode>): Likewise.
13818 (neon_vld1_lane<mode>): Likewise.
13819 (neon_vld1_dup<mode>): Likewise.
13820 (neon_vld1_dup<mode>): Likewise.
13821 (neon_vld1_dupv2di): Likewise.
13822 (neon_vst1<mode>): Likewise.
13823 (neon_vst1_lane<mode>): Likewise.
13824 (neon_vst1_lane<mode>): Likewise.
13825 (neon_vld2<mode>): Likewise.
13826 (neon_vld2<mode>): Likewise.
13827 (neon_vld2_lane<mode>): Likewise.
13828 (neon_vld2_lane<mode>): Likewise.
13829 (neon_vld2_dup<mode>): Likewise.
13830 (neon_vst2<mode>): Likewise.
13831 (neon_vst2<mode>): Likewise.
13832 (neon_vst2_lane<mode>): Likewise.
13833 (neon_vst2_lane<mode>): Likewise.
13834 (neon_vld3<mode>): Likewise.
13835 (neon_vld3qa<mode>): Likewise.
13836 (neon_vld3qb<mode>): Likewise.
13837 (neon_vld3_lane<mode>): Likewise.
13838 (neon_vld3_lane<mode>): Likewise.
13839 (neon_vld3_dup<mode>): Likewise.
13840 (neon_vst3<mode>): Likewise.
13841 (neon_vst3qa<mode>): Likewise.
13842 (neon_vst3qb<mode>): Likewise.
13843 (neon_vst3_lane<mode>): Likewise.
13844 (neon_vst3_lane<mode>): Likewise.
13845 (neon_vld4<mode>): Likewise.
13846 (neon_vld4qa<mode>): Likewise.
13847 (neon_vld4qb<mode>): Likewise.
13848 (neon_vld4_lane<mode>): Likewise.
13849 (neon_vld4_lane<mode>): Likewise.
13850 (neon_vld4_dup<mode>): Likewise.
13851 (neon_vst4<mode>): Likewise.
13852 (neon_vst4qa<mode>): Likewise.
13853 (neon_vst4qb<mode>): Likewise.
13854 (neon_vst4_lane<mode>): Likewise.
13855 (neon_vst4_lane<mode>): Likewise.
13856 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13857 (neon_vec_unpack<US>_hi_<mode>): Likewise.
13858 (neon_vec_<US>mult_lo_<mode>): Likewise.
13859 (neon_vec_<US>mult_hi_<mode>): Likewise.
13860 (neon_vec_<US>shiftl_<mode>): Likewise.
13861 (neon_unpack<US>_<mode>): Likewise.
13862 (neon_vec_<US>mult_<mode>): Likewise.
13863 (vec_pack_trunc_<mode>): Likewise.
13864 (neon_vec_pack_trunc_<mode>): Likewise.
13865 (neon_vabd<mode>_2): Likewise.
13866 (neon_vabd<mode>_3): Likewise.
13867
13868 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13869
13870 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
13871 (load_pair): Update type attribute.
13872 (store_pair): Update type attribute.
13873 * config/aarch64/iterators.md (q): New.
13874
13875 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
13876
13877 * config/arm/types.md: Add new types for Neon insns.
13878
13879 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13880 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13881 Sergey Lega <sergey.s.lega@intel.com>
13882 Anna Tikhonova <anna.tikhonova@intel.com>
13883 Ilya Tocar <ilya.tocar@intel.com>
13884 Andrey Turetskiy <andrey.turetskiy@intel.com>
13885 Ilya Verbin <ilya.verbin@intel.com>
13886 Kirill Yukhin <kirill.yukhin@intel.com>
13887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13888
13889 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
13890 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
13891 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
13892 (rcp14<mode>): New.
13893 (srcp14<mode>): Ditto.
13894 (rsqrt14<mode>): Ditto.
13895 (rsqrt14<mode>): Ditto.
13896 (avx512f_vmscalef<mode>): Ditto.
13897 (avx512f_scalef<mode>): Ditto.
13898 (avx512f_getexp<mode>): Ditto.
13899 (avx512f_sgetexp<mode>): Ditto.
13900 (avx512f_fixupimm<mode>): Ditto.
13901 (avx512f_sfixupimm<mode>): Ditto.
13902 (avx512f_rndscale<mode>): Ditto.
13903 (*avx512er_exp2<mode>): Ditto.
13904 (*avx512er_rcp28<mode>): Ditto.
13905 (avx512er_rsqrt28<mode>): Ditto.
13906 (avx512f_getmant<mode>): Ditto.
13907 (avx512f_getmant<mode>): Ditto.
13908 (avx512f_rndscale<mode>): Fix formatting.
13909
13910 2013-10-15 Martin Jambor <mjambor@suse.cz>
13911
13912 * ipa-utils.h (ipa_edge_within_scc): Declare.
13913 * ipa-cp.c (edge_within_scc): Moved...
13914 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
13915
13916 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13917 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13918 Sergey Lega <sergey.s.lega@intel.com>
13919 Anna Tikhonova <anna.tikhonova@intel.com>
13920 Ilya Tocar <ilya.tocar@intel.com>
13921 Andrey Turetskiy <andrey.turetskiy@intel.com>
13922 Ilya Verbin <ilya.verbin@intel.com>
13923 Kirill Yukhin <kirill.yukhin@intel.com>
13924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13925
13926 * config/i386/predicates.md (const_8_to_15_operand): New.
13927 (const_16_to_31_operand): Ditto.
13928 * config/i386/sse.md (V8FI): New.
13929 (V16FI): Ditto.
13930 (reduc_splus_v8df): Ditto.
13931 (reduc_splus_v16sf): Ditto.
13932 (avx512f_vextract<shuffletype>32x4_1): Ditto.
13933 (vec_extract_hi_<mode>): Ditto.
13934 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
13935 (vec_set_lo_<mode>): Ditto.
13936 (vec_set_hi_<mode>): Ditto.
13937 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
13938 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
13939 (avx512f_pshufd_1): Ditto.
13940 (avx512f_broadcast<mode>): Ditto.
13941 (avx512f_broadcast<mode>): Ditto.
13942 (define_split): Split vec_extract_lo into move.
13943 (ssequartermode): Ditto.
13944 (ssedoublemode): Extened with wider modes.
13945 (vec_extract_lo_<mode>): Ditto.
13946
13947 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13949 Sergey Lega <sergey.s.lega@intel.com>
13950 Anna Tikhonova <anna.tikhonova@intel.com>
13951 Ilya Tocar <ilya.tocar@intel.com>
13952 Andrey Turetskiy <andrey.turetskiy@intel.com>
13953 Ilya Verbin <ilya.verbin@intel.com>
13954 Kirill Yukhin <kirill.yukhin@intel.com>
13955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13956
13957 * config/i386/predicates.md (register_or_constm1_operand): New.
13958 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
13959 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
13960 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
13961 UNSPEC_SCATTER_PREFETCH
13962 (VI48_512): New.
13963 (avx512f_ucmp<mode>3): Ditto.
13964 (avx512f_vternlog<mode>): Ditto.
13965 (avx512f_align<mode>): Ditto.
13966 (<shift_insn><mode>3): Ditto.
13967 (avx512f_<rotate>v<mode>): Ditto.
13968 (avx512f_<rotate><mode>): Ditto.
13969 (avx512f_eq<mode>3): Ditto.
13970 (avx512f_eq<mode>3_1): Ditto.
13971 (avx512f_gt<mode>3): Ditto.
13972 (avx512f_testm<mode>3): Ditto.
13973 (avx512f_testnm<mode>3): Ditto.
13974 (avx512pf_gatherpf<mode>): Ditto.
13975 (*avx512pf_gatherpf<mode>_mask): Ditto.
13976 (*avx512pf_gatherpf<mode>): Ditto.
13977 (avx512pf_scatterpf<mode>): Ditto.
13978 (*avx512pf_scatterpf<mode>_mask): Ditto.
13979 (*avx512pf_scatterpf<mode>): Ditto.
13980 (avx512f_vec_dup_gpr<mode>): Ditto.
13981 (clz<mode>2): Ditto.
13982 (conflict<mode>): Ditto.
13983 (REDUC_SMINMAX_MODE): Extened with wider modes.
13984 (reduc_<code>_<mode>): Ditto.
13985 (vlshr<mode>3): Ditto.
13986 (vashl<mode>3): Ditto.
13987
13988 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
13989 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13990 Sergey Lega <sergey.s.lega@intel.com>
13991 Anna Tikhonova <anna.tikhonova@intel.com>
13992 Ilya Tocar <ilya.tocar@intel.com>
13993 Andrey Turetskiy <andrey.turetskiy@intel.com>
13994 Ilya Verbin <ilya.verbin@intel.com>
13995 Kirill Yukhin <kirill.yukhin@intel.com>
13996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13997
13998 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
13999 UNSPEC_SCATTER.
14000 (VI48F_512): New.
14001 (avx512fmaskmode): Ditto.
14002 (bcstscalarsuff): Ditto.
14003 (avx512f_blendm<mode>): Ditto.
14004 (cmp_imm_predicate): Ditto.
14005 (avx512f_cmp<mode>3): Ditto.
14006 (avx512f_vec_dup<mode>): Ditto.
14007 (avx512f_vec_dup_mem<mode>): Ditto.
14008 (avx512f_vpermi2var<mode>3): Ditto.
14009 (avx512f_vpermt2var<mode>3): Ditto.
14010 (vec_init<mode>): Ditto.
14011 (avx512f_gathersi<mode>): Ditto.
14012 (*avx512f_gathersi<mode>): Ditto.
14013 (*avx512f_gathersi<mode>_2): Ditto.
14014 (avx512f_gatherdi<mode>): Ditto.
14015 (*avx512f_gatherdi<mode>): Ditto.
14016 (*avx512f_gatherdi<mode>_2): Ditto.
14017 (avx512f_scattersi<mode>): Ditto.
14018 (*avx512f_scattersi<mode>): Ditto.
14019 (avx512f_scatterdi<mode>): Ditto.
14020 (*avx512f_scatterdi<mode>): Ditto.
14021 (sseintprefix): Extened with wider modes.
14022 (VEC_GATHER_IDXSI): Ditto.
14023 (VEC_GATHER_IDXDI): Ditto.
14024 (VEC_GATHER_SRCDI): Ditto.
14025
14026 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14027 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14028
14029 * config/arm/t-aprofile: New file.
14030 * config.gcc: Handle --with-multilib-list option.
14031
14032 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
14033
14034 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
14035 the input for r2.
14036
14037 2013-10-15 Richard Biener <rguenther@suse.de>
14038
14039 * tree-loop-distribution.c (build_empty_rdg): Inline into
14040 single user.
14041 (rdg_flag_vertex): Inline into single user.
14042 (rdg_flag_vertex_and_dependent): Likewise.
14043 (build_rdg_partition_for_vertex): Remove processed bitmap.
14044 (rdg_build_partitions): Simplify.
14045
14046 2013-10-15 Richard Biener <rguenther@suse.de>
14047
14048 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14049 Restructure forwarding through conversions and copies to
14050 avoid performing copy-propagation the wrong way. Adjust
14051 recursion invocations.
14052 (forward_propagate_addr_expr): Add argument stating if we
14053 are recursing from a single-use.
14054 (ssa_forward_propagate_and_combine): Adjust.
14055
14056 2013-10-14 David Malcolm <dmalcolm@redhat.com>
14057
14058 * dumpfile.h (gcc::dump_manager): New class, to hold state
14059 relating to dumpfile management.
14060 (get_dump_file_name): Remove in favor of method of dump_manager.
14061 (dump_initialized_p): Likewise.
14062 (dump_start): Likewise.
14063 (dump_finish): Likewise.
14064 (dump_switch_p): Likewise.
14065 (dump_register): Likewise.
14066 (get_dump_file_info): Likewise.
14067 * context.c (gcc::context::context): Construct the dump_manager
14068 instance.
14069 * context.h (gcc::context::get_dumps): New.
14070 (gcc::context::m_dumps): New.
14071 * coverage.c (coverage_init): Port to dump_manager API.
14072 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
14073 (extra_dump_files_in_use): Likewise.
14074 (extra_dump_files_alloced): Likewise.
14075 (gcc::dump_manager::dump_manager): New.
14076 (dump_register): Convert to...
14077 (gcc::dump_manager::dump_register): ...method, replacing
14078 function-static next_dump with m_next_dump field.
14079 (get_dump_file_info): Convert to...
14080 (gcc::dump_manager::get_dump_file_info): ...method.
14081 (get_dump_file_name): Convert to...
14082 (gcc::dump_manager::get_dump_file_name): ...method.
14083 (dump_start): Convert to...
14084 (gcc::dump_manager::dump_start): ...method.
14085 (dump_finish): Convert to...
14086 (gcc::dump_manager::dump_finish): ...method.
14087 (dump_begin): Replace body with...
14088 (gcc::dump_manager::dump_begin): ...new method.
14089 (dump_phase_enabled_p): Convert to...
14090 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14091 (dump_phase_enabled_p): Convert to...
14092 (gcc::dump_manager::dump_phase_enabled_p): ...method.
14093 (dump_initialized_p): Convert to...
14094 (gcc::dump_manager::dump_initialized_p): ...method.
14095 (dump_flag_name): Replace body with...
14096 (gcc::dump_manager::dump_flag_name): ...new method.
14097 (dump_enable_all): Convert to...
14098 (gcc::dump_manager::dump_enable_all): ...new method.
14099 (opt_info_enable_passes): Convert to...
14100 (gcc::dump_manager::opt_info_enable_passes): ...new method.
14101 (dump_switch_p_1): Convert to...
14102 (gcc::dump_manager::dump_switch_p_1): ...new method.
14103 (dump_switch_p): Convert to...
14104 (gcc::dump_manager::dump_switch_p): ...new method.
14105 (opt_info_switch_p): Port to dump_manager API.
14106 (enable_rtl_dump_file): Likewise.
14107 * opts-global.c (handle_common_deferred_options): Port to new
14108 dump_manager API.
14109 * passes.c (pass_manager::finish_optimization_passes): Likewise.
14110 (pass_manager::register_one_dump_file): Likewise.
14111 (pass_manager::register_pass): Likewise.
14112 (pass_init_dump_file): Likewise.
14113 (pass_fini_dump_file): Likewise.
14114 * statistics.c (statistics_early_init): Likewise.
14115
14116 2013-10-14 Richard Biener <rguenther@suse.de>
14117
14118 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
14119 iterative_hash_canonical_type, gimple_canonical_type_hash,
14120 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
14121 gimple_register_canonical_type, print_gimple_types_stats,
14122 free_gimple_type_tables): Move to lto/lto.c
14123 (gt-gimple.h): Do not include.
14124 * gimple.h (gimple_register_canonical_type,
14125 print_gimple_types_stats, free_gimple_type_tables): Remove.
14126 * Makefile.in (GTFILES): Remove gimple.c.
14127
14128 2013-10-14 Travis Snoozy <quandary@remstate.com>
14129
14130 PR target/58716
14131 * config/msp430/msp430.c (msp430_option_override): Correct thinko
14132 scanning for msp430x targets.
14133
14134 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
14135
14136 PR bootstrap/58509
14137 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
14138 (registers_ok_for_ldd_peep): Move around.
14139 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
14140 * config/sparc/sparc.md (widening peepholes): Use it.
14141
14142 2013-10-14 Richard Biener <rguenther@suse.de>
14143
14144 PR middle-end/58712
14145 PR middle-end/55358
14146 * gimple.c (iterative_hash_canonical_type): Make sure to
14147 record the hash into the correct hashtable slot.
14148
14149 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
14150
14151 PR rtl-optimization/58662
14152 * combine.c (try_combine): Take into account death nodes on I2 when
14153 splitting a PARALLEL of two independent SETs. Fix dump message.
14154
14155 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
14156
14157 PR target/51244
14158 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
14159 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
14160 extra_objs.
14161 * config/sh/t-sh (sh_treg_combine.o): New entry.
14162 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
14163 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
14164 (register_sh_passes): New function. Register sh_treg_combine pass.
14165 (sh_option_override): Invoke it.
14166 (sh_canonicalize_comparison): Handle op0_preserve_value.
14167 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
14168 opportunities. Canonicalize branch condition.
14169 (nott): Allow only if pseudos can be created for non-SH2A.
14170
14171 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
14172
14173 PR target/58690
14174 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
14175 (ix86_expand_movmem): Replace copy_addr_to_reg with
14176 ix86_copy_addr_to_reg.
14177 (ix86_expand_setmem): Likewise.
14178
14179 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
14180
14181 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
14182 provided by ix86_fp_compare_mode instead of CCFPUmode.
14183
14184 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
14185
14186 * config/aarch64/arm_neon.h
14187 (vtbx<1,3>_<psu>8): Fix register constriants.
14188
14189 2013-10-11 Jeff Law <law@redhat.com>
14190
14191 PR tree-optimization/58640
14192 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
14193 threading paths that cross over two loop entry points.
14194
14195 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14196
14197 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
14198 handle vector float as well.
14199 (*vsx_le_perm_load_v4si): Likewise.
14200 (*vsx_le_perm_store_v2di): Likewise.
14201 (*vsx_le_perm_store_v4si): Likewise.
14202
14203 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14204
14205 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
14206 directly to circumvent subtract from splat{31} workaround.
14207 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
14208 prototype.
14209 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
14210 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
14211 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
14212 (altivec_vperm_<mode>): Convert to define_insn_and_split to
14213 separate big and little endian logic.
14214 (*altivec_vperm_<mode>_internal): New define_insn.
14215 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
14216 separate big and little endian logic.
14217 (*altivec_vperm_<mode>_uns_internal): New define_insn.
14218 (vec_permv16qi): Add little endian logic.
14219
14220 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
14221
14222 * doc/extend.texi (returns_nonnull): Remove arguments.
14223
14224 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14225 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14226 Sergey Lega <sergey.s.lega@intel.com>
14227 Anna Tikhonova <anna.tikhonova@intel.com>
14228 Ilya Tocar <ilya.tocar@intel.com>
14229 Andrey Turetskiy <andrey.turetskiy@intel.com>
14230 Ilya Verbin <ilya.verbin@intel.com>
14231 Kirill Yukhin <kirill.yukhin@intel.com>
14232 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14233
14234 * config/i386/sse.md (VI48F_256_512): New.
14235 (avx2_permvar<mode>): Change to ...
14236 (<avx2_avx512f>_permvar<mode>): This.
14237
14238 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14240 Sergey Lega <sergey.s.lega@intel.com>
14241 Anna Tikhonova <anna.tikhonova@intel.com>
14242 Ilya Tocar <ilya.tocar@intel.com>
14243 Andrey Turetskiy <andrey.turetskiy@intel.com>
14244 Ilya Verbin <ilya.verbin@intel.com>
14245 Kirill Yukhin <kirill.yukhin@intel.com>
14246 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14247
14248 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
14249 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
14250 * config/i386/sse.md (VI4_AVX): New.
14251 (sf2simodelower): Ditto.
14252 (sse2_cvtps2dq): Change to ...
14253 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
14254
14255 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14256 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14257 Sergey Lega <sergey.s.lega@intel.com>
14258 Anna Tikhonova <anna.tikhonova@intel.com>
14259 Ilya Tocar <ilya.tocar@intel.com>
14260 Andrey Turetskiy <andrey.turetskiy@intel.com>
14261 Ilya Verbin <ilya.verbin@intel.com>
14262 Kirill Yukhin <kirill.yukhin@intel.com>
14263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14264
14265 * config/i386/sse.md (V_512): New.
14266 (VI_512): Ditto.
14267 (vcond<V_512:mode><VF_512:mode>): Ditto.
14268 (vcond<V_512:mode><VI_512:mode>): Ditto.
14269 (vcondu<V_512:mode><VI_512:mode>): Ditto.
14270
14271 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14272 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14273 Sergey Lega <sergey.s.lega@intel.com>
14274 Anna Tikhonova <anna.tikhonova@intel.com>
14275 Ilya Tocar <ilya.tocar@intel.com>
14276 Andrey Turetskiy <andrey.turetskiy@intel.com>
14277 Ilya Verbin <ilya.verbin@intel.com>
14278 Kirill Yukhin <kirill.yukhin@intel.com>
14279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14280
14281 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
14282 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
14283 (FMAMODE): Ditto.
14284 (fma<mode>4): Removed condition.
14285 (fms<mode>4): Ditto.
14286 (fnma<mode>4): Ditto.
14287 (fnms<mode>4): Ditto.
14288 (fma4i_fmadd_<mode>): Ditto.
14289 (*fma_fmadd_<mode>): Ditto.
14290 (*fma_fmsub_<mode>): Ditto.
14291 (*fma_fnmadd_<mode>): Ditto.
14292 (*fma_fnmsub_<mode>): Ditto.
14293 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
14294 (*fma_fmaddsub_<mode>): Ditto.
14295 (*fma_fmsubadd_<mode>): Ditto.
14296 (*fmai_fmadd_<mode>): Ditto.
14297 (*fmai_fmsub_<mode>): Ditto.
14298 (*fmai_fnmadd_<mode>): Ditto.
14299 (*fmai_fnmsub_<mode>): Ditto.
14300
14301 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14302 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14303 Sergey Lega <sergey.s.lega@intel.com>
14304 Anna Tikhonova <anna.tikhonova@intel.com>
14305 Ilya Tocar <ilya.tocar@intel.com>
14306 Andrey Turetskiy <andrey.turetskiy@intel.com>
14307 Ilya Verbin <ilya.verbin@intel.com>
14308 Kirill Yukhin <kirill.yukhin@intel.com>
14309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14310
14311 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
14312 (VI124_256): Changed to ...
14313 (VI124_256_48_512): This.
14314 (ssepackmode): Extended with wider modes.
14315 (<code><mode>3): Changed iterator.
14316 (*avx2_<code><mode>3): Ditto.
14317 (vec_pack_trunc_<mode>): Ditto.
14318
14319 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14321 Sergey Lega <sergey.s.lega@intel.com>
14322 Anna Tikhonova <anna.tikhonova@intel.com>
14323 Ilya Tocar <ilya.tocar@intel.com>
14324 Andrey Turetskiy <andrey.turetskiy@intel.com>
14325 Ilya Verbin <ilya.verbin@intel.com>
14326 Kirill Yukhin <kirill.yukhin@intel.com>
14327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14328
14329 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
14330 (VI8F_256_512): Ditto.
14331 (abs<mode>2): Changed iterator.
14332 (avx2_perm<mode>): Changed to ...
14333 (<avx2_avx512f>_perm<mode>): This.
14334 (avx2_perm<mode>_1): Changed to ...
14335 (<avx2_avx512f>_perm<mode>_1): This.
14336
14337 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14338 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14339 Sergey Lega <sergey.s.lega@intel.com>
14340 Anna Tikhonova <anna.tikhonova@intel.com>
14341 Ilya Tocar <ilya.tocar@intel.com>
14342 Andrey Turetskiy <andrey.turetskiy@intel.com>
14343 Ilya Verbin <ilya.verbin@intel.com>
14344 Kirill Yukhin <kirill.yukhin@intel.com>
14345 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14346
14347 * config/i386/sse.md (VI48_AVX512F): New.
14348 (VI48_AVX2): Changed to ...
14349 (VI48_AVX2_48_AVX512F): This.
14350 (avx2_ashrv<mode>): Changed to ...
14351 (<avx2_avx512f>_ashrv<mode>): This.
14352 (avx2_<shift_insn>v<mode>): Changed to ...
14353 (<avx2_avx512f>_<shift_insn>v<mode>): This.
14354
14355 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14356 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14357 Sergey Lega <sergey.s.lega@intel.com>
14358 Anna Tikhonova <anna.tikhonova@intel.com>
14359 Ilya Tocar <ilya.tocar@intel.com>
14360 Andrey Turetskiy <andrey.turetskiy@intel.com>
14361 Ilya Verbin <ilya.verbin@intel.com>
14362 Kirill Yukhin <kirill.yukhin@intel.com>
14363 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14364
14365 * config/i386/sse.md (VI4_AVX512F): New.
14366 (VI8_AVX2_AVX512F): Ditto.
14367 (mul<mode>3): Extended with wider modes.
14368 (*<sse4_1_avx2>_mul<mode>3): Ditto.
14369 (mul<mode>3): Ditto.
14370 (vec_widen_<s>mult_odd_<mode>): Ditto.
14371
14372 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14373 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14374 Sergey Lega <sergey.s.lega@intel.com>
14375 Anna Tikhonova <anna.tikhonova@intel.com>
14376 Ilya Tocar <ilya.tocar@intel.com>
14377 Andrey Turetskiy <andrey.turetskiy@intel.com>
14378 Ilya Verbin <ilya.verbin@intel.com>
14379 Kirill Yukhin <kirill.yukhin@intel.com>
14380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14381
14382 * config/i386/sse.md (VI2_AVX512F): New.
14383 (VI124_AVX512F): Ditto.
14384 (sseunpackmode): Extended with wider modes.
14385 (sseunpackfltmode): Ditto.
14386 (vec_unpacks_float_hi_<mode>): Ditto.
14387 (vec_unpacks_float_lo_<mode>): Ditto.
14388 (vec_unpacku_float_hi_<mode>): Ditto.
14389 (vec_unpacku_float_lo_<mode>): Ditto.
14390 (vec_unpacks_lo_<mode>): Ditto.
14391 (vec_unpacks_hi_<mode>): Ditto.
14392 (vec_unpacku_lo_<mode>): Ditto.
14393 (vec_unpacku_hi_<mode>): Ditto.
14394
14395 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14396 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14397 Sergey Lega <sergey.s.lega@intel.com>
14398 Anna Tikhonova <anna.tikhonova@intel.com>
14399 Ilya Tocar <ilya.tocar@intel.com>
14400 Andrey Turetskiy <andrey.turetskiy@intel.com>
14401 Ilya Verbin <ilya.verbin@intel.com>
14402 Kirill Yukhin <kirill.yukhin@intel.com>
14403 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14404
14405 * config/i386/i386.md (multdiv): New.
14406 (multdiv_mnemonic): Ditto.
14407 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
14408 (<sse>_vm<multdiv_mnemonic><mode>3): This.
14409 (<sse>_vmdiv<mode>3): Removed.
14410
14411 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14412 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14413 Sergey Lega <sergey.s.lega@intel.com>
14414 Anna Tikhonova <anna.tikhonova@intel.com>
14415 Ilya Tocar <ilya.tocar@intel.com>
14416 Andrey Turetskiy <andrey.turetskiy@intel.com>
14417 Ilya Verbin <ilya.verbin@intel.com>
14418 Kirill Yukhin <kirill.yukhin@intel.com>
14419 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14420
14421 * config/i386/sse.md (V): Extended with wider modes.
14422 (VF2): Ditto.
14423 (ssehalfvecmode): Ditto.
14424 (i128): Ditto.
14425 (ssepackfltmode): Ditto.
14426 (avx_vec_concat<mode>): Ditto.
14427 (V_256_512): New iterator.
14428 (VF2_512_256): Ditto.
14429 (si2dfmode): New attribute.
14430 (si2dfmodelower): Ditto.
14431 (sf2dfmode): Ditto.
14432 (concat_tg_mode): Ditto.
14433 (floatv4siv4df2): Changed to ...
14434 (float<si2dfmodelower><mode>2): This.
14435 (avx_cvtps2pd256): Changed to ...
14436 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
14437 (vec_pack_trunc_v4df): Changed to ...
14438 (vec_pack_trunc_<mode>): This.
14439 (avx_vpermil<mode>): Changed to ...
14440 (<sse2_avx_avx512f>_vpermil<mode>): This.
14441 (<fixsuffix>fix_truncv8dfv8si2): New.
14442 (vec_pack_sfix_trunc_v8df): Ditto.
14443 (avx512f_rndscale<mode>): Ditto.
14444 (avx512f_roundpd512): Ditto.
14445 (vec_pack_ufix_trunc_<mode>): Updated iterator.
14446
14447 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14449 Sergey Lega <sergey.s.lega@intel.com>
14450 Anna Tikhonova <anna.tikhonova@intel.com>
14451 Ilya Tocar <ilya.tocar@intel.com>
14452 Andrey Turetskiy <andrey.turetskiy@intel.com>
14453 Ilya Verbin <ilya.verbin@intel.com>
14454 Kirill Yukhin <kirill.yukhin@intel.com>
14455 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14456
14457 * config/i386/i386.md (any_fix): New iterator.
14458 (fixsuffix): New attribute.
14459 * config/i386/sse.md (VF1): Extened with wider modes.
14460 (VI): Ditto.
14461 (VI_AVX2): Ditto.
14462 (VI8): Ditto.
14463 (sseintvecmodelower): Ditto.
14464 (ssescalarmode): Ditto.
14465 (ssescalarnum): Ditto.
14466 (VF1_128_256): New.
14467 (ssexmmmode): Ditto.
14468 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
14469 (<sse>_rcp<mode>2): Change iterator.
14470 (rsqrt<mode>2): Ditto.
14471 (<sse>_rsqrt<mode>2): Ditto.
14472 (avx2_vec_dup<mode>): Ditto.
14473 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
14474 (round<mode>2_sfix): Ditto.
14475 (avx2_pbroadcast<mode>): Ditto.
14476 (*andnot<mode>3): Handle XI mode.
14477 (*<code><mode>3): Ditto.
14478 (AVXTOSSEMODE): Removed.
14479 (avx_vpermil<mode>): Changed to ...
14480 (<sse2_avx_avx512f>_vpermil<mode>): This.
14481
14482 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
14483 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14484 Sergey Lega <sergey.s.lega@intel.com>
14485 Anna Tikhonova <anna.tikhonova@intel.com>
14486 Ilya Tocar <ilya.tocar@intel.com>
14487 Andrey Turetskiy <andrey.turetskiy@intel.com>
14488 Ilya Verbin <ilya.verbin@intel.com>
14489 Kirill Yukhin <kirill.yukhin@intel.com>
14490 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14491
14492 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
14493 (<sse>_comi): Ditto.
14494 (<sse>_ucomi): Ditto.
14495 (sse_cvtss2siq_2): Ditto.
14496 (sse2_cvtsd2si): Ditto.
14497 (sse2_cvtsd2siq): Ditto.
14498 (sse2_cvttsd2si): Ditto.
14499 (sse2_cvttsd2siq): Ditto.
14500 (<shift_insn><mode>3): Ditto.
14501 (sse2_cvtsi2sdq): Update constraint and prefix.
14502 (sse_cvtsi2ss): Update prefix.
14503 (sse_cvtsi2ssq): Ditto.
14504
14505 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14506
14507 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
14508 ignore internal calls.
14509
14510 2013-10-11 Richard Biener <rguenther@suse.de>
14511
14512 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
14513 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
14514 TREE_OVERFLOW is set.
14515
14516 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
14517
14518 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
14519
14520 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
14521 * gimple.h: Likewise.
14522
14523 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
14524
14525 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
14526 macros.
14527
14528 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
14529
14530 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
14531 * configure: Regenerate.
14532
14533 2013-10-11 Jakub Jelinek <jakub@redhat.com>
14534
14535 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
14536 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
14537 formatting fixes, use pp_colon instead of pp_character (..., ':'),
14538 similarly pp_right_paren.
14539 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
14540 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
14541 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
14542 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
14543 clauses.
14544 (omp_declare_simd_clauses_equal,
14545 omp_remove_redundant_declare_simd_attrs): New functions.
14546 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
14547 (walk_tree_1): Handle new OpenMP 4.0 clauses.
14548 * tree.h (OMP_LOOP_CHECK): Define.
14549 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
14550 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
14551 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
14552 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
14553 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
14554 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
14555 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
14556 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
14557 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
14558 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
14559 OMP_CLAUSE_SIMDLEN_EXPR): Define.
14560 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
14561 (omp_remove_redundant_declare_simd_attrs): New prototype.
14562 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
14563 GIMPLE_OMP_TEAMS): New codes.
14564 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
14565 * omp-low.c (struct omp_context): Add cancel_label and cancellable
14566 fields.
14567 (target_nesting_level): New variable.
14568 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
14569 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
14570 for collapse > 1 static schedule unless ordered.
14571 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
14572 (determine_parallel_type): Adjust get_ws_args_for caller.
14573 (install_var_field): Handle mask & 4 for double indirection.
14574 (scan_sharing_clauses): Ignore shared clause on teams construct.
14575 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
14576 (create_omp_child_function): If inside target or declare target
14577 constructs, set "omp declare target" attribute on the child function.
14578 (find_combined_for): New function.
14579 (scan_omp_parallel): Handle combined loops.
14580 (scan_omp_target, scan_omp_teams): New functions.
14581 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
14582 restrictions and set ctx->cancellable for cancellable constructs.
14583 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
14584 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
14585 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
14586 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
14587 (omp_clause_aligned_alignment): New function.
14588 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
14589 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
14590 on teams constructs. Handle user defined reductions and new
14591 OpenMP 4.0 clauses.
14592 (lower_reduction_clauses): Don't set placeholder to address of ref
14593 if it has already the right type.
14594 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
14595 (expand_parallel_call): Use the new non-_start suffixed builtins,
14596 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
14597 and GOMP_parallel_end after the call.
14598 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
14599 (expand_omp_for_init_counts): Handle combined loops.
14600 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
14601 loops.
14602 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
14603 end of cancellable loops.
14604 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14605 Likewise. Handle collapse > 1 loops.
14606 (expand_omp_simd): Handle combined loops.
14607 (expand_omp_for): Add inner_stmt argument, adjust callers of
14608 expand_omp_for* functions, use expand_omp_for_static*chunk even
14609 for collapse > 1 unless ordered.
14610 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
14611 of cancellable sections.
14612 (expand_omp_single): Remove need_barrier variable, just rely on
14613 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
14614 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
14615 (expand_omp_atomic_load, expand_omp_atomic_store,
14616 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
14617 (expand_omp_target): New function.
14618 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
14619 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
14620 (build_omp_regions_1): Immediately close region for
14621 GF_OMP_TARGET_KIND_UPDATE.
14622 (maybe_add_implicit_barrier_cancel): New function.
14623 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
14624 cancellation.
14625 (lower_omp_single): Likewise. Add clobber after the barrier.
14626 (lower_omp_taskgroup): New function.
14627 (lower_omp_for): Handle combined loops. Adjust
14628 lower_rec_input_clauses caller. Handle cancellation.
14629 (lower_depend_clauses): New function.
14630 (lower_omp_taskreg): Lower depend clauses. Adjust
14631 lower_rec_input_clauses caller. Add clobber after the call. Handle
14632 cancellation.
14633 (lower_omp_target, lower_omp_teams): New functions.
14634 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
14635 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
14636 and GOMP_cancellation_point calls.
14637 (lower_omp): Fold stmts inside of target region.
14638 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
14639 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14640 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
14641 (BT_FN_VOID_OMPFN_PTR_UINT,
14642 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14643 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
14644 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
14645 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
14646 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
14647 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
14648 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
14649 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
14650 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
14651 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
14652 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14653 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
14654 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
14655 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
14656 BUILT_IN_GOMP_PARALLEL_END.
14657 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
14658 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
14659 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
14660 GF_OMP_FOR_KIND_DISTRIBUTE.
14661 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
14662 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
14663 (dump_gimple_omp_return): Print lhs if it has any.
14664 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
14665 gimple_omp_atomic_seq_cst_p.
14666 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
14667 and GIMPLE_OMP_TEAMS.
14668 * langhooks.c (lhd_omp_mappable_type): New function.
14669 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
14670 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
14671 hook.
14672 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
14673 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
14674 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
14675 (struct gimplify_omp_ctx): Add combined_loop field.
14676 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
14677 on stmts inside of target region.
14678 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
14679 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
14680 ORT_TARGET and ORT_TARGET_DATA.
14681 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
14682 Handle GOVD_MAP.
14683 (omp_notice_threadprivate_variable): Complain about threadprivate
14684 variables in target region.
14685 (omp_notice_variable): Complain about vars with non-mappable type
14686 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
14687 (omp_check_private): Ignore ORT_TARGET* regions.
14688 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
14689 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
14690 (find_combined_omp_for): New function.
14691 (gimplify_omp_for): Handle gimplification of combined loops.
14692 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
14693 OMP_TEAMS.
14694 (gimplify_omp_target_update): New function.
14695 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
14696 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
14697 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
14698 (gimplify_body): If fndecl has "omp declare target" attribute, add
14699 implicit ORT_TARGET context around it.
14700 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
14701 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
14702 * tree-nested.c (convert_nonlocal_reference_stmt,
14703 convert_local_reference_stmt, convert_gimple_call): Handle
14704 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14705 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
14706 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
14707 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
14708 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
14709 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
14710 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
14711 BUILT_IN_GOMP_LOOP_END_CANCEL,
14712 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
14713 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
14714 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
14715 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
14716 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
14717 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
14718 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
14719 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
14720 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14721 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14722 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14723 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14724 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14725 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
14726 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
14727 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14728 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
14729 gimple_build_omp_teams): New functions.
14730 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
14731 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
14732 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
14733 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14734 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
14735 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
14736 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
14737 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
14738 GF_OMP_ATOMIC_SEQ_CST): New.
14739 (gimple_build_omp_taskgroup, gimple_build_omp_target,
14740 gimple_build_omp_teams): New prototypes.
14741 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
14742 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14743 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
14744 GIMPLE_OMP_SINGLE as end of range.
14745 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
14746 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
14747 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
14748 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
14749 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
14750 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
14751 gimple_omp_target_kind, gimple_omp_target_set_kind,
14752 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
14753 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
14754 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
14755 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
14756 gimple_omp_teams_set_clauses): New inlines.
14757 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
14758 and GIMPLE_OMP_TASKGROUP.
14759 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
14760 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
14761 enum omp_clause_proc_bind_kind): New.
14762 (union omp_clause_subcode): Add depend_kind, map_kind and
14763 proc_bind_kind fields.
14764 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
14765 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
14766 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
14767 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
14768 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
14769
14770 2013-10-10 Teresa Johnson <tejohnson@google.com>
14771
14772 * predict.c (tree_estimate_probability): Add new parameter
14773 for estimate_bb_frequencies.
14774 (estimate_bb_frequencies): Add new parameter to force estimation.
14775 (rebuild_frequencies): When max frequency in function is small,
14776 recompute counts from frequencies.
14777 * predict.h (estimate_bb_frequencies): New parameter.
14778
14779 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14780
14781 * ipa-inline.c (ipa_inline): Fix leak of "order" when
14782 optimizations are disabled.
14783
14784 2013-10-10 David Malcolm <dmalcolm@redhat.com>
14785
14786 * coverage.c (coverage_finish): Fix leak of da_file_name.
14787
14788 2013-10-10 Jan Hubicka <jh@suse.cz>
14789
14790 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
14791 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
14792 Bobcat and generic.
14793
14794 2013-10-10 Jakub Jelinek <jakub@redhat.com>
14795
14796 PR middle-end/58670
14797 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
14798 if any labels are in FALLTHRU_BB, use a special label emitted
14799 immediately after the asm goto insn rather than label_rtx
14800 of the LABEL_DECL.
14801 (expand_asm_stmt): Adjust caller.
14802 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
14803 edge if the last insn in predecessor is a jump with single successor,
14804 but it isn't simplejump_p.
14805
14806 2013-10-10 Richard Biener <rguenther@suse.de>
14807
14808 PR tree-optimization/58656
14809 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
14810
14811 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14812
14813 * gimplify.c: Include expr.h and tm_p.h for targets with special
14814 va-arg padding requirements.
14815
14816 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14817
14818 * tree-flow.h: Move some prototypes to gimple.h.
14819 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
14820 * gimple.h: Relocate some prototypes from tree-flow.h
14821 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
14822 Move to gimplify.c.
14823 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
14824 (build_va_arg_indirect_ref): Relocate and make static.
14825 (std_gimplify_va_arg_expr): Relocate here.
14826 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
14827 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
14828
14829 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14830
14831 * doc/md.texi: Document the mnemonic attribute.
14832
14833 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14834
14835 PR target/57377
14836 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
14837 (set_attr_alternative x ...) when searching for user defined
14838 mnemonic attribute.
14839
14840 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
14841
14842 * config/alpha/alpha.c: Add gimple-ssa.h to include list.
14843
14844 2013-10-09 Easwaran Raman <eraman@google.com>
14845
14846 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
14847 * cfgexpand.c (defer_stack_allocation): ...use here
14848 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
14849
14850 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14851
14852 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
14853 (operand_equal_for_value_replacement): New function, extracted from
14854 value_replacement and enhanced to catch more cases.
14855 (value_replacement): Use operand_equal_for_value_replacement.
14856
14857 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14858
14859 * loop-doloop.c (doloop_modify, doloop_optimize): Use
14860 get_max_loop_iterations.
14861
14862 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14863
14864 * config/arm/aarch-common.c (arm_early_load_addr_dep):
14865 Place comment above function.
14866
14867 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14868
14869 * tree-flow.h: Remove all remaining prototypes, enums and structs that
14870 are not related to tree-cfg.c.
14871 * tree-ssa-address.h: New file. Relocate prototypes.
14872 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
14873 (addr_for_mem_ref): New. Combine call to get_address_description and
14874 return addr_for_mem_ref.
14875 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
14876 * tree-ssa-live.h: Adjust prototypes.
14877 * passes.c: Include tree-ssa-live.h.
14878 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
14879 * graphite.c (graphite_transform_loops): Make static.
14880 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14881 make_pass_graphite, pass_data_graphite_transforms,
14882 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
14883 * ipa-pure-const.c (warn_function_noreturn): Make static.
14884 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14885 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14886 Relocate from tree-cfg.c
14887 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
14888 static.
14889 (execute_warn_function_noreturn, gate_warn_function_noreturn,
14890 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
14891 Move to ipa-pure-const.c.
14892 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
14893 Relocate from tree-optimize.c.
14894 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
14895 make_pass_fixup_cfg): Move to tree-cfg.c.
14896 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
14897 Relocate some prototypes.
14898 * tree-data-ref.h (tree_check_data_deps) Add prototype.
14899 * tree-dump.c (dump_function_to_file): Remove prototype.
14900 Add tree-flow.h to the include file.
14901 * tree-dump.h: Remove prototype.
14902 * tree-parloops.h: New File. Add prototypes.
14903 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
14904 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
14905 from tree-ssa-loop.c.
14906 * tree-predcom.c (run_tree_predictive_commoning,
14907 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
14908 Relocate here from tree-ssa-loop.c.
14909 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
14910 ssa_name_values.release ().
14911 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
14912 (ssa_name_values): Relocate from tree-flow.h.
14913 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
14914 * tree-ssa-loop.c (run_tree_predictive_commoning,
14915 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
14916 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
14917 make_pass_graphite, pass_data_graphite_transforms,
14918 make_pass_graphite_transforms, gate_tree_parallelize_loops,
14919 tree_parallelize_loops, pass_data_parallelize_loops,
14920 make_pass_parallelize_loops): Move to other files.
14921 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
14922 moved here.
14923 * tree.h: Remove prototypes from tree-address.c.
14924
14925 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14926
14927 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
14928 (struct int_tree_map): Move to tree-hasher.h
14929 (SCALE, LABEL, PERCENT): Move to gimple.h
14930 * tree-flow-inline.h: Delete. Move functions to other files.
14931 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
14932 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
14933 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
14934 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
14935 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
14936 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
14937 * tree-hasher.h: Don't include tree-flow.h.
14938 (struct int_tree_map): Relocate from tree-flow.h.
14939 * tree-sra.c (contains_view_convert_expr_p): Relocate from
14940 tree-flow-inline.h and make static.
14941 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
14942 tree-flow-inline.h.
14943 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
14944 tree-flow-inline.h and make static.
14945 * tree.h (is_global_var, may_be_aliased): Relocate from
14946 tree-flow-inline.h.
14947 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
14948 * value-prof.c: No longer include tree-flow-inline.h.
14949 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
14950
14951 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
14952
14953 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
14954 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
14955 (enum move_pos): Move to tree-ssa-loop-im.h
14956 * cfgloop.h: Move some prototypes.
14957 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
14958 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
14959 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
14960 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
14961 (loop_containing_stmt): Relocate from tree-flow-inline.h.
14962 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
14963 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
14964 (enum move_pos): Relocate here.
14965 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
14966 tree-ssa-loop.c.
14967 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
14968 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
14969 make_pass_lim): Relocate here from tree-ssa-loop.c.
14970 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
14971 tree-ssa-loop.c.
14972 (loop_edge_to_cancel, unloop_loops): Make static.
14973 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
14974 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
14975 (tree_complete_unroll, gate_tree_complete_unroll,
14976 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
14977 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
14978 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
14979 * tree-ssa-loop-ivopts.c: Remove local prototypes.
14980 (stmt_invariant_in_loop_p): Remove unused function.
14981 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
14982 * tree-ssa-loop-manip.h: New file. Add prototypes.
14983 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
14984 (gcov_type_to_double_int): Move to cfgloop.h.
14985 (double_int_cmp, bound_index,
14986 estimate_numbers_of_iterations_loop): Make static.
14987 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
14988 (max_loop_iterations): Factor out get_max_loop_iterations.
14989 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
14990 cfgloop.c.
14991 * tree-ssa-loop-niter.h: New file. Add prototypes.
14992 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
14993 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
14994 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
14995 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
14996 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
14997 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
14998 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
14999 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
15000 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
15001 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
15002 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
15003 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
15004 pass_data_complete_unroll, make_pass_complete_unroll,
15005 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
15006 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
15007 tree-ssa-loop-ivcanon.c.
15008 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
15009 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
15010 tree-ssa-loop-prefetch.c.
15011 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
15012 tree-ssa-loop-im.c.
15013 (get_lsm_tmp_name): Relocate and add suffix parameter.
15014 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
15015 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
15016 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
15017 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
15018 (get_estimated_loop_iterations): Factor out accessor from
15019 estimated_loop_iterations in tree-ssa-loop-niter.c.
15020 (get_max_loop_iterations): Factor out accessor from
15021 _max_loop_iterations in tree-ssa-niter.c.
15022 * loop-unroll.c (decide_unroll_constant_iterations,
15023 decide_unroll_runtime_iterations, decide_peel_simple,
15024 decide_unroll_stupid): Use new get_* accessors.
15025
15026 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
15027
15028 PR tree-optimization/20318
15029 * doc/extend.texi (returns_nonnull): New function attribute.
15030 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
15031 attribute.
15032 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
15033 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
15034
15035 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
15036
15037 PR middle-end/58570
15038 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
15039 false if both components are bitfields.
15040
15041 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15042
15043 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
15044 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
15045 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
15046 * config/aarch64/aarch64.h
15047 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
15048 * config/aarch64/aarch64-simd-builtins.def
15049 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
15050
15051 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15052
15053 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
15054
15055 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15056
15057 * config/aarch64/arm_neon.h (vdiv_f64): Added.
15058
15059 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
15060
15061 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
15062 (vneg_f64): New intrinsic.
15063 (vneg_s8): Asm replaced with C.
15064 (vneg_s16): Likewise.
15065 (vneg_s32): Likewise.
15066 (vneg_s64): New intrinsic.
15067 (vnegq_f32): Asm replaced with C.
15068 (vnegq_f64): Likewise.
15069 (vnegq_s8): Likewise.
15070 (vnegq_s16): Likewise.
15071 (vnegq_s32): Likewise.
15072 (vnegq_s64): Likewise.
15073
15074 2013-10-09 Renlin Li <Renlin.Li@arm.com>
15075
15076 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
15077
15078 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15079
15080 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
15081 packed stack special handling.
15082 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
15083 back to fixed stack slots for FPRs saved due to stdarg.
15084
15085 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15086
15087 * config/s390/s390.c (s390_frame_info): Restructure function.
15088
15089 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15090
15091 * config/s390/s390.c (struct s390_frame_layout): New field
15092 gpr_save_slots.
15093 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
15094 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
15095 regs_ever_clobbered to char*.
15096 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
15097 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
15098 (s390_register_info): Enable FPR save slots. Move/Copy some
15099 functionality into ...
15100 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
15101 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
15102 function.
15103 (s390_frame_info): Do gpr slot allocation here now. stdarg does
15104 not imply a stack frame.
15105 (s390_init_frame_layout): Remove variable clobbered_regs.
15106 (s390_update_register_info): Remove function.
15107 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
15108 cannot be used for register renaming.
15109 (s390_hard_regno_scratch_ok): New function.
15110 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
15111 (s390_initial_elimination_offset): Change offset calculation of
15112 the return address pointer.
15113 (save_gprs): Deal with only r6 being saved from the call-saved regs.
15114 (restore_gprs): Set frame related flag.
15115 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
15116 (s390_emit_prologue): Call s390_register_info instead of
15117 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
15118 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
15119 (s390_optimize_prologue): Call s390_optimize_register_info.
15120 Try to remove also FPR slot save/restore INSNs. Remove frame
15121 related flags from restore INSNs.
15122
15123 2013-10-08 DJ Delorie <dj@redhat.com>
15124
15125 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
15126 (movhi): Likewise.
15127
15128 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
15129 avoid conflict with the MI use of %c.
15130 * config/rl78/rl78-real.md: change %c to %C throughout.
15131 * config/rl78/rl78-virt.md: Likewise.
15132
15133 2013-10-08 Jan Hubicka <jh@suse.cz>
15134
15135 * config/i386/i386.c (ix86_option_override_internal): Switch
15136 to SSE math for -ffast-math when target ISA supports SSE2.
15137
15138 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
15139
15140 * tree-flow.h: Remove some prototypes.
15141 * tree.h: Remove some protypes, add a couple.
15142 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
15143 using_eh_for_cleanups_p): Add interface routines for front ends.
15144 * tree-eh.h: New file. Add protoptyes.
15145 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
15146 (add_stmt_to_eh_lp_fn): Make static.
15147 (lower_try_finally): Use new using_eh_for_cleanups_p.
15148 * emit-rtl.c: Include tree-eh.h.
15149 * gimple.h: Include tree-eh.h.
15150
15151 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
15152
15153 PR tree-optimization/58480
15154 * tree-vrp.c (infer_nonnull_range): New function.
15155 (infer_value_range): Call infer_nonnull_range.
15156
15157 2013-10-08 Dehao Chen <dehao@google.com>
15158
15159 PR tree-optimization/58619
15160 * tree-inline.c (copy_phis_for_bb): Combine location data
15161 only if non-null.
15162
15163 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15164
15165 PR target/58423
15166 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
15167 RTX_FRAME_RELATED_P on INSN.
15168
15169 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15170
15171 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
15172 (altivec_expand_vec_perm_const): Call it.
15173
15174 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15175
15176 * config/rs6000/vector.md (mov<mode>): Emit permuted move
15177 sequences for LE VSX loads and stores at expand time.
15178 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
15179 prototype.
15180 * config/rs6000/rs6000.c (rs6000_const_vec): New.
15181 (rs6000_gen_le_vsx_permute): New.
15182 (rs6000_gen_le_vsx_load): New.
15183 (rs6000_gen_le_vsx_store): New.
15184 (rs6000_gen_le_vsx_move): New.
15185 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
15186 (*vsx_le_perm_load_v4si): New.
15187 (*vsx_le_perm_load_v8hi): New.
15188 (*vsx_le_perm_load_v16qi): New.
15189 (*vsx_le_perm_store_v2di): New.
15190 (*vsx_le_perm_store_v4si): New.
15191 (*vsx_le_perm_store_v8hi): New.
15192 (*vsx_le_perm_store_v16qi): New.
15193 (*vsx_xxpermdi2_le_<mode>): New.
15194 (*vsx_xxpermdi4_le_<mode>): New.
15195 (*vsx_xxpermdi8_le_V8HI): New.
15196 (*vsx_xxpermdi16_le_V16QI): New.
15197 (*vsx_lxvd2x2_le_<mode>): New.
15198 (*vsx_lxvd2x4_le_<mode>): New.
15199 (*vsx_lxvd2x8_le_V8HI): New.
15200 (*vsx_lxvd2x16_le_V16QI): New.
15201 (*vsx_stxvd2x2_le_<mode>): New.
15202 (*vsx_stxvd2x4_le_<mode>): New.
15203 (*vsx_stxvd2x8_le_V8HI): New.
15204 (*vsx_stxvd2x16_le_V16QI): New.
15205
15206 2013-10-07 Renlin Li <Renlin.Li@arm.com>
15207
15208 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
15209
15210 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15211
15212 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
15213 loop to work also for 31bit ABI.
15214 Save the stack pointer for frame_size > 0.
15215
15216 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15217
15218 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
15219 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
15220 constraint letters from expanders.
15221 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
15222 retry count to general_operand.
15223 ("tabort"): Give operand 0 a mode.
15224 ("tabort_1"): Add mode and constraint letter for operand 0.
15225 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
15226
15227 2013-10-04 Jeff Law <law@redhat.com>
15228
15229 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
15230
15231 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
15232 out of ...
15233 (thread_across_edge): Here. Call it.
15234
15235 2013-10-04 Cary Coutant <ccoutant@google.com>
15236
15237 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
15238 discarding a location list expression (or a piece of one).
15239
15240 2013-10-03 Jan Hubicka <jh@suse.cz>
15241
15242 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
15243 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
15244 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
15245
15246 2013-10-03 Jan Hubicka <jh@suse.cz>
15247
15248 * config/i386/i386.c (ix86_option_override_internal): Do not enable
15249 accumulate-outgoing-args when producing unwind info.
15250
15251 2013-10-03 Wei Mi <wmi@google.com>
15252
15253 * lra-constraints.c (insert_move_for_subreg): New function
15254 extracted from simplify_operand_subreg.
15255 (simplify_operand_subreg): Add reload for paradoxical subreg.
15256
15257 2013-10-03 Rong Xu <xur@google.com>
15258
15259 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
15260 the candidate of builtin_expect such that we should fix the
15261 size/time estimation.
15262 (estimate_function_body_sizes): Do the acutally size/time fix-up
15263 for builtin_expect.
15264
15265 2013-10-03 Rong Xu <xur@google.com>
15266
15267 * predict.c (tree_predict_by_opcode): Get the probability
15268 for builtin_expect from param builtin_expect_probability.
15269 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
15270 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
15271 * doc/invoke.texi: Add documentation for builtin-expect-probability.
15272
15273 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
15274
15275 PR c++/19476
15276 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
15277 * calls.c (alloca_call_p): Use get_callee_fndecl.
15278 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
15279 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
15280 Likewise.
15281 (vrp_visit_stmt): Remove duplicated code.
15282
15283 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15284
15285 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
15286 ceildf2, btruncdf2, instead of vsx_* name.
15287
15288 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
15289 iterators to only do V2DF and V4SF here. Move the DF code to
15290 rs6000.md where it is combined with SF mode. Replace <VSv> with
15291 just 'v' since only vector operations are handled with these insns
15292 after moving the DF support to rs6000.md.
15293 (vsx_sub<mode>3): Likewise.
15294 (vsx_mul<mode>3): Likewise.
15295 (vsx_div<mode>3): Likewise.
15296 (vsx_fre<mode>2): Likewise.
15297 (vsx_neg<mode>2): Likewise.
15298 (vsx_abs<mode>2): Likewise.
15299 (vsx_nabs<mode>2): Likewise.
15300 (vsx_smax<mode>3): Likewise.
15301 (vsx_smin<mode>3): Likewise.
15302 (vsx_sqrt<mode>2): Likewise.
15303 (vsx_rsqrte<mode>2): Likewise.
15304 (vsx_fms<mode>4): Likewise.
15305 (vsx_nfma<mode>4): Likewise.
15306 (vsx_copysign<mode>3): Likewise.
15307 (vsx_btrunc<mode>2): Likewise.
15308 (vsx_floor<mode>2): Likewise.
15309 (vsx_ceil<mode>2): Likewise.
15310 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
15311 (vsx_sminsf3): Likewise.
15312 (vsx_fmadf4): Likewise.
15313 (vsx_fmsdf4): Likewise.
15314 (vsx_nfmadf4): Likewise.
15315 (vsx_nfmsdf4): Likewise.
15316 (vsx_cmpdf_internal1): Likewise.
15317
15318 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
15319 simpler to select whether a target has SPE or traditional floating
15320 point support in iterators.
15321 (TARGET_DF_SPE): Likewise.
15322 (TARGET_SF_FPR): Likewise.
15323 (TARGET_DF_FPR): Likewise.
15324 (TARGET_SF_INSN): Macros to say whether floating point support
15325 exists for a given operation for expanders.
15326 (TARGET_DF_INSN): Likewise.
15327
15328 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
15329 combining of SF/DF mode operations, using both traditional and VSX
15330 registers.
15331 (Fvsx): Likewise.
15332 (Ff): Likewise.
15333 (Fv): Likewise.
15334 (Fs): Likewise.
15335 (Ffre): Likewise.
15336 (FFRE): Likewise.
15337 (abs<mode>2): Combine SF/DF modes using traditional floating point
15338 instructions. Add support for using the upper DF registers with
15339 VSX support, and SF registers with power8-vector support. Update
15340 expanders for operations supported by both the SPE and traditional
15341 floating point units.
15342 (abs<mode>2_fpr): Likewise.
15343 (nabs<mode>2): Likewise.
15344 (nabs<mode>2_fpr): Likewise.
15345 (neg<mode>2): Likewise.
15346 (neg<mode>2_fpr): Likewise.
15347 (add<mode>3): Likewise.
15348 (add<mode>3_fpr): Likewise.
15349 (sub<mode>3): Likewise.
15350 (sub<mode>3_fpr): Likewise.
15351 (mul<mode>3): Likewise.
15352 (mul<mode>3_fpr): Likewise.
15353 (div<mode>3): Likewise.
15354 (div<mode>3_fpr): Likewise.
15355 (sqrt<mode>3): Likewise.
15356 (sqrt<mode>3_fpr): Likewise.
15357 (fre<Fs>): Likewise.
15358 (rsqrt<mode>2): Likewise.
15359 (cmp<mode>_fpr): Likewise.
15360 (smax<mode>3): Likewise.
15361 (smin<mode>3): Likewise.
15362 (smax<mode>3_vsx): Likewise.
15363 (smin<mode>3_vsx): Likewise.
15364 (negsf2): Delete SF operations that are merged with DF.
15365 (abssf2): Likewise.
15366 (addsf3): Likewise.
15367 (subsf3): Likewise.
15368 (mulsf3): Likewise.
15369 (divsf3): Likewise.
15370 (fres): Likewise.
15371 (fmasf4_fpr): Likewise.
15372 (fmssf4_fpr): Likewise.
15373 (nfmasf4_fpr): Likewise.
15374 (nfmssf4_fpr): Likewise.
15375 (sqrtsf2): Likewise.
15376 (rsqrtsf_internal1): Likewise.
15377 (smaxsf3): Likewise.
15378 (sminsf3): Likewise.
15379 (cmpsf_internal1): Likewise.
15380 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
15381 (negdf2): Delete DF operations that are merged with SF.
15382 (absdf2): Likewise.
15383 (nabsdf2): Likewise.
15384 (adddf3): Likewise.
15385 (subdf3): Likewise.
15386 (muldf3): Likewise.
15387 (divdf3): Likewise.
15388 (fred): Likewise.
15389 (rsqrtdf_internal1): Likewise.
15390 (fmadf4_fpr): Likewise.
15391 (fmsdf4_fpr): Likewise.
15392 (nfmadf4_fpr): Likewise.
15393 (nfmsdf4_fpr): Likewise.
15394 (sqrtdf2): Likewise.
15395 (smaxdf3): Likewise.
15396 (smindf3): Likewise.
15397 (cmpdf_internal1): Likewise.
15398 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
15399 (btrunc<mode>2): Delete separate expander, and combine with the
15400 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
15401 (btrunc<mode>2_fpr): Likewise.
15402 (ceil<mode>2): Likewise.
15403 (ceil<mode>2_fpr): Likewise.
15404 (floor<mode>2): Likewise.
15405 (floor<mode>2_fpr): Likewise.
15406 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
15407 Add support for using the upper registers with VSX and
15408 power8-vector. Move insns to be closer to the define_expands. On
15409 VSX systems, prefer the traditional form of FMA over the VSX
15410 version, since the traditional form allows the target not to
15411 overlap with the inputs.
15412 (fms<mode>4_fpr): Likewise.
15413 (nfma<mode>4_fpr): Likewise.
15414 (nfms<mode>4_fpr): Likewise.
15415
15416 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15417 Richard Earnshaw <richard.earnshaw@arm.com>
15418
15419 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
15420 (struct mult_cost_table): Likewise.
15421 (struct mem_cost_table): Likewise.
15422 (struct fp_cost_table): Likewise.
15423 (struct vector_cost_table): Likewise.
15424 (cpu_cost_table): Likewise.
15425 * config/arm/arm.opt (mold-rts-costs): New option.
15426 (mnew-generic-costs): Likewise.
15427 * config/arm/arm.c (generic_extra_costs): New table.
15428 (cortexa15_extra_costs): Likewise.
15429 (arm_slowmul_tune): Use NULL as new costs.
15430 (arm_fastmul_tune): Likewise.
15431 (arm_strongarm_tune): Likewise.
15432 (arm_xscale_tune): Likewise.
15433 (arm_9e_tune): Likewise.
15434 (arm_v6t2_tune): Likewise.
15435 (arm_cortex_a5_tune): Likewise.
15436 (arm_cortex_a9_tune): Likewise.
15437 (arm_v6m_tune): Likewise.
15438 (arm_fa726te_tune): Likewise.
15439 (arm_cortex_a15_tune): Use cortex15_extra_costs.
15440 (arm_cortex_tune): Use generict_extra_costs.
15441 (shifter_op_p): New function.
15442 (arm_unspec_cost): Likewise.
15443 (LIBCALL_COST): Define.
15444 (arm_new_rtx_costs): New function.
15445 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
15446 table is available. Use old costs otherwise unless mnew-generic-costs
15447 is specified.
15448 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
15449 (cpu_cost_table): Declare.
15450
15451 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
15452
15453 PR target/58460
15454 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
15455 (*subs_mul_imm_<mode>)
15456 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
15457 (*sub_<shift>_<mode>)
15458 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
15459 Remove k constraint.
15460
15461 2013-10-03 Ian Bolton <ian.bolton@arm.com>
15462
15463 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
15464 code.
15465 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
15466
15467 2013-10-02 Teresa Johnson <tejohnson@google.com>
15468
15469 * predict.c (probably_never_executed): New function.
15470 (probably_never_executed_bb_p): Invoke probably_never_executed.
15471 (probably_never_executed_edge_p): Ditto.
15472 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
15473 Treat profile insanities conservatively.
15474
15475 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
15476
15477 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
15478
15479 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
15480
15481 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
15482 use it. Use smaller increase for scratch. Don't increase reject
15483 for early clobber scratch.
15484 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
15485 setting eliminated regs except setting fp from hfp.
15486 (lra_eliminate): Check lra_insn_recog_data on NULL.
15487
15488 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15489
15490 PR target/58587
15491 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
15492 setting -mvsx-timode by default until the underlying problem is fixed.
15493 (RS6000_CPU, power7 defaults): Likewise.
15494
15495 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15496
15497 * config/x-linux (host-linux.o): Remove header dependencies.
15498 Use $(COMPILE) and $(POSTCOMPILE).
15499 * config/t-linux-android (linux-android.o): Ditto.
15500
15501 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15502
15503 * Makefile.in (expmed.o-warn): Remove.
15504
15505 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15506
15507 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
15508 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
15509
15510 2013-10-02 Teresa Johnson <tejohnson@google.com>
15511
15512 * dojump.c (do_jump_1): Divide probability between
15513 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
15514
15515 2013-10-02 Tom Tromey <tromey@redhat.com>
15516
15517 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
15518
15519 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15520
15521 * tree-flow.h: Remove some prototypes.
15522 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
15523 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
15524 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
15525 mark_virtual_phi_result_for_renaming): Relocate here.
15526 * tree-into-ssa.h: Add prototypes.
15527 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
15528 single_pred_before_succ_order.
15529 (blocks_in_phiopt_order): Rename and move to cfganal.c.
15530 (nonfreeing_call_p) Move to gimple.c.
15531 * cfganal.c (single_pred_before_succ_order): Move and renamed from
15532 tree-ssa-phiopt.c.
15533 * basic-block.h (single_pred_before_succ_order): Add prototype.
15534 * gimple.c (nonfreeing_call_p): Relocate here.
15535 * gimple.h: Add prototype.
15536 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
15537 * tree-ssa-dom.h: New file. Relocate prototypes here.
15538 * tree-ssa.h: Include tree-ssa-dom.h.
15539
15540 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
15541
15542 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
15543 Use $(COMPILE) and $(POSTCOMPILE).
15544
15545 * config/alpha/x-alpha (driver-alpha.o): Ditto.
15546
15547 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15548
15549 * tree-flow.h: Remove some prototypes.
15550 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
15551 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15552 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
15553 propagate_tree_value*): Move from here to...
15554 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
15555 propagate_tree_value*): Relocate here.
15556 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
15557 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
15558 * gimple-fold.c: Remove gimple-fold.h from include list.
15559 * tree-vrp.c: Remove gimple-fold.h from include list.
15560 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
15561 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
15562 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
15563 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
15564 * sese.c: Add tree-ssa-propagate.h to include list.
15565
15566 2013-10-02 Richard Biener <rguenther@suse.de>
15567
15568 * tree-loop-distribution.c: Include tree-vectorizer.h for
15569 find_loop_location.
15570 (enum partition_kind): Remove PKIND_REDUCTION.
15571 (struct partition_s): Remove has_writes member, add reduction_p member.
15572 (partition_alloc): Adjust.
15573 (partition_builtin_p): Likewise.
15574 (partition_has_writes): Remove.
15575 (partition_reduction_p): New function.
15576 (partition_merge_into): Likewise.
15577 (generate_code_for_partition): Commonize builtin partition
15578 handling tail.
15579 (rdg_cannot_recompute_vertex_p): Remove.
15580 (already_processed_vertex_p): Likewise.
15581 (rdg_flag_vertex): Do not set has_writes.
15582 (classify_partition): Adjust.
15583 (rdg_build_partitions): Do not set has_writes, treat all
15584 partitions as useful.
15585 (distribute_loop): Record number of library calls generated. Adjust.
15586 (tree_loop_distribution): Report number of loops and library
15587 calls generated as opt-info.
15588
15589 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
15590
15591 * tree-flow.h: Include new .h files. Move prototypes.
15592 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
15593 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
15594 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
15595 * tree-pretty-print.h: Add prototypes from tree-flow.h.
15596 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
15597 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
15598 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
15599 * tree.h (get_ref_base_and_extent): Move prototype out.
15600 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
15601 tree-dfa.h.
15602 * gimple-low.h: New File. Add prototypes from tree-flow.h.
15603 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
15604 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
15605 * tree-scalar-evolution.c: Include tree.h.
15606 * sese.c: Include tree.h.
15607 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
15608 * dwarf2out.c: Include tree-dfa.h.
15609 * tree-chrec.c: Include tree.h.
15610 * tree-data-ref.c: Include tree.h.
15611
15612 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
15613
15614 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
15615 Fix whitespace.
15616
15617 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15618
15619 * config/t-sol2 (sol2-c.o): Remove header dependencies.
15620 Use $(COMPILE) and $(POSTCOMPILE).
15621 (sol2-cxx.o): Likewise.
15622 (sol2-stubs.o): Likewise.
15623 (sol2.o): Likewise.
15624 * config/x-solaris (host-solaris.o): Likewise.
15625
15626 * config/sparc/t-sparc (sparc.o): Remove.
15627 (sparc-c.o): Remove header dependencies.
15628 Use $(COMPILE) and $(POSTCOMPILE).
15629 * config/sparc/x-sparc: Likewise.
15630
15631 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
15632
15633 * config/arc/arc-opts.h: Add 2013 to Copyright years.
15634 * config/arc/arc700.md: Likewise.
15635 * config/arc/arc-modes.def: Likewise.
15636 * config/arc/arc-simd.h: Likewise.
15637 * config/arc/t-arc-uClibc: Likewise.
15638 * config/arc/t-arc-newlib: Likewise.
15639
15640 2013-10-02 Renlin Li <renlin.li@arm.com>
15641
15642 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
15643 plus_constant.
15644 (aarch64_expand_epilogue): Likewise.
15645
15646 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15647 Yufeng Zhang <yufeng.zhang@arm.com>
15648
15649 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
15650 declaration.
15651 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
15652 'base_in' represent a conversion and legal_cast_p_1 holds; set
15653 'base_in' with the returned value from get_unwidened.
15654
15655 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15656
15657 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
15658 plus_constant is not used.
15659
15660 2013-10-01 Wei Mi <wmi@google.com>
15661
15662 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
15663 * config/i386/i386.md: Add define_peephole2 to
15664 break partial reg stall for cvtss2sd/cvtsd2ss.
15665
15666 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15667
15668 * config/arc/arc.c (pass_arc_ifcvt::clone):
15669 Update for ctxt_ -> m_ctxt change.
15670
15671 2013-10-01 Jeff Law <law@redhat.com>
15672
15673 * tree-ssa-threadupdate.c (struct redirection_data): Delete
15674 outgoing_edge and intermediate_edge fields. Instead store the path.
15675 (redirection_data::hash): Hash on the last edge's destination index.
15676 (redirection_data::equal): Check the entire thread path.
15677 (lookup_redirectio_data): Corresponding changes.
15678 (create_edge_and_update_destination_phis): Likewise.
15679 (thread_single_edge): Likewise.
15680
15681 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15682 Diego Novillo <dnovillo@google.com>
15683
15684 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
15685 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
15686 (vld32wh_insn, vld32wl_insn): Delete commented-out old
15687 versions of these patterns.
15688
15689 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
15690 (__builtin_arc_aligned): Likewise.
15691
15692 * config/arc/arc.md: Expand adc_0 comment stating the intended
15693 purpose and why it isn't ready.
15694 Replace commented out call_value_via_label_mixed with a
15695 plain comment about bl_s.
15696
15697 * config/arc/arc.c (stdio.h): Don't include directly.
15698 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
15699 Remove if (1) condition.
15700 (arc_encode_section_info): Fix comment.
15701
15702 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15703
15704 * config/arc/arc.c (arc_conditional_register_usage):
15705 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
15706 Also set reg_alloc_order for DMA config regs.
15707
15708 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15709 Jeremy Bennett <jeremy.bennett@embecosm.com>
15710
15711 * doc/install.texi (--with-cpu): Mention ARC.
15712 (arc-*-elf32): New paragraph.
15713 (arc-linux-uclibc): Likewise.
15714 * doc/md.texi (Machine Constraints): Add ARC part.
15715 * doc/invoke.texi: (menu): Add ARC Options.
15716 (Machine Dependent Options) <ARC Options>: Add synopsis.
15717 (node ARC Options): Add.
15718 * doc/extend.texi (long_call / short_call attribute): Add ARC.
15719 (ARC Built-in Functions): New section defining
15720 generic ARC built-in functions.
15721 (ARC SIMD Built-in Functions): New section defining SIMD specific
15722 built-in functions.
15723 (Declaring Attributes of Functions): Extended
15724 description of short_call and long_call attributes for ARC and
15725 added index entries.
15726
15727 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
15728 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
15729 Joern Rennecke <joern.rennecke@embecosm.com>
15730 Muhammad Khurram Riaz <khurram.riaz@arc.com>
15731 Brendan Kehoe <brendan@zen.org>
15732 Michael Eager <eager@eagercon.com>
15733 Simon Cook <simon.cook@embecosm.com>
15734 Jeremy Bennett <jeremy.bennett@embecosm.com>
15735
15736 * config/arc, common/config/arc: New directories.
15737
15738 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
15739 Brendan Kehoe <brendan@zen.org>
15740 Simon Cook <simon.cook@embecosm.com>
15741
15742 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
15743
15744 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15745
15746 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
15747 * tree-ssa-coalesce.h: New. Move prototype to here.
15748 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
15749 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
15750 (gimple_can_coalesce_p): Move to...
15751 * gimple.c (gimple_can_coalesce_p): Here.
15752
15753 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
15754
15755 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
15756 (dump_decl_set): Move to gimple.c.
15757 * gimple.h: Don't include tree-ssa-operands.h.
15758 (dump_decl_set): Add prototype.
15759 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15760 Move to gimple-ssa.h.
15761 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
15762 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
15763 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
15764 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
15765 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
15766 than PHI_ARG_DEF.
15767 (dump_decl_set): Relocate here.
15768 * gimple-ssa.h: New file.
15769 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
15770 Relocate from gimple.h.
15771 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
15772 * tree-ssa-operands.c (swap_ssa_operands): Rename from
15773 swap_tree_operands and remove non-ssa path.
15774 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
15775 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
15776 swap_ssa_operands.
15777 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
15778 vect_is_simple_reduction_1): Use swap_ssa_operands.
15779 * tree-flow.h: Move various prototypes to tree-phinodes.h.
15780 (enum need_phi_state): Move to tree-into-ssa.c.
15781 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15782 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
15783 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
15784 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
15785 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15786 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15787 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15788 num_imm_uses): Move to ssa-iterators.h.
15789 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
15790 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
15791 tree-phinodes.h.
15792 (op_iter_done, op_iter_next_def, op_iter_next_tree,
15793 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
15794 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
15795 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
15796 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
15797 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
15798 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
15799 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
15800 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
15801 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
15802 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
15803 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
15804 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
15805 (set_phi_nodes): Move to tree-phinodes.h.
15806 * tree-ssa-operands.h (enum ssa_op_iter_type,
15807 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
15808 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
15809 (dump_decl_set): Remove prototype.
15810 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
15811 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
15812 (set_phi_nodes): Relocate from tree-flow-inline.h.
15813 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
15814 tree-flow-inline.h
15815 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
15816 include list. Temporarily add gimple.h to include list.
15817 * ssa-iterators.h: New file.
15818 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
15819 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
15820 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
15821 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
15822 Relocate from tree-ssa-operands.h.
15823 (delink_imm_use, link_imm_use_to_list, link_imm_use,
15824 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
15825 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
15826 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
15827 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
15828 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
15829 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
15830 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
15831 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
15832 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
15833 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
15834 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
15835 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
15836 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
15837 Relocate from tree-flow-inline.h.
15838 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
15839
15840 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
15841
15842 * aarch64-simd.md
15843 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
15844 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
15845 Insert '\t' to output template.
15846 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
15847 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
15848 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
15849 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
15850
15851 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
15852
15853 * doc/install.texi (Host/target specific installation notes for GCC):
15854 Put @anchor before @heading.
15855 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
15856 Use @email for email addresses.
15857
15858 2013-10-01 Jeff Law <law@redhat.com>
15859
15860 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
15861 a vec. Only delete the path if we create one without successfully
15862 registering a jump thread.
15863 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
15864 as a pointer.
15865 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
15866 (paths): New vector of jump threading paths.
15867 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
15868 (THREAD_PATH): New accessor macro for the entire thread path.
15869 (lookup_redirection_data): Get intermediate and final outgoing edge
15870 from the thread path.
15871 (create_edge_and_update_destination_phis): Copy the threading path.
15872 (ssa_fix_duplicate_block_edges): Get edges and block types from the
15873 jump threading path.
15874 (ssa_redirect_edges): Get edges and block types from the jump threading
15875 path. Free the path vector.
15876 (thread_block): Get edges from the jump threading path. Look at the
15877 entire path to see if we thread to a loop exit. If we cancel a jump
15878 thread request, then free the path vector.
15879 (thread_single_edge): Get edges and block types from the jump threading
15880 path. Free the path vector.
15881 (thread_through_loop_header): Get edges and block types from the jump
15882 threading path. Free the path vector.
15883 (mark_threaded_blocks): Iterate over the vector of paths and store
15884 the path on the appropriate edge. Get edges and block types from the
15885 jump threading path.
15886 (mark_threaded_blocks): Get edges and block types from the jump
15887 threading path. Free the path vector.
15888 (thread_through_all_blocks): Use the vector of paths rather than
15889 a vector of 3-edge sets.
15890 (register_jump_thread): Accept pointer to a path vector rather
15891 than the path vector itself. Store the path vector for later use.
15892 Simplify.
15893
15894 2013-10-01 Jakub Jelinek <jakub@redhat.com>
15895 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15896
15897 PR target/58574
15898 * config/s390/s390.c (s390_split_branches): Modify check for table
15899 jump insns.
15900 (s390_chunkify_start): Rearrange table jump insn check in order to
15901 deal with compare and branch insns correctly.
15902
15903 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
15904
15905 PR target/58578
15906 Revert
15907 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
15908 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
15909 define_insn_and_split.
15910 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
15911 (shiftsi3_compare): New pattern.
15912 (rrx): New pattern.
15913 * config/arm/unspecs.md (UNSPEC_RRX): New.
15914
15915 2013-10-01 Alan Modra <amodra@gmail.com>
15916
15917 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
15918 casing inout operands.
15919
15920 2013-10-01 Richard Biener <rguenther@suse.de>
15921
15922 PR tree-optimization/58553
15923 * tree-loop-distribution.c (struct partition_s): Add niter member.
15924 (classify_partition): Populate niter member for the partition
15925 and properly identify whether the relevant store happens before
15926 or after the loop exit.
15927 (generate_memset_builtin): Use niter member from the partition.
15928 (generate_memcpy_builtin): Likewise.
15929
15930 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15931
15932 * vec.h (vec_prefix, vec): Prefix member names with "m_".
15933 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
15934
15935 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
15936
15937 * basic-block.h (edge_list): Prefix member names with "m_".
15938 * context.h (context): Likewise.
15939 * domwalk.h (dom_walker): Likewise.
15940 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
15941 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
15942 * hash-table.h (hash_table): Likewise.
15943 * machmode.h (bit_field_mode_iterator): Likewise.
15944 * pass_manager.h (pass_list): Likewise.
15945 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
15946 * tree-pass.h (pass_data): Likewise.
15947 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
15948 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
15949 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
15950 * asan.c (pass_data_asan): Update accordingly.
15951 * cfganal.c (control_dependences::find_control_dependence): Likewise.
15952 (control_dependences::control_dependences): Likewise.
15953 (control_dependences::~control_dependences): Likewise.
15954 (control_dependences::~control_dependences): Likewise.
15955 (control_dependences::get_edges_dependent_on): Likewise.
15956 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
15957 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
15958 * context.c (gcc::context::context): Likewise.
15959 * cprop.c (pass_rtl_cprop::clone): Likewise.
15960 * domwalk.c (dom_walker::walk): Likewise.
15961 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
15962 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
15963 * mode-switching.c (pass_mode_switching::clone): Likewise.
15964 * passes.c (opt_pass::opt_pass): Likewise.
15965 (pass_manager::pass_manager): Likewise.
15966 * predict.c (pass_strip_predict_hints::clone): Likewise.
15967 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
15968 (pass_split_all_insns::clone): Likewise.
15969 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
15970 Likewise.
15971 (bit_field_mode_iterator::next_mode): Likewise.
15972 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
15973 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
15974 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
15975 * tree-complex.c (pass_lower_complex::clone): Likewise.
15976 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
15977 * tree-object-size.c (pass_object_sizes::clone): Likewise.
15978 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
15979 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
15980 (pass_fold_builtins::clone): Likewise.
15981 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
15982 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
15983 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
15984 (pass_cd_dce::clone): Likewise.
15985 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
15986 (pass_phi_only_cprop::clone): Likewise.
15987 * tree-ssa-dse.c (pass_dse::clone): Likewise.
15988 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
15989 * tree-ssa-loop.c (pass_lim::clone): Likewise.
15990 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
15991 * tree-ssa-pre.c (pass_fre::clone): Likewise.
15992 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
15993 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
15994 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
15995 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
15996 * tree-vrp.c (pass_vrp::clone): Likewise.
15997 * tsan.c (pass_tsan::clone): Likewise.
15998
15999 2013-09-30 Jakub Jelinek <jakub@redhat.com>
16000
16001 PR middle-end/58564
16002 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
16003 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
16004
16005 PR middle-end/58564
16006 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
16007 optimization, punt if sign_bit_p looked through any zero extension.
16008
16009 2013-09-30 Teresa Johnson <tejohnson@google.com>
16010
16011 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
16012 Update redirected out edge count in joiner case.
16013 (ssa_redirect_edges): Common the joiner and non-joiner cases
16014 so that joiner case gets profile updates.
16015
16016 2013-09-30 Richard Biener <rguenther@suse.de>
16017
16018 PR tree-optimization/58554
16019 * tree-loop-distribution.c (classify_partition): Require
16020 unconditionally executed stores for memcpy and memset recognition.
16021 (tree_loop_distribution): Calculate dominance info.
16022
16023 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16024
16025 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
16026 (NO_PROFILE_COUNTERS): Likewise.
16027 (PROFILE_HOOK): Likewise.
16028 (FUNCTION_PROFILER): Likewise.
16029 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
16030
16031 2013-09-30 Iain Sandoe <iain@codesourcery.com>
16032
16033 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
16034 calls and defines in TARGET_MACHO conditional.
16035 (load_macho_picbase_di): Likewise.
16036 (reload_macho_picbase): Likewise.
16037 (reload_macho_picbase_si): Likewise.
16038 (reload_macho_picbase_di): Likewise.
16039 (nonlocal_goto_receiver): Likewise.
16040
16041 2013-09-30 Nick Clifton <nickc@redhat.com>
16042
16043 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
16044 that use the MSP430X ISA.
16045 (msp430_option_override): Scan -mmcu command line option for any
16046 MCU name that supports the MSP430X ISA.
16047 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
16048 -mmcu options which enable the MSP430X ISA.
16049
16050 2013-09-30 Richard Biener <rguenther@suse.de>
16051
16052 PR middle-end/58532
16053 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
16054 before looking for setjmp-like calls.
16055
16056 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16057
16058 PR target/10901
16059 * config/darwin-protos.h (machopic_get_function_picbase): New.
16060 * config/darwin.c (machopic_get_function_picbase): New.
16061 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
16062 label for a new func. (load_macho_picbase_di): Likewise.
16063 (reload_macho_picbase): New expand.
16064 (reload_macho_picbase_si): New insn.
16065 (reload_macho_picbase_di): New insn.
16066 (nonlocal_goto_receiver): New define and split.
16067 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
16068 (unspecv enum): Add UNSPECV_NLGR.
16069
16070 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16071
16072 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
16073 that altivec registers are correctly sized on Darwin.
16074
16075 2013-09-29 Iain Sandoe <iain@codesourcery.com>
16076
16077 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
16078 darwin-driver.o): Use COMPILE and POSTCOMPILE.
16079 * config/x-darwin (host-darwin.o): Likewise.
16080 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16081 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16082 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16083
16084 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
16085
16086 * doc/invoke.texi: Fix usage of @tie{} command.
16087
16088 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
16089
16090 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
16091
16092 2013-09-28 Jan Hubicka <jh@suse.cz>
16093
16094 * config/i386/x86-tune.def: Add documentation for each of the options;
16095 add whitespace.
16096
16097 2013-09-28 Jan Hubicka <jh@suse.cz>
16098
16099 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
16100 generic.
16101 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
16102 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
16103 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
16104 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
16105 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
16106
16107 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
16108
16109 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
16110 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
16111 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
16112 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
16113 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
16114 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
16115 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
16116 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
16117 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
16118 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
16119 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
16120 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
16121 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
16122 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
16123 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
16124 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
16125 gimple.h, godump.c, graphite-clast-to-gimple.c,
16126 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
16127 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
16128 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
16129 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16130 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
16131 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
16132 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
16133 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
16134 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
16135 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
16136 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
16137 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
16138 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
16139 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
16140 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
16141 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
16142 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
16143 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
16144 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
16145 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
16146 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
16147 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
16148 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
16149 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
16150 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16151 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16152 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
16153 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
16154 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
16155 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16156 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16157 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16158 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
16159 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16160 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
16161 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
16162 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
16163 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
16164 whitespace before "(".
16165
16166 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
16167
16168 * expr.h (extract_bit_field): Remove packedp parameter.
16169 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
16170 from forward declaration.
16171 (store_split_bit_field): Remove packedp arg from calls to
16172 extract_fixed_bit_field.
16173 (extract_bit_field_1): Remove packedp parameter and packedp
16174 argument from recursive calls and calls to extract_fixed_bit_field.
16175 (extract_bit_field): Remove packedp parameter and corresponding
16176 arg to extract_bit_field_1.
16177 (extract_fixed_bit_field): Remove packedp parameter. Remove code
16178 to issue warnings.
16179 (extract_split_bit_field): Remove packedp arg from call to
16180 extract_fixed_bit_field.
16181 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
16182 (copy_blkmode_from_reg): Likewise.
16183 (copy_blkmode_to_reg): Likewise.
16184 (read_complex_part): Likewise.
16185 (store_field): Likewise.
16186 (expand_expr_real_1): Likewise.
16187 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
16188 to extract_bit_field.
16189 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
16190 call to extract_bit_field.
16191 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
16192 call to extract_bit_field.
16193 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
16194 and special packedp behavior from -fstrict-volatile-bitfields
16195 documentation.
16196
16197 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16198
16199 * lra-eliminations.c (init_elim_table): Guard value_p.
16200
16201 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16202
16203 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
16204 DFmode, DImode, and SFmode in the upper VSX registers based on the
16205 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
16206 if -mpower8-vector. Combine -mvsx-timode handling with the rest
16207 of the VSX register handling.
16208
16209 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
16210 (f32_sv): Likewise.
16211 (zero_extendsidi2_lfiwzx): Add support for loading into the
16212 Altivec registers with -mpower8-vector. Use wu/wv constraints to
16213 only do VSX memory options on Altivec registers.
16214 (extendsidi2_lfiwax): Likewise.
16215 (extendsfdf2_fpr): Likewise.
16216 (mov<mode>_hardfloat, SF/SD modes): Likewise.
16217 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
16218 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
16219 (movdi_internal64): Likewise.
16220
16221 2013-09-27 Xinliang David Li <davidxl@google.com>
16222
16223 * opts.c (finish_options): Adjust parameters
16224 according to vect cost model.
16225 (common_handle_option): Set dynamic vect cost
16226 model for FDO.
16227 targhooks.c (default_add_stmt_cost): Compute stmt cost
16228 unconditionally.
16229 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
16230 Use helper function.
16231 * tree-vectorizer.h (unlimited_cost_model): New function.
16232 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
16233 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
16234 function.
16235 (vect_enhance_data_refs_alignment): Ditto.
16236 * flag-types.h: New enum.
16237 * common/config/i386/i386-common.c (ix86_option_init_struct):
16238 No need to initialize vect_cost_model flag.
16239 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
16240 unconditionally.
16241
16242 2013-09-27 Diego Novillo <dnovillo@google.com>
16243
16244 * gimple.h (enum ssa_mode): Remove.
16245
16246 2013-09-27 Paulo Matos <pmatos@broadcom.com>
16247
16248 * cfgloop.h (number_of_loops): Fix typo in check for null.
16249
16250 2013-09-27 Jakub Jelinek <jakub@redhat.com>
16251
16252 PR middle-end/58551
16253 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
16254 are children of outermost saved_cfun's loop, and set it up to
16255 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
16256 if loop != loop0 and SESE region contains bbs that belong to loop0.
16257
16258 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16259
16260 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
16261 (binary_scale_code_p, get_base_term, get_index_term): New functions.
16262 (set_address_segment, set_address_base, set_address_index)
16263 (set_address_disp): Accept the argument unconditionally.
16264 (baseness): Remove must_be_base_p and must_be_index_p checks.
16265 (decompose_normal_address): Classify as much as possible in the
16266 main loop.
16267
16268 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
16269
16270 * cse.c (count_reg_usage): Handle INT_LIST.
16271 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
16272 * reginfo.c (reg_scan_mark_refs): Likewise.
16273 * reload1.c (eliminate_regs_1): Likewise.
16274
16275 2013-09-27 Iain Sandoe <iain@codesourcery.com>
16276
16277 PR middle-end/58547
16278 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
16279 signed.
16280
16281 2013-09-27 Richard Biener <rguenther@suse.de>
16282
16283 PR tree-optimization/58459
16284 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
16285 restriction not propagating into loops.
16286
16287 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
16288
16289 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
16290 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
16291 * doc/tree-ssa.texi (Walking use-def chains): Delete.
16292
16293 2013-09-26 Richard Biener <rguenther@suse.de>
16294
16295 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
16296
16297 2013-09-26 Richard Biener <rguenther@suse.de>
16298
16299 * alias.h (component_uses_parent_alias_set): Rename to ...
16300 (component_uses_parent_alias_set_from): ... this.
16301 * alias.c (component_uses_parent_alias_set): Rename to ...
16302 (component_uses_parent_alias_set_from): ... this and return
16303 the desired parent.
16304 (reference_alias_ptr_type_1): Use the result from
16305 component_uses_parent_alias_set_from instead of stripping
16306 components one at a time.
16307 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
16308
16309 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16310
16311 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
16312 Move prototypes to...
16313 * tree-ssa-ter.h: New File. Move prototypes here.
16314 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
16315 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
16316 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
16317 from is_replaceable_p.
16318 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
16319 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
16320 (process_replaceable): Use ter_is_replaceable_p.
16321 (find_replaceable_in_bb): Use ter_is_replaceable_p.
16322 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
16323 newly refactored ssa_is_replaceable_p.
16324 * cfgexpand.c: Include tree-outof-ssa.h.
16325 * ssaexpand.h: Delete.
16326
16327 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
16328
16329 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
16330 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
16331 tree-ssa.c
16332 (create_gimple_tmp): Delete.
16333 (get_expr_type, build_assign, build_type_cast): Move to...
16334 * gimple-builder.c: New File.
16335 (get_expr_type): Relocate from gimple.c.
16336 (build_assign, build_type_cast): Change to only create ssanames.
16337 * gimple.h: Move prototypes to...
16338 * gimple-builder.h: New File. Here.
16339 * tree-ssa.h: And here.
16340 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
16341 count_uses_and_derefs): Relocate from gimple.c.
16342 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
16343 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
16344 * tree-ssa-math-opts (execute_cse_reciprocals): Use
16345 gimple_replace_ssa_lhs.
16346 * asan.c: Include gimple-builder.h.
16347 * Makefile.in: Add gimple-builder.o.
16348
16349 2013-09-26 Richard Biener <rguenther@suse.de>
16350
16351 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
16352 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
16353 (loe_visit_block): Use gcc_checking_assert.
16354 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
16355 gimple_assign_ssa_name_copy_p.
16356 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
16357 change.
16358
16359 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
16360
16361 * config/rs6000/t-rs6000 (rs6000.o): Remove.
16362 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
16363
16364 2013-09-26 Richard Biener <rguenther@suse.de>
16365
16366 PR tree-optimization/58539
16367 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
16368 the fact that debug statements are not taking part in loop-closed
16369 SSA construction.
16370
16371 2013-09-26 Nick Clifton <nickc@redhat.com>
16372
16373 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
16374 time warning message.
16375 (msp430_print_operand_raw): Delete unused letter parameter.
16376 (TARGET_PRINT_OPERAND_ADDRESS): Define.
16377 (msp430_print_operand_address): New function.
16378 (msp430_print_operand): Move address printing code from here to
16379 new function.
16380 * config/msp430/msp430.md (movsipsi2): Add comment in generated
16381 assembler.
16382 (zero_extendpsisi2): Likewise.
16383 (extendpsisi2): New pattern.
16384 (andneghi3): New pattern.
16385
16386 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
16387
16388 * config/aarch64/aarch64.opt (mlra): New option.
16389 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
16390 (TARGET_LRA_P): Define.
16391
16392 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
16393
16394 * expr.c (expand_assignment): Remove obsolete comment.
16395
16396 2013-09-25 Jeff Law <law@redhat.com>
16397
16398 * tree-flow.h (thread_through_all_blocks): Prototype moved into
16399 tree-ssa-threadupdate.h.
16400 (register_jump_thread): Similarly.
16401 * tree-ssa-threadupdate.h: New header file.
16402 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
16403 * tree-vrp.c: Likewise.
16404 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
16405 (thread_around_empty_blocks): Change type of path vector argument to
16406 an edge,type pair from just an edge. Initialize both elements when
16407 appending to a jump threading path. Tweak references to elements
16408 appropriately.
16409 (thread_across_edge): Similarly. Release memory for the elements
16410 as needed.
16411 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
16412 (dump_jump_thread_path): New function broken out from
16413 register_jump_thread.
16414 (register_jump_thread): Use dump_jump_thread_path. Change type of
16415 path vector entries. Search the path for NULL edges and dump
16416 the path if one is found. Tweak the conversion of path to 3-edge
16417 form to use the block copy type information embedded in the path.
16418
16419 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16420
16421 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
16422
16423 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
16424 Vladimir Makarov <vmakarov@redhat.com>
16425
16426 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
16427 from the least significant bit.
16428 (strip_address_mutations): Add bitfield operations handling.
16429 (must_be_index_p): Add shifting and rotate operations handling.
16430 (set_address_base): Use must_be_base_p predicate.
16431 (set_address_index): Use must_be_index_p predicate.
16432
16433 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
16434 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16435 Sergey Lega <sergey.s.lega@intel.com>
16436 Anna Tikhonova <anna.tikhonova@intel.com>
16437 Ilya Tocar <ilya.tocar@intel.com>
16438 Andrey Turetskiy <andrey.turetskiy@intel.com>
16439 Ilya Verbin <ilya.verbin@intel.com>
16440 Kirill Yukhin <kirill.yukhin@intel.com>
16441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16442
16443 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16444 Use new names.
16445 (ix86_expand_vector_move_misalign): Support new unaligned load and
16446 stores and use new names.
16447 (CODE_FOR_sse2_storedqu): Rename to ...
16448 (CODE_FOR_sse2_storedquv16qi): ... this.
16449 (CODE_FOR_sse2_loaddqu): Rename to ...
16450 (CODE_FOR_sse2_loaddquv16qi): ... this.
16451 (CODE_FOR_avx_loaddqu256): Rename to ...
16452 (CODE_FOR_avx_loaddquv32qi): ... this.
16453 (CODE_FOR_avx_storedqu256): Rename to ...
16454 (CODE_FOR_avx_storedquv32qi): ... this.
16455 * config/i386/i386.md (fpint_logic): New.
16456 * config/i386/sse.md (VMOVE): Extend for AVX512.
16457 (VF): Ditto.
16458 (VF_128_256): New.
16459 (VF_512): Ditto.
16460 (VI_UNALIGNED_LOADSTORE): Ditto.
16461 (sse2_avx_avx512f): Ditto.
16462 (sse2_avx2): Extend for AVX512.
16463 (sse4_1_avx2): Ditto.
16464 (avx2_avx512f): New.
16465 (sse): Extend for AVX512.
16466 (sse2): Ditto.
16467 (sse4_1): Ditto.
16468 (avxsizesuffix): Ditto.
16469 (sseintvecmode): Ditto.
16470 (ssePSmode): Ditto.
16471 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
16472 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
16473 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16474 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
16475 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
16476 (<sse2_avx_avx512f>_storedqu<mode): ... this.
16477 (<sse>_movnt<mode>): Replace constraint "x" with "v".
16478 (STORENT_MODE): Extend for AVX512.
16479 (*absneg<mode>2): Replace constraint "x" with "v".
16480 (*mul<mode>3): Ditto.
16481 (*ieee_smin<mode>3): Ditto.
16482 (*ieee_smax<mode>3): Ditto.
16483 (avx_cmp<mode>3): Replace VF with VF_128_256.
16484 (*<sse>_maskcmp<mode>3_comm): Ditto.
16485 (<sse>_maskcmp<mode>3): Ditto.
16486 (<sse>_andnot<mode>3): Extend for AVX512.
16487 (<code><mode>3, anylogic): Replace VF with VF_128_256.
16488 (<code><mode>3, fpint_logic): New.
16489 (*<code><mode>3): Extend for AVX512.
16490 (avx512flogicsuff): New.
16491 (avx512f_<logic><mode>): Ditto.
16492 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
16493 VF_128_256.
16494 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
16495 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
16496 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
16497 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
16498 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
16499 (xop_vpermil2<mode>3): Ditto.
16500 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
16501 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
16502 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
16503 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
16504
16505 2013-09-25 Tom Tromey <tromey@redhat.com>
16506
16507 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
16508 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
16509 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
16510 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
16511 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
16512 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
16513 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
16514 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
16515 (GRAPHITE_HTAB_H): Remove.
16516
16517 2013-09-25 Tom Tromey <tromey@redhat.com>
16518
16519 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
16520
16521 2013-09-25 Tom Tromey <tromey@redhat.com>
16522
16523 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
16524
16525 2013-09-25 Tom Tromey <tromey@redhat.com>
16526
16527 * config/i386/t-i386 (i386.o): Remove.
16528 (i386-c.o): Use COMPILE and POSTCOMPILE.
16529
16530 2013-09-25 Tom Tromey <tromey@redhat.com>
16531
16532 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
16533
16534 2013-09-25 Tom Tromey <tromey@redhat.com>
16535
16536 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
16537 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
16538 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
16539 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
16540 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
16541 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
16542 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
16543 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
16544 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
16545 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
16546 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
16547 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
16548 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
16549 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
16550 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
16551 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
16552 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
16553 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
16554 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
16555 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
16556 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
16557 (tree-ssa-pre.o, tree-ssa-sccvn.o)
16558 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
16559 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
16560 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
16561 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
16562 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
16563 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
16564 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
16565 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
16566 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
16567 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
16568 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
16569 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
16570 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
16571 (graphite-clast-to-gimple.o, graphite-dependences.o)
16572 (graphite-interchange.o, graphite-poly.o)
16573 (graphite-scop-detection.o, graphite-sese-to-poly.o)
16574 (graphite-optimize-isl.o, tree-vect-loop.o)
16575 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
16576 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
16577 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
16578 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
16579 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
16580 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
16581 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
16582 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
16583 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
16584 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
16585 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
16586 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
16587 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
16588 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
16589 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
16590 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
16591 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
16592 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
16593 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
16594 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
16595 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
16596 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
16597 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
16598 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
16599 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
16600 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
16601 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
16602 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
16603 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
16604 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
16605 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
16606 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
16607 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
16608 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
16609 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
16610 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
16611 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
16612 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
16613 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
16614 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
16615 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
16616 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
16617 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
16618 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
16619 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
16620 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
16621 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
16622 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
16623 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
16624 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
16625 (gcov-dump.o): Remove.
16626 (default-c.o): Use COMPILE and POSTCOMPILE.
16627 (CFLAGS-gcc.o): New variable.
16628 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
16629
16630 2013-09-25 Tom Tromey <tromey@redhat.com>
16631
16632 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
16633 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
16634 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
16635 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
16636 (c-family/c-pragma.o, c-family/c-pretty-print.o)
16637 (c-family/c-semantics.o, c-family/c-ada-spec.o)
16638 (c-family/array-notation-common.o, c-family/stub-objc.o)
16639 (c-family/c-ubsan.o): Remove.
16640
16641 2013-09-25 Tom Tromey <tromey@redhat.com>
16642
16643 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
16644
16645 2013-09-25 Tom Tromey <tromey@redhat.com>
16646
16647 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
16648 to add -DENABLE_SHARED_LIBGCC.
16649 (gcc.o): Don't use subshell.
16650
16651 2013-09-25 Tom Tromey <tromey@redhat.com>
16652
16653 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
16654 * configure.ac: Don't invoke AM_PROG_CC_C_O.
16655 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
16656 * configure, config.in: Rebuild.
16657
16658 2013-09-25 Tom Tromey <tromey@redhat.com>
16659
16660 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
16661 (COMPILE, POSTCOMPILE): New variables.
16662 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
16663 (DEPFILES): New variable.
16664 Include ".Po" files.
16665 * configure.ac: Add checks for dependency checking.
16666 * configure, aclocal.m4: Regenerate.
16667
16668 2013-09-25 Tom Tromey <tromey@redhat.com>
16669
16670 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
16671 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
16672
16673 2013-09-25 Tom Tromey <tromey@redhat.com>
16674
16675 * Makefile.in (generated_files): Add options.h,
16676 target-hooks-def.h, insn-opinit.h,
16677 common/common-target-hooks-def.h, pass-instances.def,
16678 c-family/c-target-hooks-def.h.
16679
16680 2013-09-25 Jeff Law <law@redhat.com>
16681
16682 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
16683 than foo[foo.length () - 1] to access last member in a vec.
16684 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
16685
16686 2013-09-25 Richard Biener <rguenther@suse.de>
16687
16688 PR middle-end/58521
16689 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
16690
16691 2013-09-25 Jan Hubicka <jh@suse.cz>
16692
16693 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
16694 test.
16695
16696 2013-09-25 Marek Polacek <polacek@redhat.com>
16697
16698 PR sanitizer/58420
16699 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
16700 when determining the type name.
16701
16702 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
16703
16704 * config/sh/sh.md: Fix formatting.
16705
16706 2013-09-24 Xinliang David Li <davidxl@google.com>
16707
16708 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
16709 max peel iterations parameter.
16710 * param.def: New parameter.
16711 * doc/invoke.texi: Document New parameter.
16712
16713 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
16714
16715 * gimple-pretty-print.c: Various whitespace tweaks.
16716 * tree-core.h: Likewise.
16717 * tree-pretty-print.c: Likewise.
16718 * tree-ssa-alias.c: Likewise.
16719 * tree-ssa-copy.c: Likewise.
16720 * tree-ssanames.c: Likewise.
16721 * tree-ssanames.h: Likewise.
16722 * tree-vrp.c: Likewise.
16723
16724 2013-09-24 Alan Modra <amodra@gmail.com>
16725
16726 PR middle-end/57134
16727 PR middle-end/57586
16728 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
16729 for output operands that disallow regs. Don't use EXPAND_WRITE on
16730 inout operands.
16731
16732 2013-09-24 Richard Biener <rguenther@suse.de>
16733
16734 PR middle-end/58513
16735 * tree.c (reference_alias_ptr_type): Move ...
16736 * alias.c (reference_alias_ptr_type): ... here and implement
16737 in terms of the new reference_alias_ptr_type_1.
16738 (ref_all_alias_ptr_type_p): New helper.
16739 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
16740 use ref_all_alias_ptr_type_p.
16741 (get_deref_alias_set): Add flag_strict_aliasing check here.
16742 (reference_alias_ptr_type_1): New function, split out from ...
16743 (get_alias_set): ... here.
16744 (alias_ptr_types_compatible_p): New function.
16745 * alias.h (reference_alias_ptr_type): Declare.
16746 (alias_ptr_types_compatible_p): Likewise.
16747 * tree.h (reference_alias_ptr_type): Remove.
16748 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
16749 to compare MEM_REF alias types.
16750
16751 2013-09-24 Richard Biener <rguenther@suse.de>
16752
16753 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
16754
16755 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16756
16757 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
16758 reload helper function arrays into a single array reg_addr.
16759 (reload_fpr_gpr): Likewise.
16760 (reload_gpr_vsx): Likewise.
16761 (reload_vsx_gpr): Likewise.
16762 (struct rs6000_reg_addr): Likewise.
16763 (reg_addr): Likewise.
16764 (rs6000_debug_reg_global): Change rs6000_vector_reload,
16765 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
16766 (rs6000_init_hard_regno_mode_ok): Likewise.
16767 (rs6000_secondary_reload_direct_move): Likewise.
16768 (rs6000_secondary_reload): Likewise.
16769
16770 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
16771 constraints: wu, ww, and wy. Repurpose wv constraint added during
16772 power8 changes. Put wg constraint in alphabetical order.
16773
16774 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
16775 for future work to add ISA 2.07 VSX single precision support.
16776 (-mvsx-scalar-double): Change default from -1 to 1, update
16777 documentation comment.
16778 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
16779 (-mupper-regs-df): New debug switch to control whether DF values
16780 can go in the traditional Altivec registers.
16781 (-mupper-regs-sf): New debug switch to control whether SF values
16782 can go in the traditional Altivec registers.
16783
16784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
16785 and wy constraints.
16786 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
16787 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
16788 Add new constraints, wu/ww/wy. Repurpose wv constraint.
16789 (rs6000_debug_legitimate_address_p): Print if we are running
16790 before, during, or after reload.
16791 (rs6000_secondary_reload): Add a comment.
16792 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
16793
16794 * config/rs6000/constraints.md (wa constraint): Sort w<x>
16795 constraints. Update documentation string.
16796 (wd constraint): Likewise.
16797 (wf constraint): Likewise.
16798 (wg constraint): Likewise.
16799 (wn constraint): Likewise.
16800 (ws constraint): Likewise.
16801 (wt constraint): Likewise.
16802 (wx constraint): Likewise.
16803 (wz constraint): Likewise.
16804 (wu constraint): New constraint for ISA 2.07 SFmode scalar
16805 instructions.
16806 (ww constraint): Likewise.
16807 (wy constraint): Likewise.
16808 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
16809 in the previous submissions.
16810 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
16811
16812 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
16813
16814 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
16815 (REG_BR_PROB): Say that the probability is stored in an int_list.
16816 * reg-notes.def: Update commentary to mention INT_LIST.
16817 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
16818 (INT_LIST): New rtx.
16819 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
16820 * rtlanal.c (int_reg_note_p): New function.
16821 (alloc_reg_note): Assert that the note does not have an int argument.
16822 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
16823 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
16824 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
16825 rather than an INSN_LIST. Handle INT_LIST.
16826 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
16827 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
16828 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
16829 Manipulate them as ints rather than rtxes.
16830 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
16831 * regmove.c (copy_src_to_dest): Likewise.
16832 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
16833
16834 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
16835 into the cases that need it.
16836 * config/arm/arm.c (arm_unwind_emit): Likewise.
16837
16838 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
16839 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
16840 * loop-doloop.c (add_test, doloop_modify): Likewise.
16841 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16842 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
16843 * predict.c (combine_predictions_for_insn): Likewise.
16844 * print-rtl.c (print_rtx): Handle INT_LIST.
16845 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
16846 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
16847 * config/arm/arm.c (emit_unlikely_jump): Likewise.
16848 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
16849 (ix86_split_fp_branch, predict_jump): Likewise.
16850 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
16851 * config/sh/sh.c (expand_cbranchsi4): Likewise.
16852 * config/spu/spu.c (ea_load_store_inline): Likewise.
16853
16854 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
16855 value of a REG_BR_PROB note.
16856 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16857 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
16858 * emit-rtl.c (try_split): Likewise.
16859 * predict.c (br_prob_note_reliable_p): Likewise.
16860 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
16861 * reorg.c (mostly_true_jump): Likewise.
16862 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
16863 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16864 * config/i386/i386.c (ix86_print_operand): Likewise.
16865 * config/ia64/ia64.c (ia64_print_operand): Likewise.
16866 * config/mmix/mmix.c (mmix_print_operand): Likewise.
16867 * config/rs6000/rs6000.c (output_cbranch): Likewise.
16868 * config/s390/s390.c (s390_expand_tbegin): Likewise.
16869 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
16870 * config/sparc/sparc.c (output_cbranch): Likewise.
16871 * config/spu/spu.c (get_branch_target): Likewise.
16872 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
16873 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
16874
16875 2013-09-23 Jan Hubicka <jh@suse.cz>
16876
16877 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
16878 for ipa-devirt.
16879 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
16880 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
16881 of external calls
16882 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
16883 (gimple_fold_call): Dump inconsistent devirtualizations; add
16884 sanity check for type based devirtualizations.
16885 * ipa-prop.c: Include ipa-utils.h
16886 (ipa_intraprocedural_devirtualization): Add sanity check.
16887 (try_make_edge_direct_virtual_call): Likewise.
16888
16889 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
16890
16891 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
16892 assignment statements.
16893
16894 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16895
16896 * gimple-pretty-print.c (dump_ssaname_info): New function.
16897 (dump_gimple_phi): Call it.
16898 (pp_gimple_stmt_1): Likewise.
16899 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
16900 (range_info_def): Declare.
16901 * tree-pretty-print.c (pp_double_int): New function.
16902 (dump_generic_node): Call it.
16903 * tree-pretty-print.h (pp_double_int): Declare.
16904 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
16905 * tree-ssanames.h (range_info_def): New structure.
16906 (value_range_type): Move definition here.
16907 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
16908 Declare.
16909 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
16910 initialization.
16911 (set_range_info): New function.
16912 (get_range_info): Likewise.
16913 (duplicate_ssa_name_range_info): Likewise.
16914 (duplicate_ssa_name_fn): Check pointer type and call
16915 duplicate_ssa_name_range_info.
16916 * tree-ssa-copy.c (fini_copy_prop): Likewise.
16917 * tree-vrp.c (value_range_type): Remove definition, now in
16918 tree-ssanames.h.
16919 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
16920 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
16921 (SSA_NAME_RANGE_INFO): New macro.
16922
16923 2013-09-23 Richard Biener <rguenther@suse.de>
16924
16925 PR tree-optimization/58464
16926 * tree-ssa-pre.c (phi_trans_lookup): Remove.
16927 (phi_trans_add): Change to add conditionally on being not present.
16928 (phi_translate_1): Remove recursion detection here.
16929 (phi_translate): Pre-seed the cache with NULL to catch
16930 recursion here in a more generic way.
16931 (bitmap_find_leader): Adjust comment.
16932 (get_representative_for): Dump value-numbers.
16933 (create_expression_by_pieces): Likewise.
16934 (insert_into_preds_of_block): Likewise.
16935
16936 2013-09-23 Christian Bruel <christian.bruel@st.com>
16937
16938 PR target/58475
16939 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
16940 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
16941
16942 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
16943
16944 Revert r202780:
16945 2013-09-20 Renlin Li <renlin.li@arm.com>
16946
16947 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
16948 plus_constant.
16949 (aarch64_expand_epilogue): Likewise.
16950 (aarch64_legitimize_reload_address): Likewise.
16951
16952 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
16953
16954 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
16955 NULL_TREE before pushing them onto the vector. Likewise for labels.
16956
16957 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
16958
16959 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
16960 comparison operators when -fno-trapping-math is in effect.
16961 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
16962 comparison operators in TFmode and assert that unsupported operators
16963 cannot reach here.
16964 (ia64_print_operand): Likewise.
16965
16966 2013-09-21 Jan Hubicka <jh@suse.cz>
16967
16968 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
16969 (sse_typeless_stores): Enable for core
16970 (sse_load0_by_pxor): Likewise.
16971 (four_jump_limit): Disable for core.
16972 (pad_returns): Likewise.
16973 (avoid_vector_decode): Likewise.
16974 (fuse_cmp_and_branch): Enable for cores.
16975 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
16976
16977 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
16978
16979 PR middle-end/56791
16980 * config/pa/pa.c (pa_option_override): Disable auto increment and
16981 decrement instructions until reload is completed.
16982
16983 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
16984 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
16985 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
16986
16987 2013-09-20 DJ Delorie <dj@redhat.com>
16988 Nick Clifton <nickc@redhat.com>
16989
16990 * config/rl78/rl78.c: Various whitespace and comment tweaks.
16991 (need_to_save): Save bank 0 on interrupts.
16992 (characterize_address): Strip far address wrappers.
16993 (rl78_as_legitimate_address): Likewise.
16994 (transcode_memory_rtx): Likewise.
16995 (rl78_peep_movhi_p): Disable this peephole after devirt.
16996 (rl78_propogate_register_origins): Forget all origins when a
16997 CLOBBER is seen.
16998 * config/rl78/rl78-virt.md: Various whitespace tweaks.
16999 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
17000 peephole2's.
17001 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
17002 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
17003 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
17004 relocating.
17005 * config/rl78/constraints.md: Various whitespace and paren tweaks.
17006
17007 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
17008
17009 * config/pa/pa.md: In "scc" insn patterns, change output template to
17010 handle const0_rtx in reg_or_0_operand operands.
17011
17012 2013-09-20 Martin Husemann <martin@NetBSD.org>
17013
17014 PR target/56875
17015 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
17016 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
17017
17018 2013-09-20 Richard Biener <rguenther@suse.de>
17019
17020 PR middle-end/58484
17021 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
17022 remembering SSA name version and block index.
17023 (new_scev_info_str): Adjust.
17024 (hash_scev_info): Likewise. Also hash the block index.
17025 (eq_scev_info): Adjust.
17026 (find_var_scev_info): Likewise.
17027 (struct instantiate_cache_entry): Remove.
17028 (struct instantiate_cache_type): Use a htab to map name, block
17029 to chrec.
17030 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17031 (get_instantiated_value_entry): Likewise.
17032 (hash_idx_scev_info, eq_idx_scev_info): New functions.
17033 (instantiate_scev_name): Adjust.
17034
17035 2013-09-20 Jeff Law <law@redhat.com>
17036
17037 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
17038
17039 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
17040
17041 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
17042 Call aarch64_simd_expand_args to update op[argc].
17043
17044 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17045
17046 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
17047 plugin argument.
17048
17049 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
17050
17051 * gengtype.c (file_rules): Added rule for *.cc files.
17052 (get_output_file_with_visibility): Give fatal message when no
17053 rules found.
17054
17055 2013-09-20 Renlin Li <renlin.li@arm.com>
17056
17057 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
17058 (aarch64_expand_epilogue): Likewise.
17059 (aarch64_legitimize_reload_address): Likewise.
17060
17061 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17062
17063 PR middle-end/57748
17064 * expr.c (expand_assignment): Remove misalignp code path.
17065
17066 2013-09-20 Marek Polacek <polacek@redhat.com>
17067
17068 PR sanitizer/58413
17069 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
17070 TYPE_PRECISION. Add asserts.
17071
17072 2013-09-20 Richard Biener <rguenther@suse.de>
17073
17074 PR tree-optimization/58453
17075 * tree-loop-distribution.c (distribute_loop): Apply the cost
17076 model for -ftree-loop-distribute-patterns, too.
17077
17078 2013-09-20 Richard Biener <rguenther@suse.de>
17079
17080 PR middle-end/58473
17081 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
17082 make type comparison less strict.
17083
17084 2013-09-20 Alan Modra <amodra@gmail.com>
17085
17086 * configure: Regenerate.
17087 * aclocal.m4: Regenerate.
17088
17089 2013-09-20 Marek Polacek <polacek@redhat.com>
17090
17091 PR other/58467
17092 * doc/extend.texi: Document that attribute used is meant to be used
17093 on variables with static storage duration.
17094
17095 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17096
17097 PR tree-optimization/58472
17098 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
17099 simd_lane_access set inv_p = false.
17100 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
17101 the simduid magic VAR_DECL.
17102
17103 2013-09-19 Jan Hubicka <jh@suse.cz>
17104
17105 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
17106
17107 2013-09-17 Jeff Law <law@redhat.com>
17108
17109 * tree-ssa-dom.c (record_temporary_equivalences): New function
17110 split out of dom_opt_dom_walker::after_dom_children.
17111 (dom_opt_dom_walker::thread_across_edge): Move common code
17112 in here from dom_opt_dom_walker::after_dom_children.
17113 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
17114
17115 2013-09-19 Jan Hubicka <jh@suse.cz>
17116
17117 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
17118 (TARGET_GENERIC): Use PROCESOR_GENERIC
17119 (enum processor_type): Unify generic32 and 64.
17120 * i386.md (cpu): Likewise.
17121 * x86-tune.def (use_leave): Enable for generic32.
17122 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
17123 * athlon.md: Change generic64 to generic in all occurences.
17124 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
17125 (ix86_target_macros_internal): Likewise.
17126 * driver-i386.c (host_detect_local_cpu): Likewise.
17127 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
17128 to ..
17129 (generic_memcpy, generic_memset, generic_cost): This one.
17130 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
17131 (m_GENERIC32, m_GENERIC64): Remove.
17132 (m_GENERIC): Turn into one flag.
17133 (processor_target): Unify generic tunnings.
17134 (ix86_option_override_internal): Replace generic32/64 by generic.
17135 (ix86_issue_rate): Likewise.
17136 (ix86_adjust_cost): Likewise.
17137
17138 2013-09-19 Jan Hubicka <jh@suse.cz>
17139
17140 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
17141 of speculative flag.
17142
17143 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17144
17145 * omp-low.c (expand_omp_sections): Always pass len - 1 to
17146 GOMP_sections_start, even if !exit_reachable.
17147
17148 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17149
17150 * lra-constraints.c (need_for_all_save_p): Use macro
17151 HARD_REGNO_CALL_PART_CLOBBERED.
17152 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
17153 set up pseudo conflict hard regs.
17154
17155 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17156
17157 PR target/58452
17158 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
17159 operands.
17160
17161 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
17162
17163 PR rtl-optimization/58438
17164 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
17165 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
17166 from previous subpasses.
17167
17168 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
17169
17170 * arm.c (arm_get_frame_offsets): Validate architecture supports
17171 LDRD/STRD before accepting the tuning preference.
17172 (arm_expand_prologue): Likewise.
17173 (arm_expand_epilogue): Likewise.
17174
17175 2013-09-18 Richard Biener <rguenther@suse.de>
17176
17177 PR tree-optimization/58417
17178 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
17179 have chrecs with symbols defined in the loop as operands.
17180 (chrec_fold_multiply): Likewise.
17181 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
17182 parameters before folding binary operations.
17183 (struct instantiate_cache_entry_hasher): Remove.
17184 (struct instantiate_cache_type): Use a pointer-map.
17185 (instantiate_cache_type::instantiate_cache_type): New function.
17186 (instantiate_cache_type::get): Likewise.
17187 (instantiate_cache_type::set): Likewise.
17188 (instantiate_cache_type::~instantiate_cache_type): Adjust.
17189 (get_instantiated_value_entry): Likewise.
17190 (global_cache): New global.
17191 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
17192 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
17193 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
17194 (instantiate_scev_name): Adjust.
17195 (instantiate_scev): Construct global instead of local cache.
17196 (resolve_mixers): Likewise.
17197
17198 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
17199 Paolo Carlini <paolo.carlini@oracle.com>
17200
17201 PR c++/58458
17202 * doc/implement-cxx.texi: Fix references to the C++ standards.
17203
17204 2013-09-18 Jakub Jelinek <jakub@redhat.com>
17205
17206 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
17207 * tree-vect-data-refs.c (vect_analyze_data_refs): For
17208 simd_lane_access drs, update also DR_ALIGNED_TO.
17209
17210 2013-09-18 Marek Polacek <polacek@redhat.com>
17211
17212 PR sanitizer/58411
17213 * doc/extend.texi: Document no_sanitize_undefined attribute.
17214 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
17215 no_sanitize_undefined attribute.
17216
17217 2013-09-18 Nick Clifton <nickc@redhat.com>
17218
17219 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
17220 (ASM_DECLARE_FUNCTION_NAME): Define.
17221
17222 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
17223
17224 * compare-elim.c (find_comparison_dom_walker): New class
17225 (find_comparisons_in_bb): Rename to
17226 find_comparison_dom_walker::before_dom_children
17227 (find_comparisons): Adjust
17228 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
17229 adjust.
17230 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
17231 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
17232 (init_walk_dominator_tree): Remove declaration.
17233 (fini_walk_dominator_tree): Remove declaration.
17234 * fwprop.c (single_def_use_dom_walker): New class
17235 (single_def_use_enter_block): Convert to
17236 single_def_use_dom_walker::before_dom_children.
17237 (single_def_use_leave_block): Convert to
17238 single_def_use_dom_walker::after_dom_children.
17239 (build_single_def_use_links): Adjust.
17240 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
17241 class.
17242 (find_candidates_in_block): Convert to
17243 find_candidates_dom_walker::before_dom_children.
17244 (execute_strength_reduction): Adjust.
17245 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
17246 (sese_dom_walker): New class.
17247 (sese_dom_walker::sese_dom_walker): New constructor.
17248 (sese_dom_walker::~sese_dom_walker): New destructor.
17249 (build_sese_conditions_before): Convert to
17250 sese_dom_walker::before_dom_children.
17251 (build_sese_conditions_after): Convert to
17252 sese_dom_walker::after_dom_children.
17253 (build_poly_scop): Adjust
17254 * tree-into-ssa.c (rewrite_dom_walker): New class
17255 (rewrite_enter_block): Convert to
17256 rewrite_dom_walker::before_dom_children.
17257 (rewrite_leave_block): Convert to
17258 rewrite_dom_walker::after_dom_children.
17259 (rewrite_update_dom_walker): New class.
17260 (rewrite_update_enter_block): Convert to
17261 rewrite_update_dom_walker::before_dom_children.
17262 (rewrite_update_leave_block): Convert to
17263 rewrite_update_dom_walker::after_dom_children.
17264 (rewrite_blocks, rewrite_into_ssa): Adjust.
17265 (mark_def_dom_walker): New class.
17266 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
17267 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
17268 (mark_def_sites_blocks): Convert to
17269 mark_def_dom_walker::before_dom_children.
17270 (mark_def_site_blocks): Remove.
17271 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
17272 (tree_ssa_dominator_optimize): Adjust.
17273 (dom_thread_across_edge): Convert to method
17274 dom_opt_dom_walker::thread_across_edge.
17275 (dom_opt_enter_block): Convert to member function
17276 dom_opt_dom_walker::before_dom_children.
17277 (dom_opt_leave_block): Convert to member function
17278 dom_opt_dom_walker::after_dom_children.
17279 * tree-ssa-dse.c (dse_dom_walker): New class.
17280 (dse_enter_block): Convert to member function
17281 dse_dom_walker::before_dom_children.
17282 (tree_ssa_dse): Adjust.
17283 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
17284 (determine_invariantness_stmt): Convert to method
17285 invariantness_dom_walker::before_dom_children.
17286 (determine_invariantness): Remove
17287 (move_computations_dom_walker): New class.
17288 (move_computations_stmt): Convert to method
17289 move_computations_dom_walker::before_dom_children.
17290 (move_computations, tree_ssa_lim): Adjust.
17291 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
17292 (nt_init_block): Convert to method
17293 notrappping_dom_walker::before_dom_children.
17294 (nt_fini_block): Convert to method
17295 method nontrapping_dom_walker::after_dom_children.
17296 (get_non_trapping): Adjust.
17297 * tree-ssa-pre.c (eliminate_dom_walker): New class.
17298 (eliminate_bb): Convert to method
17299 eliminate_dom_walker::before_dom_children.
17300 (eliminate_leave_block): Convert to method
17301 eliminate_dom_walker::after_dom_children.
17302 (eliminate): Adjust.
17303 * tree-ssa-strlen.c (strlen_dom_walker): New class.
17304 (strlen_enter_block): Convert to method
17305 strlen_dom_walker::before_dom_children.
17306 (strlen_leave_block): Convert to method
17307 method strlen_dom_walker::after_dom_children.
17308 (tree_ssa_strlen): Adjust.
17309 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
17310 (tree_ssa_uncprop): Adjust.
17311 (uncprop_leave_block): Convert to method
17312 uncprop_dom_walker::after_dom_children.
17313 (uncprop_leave_block): Convert to method
17314 uncprop_dom_walker::before_dom_children.
17315
17316 2013-09-18 Bin Cheng <bin.cheng@arm.com>
17317
17318 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
17319 branch in same basic block. Check both src and dest of the move insn.
17320
17321 2013-09-17 Nick Clifton <nickc@redhat.com>
17322
17323 * config/rl78/rl78-real.md (bf): New pattern.
17324 (bt): New pattern.
17325 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
17326 (rl78_print_operand): Do not put a # before a %B.
17327 * config/rl78/rl78.opt: Tweak doc strings.
17328
17329 2013-09-17 DJ Delorie <dj@redhat.com>
17330
17331 * config/rl78/constraints.md (Wcv): Allow up to $r31.
17332 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
17333 (rl78_option_override): Likewise, if -mallregs.
17334 (is_virtual_register): Likewise.
17335 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
17336 (REGNO_OK_FOR_BASE_P): Likewise.
17337 * config/rl78/rl78.opt (-mallregs): New.
17338
17339 2013-09-17 Nick Clifton <nickc@redhat.com>
17340
17341 * config/rl78/rl78.c (need_to_save): Change return type to bool.
17342 For interrupt functions: save all call clobbered registers if the
17343 interrupt handler is not a leaf function.
17344 (rl78_expand_prologue): Always recompute the frame information.
17345 For interrupt functions: only select bank 0 if one of the bank 0
17346 registers is going to be psuhed.
17347
17348 2013-09-17 DJ Delorie <dj@redhat.com>
17349
17350 * config/rl78/constraints.md: For each W* constraint, rename to C*
17351 and create a W* constraint that checks for an optional ES: prefix
17352 pattern also.
17353 * config/rl78/rl78.md (UNS_ES_ADDR): New.
17354 (es_addr): New. Used to wrap far addresses.
17355 * config/rl78/rl78-protos.h (rl78_es_addr): New.
17356 (rl78_es_base): New.
17357 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
17358 wrapped far addresses.
17359 (rl78_print_operand_1): Unwrap far addresses before processing.
17360 (rl78_lo16): Wrap far addresses in unspecs.
17361 (rl78_es_addr): New.
17362 (rl78_es_base): New.
17363 (insn_ok_now): Check for not-yet-wrapped far addresses.
17364 (transcode_memory_rtx): Properly re-wrap far addresses.
17365
17366 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
17367
17368 * config/sparc/t-rtems: Add leon3 multilibs.
17369
17370 2013-09-17 Cong Hou <congh@google.com>
17371
17372 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
17373 when checking the dot production pattern. The type of rhs operand
17374 of multiply is now checked correctly.
17375
17376 2013-09-17 Jeff Law <law@redhat.com>
17377
17378 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17379 edge implied equivalences into successor phis.
17380 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
17381 here from tree-ssa-threadedge.c.
17382 (mark_threaded_blocks): When threading through a joiner, if both
17383 successors of the joiner's clone reach the same block, verify the
17384 PHI arguments are equal. If not, cancel the jump threading request.
17385 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
17386 tree-ssa-threadupdate.c
17387 (thread_across_edge): Don't check PHI argument equality when
17388 threading through joiner block here.
17389
17390 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
17391
17392 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
17393 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
17394 (warn_uninit, warn_uninitialized_vars,
17395 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17396 Move to tree-ssa-uninit.c.
17397 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
17398 (has_undefined_value_p): New. Pass dependant parts of
17399 ssa_undefined_value_p.
17400 (uninit_undefined_value_p): Use has_undefined_value_p.
17401 (warn_uninit, warn_uninitialized_vars,
17402 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
17403 Move from tree-ssa.c.
17404 * tree-ssa.h: Adjust prototypes.
17405
17406 2013-09-17 Jan Hubicka <jh@suse.cz>
17407
17408 PR middle-end/58332
17409 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
17410 * ipa-inline.c (can_inline_edge_p): Do not downgrade
17411 FUNCTION_NOT_OPTIMIZED.
17412 * ipa-inline-analysis.c (compute_inline_parameters): Function
17413 not optimized is not inlinable unless it is alwaysinline.
17414 (inline_analyze_function): Force calls in not optimized
17415 function not inlinable.
17416
17417 2013-09-17 Jan Hubicka <jh@suse.cz>
17418
17419 PR middle-end/58329
17420 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
17421 to return NULL.
17422 * ipa.c (function_and_variable_visibility): Likewise.
17423 * ipa-profile.c (ipa_profile): Likewise.
17424
17425 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
17426
17427 PR ipa/58398
17428 * cgraph.c (cgraph_function_body_availability): Check for ifunc
17429 attribute, and don't inline the resolver in this case.
17430
17431 2013-09-17 Teresa Johnson <tejohnson@google.com>
17432
17433 * coverage.c (get_coverage_counts): Add missing newline.
17434
17435 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17436
17437 PR tree-optimization/58088
17438 * fold-const.c (mask_with_trailing_zeros): New function.
17439 (fold_binary_loc): Make sure we don't recurse infinitely
17440 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
17441 Use mask_with_trailing_zeros where appropriate.
17442
17443 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
17444
17445 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
17446 of 'prev' var to get better distance estimation.
17447
17448 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
17449
17450 * tree-inline.h (struct copy_body_data): Add transform_parameter.
17451 * tree-inline.c (is_parameter_of): New predicate.
17452 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
17453 a parameter has been remapped.
17454 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
17455 (optimize_inline_calls): Initialize transform_parameter.
17456 (copy_gimple_seq_and_replace_locals): Likewise.
17457 (tree_function_versioning): Likewise.
17458 (maybe_inline_call_in_expr): Likewise.
17459
17460 2013-09-17 Nick Clifton <nickc@redhat.com>
17461
17462 * config/msp430/msp430-protos.h: Add prototypes for new functions.
17463 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
17464 interrupt handlers.
17465 (is_attr_func): New function.
17466 (msp430_is_interrupt_func): New function.
17467 (is_naked_func): New function.
17468 (is_reentrant_func): New function.
17469 (is_critical_func): New function.
17470 (msp430_start_function): Add annotations for function attributes.
17471 (msp430_attr): New function.
17472 (msp430_attribute_table): New.
17473 (msp430_function_section): New function.
17474 (TARGET_ASM_FUNCTION_SECTION): Define.
17475 (msp430_builtin): New enum.
17476 (msp430_init_builtins): New function.
17477 (msp430_builtin_devl): New function.
17478 (msp430_expand_builtin): New function.
17479 (TARGET_INIT_BUILTINS): Define.
17480 (TARGET_EXPAND_BUILTINS): Define.
17481 (TARGET_BUILTIN_DECL): Define.
17482 (msp430_expand_prologue): Add support for naked, interrupt,
17483 critical and reentrant functions.
17484 (msp430_expand_epilogue): Likewise.
17485 (msp430_print_operand): Handle 'O' character.
17486 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
17487 NO_TRAMPOLINES.
17488 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
17489 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
17490 (pushm): Use a 'n' rather than an 'i' constraint.
17491 (msp_return): Add generation of the interrupt return instruction.
17492 (disable_interrupts): New pattern.
17493 (enable_interrupts): New pattern.
17494 (push_intr_state): New pattern.
17495 (pop_intr_state): New pattern.
17496 (bic_SR): New pattern.
17497 (bis_SR): New pattern.
17498 * doc/extend.texi: Document MSP430 function attributes and builtin
17499 functions.
17500
17501 2013-09-17 Richard Biener <rguenther@suse.de>
17502
17503 PR tree-optimization/58432
17504 * tree-loop-distribution.c (tree_loop_distribution): Also
17505 scan PHIs for outside loop uses and seed a partition from them.
17506
17507 2013-09-17 Bin Cheng <bin.cheng@arm.com>
17508
17509 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
17510 (restructure_reference): Call backtrace_base_for_ref.
17511
17512 2013-09-17 Alan Modra <amodra@gmail.com>
17513
17514 PR target/57589
17515 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
17516 patch.
17517
17518 2013-09-16 DJ Delorie <dj@redhat.com>
17519
17520 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
17521 vregs location for RL78/G10.
17522 (rl78_expand_prologue): Avoid SEL on G10.
17523 (rl78_expand_epilogue): Likewise.
17524 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
17525 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
17526 __RL78_G10__ when appropriate.
17527 (ASM_SPEC): Pass -mg10 along to the assembler.
17528 * config/rl78/rl78.md (sel_rb): Disable for G10.
17529 * config/rl78/rl78.opt: Add -mg10 option.
17530 * config/rl78/t-rl78: Add -mg10 multilib.
17531
17532 2013-09-16 Xinliang David Li <davidxl@google.com>
17533
17534 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
17535 * omp-low.c (omp_max_vf): Ditto.
17536 (expand_omp_simd): Ditto.
17537 * tree-vectorizer.c (vectorize_loops): Ditto.
17538 (gate_vect_slp): Ditto.
17539 (gate_increase_alignment): Ditto.
17540 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
17541 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
17542 (gate_tree_vectorize): Name change.
17543 (tree_vectorize): Ditto.
17544 (pass_vectorize::gate): Call new function.
17545 (pass_vectorize::execute): Ditto.
17546 * opts.c: O3 default setting change.
17547 (finish_options): Check new flag.
17548 * doc/invoke.texi: Document new flags.
17549 * common.opt: New flags.
17550
17551 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
17552
17553 * doc/tm.texi.in (Cond Exec Macros): Remove node.
17554 (Condition Code): Don't reference it.
17555 * doc/tm.texi: Regenerate.
17556
17557 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
17558
17559 PR middle-end/58418
17560 * lra-constraints.c (undo_optional_reloads): Consider all optional
17561 reload even if it did not get a hard reg.
17562
17563 2013-09-16 Teresa Johnson <tejohnson@google.com>
17564
17565 * dumpfile.c (dump_loc): Remove newline emission.
17566 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
17567 emission to dump_printf_loc calls where missing.
17568 (vect_mark_for_runtime_alias_test): Ditto.
17569 (vect_analyze_data_ref_dependence): Ditto.
17570 (vect_analyze_data_ref_dependences): Ditto.
17571 (vect_slp_analyze_data_ref_dependence): Ditto.
17572 (vect_slp_analyze_data_ref_dependences): Ditto.
17573 (vect_compute_data_ref_alignment): Ditto.
17574 (vect_update_misalignment_for_peel): Ditto.
17575 (vect_verify_datarefs_alignment): Ditto.
17576 (vector_alignment_reachable_p): Ditto.
17577 (vect_get_data_access_cost): Ditto.
17578 (vect_enhance_data_refs_alignment): Ditto.
17579 (vect_find_same_alignment_drs): Ditto.
17580 (vect_analyze_data_refs_alignment): Ditto.
17581 (vect_analyze_group_access): Ditto.
17582 (vect_analyze_data_ref_access): Ditto.
17583 (vect_analyze_data_ref_accesses): Ditto.
17584 (vect_prune_runtime_alias_test_list): Ditto.
17585 (vect_analyze_data_refs): Ditto.
17586 (vect_create_addr_base_for_vector_ref): Ditto.
17587 (vect_create_data_ref_ptr): Ditto.
17588 (vect_grouped_store_supported): Ditto.
17589 (vect_grouped_load_supported): Ditto.
17590 * value-prof.c (check_counter): Ditto.
17591 (check_ic_target): Ditto.
17592 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
17593 (vect_recog_widen_mult_pattern): Ditto.
17594 (vect_recog_widen_sum_pattern): Ditto.
17595 (vect_recog_over_widening_pattern): Ditto.
17596 (vect_recog_widen_shift_pattern): Ditto.
17597 (vect_recog_rotate_pattern): Ditto.
17598 (vect_recog_vector_vector_shift_pattern): Ditto.
17599 (vect_recog_divmod_pattern): Ditto.
17600 (vect_recog_mixed_size_cond_pattern): Ditto.
17601 (vect_recog_bool_pattern): Ditto.
17602 (vect_pattern_recog_1): Ditto.
17603 (vect_pattern_recog): Ditto.
17604 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
17605 (vect_is_simple_iv_evolution): Ditto.
17606 (vect_analyze_scalar_cycles_1): Ditto.
17607 (vect_get_loop_niters): Ditto.
17608 (vect_analyze_loop_1): Ditto.
17609 (vect_analyze_loop_form): Ditto.
17610 (vect_analyze_loop_operations): Ditto.
17611 (vect_analyze_loop_2): Ditto.
17612 (vect_analyze_loop): Ditto.
17613 (report_vect_op): Ditto.
17614 (vect_is_slp_reduction): Ditto.
17615 (vect_is_simple_reduction_1): Ditto.
17616 (vect_get_known_peeling_cost): Ditto.
17617 (vect_estimate_min_profitable_iters): Ditto.
17618 (vect_model_reduction_cost): Ditto.
17619 (vect_model_induction_cost): Ditto.
17620 (get_initial_def_for_induction): Ditto.
17621 (vect_create_epilog_for_reduction): Ditto.
17622 (vectorizable_reduction): Ditto.
17623 (vectorizable_induction): Ditto.
17624 (vectorizable_live_operation): Ditto.
17625 (vect_loop_kill_debug_uses): Ditto.
17626 (vect_transform_loop): Ditto.
17627 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
17628 (vect_stmt_relevant_p): Ditto.
17629 (process_use): Ditto.
17630 (vect_mark_stmts_to_be_vectorized): Ditto.
17631 (vect_model_simple_cost): Ditto.
17632 (vect_model_promotion_demotion_cost): Ditto.
17633 (vect_model_store_cost): Ditto.
17634 (vect_get_store_cost): Ditto.
17635 (vect_model_load_cost): Ditto.
17636 (vect_get_load_cost): Ditto.
17637 (vect_init_vector_1): Ditto.
17638 (vect_get_vec_def_for_operand): Ditto.
17639 (vect_finish_stmt_generation): Ditto.
17640 (vectorizable_call): Ditto.
17641 (vectorizable_conversion): Ditto.
17642 (vectorizable_assignment): Ditto.
17643 (vectorizable_shift): Ditto.
17644 (vectorizable_operation): Ditto.
17645 (vectorizable_store): Ditto.
17646 (vectorizable_load): Ditto.
17647 (vectorizable_condition): Ditto.
17648 (vect_analyze_stmt): Ditto.
17649 (vect_transform_stmt): Ditto.
17650 (vect_is_simple_use): Ditto.
17651 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
17652 (vect_can_advance_ivs_p): Ditto.
17653 (vect_update_ivs_after_vectorizer): Ditto.
17654 (vect_do_peeling_for_loop_bound): Ditto.
17655 (vect_gen_niters_for_prolog_loop): Ditto.
17656 (vect_update_inits_of_drs): Ditto.
17657 (vect_create_cond_for_alias_checks): Ditto.
17658 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
17659 (vect_build_slp_tree_1): Ditto.
17660 (vect_supported_load_permutation_p): Ditto.
17661 (vect_analyze_slp_instance): Ditto.
17662 (vect_analyze_slp): Ditto.
17663 (vect_make_slp_decision): Ditto.
17664 (vect_detect_hybrid_slp): Ditto.
17665 (vect_bb_vectorization_profitable_p): Ditto.
17666 (vect_slp_analyze_bb_1): Ditto.
17667 (vect_update_slp_costs_according_to_vf): Ditto.
17668 (vect_get_mask_element): Ditto.
17669 (vect_transform_slp_perm_load): Ditto.
17670 (vect_schedule_slp_instance): Ditto.
17671 (vect_schedule_slp): Ditto.
17672 (vect_slp_transform_bb): Ditto.
17673 * profile.c (read_profile_edge_counts): Ditto.
17674 (compute_branch_probabilities): Ditto.
17675 * coverage.c (get_coverage_counts): Ditto.
17676
17677 2013-09-16 Diego Novillo <dnovillo@google.com>
17678
17679 * tree-core.h: Add missing comment lines from refactoring of tree.h.
17680
17681 2013-09-16 Jan Hubicka <jh@suse.cz>
17682
17683 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
17684 abstract functions; for static functions check the presence of body.
17685
17686 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17687
17688 * config/aarch64/aarch64-simd-builtins.def (fma): New.
17689 * config/aarch64/aarch64-simd.md
17690 (aarch64_mla_elt<mode>): New.
17691 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
17692 (aarch64_mls_elt<mode>): Likewise.
17693 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
17694 (aarch64_fma4_elt<mode>): Likewise.
17695 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
17696 (aarch64_fma4_elt_to_128v2df): Likewise.
17697 (aarch64_fma4_elt_to_64df): Likewise.
17698 (fnma<mode>4): Likewise.
17699 (aarch64_fnma4_elt<mode>): Likewise.
17700 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
17701 (aarch64_fnma4_elt_to_128v2df): Likewise.
17702 (aarch64_fnma4_elt_to_64df): Likewise.
17703 * config/aarch64/iterators.md (VDQSF): New.
17704 * config/aarch64/arm_neon.h
17705 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
17706 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
17707
17708 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17709
17710 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
17711 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
17712 (aarch64_mul3_elt_to_128df): Likewise.
17713 (aarch64_mul3_elt_to_64v2df): Likewise.
17714 * config/aarch64/iterators.md (VEL): Also handle DFmode.
17715 (VMUL): New.
17716 (VMUL_CHANGE_NLANES) Likewise.
17717 (h_con): Likewise.
17718 (f): Likewise.
17719 * config/aarch64/arm_neon.h
17720 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
17721
17722 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
17723
17724 * config/aarch64/arm_neon.h
17725 (vcvtx_high_f32_f64): Fix parameters.
17726
17727 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17728 Uros Bizjak <ubizjak@gmail.com>
17729
17730 * config/alpha.c: Include tree-ssanames.h.
17731
17732 2013-09-16 Richard Biener <rguenther@suse.de>
17733
17734 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
17735 (dot_rdg_1): Handle control_dd.
17736 (create_edge_for_control_dependence): New function.
17737 (create_rdg_edges): Add control dependences if asked for.
17738 (build_rdg): Likewise.
17739 (generate_loops_for_partition): If there are not necessary
17740 control stmts remove all their dependencies.
17741 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
17742 (distribute_loop): Pass on control dependences.
17743 (tree_loop_distribution): Compute control dependences and remove
17744 restriction on number of loop nodes.
17745
17746 2013-09-16 Jakub Jelinek <jakub@redhat.com>
17747
17748 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
17749 for internal calls.
17750
17751 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
17752
17753 * cse.c (try_const_anchors): Punt on CC modes.
17754
17755 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17756
17757 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
17758
17759 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
17760
17761 PR target/58382
17762 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
17763 calls to word_mode.
17764
17765 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17766
17767 PR target/48094
17768 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
17769 seen.
17770 (darwin_objc1_section): Likewise.
17771 (darwin_file_end): Emit Image Info section when required.
17772
17773 2013-09-14 Jan Hubicka <jh@suse.cz>
17774
17775 * tree-into-ssa.c (gate_into_ssa): New.
17776 (pass_data_build_ssa): Use it.
17777 * cgraph.h (expand_thunk): Update prototype.
17778 * cgraphunit.c (analyze_function): Expand thunks early.
17779 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
17780 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
17781 set lowered flag; do not add new function.
17782 (assemble_thunks_and_aliases): Update.
17783 * tree-ssa.c (gate_init_datastructures): New gate.
17784 (pass_data_init_datastructures): Use it.
17785
17786 2013-09-14 Iain Sandoe <iain@codesourcery.com>
17787
17788 PR target/58269
17789 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
17790 xmm register set described in the psABI.
17791
17792 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
17793
17794 * dwarf2out.c (should_emit_struct_debug): Add check
17795 for type_decl variable is not NULL.
17796
17797 2013-09-13 Jacek Caban <jacek@codeweavers.com>
17798
17799 * config.gcc: Use new winnt-c.c target hooks
17800 * config/t-winnt: New file
17801 * config/winnt-c.c: New file
17802 * doc/tm.texi.in: Document new hook
17803 * doc/tm.texi: Regenerated
17804
17805 2013-09-13 Jan Hubicka <jh@suse.cz>
17806
17807 PR middle-end/58094
17808 * ipa-inline.c (check_callers): New function.
17809 (check_caller_edge): Remove.
17810 (want_inline_function_to_all_callers_p): Also permit alises that are
17811 called dirrectly.
17812 (inline_to_all_callers): Terminate the walk when devirtualization
17813 introduce new calls.
17814
17815 2013-09-13 Jan Hubicka <jh@suse.cz>
17816
17817 * ipa-inline-analysis.c (struct growth_data): Add node.
17818 (do_estimate_growth_1): Fix detection of recursion.
17819
17820 2013-09-13 Jakub Jelinek <jakub@redhat.com>
17821
17822 PR tree-optimization/58392
17823 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
17824 to avoid shadowing of outer loop variable. If
17825 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
17826 replace_by_duplicate_decl simduid of loops that have it set and
17827 set dest_cfun->has_simduid_loops and/or
17828 dest_cfun->has_force_vect_loops.
17829 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
17830 instead of maybe_lookup_decl.
17831 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
17832 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
17833 call. Copy over force_vect and copy and remap simduid. Set
17834 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
17835 (copy_cfg_body): Remove blocks_to_copy argument. Use
17836 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
17837 caller. Don't set cfun->has_simduid_loops and/or
17838 cfun->has_force_vect_loops here.
17839 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
17840 caller.
17841 (expand_call_inline, tree_function_versioning): Adjust copy_body
17842 callers.
17843
17844 2013-09-13 Martin Jambor <mjambor@suse.cz>
17845
17846 PR bootstrap/58388
17847 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
17848 the assert if the edge was a speculative one.
17849
17850 2013-09-13 Richard Biener <rguenther@suse.de>
17851
17852 * tree-data-ref.h (known_dependences_p): Move here ...
17853 * tree-loop-distribution.c (known_dependences_p): ... from here.
17854 (dump_rdg_component, debug_rdg_component): Remove.
17855 (dump_rdg): Adjust.
17856 (generate_loops_for_partition): Use gimple_uid instead of
17857 relying on matching stmt visit order.
17858 (rdg_build_partitions): Take starting stmt vector.
17859 (ldist_gen): Merge into ...
17860 (distribute_loop): ... this function. Do not compute starting
17861 vertices vector.
17862 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
17863
17864 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17865
17866 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
17867 Set type attribute correctly. Set predicable_short_it attribute.
17868 (cmpsi_shiftsi): Remove %? from output template.
17869
17870 2013-09-13 Richard Biener <rguenther@suse.de>
17871
17872 * tree-loop-distribution.c (struct rdg_component,
17873 rdg_defs_used_in_other_loops_p, free_rdg_components,
17874 rdg_build_components): Remove.
17875 (stmts_from_loop): Do not record virtual PHIs.
17876 (generate_loops_for_partition): Skip virtual PHIs.
17877 (build_rdg_partition_for_component): Rename to ...
17878 (build_rdg_partition_for_vertex): ... this and adjust.
17879 (rdg_build_partitions): Take a vector of starting vertices
17880 instead of components. Remove unnecessary leftover handling.
17881 (ldist_gen): Do not build components or record other stores.
17882 (distribute_loop): Do not distribute loops containing stmts
17883 with side-effects.
17884
17885 2013-09-13 Christian Bruel <christian.bruel@st.com>
17886
17887 PR target/58314
17888 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
17889
17890 2013-09-13 Kai Tietz <ktietz@redhat.com>
17891
17892 * config.gcc: Separate cases for mingw and cygwin targets,
17893 and add 64-bit cygwin target case.
17894
17895 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
17896 dll-export inline-functions.
17897 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
17898
17899 2013-09-13 Jeff Law <law@redhat.com>
17900
17901 PR middle-end/58387
17902 Revert:
17903 2013-09-06 Jeff Law <law@redhat.com>
17904
17905 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
17906 edge implied equivalences into successor phis.
17907
17908 2013-09-12 DJ Delorie <dj@redhat.com>
17909
17910 * config/rl78/rl78-virt.md: Change from | to \; for asm line
17911 separators.
17912
17913 2013-09-12 Brooks Moses <bmoses@google.com>
17914
17915 PR driver/42955
17916 * Makefile.in: Do not install driver binaries in $(target)/bin.
17917
17918 2013-09-12 DJ Delorie <dj@redhat.com>
17919
17920 * config/rl78/rl78.opt (mrelax): New.
17921 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
17922 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
17923
17924 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
17925 between SP and FP.
17926 (rl78_expand_epilogue): Likewise.
17927
17928 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
17929
17930 PR middle-end/58335
17931 * lra-eliminations.c (remove_reg_equal_offset_note): New.
17932 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
17933 pointer elimination with using remove_reg_equal_offset_note.
17934
17935 2013-09-12 DJ Delorie <dj@redhat.com>
17936
17937 * config/msp430/: New port.
17938 * config.gcc (msp430): Added.
17939 * doc/invoke.texi: Document MSP430 options.
17940 * doc/install.texi: Document msp430-elf
17941 * doc/md.texi: Document msp430-elf
17942 * doc/contrib.texi: Document msp430-elf
17943
17944 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
17945 PSImode.
17946
17947 2013-09-12 Martin Jambor <mjambor@suse.cz>
17948
17949 PR ipa/58389
17950 * ipa-prop.c (remove_described_reference): Give up if the edge in the
17951 reference descriptor is NULL.
17952 (ipa_edge_removal_hook): If owning a reference descriptor, set its
17953 edge to NULL.
17954
17955 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17956
17957 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
17958 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
17959 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
17960 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
17961 make_temp_ssa_name): move to tree-ssanames.h
17962 * tree-ssa-alias.h: Move prototype.
17963 * tree-ssa.h: Include tree-ssanames.h.
17964 * tree-ssanames.c (FREE_SSANAMES): Move to here.
17965 * tree-ssanames.h: New. Move items from tree-flow*.h
17966 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
17967
17968 2013-09-12 Richard Biener <rguenther@suse.de>
17969
17970 PR tree-optimization/58404
17971 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17972 propagate non-invariant addresses into dereferences wrapped
17973 in component references.
17974
17975 2013-09-12 Richard Biener <rguenther@suse.de>
17976
17977 PR tree-optimization/58402
17978 * passes.def: Move pass_late_warn_uninitialized later.
17979
17980 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
17981
17982 * tree-ssa.h: New. Move content from tree-flow.h and
17983 tree-flow-inline.h.
17984 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
17985 Move prototypes belonging to tree-ssa.c.
17986 * tree-flow-inline.h (redirect_edge_var_map_def,
17987 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
17988 tree-ssa.h.
17989 * gimple.h: Adjust prototypes.
17990 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
17991 to...
17992 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
17993 * tree.h: Move prototype to tree-ssa.h.
17994 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
17995 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
17996 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
17997 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
17998 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
17999 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
18000 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
18001 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
18002 graphite-blocking.c, graphite-clast-to-gimple.c,
18003 graphite-dependences.c, graphite-interchange.c,
18004 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
18005 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
18006 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
18007 ipa-reference.c, ipa-split.c, ipa-utils.c,
18008 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
18009 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
18010 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
18011 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18012 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
18013 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
18014 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
18015 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
18016 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
18017 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
18018 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
18019 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
18020 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
18021 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
18022 value-prof.c, var-tracking.c,
18023 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
18024
18025 2013-09-12 Richard Biener <rguenther@suse.de>
18026
18027 PR tree-optimization/58396
18028 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
18029 (build_rdg): Take a loop-nest parameter, fix memleaks.
18030 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
18031
18032 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18033
18034 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
18035 for SLM.
18036
18037 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
18038
18039 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
18040 The FMA instruction names should have a 'v' prefix.
18041
18042 2013-09-12 Richard Biener <rguenther@suse.de>
18043
18044 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
18045 (dot_rdg): Use popen instead of system in optional code.
18046 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
18047 (already_processed_vertex_p): Adjust.
18048 (has_anti_or_output_dependence, predecessor_has_mem_write,
18049 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
18050 rdg_flag_uses): Remove.
18051 (rdg_flag_vertex): Simplify.
18052 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
18053 remove recursion.
18054 (build_rdg_partition_for_component): Process the first vertex
18055 of a component only.
18056 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
18057
18058 2013-09-12 Alan Modra <amodra@gmail.com>
18059
18060 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
18061
18062 2013-09-11 DJ Delorie <dj@redhat.com>
18063 Nick Clifton <nickc@redhat.com>
18064
18065 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
18066 (rl78_stack_based_mem): New.
18067 * config/rl78/constraints.md (Iv08): New.
18068 (Iv16): New.
18069 (Iv24): New.
18070 (Is09): New.
18071 (Is17): New.
18072 (Is25): New.
18073 (ISsi): New.
18074 (IShi): New.
18075 (ISqi): New.
18076 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
18077 (movhi): Likewise.
18078 (movsi): Change from expand to insn-and-split.
18079 (ashrsi3): Clobber AX.
18080 (lshrsi3): New.
18081 (ashlsi3): New.
18082 (cbranchsi4): New.
18083 * config/rl78/rl78.md (CC_REG): Fix.
18084 (addsi3): Allow memory and immediate operands.
18085 (addsi3_internal): Split into...
18086 (addsi3_internal_virt): ...new, and ...
18087 (addsi3_internal_real): ...new.
18088 (subsi): New.
18089 (subsi3_internal_virt): New.
18090 (subsi3_internal_real): New.
18091 (mulsi3): Add memory operand.
18092 (mulsi3_rl78): Likewise.
18093 (mulsi3_g13): Likewise.
18094 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
18095 (cbranchqi4_real): Add more constraint options.
18096 (cbranchhi4_real): Expand pattern.
18097 (cbranchhi4_real_signed): New.
18098 (cbranchhi4_real_inverted): New.
18099 (cbranchsi4_real_lt): New.
18100 (cbranchsi4_real_ge): New.
18101 (cbranchsi4_real_signed): New.
18102 (cbranchsi4_real): New.
18103 (peephole2): New.
18104 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
18105 constant shifts.
18106 (lshrsi3_virt): Likewise.
18107 (ashlsi3_virt): Likewise.
18108 (cbranchqi4_virt_signed): New.
18109 (cbranchhi4_virt_signed): New.
18110 (cbranchsi4_virt): New.
18111 * config/rl78/rl78.c: Whitespace fixes throughout.
18112 (move_elim_pass): New.
18113 (pass_data_rl78_move_elim): New.
18114 (pass_rl78_move_elim): New.
18115 (make_pass_rl78_move_elim): New.
18116 (rl78_devirt_info): Run devirt earlier.
18117 (rl78_move_elim_info): New.
18118 (rl78_asm_file_start): Register it.
18119 (rl78_split_movsi): New.
18120 (rl78_as_legitimate_address): Allow virtual base registers when
18121 appropriate.
18122 (rl78_addr_space_convert): Remove spurious debug stuff.
18123 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
18124 (rl78_print_operand): More cases for not printing '#'.
18125 (rl78_expand_compare): Remove most of the logic.
18126 (content_memory): New.
18127 (clear_content_memory): New.
18128 (get_content_index): New.
18129 (get_content_name): New.
18130 (display_content_memory): New.
18131 (update_content): New.
18132 (record_content): New.
18133 (already_contains): New.
18134 (insn_ok_now): Re-recog insns with virtual registers.
18135 (add_postponed_content_update): New.
18136 (process_postponed_content_update): New.
18137 (gen_and_emit_move): New.
18138 (transcode_memory_rtx): Record new location content.
18139 Use gen_and_emit_move.
18140 (force_into_acc): New.
18141 (move_to_acc): Use gen_and_emit_move.
18142 (move_from_acc): Likewise.
18143 (move_acc_to_reg): Likewise.
18144 (move_to_x): Likewise.
18145 (move_to_hl): Likewise.
18146 (move_to_de): Likewise.
18147 (rl78_alloc_physical_registers_op1): Record location content.
18148 (has_constraint): New.
18149 (rl78_alloc_physical_registers_op2): Record location content.
18150 Optimize use of HL.
18151 (rl78_alloc_physical_registers_ro1): Likewise.
18152 (rl78_alloc_physical_registers_cmp): Likewise.
18153 (rl78_alloc_physical_registers_umul): Likewise.
18154 (rl78_alloc_address_registers_macax): New.
18155 (rl78_alloc_physical_registers): Initialize and set location
18156 content memory as needed.
18157 (rl78_reorg): Make sure split2 is called.
18158 (rl78_rtx_costs): New.
18159
18160 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
18161
18162 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
18163 for (not (neg ...)) and (neg (not ...)) cases.
18164
18165 2013-09-11 Richard Biener <rguenther@suse.de>
18166
18167 PR middle-end/58377
18168 * passes.def: Split critical edges before late uninit warning passes.
18169 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
18170
18171 2013-09-11 Jakub Jelinek <jakub@redhat.com>
18172
18173 PR tree-optimization/58385
18174 * fold-const.c (build_range_check): If both low and high are NULL,
18175 use omit_one_operand_loc to preserve exp side-effects.
18176
18177 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18178
18179 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
18180
18181 2013-09-11 Richard Biener <rguenther@suse.de>
18182
18183 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
18184 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
18185 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
18186 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
18187 stmts_from_loop, known_dependences_p, build_empty_rdg,
18188 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
18189 * tree-loop-distribution.c: ... here.
18190 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
18191 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
18192 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
18193 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
18194 * tree-loop-distribution.c: ... here.
18195 * tree-loop-distribution.c: Include gimple-pretty-print.h.
18196 (struct partition_s): Add loops member.
18197 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
18198 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18199 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
18200
18201 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18202 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18203 Sergey Lega <sergey.s.lega@intel.com>
18204 Anna Tikhonova <anna.tikhonova@intel.com>
18205 Ilya Tocar <ilya.tocar@intel.com>
18206 Andrey Turetskiy <andrey.turetskiy@intel.com>
18207 Ilya Verbin <ilya.verbin@intel.com>
18208 Kirill Yukhin <kirill.yukhin@intel.com>
18209 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18210
18211 * config/i386/constraints.md (k): New.
18212 (Yk): Ditto.
18213 * config/i386/i386.c (const regclass_map): Add new mask registers.
18214 (dbx_register_map): Ditto.
18215 (dbx64_register_map): Ditto.
18216 (svr4_dbx_register_map): Ditto.
18217 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
18218 disabled.
18219 (ix86_preferred_reload_class): Disable constants for mask registers.
18220 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
18221 (ix86_hard_regno_mode_ok): Support new mask registers.
18222 (x86_order_regs_for_local_alloc): Ditto.
18223 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
18224 (FIXED_REGISTERS): Add new mask registers.
18225 (CALL_USED_REGISTERS): Ditto.
18226 (REG_ALLOC_ORDER): Ditto.
18227 (VALID_MASK_REG_MODE): New.
18228 (FIRST_MASK_REG): Ditto.
18229 (LAST_MASK_REG): Ditto.
18230 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
18231 (MAYBE_MASK_CLASS_P): New.
18232 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
18233 (REG_CLASS_CONTENTS): Ditto.
18234 (MASK_REGNO_P): New.
18235 (ANY_MASK_REG_P): Ditto.
18236 (HI_REGISTER_NAMES): Add new mask registers.
18237 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
18238 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
18239 mask registers.
18240 (attribute "type"): Add mskmov, msklog.
18241 (attribute "length_immediate"): Support them.
18242 (attribute "memory"): Ditto.
18243 (attribute "prefix_0f"): Ditto.
18244 (*movhi_internal): Support new mask registers.
18245 (*movqi_internal): Ditto.
18246 (define_split): Split out clobber pattern is a logic
18247 insn on mask registers.
18248 (*k<logic><mode>): New.
18249 (*andhi_1): Extend to support mask regs.
18250 (*andqi_1): Extend to support mask regs.
18251 (kandn<mode>): New.
18252 (define_split): Split and-not to and and not if operands
18253 are not mask regs.
18254 (*<code><mode>_1): Separate HI mode to new pattern...
18255 (*<code>hi_1): This.
18256 (*<code>qi_1): Extend to support mask regs.
18257 (kxnor<mode>): New.
18258 (kortestzhi): Ditto.
18259 (kortestchi): Ditto.
18260 (kunpckhi): Ditto.
18261 (*one_cmpl<mode>2_1): Remove HImode and handle it...
18262 (*one_cmplhi2_1): ...Here, now with mask registers support.
18263 (*one_cmplqi2_1): Support new mask registers.
18264 (HI/QImode arithmetics splitter): Don't split if mask registers
18265 are used.
18266 (HI/QImode not splitter): Ditto.
18267 * config/i386/predicated.md (mask_reg_operand): New.
18268 (general_reg_operand): Ditto.
18269
18270 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
18271
18272 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
18273 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
18274
18275 2013-09-10 Jeff Law <law@redhat.com>
18276
18277 PR tree-optimization/58380
18278 * tree-ssa-threadupdate.c (thread_block): Recognize another case
18279 of threading through a buried loop header.
18280
18281 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
18282 return value for single successor case.
18283
18284 2013-09-10 Jan Hubicka <jh@suse.cz>
18285
18286 * ipa-devirt.c (ipa_devirt): Enable with LTO.
18287
18288 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
18289
18290 PR target/58361
18291 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
18292 support conditional execution.
18293 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
18294
18295 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
18296
18297 * lra.c (lra): Clear lra_optional_reload_pseudos before every
18298 constraint pass.
18299 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
18300 Check destination too to check move insn.
18301 (undo_optional_reloads): Add check that the original peudo did not
18302 changed its allocation and the optional reload was inherited on last
18303 inheritance pass. Break loop after deciding to keep optional reload.
18304 (lra_undo_inheritance): Add check that inherited pseudo still in
18305 memory.
18306
18307 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
18308
18309 * config/aarch64/aarch64.md (generic_sched): New.
18310 * config/aarch64/aarch64-generic.md (load): Make conditional
18311 on generic_sched attribute.
18312 (nonload): Likewise.
18313
18314 2013-09-10 Jan Hubicka <jh@suse.cz>
18315
18316 * lto-cgraph.c: Include ipa-utils.h.
18317 (compute_ltrans_boundary): Also add possible targets into the boundary.
18318
18319 2013-09-10 Jan Hubicka <jh@suse.cz>
18320
18321 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
18322 VAR_DECL of vtable rather than full expression.
18323
18324 2013-09-10 Jan Hubicka <jh@suse.cz>
18325 Paolo Carlini <paolo.carlini@oracle.com>
18326
18327 * cgraphunit.c (analyze_functions): Save input_location, set it
18328 to UNKNOWN_LOCATION and restore it at the end.
18329
18330 2013-09-10 Martin Jambor <mjambor@suse.cz>
18331
18332 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
18333 represented by a thunk.
18334
18335 2013-09-10 Jeff Law <law@redhat.com>
18336
18337 PR tree-optimization/58343
18338 * tree-ssa-threadupdate.c (thread_block): Identify and disable
18339 jump threading requests through loop headers buried in the middle
18340 of a jump threading path.
18341
18342 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
18343 in return value/type.
18344
18345 2013-09-10 Jakub Jelinek <jakub@redhat.com>
18346
18347 PR rtl-optimization/58365
18348 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
18349 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
18350 it differs.
18351
18352 2013-09-10 Richard Biener <rguenther@suse.de>
18353
18354 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
18355 * tree-data-ref.c (create_rdg_vertices): Collect all data
18356 references, signal failure to the caller, use data-ref API.
18357 (build_rdg): Compute data references only once. Maintain lifetime
18358 of data references and data dependences from within RDG.
18359 (free_rdg): Free dependence relations.
18360 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
18361 inventing extra dependences.
18362 (distribute_loop): Update for RDG API changes.
18363
18364 2013-09-10 Kai Tietz <ktietz@redhat.com>
18365
18366 * doc/invoke.texi (fms-extensions): Document changed
18367 behavior for ms-abi targets.
18368 * config/i386/i386.c (ix86_option_override_internal):
18369 Set default value of option -fms-extension for ms-abi targets.
18370
18371 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
18372
18373 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
18374
18375 2013-09-10 Alan Modra <amodra@gmail.com>
18376
18377 PR target/58330
18378 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
18379
18380 2013-09-10 Alan Modra <amodra@gmail.com>
18381
18382 * config/rs6000/predicates.md (add_cint_operand): New.
18383 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
18384 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
18385 using add_cint_operand.
18386 (largetoc_high_plus_aix): Likewise.
18387
18388 2013-09-09 Jakub Jelinek <jakub@redhat.com>
18389
18390 PR tree-optimization/58364
18391 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
18392 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
18393 the current range can't be an unconditional true or false.
18394
18395 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
18396
18397 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
18398
18399 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
18400
18401 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
18402
18403 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
18404
18405 PR c++/43452
18406 * doc/invoke.texi (-Wdelete-incomplete): Document it.
18407
18408 2013-09-09 Ian Bolton <ian.bolton@arm.com>
18409
18410 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
18411 NO_REGS for immediate that can't be moved directly into FP_REGS.
18412
18413 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18414
18415 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
18416 comparison with negated operand.
18417 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
18418 RTL form.
18419
18420 2013-09-09 Richard Biener <rguenther@suse.de>
18421
18422 PR middle-end/58326
18423 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
18424 of a subloop record all its block as affecting loop-closed SSA form.
18425
18426 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18427
18428 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
18429 of an rtx/bitpos pair.
18430 (store_fixed_bit_field): Update accordingly.
18431
18432 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18433
18434 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
18435 GEN_INT.
18436 * builtins.c (expand_errno_check): Likewise.
18437 * dwarf2cfi.c (init_return_column_size): Likewise.
18438 * except.c (sjlj_mark_call_sites): Likewise.
18439 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
18440 * lra-constraints.c (emit_inc): Likewise.
18441 * ree.c (combine_set_extension): Likewise.
18442 * regmove.c (fixup_match_2): Likewise.
18443 * reload1.c (inc_for_reload): Likewise.
18444
18445 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18446
18447 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
18448 (force_to_mode, simplify_shift_const_1, simplify_comparison):
18449 Use gen_int_mode with the mode of the associated simplify_* call.
18450 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
18451 * expmed.c (expand_shift_1): Likewise.
18452 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18453 * loop-iv.c (iv_number_of_iterations): Likewise.
18454 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18455 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18456
18457 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18458
18459 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
18460 of the associated expand_* call.
18461 (asan_emit_stack_protection): Likewise.
18462 * builtins.c (round_trampoline_addr): Likewise.
18463 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
18464 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
18465 (emit_store_flag): Likewise.
18466 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
18467 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
18468 Likewise.
18469 * function.c (instantiate_virtual_regs_in_insn): Likewise.
18470 * ifcvt.c (noce_try_store_flag_constants): Likewise.
18471 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
18472 * modulo-sched.c (generate_prolog_epilog): Likewise.
18473 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
18474 (expand_ctz, expand_ffs, expand_unop): Likewise.
18475
18476 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18477
18478 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
18479 of the associated gen_rtx_* call.
18480 * caller-save.c (init_caller_save): Likewise.
18481 * combine.c (find_split_point, make_extraction): Likewise.
18482 (make_compound_operation): Likewise.
18483 * dwarf2out.c (mem_loc_descriptor): Likewise.
18484 * explow.c (plus_constant, probe_stack_range): Likewise.
18485 * expmed.c (expand_mult_const): Likewise.
18486 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
18487 * reload1.c (init_reload): Likewise.
18488 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18489 * var-tracking.c (adjust_mems): Likewise.
18490 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
18491 rather than gen_rtx_fmt_ee.
18492
18493 2013-09-09 Jan Hubicka <jh@suse.cz>
18494
18495 PR middle-end/58294
18496 * value-prof.c (gimple_ic): Copy also abnormal edges.
18497
18498 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
18499
18500 * asan.c (asan_shadow_cst): Use gen_int_mode.
18501
18502 2013-09-08 Jan Hubicka <jh@suse.cz>
18503
18504 * ipa-profile.c: Add toplevel comment.
18505 (ipa_propagate_frequency_1): Be more conservative when profile is read.
18506 (contains_hot_call_p): New function.
18507 (ipa_propagate_frequency): Set frequencies based on counts when
18508 profile is read.
18509 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
18510 profile; do not tamper with profile after inlining if it is read.
18511
18512 2013-09-08 Jan Hubicka <jh@suse.cz>
18513
18514 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
18515 speculative edges.
18516
18517 2013-09-08 Jan Hubicka <jh@suse.cz>
18518
18519 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
18520 summary generation.
18521
18522 2013-09-08 Jeff Law <law@redhat.com>
18523
18524 PR bootstrap/58340
18525 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
18526 of 'found'.
18527
18528 2013-09-08 Andi Kleen <ak@linux.intel.com>
18529
18530 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
18531
18532 2013-09-08 Jan Hubicka <jh@suse.cz>
18533
18534 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
18535
18536 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
18537
18538 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
18539 for non-debug insns.
18540 * lra.c (new_insn_reg): Take the containing insn as a parameter.
18541 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
18542 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
18543 accordingly.
18544
18545 2013-09-08 Jan Hubicka <jh@suse.cz>
18546
18547 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
18548 targets and devirtualize to BUILT_IN_UNREACHABLE.
18549 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
18550 * ipa.c (walk_polymorphic_call_targets): New function.
18551 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
18552 functions; use the new timevar.
18553 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
18554 was removed from the program.
18555 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
18556 not consider it in the walk when its vtable is dead.
18557 (possible_polymorphic_call_targets_1): Pass anonymous flag to
18558 record_binfo.
18559 (devirt_variable_node_removal_hook): New function.
18560 (possible_polymorphic_call_targets): Also register
18561 devirt_variable_node_removal_hook.
18562 (ipa_devirt): Do not do non-speculative devirtualization.
18563 (gate_ipa_devirt): One execute if devirtualizing speculatively.
18564
18565 2013-09-08 Jan Hubicka <jh@suse.cz>
18566
18567 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
18568 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
18569 varpool_remove_variable_insertion_hook): Declare.
18570 * varpool.c (varpool_node_hook_list): New structure.
18571 (first_varpool_node_removal_hook,
18572 first_varpool_variable_insertion_hook): New variables.
18573 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
18574 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
18575 varpool_remove_variable_insertion_hook,
18576 varpool_call_variable_insertion_hooks): New functions.
18577 (varpool_remove_node): Use it.
18578
18579 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
18580
18581 PR c++/54941
18582 * diagnostic.c (diagnostic_build_prefix): When s.file is
18583 "<built-in>" don't output line and column numbers.
18584
18585 2013-09-06 Jan Hubicka <jh@suse.cz>
18586
18587 * cgraphunit.c (expand_thunk): Get body before touching arguments.
18588 * lto-streamer-out.c: Stream thunks, too.
18589 * lto-streamer-in.c (input_function): Pop cfun here
18590 (lto_read_body): Instead of here.
18591
18592 2013-09-06 Caroline Tice <cmtice@google.com>
18593
18594 * doc/install.texi: Add documentation for the --enable-vtable-verify
18595 and the --disable-libvtv configure options.
18596
18597 2013-09-06 Jeff Law <law@redhat.com>
18598
18599 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
18600 edge implied equivalences into successor phis.
18601
18602 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
18603
18604 * resource.c (mark_referenced_resources): Handle COND_EXEC.
18605
18606 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
18607
18608 * resource.c (mark_target_live_regs): Compute resources taking
18609 into account if a call is predicated or not.
18610
18611 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
18612
18613 * toplev.c (output_stack_usage): Be prepared for suffixes created by
18614 the compiler in the function names.
18615
18616 2013-09-06 Jan Hubicka <jh@suse.cz>
18617
18618 PR middle-end/58094
18619 * ipa-inline.c (has_caller_p): New function.
18620 (want_inline_function_to_all_callers_p): Use it.
18621 (sum_callers, inline_to_all_callers): Break out from ...
18622 (ipa_inline): ... here.
18623
18624 2013-09-06 Jan Hubicka <jh@suse.cz>
18625
18626 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
18627 only when AVX is enabled.
18628
18629 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18630
18631 * config/aarch64/aarch64.md
18632 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
18633 is fpsimd_<load/store>2.
18634 (load_pair<mode>): Likewise.
18635 (store_pair<mode>): Likewise.
18636
18637 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18638
18639 * config/arm/types.md (type): Add "mrs" type.
18640 * config/aarch64/aarch64.md
18641 (aarch64_load_tp_hard): Make type "mrs".
18642 * config/arm/arm.md
18643 (load_tp_hard): Make type "mrs".
18644 * config/arm/cortex-a15.md: Update with new attributes.
18645 * config/arm/cortex-a5.md: Update with new attributes.
18646 * config/arm/cortex-a53.md: Update with new attributes.
18647 * config/arm/cortex-a7.md: Update with new attributes.
18648 * config/arm/cortex-a8.md: Update with new attributes.
18649 * config/arm/cortex-a9.md: Update with new attributes.
18650 * config/arm/cortex-m4.md: Update with new attributes.
18651 * config/arm/cortex-r4.md: Update with new attributes.
18652 * config/arm/fa526.md: Update with new attributes.
18653 * config/arm/fa606te.md: Update with new attributes.
18654 * config/arm/fa626te.md: Update with new attributes.
18655 * config/arm/fa726te.md: Update with new attributes.
18656
18657 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18658
18659 * config/aarch64/aarch64.md
18660 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
18661 (*movtf_aarch64): Likewise.
18662 * config/arm/arm.md
18663 (thumb1_movdi_insn): Use "multiple" for type where more than one
18664 instruction is used for a move.
18665 (*arm32_movhf): Likewise.
18666 (*thumb_movdf_insn): Likewise.
18667
18668 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18669
18670 * config/arm/types.md (type): Rename fcpys to fmov.
18671 * config/arm/vfp.md
18672 (*arm_movsi_vfp): Rename type fcpys as fmov.
18673 (*thumb2_movsi_vfp): Likewise
18674 (*movhf_vfp_neon): Likewise
18675 (*movhf_vfp): Likewise
18676 (*movsf_vfp): Likewise
18677 (*thumb2_movsf_vfp): Likewise
18678 (*movsfcc_vfp): Likewise
18679 (*thumb2_movsfcc_vfp): Likewise
18680 * config/aarch64/aarch64-simd.md
18681 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
18682 * config/aarch64/aarch64.md
18683 (*movsi_aarch64): Replace type mov_reg with fmovs.
18684 (*movdi_aarch64): Likewise
18685 (*movsf_aarch64): Likewise
18686 (*movdf_aarch64): Likewise
18687 * config/arm/arm.c
18688 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
18689 * config/arm/iwmmxt.md
18690 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
18691 * config/arm/arm1020e.md: Update with new attributes.
18692 * config/arm/cortex-a15-neon.md: Update with new attributes.
18693 * config/arm/cortex-a5.md: Update with new attributes.
18694 * config/arm/cortex-a53.md: Update with new attributes.
18695 * config/arm/cortex-a7.md: Update with new attributes.
18696 * config/arm/cortex-a8-neon.md: Update with new attributes.
18697 * config/arm/cortex-a9.md: Update with new attributes.
18698 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18699 * config/arm/cortex-r4f.md: Update with new attributes.
18700 * config/arm/marvell-pj4.md: Update with new attributes.
18701 * config/arm/vfp11.md: Update with new attributes.
18702
18703 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18704
18705 * config/aarch64/aarch64.md
18706 (*madd<mode>): Fix type attribute.
18707 (*maddsi_uxtw): Likewise.
18708 (*msub<mode>): Likewise.
18709 (*msubsi_uxtw): Likewise.
18710 (<su_optab>maddsidi4): Likewise.
18711 (<su_optab>msubsidi4): Likewise.
18712
18713 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18714
18715 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
18716 * config/arm/arm.md (core_cycles): Remove fdiv.
18717 * config/arm/vfp.md:
18718 (*sqrtsf2_vfp): Update for attribute changes.
18719 (*sqrtdf2_vfp): Likewise.
18720 * config/aarch64/aarch64.md:
18721 (sqrt<mode>2): Update for attribute changes.
18722 * config/arm/arm1020e.md: Update with new attributes.
18723 * config/arm/cortex-a15-neon.md: Update with new attributes.
18724 * config/arm/cortex-a5.md: Update with new attributes.
18725 * config/arm/cortex-a53.md: Update with new attributes.
18726 * config/arm/cortex-a7.md: Update with new attributes.
18727 * config/arm/cortex-a8-neon.md: Update with new attributes.
18728 * config/arm/cortex-a9.md: Update with new attributes.
18729 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18730 * config/arm/cortex-r4f.md: Update with new attributes.
18731 * config/arm/marvell-pj4.md: Update with new attributes.
18732 * config/arm/vfp11.md: Update with new attributes.
18733
18734 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18735
18736 * config/arm/types.md
18737 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
18738 * config/aarch64/aarch64.md
18739 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
18740 new attributes.
18741 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
18742 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
18743 (float<GPI:mode><GPF:mode>2): Likewise.
18744 * config/arm/vfp.md
18745 (*truncsisf2_vfp): Update with new attributes.
18746 (*truncsidf2_vfp): Likewise.
18747 (fixuns_truncsfsi2): Likewise.
18748 (fixuns_truncdfsi2): Likewise.
18749 (*floatsisf2_vfp): Likewise.
18750 (*floatsidf2_vfp): Likewise.
18751 (floatunssisf2): Likewise.
18752 (floatunssidf2): Likewise.
18753 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
18754 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
18755 * config/arm/arm1020e.md: Update with new attributes.
18756 * config/arm/cortex-a15-neon.md: Update with new attributes.
18757 * config/arm/cortex-a5.md: Update with new attributes.
18758 * config/arm/cortex-a53.md: Update with new attributes.
18759 * config/arm/cortex-a7.md: Update with new attributes.
18760 * config/arm/cortex-a8-neon.md: Update with new attributes.
18761 * config/arm/cortex-a9.md: Update with new attributes.
18762 * config/arm/cortex-m4-fpu.md: Update with new attributes.
18763 * config/arm/cortex-r4f.md: Update with new attributes.
18764 * config/arm/marvell-pj4.md: Update with new attributes.
18765 * config/arm/vfp11.md: Update with new attributes.
18766
18767 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18768
18769 * config/aarch64/arm_neon.h
18770 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
18771 (vqtbx<1,2,3,4><q>_s8): Likewise.
18772
18773 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
18774
18775 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
18776 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
18777 (add<mode>3): Add type attribute.
18778 (add<mode>3): Likewise.
18779 (usadd<mode>3): Likewise.
18780 (ssadd<mode>3): Likewise.
18781 (sub<mode>3): Likewise.
18782 (sub<mode>3): Likewise.
18783 (ussub<mode>3): Likewise.
18784 (sssub<mode>3): Likewise.
18785 (ssmulsa3): Likewise.
18786 (usmulusa3): Likewise.
18787 (arm_usatsihi): Likewise.
18788 * config/arm/vfp.md
18789 (*movdi_vfp): Add types for all instructions.
18790 (*movdi_vfp_cortexa8): Likewise.
18791 (*movhf_vfp_neon): Likewise.
18792 (*movhf_vfp): Likewise.
18793 (*movdf_vfp): Likewise.
18794 (*thumb2_movdf_vfp): Likewise.
18795 (*thumb2_movdfcc_vfp): Likewise.
18796 * config/arm/arm.md: Add type attribute to all insn patterns.
18797 (*thumb1_adddi3): Add type attribute.
18798 (*arm_adddi3): Likewise.
18799 (*adddi_sesidi_di): Likewise.
18800 (*adddi_zesidi_di): Likewise.
18801 (*thumb1_addsi3): Likewise.
18802 (addsi3_compare0): Likewise.
18803 (*addsi3_compare0_scratch): Likewise.
18804 (*compare_negsi_si): Likewise.
18805 (cmpsi2_addneg): Likewise.
18806 (*addsi3_carryin_<optab>): Likewise.
18807 (*addsi3_carryin_alt2_<optab>): Likewise.
18808 (*addsi3_carryin_clobercc_<optab>): Likewise.
18809 (*subsi3_carryin): Likewise.
18810 (*subsi3_carryin_const): Likewise.
18811 (*subsi3_carryin_compare): Likewise.
18812 (*subsi3_carryin_compare_const): Likewise.
18813 (*arm_subdi3): Likewise.
18814 (*thumb_subdi3): Likewise.
18815 (*subdi_di_zesidi): Likewise.
18816 (*subdi_di_sesidi): Likewise.
18817 (*subdi_zesidi_di): Likewise.
18818 (*subdi_sesidi_di): Likewise.
18819 (*subdi_zesidi_ze): Likewise.
18820 (thumb1_subsi3_insn): Likewise.
18821 (*arm_subsi3_insn): Likewise.
18822 (*anddi3_insn): Likewise.
18823 (*anddi_zesidi_di): Likewise.
18824 (*anddi_sesdi_di): Likewise.
18825 (*ne_zeroextracts): Likewise.
18826 (*ne_zeroextracts): Likewise.
18827 (*ite_ne_zeroextr): Likewise.
18828 (*ite_ne_zeroextr): Likewise.
18829 (*anddi_notdi_di): Likewise.
18830 (*anddi_notzesidi): Likewise.
18831 (*anddi_notsesidi): Likewise.
18832 (andsi_notsi_si): Likewise.
18833 (thumb1_bicsi3): Likewise.
18834 (*iordi3_insn): Likewise.
18835 (*iordi_zesidi_di): Likewise.
18836 (*iordi_sesidi_di): Likewise.
18837 (*thumb1_iorsi3_insn): Likewise.
18838 (*xordi3_insn): Likewise.
18839 (*xordi_zesidi_di): Likewise.
18840 (*xordi_sesidi_di): Likewise.
18841 (*arm_xorsi3): Likewise.
18842 (*andsi_iorsi3_no): Likewise.
18843 (*smax_0): Likewise.
18844 (*smax_m1): Likewise.
18845 (*arm_smax_insn): Likewise.
18846 (*smin_0): Likewise.
18847 (*arm_smin_insn): Likewise.
18848 (*arm_umaxsi3): Likewise.
18849 (*arm_uminsi3): Likewise.
18850 (*minmax_arithsi): Likewise.
18851 (*minmax_arithsi_): Likewise.
18852 (*satsi_<SAT:code>): Likewise.
18853 (arm_ashldi3_1bit): Likewise.
18854 (arm_ashrdi3_1bit): Likewise.
18855 (arm_lshrdi3_1bit): Likewise.
18856 (*arm_negdi2): Likewise.
18857 (*thumb1_negdi2): Likewise.
18858 (*arm_negsi2): Likewise.
18859 (*thumb1_negsi2): Likewise.
18860 (*negdi_extendsid): Likewise.
18861 (*negdi_zero_extend): Likewise.
18862 (*arm_abssi2): Likewise.
18863 (*thumb1_abssi2): Likewise.
18864 (*arm_neg_abssi2): Likewise.
18865 (*thumb1_neg_abss): Likewise.
18866 (one_cmpldi2): Likewise.
18867 (extend<mode>di2): Likewise.
18868 (*compareqi_eq0): Likewise.
18869 (*arm_extendhisi2addsi): Likewise.
18870 (*arm_movdi): Likewise.
18871 (*thumb1_movdi_insn): Likewise.
18872 (*arm_movt): Likewise.
18873 (*thumb1_movsi_insn): Likewise.
18874 (pic_add_dot_plus_four): Likewise.
18875 (pic_add_dot_plus_eight): Likewise.
18876 (tls_load_dot_plus_eight): Likewise.
18877 (*thumb1_movhi_insn): Likewise.
18878 (*thumb1_movsf_insn): Likewise.
18879 (*movdf_soft_insn): Likewise.
18880 (*thumb_movdf_insn): Likewise.
18881 (cbranchsi4_insn): Likewise.
18882 (cbranchsi4_scratch): Likewise.
18883 (*negated_cbranchsi4): Likewise.
18884 (*tbit_cbranch): Likewise.
18885 (*tlobits_cbranch): Likewise.
18886 (*tstsi3_cbranch): Likewise.
18887 (*cbranchne_decr1): Likewise.
18888 (*addsi3_cbranch): Likewise.
18889 (*addsi3_cbranch_scratch): Likewise.
18890 (*arm_cmpdi_insn): Likewise.
18891 (*arm_cmpdi_unsig): Likewise.
18892 (*arm_cmpdi_zero): Likewise.
18893 (*thumb_cmpdi_zero): Likewise.
18894 (*deleted_compare): Likewise.
18895 (*mov_scc): Likewise.
18896 (*mov_negscc): Likewise.
18897 (*mov_notscc): Likewise.
18898 (*cstoresi_eq0_thumb1_insn): Likewise.
18899 (cstoresi_nltu_thumb1): Likewise.
18900 (cstoresi_ltu_thu): Likewise.
18901 (thumb1_addsi3_addgeu): Likewise.
18902 (*arm_jump): Likewise.
18903 (*thumb_jump): Likewise.
18904 (*check_arch2): Likewise.
18905 (arm_casesi_internal): Likewise.
18906 (thumb1_casesi_dispatch): Likewise.
18907 (*arm_indirect_jump): Likewise.
18908 (*thumb1_indirect_jump): Likewise.
18909 (nop): Likewise.
18910 (*and_scc): Likewise.
18911 (*ior_scc): Likewise.
18912 (*compare_scc): Likewise.
18913 (*cond_move): Likewise.
18914 (*cond_arith): Likewise.
18915 (*cond_sub): Likewise.
18916 (*cmp_ite0): Likewise.
18917 (*cmp_ite1): Likewise.
18918 (*cmp_and): Likewise.
18919 (*cmp_ior): Likewise.
18920 (*ior_scc_scc): Likewise.
18921 (*ior_scc_scc_cmp): Likewise.
18922 (*and_scc_scc): Likewise.
18923 (*and_scc_scc_cmp): Likewise.
18924 (*and_scc_scc_nod): Likewise.
18925 (*negscc): Likewise.
18926 (movcond_addsi): Likewise.
18927 (movcond): Likewise.
18928 (*ifcompare_plus_move): Likewise.
18929 (*if_plus_move): Likewise.
18930 (*ifcompare_move_plus): Likewise.
18931 (*if_move_plus): Likewise.
18932 (*ifcompare_arith_arith): Likewise.
18933 (*if_arith_arith): Likewise.
18934 (*ifcompare_arith_move): Likewise.
18935 (*if_arith_move): Likewise.
18936 (*ifcompare_move_arith): Likewise.
18937 (*if_move_arith): Likewise.
18938 (*ifcompare_move_not): Likewise.
18939 (*if_move_not): Likewise.
18940 (*ifcompare_not_move): Likewise.
18941 (*if_not_move): Likewise.
18942 (*ifcompare_shift_move): Likewise.
18943 (*if_shift_move): Likewise.
18944 (*ifcompare_move_shift): Likewise.
18945 (*if_move_shift): Likewise.
18946 (*ifcompare_shift_shift): Likewise.
18947 (*ifcompare_not_arith): Likewise.
18948 (*ifcompare_arith_not): Likewise.
18949 (*if_arith_not): Likewise.
18950 (*ifcompare_neg_move): Likewise.
18951 (*if_neg_move): Likewise.
18952 (*ifcompare_move_neg): Likewise.
18953 (*if_move_neg): Likewise.
18954 (prologue_thumb1_interwork): Likewise.
18955 (*cond_move_not): Likewise.
18956 (*sign_extract_onebit): Likewise.
18957 (*not_signextract_onebit): Likewise.
18958 (stack_tie): Likewise.
18959 (align_4): Likewise.
18960 (align_8): Likewise.
18961 (consttable_end): Likewise.
18962 (consttable_1): Likewise.
18963 (consttable_2): Likewise.
18964 (consttable_4): Likewise.
18965 (consttable_8): Likewise.
18966 (consttable_16): Likewise.
18967 (*thumb1_tablejump): Likewise.
18968 (prefetch): Likewise.
18969 (force_register_use): Likewise.
18970 (thumb_eh_return): Likewise.
18971 (load_tp_hard): Likewise.
18972 (load_tp_soft): Likewise.
18973 (tlscall): Likewise.
18974 (*arm_movtas_ze): Likewise.
18975 (*arm_rev): Likewise.
18976 (*arm_revsh): Likewise.
18977 (*arm_rev16): Likewise.
18978 * config/arm/thumb2.md
18979 (*thumb2_smaxsi3): Likewise.
18980 (*thumb2_sminsi3): Likewise.
18981 (*thumb32_umaxsi3): Likewise.
18982 (*thumb2_uminsi3): Likewise.
18983 (*thumb2_negdi2): Likewise.
18984 (*thumb2_abssi2): Likewise.
18985 (*thumb2_neg_abss): Likewise.
18986 (*thumb2_movsi_insn): Likewise.
18987 (tls_load_dot_plus_four): Likewise.
18988 (*thumb2_movhi_insn): Likewise.
18989 (*thumb2_mov_scc): Likewise.
18990 (*thumb2_mov_negs): Likewise.
18991 (*thumb2_mov_negs): Likewise.
18992 (*thumb2_mov_nots): Likewise.
18993 (*thumb2_mov_nots): Likewise.
18994 (*thumb2_movsicc_): Likewise.
18995 (*thumb2_movsfcc_soft_insn): Likewise.
18996 (*thumb2_indirect_jump): Likewise.
18997 (*thumb2_and_scc): Likewise.
18998 (*thumb2_ior_scc): Likewise.
18999 (*thumb2_ior_scc_strict_it): Likewise.
19000 (*thumb2_cond_move): Likewise.
19001 (*thumb2_cond_arith): Likewise.
19002 (*thumb2_cond_ari): Likewise.
19003 (*thumb2_cond_sub): Likewise.
19004 (*thumb2_negscc): Likewise.
19005 (*thumb2_movcond): Likewise.
19006 (thumb2_casesi_internal): Likewise.
19007 (thumb2_casesi_internal_pic): Likewise.
19008 (*thumb2_alusi3_short): Likewise.
19009 (*thumb2_mov<mode>_shortim): Likewise.
19010 (*thumb2_addsi_short): Likewise.
19011 (*thumb2_subsi_short): Likewise.
19012 (thumb2_addsi3_compare0): Likewise.
19013 (*thumb2_cbz): Likewise.
19014 (*thumb2_cbnz): Likewise.
19015 (*thumb2_one_cmplsi2_short): Likewise.
19016 (*thumb2_negsi2_short): Likewise.
19017 (*orsi_notsi_si): Likewise.
19018 * config/arm/arm1020e.md: Update with new attributes.
19019 * config/arm/arm1026ejs.md: Update with new attributes.
19020 * config/arm/arm1136jfs.md: Update with new attributes.
19021 * config/arm/arm926ejs.md: Update with new attributes.
19022 * config/arm/cortex-a15.md: Update with new attributes.
19023 * config/arm/cortex-a5.md: Update with new attributes.
19024 * config/arm/cortex-a53.md: Update with new attributes.
19025 * config/arm/cortex-a7.md: Update with new attributes.
19026 * config/arm/cortex-a8.md: Update with new attributes.
19027 * config/arm/cortex-a9.md: Update with new attributes.
19028 * config/arm/cortex-m4.md: Update with new attributes.
19029 * config/arm/cortex-r4.md: Update with new attributes.
19030 * config/arm/fa526.md: Update with new attributes.
19031 * config/arm/fa606te.md: Update with new attributes.
19032 * config/arm/fa626te.md: Update with new attributes.
19033 * config/arm/fa726te.md: Update with new attributes.
19034
19035 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
19036
19037 * config/aarch64/aarch64-simd.md
19038 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
19039 <vwx> iterator to ensure correct register choice.
19040 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
19041 (aarch64_sqdmull_n<mode>): Likewise.
19042 (aarch64_sqdmull2_n<mode>_internal): Likewise.
19043 * config/aarch64/arm_neon.h
19044 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
19045 (vml<as><q>_n_<su>16): Likewise.
19046 (vml<as>l_high_lane<q>_<su>16): Likewise.
19047 (vml<as>l_high_n_<su>16): Likewise.
19048 (vml<as>l_lane<q>_<su>16): Likewise.
19049 (vml<as>l_n_<su>16): Likewise.
19050 (vmul<q>_lane<q>_<su>16): Likewise.
19051 (vmul<q>_n_<su>16): Likewise.
19052 (vmull_lane<q>_<su>16): Likewise.
19053 (vmull_n_<su>16): Likewise.
19054 (vmull_high_lane<q>_<su>16): Likewise.
19055 (vmull_high_n_<su>16): Likewise.
19056 (vqrdmulh<q>_n_s16): Likewise.
19057
19058 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
19059
19060 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
19061 have the correct lane parameter.
19062
19063 2013-09-06 Richard Biener <rguenther@suse.de>
19064
19065 * cfganal.c (control_dependences::~control_dependences):
19066 Properly free all of the vector.
19067
19068 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
19069
19070 PR target/58269
19071 * config/i386/i386.c (ix86_conditional_register_usage):
19072 Proper initialize extended SSE registers.
19073
19074 2013-09-06 Jan Hubicka <jh@suse.cz>
19075
19076 PR tree-optimization/58311
19077 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
19078
19079 2013-09-06 Jan Hubicka <jh@suse.cz>
19080
19081 * Makefile.in (tree-sra.o): Update dependencies.
19082 * tree-sra.c: Include ipa-utils.h
19083 (scan_function): Use recursive_call_p.
19084 (has_caller_p): New function.
19085 (cgraph_for_node_and_aliases): Count also callers of aliases.
19086
19087 2013-09-06 Jan Hubicka <jh@suse.cz>
19088
19089 PR middle-end/58094
19090 * cgraph.h (symtab_semantically_equivalent_p): Declare.
19091 * tree-tailcall.c: Include ipa-utils.h.
19092 (find_tail_calls): Use it.
19093 * ipa-pure-const.c (check_call): Likewise.
19094 * ipa-utils.c (recursive_call_p): New function.
19095 * ipa-utils.h (recursive_call_p): Dclare.
19096 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
19097 (symtab_semantically_equivalent_p): New function.
19098 * Makefile.in (tree-tailcall.o): Update dependencies.
19099
19100 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
19101
19102 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
19103 non-inlinable part.
19104
19105 2013-09-06 Richard Biener <rguenther@suse.de>
19106
19107 * lto-streamer.h (lto_global_var_decls): Remove.
19108 * Makefile.in (OBJS): Remove lto-symtab.o.
19109 (lto-symtab.o): Remove.
19110 (GTFILES): Remove lto-symtab.c
19111 * lto-symtab.c: Move to lto/
19112
19113 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19114
19115 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
19116 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
19117 (UNSPEC_FPINT_RINT): New constant definitions.
19118 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
19119 definition with 2 attributes.
19120 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
19121 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
19122 definitions.
19123
19124 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19125
19126 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
19127 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
19128 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
19129 attribute to "z196_alone".
19130 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
19131 "zEC12_simple".
19132
19133 2013-09-06 Richard Biener <rguenther@suse.de>
19134
19135 * basic-block.h (class control_dependences): New.
19136 * tree-ssa-dce.c (control_dependence_map): Remove.
19137 (cd): New global.
19138 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
19139 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
19140 find_pdom, find_control_dependence, find_all_control_dependences):
19141 Move to cfganal.c.
19142 (mark_control_dependent_edges_necessary,
19143 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
19144 tree_dce_done, perform_tree_ssa_dce): Adjust.
19145 * cfganal.c (set_control_dependence_map_bit,
19146 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
19147 find_all_control_dependences): Move from tree-ssa-dce.c and
19148 implement as methods of control_dependences class.
19149 (control_dependences::control_dependences): New.
19150 (control_dependences::~control_dependences): Likewise.
19151 (control_dependences::get_edges_dependent_on): Likewise.
19152 (control_dependences::get_edge): Likewise.
19153
19154 2013-09-04 Jan Hubicka <jh@suse.cz>
19155
19156 * tree.c (types_same_for_odr): Drop overactive check.
19157 * ipa-devirt.c (hash_type_name): Likewise.
19158
19159 2013-09-04 Jan Hubicka <jh@suse.cz>
19160
19161 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
19162 (analyze_functions): ... here.
19163
19164 2013-09-04 Jan Hubicka <jh@suse.cz>
19165
19166 PR middle-end/58201
19167 * cgraphunit.c (analyze_functions): Clear AUX fields
19168 after processing; initialize assembler name has.
19169
19170 2013-09-05 Jeff Law <law@redhat.com>
19171
19172 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
19173 from thread_around_empty_block. Record threading path into PATH.
19174 Recurse if threading through the initial block is successful.
19175 (thread_across_edge): Corresponding changes to slightly simplify.
19176
19177 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19178
19179 * config/aarch64/aarch64.md
19180 (type): Remove frecpe, frecps, frecpx.
19181 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
19182 fix to be a TARGET_SIMD instruction.
19183 (aarch64_frecps): Remove.
19184 * config/aarch64/aarch64-simd.md
19185 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
19186 (aarch64_frecps<mode>): Handle all float/vector of float modes.
19187
19188 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19189 Sofiane Naci <sofiane.naci@arm.com>
19190
19191 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
19192 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
19193 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
19194 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
19195 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
19196 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
19197 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
19198 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
19199 into "clz, "rbit". Rename "shift" to "shift_imm".
19200 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
19201 changes. Update for attribute changes all occurrences of arlo_* and
19202 shift* types.
19203 * config/arm/arm-fixed.md: Update for attribute changes
19204 all occurrences of arlo_* types.
19205 * config/arm/thumb2.md: Update for attribute changes all occurrences
19206 of arlo_* types.
19207 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
19208 (cortexa7_older_only): Likewise.
19209 (cortexa7_younger): Likewise.
19210 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
19211 (1020alu_shift_op): Likewise.
19212 (1020alu_shift_reg_op): Likewise.
19213 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
19214 (alu_shift_op): Likewise.
19215 (alu_shift_reg_op): Likewise.
19216 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
19217 (11_alu_shift_op): Likewise.
19218 (11_alu_shift_reg_op): Likewise.
19219 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
19220 (9_alu_shift_reg_op): Likewise.
19221 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
19222 attribute changes.
19223 (cortex_a15_alu_shift): Likewise.
19224 (cortex_a15_alu_shift_reg): Likewise.
19225 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
19226 attribute changes.
19227 (cortex_a5_alu_shift): Likewise.
19228 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
19229 attribute changes.
19230 (cortex_a53_alu_shift): Likewise.
19231 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
19232 attribute changes.
19233 (cortex_a7_alu_reg): Likewise.
19234 (cortex_a7_alu_shift): Likewise.
19235 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
19236 attribute changes.
19237 (cortex_a8_alu_shift): Likewise.
19238 (cortex_a8_alu_shift_reg): Likewise.
19239 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
19240 (cortex_a9_dp_shift): Likewise.
19241 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
19242 attribute changes.
19243 * config/arm/cortex-r4.md
19244 (cortex_r4_alu): Update for attribute changes.
19245 (cortex_r4_mov): Likewise.
19246 (cortex_r4_alu_shift_reg): Likewise.
19247 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
19248 (526_alu_shift_op): Likewise.
19249 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
19250 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
19251 (626te_alu_shift_op): Likewise.
19252 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
19253 (726te_alu_shift_op): Likewise.
19254 (726te_alu_shift_reg_op): Likewise.
19255 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
19256 (mp626_alu_shift_op): Likewise.
19257 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
19258 (pj4_alu_conds): Likewise.
19259 (pj4_shift): Likewise.
19260 (pj4_shift_conds): Likewise.
19261 (pj4_alu_shift): Likewise.
19262 (pj4_alu_shift_conds): Likewise.
19263 * config/aarch64/aarch64.md: Update for attribute change
19264 all occurrences of arlo_* and shift* types.
19265
19266 2013-09-05 Mike Stump <mikestump@comcast.net>
19267
19268 * tree.h: Move documentation for tree_function_decl to tree-core.h
19269 with the declaration.
19270
19271 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
19272
19273 PR target/58139
19274 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
19275 looking for widest mode.
19276
19277 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
19278
19279 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
19280
19281 2013-09-05 Richard Biener <rguenther@suse.de>
19282
19283 PR tree-optimization/58137
19284 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
19285 Do not create vectors of pointers.
19286 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
19287 types for the components of the vector initializer.
19288 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
19289 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
19290
19291 2013-09-05 Martin Jambor <mjambor@suse.cz>
19292
19293 * ipa-prop.c (remove_described_reference): Accept missing references,
19294 return false if that hppens, otherwise return true.
19295 (cgraph_node_for_jfunc): New function.
19296 (try_decrement_rdesc_refcount): Likewise.
19297 (try_make_edge_direct_simple_call): Use them.
19298 (ipa_edge_removal_hook): Remove references from rdescs.
19299 (ipa_edge_duplication_hook): Clone rdescs and their references
19300 when the new edge has the same caller as the old one.
19301 * cgraph.c (cgraph_resolve_speculation): Remove speculative
19302 reference before removing any edges.
19303
19304 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
19305
19306 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
19307 initial store.
19308 * thumb2.md (thumb2_storewb_parisi): New pattern.
19309
19310 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
19311
19312 * config/aarch64/aarch64-option-extensions.def: Add
19313 AARCH64_OPT_EXTENSION of 'crc'.
19314 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
19315 (AARCH64_ISA_CRC): Ditto.
19316 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
19317 description of the CRC extension.
19318
19319 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
19320
19321 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
19322 * config/rs6000/linux.h: Ditto.
19323 * alpha/linux.h: Ditto.
19324 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
19325 no_c99_libc_has_function.
19326 * config/c6x/uclinux-elf.h: Ditto.
19327 * config/lm32/uclinux-elf.h: Ditto.
19328 * config/m68k/uclinux.h: Ditto.
19329 * config/moxie/uclinux.h: Ditto.
19330 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
19331 (crisv32-*-linux*, cris-*-linux*): Ditto.
19332 * config/bfin/bfin.c: Include "tm_p.h".
19333
19334 2013-09-05 Richard Biener <rguenther@suse.de>
19335
19336 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
19337 check for a definition without a basic-block.
19338
19339 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
19340 Sofiane Naci <sofiane.naci@arm.com>
19341
19342 * config/aarch64/aarch64.md
19343 (*movti_aarch64): Rename r_2_f and f_2_r.
19344 (*movsf_aarch64): Likewise.
19345 (*movdf_aarch64): Likewise.
19346 (*movtf_aarch64): Likewise.
19347 (aarch64_movdi_<mode>low): Likewise.
19348 (aarch64_movdi_<mode>high): Likewise.
19349 (aarch64_mov<mode>high_di): Likewise.
19350 (aarch64_mov<mode>low_di): Likewise.
19351 (aarch64_movtilow_tilow): Likewise.
19352 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
19353 values to config/arm/types.md
19354 (attribute "conds"): Update for attribute change.
19355 (anddi3_insn): Likewise.
19356 (iordi3_insn): Likewise.
19357 (xordi3_insn): Likewise.
19358 (one_cmpldi2): Likewise.
19359 * config/arm/types.md (type): Add Neon types.
19360 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
19361 use "type" attribute.
19362 (movmisalign<mode>_neon_store): Likewise.
19363 (movmisalign<mode>_neon_load): Likewise.
19364 (vec_set<mode>_internal): Likewise.
19365 (vec_setv2di_internal): Likewise.
19366 (vec_extract<mode>): Likewise.
19367 (vec_extractv2di): Likewise.
19368 (add<mode>3_neon): Likewise.
19369 (adddi3_neon): Likewise.
19370 (sub<mode>3_neon): Likewise.
19371 (subdi3_neon): Likewise.
19372 (mul<mode>3_neon): Likewise.
19373 (mul<mode>3add<mode>_neon): Likewise.
19374 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
19375 (fma<VCVTF:mode>4)): Likewise.
19376 (fma<VCVTF:mode>4_intrinsic): Likewise.
19377 (fmsub<VCVTF:mode>4)): Likewise.
19378 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
19379 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
19380 (ior<mode>3): Likewise.
19381 (and<mode>3): Likewise.
19382 (anddi3_neon): Likewise.
19383 (orn<mode>3_neon): Likewise.
19384 (orndi3_neon): Likewise.
19385 (bic<mode>3_neon): Likewise.
19386 (bicdi3_neon): Likewise.
19387 (xor<mode>3): Likewise.
19388 (one_cmpl<mode>2): Likewise.
19389 (abs<mode>2): Likewise.
19390 (neg<mode>2): Likewise.
19391 (umin<mode>3_neon): Likewise.
19392 (umax<mode>3_neon): Likewise.
19393 (smin<mode>3_neon): Likewise.
19394 (smax<mode>3_neon): Likewise.
19395 (vashl<mode>3): Likewise.
19396 (vashr<mode>3_imm): Likewise.
19397 (vlshr<mode>3_imm): Likewise.
19398 (ashl<mode>3_signed): Likewise.
19399 (ashl<mode>3_unsigned): Likewise.
19400 (neon_load_count): Likewise.
19401 (ashldi3_neon_noclobber): Likewise.
19402 (signed_shift_di3_neon): Likewise.
19403 (unsigned_shift_di3_neon): Likewise.
19404 (ashrdi3_neon_imm_noclobber): Likewise.
19405 (lshrdi3_neon_imm_noclobber): Likewise.
19406 (widen_ssum<mode>3): Likewise.
19407 (widen_usum<mode>3): Likewise.
19408 (quad_halves_<code>v4si): Likewise.
19409 (quad_halves_<code>v4sf): Likewise.
19410 (quad_halves_<code>v8hi): Likewise.
19411 (quad_halves_<code>v16qi): Likewise.
19412 (reduc_splus_v2di): Likewise.
19413 (neon_vpadd_internal<mode>): Likewise.
19414 (neon_vpsmin<mode>): Likewise.
19415 (neon_vpsmax<mode>): Likewise.
19416 (neon_vpumin<mode>): Likewise.
19417 (neon_vpumax<mode>): Likewise.
19418 (ss_add<mode>_neon): Likewise.
19419 (us_add<mode>_neon): Likewise.
19420 (ss_sub<mode>_neon): Likewise.
19421 (us_sub<mode>_neon): Likewise.
19422 (neon_vadd<mode>_unspec): Likewise.
19423 (neon_vaddl<mode>): Likewise.
19424 (neon_vaddw<mode>): Likewise.
19425 (neon_vhadd<mode>): Likewise.
19426 (neon_vqadd<mode>): Likewise.
19427 (neon_vaddhn<mode>): Likewise.
19428 (neon_vmul<mode>): Likewise.
19429 (neon_vmla<mode>): Likewise.
19430 (neon_vmlal<mode>): Likewise.
19431 (neon_vmls<mode>): Likewise.
19432 (neon_vmlsl<mode>): Likewise.
19433 (neon_vqdmulh<mode>): Likewise.
19434 (neon_vqdmlal<mode>): Likewise.
19435 (neon_vqdmlsl<mode>): Likewise.
19436 (neon_vmull<mode>): Likewise.
19437 (neon_vqdmull<mode>): Likewise.
19438 (neon_vsub<mode>_unspec): Likewise.
19439 (neon_vsubl<mode>): Likewise.
19440 (neon_vsubw<mode>): Likewise.
19441 (neon_vqsub<mode>): Likewise.
19442 (neon_vhsub<mode>): Likewise.
19443 (neon_vsubhn<mode>): Likewise.
19444 (neon_vceq<mode>): Likewise.
19445 (neon_vcge<mode>): Likewise.
19446 (neon_vcgeu<mode>): Likewise.
19447 (neon_vcgt<mode>): Likewise.
19448 (neon_vcgtu<mode>): Likewise.
19449 (neon_vcle<mode>): Likewise.
19450 (neon_vclt<mode>): Likewise.
19451 (neon_vcage<mode>): Likewise.
19452 (neon_vcagt<mode>): Likewise.
19453 (neon_vtst<mode>): Likewise.
19454 (neon_vabd<mode>): Likewise.
19455 (neon_vabdl<mode>): Likewise.
19456 (neon_vaba<mode>): Likewise.
19457 (neon_vabal<mode>): Likewise.
19458 (neon_vmax<mode>): Likewise.
19459 (neon_vmin<mode>): Likewise.
19460 (neon_vpaddl<mode>): Likewise.
19461 (neon_vpadal<mode>): Likewise.
19462 (neon_vpmax<mode>): Likewise.
19463 (neon_vpmin<mode>): Likewise.
19464 (neon_vrecps<mode>): Likewise.
19465 (neon_vrsqrts<mode>): Likewise.
19466 (neon_vqabs<mode>): Likewise.
19467 (neon_vqneg<mode>): Likewise.
19468 (neon_vcls<mode>): Likewise.
19469 (clz<mode>2): Likewise.
19470 (popcount<mode>2): Likewise.
19471 (neon_vrecpe): Likewise.
19472 (neon_vrsqrte): Likewise.
19473 (neon_vget_lane<mode>_sext_internal): Likewise.
19474 (neon_vget_lane<mode>_zext_internal): Likewise.
19475 (neon_vdup_n<mode>): Likewise.
19476 (neon_vdup_nv2di): Likewise.
19477 (neon_vdpu_lane<mode>_internal): Likewise.
19478 (neon_vswp<mode>): Likewise.
19479 (float<mode><V_cvtto>2): Likewise.
19480 (floatuns<mode><V_cvtto>2): Likewise.
19481 (fix_trunc<mode><V_cvtto>)2): Likewise
19482 (fixuns_trunc<mode><V_cvtto)2): Likewise.
19483 (neon_vcvt<mode>): Likewise.
19484 (neon_vcvtv4sfv4hf): Likewise.
19485 (neon_vcvtv4hfv4sf): Likewise.
19486 (neon_vcvt_n<mode>): Likewise.
19487 (neon_vmovn<mode>): Likewise.
19488 (neon_vqmovn<mode>): Likewise.
19489 (neon_vqmovun<mode>): Likewise.
19490 (neon_vmovl<mode>): Likewise.
19491 (neon_vmul_lane<mode>): Likewise.
19492 (neon_vmull_lane<mode>): Likewise.
19493 (neon_vqdmull_lane<mode>): Likewise.
19494 (neon_vqdmulh_lane<mode>): Likewise.
19495 (neon_vmla_lane<mode>): Likewise.
19496 (neon_vmlal_lane<mode>): Likewise.
19497 (neon_vqdmlal_lane<mode>): Likewise.
19498 (neon_vmls_lane<mode>): Likewise.
19499 (neon_vmlsl_lane<mode>): Likewise.
19500 (neon_vqdmlsl_lane<mode>): Likewise.
19501 (neon_vext<mode>): Likewise.
19502 (neon_vrev64<mode>): Likewise.
19503 (neon_vrev32<mode>): Likewise.
19504 (neon_vrev16<mode>): Likewise.
19505 (neon_vbsl<mode>_internal): Likewise.
19506 (neon_vshl<mode>): Likewise.
19507 (neon_vqshl<mode>): Likewise.
19508 (neon_vshr_n<mode>): Likewise.
19509 (neon_vshrn_n<mode>): Likewise.
19510 (neon_vqshrn_n<mode>): Likewise.
19511 (neon_vqshrun_n<mode>): Likewise.
19512 (neon_vshl_n<mode>): Likewise.
19513 (neon_vqshl_n<mode>): Likewise.
19514 (neon_vqshlu_n<mode>): Likewise.
19515 (neon_vshll_n<mode>): Likewise.
19516 (neon_vsra_n<mode>): Likewise.
19517 (neon_vsri_n<mode>): Likewise.
19518 (neon_vsli_n<mode>): Likewise.
19519 (neon_vtbl1v8qi): Likewise.
19520 (neon_vtbl2v8qi): Likewise.
19521 (neon_vtbl3v8qi): Likewise.
19522 (neon_vtbl4v8qi): Likewise.
19523 (neon_vtbx1v8qi): Likewise.
19524 (neon_vtbx2v8qi): Likewise.
19525 (neon_vtbx3v8qi): Likewise.
19526 (neon_vtbx4v8qi): Likewise.
19527 (neon_vtrn<mode>_internal): Likewise.
19528 (neon_vzip<mode>_internal): Likewise.
19529 (neon_vuzp<mode>_internal): Likewise.
19530 (neon_vld1<mode>): Likewise.
19531 (neon_vld1_lane<mode>): Likewise.
19532 (neon_vld1_dup<mode>): Likewise.
19533 (neon_vld1_dupv2di): Likewise.
19534 (neon_vst1<mode>): Likewise.
19535 (neon_vst1_lane<mode>): Likewise.
19536 (neon_vld2<mode>): Likewise.
19537 (neon_vld2_lane<mode>): Likewise.
19538 (neon_vld2_dup<mode>): Likewise.
19539 (neon_vst2<mode>): Likewise.
19540 (neon_vst2_lane<mode>): Likewise.
19541 (neon_vld3<mode>): Likewise.
19542 (neon_vld3qa<mode>): Likewise.
19543 (neon_vld3qb<mode>): Likewise.
19544 (neon_vld3_lane<mode>): Likewise.
19545 (neon_vld3_dup<mode>): Likewise.
19546 (neon_vst3<mode>): Likewise.
19547 (neon_vst3qa<mode>): Likewise.
19548 (neon_vst3qb<mode>): Likewise.
19549 (neon_vst3_lane<mode>): Likewise.
19550 (neon_vld4<mode>): Likewise.
19551 (neon_vld4qa<mode>): Likewise.
19552 (neon_vld4qb<mode>): Likewise.
19553 (neon_vld4_lane<mode>): Likewise.
19554 (neon_vld4_dup<mode>): Likewise.
19555 (neon_vst4<mode>): Likewise.
19556 (neon_vst4qa<mode>): Likewise.
19557 (neon_vst4qb<mode>): Likewise.
19558 (neon_vst4_lane<mode>): Likewise.
19559 (neon_vec_unpack<US>_lo_<mode>): Likewise.
19560 (neon_vec_unpack<US>_hi_<mode>): Likewise.
19561 (neon_vec_<US>mult_lo_<mode>): Likewise.
19562 (neon_vec_<US>mult_hi_<mode>): Likewise.
19563 (neon_vec_<US>shiftl_<mode>): Likewise.
19564 (neon_unpack<US>_<mode>): Likewise.
19565 (neon_vec_<US>mult_<mode>): Likewise.
19566 (vec_pack_trunc_<mode>): Likewise.
19567 (neon_vec_pack_trunk_<mode>): Likewise.
19568 (neon_vabd<mode>_2): Likewise.
19569 (neon_vabd<mode>_3): Likewise.
19570 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
19571 (thumb2_movsi_vfp): Likewise.
19572 (movdi_vfp): Likewise.
19573 (movdi_vfp_cortexa8): Likewise.
19574 (movhf_vfp_neon): Likewise.
19575 (movhf_vfp): Likewiwse.
19576 (movsf_vfp): Likewiwse.
19577 (thumb2_movsf_vfp): Likewiwse.
19578 (movdf_vfp): Likewise.
19579 (thumb2_movdf_vfp): Likewise.
19580 (movsfcc_vfp): Likewise.
19581 (thumb2_movsfcc_vfp): Likewise.
19582 (movdfcc_vfp): Likewise.
19583 (thumb2_movdfcc_vfp): Likewise.
19584 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
19585 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
19586 (v10_v2c): Likewise.
19587 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
19588 attribute change.
19589 (cortex_a15_neon_int_2): Likewise.
19590 (cortex_a15_neon_int_3): Likewise.
19591 (cortex_a15_neon_int_4): Likewise.
19592 (cortex_a15_neon_int_5): Likewise.
19593 (cortex_a15_neon_vqneg_vqabs): Likewise.
19594 (cortex_a15_neon_vmov): Likewise.
19595 (cortex_a15_neon_vaba): Likewise.
19596 (cortex_a15_neon_vaba_qqq): Likewise.
19597 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19598 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19599 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
19600 scalar_64_32_long_scalar): Likewise.
19601 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19602 (cortex_a15_neon_mla_qqq_8_16): Likewise.
19603 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19604 lotype_qdd_64_32_long): Likewise.
19605 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19606 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19607 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
19608 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19609 (cortex_a15_neon_shift_1): Likewise.
19610 (cortex_a15_neon_shift_2): Likewise.
19611 (cortex_a15_neon_shift_3): Likewise.
19612 (cortex_a15_neon_vshl_ddd): Likewise.
19613 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19614 (cortex_a15_neon_vsra_vrsra): Likewise.
19615 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
19616 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
19617 (cortex_a15_neon_fp_vmul_ddd): Likewise.
19618 (cortex_a15_neon_fp_vmul_qqd): Likewise.
19619 (cortex_a15_neon_fp_vmla_ddd): Likewise.
19620 (cortex_a15_neon_fp_vmla_qqq): Likewise.
19621 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
19622 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
19623 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19624 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19625 (cortex_a15_neon_bp_simple): Likewise.
19626 (cortex_a15_neon_bp_2cycle): Likewise.
19627 (cortex_a15_neon_bp_3cycle): Likewise.
19628 (cortex_a15_neon_vld1_1_2_regs): Likewise.
19629 (cortex_a15_neon_vld1_3_4_regs): Likewise.
19630 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19631 (cortex_a15_neon_vld2_4_regs): Likewise.
19632 (cortex_a15_neon_vld3_vld4): Likewise.
19633 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19634 (cortex_a15_neon_vst1_3_4_regs): Likewise.
19635 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
19636 (cortex_a15_neon_vst3_vst4): Likewise.
19637 (cortex_a15_neon_vld1_vld2_lane): Likewise.
19638 (cortex_a15_neon_vld3_vld4_lane" 10
19639 (cortex_a15_neon_vst1_vst2_lane): Likewise.
19640 (cortex_a15_neon_vst3_vst4_lane): Likewise.
19641 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
19642 (cortex_a15_neon_ldm_2): Likewise.0
19643 (cortex_a15_neon_stm_2): Likewise.
19644 (cortex_a15_neon_mcr): Likewise.
19645 (cortex_a15_neon_mcr_2_mcrr): Likewise.
19646 (cortex_a15_neon_mrc): Likewise.
19647 (cortex_a15_neon_mrrc): Likewise.
19648 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
19649 change.
19650 (cortex_a15_alu_shift): Likewise.
19651 (cortex_a15_alu_shift_reg): Likewise.
19652 (cortex_a15_mult32): Likewise.
19653 (cortex_a15_mult64): Likewise.
19654 (cortex_a15_block): Likewise.
19655 (cortex_a15_branch): Likewise.
19656 (cortex_a15_load1): Likewise.
19657 (cortex_a15_load3): Likewise.
19658 (cortex_a15_store1): Likewise.
19659 (cortex_a15_store3): Likewise.
19660 (cortex_a15_call): Likewise.
19661 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
19662 (cortex_a5_f2r): Likewise.
19663 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
19664 change.
19665 (cortex_a53_f2r): Likewise.
19666 * config/arm/cortex-a7.md
19667 (cortex_a7_branch): Update for attribute change.
19668 (cortex_a7_call): Likewise.
19669 (cortex_a7_alu_imm): Likewise.
19670 (cortex_a7_alu_reg): Likewise.
19671 (cortex_a7_alu_shift): Likewise.
19672 (cortex_a7_mul): Likewise.
19673 (cortex_a7_load1): Likewise.
19674 (cortex_a7_store1): Likewise.
19675 (cortex_a7_load2): Likewise.
19676 (cortex_a7_store2): Likewise.
19677 (cortex_a7_load3): Likewise.
19678 (cortex_a7_store3): Likewise.
19679 (cortex_a7_load4): Likewise.
19680 (cortex_a7_store4): Likewise.
19681 (cortex_a7_fpalu): Likewise.
19682 (cortex_a7_fconst): Likewise.
19683 (cortex_a7_fpmuls): Likewise.
19684 (cortex_a7_neon_mul): Likewise.
19685 (cortex_a7_fpmacs): Likewise.
19686 (cortex_a7_neon_mla: Likewise.
19687 (cortex_a7_fpmuld: Likewise.
19688 (cortex_a7_fpmacd: Likewise.
19689 (cortex_a7_fpfmad: Likewise.
19690 (cortex_a7_fdivs: Likewise.
19691 (cortex_a7_fdivd: Likewise.
19692 (cortex_a7_r2f: Likewise.
19693 (cortex_a7_f2r: Likewise.
19694 (cortex_a7_f_flags: Likewise.
19695 (cortex_a7_f_loads: Likewise.
19696 (cortex_a7_f_loadd: Likewise.
19697 (cortex_a7_f_stores: Likewise.
19698 (cortex_a7_f_stored: Likewise.
19699 (cortex_a7_neon): Likewise.
19700 * config/arm/cortex-a8-neon.md
19701 (cortex_a8_neon_mrc): Update for attribute change.
19702 (cortex_a8_neon_mrrc): Likewise.
19703 (cortex_a8_neon_int_1): Likewise.
19704 (cortex_a8_neon_int_2): Likewise.
19705 (cortex_a8_neon_int_3): Likewise.
19706 (cortex_a8_neon_int_4): Likewise.
19707 (cortex_a8_neon_int_5): Likewise.
19708 (cortex_a8_neon_vqneg_vqabs): Likewise.
19709 (cortex_a8_neon_vmov): Likewise.
19710 (cortex_a8_neon_vaba): Likewise.
19711 (cortex_a8_neon_vaba_qqq): Likewise.
19712 (cortex_a8_neon_vsma): Likewise.
19713 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19714 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19715 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19716 long_scalar): Likewise.
19717 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19718 (cortex_a8_neon_mla_qqq_8_16): Likewise.
19719 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19720 long_scalar_qdd_64_32_long): Likewise.
19721 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19722 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19723 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
19724 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19725 (cortex_a8_neon_shift_1): Likewise.
19726 (cortex_a8_neon_shift_2): Likewise.
19727 (cortex_a8_neon_shift_3): Likewise.
19728 (cortex_a8_neon_vshl_ddd): Likewise.
19729 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19730 (cortex_a8_neon_vsra_vrsra): Likewise.
19731 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
19732 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
19733 (cortex_a8_neon_fp_vsum): Likewise.
19734 (cortex_a8_neon_fp_vmul_ddd): Likewise.
19735 (cortex_a8_neon_fp_vmul_qqd): Likewise.
19736 (cortex_a8_neon_fp_vmla_ddd): Likewise.
19737 (cortex_a8_neon_fp_vmla_qqq): Likewise.
19738 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
19739 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
19740 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19741 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19742 (cortex_a8_neon_bp_simple): Likewise.
19743 (cortex_a8_neon_bp_2cycle): Likewise.
19744 (cortex_a8_neon_bp_3cycle): Likewise.
19745 (cortex_a8_neon_ldr): Likewise.
19746 (cortex_a8_neon_str): Likewise.
19747 (cortex_a8_neon_vld1_1_2_regs): Likewise.
19748 (cortex_a8_neon_vld1_3_4_regs): Likewise.
19749 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19750 (cortex_a8_neon_vld2_4_regs): Likewise.
19751 (cortex_a8_neon_vld3_vld4): Likewise.
19752 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19753 (cortex_a8_neon_vst1_3_4_regs): Likewise.
19754 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
19755 (cortex_a8_neon_vst3_vst4): Likewise.
19756 (cortex_a8_neon_vld1_vld2_lane): Likewise.
19757 (cortex_a8_neon_vld3_vld4_lane): Likewise.
19758 (cortex_a8_neon_vst1_vst2_lane): Likewise.
19759 (cortex_a8_neon_vst3_vst4_lane): Likewise.
19760 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
19761 (cortex_a8_neon_mcr): Likewise.
19762 (cortex_a8_neon_mcr_2_mcrr): Likewise.
19763 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
19764 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
19765 change.
19766 (ca9_neon_mrrc): Likewise.
19767 (cortex_a9_neon_int_1): Likewise.
19768 (cortex_a9_neon_int_2): Likewise.
19769 (cortex_a9_neon_int_3): Likewise.
19770 (cortex_a9_neon_int_4): Likewise.
19771 (cortex_a9_neon_int_5): Likewise.
19772 (cortex_a9_neon_vqneg_vqabs): Likewise.
19773 (cortex_a9_neon_vmov): Likewise.
19774 (cortex_a9_neon_vaba): Likewise.
19775 (cortex_a9_neon_vaba_qqq): Likewise.
19776 (cortex_a9_neon_vsma): Likewise.
19777 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19778 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
19779 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
19780 long_scalar): Likewise.
19781 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
19782 (cortex_a9_neon_mla_qqq_8_16): Likewise.
19783 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
19784 long_scalar_qdd_64_32_long): Likewise.
19785 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
19786 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
19787 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
19788 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
19789 (cortex_a9_neon_shift_1): Likewise.
19790 (cortex_a9_neon_shift_2): Likewise.
19791 (cortex_a9_neon_shift_3): Likewise.
19792 (cortex_a9_neon_vshl_ddd): Likewise.
19793 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
19794 (cortex_a9_neon_vsra_vrsra): Likewise.
19795 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
19796 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
19797 (cortex_a9_neon_fp_vsum): Likewise.
19798 (cortex_a9_neon_fp_vmul_ddd): Likewise.
19799 (cortex_a9_neon_fp_vmul_qqd): Likewise.
19800 (cortex_a9_neon_fp_vmla_ddd): Likewise.
19801 (cortex_a9_neon_fp_vmla_qqq): Likewise.
19802 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
19803 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
19804 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
19805 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
19806 (cortex_a9_neon_bp_simple): Likewise.
19807 (cortex_a9_neon_bp_2cycle): Likewise.
19808 (cortex_a9_neon_bp_3cycle): Likewise.
19809 (cortex_a9_neon_ldr): Likewise.
19810 (cortex_a9_neon_str): Likewise.
19811 (cortex_a9_neon_vld1_1_2_regs): Likewise.
19812 (cortex_a9_neon_vld1_3_4_regs): Likewise.
19813 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
19814 (cortex_a9_neon_vld2_4_regs): Likewise.
19815 (cortex_a9_neon_vld3_vld4): Likewise.
19816 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
19817 (cortex_a9_neon_vst1_3_4_regs): Likewise.
19818 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
19819 (cortex_a9_neon_vst3_vst4): Likewise.
19820 (cortex_a9_neon_vld1_vld2_lane): Likewise.
19821 (cortex_a9_neon_vld3_vld4_lane): Likewise.
19822 (cortex_a9_neon_vst1_vst2_lane): Likewise.
19823 (cortex_a9_neon_vst3_vst4_lane): Likewise.
19824 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
19825 (cortex_a9_neon_mcr): Likewise.
19826 (cortex_a9_neon_mcr_2_mcrr): Likewise.
19827 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
19828 (cortex_a9_fps): Likewise.
19829 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
19830 change.
19831 (cortex_m4_fmuls): Likewise.
19832 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
19833 change.
19834 (cortex_r4_mrc): Likewise.
19835 * config/arm/iterators.md: Update comment referring to neon_type.
19836 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
19837 (iwmmxt_movsi_insn): Likewise.
19838 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
19839 attribute change.
19840 (pj4_core_to_vfp): Likewise.
19841 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
19842 attribute change.
19843 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
19844 (vfp_fstore): Likewise.
19845 * doc/md.texi: Change references to neon_type to refer to type.
19846
19847 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19848
19849 * tree.h (DECL_BUILT_IN): Fix typo in comment.
19850
19851 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
19852
19853 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
19854 lglobl if not weak.
19855
19856 2013-09-04 Easwaran Raman <eraman@google.com>
19857
19858 PR middle-end/57370
19859 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
19860 (build_and_add_sum): Use it.
19861 (appears_later_in_bb): Simplify code.
19862
19863 2013-09-04 Teresa Johnson <tejohnson@google.com>
19864
19865 * dumpfile.c (dump_finish): Don't close stderr/stdout.
19866
19867 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
19868
19869 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
19870
19871 2013-09-04 Jan Hubicka <jh@suse.cz>
19872
19873 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
19874 * ipa-devirt.c: Include diganostic.h
19875 (odr_type_d): Add types and types_set.
19876 (hash_type_name): Work for types with vtables during LTO.
19877 (odr_hasher::remove): Fix comment; destroy types_set.
19878 (add_type_duplicate): New function,
19879 (get_odr_type): Use it.
19880 (dump_type_inheritance_graph): Dump type duplicates.
19881 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
19882 graph.
19883 * tree.c (types_same_for_odr): Give exact answers on types with
19884 virtual tables.
19885
19886 2013-09-04 Dodji Seketeli <dodji@redhat.com>
19887
19888 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
19889 explaining their differences.
19890
19891 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
19892
19893 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
19894
19895 2013-09-03 Jeff Law <law@redhat.com>
19896
19897 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
19898 when not threading through a joiner block. Pass joiner/no joiner
19899 state to register_jump_thread.
19900 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
19901 state from argument rather than implying on path length.
19902 Dump the entire jump thread path into debugging dump.
19903 * tree-flow.h (register_jump_thread): Update prototype.
19904
19905 2013-08-29 Xinliang David Li <davidxl@google.com>
19906
19907 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19908 Remove a trivial gcc_assert.
19909
19910 2013-08-29 Xinliang David Li <davidxl@google.com>
19911
19912 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
19913 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
19914 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19915 Delay base decl alignment adjustment.
19916 * tree-vectorizer.c (vect_destroy_datarefs): New function.
19917 * tree-vectorizer.h: New data structure.
19918 (set_dr_misalignment): New function.
19919 (dr_misalignment): Ditto.
19920 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
19921 (vectorizable_load): Ditto.
19922 (ensure_base_align): New function.
19923 (vectorize_loops): Add dbg_cnt support.
19924 (execute_vect_slp): Ditto.
19925 * dbgcnt.def: New debug counter.
19926 * Makefile: New dependency.
19927
19928 2013-09-03 Meador Inge <meadori@codesourcery.com>
19929
19930 Revert:
19931
19932 2013-08-30 Meador Inge <meadori@codesourcery.com>
19933
19934 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
19935
19936 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
19937
19938 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
19939 function descriptor.
19940
19941 2013-09-03 Richard Biener <rguenther@suse.de>
19942
19943 * tree-affine.c (add_elt_to_tree): Fix association issue,
19944 avoid useless converts and make sure to always return a
19945 properly typed result.
19946
19947 2013-09-03 Richard Biener <rguenther@suse.de>
19948
19949 PR middle-end/57656
19950 * fold-const.c (negate_expr_p): Fix division case.
19951 (negate_expr): Likewise.
19952
19953 2013-09-03 Richard Biener <rguenther@suse.de>
19954
19955 PR lto/58285
19956 * tree-streamer-out.c: Include tm.h.
19957 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
19958
19959 2013-09-03 Jan Hubicka <jh@suse.cz>
19960
19961 * tree-profile.c (tree_profiling): Cleanup CFG when done.
19962
19963 2013-09-03 Alan Modra <amodra@gmail.com>
19964
19965 * config.gcc (powerpc*-*-linux*): Add support for little-endian
19966 multilibs to big-endian target and vice versa.
19967 * config/rs6000/t-linux64: Use := assignment on all vars.
19968 (MULTILIB_EXTRA_OPTS): Remove fPIC.
19969 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
19970 * config/rs6000/t-linux64le: New file.
19971 * config/rs6000/t-linux64bele: New file.
19972 * config/rs6000/t-linux64lebe: New file.
19973
19974 2013-09-02 Jan Hubicka <jh@suse.cz>
19975
19976 * ipa-inline-transform.c (inline_transform): Do not
19977 optimize_inline_calls when not optimizing.
19978
19979 2013-09-02 Jan Hubicka <jh@suse.cz>
19980
19981 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
19982 duplicated nodes for assembler names.
19983 * symtab.c (symtab_unregister_node): Do not attempt to unlink
19984 hard registers from assembler name hash.
19985
19986 2013-09-02 Jan Hubicka <jh@suse.cz>
19987
19988 * ipa-split.c (execute_split_functions): Split externally visible
19989 functions called once.
19990
19991 2013-09-02 Martin Jambor <mjambor@suse.cz>
19992
19993 PR ipa/58106
19994 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
19995 linked list. When finding the correct duplicate, also consider also
19996 the caller in additon to its inlined_to node.
19997
19998 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
19999
20000 * config/aarch64/aarch64-simd-builtins.def
20001 (dup_lane_scalar): Remove.
20002 * config/aarch64/aarch64-simd.md
20003 (aarch64_simd_dup): Add 'w->w' alternative.
20004 (aarch64_dup_lane<mode>): Allow for VALL.
20005 (aarch64_dup_lane_scalar<mode>): Remove.
20006 (aarch64_dup_lane_<vswap_width_name><mode>): New.
20007 (aarch64_get_lane_signed<mode>): Add w->w altenative.
20008 (aarch64_get_lane_unsigned<mode>): Likewise.
20009 (aarch64_get_lane<mode>): Likewise.
20010 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
20011 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
20012 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
20013 (VCON): Change container of V2SF.
20014 (vswap_width_name): Likewise.
20015 * config/aarch64/arm_neon.h
20016 (__aarch64_vdup_lane_any): New.
20017 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20018 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
20019 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
20020
20021 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
20022
20023 PR middle-end/56382
20024 * expr.c (emit_move_complex): Do not move complex FP values as parts if
20025 the source or the destination is a single hard register.
20026
20027 2013-09-02 Richard Biener <rguenther@suse.de>
20028
20029 PR middle-end/57511
20030 * tree-scalar-evolution.c (instantiate_scev_name): Allow
20031 non-linear SCEVs.
20032
20033 2013-09-02 Richard Biener <rguenther@suse.de>
20034
20035 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
20036 arithmetic to sizetype.
20037
20038 2013-09-02 Bin Cheng <bin.cheng@arm.com>
20039
20040 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
20041 Find auto-increment use both before and after candidate.
20042
20043 2013-09-02 Marek Polacek <polacek@redhat.com>
20044
20045 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
20046
20047 2013-09-01 Jan Hubicka <jh@suse.cz>
20048
20049 * Makefile.in: Add ipa-profile.o
20050 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
20051 * cgraph.c (struct cgraph_propagate_frequency_data,
20052 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
20053 ipa-profile.c; replace cgraph_ by ipa_ prefix.
20054 * cgraph.h (cgraph_propagate_frequency): Remove.
20055 * ipa-inline-analysis.c: Include ipa-utils.h;
20056 drop duplicated cfgloop.h.
20057 (inline_update_callee_summaries): Update.
20058 * ipa-profile.c: New file.
20059 * ipa-utils.h (ipa_propagate_frequency): Declare.
20060 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
20061 data-streamer.h, value-prof.h.
20062 (symtab_remove_unreachable_nodes): Update profile.
20063 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
20064 account_time_size, cmp_counts, dump_histogram,
20065 ipa_profile_generate_summary, ipa_profile_write_summary,
20066 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
20067 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
20068 Move to ipa-profile.c.
20069
20070 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
20071
20072 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
20073
20074 2013-09-01 Jan Hubicka <jh@suse.cz>
20075
20076 * common.opt (fdevirtualize-speculatively): New function.
20077 * invoke.texi (fdevirtualize-speculatively): Document.
20078 * ipa-devirt.c: Include ipa-inline.h
20079 (likely_target_p): New function.
20080 (ipa_devirt): New function.
20081 (gate_ipa_devirt): New function.
20082 (pass_data_ipa_devirt): New static var.
20083 (pass_ipa_devirt): Likewise.
20084 (make_pass_ipa_devirt): New function.
20085 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
20086 (common_handle_option): Disable devirtualization when
20087 value range profiling is available.
20088 * passes.def (pass_ipa_devirt): Add.
20089 * timever.def (TV_IPA_DEVIRT): New timevar.
20090 * tree-pass.h (make_pass_ipa_devirt):
20091
20092 2013-09-01 Iain Sandoe <iain@codesourcery.com>
20093
20094 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
20095 include sanitize(undefined).
20096
20097 2013-08-31 Diego Novillo <dnovillo@google.com>
20098
20099 * Makefile.in (TREE_CORE_H): Define.
20100 (TREE_H): Use.
20101 (GTFILES): Add tree-core.h.
20102 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
20103 size the array.
20104 * tree-core.h: New file.
20105 Move all data structures, enum, typedefs, global
20106 declarations and constants from ...
20107 * tree.h: ... here.
20108
20109 2013-08-31 Jan Hubicka <jh@suse.cz>
20110
20111 * bulitins.c (expand_builtin): Do not early exit for gcov
20112 instrumented functions.
20113
20114 2013-08-31 Marek Polacek <polacek@redhat.com>
20115
20116 * ubsan.c: Include tm_p.h.
20117
20118 2013-08-31 Jan Hubicka <jh@suse.cz>
20119
20120 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
20121 warning.
20122
20123 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
20124 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
20125 * tree-cfg.c (verify_gimple_label): ... here.
20126 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
20127 (ipa_merge_profiles): New function.
20128 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
20129 (lto_input_function_body): Likewise.
20130 * ipa-utils.h (ipa_merge_profiles): Declare.
20131 * lto-streamer.h (lto_input_function_body): Update prototype.
20132 (emit_label_in_global_context_p): Remove.
20133 * lto-symtab.c: Include ipa-utils.h
20134 (lto_cgraph_replace_node): Use ipa_merge_profiles.
20135
20136 2013-08-31 Jan Hubicka <jh@suse.cz>
20137
20138 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
20139
20140 2013-08-31 Jan Hubicka <jh@suse.cz>
20141
20142 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
20143
20144 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
20145
20146 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
20147 "cmp" RTX before signed_comparison_operator check to account
20148 for "code" changes.
20149
20150 2013-08-30 Jan Hubicka <jh@suse.cz>
20151
20152 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
20153 (detect_type_change_1): Rename to ...
20154 (detect_type_change): ... this one; early return on non-polymorphic
20155 types.
20156 (detect_type_change_ssa): Add comp_type parameter; update
20157 use of detect_type_change.
20158 (compute_complex_assign_jump_func): Add param_type parameter;
20159 update use of detect_type_change_ssa.
20160 (compute_complex_ancestor_jump_func): Likewise.
20161 (ipa_get_callee_param_type): New function.
20162 (ipa_compute_jump_functions_for_edge): Compute parameter type;
20163 update calls to the jump function computation functions.
20164
20165 2013-08-30 Teresa Johnson <tejohnson@google.com>
20166 Steven Bosscher <steven@gcc.gnu.org>
20167
20168 * cfgrtl.c (fixup_new_cold_bb): New routine.
20169 (commit_edge_insertions): Invoke fixup_partitions.
20170 (find_partition_fixes): New routine.
20171 (fixup_partitions): Ditto.
20172 (verify_hot_cold_block_grouping): Update comments.
20173 (rtl_verify_edges): Invoke find_partition_fixes.
20174 (rtl_verify_bb_pointers): Update comments.
20175 (rtl_verify_bb_layout): Ditto.
20176 * basic-block.h (probably_never_executed_edge_p): Declare.
20177 (fixup_partitions): Ditto.
20178 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
20179 * bb-reorder.c (sanitize_hot_paths): New function.
20180 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
20181 sanitize_hot_paths.
20182 * predict.c (probably_never_executed_edge_p): New routine.
20183 * cfg.c (check_bb_profile): Add partition insanity warnings.
20184
20185 2013-08-30 Meador Inge <meadori@codesourcery.com>
20186
20187 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
20188
20189 2013-08-30 Marek Polacek <polacek@redhat.com>
20190
20191 * Makefile.in (ubsan.o): Add.
20192 (c-family/c-ubsan.o): Add.
20193 (builtins.o): Add ubsan.h dependency.
20194 * ubsan.h: New file.
20195 * ubsan.c: New file.
20196 * common.opt: Add -fsanitize=undefined option.
20197 (flag_sanitize): Add variable.
20198 (fsanitize=): Add option. Add Driver.
20199 (fsanitize=thread): Remove option.
20200 (fsanitize=address): Likewise.
20201 (static-libubsan): New option.
20202 * doc/invoke.texi: Document the new flag and -static-libubsan.
20203 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
20204 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
20205 * builtin-attrs.def (ATTR_COLD): Define.
20206 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20207 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
20208 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
20209 * flag-types.h (sanitize_code): New enum.
20210 * opts.c (common_handle_option): Parse command line arguments
20211 of -fsanitize=. Add -fsanitize=unreachable option.
20212 * varasm.c (get_variable_section): Adjust.
20213 (assemble_noswitch_variable): Likewise.
20214 (assemble_variable): Likewise.
20215 (output_constant_def_contents): Likewise.
20216 (categorize_decl_for_section): Likewise.
20217 (place_block_symbol): Likewise.
20218 (output_object_block): Likewise.
20219 * builtins.def: Likewise.
20220 * toplev.c (compile_file): Likewise.
20221 (process_options): Likewise.
20222 * cppbuiltin.c: Likewise.
20223 * tsan.c (tsan_pass): Likewise.
20224 (tsan_gate): Likewise.
20225 (tsan_gate_O0): Likewise.
20226 * cfgexpand.c (partition_stack_vars): Likewise.
20227 (expand_stack_vars): Likewise.
20228 (defer_stack_allocation): Likewise.
20229 (expand_used_vars): Likewise.
20230 * cfgcleanup.c (old_insns_match_p): Likewise.
20231 * asan.c (asan_finish_file): Likewise.
20232 (asan_instrument): Likewise.
20233 (gate_asan): Likewise.
20234 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
20235 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
20236 (asan_global_struct): Use pointer_sized_int_node instead
20237 calling build_nonstandard_integer_type.
20238 (initialize_sanitizer_builtins): Likewise.
20239 (asan_finish_file): Likewise.
20240 * gcc.c: Document %{%:function(args):X}.
20241 (static_spec_functions): Add sanitize.
20242 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
20243 store funcval != NULL there.
20244 (do_spec_1): Adjust handle_spec_function caller.
20245 (handle_braces): Allow %:function(args) as condition.
20246 (sanitize_spec_function): New function.
20247 (ADD_STATIC_LIBUBSAN_LIBS): Define.
20248 (LIBUBSAN_SPEC): Likewise.
20249 (LIBUBSAN_EARLY_SPEC): Likewise.
20250 (SANITIZER_SPEC): Handle libubsan.
20251 (SANITIZER_EARLY_SPEC): Likewise.
20252 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
20253 instead of fsanitize=address.
20254 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
20255 instead of fsanitize=address*.
20256 * builtins.c: Include ubsan.h.
20257 (fold_builtin_0): Instrument __builtin_unreachable.
20258 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
20259 instead of flag_asan.
20260 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
20261 (pointer_sized_int_node): Define.
20262 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
20263
20264 2013-08-30 Mike Stump <mikestump@comcast.net>
20265
20266 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
20267 with RE patterns.
20268
20269 2013-08-29 Jan Hubicka <jh@suse.cz>
20270
20271 * cgraph.c (cgraph_function_body_availability): Handle weakref
20272 correctly.
20273 * passes.def: Remove pass_fixup_cfg.
20274 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
20275 track when we need to remove functions.
20276 (gate_ipa_inline): Execute inlining always; add comment why.
20277 (pass_data_ipa_inline): Remove TODO_remove_functions.
20278 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
20279 do not produce summaries.
20280 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
20281 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
20282 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
20283 constant pool and vtable.
20284
20285 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
20286
20287 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
20288 New arm_neon.h's internal macros to specify 64-bit constants.
20289 Avoid using stdint.h's macros.
20290
20291 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
20292
20293 * recog.c (verify_changes): Verify that changes[i].old is non-zero
20294 before applying REG_P.
20295
20296 2013-08-30 Jakub Jelinek <jakub@redhat.com>
20297
20298 PR tree-optimization/58277
20299 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
20300 after seeing too many stmts with vdef in between dombb and current
20301 bb, invalidate everything.
20302
20303 2013-08-30 Richard Biener <rguenther@suse.de>
20304
20305 * fold-const.c (fold_single_bit_test): Fix overflow test.
20306
20307 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
20308
20309 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
20310 and which can live in a register, always retrieve the value on entry.
20311 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
20312 passed by invisible reference specially.
20313 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
20314 (vt_add_function_parameter): Correctly deal with a parameter passed by
20315 invisible reference.
20316
20317 2013-08-30 Jan Hubicka <jh@suse.cz>
20318
20319 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
20320
20321 2013-08-30 Richard Biener <rguenther@suse.de>
20322
20323 PR tree-optimization/58228
20324 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
20325 allow invariant loads in nested loop vectorization.
20326
20327 2013-08-30 Richard Biener <rguenther@suse.de>
20328
20329 PR tree-optimization/58223
20330 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
20331 (has_anti_or_output_dependence): ... this and adjust to also
20332 look for output dependences.
20333 (mark_nodes_having_upstream_mem_writes): Adjust.
20334 (rdg_flag_uses): Likewise.
20335
20336 2013-08-30 Richard Biener <rguenther@suse.de>
20337
20338 PR tree-optimization/58010
20339 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20340 assert that we have a loop-closed PHI.
20341
20342 2013-08-29 Jan Hubicka <jh@suse.cz>
20343
20344 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
20345 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
20346 * lto-section-in.c (lto_free_function_in_decl_state): New function.
20347 (lto_free_function_in_decl_state_for_node): New function.
20348
20349 2013-08-29 Xinliang David Li <davidxl@google.com>
20350
20351 * loop-unroll.c (report_unroll_peel): Minor message change.
20352 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
20353 Emit alignment peeling message with default -fopt-info.
20354 (vect_loop_versioning): Emit loop version info message.
20355 * tree-vectorizer.c (vectorize_loops): Minor message change.
20356 (execute_vect_slp): Ditto.
20357
20358 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
20359
20360 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
20361 of the clone from the DECL_NAME of the original function.
20362
20363 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
20364
20365 * passes.c (register_pass): Add overload.
20366 * tree-pass.h (register_pass): Forward declare it. Add comment.
20367
20368 2013-08-29 Jan Hubicka <jh@suse.cz>
20369
20370 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
20371 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
20372 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
20373 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20374 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
20375 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
20376 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
20377 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
20378
20379 2013-08-29 Teresa Johnson <tejohnson@google.com>
20380
20381 * dumpfile.c (dump_loc): Output column number.
20382 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
20383 * doc/invoke.texi: Document optall -fopt-info flag.
20384 * profile.c (read_profile_edge_counts): Use new dump framework.
20385 (compute_branch_probabilities): Ditto.
20386 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
20387 when pass not in any opt group.
20388 * pass_manager.h (pass_manager::get_pass_profile): New method.
20389 * value-prof.c (check_counter): Use new dump framework.
20390 (check_ic_target): Ditto.
20391 * coverage.c (get_coverage_counts): Ditto.
20392 (coverage_init): Setup new dump framework.
20393
20394 2013-08-29 Richard Biener <rguenther@suse.de>
20395
20396 PR tree-optimization/58246
20397 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
20398 handle the dominance check inside a basic-block.
20399
20400 2013-08-29 Richard Biener <rguenther@suse.de>
20401
20402 PR middle-end/57287
20403 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
20404 of default defs that appear in abnormal PHI nodes.
20405
20406 2013-08-29 Richard Biener <rguenther@suse.de>
20407
20408 PR tree-optimization/57685
20409 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
20410 single-use operands to avoid exponential complexity.
20411
20412 2013-08-28 Dehao Chen <dehao@google.com>
20413
20414 * ipa-inline.c (edge_badness): Fix integer underflow.
20415
20416 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
20417
20418 * gtm-builtins.def (_ITM_free): Declare leaf.
20419
20420 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20421
20422 PR target/58067
20423 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
20424 (*tls_local_dynamic_base_64_largepic): Likewise.
20425 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
20426 Remove predicate from call operand.
20427 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
20428 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
20429
20430 2013-08-28 Jeff Law <law@redhat.com>
20431
20432 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
20433 checks for the number of predecessors and successors allowed.
20434 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
20435 which require copying a joiner block if there is a request which
20436 is a subpath that requires no joiner block copying.
20437
20438 2013-08-28 Jan Hubicka <jh@suse.cz>
20439
20440 * lto-streamer-out.c (DFS_write_tree_body): Drop
20441 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
20442 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
20443 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
20444 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
20445 Do not read DECL_ERROR_ISSUED.
20446 (unpack_ts_decl_with_vis_value_fields): Do not read
20447 DECL_DEFER_OUTPUT.
20448 (lto_input_ts_binfo_tree_pointers): Do not read
20449 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
20450 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
20451 write DECL_ERROR_ISSUED..
20452 (pack_ts_decl_with_vis_value_fields): Do not write
20453 DECL_DEFER_OUTPUT.
20454 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
20455 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
20456 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
20457 * tree.h (tree_decl_common): Update comment.
20458 (DECL_ERROR_ISSUED): Remove.
20459
20460 2013-08-28 Jakub Jelinek <jakub@redhat.com>
20461
20462 PR middle-end/58257
20463 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
20464
20465 2013-08-28 Jan Hubicka <jh@suse.cz>
20466
20467 * builtins.def (free): Declare leaf.
20468
20469 2013-08-27 David Malcolm <dmalcolm@redhat.com>
20470
20471 * gdbhooks.py: New.
20472 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
20473 * configure: Regenerate.
20474
20475 2013-08-27 Martin Jambor <mjambor@suse.cz>
20476
20477 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
20478 (ipa_ancestor_jf_data): Likewise.
20479 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
20480 (ipa_get_jf_pass_through_type_preserved): New function.
20481 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
20482 (ipa_get_jf_ancestor_type_preserved): New function.
20483 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
20484 (ipa_get_jf_ancestor_result): Likewise.
20485 (propagate_vals_accross_pass_through): Use
20486 ipa_get_jf_pass_through_result to do all the value mappings.
20487 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
20488 type_preserved flag.
20489 (ipa_set_jf_cst_copy): New function.
20490 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
20491 (ipa_set_jf_arith_pass_through): Likewise.
20492 (ipa_set_ancestor_jf): Likewise.
20493 (compute_complex_assign_jump_func): Set type_preserved instead of
20494 punting.
20495 (ipa_compute_jump_functions_for_edge): Likewise.
20496 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
20497 (update_jump_functions_after_inlining): Update type_preserved.
20498 Explicitely create jump functions when combining one with pass_through.
20499 (ipa_write_jump_function): Stream the type_preserved flags.
20500 (ipa_read_jump_function): Likewise.
20501
20502 2013-08-27 Jakub Jelinek <jakub@redhat.com>
20503 Aldy Hernandez <aldyh@redhat.com>
20504
20505 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
20506 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
20507 * function.h (struct function): Add has_force_vect_loops and
20508 has_simduid_loops.
20509 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
20510 * gimple.c (gimple_build_omp_critical): Add KIND argument and
20511 handle it.
20512 * gimple.def: Update CLAUSES comments.
20513 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
20514 (gimple_build_omp_for): Add argument to prototype.
20515 (gimple_omp_for_kind): New.
20516 (gimple_omp_for_set_kind): New.
20517 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
20518 GOVD_DATA_SHARE_CLASS.
20519 (enum omp_region_type): Add ORT_SIMD.
20520 (gimple_add_tmp_var): Handle ORT_SIMD.
20521 (gimplify_var_or_parm_decl): Same.
20522 (is_gimple_stmt): Same.
20523 (omp_firstprivatize_variable): Same.
20524 (omp_add_variable): Only use splay_tree_insert if lookup failed.
20525 (omp_notice_variable): Handle ORT_SIMD.
20526 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
20527 (omp_check_private): Handle ORT_SIMD.
20528 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20529 OMP_CLAUSE_SAFELEN.
20530 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
20531 Handle OMP_CLAUSE_LASTPRIVATE.
20532 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
20533 OMP_CLAUSE_SAFELEN.
20534 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
20535 (gimplify_expr): Handle OMP_SIMD.
20536 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
20537 (expand_GOMP_SIMD_VF): New.
20538 (expand_GOMP_SIMD_LAST_LANE): New.
20539 * internal-fn.def (GOMP_SIMD_LANE): New.
20540 (GOMP_SIMD_VF): New.
20541 (GOMP_SIMD_LAST_LANE): New.
20542 * omp-low.c: Include target.h.
20543 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
20544 OMP_CLAUSE_SAFELEN.
20545 (check_omp_nesting_restrictions): Same.
20546 (omp_max_vf): New.
20547 (lower_rec_simd_input_clauses): New.
20548 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
20549 OMP_CLAUSE_LINEAR.
20550 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
20551 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
20552 (expand_omp_build_assign): New.
20553 (expand_omp_for_init_counts): New.
20554 (expand_omp_for_init_vars): New.
20555 (extract_omp_for_update_vars): New.
20556 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
20557 and rewrite accordingly.
20558 (expand_omp_simd): New.
20559 (expand_omp_for): Use expand_omp_simd.
20560 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
20561 (lower_omp_for): Do not lower the body.
20562 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
20563 in their own loops.
20564 * tree-flow.h (find_omp_clause): Remove prototype.
20565 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
20566 forcing vectorization of the loop, or if flag_tree_vectorize.
20567 (gate_tree_if_conversion): Similarly.
20568 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
20569 gimple_build_omp_for.
20570 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
20571 * tree-parloops (create_parallel_loop): Pass kind argument to
20572 gimple_build_omp_for.
20573 * tree-pretty-print.c (dump_omp_clause): Add cases for
20574 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
20575 OMP_CLAUSE__SIMDUID_.
20576 (dump_generic_node): Handle OMP_SIMD.
20577 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
20578 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
20579 unroll OMP_SIMD loops here.
20580 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
20581 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
20582 loop->safelen.
20583 (vect_analyze_data_refs): Handle simd loops.
20584 * tree-vect-loop.c (vectorizable_live_operation): Handle
20585 IFN_GOMP_SIMD*.
20586 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
20587 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
20588 (vectorizable_load): Same.
20589 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
20590 (struct simduid_to_vf): New.
20591 (simduid_to_vf::hash): New.
20592 (simduid_to-vf::equal): New.
20593 (struct simd_array_to_simduid): New.
20594 (simd_array_to_simduid::hash): New.
20595 (simd_array_to_simduid::equal): New.
20596 (adjust_simduid_builtins): New.
20597 (struct note_simd_array_uses_struct): New.
20598 (note_simd_array_uses_cb): New.
20599 (note_simd_array_uses): New.
20600 (vectorize_loops): Handle simd hints and adjust simd builtins
20601 accordingly.
20602 * tree-vectorizer.h (struct _stmt_vec_info): Add
20603 simd_lane_access_p field.
20604 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
20605 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
20606 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
20607 (omp_clause_code_name): Same.
20608 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
20609 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
20610 * tree.def (OMP_SIMD): New entry.
20611 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
20612 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
20613 (OMP_CLAUSE_DECL): Adjust range for new clauses.
20614 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
20615 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
20616 (OMP_CLAUSE_LINEAR_STEP): New.
20617 (OMP_CLAUSE_SAFELEN_EXPR): New.
20618 (OMP_CLAUSE__SIMDUID__DECL): New.
20619 (find_omp_clause): New prototype.
20620
20621 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
20622
20623 * config/i386/driver-i386.c (host_detect_local_cpu): Update
20624 Haswell processor detection.
20625
20626 2013-08-27 Christian Widmer <shadow@umbrox.de>
20627
20628 PR target/57927
20629 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
20630 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
20631 AVX2 capable processors.
20632
20633 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
20634
20635 * config/aarch64/arm_neon.h: Replace all inline asm implementations
20636 of vget_low_* with implementations in terms of other intrinsics.
20637
20638 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
20639
20640 PR middle-end/57219
20641 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
20642 values to -1, 0 and 1.
20643
20644 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
20645
20646 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
20647 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
20648 (<optab><mode>3_insn): Remove.
20649 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
20650 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20651 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20652 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
20653 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
20654 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
20655 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
20656 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
20657 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
20658 (ror<mode>3_insn): Likewise.
20659 * config/aarch64/predicates.md (aarch64_simd_register): New.
20660
20661 2013-08-27 Richard Biener <rguenther@suse.de>
20662
20663 PR tree-optimization/57521
20664 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
20665 one edge is non-critical.
20666 (find_phi_replacement_condition): Make sure to use a non-critical
20667 edge. Cleanup and remove old bug workarounds.
20668 (bb_postdominates_preds): Remove.
20669 (if_convertible_loop_p_1): Do not compute post-dominators.
20670 (combine_blocks): Do not free post-dominators.
20671 (main_tree_if_conversion): Likewise.
20672 (pass_data_if_conversion): Add TODO_verify_ssa.
20673
20674 2013-08-27 DJ Delorie <dj@redhat.com>
20675
20676 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
20677
20678 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
20679
20680 * function.c (assign_parm_find_data_types): Set passed_mode and
20681 nominal_mode to the TYPE_MODE of nominal_type for the built
20682 pointer type in case of the struct-pass-by-reference.
20683
20684 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20685
20686 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
20687 (UINT16_TYPE): Change default to "unsigned int".
20688
20689 * config/avr/avr.opt (mfract-convert-truncate): New option.
20690 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
20691 is set, round negative fractional integers according to n1169
20692 when converting to integer types.
20693
20694 2013-08-26 Jan Hubicka <jh@suse.cz>
20695
20696 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
20697 methods can not be called indirectly when their address is not taken.
20698
20699 2013-08-26 Jan Hubicka <jh@suse.cz>
20700
20701 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
20702 ctor_for_folding.
20703
20704 2013-08-26 Jan Hubicka <jh@suse.cz>
20705
20706 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
20707 can be unshared.
20708
20709 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20710
20711 * reload.c (find_valid_class): Allow classes that do not include
20712 FIRST_PSEUDO_REGISTER - 1.
20713
20714 2013-08-26 Jan Hubicka <jh@suse.cz>
20715
20716 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
20717 fix edge count/frequency when speculation failed; fix type check
20718 for the direct call.
20719
20720 2013-08-26 Jan Hubicka <jh@suse.cz>
20721
20722 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
20723
20724 2013-08-26 Jan Hubicka <jh@suse.cz>
20725
20726 * ipa-inline-transform.c (inline_transform): Be ready for basic block
20727 to be changed by edge redirection.
20728
20729 2013-08-26 Jan Hubicka <jh@suse.cz>
20730
20731 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
20732 formating; add sanity check.
20733 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
20734 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
20735 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
20736 (resolve_noninline_speculation): Update callee keys, too.
20737
20738 2013-08-26 Jan Hubicka <jh@suse.cz>
20739
20740 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
20741 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
20742
20743 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
20744
20745 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
20746 into proper place.
20747
20748 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
20749
20750 * config/i386/i386.c (ix86_debug_options): Remove prototype.
20751 (x86_64_elf_select_section): Ditto.
20752 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
20753 arguments.
20754 (ix86_pass_by_reference): Ditto.
20755 (output_set_got): Ditto.
20756 (ix86_unary_operator_ok): Ditto.
20757 (ix86_expand_builtin): Ditto.
20758
20759 2013-08-23 Jan Hubicka <jh@suse.cz>
20760
20761 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
20762
20763 2013-08-23 Jan Hubicka <jh@suse.cz>
20764
20765 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
20766 (tree_decl_with_vis): Add FINAL field.
20767
20768 2013-08-23 Jeff Law <law@redhat.com>
20769
20770 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
20771 the debugging dump when the expression is fully redundant.
20772
20773 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20774
20775 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
20776 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
20777 * pretty-print.c (pp_formatted_text_data): Likewise.
20778 (pp_write_text_to_stream): Likewise.
20779 (pp_write_text_as_dot_label_to_stream): Likewise.
20780 (pp_append_r): Likewise.
20781 (pp_format): Likewise.
20782 (pp_flush): Likewise.
20783 (pp_clear_output_area): Likewise.
20784 (pp_append_text): Likewise.
20785 (pp_formatted_text): Likewise.
20786 (pp_remaining_character_count_for_line): Likewise.
20787 (pp_newline): Likewise.
20788 (pp_character): Likewise.
20789 (output_buffer::~output_buffer): Define.
20790 (pretty_printer::~pretty_printer): Destruct output buffer.
20791 * pretty-print.h (output_buffer::~output_buffer): Declare.
20792 (pretty_printer::~pretty_printer): Declare virtual.
20793
20794 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
20795
20796 PR other/57324
20797 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
20798 HOST_WIDE_INT_M1U): New macros.
20799 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
20800 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
20801 unsigned -1 for lshift.
20802 * cse.c (cse_insn): Likewise.
20803 * double-int.c (rshift_double, lshift_double): Likewise.
20804 * builtins.c (fold_builtin_bitop): Likewise.
20805 * combine.c (force_to_mode): Likewise.
20806 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
20807 * simplify-rtx.c (simplify_const_unary_operation,
20808 simplify_const_binary_operation): Likewise.
20809 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
20810 check_va_list_escapes): Likewise.
20811 * rtlanal.c (nonzero_bits1): Likewise.
20812 * expmed.c (expand_smod_pow2): Likewise.
20813 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
20814
20815 2013-08-23 Jan Hubicka <jh@suse.cz>
20816
20817 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
20818 as having address taken.
20819
20820 2013-08-23 Jan Hubicka <jh@suse.cz>
20821
20822 * ipa-utils.h (method_class_type): Declare.
20823 * ipa-devirt.c (method_class_type): Export.
20824
20825 * cgraphunit.c (analyze_functions): Do basic devirtualization;
20826 do not walk base classes of anonymous types.
20827
20828 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
20829
20830 PR rtl-optimization/58220
20831 PR regression/58221
20832 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
20833 handle SEQUENCE insns properly.
20834
20835 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
20836
20837 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
20838 definition.
20839 (pp_newline_and_indent): Likewise.
20840 (pp_separate_with): Likewise.
20841 * pretty-print.c (pp_newline_and_flush): Define.
20842 (pp_newline_and_indent): Likewise.
20843 (pp_separate_with): Likewise.
20844
20845 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20846
20847 PR target/58218
20848 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
20849 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
20850
20851 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
20852
20853 * config/i386/predicates.md (ext_sse_reg_operand): New.
20854 * config/i386/i386.md (*movti_internal): Use
20855 predicate to determine if EVEX is needed.
20856 (*movsi_internal): Ditto.
20857 (*movdf_internal): Ditto.
20858 (*movsf_internal): Ditto.
20859 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
20860
20861 2013-08-23 Jakub Jelinek <jakub@redhat.com>
20862
20863 PR tree-optimization/58209
20864 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
20865 (find_tail_calls): Give up for pointer result types if m is non-NULL.
20866 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
20867 emit POINTER_PLUS_EXPR.
20868 (create_tailcall_accumulator): For pointer result type accumulate in
20869 sizetype type.
20870
20871 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
20872
20873 * configure.ac: Add backslashes missing from the last change.
20874 * configure: Regenerate.
20875
20876 2013-08-22 Jan Hubicka <jh@susue.cz>
20877
20878 * ipa.c (function_and_variable_visibility): First remember function
20879 was global and then make it local.
20880
20881 2013-08-22 Julian Brown <julian@codesourcery.com>
20882
20883 * configure.ac: Add aarch64 to list of arches which use "nop" in
20884 debug_line test.
20885 * configure: Regenerate.
20886
20887 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20888
20889 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
20890 gnu_libc_has_function.
20891 * config/s390/tpf.h: Likewise.
20892
20893 2013-08-22 Jan Hubicka <jh@susue.cz>
20894
20895 * timevar.c (validate_phases): Add cast.
20896
20897 2013-08-22 Jan Hubicka <jh@susue.cz>
20898
20899 * timevar.c (validate_phases): Use size_t for memory.
20900 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
20901
20902 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
20903
20904 * pretty-print.h (output_buffer::output_buffer): Declare.
20905 (pretty_printer::pretty_printer): Likewise.
20906 (pp_construct): Remove.
20907 * pretty-print.c (output_buffer::output_buffer): Define.
20908 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
20909 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
20910 (print_gimple_expr): Likewise.
20911 (print_gimple_seq): Likewise.
20912 (gimple_dump_bb): Likewise.
20913 * sched-vis.c (dump_value_slim): Likewise.
20914 (dump_insn_slim): Likewise.
20915 (dump_rtl_slim): Likewise.
20916 (str_pattern_slim): Likewise.
20917 * tree-mudflap.c (mf_varname_tree): Likewise.
20918 * graph.c (print_graph_cfg): Likewise.
20919 (start_graph_dump): Likewise.
20920 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
20921 placement-new.
20922 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
20923 pretty printer initialization.
20924 * coretypes.h (diagnostic_context): Remove superflous type alias
20925 declaration.
20926 (pretty_printer): Likewise. Declare directly as a class.
20927 (pretty_print_info): Remove declaration as class.
20928 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
20929 and pp_clear_output_area.
20930 (asan_add_global): Likewise.
20931
20932 2013-08-22 Jan Hubicka <jh@suse.cz>
20933
20934 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
20935 * ipa-utils.h (update_type_inheritance_graph): Declare.
20936 (possible_polymorphic_call_target_p): Declare.
20937 (possible_polymorphic_call_target_p): New.
20938 * ipa-devirt.c: Update toplevel comments.
20939 (cached_polymorphic_call_targets): Move up.
20940 (odr_type_d): Move ID down.
20941 (polymorphic_type_binfo_p): Update comment.
20942 (odr_hasher::remove): Likewise;
20943 (get_odr_type): Set anonymous_namespace.
20944 (dump_odr_type): Dump it.
20945 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
20946 (maybe_record_node): Record node in cached_polymorphic_call_targets.
20947 (record_binfo): Add comment.
20948 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
20949 built.
20950 (devirt_node_removal_hook): Do not iCE when cache is freed.
20951 (possible_polymorphic_call_target_p): New predicate.
20952 (update_type_inheritance_graph): New function.
20953
20954 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
20955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20956 Sergey Lega <sergey.s.lega@intel.com>
20957 Anna Tikhonova <anna.tikhonova@intel.com>
20958 Ilya Tocar <ilya.tocar@intel.com>
20959 Andrey Turetskiy <andrey.turetskiy@intel.com>
20960 Ilya Verbin <ilya.verbin@intel.com>
20961 Kirill Yukhin <kirill.yukhin@intel.com>
20962 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20963
20964 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
20965 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
20966 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
20967 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
20968 (OPTION_MASK_ISA_AVX2_UNSET): Update.
20969 (OPTION_MASK_ISA_AVX512F_UNSET): New.
20970 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
20971 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
20972 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
20973 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
20974 OPT_mavx512pf, OPT_mavx512er cases.
20975 * config/i386/constraints.md (v): New constraint.
20976 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
20977 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
20978 (bit_AVX512CD): New.
20979 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20980 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
20981 * config/i386/i386-c.c (ix86_target_macros_internal):
20982 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
20983 __AVX512PF__.
20984 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
20985 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
20986 * config/i386/i386.c (regclass_map, dbx_register_map)
20987 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
20988 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
20989 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
20990 -mavx512pf options.
20991 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
20992 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
20993 -mavx512pf options. Fix formatting.
20994 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
20995 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
20996 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
20997 -mavx512cd, -mavx512pf options.
20998 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
20999 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
21000 (ix86_preferred_output_reload_class): Replace SSE_REGS with
21001 ALL_SSE_REGS.
21002 (ix86_hard_regno_mode_ok): Support 512-bit registers.
21003 (ix86_set_reg_reg_cost): Ditto.
21004 (x86_order_regs_for_local_alloc): Ditto.
21005 (MAX_VECT_LEN): Extend to 64-byte.
21006 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
21007 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
21008 (TARGET_AVX512ER, TARGET_AVX512CD): New.
21009 (BIGGEST_ALIGNMENT): Extend to 512-bits.
21010 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
21011 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
21012 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
21013 (SSE_REG_MODE_P): Support new modes.
21014 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
21015 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
21016 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
21017 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
21018 (REG_CLASS_CONTENTS): Add new registers.
21019 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
21020 (EXT_REX_SSE_REGNO_P): New.
21021 (HI_REGISTER_NAMES): Add new registers.
21022 * config/i386/i386.md: Define constants for new registers.
21023 (mode): Add new 512-bit modes.
21024 (prefix): Support evex prefix.
21025 (isa): Support avx512f, noavx512f, fma_avx512f.
21026 (ssemodesuffix): Add new 512-bit modes.
21027 (movxi): New.
21028 (*movxi_internal_avx512f): Ditto.
21029 (*movdi_internal): Replace constraint "x" with the new constraint "v".
21030 Support MODE_XI.
21031 (*movsi_internal): Likewise.
21032 (*movdf_internal): Likewise.
21033 (*movsf_internal): Likewise.
21034 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
21035 (<code><mode>3): Likewise.
21036 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
21037 New.
21038 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
21039 with the new constraint "v".
21040 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
21041 modes.
21042 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
21043 with the new constraint "v".
21044 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
21045 (<sse2>_storedqu<avxsizesuffix>): Likewise.
21046 (*<plusminus_insn><mode>3): Likewise.
21047 (<sse>_vm<plusminus_insn><mode>3): Likewise.
21048 (*mul<mode>3): Likewise.
21049 (<sse>_vmmul<mode>3): Likewise.
21050 (<sse>_div<mode>3): Likewise.
21051 (<sse>_vmdiv<mode>3): Likewise.
21052 (<sse>_sqrt<mode>2): Likewise.
21053 (<sse>_vmsqrt<mode>2): Likewise.
21054 (*<code><mode>3_finite): Likewise.
21055 (*<code><mode>3) <smaxmin>: Likewise.
21056 (<sse>_vm<code><mode>3): Likewise.
21057 (*<code><mode>3) <any_logic>: Likewise.
21058 (*fma_fmadd_<mode>): Likewise.
21059 (*fma_fmsub_<mode>): Likewise.
21060 (*fma_fnmadd_<mode>): Likewise.
21061 (*fma_fnmsub_<mode>): Likewise.
21062 (*fma_fmaddsub_<mode>): Likewise.
21063 (*fma_fmsubadd_<mode>): Likewise.
21064 (*fmai_fmadd_<mode>): Likewise.
21065 (*fmai_fmsub_<mode>): Likewise.
21066 (*fmai_fnmadd_<mode>): Likewise.
21067 (*fmai_fnmsub_<mode>): Likewise.
21068 (sse_cvtsi2ss): Likewise.
21069 (sse_cvtsi2ssq): Likewise.
21070 (sse_cvtss2si): Likewise.
21071 (sse_cvtss2si_2): Likewise.
21072 (sse_cvtss2siq): Likewise.
21073 (sse_cvtss2siq_2): Likewise.
21074 (sse_cvttss2si): Likewise.
21075 (sse_cvtss2siq_2): Likewise.
21076 (float<sseintvecmodelower><mode>2): Likewise.
21077 (sse2_cvtsd2si_2): Likewise.
21078 (sse2_cvtsd2siq_2): Likewise.
21079 (*<plusminus_insn><mode>3): Likewise.
21080 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
21081 (*<sse4_1_avx2>_mul<mode>3): Likewise.
21082 (ashr<mode>3): Likewise.
21083 (<shift_insn><mode>3): Likewise.
21084 (avx2_<code><mode>3): Likewise.
21085 (*avx2_<code><mode>3): Likewise.
21086 (*andnot<mode>3): Likewise.
21087 (*<code><mode>3) <any_logic>: Likewise.
21088 (abs<mode>2): Likewise.
21089 (avx2_permvar<mode>): Likewise.
21090 (avx2_perm<mode>_1): Likewise.
21091 (*avx_vpermilp<mode>): Likewise.
21092 (avx_vpermilvar<mode>3): Likewise.
21093 (avx2_ashrv<mode>): Likewise.
21094 (avx2_<shift_insn>v<mode>): Likewise.
21095 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
21096 -mavx512cd.
21097 * doc/rtl.texi: Document XImode.
21098
21099 2013-08-21 Jeff Law <law@redhat.com>
21100
21101 * tree-flow.h (register_jump_thread): Pass vector of edges
21102 instead of each important edge.
21103 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
21104 thread path into a vector and pass that to register_jump_thread.
21105 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
21106 passed in edge vector to the current 3-edge form.
21107
21108 Revert:
21109 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21110
21111 * dce.c (fini_dce): Call df_analyze again just in case
21112 delete_unmarked_insns removed anything.
21113
21114 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
21115
21116 * reload.h (struct reg_equivs): Rename to ..
21117 (struct reg_equivs_s): .. this.
21118
21119 2013-08-20 Martin Liska <marxin.liska@gmail.com>
21120
21121 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
21122
21123 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21124
21125 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
21126
21127 2013-08-21 Jeff Law <law@redhat.com>
21128
21129 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
21130 simplify assignments too. If the RHS collapses to a singleton
21131 range, then return the value for the range.
21132
21133 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
21134
21135 * config/i386/sse.md (V16): Rename to...
21136 (VMOVE): this.
21137 (mov<mode>): Update iterator name.
21138 (*mov<mode>_internal): Ditto.
21139 (push<mode>1): Ditto.
21140 (movmisalign<mode>): Ditto.
21141
21142 2013-08-20 Jan Hubicka <jh@suse.cz>
21143
21144 PR bootstrap/58186
21145 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
21146 entry for direct edges.
21147 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
21148
21149 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21150
21151 Revert my last two changes, r201865 and r201864:
21152
21153 Revert r201865:
21154 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21155
21156 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21157 instances can own GC refs.
21158
21159 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21160 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21161 (gcc::context::gt_pch_nx): Likewise.
21162 (gcc::context::gt_pch_nx): Likewise.
21163 * ggc.h (gt_ggc_mx <T>): New.
21164 (gt_pch_nx_with_op <T>): New.
21165 (gt_pch_nx <T>): New.
21166 * passes.c (opt_pass::gt_ggc_mx): New.
21167 (opt_pass::gt_pch_nx): New.
21168 (opt_pass::gt_pch_nx_with_op): New.
21169 (pass_manager::gt_ggc_mx): New.
21170 (pass_manager::gt_pch_nx): New.
21171 (pass_manager::gt_pch_nx_with_op): New.
21172 (pass_manager::operator new): Use
21173 ggc_internal_cleared_alloc_stat rather than xcalloc.
21174 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21175 (pass_manager::gt_ggc_mx): New.
21176 (pass_manager::gt_pch_nx): New.
21177 (pass_manager::gt_pch_nx_with_op): New.
21178 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21179 (opt_pass::operator new): New.
21180 (opt_pass::gt_ggc_mx): New.
21181 (opt_pass::gt_pch_nx): New.
21182 (opt_pass::gt_pch_nx_with_op): New.
21183
21184 Revert r201864:
21185 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21186
21187 * Makefile.in (GTFILES): Add context.h.
21188 * context.c (gcc::context::operator new): New.
21189 (gcc::context::gt_ggc_mx): New.
21190 (gcc::context::gt_pch_nx): New.
21191 (gcc::context::gt_pch_nx): New.
21192 * context.h (gcc::context): Add GTY((user)) marking.
21193 (gcc::context::operator new): New.
21194 (gcc::context::gt_ggc_mx): New.
21195 (gcc::context::gt_pch_nx): New.
21196 (gcc::context::gt_pch_nx): New.
21197 (g): Add GTY marking.
21198 (gt_ggc_mx (gcc::context *)): New.
21199 (gt_pch_nx (gcc::context *)): New.
21200 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21201 void *cookie)): New.
21202 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21203
21204 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
21205
21206 * dce.c (fini_dce): Call df_analyze again just in case
21207 delete_unmarked_insns removed anything.
21208
21209 2013-08-20 Teresa Johnson <tejohnson@google.com>
21210
21211 PR rtl-optimizations/57451
21212 * final.c (reemit_insn_block_notes): Prevent lexical blocks
21213 from crossing split section boundaries.
21214
21215 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21216
21217 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
21218 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
21219 with MULTLIB_DEFAULTS.
21220
21221 2013-08-20 Nick Clifton <nickc@redhat.com>
21222
21223 * target.def (narrow_volatile_bitfield): Note that the default
21224 value is false, not !TARGET_STRICT_ALIGN.
21225 * doc/tm.texi: Regenerate.
21226
21227 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
21228
21229 Fix LIB_SPEC for systems without libpthread.
21230
21231 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
21232 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
21233 for Android.
21234 * config/i386/linux-common.h: Likewise.
21235 * config/mips/linux-common.h: Likewise.
21236
21237 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21238
21239 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
21240 checks.
21241
21242 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21243
21244 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
21245 instances can own GC refs.
21246
21247 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
21248 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
21249 (gcc::context::gt_pch_nx): Likewise.
21250 (gcc::context::gt_pch_nx): Likewise.
21251 * ggc.h (gt_ggc_mx <T>): New.
21252 (gt_pch_nx_with_op <T>): New.
21253 (gt_pch_nx <T>): New.
21254 * passes.c (opt_pass::gt_ggc_mx): New.
21255 (opt_pass::gt_pch_nx): New.
21256 (opt_pass::gt_pch_nx_with_op): New.
21257 (pass_manager::gt_ggc_mx): New.
21258 (pass_manager::gt_pch_nx): New.
21259 (pass_manager::gt_pch_nx_with_op): New.
21260 (pass_manager::operator new): Use
21261 ggc_internal_cleared_alloc_stat rather than xcalloc.
21262 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
21263 (pass_manager::gt_ggc_mx): New.
21264 (pass_manager::gt_pch_nx): New.
21265 (pass_manager::gt_pch_nx_with_op): New.
21266 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
21267 (opt_pass::operator new): New.
21268 (opt_pass::gt_ggc_mx): New.
21269 (opt_pass::gt_pch_nx): New.
21270 (opt_pass::gt_pch_nx_with_op): New.
21271
21272 2013-08-20 David Malcolm <dmalcolm@redhat.com>
21273
21274 * Makefile.in (GTFILES): Add context.h.
21275 * context.c (gcc::context::operator new): New.
21276 (gcc::context::gt_ggc_mx): New.
21277 (gcc::context::gt_pch_nx): New.
21278 (gcc::context::gt_pch_nx): New.
21279 * context.h (gcc::context): Add GTY((user)) marking.
21280 (gcc::context::operator new): New.
21281 (gcc::context::gt_ggc_mx): New.
21282 (gcc::context::gt_pch_nx): New.
21283 (gcc::context::gt_pch_nx): New.
21284 (g): Add GTY marking.
21285 (gt_ggc_mx (gcc::context *)): New.
21286 (gt_pch_nx (gcc::context *)): New.
21287 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
21288 void *cookie)): New.
21289 * gengtype.c (open_base_files) <ifiles>: Add context.h.
21290
21291 2013-08-20 Alan Modra <amodra@gmail.com>
21292
21293 PR target/57865
21294 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
21295 (rs6000_emit_epilogue): Likewise.
21296
21297 2013-08-19 Dehao Chen <dehao@google.com>
21298
21299 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
21300
21301 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
21302 Jakub Jelinek <jakub@redhat.com>
21303
21304 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
21305 (BUILT_IN_FABSD64): Likewise.
21306 (BUILT_IN_FABSD128): Likewise.
21307 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
21308 (fold_builtin_1): Likewise.
21309 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
21310 destination and source operands.
21311 (*abstd2_fpr): Likewise.
21312 (*nabstd2_fpr): Likewise.
21313
21314 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
21315
21316 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
21317 JUMP_P and INSN_P.
21318
21319 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
21320
21321 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
21322 incomplete.
21323
21324 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
21325
21326 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
21327 * builtins.c (default_libc_has_function): New.
21328 (gnu_libc_has_function): Ditto.
21329 (no_c99_libc_has_function): Ditto.
21330 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
21331 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
21332 (fold_builtin_sincos): Likewise.
21333 (fold_builtin_cexp): Likewise.
21334 * builtins.def (DEF_C94_BUILTIN): Likewise.
21335 (DEF_C99_BUILTIN): Likewise.
21336 (DEF_C99_C90RES_BUILTIN): Likewise.
21337 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
21338 definitions to using this define.
21339 * config/darwin-protos.h (darwin_libc_has_function): New.
21340 * config/darwin.c (darwin_libc_has_function): Ditto.
21341 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
21342 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
21343 * config/darwin.h: Ditto.
21344 * config/elfos.h: Ditto.
21345 * config/freebsd.h: Ditto.
21346 * config/i386/cygming.h: Ditto.
21347 * config/i386/djgpp.h: Ditto.
21348 * config/i386/i386-interix.h: Ditto.
21349 * config/microblaze/microblaze.h: Ditto.
21350 * config/mmix/mmix.h: Ditto.
21351 * config/gnu-user.h: Ditto.
21352 * config/ia64/hpux.h: Ditto.
21353 * config/pa/pa-hpux.h: Ditto.
21354 * config/pdp11/pdp11.h: Ditto.
21355 * config/picochip/picochip.h: Ditto.
21356 * config/linux.h: Ditto.
21357 * config/netbsd.h: Ditto.
21358 * config/openbsd.h: Ditto.
21359 * config/rs6000/aix43.h: Ditto.
21360 * config/rs6000/aix51.h: Ditto.
21361 * config/rs6000/aix52.h: Ditto.
21362 * config/rs6000/aix53.h: Ditto.
21363 * config/rs6000/aix61.h: Ditto.
21364 * config/rs6000/darwin.h: Ditto.
21365 * config/rs6000/linux.h: Ditto.
21366 * config/rs6000/linux64.h: Ditto.
21367 * config/s390/tpf.h: Ditto.
21368 * config/sol2-10.h: Ditto.
21369 * config/sol2.h: Ditto.
21370 * config/vms/vms.h: Ditto.
21371 * config/vxworks.h: Ditto.
21372 * config/linux-android.c (linux_android_libc_has_function):
21373 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
21374 * config/linux-protos.h (linux_android_libc_has_function):
21375 New declaration.
21376 * config/i386/i386.c (ix86_libc_has_function): New.
21377 * config/i386/i386-protos.h
21378 (ix86_libc_has_function): New declaration.
21379 * config/i386/i386.md
21380 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
21381 ("isinf<mode>2): Likewise.
21382 * convert.c (convert_to_integer): Using new target hook
21383 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
21384 TARGET_C99_FUNCTIONS.
21385 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
21386 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
21387 * coretypes.h (function_class): New enum for different
21388 classes of functions.
21389 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
21390 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
21391 (TARGET_HAS_SINCOS): Likewise.
21392 (TARGET_LIBC_HAS_FUNCTION): New.
21393 * doc/tm.texi: Regenerated.
21394 * targhooks.h (default_libc_has_function): New declaration.
21395 (no_c99_libc_has_function): Ditto.
21396 (gnu_libc_has_function): Ditto.
21397 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
21398 and TARGET_HAS_SINCOS.
21399
21400 2013-08-18 Jan Hubicka <jh@suse.cz>
21401
21402 * Makeifle-in (ipa-devirt.o): New.
21403 (GTFILES): Add ipa-utils.h and ipa-devirt.c
21404 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
21405 (analyze_functions): Look into possible targets of polymorphic call.
21406 * dumpfile.c (dump_files): Add type-inheritance dump.
21407 * dumpfile.h (TDI_inheritance): New.
21408 * ipa-devirt.c: New file.
21409 * ipa-utils.h (odr_type_d): Forward declare.
21410 (odr_type): New type.
21411 (build_type_inheritance_graph): Declare.
21412 (possible_polymorphic_call_targets): Declare and introduce inline
21413 variant when only edge is pased.
21414 (dump_possible_polymorphic_call_targets): Likewise.
21415 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
21416 * tree.c (type_in_anonymous_namespace_p): Break out from ...
21417 (types_same_for_odr): ... here.
21418 * tree.h (type_in_anonymous_namespace_p): Declare.
21419
21420 2013-08-18 Jakub Jelinek <jakub@redhat.com>
21421
21422 PR tree-optimization/58006
21423 * tree-parloops.c (take_address_of): Don't ICE if get_name
21424 returns NULL.
21425 (eliminate_local_variables_stmt): Remove clobber stmts.
21426
21427 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
21428
21429 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
21430 error message is issued for an alias to undefined symbol.
21431
21432 2013-08-18 Jan Hubicka <jh@suse.cz>
21433
21434 * cgraph.c (cgraph_create_indirect_edge): Discover
21435 polymorphic calls and record basic info into indirect_info.
21436 * gimple-fold.c (gimple_fold_call): When doing BINFO based
21437 devirtualization, ignore objc function calls.
21438 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
21439 call with no parm index info.
21440 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
21441 * tree.c (virtual_method_call_p): New function.
21442 * tree.h (virtual_method_call_p): Declare.
21443
21444 2013-08-16 Jan Hubicka <jh@suse.cz>
21445
21446 PR middle-end/58179
21447 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
21448
21449 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
21450
21451 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
21452 attribute.
21453
21454 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21455
21456 * gengtype.c (type_for_name): Add special-case support for
21457 locating types within the "gcc::" namespace.
21458 (open_base_files): Emit a "using namespace gcc" directive.
21459
21460 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21461
21462 PR target/58160
21463 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
21464 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
21465
21466 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
21467 array instead of each individual operand as a separate argument.
21468 (emit_fusion_gpr_load): Likewise.
21469 (expand_fusion_gpr_load): Add new function declaration.
21470
21471 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
21472 signature to have the operands passed as an array, instead of as
21473 separate arguments. Allow ZERO_EXTEND to be in the memory
21474 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
21475 depend on the register live/dead flags when peepholes are run.
21476 (expand_fusion_gpr_load): New function to be called from the
21477 peephole2 pass, to change the register that addis sets to be the
21478 target register.
21479 (emit_fusion_gpr_load): Change the calling signature to have the
21480 operands passed as an array, instead of as separate arguments.
21481 Allow ZERO_EXTEND to be in the memory address, and also
21482 SIGN_EXTEND if -mpower8-fusion-sign.
21483
21484 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
21485 unspec enumeration.
21486 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
21487 adjust the register addis loads up in the peephole2 pass. Do not
21488 depend on the register live/dead state when the peephole pass is done.
21489
21490 2013-08-16 David Malcolm <dmalcolm@redhat.com>
21491
21492 * gengtype.c (create_user_defined_type): Ensure that the kind
21493 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
21494 declaration is seen before the GTY((user)) marking.
21495
21496 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
21497
21498 PR target/58105
21499 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
21500
21501 2013-08-16 Jan Hubicka <jh@suse.cz>
21502
21503 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
21504 arugment expected_type.
21505 (gimple_fold_call): Use it.
21506 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
21507 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
21508 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
21509 (try_make_edge_direct_virtual_call): Likewise.
21510 * tree.c (obj_type_ref_class): New.
21511 * tree.h (obj_type_ref_class): Use it.
21512
21513 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
21514
21515 * sched-vis.c (rtl_slim_pp_initialized): Remove.
21516 (rtl_slim_pp): Likewise.
21517 (init_rtl_slim_pretty_print): Likewise.
21518 (dump_value_slim): Don't call it. Use local pretty printer.
21519 (dump_insn_slim): Likewise.
21520 (dump_rtl_slim): Likewise.
21521 (str_pattern_slim): Likewise.
21522 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
21523 Simplify.
21524
21525 2013-08-16 Jakub Jelinek <jakub@redhat.com>
21526
21527 PR tree-optimization/58164
21528 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
21529 walk gimple_goto_dest of GIMPLE_GOTO.
21530
21531 PR tree-optimization/58165
21532 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
21533 bi_call must be the last stmt in a bb, don't split_block, instead
21534 use fallthru edge from it and give up if there is none.
21535 Release conds vector when returning early.
21536
21537 2013-08-14 Xinliang David Li <davidxl@google.com>
21538
21539 * config/i386/i386.c (ix86_option_override_internal):
21540 Remove unused variable and field.
21541
21542 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21543
21544 PR target/57949
21545 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
21546 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
21547 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
21548 and Linux, correct BLKmode alignment when 128-bit alignment is
21549 required and compatibility flag is not set.
21550 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
21551 for zero-size arguments when compatibility flag is not set.
21552
21553 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21554
21555 PR tree-optimization/58145
21556 * tree-sra.c (build_ref_for_offset): If prev_base has
21557 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
21558
21559 2013-08-14 Xinliang David Li <davidxl@google.com>
21560
21561 * config/i386/i386.c (ix86_option_override_internal):
21562 Fix uninitialized variable error.
21563
21564 2013-08-14 Xinliang David Li <davidxl@google.com>
21565
21566 * config/i386/i386.opt: Define two new options.
21567 * config/i386/x86-tune.def: Add arch selector field in macros.
21568 * config/i386/i386.h: Adjust macro definition.
21569 * config/i386/i386.c (ix86_option_override_internal):
21570 Refactor the code.
21571 (parse_mtune_ctrl_str): New function.
21572 (set_ix86_tune_features): New function.
21573 (ix86_function_specific_restore): Call the new helper function.
21574
21575 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
21576
21577 PR rtl-optimization/57662
21578 * sel-sched.c (code_motion_process_successors): When the current insn
21579 is removed after the recursive traversal, break from the loop.
21580 Add comments and debug printouts.
21581
21582 2013-08-14 Jakub Jelinek <jakub@redhat.com>
21583 Alexandre Oliva <aoliva@redhat.com>
21584
21585 PR target/58067
21586 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
21587 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
21588 there also UNSPEC_PLTOFF.
21589
21590 2013-08-14 Marek Polacek <polacek@redhat.com>
21591
21592 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
21593 NUM_CONDITIONS bit positions.
21594
21595 2013-08-13 Cary Coutant <ccoutant@google.com>
21596
21597 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
21598 (attr_checksum): Hash vector contents instead of pointer.
21599 (attr_checksum_ordered): Likewise.
21600
21601 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
21602
21603 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
21604 when Pmode != word_mode. Add length_address attribute.
21605 (sse3_monitor_<mode>): Merge from sse3_monitor and
21606 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
21607 Pmode != word_mode. Update insn length attribute.
21608 * config/i386/i386.c (ix86_option_override_internal): Update
21609 ix86_gen_monitor selection for merged sse3_monitor insn.
21610
21611 2013-08-13 Julian Brown <julian@codesourcery.com>
21612
21613 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21614 perform invalid legitimization on greater-than-word-size modes for
21615 TARGET_E500_DOUBLE.
21616
21617 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
21618
21619 * ira.c (setup_class_translate_array): Use aclass instead of cl
21620 for classes not fully covered by allocno classes.
21621
21622 2013-08-13 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR tree-optimization/57661
21625 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
21626 * tree-inline.c (tree_function_versioning): Initialize it.
21627 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
21628 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
21629 that is not being copied.
21630
21631 PR sanitizer/56417
21632 * asan.c (instrument_strlen_call): Fix typo in comment.
21633 Use char * type even for the lhs of POINTER_PLUS_EXPR.
21634
21635 2013-08-13 Steve Ellcey <sellcey@mips.com>
21636
21637 * config/mips/mips.md (prefetch): Use lw instead of ld on
21638 loongson in 32bit mode.
21639
21640 2013-08-13 Nick Clifton <nickc@redhat.com>
21641
21642 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
21643
21644 2013-08-13 Jan Hubicka <jh@suse.cz>
21645
21646 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
21647 introduced edge; fix typo in sanity check.
21648 (cgraph_resolve_speculation): Export; improve diagnostic.
21649 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
21650 speculation at type mismatch.
21651 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
21652 (cgraph_resolve_speculation): Declare.
21653 (symtab_can_be_discarded): New function.
21654 * value-prof.c (gimple_ic_transform): Remove actual transform code.
21655 * ipa-inline-transform.c (speculation_removed): New global var.
21656 (clone_inlined_nodes): See if speculation can be removed.
21657 (inline_call): If speculations was removed, we growths may not match.
21658 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
21659 (speculation_useful_p): New function.
21660 (resolve_noninline_speculation): New function.
21661 (inline_small_functions): Resolve useless speculations.
21662 * ipa-inline.h (speculation_useful_p): Declare
21663 * ipa.c (can_replace_by_local_alias): Simplify.
21664 (ipa_profile): Produce speculative calls in non-lto, too;
21665 add simple cost model; produce local aliases.
21666
21667 2013-08-13 David Malcolm <dmalcolm@redhat.com>
21668
21669 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
21670 PASS_MANAGER_H.
21671
21672 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
21673
21674 * config/i386/i386.c (ix86_function_versions): Use error + inform.
21675
21676 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
21677
21678 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
21679 iterator instead of X87MODEF.
21680
21681 2013-08-12 Perez Read <netfirewall@gmail.com>
21682
21683 PR target/58132
21684 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
21685 operand 0 for intel asm alternative.
21686 (*movabs<mode>_2): Ditto for operand 1.
21687
21688 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
21689
21690 * config/aarch64/arm_none.h
21691 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
21692
21693 2013-08-12 Nick Clifton <nickc@redhat.com>
21694
21695 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
21696
21697 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
21698
21699 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
21700 expand for QI/HImode operand to produce more effictive code for
21701 unsigned char(short) --> float(double) conversion.
21702
21703 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
21704
21705 * doc/invoke.texi: Mention that -ftls-model does not force the final
21706 model.
21707
21708 2013-08-12 Marek Polacek <polacek@redhat.com>
21709 Marc Glisse <marc.glisse@inria.fr>
21710
21711 PR tree-optimization/57980
21712 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
21713 when creating -1 constant.
21714
21715 2013-08-10 Jan Hubicka <jh@suse.cz>
21716
21717 Workaround binutils PR14342.
21718 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
21719 (gimple_init_edge_profiler): Likewise.
21720 (gimple_gen_ic_func_profiler): Likewise.
21721
21722 2013-08-09 Jan Hubicka <jh@suse.cz>
21723
21724 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
21725
21726 2013-08-09 Xinliang David Li <davidxl@google.com>
21727
21728 * config/i386/stringop.def: New file.
21729 * config/i386/stringop.opt: New file.
21730 * config/i386/i386-opts.h: Include stringopt.def.
21731 * config/i386/i386.opt: Include stringopt.opt.
21732 * config/i386/i386.c (ix86_option_override_internal):
21733 Override default size based stringop inline strategies with options.
21734 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
21735 New function.
21736
21737 2013-08-09 Jan Hubicka <jh@suse.cz>
21738
21739 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
21740
21741 2013-08-09 Jan Hubicka <jh@suse.cz>
21742
21743 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
21744 CGRAPH_FREQ_MAX.
21745 (dump_cgraph_node): Dump profile-id.
21746 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
21747 and common_target_probability.
21748 * lto-cgraph.c (lto_output_edge): Stream common targets.
21749 (lto_output_node): Stream profile ids.
21750 (input_node): Stream profile ids.
21751 (input_edge): Stream common targets.
21752 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
21753 * ipa.c: Include value-prof.h
21754 (ipa_profile_generate_summary): Turn indirect call statement histograms
21755 into common targets.
21756 (ipa_profile): Turn common targets into speculative edges.
21757
21758 2013-08-09 Jan Hubicka <jh@suse.cz>
21759
21760 * cgraph.h (cgraph_node): Add profile_id.
21761 * value-prof.c (cgraph_node_map): Turn into pointer_map.
21762 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
21763 (del_node_map): Update.
21764 (find_func_by_funcdef_no): Replace by ...
21765 (find_func_by_profile_id): ... this one.
21766 (gimple_ic_transform): Do not remove useful histograms when
21767 speculation is not done; dump info when indirect call removal
21768 can happen at LTO.
21769 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
21770 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
21771 (__gcov_indirect_call_profiler_v2): .. this one.
21772 * profile.h (init_node_map): Update.
21773 * coverage.c (coverage_compute_profile_id): New function.
21774 * coverage.h (coverage_compute_profile_id): Declare.
21775 * tree-profile.c (init_ic_make_global_vars): Make
21776 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
21777 (gimple_init_edge_profiler): Update prototype of
21778 __gcov_indirect_call_profiler.
21779 (gimple_gen_ic_func_profiler): Simplify.
21780 (tree_profiling): Use init_node_map
21781
21782 2013-08-09 Jan Hubicka <jh@suse.cz>
21783
21784 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
21785 non-speculative refs.
21786 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
21787 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
21788 (cgraph_set_call_stmt): Likewise.
21789 (cgraph_create_edge_1): Fix release checking compilatoin;
21790 clear lto_stmt_uid.
21791 (cgraph_free_edge): Free indirect info.
21792 (cgraph_turn_edge_to_speculative): New function.
21793 (cgraph_speculative_call_info): New function.
21794 (cgraph_make_edge_direct): Return direct edge; handle speculation.
21795 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
21796 (dump_cgraph_node): Dump speculation.
21797 (verify_edge_count_and_frequency): Accept speculative edges.
21798 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
21799 (verify_cgraph_node): Handle speculation.
21800 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
21801 (cgraph_set_call_stmt): Update prototype.
21802 (cgraph_make_edge_direct): Update prototype.
21803 (cgraph_speculative_call_info): Declare.
21804 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
21805 to change; update call of ipa_find_references.
21806 * ipa-ref.c (ipa_record_reference): Fix return value; clear
21807 lto_stmt_uid and speculative flags.
21808 (ipa_dump_references): Dump speculation.
21809 (ipa_clone_references): Clone speculative flag.
21810 (ipa_clone_referring): Likewise.
21811 (ipa_clone_ref): New function.
21812 (ipa_find_reference): Look into lto_stmt_uids
21813 (ipa_clear_stmts_in_references): Do not clear speculative calls.
21814 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
21815 (ipa_find_reference): Update declaration.
21816 (ipa_clone_ref): Declare.
21817 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
21818 stream speculative flag.
21819 (lto_output_ref): Stream statements uids and speculation.
21820 (input_ref): Likewise.
21821 (input_edge): Stream speuclation.
21822 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
21823 (cgraph_set_call_stmt_including_clones): Handle speculation.
21824 * ipa-inline.c (heap_edge_removal_hook): New function.
21825 (inline_small_functions): Register it.
21826 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
21827 also initialize refs.
21828 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
21829 edge to change.
21830 (try_make_edge_direct_simple_call): Likewise.
21831 (try_make_edge_direct_simple_call): Likewise.
21832 (update_indirect_edges_after_inlining): Likewise.
21833 (remove_described_reference): Look proper lto_stmt_uid.
21834 (propagate_controlled_uses): Likewise.
21835 (propagate_controlled_uses): Liekwise.
21836 * tree-inline.c (copy_bb): Copy speculative edges.
21837 (redirect_all_calls): New function.
21838 (copy_cfg_body): Do redirection after loop info is updated.
21839 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
21840
21841 2013-08-09 Jan Hubicka <jh@suse.cz>
21842
21843 * lto-streamer-out.c (output_function): Renumber PHIs.
21844 * lto-streamer-in.c (input_function): Likewise.
21845
21846 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
21847
21848 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
21849 (get_lane_unsigned): Likewise.
21850 (dup_lane_scalar): Likewise.
21851 (get_lane): enable for VALL.
21852 * config/aarch64/aarch64-simd.md
21853 (aarch64_dup_lane_scalar<mode>): Remove.
21854 (aarch64_get_lane_signed<mode>): Likewise.
21855 (aarch64_get_lane_unsigned<mode>): Likewise.
21856 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
21857 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
21858 (aarch64_get_lane<mode>): Enable for all vector modes.
21859 (aarch64_get_lanedi): Remove misleading constraints.
21860 * config/aarch64/arm_neon.h
21861 (__aarch64_vget_lane_any): Define.
21862 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
21863 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
21864 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
21865 * config/aarch64/iterators.md (VDQQH): New.
21866 (VDQQHS): Likewise.
21867 (vwcore): Likewise.
21868
21869 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
21870
21871 * configure.ac: Add GAS check for LEON instructions on SPARC.
21872 * configure: Regenerate.
21873 * config.in: Likewise.
21874 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
21875 sparc*-*-* block.
21876 * config/sparc/sparc.opt (LEON, LEON3): New masks.
21877 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
21878 for LEON or LEON3.
21879 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
21880 (AS_LEON_FLAG): New macro.
21881 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
21882 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
21883 Deal with LEON and LEON3 for the memory model.
21884 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
21885 (atomic_compare_and_swap<mode>_1): Likewise.
21886 (*atomic_compare_and_swap<mode>_1): Likewise.
21887
21888 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21889
21890 * config/arm/neon.md (vcond): Fix floating-point vector
21891 comparisons against 0.
21892
21893 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
21894
21895 * lra-constraints.c (emit_spill_move): Remove assert.
21896 (process_alt_operands): Add more debugging
21897 output. Increase reject for spilling into memory. Decrease
21898 reject for reloading scratch.
21899 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
21900
21901 2013-08-08 Steve Ellcey <sellcey@mips.com>
21902
21903 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
21904 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
21905 micromips incompatible. Add nan2008.
21906 (MULTILIB_DIRNAMES): Add nan2008.
21907 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21908 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
21909 and micromips incompatible. Add nan2008.
21910 (MULTILIB_DIRNAMES): Add nan2008.
21911 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
21912
21913 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
21914
21915 PR rtl-optimization/58079
21916 * combine.c (combine_simplify_rtx): Avoid using SUBST if
21917 simplify_comparison has widened a comparison with an integer.
21918
21919 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21920
21921 * config/arm/neon.md (movmisalign<mode>): Disable when we
21922 don't allow unaligned accesses.
21923 (*movmisalign<mode>_neon_store): Likewise.
21924 (*movmisalign<mode>_neon_load): Likewise.
21925 (*movmisalign<mode>_neon_store): Likewise.
21926 (*movmisalign<mode>_neon_load): Likewise.
21927
21928 2013-08-08 Jan Hubicka <jh@suse.cz>
21929
21930 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
21931 (make_pass_rebuild_cgraph_edges): Also clear references.
21932 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
21933 * ipa-inline-transform.c (inline_transform): Remove all references
21934 after inlining.
21935 * cgraphunit.c (expand_function): Remove all references after
21936 expansion.
21937 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
21938 (ipa_find_reference): Rewrite to iterator.
21939 (remove_stmt_references): Likewise.
21940 (ipa_clear_stmts_in_references): New function.
21941 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
21942 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
21943 clear references.
21944 * ipa-split.c (split_function): Remove references in split function.
21945
21946 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21947
21948 PR target/57431
21949 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
21950 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
21951
21952 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
21953
21954 PR target/56979
21955 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
21956 suggested mode for the assignment isn't compatible with the
21957 registers required.
21958
21959 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
21960
21961 PR target/58065
21962 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
21963
21964 2013-08-07 Xinliang David Li <davidxl@google.com>
21965
21966 * config/i386/i386.opt: New option -mtune-ctrl=.
21967 * config/i386/x86-tune.def: New file.
21968 * config/i386/i386.h: include x86-tune.def.
21969 * config/i386/i386.c (ix86_option_override_internal):
21970 Parsing -mtune-ctrl= option and set tune features.
21971
21972 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
21973
21974 PR other/12081
21975 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
21976 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
21977 to gen_2arg_fn_t.
21978
21979 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21980
21981 * rtl.h (update_alignments): Declare.
21982 * final.c (grow_label_align): New function extracted from...
21983 (shorten_branches): ...here. Call it.
21984 (update_alignments): New function.
21985 * reorg.c (sibling_labels): New variable.
21986 (get_label_before): Add SIBLING parameter. If it is non-zero, push
21987 the new label along with it onto the sibling_labels vector.
21988 (fill_simple_delay_slots): Adjust call to get_label_before.
21989 (fill_slots_from_thread): Likewise.
21990 (relax_delay_slots): Likewise.
21991 (make_return_insns): Likewise.
21992 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
21993
21994 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
21995
21996 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
21997 document its semantics.
21998 (diagnostic_report_diagnostic): Adjust accordingly.
21999
22000 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22001
22002 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
22003 (sparc_option_override): ...and port to new C++ pass API.
22004 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
22005
22006 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
22007
22008 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
22009
22010 2013-08-06 Caroline Tice <cmtice@google.com>
22011
22012 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
22013 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
22014 * tree-pass.h: Add pass_vtable_verify.
22015 * varasm.c (assemble_variable): Add code to properly set the comdat
22016 section and name for the .vtable_map_vars section.
22017 (assemble_vtyv_preinit_initializer): New function.
22018 (default_sectin_type_flags): Make sure .vtable_map_vars section has
22019 LINK_ONCE flag.
22020 * output.h: Add function decl for assemble_vtv_preinit_initializer.
22021 * vtable-verify.c: New file.
22022 * vtable-verify.h: New file.
22023 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
22024 initialiation levels.
22025 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
22026 * passes.def: Insert pass_vtable_verify.
22027 * aclocal.m4: Reorder includes.
22028 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
22029 -fvtv-counts options.
22030 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
22031 as appropriate, if -fvtable-verify=... is used.
22032 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
22033 -fvtable-verify=... is used.
22034 * Makefile.in (OBJS): Add vtable-verify.o to list.
22035 (vtable-verify.o): Add new build rule.
22036 (GTFILES): Add vtable-verify.c to list.
22037 * common.opt (fvtable-verify=): New flag.
22038 (vtv_priority): Values for fvtable-verify= flag.
22039 (fvtv-counts): New flag.
22040 (fvtv-debug): New flag.
22041 * tree.h (save_vtable_map_decl): New extern function decl.
22042
22043 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22044
22045 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
22046 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
22047 (pass_data_rl78_devirt): ...new pass_data instance and...
22048 (make_pass_rl78_devirt): ...new function.
22049 (rl78_asm_file_start): Port pass registration to new C++ API.
22050
22051 2013-08-07 David Malcolm <dmalcolm@redhat.com>
22052
22053 * coretypes.h (rtl_opt_pass): Add.
22054 (gcc::context): Add.
22055 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
22056 (epiphany_init): Port to new C++ pass API.
22057 (epiphany_optimize_mode_switching): Likewise.
22058 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
22059 (pass_manager::get_pass_mode_switching): New.
22060 (pass_manager::get_pass_peephole2): New.
22061 * mode-switching.c (pass_mode_switching): Add clone method.
22062 * recog.c (pass_peephole2): Add clone method.
22063 (pass_split_all_insns): Add clone method.
22064
22065 2013-08-06 David Malcolm <dmalcolm@redhat.com>
22066
22067 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
22068 (mips_option_override): ...here, porting to new C++ API for passes.
22069
22070 2013-08-06 Jan Hubicka <jh@suse.cz>
22071
22072 * cgraph.c (cgraph_get_body): New function based on lto.c
22073 implementation.
22074 * cgraph.h (cgraph_get_body): Declare.
22075 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
22076 LTO paths.
22077 * cgraphunit.c (expand_function): Get body prior expanding.
22078 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
22079 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
22080 really need.
22081 * passes.c (do_per_function_toporder): Get body.
22082 * tree-inline.c (expand_call_inline): Get body prior inlining it.
22083 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
22084
22085 2013-08-06 Martin Jambor <mjambor@suse.cz>
22086
22087 PR fortran/57987
22088 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
22089 is not re-finalized. Rename second parameter to no_collect.
22090
22091 2013-08-06 Martin Jambor <mjambor@suse.cz>
22092
22093 PR middle-end/58041
22094 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
22095 MEM_REF has proper alignment information.
22096
22097 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
22098
22099 PR other/12081
22100 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
22101 class insn_gen_fn.
22102 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
22103 rtx (*) (rtx, ...) with insn_gen_fn.
22104 * genoutput.c (output_insn_data): Cast gen_? function pointers to
22105 insn_gen_fn::stored_funcptr. Add initializer braces.
22106
22107 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22108
22109 Rewrite how instances of passes are cloned to remove assumptions
22110 about their sizes (thus allowing pass subclasses to have
22111 additional data fields, albeit non-GC-managed ones at this point).
22112
22113 * passes.c (make_pass_instance): Now that passes have clone
22114 methods, rewrite this function to eliminate XNEW and memcpy
22115 calls that used hardcoded sizes. Since this function no longer
22116 creates pass instances, rename it to...
22117 (add_pass_instance): ...this. Document the old way that passes were
22118 numbered and flagged, and rework this function to continue using it.
22119 (next_pass_1): Add an initial_pass argument for use by
22120 add_pass_instance.
22121 (position_pass): When adding multiple instances of a pass, use
22122 the pass's clone method, rather than relying on the XNEW/memcpy
22123 within the former make_pass_instance (now add_pass_instance).
22124 (pass_manager::pass_manager): When invoking next_pass_1, also supply
22125 the initial instance of the current pass within the pass manager.
22126
22127 2013-08-05 David Malcolm <dmalcolm@redhat.com>
22128
22129 This is the automated part of the conversion of passes from C
22130 structs to C++ classes.
22131
22132 Patch autogenerated by refactor_passes.py from
22133 https://github.com/davidmalcolm/gcc-refactoring-scripts
22134 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
22135
22136 * asan.c (pass_asan): Convert from a global struct to a subclass of
22137 gimple_opt_pass along with...
22138 (pass_data_asan): ...new pass_data instance and...
22139 (make_pass_asan): ...new function.
22140 (pass_asan_O0): Convert from a global struct to a subclass of
22141 gimple_opt_pass along with...
22142 (pass_data_asan_O0): ...new pass_data instance and...
22143 (make_pass_asan_O0): ...new function.
22144 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
22145 subclass of rtl_opt_pass along with...
22146 (pass_data_inc_dec): ...new pass_data instance and...
22147 (make_pass_inc_dec): ...new function.
22148 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
22149 a subclass of rtl_opt_pass along with...
22150 (pass_data_reorder_blocks): ...new pass_data instance and...
22151 (make_pass_reorder_blocks): ...new function.
22152 (pass_duplicate_computed_gotos): Convert from a global struct to a
22153 subclass of rtl_opt_pass along with...
22154 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
22155 (make_pass_duplicate_computed_gotos): ...new function.
22156 (pass_partition_blocks): Convert from a global struct to a subclass of
22157 rtl_opt_pass along with...
22158 (pass_data_partition_blocks): ...new pass_data instance and...
22159 (make_pass_partition_blocks): ...new function.
22160 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
22161 struct to a subclass of rtl_opt_pass along with...
22162 (pass_data_branch_target_load_optimize1): ...new pass_data instance
22163 and...
22164 (make_pass_branch_target_load_optimize1): ...new function.
22165 (pass_branch_target_load_optimize2): Convert from a global struct to a
22166 subclass of rtl_opt_pass along with...
22167 (pass_data_branch_target_load_optimize2): ...new pass_data instance
22168 and...
22169 (make_pass_branch_target_load_optimize2): ...new function.
22170 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
22171 of rtl_opt_pass along with...
22172 (pass_data_jump): ...new pass_data instance and...
22173 (make_pass_jump): ...new function.
22174 (pass_jump2): Convert from a global struct to a subclass of
22175 rtl_opt_pass along with...
22176 (pass_data_jump2): ...new pass_data instance and...
22177 (make_pass_jump2): ...new function.
22178 * cfgexpand.c (pass_expand): Convert from a global struct to a
22179 subclass of rtl_opt_pass along with...
22180 (pass_data_expand): ...new pass_data instance and...
22181 (make_pass_expand): ...new function.
22182 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
22183 of rtl_opt_pass along with...
22184 (pass_data_free_cfg): ...new pass_data instance and...
22185 (make_pass_free_cfg): ...new function.
22186 (pass_into_cfg_layout_mode): Convert from a global struct to a
22187 subclass of rtl_opt_pass along with...
22188 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
22189 (make_pass_into_cfg_layout_mode): ...new function.
22190 (pass_outof_cfg_layout_mode): Convert from a global struct to a
22191 subclass of rtl_opt_pass along with...
22192 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
22193 (make_pass_outof_cfg_layout_mode): ...new function.
22194 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
22195 struct to a subclass of gimple_opt_pass along with...
22196 (pass_data_build_cgraph_edges): ...new pass_data instance and...
22197 (make_pass_build_cgraph_edges): ...new function.
22198 (pass_rebuild_cgraph_edges): Convert from a global struct to a
22199 subclass of gimple_opt_pass along with...
22200 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
22201 (make_pass_rebuild_cgraph_edges): ...new function.
22202 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
22203 subclass of gimple_opt_pass along with...
22204 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
22205 and...
22206 (make_pass_remove_cgraph_callee_edges): ...new function.
22207 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
22208 struct to a subclass of rtl_opt_pass along with...
22209 (pass_data_stack_adjustments): ...new pass_data instance and...
22210 (make_pass_stack_adjustments): ...new function.
22211 * combine.c (pass_combine): Convert from a global struct to a subclass
22212 of rtl_opt_pass along with...
22213 (pass_data_combine): ...new pass_data instance and...
22214 (make_pass_combine): ...new function.
22215 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
22216 global struct to a subclass of rtl_opt_pass along with...
22217 (pass_data_compare_elim_after_reload): ...new pass_data instance
22218 and...
22219 (make_pass_compare_elim_after_reload): ...new function.
22220 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
22221 of rtl_opt_pass along with...
22222 (pass_data_rtl_cprop): ...new pass_data instance and...
22223 (make_pass_rtl_cprop): ...new function.
22224 * cse.c (pass_cse): Convert from a global struct to a subclass of
22225 rtl_opt_pass along with...
22226 (pass_data_cse): ...new pass_data instance and...
22227 (make_pass_cse): ...new function.
22228 (pass_cse2): Convert from a global struct to a subclass of
22229 rtl_opt_pass along with...
22230 (pass_data_cse2): ...new pass_data instance and...
22231 (make_pass_cse2): ...new function.
22232 (pass_cse_after_global_opts): Convert from a global struct to a
22233 subclass of rtl_opt_pass along with...
22234 (pass_data_cse_after_global_opts): ...new pass_data instance and...
22235 (make_pass_cse_after_global_opts): ...new function.
22236 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
22237 of rtl_opt_pass along with...
22238 (pass_data_ud_rtl_dce): ...new pass_data instance and...
22239 (make_pass_ud_rtl_dce): ...new function.
22240 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
22241 rtl_opt_pass along with...
22242 (pass_data_fast_rtl_dce): ...new pass_data instance and...
22243 (make_pass_fast_rtl_dce): ...new function.
22244 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
22245 a subclass of rtl_opt_pass along with...
22246 (pass_data_df_initialize_opt): ...new pass_data instance and...
22247 (make_pass_df_initialize_opt): ...new function.
22248 (pass_df_initialize_no_opt): Convert from a global struct to a
22249 subclass of rtl_opt_pass along with...
22250 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
22251 (make_pass_df_initialize_no_opt): ...new function.
22252 (pass_df_finish): Convert from a global struct to a subclass of
22253 rtl_opt_pass along with...
22254 (pass_data_df_finish): ...new pass_data instance and...
22255 (make_pass_df_finish): ...new function.
22256 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
22257 rtl_opt_pass along with...
22258 (pass_data_rtl_dse1): ...new pass_data instance and...
22259 (make_pass_rtl_dse1): ...new function.
22260 (pass_rtl_dse2): Convert from a global struct to a subclass of
22261 rtl_opt_pass along with...
22262 (pass_data_rtl_dse2): ...new pass_data instance and...
22263 (make_pass_rtl_dse2): ...new function.
22264 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
22265 subclass of rtl_opt_pass along with...
22266 (pass_data_dwarf2_frame): ...new pass_data instance and...
22267 (make_pass_dwarf2_frame): ...new function.
22268 * except.c (pass_set_nothrow_function_flags): Convert from a global
22269 struct to a subclass of rtl_opt_pass along with...
22270 (pass_data_set_nothrow_function_flags): ...new pass_data instance
22271 and...
22272 (make_pass_set_nothrow_function_flags): ...new function.
22273 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
22274 subclass of rtl_opt_pass along with...
22275 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
22276 and...
22277 (make_pass_convert_to_eh_region_ranges): ...new function.
22278 * final.c (pass_compute_alignments): Convert from a global struct to a
22279 subclass of rtl_opt_pass along with...
22280 (pass_data_compute_alignments): ...new pass_data instance and...
22281 (make_pass_compute_alignments): ...new function.
22282 (pass_final): Convert from a global struct to a subclass of
22283 rtl_opt_pass along with...
22284 (pass_data_final): ...new pass_data instance and...
22285 (make_pass_final): ...new function.
22286 (pass_shorten_branches): Convert from a global struct to a subclass of
22287 rtl_opt_pass along with...
22288 (pass_data_shorten_branches): ...new pass_data instance and...
22289 (make_pass_shorten_branches): ...new function.
22290 (pass_clean_state): Convert from a global struct to a subclass of
22291 rtl_opt_pass along with...
22292 (pass_data_clean_state): ...new pass_data instance and...
22293 (make_pass_clean_state): ...new function.
22294 * function.c (pass_instantiate_virtual_regs): Convert from a global
22295 struct to a subclass of rtl_opt_pass along with...
22296 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
22297 (make_pass_instantiate_virtual_regs): ...new function.
22298 (pass_leaf_regs): Convert from a global struct to a subclass of
22299 rtl_opt_pass along with...
22300 (pass_data_leaf_regs): ...new pass_data instance and...
22301 (make_pass_leaf_regs): ...new function.
22302 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
22303 subclass of rtl_opt_pass along with...
22304 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
22305 and...
22306 (make_pass_thread_prologue_and_epilogue): ...new function.
22307 (pass_match_asm_constraints): Convert from a global struct to a
22308 subclass of rtl_opt_pass along with...
22309 (pass_data_match_asm_constraints): ...new pass_data instance and...
22310 (make_pass_match_asm_constraints): ...new function.
22311 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
22312 subclass of rtl_opt_pass along with...
22313 (pass_data_rtl_fwprop): ...new pass_data instance and...
22314 (make_pass_rtl_fwprop): ...new function.
22315 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
22316 rtl_opt_pass along with...
22317 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
22318 (make_pass_rtl_fwprop_addr): ...new function.
22319 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
22320 rtl_opt_pass along with...
22321 (pass_data_rtl_pre): ...new pass_data instance and...
22322 (make_pass_rtl_pre): ...new function.
22323 (pass_rtl_hoist): Convert from a global struct to a subclass of
22324 rtl_opt_pass along with...
22325 (pass_data_rtl_hoist): ...new pass_data instance and...
22326 (make_pass_rtl_hoist): ...new function.
22327 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
22328 subclass of gimple_opt_pass along with...
22329 (pass_data_lower_cf): ...new pass_data instance and...
22330 (make_pass_lower_cf): ...new function.
22331 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
22332 from a global struct to a subclass of gimple_opt_pass along with...
22333 (pass_data_strength_reduction): ...new pass_data instance and...
22334 (make_pass_strength_reduction): ...new function.
22335 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
22336 of rtl_opt_pass along with...
22337 (pass_data_rtl_ifcvt): ...new pass_data instance and...
22338 (make_pass_rtl_ifcvt): ...new function.
22339 (pass_if_after_combine): Convert from a global struct to a subclass of
22340 rtl_opt_pass along with...
22341 (pass_data_if_after_combine): ...new pass_data instance and...
22342 (make_pass_if_after_combine): ...new function.
22343 (pass_if_after_reload): Convert from a global struct to a subclass of
22344 rtl_opt_pass along with...
22345 (pass_data_if_after_reload): ...new pass_data instance and...
22346 (make_pass_if_after_reload): ...new function.
22347 * init-regs.c (pass_initialize_regs): Convert from a global struct to
22348 a subclass of rtl_opt_pass along with...
22349 (pass_data_initialize_regs): ...new pass_data instance and...
22350 (make_pass_initialize_regs): ...new function.
22351 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
22352 of ipa_opt_pass_d along with...
22353 (pass_data_ipa_cp): ...new pass_data instance and...
22354 (make_pass_ipa_cp): ...new function.
22355 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
22356 global struct to a subclass of gimple_opt_pass along with...
22357 (pass_data_inline_parameters): ...new pass_data instance and...
22358 (make_pass_inline_parameters): ...new function.
22359 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
22360 subclass of gimple_opt_pass along with...
22361 (pass_data_early_inline): ...new pass_data instance and...
22362 (make_pass_early_inline): ...new function.
22363 (pass_ipa_inline): Convert from a global struct to a subclass of
22364 ipa_opt_pass_d along with...
22365 (pass_data_ipa_inline): ...new pass_data instance and...
22366 (make_pass_ipa_inline): ...new function.
22367 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
22368 struct to a subclass of gimple_opt_pass along with...
22369 (pass_data_local_pure_const): ...new pass_data instance and...
22370 (make_pass_local_pure_const): ...new function.
22371 (pass_ipa_pure_const): Convert from a global struct to a subclass of
22372 ipa_opt_pass_d along with...
22373 (pass_data_ipa_pure_const): ...new pass_data instance and...
22374 (make_pass_ipa_pure_const): ...new function.
22375 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
22376 to a subclass of ipa_opt_pass_d along with...
22377 (pass_data_ipa_reference): ...new pass_data instance and...
22378 (make_pass_ipa_reference): ...new function.
22379 * ipa-split.c (pass_split_functions): Convert from a global struct to
22380 a subclass of gimple_opt_pass along with...
22381 (pass_data_split_functions): ...new pass_data instance and...
22382 (make_pass_split_functions): ...new function.
22383 (pass_feedback_split_functions): Convert from a global struct to a
22384 subclass of gimple_opt_pass along with...
22385 (pass_data_feedback_split_functions): ...new pass_data instance and...
22386 (make_pass_feedback_split_functions): ...new function.
22387 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
22388 global struct to a subclass of simple_ipa_opt_pass along with...
22389 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
22390 instance and...
22391 (make_pass_ipa_function_and_variable_visibility): ...new function.
22392 (pass_ipa_free_inline_summary): Convert from a global struct to a
22393 subclass of simple_ipa_opt_pass along with...
22394 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
22395 (make_pass_ipa_free_inline_summary): ...new function.
22396 (pass_ipa_whole_program_visibility): Convert from a global struct to a
22397 subclass of ipa_opt_pass_d along with...
22398 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
22399 and...
22400 (make_pass_ipa_whole_program_visibility): ...new function.
22401 (pass_ipa_profile): Convert from a global struct to a subclass of
22402 ipa_opt_pass_d along with...
22403 (pass_data_ipa_profile): ...new pass_data instance and...
22404 (make_pass_ipa_profile): ...new function.
22405 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
22406 ipa_opt_pass_d along with...
22407 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
22408 (make_pass_ipa_cdtor_merge): ...new function.
22409 * ira.c (pass_ira): Convert from a global struct to a subclass of
22410 rtl_opt_pass along with...
22411 (pass_data_ira): ...new pass_data instance and...
22412 (make_pass_ira): ...new function.
22413 (pass_reload): Convert from a global struct to a subclass of
22414 rtl_opt_pass along with...
22415 (pass_data_reload): ...new pass_data instance and...
22416 (make_pass_reload): ...new function.
22417 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
22418 subclass of rtl_opt_pass along with...
22419 (pass_data_cleanup_barriers): ...new pass_data instance and...
22420 (make_pass_cleanup_barriers): ...new function.
22421 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
22422 of rtl_opt_pass along with...
22423 (pass_data_loop2): ...new pass_data instance and...
22424 (make_pass_loop2): ...new function.
22425 (pass_rtl_loop_init): Convert from a global struct to a subclass of
22426 rtl_opt_pass along with...
22427 (pass_data_rtl_loop_init): ...new pass_data instance and...
22428 (make_pass_rtl_loop_init): ...new function.
22429 (pass_rtl_loop_done): Convert from a global struct to a subclass of
22430 rtl_opt_pass along with...
22431 (pass_data_rtl_loop_done): ...new pass_data instance and...
22432 (make_pass_rtl_loop_done): ...new function.
22433 (pass_rtl_move_loop_invariants): Convert from a global struct to a
22434 subclass of rtl_opt_pass along with...
22435 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
22436 (make_pass_rtl_move_loop_invariants): ...new function.
22437 (pass_rtl_unswitch): Convert from a global struct to a subclass of
22438 rtl_opt_pass along with...
22439 (pass_data_rtl_unswitch): ...new pass_data instance and...
22440 (make_pass_rtl_unswitch): ...new function.
22441 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
22442 subclass of rtl_opt_pass along with...
22443 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
22444 and...
22445 (make_pass_rtl_unroll_and_peel_loops): ...new function.
22446 (pass_rtl_doloop): Convert from a global struct to a subclass of
22447 rtl_opt_pass along with...
22448 (pass_data_rtl_doloop): ...new pass_data instance and...
22449 (make_pass_rtl_doloop): ...new function.
22450 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
22451 a subclass of rtl_opt_pass along with...
22452 (pass_data_lower_subreg): ...new pass_data instance and...
22453 (make_pass_lower_subreg): ...new function.
22454 (pass_lower_subreg2): Convert from a global struct to a subclass of
22455 rtl_opt_pass along with...
22456 (pass_data_lower_subreg2): ...new pass_data instance and...
22457 (make_pass_lower_subreg2): ...new function.
22458 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
22459 struct to a subclass of ipa_opt_pass_d along with...
22460 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
22461 (make_pass_ipa_lto_gimple_out): ...new function.
22462 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
22463 of ipa_opt_pass_d along with...
22464 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
22465 (make_pass_ipa_lto_finish_out): ...new function.
22466 * mode-switching.c (pass_mode_switching): Convert from a global struct
22467 to a subclass of rtl_opt_pass along with...
22468 (pass_data_mode_switching): ...new pass_data instance and...
22469 (make_pass_mode_switching): ...new function.
22470 * modulo-sched.c (pass_sms): Convert from a global struct to a
22471 subclass of rtl_opt_pass along with...
22472 (pass_data_sms): ...new pass_data instance and...
22473 (make_pass_sms): ...new function.
22474 * omp-low.c (pass_expand_omp): Convert from a global struct to a
22475 subclass of gimple_opt_pass along with...
22476 (pass_data_expand_omp): ...new pass_data instance and...
22477 (make_pass_expand_omp): ...new function.
22478 (pass_lower_omp): Convert from a global struct to a subclass of
22479 gimple_opt_pass along with...
22480 (pass_data_lower_omp): ...new pass_data instance and...
22481 (make_pass_lower_omp): ...new function.
22482 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
22483 of gimple_opt_pass along with...
22484 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
22485 (make_pass_diagnose_omp_blocks): ...new function.
22486 * passes.c (pass_early_local_passes): Convert from a global struct to
22487 a subclass of simple_ipa_opt_pass along with...
22488 (pass_data_early_local_passes): ...new pass_data instance and...
22489 (make_pass_early_local_passes): ...new function.
22490 (pass_all_early_optimizations): Convert from a global struct to a
22491 subclass of gimple_opt_pass along with...
22492 (pass_data_all_early_optimizations): ...new pass_data instance and...
22493 (make_pass_all_early_optimizations): ...new function.
22494 (pass_all_optimizations): Convert from a global struct to a subclass
22495 of gimple_opt_pass along with...
22496 (pass_data_all_optimizations): ...new pass_data instance and...
22497 (make_pass_all_optimizations): ...new function.
22498 (pass_all_optimizations_g): Convert from a global struct to a subclass
22499 of gimple_opt_pass along with...
22500 (pass_data_all_optimizations_g): ...new pass_data instance and...
22501 (make_pass_all_optimizations_g): ...new function.
22502 (pass_rest_of_compilation): Convert from a global struct to a subclass
22503 of rtl_opt_pass along with...
22504 (pass_data_rest_of_compilation): ...new pass_data instance and...
22505 (make_pass_rest_of_compilation): ...new function.
22506 (pass_postreload): Convert from a global struct to a subclass of
22507 rtl_opt_pass along with...
22508 (pass_data_postreload): ...new pass_data instance and...
22509 (make_pass_postreload): ...new function.
22510 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
22511 subclass of rtl_opt_pass along with...
22512 (pass_data_gcse2): ...new pass_data instance and...
22513 (make_pass_gcse2): ...new function.
22514 * postreload.c (pass_postreload_cse): Convert from a global struct to
22515 a subclass of rtl_opt_pass along with...
22516 (pass_data_postreload_cse): ...new pass_data instance and...
22517 (make_pass_postreload_cse): ...new function.
22518 * predict.c (pass_profile): Convert from a global struct to a subclass
22519 of gimple_opt_pass along with...
22520 (pass_data_profile): ...new pass_data instance and...
22521 (make_pass_profile): ...new function.
22522 (pass_strip_predict_hints): Convert from a global struct to a subclass
22523 of gimple_opt_pass along with...
22524 (pass_data_strip_predict_hints): ...new pass_data instance and...
22525 (make_pass_strip_predict_hints): ...new function.
22526 * recog.c (pass_peephole2): Convert from a global struct to a subclass
22527 of rtl_opt_pass along with...
22528 (pass_data_peephole2): ...new pass_data instance and...
22529 (make_pass_peephole2): ...new function.
22530 (pass_split_all_insns): Convert from a global struct to a subclass of
22531 rtl_opt_pass along with...
22532 (pass_data_split_all_insns): ...new pass_data instance and...
22533 (make_pass_split_all_insns): ...new function.
22534 (pass_split_after_reload): Convert from a global struct to a subclass
22535 of rtl_opt_pass along with...
22536 (pass_data_split_after_reload): ...new pass_data instance and...
22537 (make_pass_split_after_reload): ...new function.
22538 (pass_split_before_regstack): Convert from a global struct to a
22539 subclass of rtl_opt_pass along with...
22540 (pass_data_split_before_regstack): ...new pass_data instance and...
22541 (make_pass_split_before_regstack): ...new function.
22542 (pass_split_before_sched2): Convert from a global struct to a subclass
22543 of rtl_opt_pass along with...
22544 (pass_data_split_before_sched2): ...new pass_data instance and...
22545 (make_pass_split_before_sched2): ...new function.
22546 (pass_split_for_shorten_branches): Convert from a global struct to a
22547 subclass of rtl_opt_pass along with...
22548 (pass_data_split_for_shorten_branches): ...new pass_data instance
22549 and...
22550 (make_pass_split_for_shorten_branches): ...new function.
22551 * ree.c (pass_ree): Convert from a global struct to a subclass of
22552 rtl_opt_pass along with...
22553 (pass_data_ree): ...new pass_data instance and...
22554 (make_pass_ree): ...new function.
22555 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
22556 subclass of rtl_opt_pass along with...
22557 (pass_data_stack_regs): ...new pass_data instance and...
22558 (make_pass_stack_regs): ...new function.
22559 (pass_stack_regs_run): Convert from a global struct to a subclass of
22560 rtl_opt_pass along with...
22561 (pass_data_stack_regs_run): ...new pass_data instance and...
22562 (make_pass_stack_regs_run): ...new function.
22563 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
22564 subclass of rtl_opt_pass along with...
22565 (pass_data_cprop_hardreg): ...new pass_data instance and...
22566 (make_pass_cprop_hardreg): ...new function.
22567 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
22568 subclass of rtl_opt_pass along with...
22569 (pass_data_reginfo_init): ...new pass_data instance and...
22570 (make_pass_reginfo_init): ...new function.
22571 * regmove.c (pass_regmove): Convert from a global struct to a subclass
22572 of rtl_opt_pass along with...
22573 (pass_data_regmove): ...new pass_data instance and...
22574 (make_pass_regmove): ...new function.
22575 * regrename.c (pass_regrename): Convert from a global struct to a
22576 subclass of rtl_opt_pass along with...
22577 (pass_data_regrename): ...new pass_data instance and...
22578 (make_pass_regrename): ...new function.
22579 * reorg.c (pass_delay_slots): Convert from a global struct to a
22580 subclass of rtl_opt_pass along with...
22581 (pass_data_delay_slots): ...new pass_data instance and...
22582 (make_pass_delay_slots): ...new function.
22583 (pass_machine_reorg): Convert from a global struct to a subclass of
22584 rtl_opt_pass along with...
22585 (pass_data_machine_reorg): ...new pass_data instance and...
22586 (make_pass_machine_reorg): ...new function.
22587 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
22588 of rtl_opt_pass along with...
22589 (pass_data_sched): ...new pass_data instance and...
22590 (make_pass_sched): ...new function.
22591 (pass_sched2): Convert from a global struct to a subclass of
22592 rtl_opt_pass along with...
22593 (pass_data_sched2): ...new pass_data instance and...
22594 (make_pass_sched2): ...new function.
22595 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
22596 to a subclass of rtl_opt_pass along with...
22597 (pass_data_stack_ptr_mod): ...new pass_data instance and...
22598 (make_pass_stack_ptr_mod): ...new function.
22599 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
22600 to a subclass of rtl_opt_pass along with...
22601 (pass_data_rtl_store_motion): ...new pass_data instance and...
22602 (make_pass_rtl_store_motion): ...new function.
22603 * tracer.c (pass_tracer): Convert from a global struct to a subclass
22604 of gimple_opt_pass along with...
22605 (pass_data_tracer): ...new pass_data instance and...
22606 (make_pass_tracer): ...new function.
22607 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
22608 to a subclass of gimple_opt_pass along with...
22609 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
22610 (make_pass_diagnose_tm_blocks): ...new function.
22611 (pass_lower_tm): Convert from a global struct to a subclass of
22612 gimple_opt_pass along with...
22613 (pass_data_lower_tm): ...new pass_data instance and...
22614 (make_pass_lower_tm): ...new function.
22615 (pass_tm_init): Convert from a global struct to a subclass of
22616 gimple_opt_pass along with...
22617 (pass_data_tm_init): ...new pass_data instance and...
22618 (make_pass_tm_init): ...new function.
22619 (pass_tm_mark): Convert from a global struct to a subclass of
22620 gimple_opt_pass along with...
22621 (pass_data_tm_mark): ...new pass_data instance and...
22622 (make_pass_tm_mark): ...new function.
22623 (pass_tm_edges): Convert from a global struct to a subclass of
22624 gimple_opt_pass along with...
22625 (pass_data_tm_edges): ...new pass_data instance and...
22626 (make_pass_tm_edges): ...new function.
22627 (pass_tm_memopt): Convert from a global struct to a subclass of
22628 gimple_opt_pass along with...
22629 (pass_data_tm_memopt): ...new pass_data instance and...
22630 (make_pass_tm_memopt): ...new function.
22631 (pass_ipa_tm): Convert from a global struct to a subclass of
22632 simple_ipa_opt_pass along with...
22633 (pass_data_ipa_tm): ...new pass_data instance and...
22634 (make_pass_ipa_tm): ...new function.
22635 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
22636 subclass of gimple_opt_pass along with...
22637 (pass_data_call_cdce): ...new pass_data instance and...
22638 (make_pass_call_cdce): ...new function.
22639 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
22640 subclass of gimple_opt_pass along with...
22641 (pass_data_build_cfg): ...new pass_data instance and...
22642 (make_pass_build_cfg): ...new function.
22643 (pass_split_crit_edges): Convert from a global struct to a subclass of
22644 gimple_opt_pass along with...
22645 (pass_data_split_crit_edges): ...new pass_data instance and...
22646 (make_pass_split_crit_edges): ...new function.
22647 (pass_warn_function_return): Convert from a global struct to a
22648 subclass of gimple_opt_pass along with...
22649 (pass_data_warn_function_return): ...new pass_data instance and...
22650 (make_pass_warn_function_return): ...new function.
22651 (pass_warn_function_noreturn): Convert from a global struct to a
22652 subclass of gimple_opt_pass along with...
22653 (pass_data_warn_function_noreturn): ...new pass_data instance and...
22654 (make_pass_warn_function_noreturn): ...new function.
22655 (pass_warn_unused_result): Convert from a global struct to a subclass
22656 of gimple_opt_pass along with...
22657 (pass_data_warn_unused_result): ...new pass_data instance and...
22658 (make_pass_warn_unused_result): ...new function.
22659 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
22660 a subclass of gimple_opt_pass along with...
22661 (pass_data_merge_phi): ...new pass_data instance and...
22662 (make_pass_merge_phi): ...new function.
22663 * tree-complex.c (pass_lower_complex): Convert from a global struct to
22664 a subclass of gimple_opt_pass along with...
22665 (pass_data_lower_complex): ...new pass_data instance and...
22666 (make_pass_lower_complex): ...new function.
22667 (pass_lower_complex_O0): Convert from a global struct to a subclass of
22668 gimple_opt_pass along with...
22669 (pass_data_lower_complex_O0): ...new pass_data instance and...
22670 (make_pass_lower_complex_O0): ...new function.
22671 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
22672 subclass of gimple_opt_pass along with...
22673 (pass_data_lower_eh): ...new pass_data instance and...
22674 (make_pass_lower_eh): ...new function.
22675 (pass_refactor_eh): Convert from a global struct to a subclass of
22676 gimple_opt_pass along with...
22677 (pass_data_refactor_eh): ...new pass_data instance and...
22678 (make_pass_refactor_eh): ...new function.
22679 (pass_lower_resx): Convert from a global struct to a subclass of
22680 gimple_opt_pass along with...
22681 (pass_data_lower_resx): ...new pass_data instance and...
22682 (make_pass_lower_resx): ...new function.
22683 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
22684 of gimple_opt_pass along with...
22685 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
22686 (make_pass_lower_eh_dispatch): ...new function.
22687 (pass_cleanup_eh): Convert from a global struct to a subclass of
22688 gimple_opt_pass along with...
22689 (pass_data_cleanup_eh): ...new pass_data instance and...
22690 (make_pass_cleanup_eh): ...new function.
22691 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
22692 to a subclass of simple_ipa_opt_pass along with...
22693 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
22694 (make_pass_ipa_lower_emutls): ...new function.
22695 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
22696 a subclass of gimple_opt_pass along with...
22697 (pass_data_if_conversion): ...new pass_data instance and...
22698 (make_pass_if_conversion): ...new function.
22699 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
22700 subclass of gimple_opt_pass along with...
22701 (pass_data_build_ssa): ...new pass_data instance and...
22702 (make_pass_build_ssa): ...new function.
22703 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
22704 global struct to a subclass of gimple_opt_pass along with...
22705 (pass_data_loop_distribution): ...new pass_data instance and...
22706 (make_pass_loop_distribution): ...new function.
22707 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
22708 subclass of gimple_opt_pass along with...
22709 (pass_data_mudflap_1): ...new pass_data instance and...
22710 (make_pass_mudflap_1): ...new function.
22711 (pass_mudflap_2): Convert from a global struct to a subclass of
22712 gimple_opt_pass along with...
22713 (pass_data_mudflap_2): ...new pass_data instance and...
22714 (make_pass_mudflap_2): ...new function.
22715 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
22716 subclass of gimple_opt_pass along with...
22717 (pass_data_mudflap_1): ...new pass_data instance and...
22718 (make_pass_mudflap_1): ...new function.
22719 (pass_mudflap_2): Convert from a global struct to a subclass of
22720 gimple_opt_pass along with...
22721 (pass_data_mudflap_2): ...new pass_data instance and...
22722 (make_pass_mudflap_2): ...new function.
22723 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
22724 gimple_opt_pass along with...
22725 (pass_data_nrv): ...new pass_data instance and...
22726 (make_pass_nrv): ...new function.
22727 (pass_return_slot): Convert from a global struct to a subclass of
22728 gimple_opt_pass along with...
22729 (pass_data_return_slot): ...new pass_data instance and...
22730 (make_pass_return_slot): ...new function.
22731 * tree-object-size.c (pass_object_sizes): Convert from a global struct
22732 to a subclass of gimple_opt_pass along with...
22733 (pass_data_object_sizes): ...new pass_data instance and...
22734 (make_pass_object_sizes): ...new function.
22735 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
22736 global struct to a subclass of gimple_opt_pass along with...
22737 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
22738 and...
22739 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22740 (pass_fixup_cfg): Convert from a global struct to a subclass of
22741 gimple_opt_pass along with...
22742 (pass_data_fixup_cfg): ...new pass_data instance and...
22743 (make_pass_fixup_cfg): ...new function.
22744 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
22745 (make_pass_mudflap_1): ...new function.
22746 (pass_mudflap_2): Replace declaration with that of...
22747 (make_pass_mudflap_2): ...new function.
22748 (pass_asan): Replace declaration with that of...
22749 (make_pass_asan): ...new function.
22750 (pass_asan_O0): Replace declaration with that of...
22751 (make_pass_asan_O0): ...new function.
22752 (pass_tsan): Replace declaration with that of...
22753 (make_pass_tsan): ...new function.
22754 (pass_tsan_O0): Replace declaration with that of...
22755 (make_pass_tsan_O0): ...new function.
22756 (pass_lower_cf): Replace declaration with that of...
22757 (make_pass_lower_cf): ...new function.
22758 (pass_refactor_eh): Replace declaration with that of...
22759 (make_pass_refactor_eh): ...new function.
22760 (pass_lower_eh): Replace declaration with that of...
22761 (make_pass_lower_eh): ...new function.
22762 (pass_lower_eh_dispatch): Replace declaration with that of...
22763 (make_pass_lower_eh_dispatch): ...new function.
22764 (pass_lower_resx): Replace declaration with that of...
22765 (make_pass_lower_resx): ...new function.
22766 (pass_build_cfg): Replace declaration with that of...
22767 (make_pass_build_cfg): ...new function.
22768 (pass_early_tree_profile): Replace declaration with that of...
22769 (make_pass_early_tree_profile): ...new function.
22770 (pass_cleanup_eh): Replace declaration with that of...
22771 (make_pass_cleanup_eh): ...new function.
22772 (pass_sra): Replace declaration with that of...
22773 (make_pass_sra): ...new function.
22774 (pass_sra_early): Replace declaration with that of...
22775 (make_pass_sra_early): ...new function.
22776 (pass_early_ipa_sra): Replace declaration with that of...
22777 (make_pass_early_ipa_sra): ...new function.
22778 (pass_tail_recursion): Replace declaration with that of...
22779 (make_pass_tail_recursion): ...new function.
22780 (pass_tail_calls): Replace declaration with that of...
22781 (make_pass_tail_calls): ...new function.
22782 (pass_tree_loop): Replace declaration with that of...
22783 (make_pass_tree_loop): ...new function.
22784 (pass_tree_loop_init): Replace declaration with that of...
22785 (make_pass_tree_loop_init): ...new function.
22786 (pass_lim): Replace declaration with that of...
22787 (make_pass_lim): ...new function.
22788 (pass_tree_unswitch): Replace declaration with that of...
22789 (make_pass_tree_unswitch): ...new function.
22790 (pass_predcom): Replace declaration with that of...
22791 (make_pass_predcom): ...new function.
22792 (pass_iv_canon): Replace declaration with that of...
22793 (make_pass_iv_canon): ...new function.
22794 (pass_scev_cprop): Replace declaration with that of...
22795 (make_pass_scev_cprop): ...new function.
22796 (pass_empty_loop): Replace declaration with that of...
22797 (make_pass_empty_loop): ...new function.
22798 (pass_record_bounds): Replace declaration with that of...
22799 (make_pass_record_bounds): ...new function.
22800 (pass_graphite): Replace declaration with that of...
22801 (make_pass_graphite): ...new function.
22802 (pass_graphite_transforms): Replace declaration with that of...
22803 (make_pass_graphite_transforms): ...new function.
22804 (pass_if_conversion): Replace declaration with that of...
22805 (make_pass_if_conversion): ...new function.
22806 (pass_loop_distribution): Replace declaration with that of...
22807 (make_pass_loop_distribution): ...new function.
22808 (pass_vectorize): Replace declaration with that of...
22809 (make_pass_vectorize): ...new function.
22810 (pass_slp_vectorize): Replace declaration with that of...
22811 (make_pass_slp_vectorize): ...new function.
22812 (pass_complete_unroll): Replace declaration with that of...
22813 (make_pass_complete_unroll): ...new function.
22814 (pass_complete_unrolli): Replace declaration with that of...
22815 (make_pass_complete_unrolli): ...new function.
22816 (pass_parallelize_loops): Replace declaration with that of...
22817 (make_pass_parallelize_loops): ...new function.
22818 (pass_loop_prefetch): Replace declaration with that of...
22819 (make_pass_loop_prefetch): ...new function.
22820 (pass_iv_optimize): Replace declaration with that of...
22821 (make_pass_iv_optimize): ...new function.
22822 (pass_tree_loop_done): Replace declaration with that of...
22823 (make_pass_tree_loop_done): ...new function.
22824 (pass_ch): Replace declaration with that of...
22825 (make_pass_ch): ...new function.
22826 (pass_ccp): Replace declaration with that of...
22827 (make_pass_ccp): ...new function.
22828 (pass_phi_only_cprop): Replace declaration with that of...
22829 (make_pass_phi_only_cprop): ...new function.
22830 (pass_build_ssa): Replace declaration with that of...
22831 (make_pass_build_ssa): ...new function.
22832 (pass_build_alias): Replace declaration with that of...
22833 (make_pass_build_alias): ...new function.
22834 (pass_build_ealias): Replace declaration with that of...
22835 (make_pass_build_ealias): ...new function.
22836 (pass_dominator): Replace declaration with that of...
22837 (make_pass_dominator): ...new function.
22838 (pass_dce): Replace declaration with that of...
22839 (make_pass_dce): ...new function.
22840 (pass_dce_loop): Replace declaration with that of...
22841 (make_pass_dce_loop): ...new function.
22842 (pass_cd_dce): Replace declaration with that of...
22843 (make_pass_cd_dce): ...new function.
22844 (pass_call_cdce): Replace declaration with that of...
22845 (make_pass_call_cdce): ...new function.
22846 (pass_merge_phi): Replace declaration with that of...
22847 (make_pass_merge_phi): ...new function.
22848 (pass_split_crit_edges): Replace declaration with that of...
22849 (make_pass_split_crit_edges): ...new function.
22850 (pass_pre): Replace declaration with that of...
22851 (make_pass_pre): ...new function.
22852 (pass_profile): Replace declaration with that of...
22853 (make_pass_profile): ...new function.
22854 (pass_strip_predict_hints): Replace declaration with that of...
22855 (make_pass_strip_predict_hints): ...new function.
22856 (pass_lower_complex_O0): Replace declaration with that of...
22857 (make_pass_lower_complex_O0): ...new function.
22858 (pass_lower_complex): Replace declaration with that of...
22859 (make_pass_lower_complex): ...new function.
22860 (pass_lower_vector): Replace declaration with that of...
22861 (make_pass_lower_vector): ...new function.
22862 (pass_lower_vector_ssa): Replace declaration with that of...
22863 (make_pass_lower_vector_ssa): ...new function.
22864 (pass_lower_omp): Replace declaration with that of...
22865 (make_pass_lower_omp): ...new function.
22866 (pass_diagnose_omp_blocks): Replace declaration with that of...
22867 (make_pass_diagnose_omp_blocks): ...new function.
22868 (pass_expand_omp): Replace declaration with that of...
22869 (make_pass_expand_omp): ...new function.
22870 (pass_expand_omp_ssa): Replace declaration with that of...
22871 (make_pass_expand_omp_ssa): ...new function.
22872 (pass_object_sizes): Replace declaration with that of...
22873 (make_pass_object_sizes): ...new function.
22874 (pass_strlen): Replace declaration with that of...
22875 (make_pass_strlen): ...new function.
22876 (pass_fold_builtins): Replace declaration with that of...
22877 (make_pass_fold_builtins): ...new function.
22878 (pass_stdarg): Replace declaration with that of...
22879 (make_pass_stdarg): ...new function.
22880 (pass_early_warn_uninitialized): Replace declaration with that of...
22881 (make_pass_early_warn_uninitialized): ...new function.
22882 (pass_late_warn_uninitialized): Replace declaration with that of...
22883 (make_pass_late_warn_uninitialized): ...new function.
22884 (pass_cse_reciprocals): Replace declaration with that of...
22885 (make_pass_cse_reciprocals): ...new function.
22886 (pass_cse_sincos): Replace declaration with that of...
22887 (make_pass_cse_sincos): ...new function.
22888 (pass_optimize_bswap): Replace declaration with that of...
22889 (make_pass_optimize_bswap): ...new function.
22890 (pass_optimize_widening_mul): Replace declaration with that of...
22891 (make_pass_optimize_widening_mul): ...new function.
22892 (pass_warn_function_return): Replace declaration with that of...
22893 (make_pass_warn_function_return): ...new function.
22894 (pass_warn_function_noreturn): Replace declaration with that of...
22895 (make_pass_warn_function_noreturn): ...new function.
22896 (pass_cselim): Replace declaration with that of...
22897 (make_pass_cselim): ...new function.
22898 (pass_phiopt): Replace declaration with that of...
22899 (make_pass_phiopt): ...new function.
22900 (pass_forwprop): Replace declaration with that of...
22901 (make_pass_forwprop): ...new function.
22902 (pass_phiprop): Replace declaration with that of...
22903 (make_pass_phiprop): ...new function.
22904 (pass_tree_ifcombine): Replace declaration with that of...
22905 (make_pass_tree_ifcombine): ...new function.
22906 (pass_dse): Replace declaration with that of...
22907 (make_pass_dse): ...new function.
22908 (pass_nrv): Replace declaration with that of...
22909 (make_pass_nrv): ...new function.
22910 (pass_rename_ssa_copies): Replace declaration with that of...
22911 (make_pass_rename_ssa_copies): ...new function.
22912 (pass_sink_code): Replace declaration with that of...
22913 (make_pass_sink_code): ...new function.
22914 (pass_fre): Replace declaration with that of...
22915 (make_pass_fre): ...new function.
22916 (pass_check_data_deps): Replace declaration with that of...
22917 (make_pass_check_data_deps): ...new function.
22918 (pass_copy_prop): Replace declaration with that of...
22919 (make_pass_copy_prop): ...new function.
22920 (pass_vrp): Replace declaration with that of...
22921 (make_pass_vrp): ...new function.
22922 (pass_uncprop): Replace declaration with that of...
22923 (make_pass_uncprop): ...new function.
22924 (pass_return_slot): Replace declaration with that of...
22925 (make_pass_return_slot): ...new function.
22926 (pass_reassoc): Replace declaration with that of...
22927 (make_pass_reassoc): ...new function.
22928 (pass_rebuild_cgraph_edges): Replace declaration with that of...
22929 (make_pass_rebuild_cgraph_edges): ...new function.
22930 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
22931 (make_pass_remove_cgraph_callee_edges): ...new function.
22932 (pass_build_cgraph_edges): Replace declaration with that of...
22933 (make_pass_build_cgraph_edges): ...new function.
22934 (pass_local_pure_const): Replace declaration with that of...
22935 (make_pass_local_pure_const): ...new function.
22936 (pass_tracer): Replace declaration with that of...
22937 (make_pass_tracer): ...new function.
22938 (pass_warn_unused_result): Replace declaration with that of...
22939 (make_pass_warn_unused_result): ...new function.
22940 (pass_diagnose_tm_blocks): Replace declaration with that of...
22941 (make_pass_diagnose_tm_blocks): ...new function.
22942 (pass_lower_tm): Replace declaration with that of...
22943 (make_pass_lower_tm): ...new function.
22944 (pass_tm_init): Replace declaration with that of...
22945 (make_pass_tm_init): ...new function.
22946 (pass_tm_mark): Replace declaration with that of...
22947 (make_pass_tm_mark): ...new function.
22948 (pass_tm_memopt): Replace declaration with that of...
22949 (make_pass_tm_memopt): ...new function.
22950 (pass_tm_edges): Replace declaration with that of...
22951 (make_pass_tm_edges): ...new function.
22952 (pass_split_functions): Replace declaration with that of...
22953 (make_pass_split_functions): ...new function.
22954 (pass_feedback_split_functions): Replace declaration with that of...
22955 (make_pass_feedback_split_functions): ...new function.
22956 (pass_strength_reduction): Replace declaration with that of...
22957 (make_pass_strength_reduction): ...new function.
22958 (pass_ipa_lower_emutls): Replace declaration with that of...
22959 (make_pass_ipa_lower_emutls): ...new function.
22960 (pass_ipa_function_and_variable_visibility): Replace declaration with
22961 that of...
22962 (make_pass_ipa_function_and_variable_visibility): ...new function.
22963 (pass_ipa_tree_profile): Replace declaration with that of...
22964 (make_pass_ipa_tree_profile): ...new function.
22965 (pass_early_local_passes): Replace declaration with that of...
22966 (make_pass_early_local_passes): ...new function.
22967 (pass_ipa_whole_program_visibility): Replace declaration with that
22968 of...
22969 (make_pass_ipa_whole_program_visibility): ...new function.
22970 (pass_ipa_lto_gimple_out): Replace declaration with that of...
22971 (make_pass_ipa_lto_gimple_out): ...new function.
22972 (pass_ipa_increase_alignment): Replace declaration with that of...
22973 (make_pass_ipa_increase_alignment): ...new function.
22974 (pass_ipa_inline): Replace declaration with that of...
22975 (make_pass_ipa_inline): ...new function.
22976 (pass_ipa_free_lang_data): Replace declaration with that of...
22977 (make_pass_ipa_free_lang_data): ...new function.
22978 (pass_ipa_free_inline_summary): Replace declaration with that of...
22979 (make_pass_ipa_free_inline_summary): ...new function.
22980 (pass_ipa_cp): Replace declaration with that of...
22981 (make_pass_ipa_cp): ...new function.
22982 (pass_ipa_reference): Replace declaration with that of...
22983 (make_pass_ipa_reference): ...new function.
22984 (pass_ipa_pure_const): Replace declaration with that of...
22985 (make_pass_ipa_pure_const): ...new function.
22986 (pass_ipa_pta): Replace declaration with that of...
22987 (make_pass_ipa_pta): ...new function.
22988 (pass_ipa_lto_finish_out): Replace declaration with that of...
22989 (make_pass_ipa_lto_finish_out): ...new function.
22990 (pass_ipa_tm): Replace declaration with that of...
22991 (make_pass_ipa_tm): ...new function.
22992 (pass_ipa_profile): Replace declaration with that of...
22993 (make_pass_ipa_profile): ...new function.
22994 (pass_ipa_cdtor_merge): Replace declaration with that of...
22995 (make_pass_ipa_cdtor_merge): ...new function.
22996 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
22997 of...
22998 (make_pass_cleanup_cfg_post_optimizing): ...new function.
22999 (pass_init_datastructures): Replace declaration with that of...
23000 (make_pass_init_datastructures): ...new function.
23001 (pass_fixup_cfg): Replace declaration with that of...
23002 (make_pass_fixup_cfg): ...new function.
23003 (pass_expand): Replace declaration with that of...
23004 (make_pass_expand): ...new function.
23005 (pass_instantiate_virtual_regs): Replace declaration with that of...
23006 (make_pass_instantiate_virtual_regs): ...new function.
23007 (pass_rtl_fwprop): Replace declaration with that of...
23008 (make_pass_rtl_fwprop): ...new function.
23009 (pass_rtl_fwprop_addr): Replace declaration with that of...
23010 (make_pass_rtl_fwprop_addr): ...new function.
23011 (pass_jump): Replace declaration with that of...
23012 (make_pass_jump): ...new function.
23013 (pass_jump2): Replace declaration with that of...
23014 (make_pass_jump2): ...new function.
23015 (pass_lower_subreg): Replace declaration with that of...
23016 (make_pass_lower_subreg): ...new function.
23017 (pass_cse): Replace declaration with that of...
23018 (make_pass_cse): ...new function.
23019 (pass_fast_rtl_dce): Replace declaration with that of...
23020 (make_pass_fast_rtl_dce): ...new function.
23021 (pass_ud_rtl_dce): Replace declaration with that of...
23022 (make_pass_ud_rtl_dce): ...new function.
23023 (pass_rtl_dce): Replace declaration with that of...
23024 (make_pass_rtl_dce): ...new function.
23025 (pass_rtl_dse1): Replace declaration with that of...
23026 (make_pass_rtl_dse1): ...new function.
23027 (pass_rtl_dse2): Replace declaration with that of...
23028 (make_pass_rtl_dse2): ...new function.
23029 (pass_rtl_dse3): Replace declaration with that of...
23030 (make_pass_rtl_dse3): ...new function.
23031 (pass_rtl_cprop): Replace declaration with that of...
23032 (make_pass_rtl_cprop): ...new function.
23033 (pass_rtl_pre): Replace declaration with that of...
23034 (make_pass_rtl_pre): ...new function.
23035 (pass_rtl_hoist): Replace declaration with that of...
23036 (make_pass_rtl_hoist): ...new function.
23037 (pass_rtl_store_motion): Replace declaration with that of...
23038 (make_pass_rtl_store_motion): ...new function.
23039 (pass_cse_after_global_opts): Replace declaration with that of...
23040 (make_pass_cse_after_global_opts): ...new function.
23041 (pass_rtl_ifcvt): Replace declaration with that of...
23042 (make_pass_rtl_ifcvt): ...new function.
23043 (pass_into_cfg_layout_mode): Replace declaration with that of...
23044 (make_pass_into_cfg_layout_mode): ...new function.
23045 (pass_outof_cfg_layout_mode): Replace declaration with that of...
23046 (make_pass_outof_cfg_layout_mode): ...new function.
23047 (pass_loop2): Replace declaration with that of...
23048 (make_pass_loop2): ...new function.
23049 (pass_rtl_loop_init): Replace declaration with that of...
23050 (make_pass_rtl_loop_init): ...new function.
23051 (pass_rtl_move_loop_invariants): Replace declaration with that of...
23052 (make_pass_rtl_move_loop_invariants): ...new function.
23053 (pass_rtl_unswitch): Replace declaration with that of...
23054 (make_pass_rtl_unswitch): ...new function.
23055 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
23056 (make_pass_rtl_unroll_and_peel_loops): ...new function.
23057 (pass_rtl_doloop): Replace declaration with that of...
23058 (make_pass_rtl_doloop): ...new function.
23059 (pass_rtl_loop_done): Replace declaration with that of...
23060 (make_pass_rtl_loop_done): ...new function.
23061 (pass_web): Replace declaration with that of...
23062 (make_pass_web): ...new function.
23063 (pass_cse2): Replace declaration with that of...
23064 (make_pass_cse2): ...new function.
23065 (pass_df_initialize_opt): Replace declaration with that of...
23066 (make_pass_df_initialize_opt): ...new function.
23067 (pass_df_initialize_no_opt): Replace declaration with that of...
23068 (make_pass_df_initialize_no_opt): ...new function.
23069 (pass_reginfo_init): Replace declaration with that of...
23070 (make_pass_reginfo_init): ...new function.
23071 (pass_inc_dec): Replace declaration with that of...
23072 (make_pass_inc_dec): ...new function.
23073 (pass_stack_ptr_mod): Replace declaration with that of...
23074 (make_pass_stack_ptr_mod): ...new function.
23075 (pass_initialize_regs): Replace declaration with that of...
23076 (make_pass_initialize_regs): ...new function.
23077 (pass_combine): Replace declaration with that of...
23078 (make_pass_combine): ...new function.
23079 (pass_if_after_combine): Replace declaration with that of...
23080 (make_pass_if_after_combine): ...new function.
23081 (pass_ree): Replace declaration with that of...
23082 (make_pass_ree): ...new function.
23083 (pass_partition_blocks): Replace declaration with that of...
23084 (make_pass_partition_blocks): ...new function.
23085 (pass_match_asm_constraints): Replace declaration with that of...
23086 (make_pass_match_asm_constraints): ...new function.
23087 (pass_regmove): Replace declaration with that of...
23088 (make_pass_regmove): ...new function.
23089 (pass_split_all_insns): Replace declaration with that of...
23090 (make_pass_split_all_insns): ...new function.
23091 (pass_fast_rtl_byte_dce): Replace declaration with that of...
23092 (make_pass_fast_rtl_byte_dce): ...new function.
23093 (pass_lower_subreg2): Replace declaration with that of...
23094 (make_pass_lower_subreg2): ...new function.
23095 (pass_mode_switching): Replace declaration with that of...
23096 (make_pass_mode_switching): ...new function.
23097 (pass_sms): Replace declaration with that of...
23098 (make_pass_sms): ...new function.
23099 (pass_sched): Replace declaration with that of...
23100 (make_pass_sched): ...new function.
23101 (pass_ira): Replace declaration with that of...
23102 (make_pass_ira): ...new function.
23103 (pass_reload): Replace declaration with that of...
23104 (make_pass_reload): ...new function.
23105 (pass_clean_state): Replace declaration with that of...
23106 (make_pass_clean_state): ...new function.
23107 (pass_branch_prob): Replace declaration with that of...
23108 (make_pass_branch_prob): ...new function.
23109 (pass_value_profile_transformations): Replace declaration with that
23110 of...
23111 (make_pass_value_profile_transformations): ...new function.
23112 (pass_postreload_cse): Replace declaration with that of...
23113 (make_pass_postreload_cse): ...new function.
23114 (pass_gcse2): Replace declaration with that of...
23115 (make_pass_gcse2): ...new function.
23116 (pass_split_after_reload): Replace declaration with that of...
23117 (make_pass_split_after_reload): ...new function.
23118 (pass_branch_target_load_optimize1): Replace declaration with that
23119 of...
23120 (make_pass_branch_target_load_optimize1): ...new function.
23121 (pass_thread_prologue_and_epilogue): Replace declaration with that
23122 of...
23123 (make_pass_thread_prologue_and_epilogue): ...new function.
23124 (pass_stack_adjustments): Replace declaration with that of...
23125 (make_pass_stack_adjustments): ...new function.
23126 (pass_peephole2): Replace declaration with that of...
23127 (make_pass_peephole2): ...new function.
23128 (pass_if_after_reload): Replace declaration with that of...
23129 (make_pass_if_after_reload): ...new function.
23130 (pass_regrename): Replace declaration with that of...
23131 (make_pass_regrename): ...new function.
23132 (pass_cprop_hardreg): Replace declaration with that of...
23133 (make_pass_cprop_hardreg): ...new function.
23134 (pass_reorder_blocks): Replace declaration with that of...
23135 (make_pass_reorder_blocks): ...new function.
23136 (pass_branch_target_load_optimize2): Replace declaration with that
23137 of...
23138 (make_pass_branch_target_load_optimize2): ...new function.
23139 (pass_leaf_regs): Replace declaration with that of...
23140 (make_pass_leaf_regs): ...new function.
23141 (pass_split_before_sched2): Replace declaration with that of...
23142 (make_pass_split_before_sched2): ...new function.
23143 (pass_compare_elim_after_reload): Replace declaration with that of...
23144 (make_pass_compare_elim_after_reload): ...new function.
23145 (pass_sched2): Replace declaration with that of...
23146 (make_pass_sched2): ...new function.
23147 (pass_stack_regs): Replace declaration with that of...
23148 (make_pass_stack_regs): ...new function.
23149 (pass_stack_regs_run): Replace declaration with that of...
23150 (make_pass_stack_regs_run): ...new function.
23151 (pass_df_finish): Replace declaration with that of...
23152 (make_pass_df_finish): ...new function.
23153 (pass_compute_alignments): Replace declaration with that of...
23154 (make_pass_compute_alignments): ...new function.
23155 (pass_duplicate_computed_gotos): Replace declaration with that of...
23156 (make_pass_duplicate_computed_gotos): ...new function.
23157 (pass_variable_tracking): Replace declaration with that of...
23158 (make_pass_variable_tracking): ...new function.
23159 (pass_free_cfg): Replace declaration with that of...
23160 (make_pass_free_cfg): ...new function.
23161 (pass_machine_reorg): Replace declaration with that of...
23162 (make_pass_machine_reorg): ...new function.
23163 (pass_cleanup_barriers): Replace declaration with that of...
23164 (make_pass_cleanup_barriers): ...new function.
23165 (pass_delay_slots): Replace declaration with that of...
23166 (make_pass_delay_slots): ...new function.
23167 (pass_split_for_shorten_branches): Replace declaration with that of...
23168 (make_pass_split_for_shorten_branches): ...new function.
23169 (pass_split_before_regstack): Replace declaration with that of...
23170 (make_pass_split_before_regstack): ...new function.
23171 (pass_convert_to_eh_region_ranges): Replace declaration with that
23172 of...
23173 (make_pass_convert_to_eh_region_ranges): ...new function.
23174 (pass_shorten_branches): Replace declaration with that of...
23175 (make_pass_shorten_branches): ...new function.
23176 (pass_set_nothrow_function_flags): Replace declaration with that of...
23177 (make_pass_set_nothrow_function_flags): ...new function.
23178 (pass_dwarf2_frame): Replace declaration with that of...
23179 (make_pass_dwarf2_frame): ...new function.
23180 (pass_final): Replace declaration with that of...
23181 (make_pass_final): ...new function.
23182 (pass_rtl_seqabstr): Replace declaration with that of...
23183 (make_pass_rtl_seqabstr): ...new function.
23184 (pass_release_ssa_names): Replace declaration with that of...
23185 (make_pass_release_ssa_names): ...new function.
23186 (pass_early_inline): Replace declaration with that of...
23187 (make_pass_early_inline): ...new function.
23188 (pass_inline_parameters): Replace declaration with that of...
23189 (make_pass_inline_parameters): ...new function.
23190 (pass_update_address_taken): Replace declaration with that of...
23191 (make_pass_update_address_taken): ...new function.
23192 (pass_convert_switch): Replace declaration with that of...
23193 (make_pass_convert_switch): ...new function.
23194 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
23195 to a subclass of simple_ipa_opt_pass along with...
23196 (pass_data_ipa_tree_profile): ...new pass_data instance and...
23197 (make_pass_ipa_tree_profile): ...new function.
23198 * tree-sra.c (pass_sra_early): Convert from a global struct to a
23199 subclass of gimple_opt_pass along with...
23200 (pass_data_sra_early): ...new pass_data instance and...
23201 (make_pass_sra_early): ...new function.
23202 (pass_sra): Convert from a global struct to a subclass of
23203 gimple_opt_pass along with...
23204 (pass_data_sra): ...new pass_data instance and...
23205 (make_pass_sra): ...new function.
23206 (pass_early_ipa_sra): Convert from a global struct to a subclass of
23207 gimple_opt_pass along with...
23208 (pass_data_early_ipa_sra): ...new pass_data instance and...
23209 (make_pass_early_ipa_sra): ...new function.
23210 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
23211 subclass of gimple_opt_pass along with...
23212 (pass_data_ccp): ...new pass_data instance and...
23213 (make_pass_ccp): ...new function.
23214 (pass_fold_builtins): Convert from a global struct to a subclass of
23215 gimple_opt_pass along with...
23216 (pass_data_fold_builtins): ...new pass_data instance and...
23217 (make_pass_fold_builtins): ...new function.
23218 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
23219 subclass of gimple_opt_pass along with...
23220 (pass_data_copy_prop): ...new pass_data instance and...
23221 (make_pass_copy_prop): ...new function.
23222 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
23223 global struct to a subclass of gimple_opt_pass along with...
23224 (pass_data_rename_ssa_copies): ...new pass_data instance and...
23225 (make_pass_rename_ssa_copies): ...new function.
23226 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
23227 subclass of gimple_opt_pass along with...
23228 (pass_data_dce): ...new pass_data instance and...
23229 (make_pass_dce): ...new function.
23230 (pass_dce_loop): Convert from a global struct to a subclass of
23231 gimple_opt_pass along with...
23232 (pass_data_dce_loop): ...new pass_data instance and...
23233 (make_pass_dce_loop): ...new function.
23234 (pass_cd_dce): Convert from a global struct to a subclass of
23235 gimple_opt_pass along with...
23236 (pass_data_cd_dce): ...new pass_data instance and...
23237 (make_pass_cd_dce): ...new function.
23238 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
23239 subclass of gimple_opt_pass along with...
23240 (pass_data_dominator): ...new pass_data instance and...
23241 (make_pass_dominator): ...new function.
23242 (pass_phi_only_cprop): Convert from a global struct to a subclass of
23243 gimple_opt_pass along with...
23244 (pass_data_phi_only_cprop): ...new pass_data instance and...
23245 (make_pass_phi_only_cprop): ...new function.
23246 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
23247 subclass of gimple_opt_pass along with...
23248 (pass_data_dse): ...new pass_data instance and...
23249 (make_pass_dse): ...new function.
23250 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
23251 a subclass of gimple_opt_pass along with...
23252 (pass_data_forwprop): ...new pass_data instance and...
23253 (make_pass_forwprop): ...new function.
23254 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
23255 struct to a subclass of gimple_opt_pass along with...
23256 (pass_data_tree_ifcombine): ...new pass_data instance and...
23257 (make_pass_tree_ifcombine): ...new function.
23258 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
23259 subclass of gimple_opt_pass along with...
23260 (pass_data_ch): ...new pass_data instance and...
23261 (make_pass_ch): ...new function.
23262 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
23263 subclass of gimple_opt_pass along with...
23264 (pass_data_tree_loop): ...new pass_data instance and...
23265 (make_pass_tree_loop): ...new function.
23266 (pass_tree_loop_init): Convert from a global struct to a subclass of
23267 gimple_opt_pass along with...
23268 (pass_data_tree_loop_init): ...new pass_data instance and...
23269 (make_pass_tree_loop_init): ...new function.
23270 (pass_lim): Convert from a global struct to a subclass of
23271 gimple_opt_pass along with...
23272 (pass_data_lim): ...new pass_data instance and...
23273 (make_pass_lim): ...new function.
23274 (pass_tree_unswitch): Convert from a global struct to a subclass of
23275 gimple_opt_pass along with...
23276 (pass_data_tree_unswitch): ...new pass_data instance and...
23277 (make_pass_tree_unswitch): ...new function.
23278 (pass_predcom): Convert from a global struct to a subclass of
23279 gimple_opt_pass along with...
23280 (pass_data_predcom): ...new pass_data instance and...
23281 (make_pass_predcom): ...new function.
23282 (pass_vectorize): Convert from a global struct to a subclass of
23283 gimple_opt_pass along with...
23284 (pass_data_vectorize): ...new pass_data instance and...
23285 (make_pass_vectorize): ...new function.
23286 (pass_graphite): Convert from a global struct to a subclass of
23287 gimple_opt_pass along with...
23288 (pass_data_graphite): ...new pass_data instance and...
23289 (make_pass_graphite): ...new function.
23290 (pass_graphite_transforms): Convert from a global struct to a subclass
23291 of gimple_opt_pass along with...
23292 (pass_data_graphite_transforms): ...new pass_data instance and...
23293 (make_pass_graphite_transforms): ...new function.
23294 (pass_check_data_deps): Convert from a global struct to a subclass of
23295 gimple_opt_pass along with...
23296 (pass_data_check_data_deps): ...new pass_data instance and...
23297 (make_pass_check_data_deps): ...new function.
23298 (pass_iv_canon): Convert from a global struct to a subclass of
23299 gimple_opt_pass along with...
23300 (pass_data_iv_canon): ...new pass_data instance and...
23301 (make_pass_iv_canon): ...new function.
23302 (pass_scev_cprop): Convert from a global struct to a subclass of
23303 gimple_opt_pass along with...
23304 (pass_data_scev_cprop): ...new pass_data instance and...
23305 (make_pass_scev_cprop): ...new function.
23306 (pass_record_bounds): Convert from a global struct to a subclass of
23307 gimple_opt_pass along with...
23308 (pass_data_record_bounds): ...new pass_data instance and...
23309 (make_pass_record_bounds): ...new function.
23310 (pass_complete_unroll): Convert from a global struct to a subclass of
23311 gimple_opt_pass along with...
23312 (pass_data_complete_unroll): ...new pass_data instance and...
23313 (make_pass_complete_unroll): ...new function.
23314 (pass_complete_unrolli): Convert from a global struct to a subclass of
23315 gimple_opt_pass along with...
23316 (pass_data_complete_unrolli): ...new pass_data instance and...
23317 (make_pass_complete_unrolli): ...new function.
23318 (pass_parallelize_loops): Convert from a global struct to a subclass
23319 of gimple_opt_pass along with...
23320 (pass_data_parallelize_loops): ...new pass_data instance and...
23321 (make_pass_parallelize_loops): ...new function.
23322 (pass_loop_prefetch): Convert from a global struct to a subclass of
23323 gimple_opt_pass along with...
23324 (pass_data_loop_prefetch): ...new pass_data instance and...
23325 (make_pass_loop_prefetch): ...new function.
23326 (pass_iv_optimize): Convert from a global struct to a subclass of
23327 gimple_opt_pass along with...
23328 (pass_data_iv_optimize): ...new pass_data instance and...
23329 (make_pass_iv_optimize): ...new function.
23330 (pass_tree_loop_done): Convert from a global struct to a subclass of
23331 gimple_opt_pass along with...
23332 (pass_data_tree_loop_done): ...new pass_data instance and...
23333 (make_pass_tree_loop_done): ...new function.
23334 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
23335 struct to a subclass of gimple_opt_pass along with...
23336 (pass_data_cse_reciprocals): ...new pass_data instance and...
23337 (make_pass_cse_reciprocals): ...new function.
23338 (pass_cse_sincos): Convert from a global struct to a subclass of
23339 gimple_opt_pass along with...
23340 (pass_data_cse_sincos): ...new pass_data instance and...
23341 (make_pass_cse_sincos): ...new function.
23342 (pass_optimize_bswap): Convert from a global struct to a subclass of
23343 gimple_opt_pass along with...
23344 (pass_data_optimize_bswap): ...new pass_data instance and...
23345 (make_pass_optimize_bswap): ...new function.
23346 (pass_optimize_widening_mul): Convert from a global struct to a
23347 subclass of gimple_opt_pass along with...
23348 (pass_data_optimize_widening_mul): ...new pass_data instance and...
23349 (make_pass_optimize_widening_mul): ...new function.
23350 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
23351 subclass of gimple_opt_pass along with...
23352 (pass_data_phiopt): ...new pass_data instance and...
23353 (make_pass_phiopt): ...new function.
23354 (pass_cselim): Convert from a global struct to a subclass of
23355 gimple_opt_pass along with...
23356 (pass_data_cselim): ...new pass_data instance and...
23357 (make_pass_cselim): ...new function.
23358 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
23359 subclass of gimple_opt_pass along with...
23360 (pass_data_phiprop): ...new pass_data instance and...
23361 (make_pass_phiprop): ...new function.
23362 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
23363 subclass of gimple_opt_pass along with...
23364 (pass_data_pre): ...new pass_data instance and...
23365 (make_pass_pre): ...new function.
23366 (pass_fre): Convert from a global struct to a subclass of
23367 gimple_opt_pass along with...
23368 (pass_data_fre): ...new pass_data instance and...
23369 (make_pass_fre): ...new function.
23370 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
23371 subclass of gimple_opt_pass along with...
23372 (pass_data_reassoc): ...new pass_data instance and...
23373 (make_pass_reassoc): ...new function.
23374 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
23375 subclass of gimple_opt_pass along with...
23376 (pass_data_sink_code): ...new pass_data instance and...
23377 (make_pass_sink_code): ...new function.
23378 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
23379 subclass of gimple_opt_pass along with...
23380 (pass_data_strlen): ...new pass_data instance and...
23381 (make_pass_strlen): ...new function.
23382 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
23383 struct to a subclass of gimple_opt_pass along with...
23384 (pass_data_build_alias): ...new pass_data instance and...
23385 (make_pass_build_alias): ...new function.
23386 (pass_build_ealias): Convert from a global struct to a subclass of
23387 gimple_opt_pass along with...
23388 (pass_data_build_ealias): ...new pass_data instance and...
23389 (make_pass_build_ealias): ...new function.
23390 (pass_ipa_pta): Convert from a global struct to a subclass of
23391 simple_ipa_opt_pass along with...
23392 (pass_data_ipa_pta): ...new pass_data instance and...
23393 (make_pass_ipa_pta): ...new function.
23394 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
23395 subclass of gimple_opt_pass along with...
23396 (pass_data_uncprop): ...new pass_data instance and...
23397 (make_pass_uncprop): ...new function.
23398 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
23399 global struct to a subclass of gimple_opt_pass along with...
23400 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
23401 (make_pass_late_warn_uninitialized): ...new function.
23402 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
23403 to a subclass of gimple_opt_pass along with...
23404 (pass_data_init_datastructures): ...new pass_data instance and...
23405 (make_pass_init_datastructures): ...new function.
23406 (pass_early_warn_uninitialized): Convert from a global struct to a
23407 subclass of gimple_opt_pass along with...
23408 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
23409 (make_pass_early_warn_uninitialized): ...new function.
23410 (pass_update_address_taken): Convert from a global struct to a
23411 subclass of gimple_opt_pass along with...
23412 (pass_data_update_address_taken): ...new pass_data instance and...
23413 (make_pass_update_address_taken): ...new function.
23414 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
23415 struct to a subclass of gimple_opt_pass along with...
23416 (pass_data_release_ssa_names): ...new pass_data instance and...
23417 (make_pass_release_ssa_names): ...new function.
23418 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
23419 subclass of gimple_opt_pass along with...
23420 (pass_data_stdarg): ...new pass_data instance and...
23421 (make_pass_stdarg): ...new function.
23422 * tree-switch-conversion.c (pass_convert_switch): Convert from a
23423 global struct to a subclass of gimple_opt_pass along with...
23424 (pass_data_convert_switch): ...new pass_data instance and...
23425 (make_pass_convert_switch): ...new function.
23426 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
23427 to a subclass of gimple_opt_pass along with...
23428 (pass_data_tail_recursion): ...new pass_data instance and...
23429 (make_pass_tail_recursion): ...new function.
23430 (pass_tail_calls): Convert from a global struct to a subclass of
23431 gimple_opt_pass along with...
23432 (pass_data_tail_calls): ...new pass_data instance and...
23433 (make_pass_tail_calls): ...new function.
23434 * tree-vect-generic.c (pass_lower_vector): Convert from a global
23435 struct to a subclass of gimple_opt_pass along with...
23436 (pass_data_lower_vector): ...new pass_data instance and...
23437 (make_pass_lower_vector): ...new function.
23438 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
23439 gimple_opt_pass along with...
23440 (pass_data_lower_vector_ssa): ...new pass_data instance and...
23441 (make_pass_lower_vector_ssa): ...new function.
23442 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
23443 to a subclass of gimple_opt_pass along with...
23444 (pass_data_slp_vectorize): ...new pass_data instance and...
23445 (make_pass_slp_vectorize): ...new function.
23446 (pass_ipa_increase_alignment): Convert from a global struct to a
23447 subclass of simple_ipa_opt_pass along with...
23448 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
23449 (make_pass_ipa_increase_alignment): ...new function.
23450 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
23451 gimple_opt_pass along with...
23452 (pass_data_vrp): ...new pass_data instance and...
23453 (make_pass_vrp): ...new function.
23454 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
23455 subclass of simple_ipa_opt_pass along with...
23456 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
23457 (make_pass_ipa_free_lang_data): ...new function.
23458 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
23459 gimple_opt_pass along with...
23460 (pass_data_tsan): ...new pass_data instance and...
23461 (make_pass_tsan): ...new function.
23462 (pass_tsan_O0): Convert from a global struct to a subclass of
23463 gimple_opt_pass along with...
23464 (pass_data_tsan_O0): ...new pass_data instance and...
23465 (make_pass_tsan_O0): ...new function.
23466 * var-tracking.c (pass_variable_tracking): Convert from a global
23467 struct to a subclass of rtl_opt_pass along with...
23468 (pass_data_variable_tracking): ...new pass_data instance and...
23469 (make_pass_variable_tracking): ...new function.
23470 * web.c (pass_web): Convert from a global struct to a subclass of
23471 rtl_opt_pass along with...
23472 (pass_data_web): ...new pass_data instance and...
23473 (make_pass_web): ...new function.
23474 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
23475 declaration with that of...
23476 (make_pass_mode_switch_use): ...new function.
23477 (pass_resolve_sw_modes): Replace declaration with that of...
23478 (make_pass_resolve_sw_modes): ...new function.
23479 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
23480 from a global struct to a subclass of rtl_opt_pass along with...
23481 (pass_data_mode_switch_use): ...new pass_data instance and...
23482 (make_pass_mode_switch_use): ...new function.
23483 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
23484 from a global struct to a subclass of rtl_opt_pass along with...
23485 (pass_data_resolve_sw_modes): ...new pass_data instance and...
23486 (make_pass_resolve_sw_modes): ...new function.
23487 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
23488 struct to a subclass of rtl_opt_pass along with...
23489 (pass_data_insert_vzeroupper): ...new pass_data instance and...
23490 (make_pass_insert_vzeroupper): ...new function.
23491 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
23492 global struct to a subclass of rtl_opt_pass along with...
23493 (pass_data_work_around_errata): ...new pass_data instance and...
23494 (make_pass_work_around_errata): ...new function.
23495 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
23496 struct to a subclass of rtl_opt_pass along with...
23497 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
23498 (make_pass_mips_machine_reorg2): ...new function.
23499
23500 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23501
23502 * passes.c (pass_manager::operator new): New.
23503
23504 2013-08-05 David Malcolm <dmalcolm@redhat.com>
23505
23506 Handwritten part of conversion of passes to C++ classes.
23507
23508 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
23509 (toplev.o): Add dep on PASS_MANAGER_H.
23510 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
23511 of early local pases to reflect this moving from a global to a
23512 member of gcc::pass_manager.
23513 (cgraph_add_new_function): Likewise.
23514 * lto-cgraph.c (lto_output_node): Update for conversion of
23515 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
23516 * passes.c (opt_pass::clone): New.
23517 (opt_pass::gate): New.
23518 (opt_pass::execute): New.
23519 (opt_pass::opt_pass): New.
23520 (pass_manager::execute_early_local_passes): New.
23521 (pass_manager::execute_pass_mode_switching): new.
23522 (finish_optimization_passes): Convert to...
23523 (pass_manager::finish_optimization_passes): ...this.
23524 (finish_optimization_passes): Update for conversion of passes to
23525 C++ classes.
23526 (register_dump_files_1): Use has_gate since we cannot portably
23527 check a vtable entry against NULL.
23528 (dump_one_pass): Likewise.
23529 (ipa_write_summaries_2): Likewise.
23530 (ipa_write_optimization_summaries_1): Likewise.
23531 (ipa_read_summaries_1): Likewise.
23532 (ipa_read_optimization_summaries_1): Likewise.
23533 (execute_ipa_stmt_fixups): Likewise.
23534 (pass_manager::pass_manager): Rewrite pass-creation, invoking
23535 pass-creation functions rather than wiring up globals, and
23536 storing the results in fields of pass_manager generated using
23537 pass-instances.def.
23538 (pass_manager::dump_profile_report): Update for conversion of
23539 passes to C++ classes.
23540 (pass_manager::execute_ipa_summary_passes): Likewise.
23541 (execute_one_ipa_transform_pass): Likewise.
23542 (execute_one_pass): Use has_gate and has_execute since we cannot
23543 portably check a vtable entry against NULL.
23544 * pass_manager.h (pass_manager::finish_optimization_passes): New.
23545 (pass_manager): Use pass-instances.def to add fields for the
23546 various pass instances.
23547 * toplev.c (finalize): Update for move of
23548 finish_optimization_passes to a method of gcc::pass_manager.
23549 * toplev.h (finish_optimization_passes): Move to method of class
23550 pass_manager.
23551 * tree-pass.h (struct pass_data): New.
23552 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
23553 (opt_pass::gate): Convert to virtual function.
23554 (opt_pass::~opt_pass): New.
23555 (opt_pass::clone): New.
23556 (opt_pass::execute): Convert to virtual function.
23557 (opt_pass::opt_pass): New.
23558 (opt_pass::ctxt_): new.
23559 (gimple_opt_pass): Convert to subclass of opt_pass.
23560 (gimple_opt_pass::gimple_opt_pass): New.
23561 (rtl_opt_pass): Convert to subclass of opt_pass.
23562 (rtl_opt_pass::rtl_opt_pass): New.
23563 (ipa_opt_pass_d): Convert to subclass of opt_pass.
23564 (ipa_opt_pass_d::ipa_opt_pass_d): New.
23565 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
23566 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
23567 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
23568 invocation of pass_mode_switching to reflect this moving from a
23569 global to a member of gcc::pass_manager.
23570 (ix86_option_override): Rework how pass_insert_vzeroupper is
23571 added to the pass_manager to reflect autogenerated changes.
23572 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
23573
23574 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
23575
23576 PR rtl-optimization/57708
23577 * recog.c (peep2_find_free_register): Validate all regs in a
23578 multi-reg mode.
23579
23580 2013-08-05 Jan Hubicka <jh@suse.cz>
23581
23582 PR lto/57602
23583 * cgraph.c (verify_cgraph_node): Accept local flags from other
23584 partitions.
23585 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
23586 (function_and_variable_visibility): Likewise.
23587 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
23588
23589 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23590
23591 * graph.c (init_graph_slim_pretty_print): Remove.
23592 (print_graph_cfg): Do not call it. Use local pretty printer.
23593 (start_graph_dump): Likewise.
23594
23595 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23596
23597 * gimple-pretty-print.c (buffer): Remove.
23598 (initialized): Likewise.
23599 (maybe_init_pretty_print): Likewise.
23600 (print_gimple_stmt): Do not call it. Use non-static local
23601 pretty_printer variable.
23602 (print_gimple_expr): Likewise.
23603 (print_gimple_seq): Likewise.
23604 (gimple_dump_bb): Likewise.
23605
23606 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
23607
23608 * asan.c (asan_pp): Remove.
23609 (asan_pp_initialized): Likewise.
23610 (asan_pp_initialize): Likewise.
23611 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
23612 (asan_emit_stack_protection): Tidy. Use local pretty printer.
23613 (asan_add_global): Likewise.
23614
23615 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
23616
23617 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
23618 * diagnostic.h (diagnostic_flush_buffer): Adjust.
23619 * pretty-print.c (pp_formatted_text_data): Likewise.
23620 (pp_indent): Rename from pp_base_indent.
23621 (pp_format): Rename from pp_base_format.
23622 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
23623 (pp_format_verbatim): Rename from pp_base_format_verbatim.
23624 (pp_flush): Rename from pp_base_flush.
23625 (pp_set_line_maximum_length): Rename from
23626 pp_base_set_line_maximum_length.
23627 (pp_clear_output_area): Rename from pp_base_clear_output_area.
23628 (pp_set_prefix): Rename from pp_base_set_prefix.
23629 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
23630 (pp_emit_prefix): Rename from pp_base_emit_prefix.
23631 (pp_append_text): Rename from pp_base_append_text.
23632 (pp_formatted_text): Rename from pp_base_formatted_text.
23633 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
23634 (pp_remaining_character_count_for_line): Rename from
23635 pp_base_remaining_character_count_for_line.
23636 (pp_newline): Rename from pp_base_newline.
23637 (pp_character): Rename from pp_base_character.
23638 (pp_string): Rename from pp_base_string.
23639 (pp_maybe_space): Rename from pp_base_maybe_space.
23640 * asan.c (asan_pp_string): Adjust.
23641 (asan_emit_stack_protection): Likewise.
23642 (asan_add_global): Likewise.
23643 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
23644 * tree-mudflap.c (mf_varname_tree): Likewise.
23645 * tree-pretty-print.c (pp_tree_identifier): Rename from
23646 pp_base_tree_identifier.
23647 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
23648 Declare as function.
23649
23650 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23651
23652 * pretty-print.h (pp_bar_bar): New.
23653 (pp_ampersand_ampersand): Likewise.
23654 (pp_less_equal): Likewise.
23655 (pp_greater_equal): Likewise.
23656 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
23657 printer functions instead of pp_string or operators and punctuators.
23658 (dump_gimple_call): Likewise.
23659 (dump_gimple_omp_for): Likewise.
23660 (dump_gimple_transaction): Likewise.
23661 (dump_gimple_phi): Likewise.
23662 (pp_gimple_stmt_1): Likewise.
23663 * sched-vis.c (print_insn): Likewise.
23664 * tree-mudflap.c (mf_varname_tree): Likewise.
23665 * tree-pretty-print.c (dump_block_node): Likewise.
23666 (dump_generic_node): Likewise.
23667
23668 2013-08-02 Jan Hubicka <jh@suse.cz>
23669
23670 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
23671 boundaries.
23672 * lto-streamer-out.c (tree_is_indexable): Results decls and
23673 parm decls are not indexable.
23674 (DFS_write_tree_body): Do not follow args and results.
23675 (hash_tree): Likewise.
23676 (output_functions): Rearrange so struct function is needed
23677 only when real body is output; be able to also ouptut abstract
23678 functions; output DECL_ARGUMENTS and DECL_RESULT.
23679 (lto_output): When not in WPA, ale store abstract functions.
23680 (write_symbol): Do not care about RESULT_DECL.
23681 (output_symbol_p): Handle correctly sbtract decls.
23682 * lto-streamer-in.c (input_function): Rearrange so struct
23683 function can be NULL at entry; allow streaming of
23684 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
23685 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
23686 sanity check during LTO.
23687 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
23688 RESULT_DECl and DECL_ARGUMENTS.
23689 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23690 Likewise.
23691
23692 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
23693
23694 * pretty-print.h (pp_underscore): New.
23695 (pp_comma): Tidy.
23696 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
23697 printer functions instead of pp_character.
23698 (dump_binary_rhs): Likewise.
23699 (dump_ternary_rhs): Likewise.
23700 (dump_gimple_call_args): Likewise.
23701 (pp_points_to_solution): Likewise.
23702 (dump_gimple_call): Likewise.
23703 (dump_gimple_switch): Likewise.
23704 (dump_gimple_cond): Likewise.
23705 (dump_gimple_bind): Likewise.
23706 (dump_gimple_try): Likewise.
23707 (dump_gimple_omp_for): Likewise.
23708 (dump_gimple_omp_continue): Likewise.
23709 (dump_gimple_omp_single): Likewise.
23710 (dump_gimple_omp_sections): Likewise.
23711 (dump_gimple_omp_block): Likewise.
23712 (dump_gimple_omp_critical): Likewise.
23713 (dump_gimple_transaction): Likewise.
23714 (dump_gimple_asm): Likewise.
23715 (dump_gimple_phi): Likewise.
23716 (dump_gimple_omp_parallel): Likewise.
23717 (dump_gimple_omp_task): Likewise.
23718 (dump_gimple_omp_atomic_load): Likewise.
23719 (dump_gimple_omp_atomic_store): Likewise.
23720 (dump_gimple_mem_ops): Likewise.
23721 (pp_gimple_stmt_1): Likewise.
23722 (pp_cfg_jump): Likewise.
23723 (dump_implicit_edges): Likewise.
23724 (gimple_dump_bb_for_graph): Likewise.
23725 * graph.c (draw_cfg_node): Likewise.
23726 * langhooks.c (lhd_print_error_function): Likewise.
23727 * sched-vis.c (print_exp): Likewise.
23728 (print_value): Likewise.
23729 (print_pattern): Likewise.
23730 (print_insn): Likewise.
23731 (rtl_dump_bb_for_graph): Likewise.
23732 * tree-pretty-print.c (dump_function_declaration): Likewise.
23733 (dump_array_domain): Likewise.
23734 (dump_omp_clause): Likewise.
23735 (dump_location): Likewise.
23736 (dump_generic_node): Likewise.
23737 (print_struct_decl): Likewise.
23738 * diagnostic.c (diagnostic_show_locus): Use pp_space.
23739
23740 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
23741
23742 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
23743 candidate table when replacing a candidate statement.
23744 (replace_rhs_if_not_dup): Likewise.
23745 (replace_one_candidate): Likewise.
23746
23747 2013-08-02 Jan Hubicka <jh@suse.cz>
23748 Martin Liska <marxin.liska@gmail.com>
23749
23750 * cgraphunit.c (add_new_function): Fix logic when adding from
23751 late IPA pass.
23752 (assemble_thunk): Rename to ...
23753 (expand_thunk); .. this one; export; get it working with
23754 general functions; make produced gimple valid.
23755 * cgraph.h (expand_thunk): Declare.
23756
23757 2013-08-02 Jan Hubicka <jh@suse.cz>
23758
23759 * ipa-cp.c (gather_context_independent_values): Use
23760 ipa_get_param_move_cost.
23761 (get_replacement_map): Remove PARAM; move parameter folding
23762 into tree-inline.c
23763 (create_specialized_node): Update.
23764 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
23765 assert that we have gimple body; update move_cost.
23766 (count_formal_params): Assert that we have gimple body.
23767 (ipa_dump_param): New function.
23768 (ipa_alloc_node_params): Break out from ...
23769 (ipa_initialize_node_params): ... here.
23770 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
23771 (ipa_write_node_info): Stream move costs.
23772 (ipa_read_node_info): Read move costs.
23773 (ipa_update_after_lto_read): Do not recompute node params.
23774 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
23775 (ipa_get_param): Check we are not in WPA.
23776 (ipa_get_param_move_cost): New.
23777 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
23778 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
23779 parm numbers to be present.
23780
23781 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23782
23783 PR rtl-optimization/58048
23784 * lra-constraints.c (process_alt_operands): Don't check asm
23785 operand on register.
23786
23787 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
23788
23789 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
23790 the implied StoreLoad barrier for atomic operations if before.
23791
23792 2013-08-02 Jan Hubicka <jh@suse.cz>
23793 Martin Liska <marxin.liska@gmail.com>
23794
23795 * cgraph.c (cgraph_function_body_availability): Do not check
23796 cgraph flags.
23797 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
23798 symtab_node_availability): Declare.
23799 * ipa.c (can_replace_by_local_alias): New.
23800 (function_and_variable_visibility): Use it.
23801 * symtab.c (symtab_for_node_and_aliases,
23802 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
23803
23804 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
23805
23806 PR rtl-optimization/57963
23807 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
23808 (lra_constraints): Use them.
23809
23810 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
23811
23812 * config/arm/types.md (define_attr "type"): Add "load_acq"
23813 and "store_rel".
23814 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
23815 changes.
23816 (cortex_a53_store1): Likewise.
23817
23818 2013-08-01 Jan Hubicka <jh@suse.cz>
23819
23820 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
23821 partitions are not needed.
23822
23823 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
23824
23825 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
23826 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
23827 MAYBE_NON_Q_CLASS_P where appropriate.
23828
23829 2013-08-01 Jan Hubicka <jh@suse.cz>
23830
23831 * cgraph.h (release_function_body): Declare.
23832 * tree.c (free_lang_data_in_decl): Free, parameters and return values
23833 of unused delcarations.
23834
23835 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23836
23837 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
23838 RTL form when subtracting a constant.
23839
23840 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23841
23842 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
23843 Generate canonical plus rtx with negated immediate instead of minus
23844 where appropriate.
23845 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
23846
23847 2013-08-01 Jan Hubicka <jh@suse.cz>
23848
23849 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
23850 (cgraph_release_function_body): Likewise.
23851 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
23852 * cgraph.h (cgrpah_node): Rename abstract_and_needed
23853 to used_as_abstract_origin.
23854 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
23855 symbols used as abstract origins.
23856 * cgraphunit.c (analyze_functions): Update.
23857 * ipa.c (symtab_remove_unreachable_nodes): Recompute
23858 used_as_abstract_origin.
23859 * tree-inline.c (tree_function_versioning): Update
23860 used_as_abstract_origin; be ready for DECL_RESULT and
23861 DECL_ARGUMENTS to be NULL.
23862
23863 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
23864 for abstract functions.
23865 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
23866 real symbols.
23867
23868 2013-08-01 Jan Hubicka <jh@suse.cz>
23869
23870 * profile.c (compute_value_histograms): Fix thinko.
23871
23872 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23873
23874 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
23875 aarch-common-protos.h to extra_headers.
23876 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23877 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
23878 * config/aarch64/t-aarch64 (aarch-common.o): Define.
23879
23880 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
23881
23882 * config/aarch64/aarch64.md (define_attr "type"): Delete.
23883 Include "../arm/types.md". Define "type" attribute for all patterns.
23884 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
23885 attribute changes.
23886
23887 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
23888
23889 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
23890 to support power8 load fusion.
23891 (fusion_gpr_mem_load): Likewise.
23892
23893 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
23894
23895 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
23896 declarations for power8 load fusion.
23897 (emit_fusion_gpr_load): Likewise.
23898
23899 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
23900 tuning for power8, turn on fusion mode by default. Turn on sign
23901 extending fusion mode if normal fusion mode is on, and we are at
23902 -O2 or -O3.
23903 (fusion_gpr_load_p): New function, return true if we can fuse an
23904 addis instruction with a dependent load to a GPR.
23905 (emit_fusion_gpr_load): Emit the instructions for power8 load
23906 fusion to GPRs.
23907
23908 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
23909 (VSX load fusion peepholes): New peepholes to fuse together an
23910 addi instruction with a VSX load instruction.
23911
23912 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
23913 peepholes to fuse an addis instruction with a load to a GPR base
23914 register. If we are supporting sign extending fusions, convert
23915 sign extending loads to zero extending loads and add an explicit
23916 sign extension.
23917
23918 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23919
23920 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
23921 aarch-common-protos.h to extra_headers.
23922 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
23923 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
23924 (arm_early_store_addr_dep): Likewise.
23925 (arm_no_early_alu_shift_dep): Likewise.
23926 (arm_no_early_alu_shift_value_dep): Likewise.
23927 (arm_no_early_mul_dep): Likewise.
23928 (arm_no_early_store_addr_dep): Likewise.
23929 (arm_mac_accumulator_is_mul_result): Likewise.
23930 (arm_mac_accumulator_is_result): Likewise.
23931 * config/arm/aarch-common.c: ... here. New file.
23932 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
23933 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-protos.h: ... here. New file.
23942 * config/arm/t-arm (aarch-common.o): Define.
23943
23944 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
23945
23946 * config/arm/arm.md: Include new file "types.md".
23947 (define_attr "type"): Move from here to ...
23948 (define_attr "mul32"): Likewise.
23949 (define_attr "mul64"): Likewise.
23950 * config/arm/types.md: ... here. New file.
23951
23952 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
23953
23954 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
23955 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
23956
23957 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23958
23959 * gen-pass-instances.awk: Fix offset of substr().
23960
23961 2013-07-31 David Malcolm <dmalcolm@redhat.com>
23962
23963 * Makefile.in (pass-instances.def): New.
23964 (passes.o): Replace dependency on passes.def with one on
23965 pass-instances.def
23966
23967 * gen-pass-instances.awk: New.
23968
23969 * passes.c (pass_manager::pass_manager): Use pass-instances.def
23970 rather than passes.def, updating local definition of NEXT_PASS
23971 macro to add an extra NUM parameter (currently unused).
23972
23973 2013-07-30 David Malcolm <dmalcolm@redhat.com>
23974
23975 * Makefile.in (PASS_MANAGER_H): New.
23976 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
23977 (passes.o): Likewise.
23978 (statistics.o): Likewise.
23979 (cgraphunit.o): Likewise.
23980 (context.o): Depend on PASS_MANAGER_H.
23981
23982 * pass_manager.h: New.
23983
23984 * cgraphunit.c (cgraph_add_new_function): Update for moves
23985 of globals to fields of pass_manager.
23986 (analyze_function): Likewise.
23987 (expand_function): Likewise.
23988 (ipa_passes): Likewise.
23989 (compile): Likewise.
23990
23991 * context.c (context::context): New.
23992 * context.h (context::context): New.
23993 (context::get_passes): New.
23994 (context::passes_): New.
23995
23996 * lto-cgraph.c (input_node): Update for moves of globals to
23997 fields of pass_manager.
23998
23999 * passes.c (all_passes): Remove, in favor of a field of the
24000 same name within the new class pass_manager.
24001 (all_small_ipa_passes): Likewise.
24002 (all_lowering_passes): Likewise.
24003 (all_regular_ipa_passes): Likewise.
24004 (all_late_ipa_passes): Likewise.
24005 (all_lto_gen_passes): Likewise.
24006 (passes_by_id): Likewise.
24007 (passes_by_id_size): Likewise.
24008 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24009 the new class pass_manager.
24010 (set_pass_for_id): Convert to...
24011 (pass_manager::set_pass_for_id): ...method.
24012 (get_pass_for_id): Convert to...
24013 (pass_manager::get_pass_for_id): ...method.
24014 (register_one_dump_file): Move body of implementation into...
24015 (pass_manager::register_one_dump_file): ...here.
24016 (register_dump_files_1): Convert to...
24017 (pass_manager::register_dump_files_1): ...method.
24018 (register_dump_files): Convert to...
24019 (pass_manager::register_dump_files): ...method.
24020 (create_pass_tab): Update for moves of globals to fields of
24021 pass_manager.
24022 (dump_passes): Move body of implementation into...
24023 (pass_manager::dump_passes): ...here.
24024 (register_pass): Move body of implementation into...
24025 (pass_manager::register_pass): ...here.
24026 (init_optimization_passes): Convert into...
24027 (pass_manager::pass_manager): ...constructor for new
24028 pass_manager class, and initialize the pass_lists array.
24029 (check_profile_consistency): Update for moves of globals to
24030 fields of pass_manager.
24031 (dump_profile_report): Move body of implementation into...
24032 (pass_manager::dump_profile_report): ...here.
24033 (ipa_write_summaries_1): Update for moves of pass lists from
24034 being globals to fields of pass_manager.
24035 (ipa_write_optimization_summaries): Likewise.
24036 (ipa_read_summaries): Likewise.
24037 (ipa_read_optimization_summaries): Likewise.
24038 (execute_all_ipa_stmt_fixups): Likewise.
24039
24040 * statistics.c (statistics_fini): Update for moves of globals to
24041 fields of pass_manager.
24042
24043 * toplev.c (general_init): Replace call to
24044 init_optimization_passes with construction of the pass_manager
24045 instance.
24046
24047 * tree-pass.h (all_passes): Remove, in favor of a field of the
24048 same name within the new class pass_manager.
24049 (all_small_ipa_passes): Likewise.
24050 (all_lowering_passes): Likewise.
24051 (all_regular_ipa_passes): Likewise.
24052 (all_lto_gen_passes): Likewise.
24053 (all_late_ipa_passes): Likewise.
24054 (passes_by_id): Likewise.
24055 (passes_by_id_size): Likewise.
24056 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
24057 the new class pass_manager.
24058 (get_pass_for_id): Remove.
24059
24060 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24061
24062 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
24063 configs.
24064
24065 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
24066
24067 * arm.md (mulhi3): New expand pattern.
24068
24069 2013-07-30 Jan Hubicka <jh@suse.cz>
24070 Martin Liska <marxin.liska@gmail.com>
24071
24072 * profile.c (compute_value_histograms): Do not ICE when
24073 there is mismatch only on some counters.
24074
24075 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24076
24077 PR rtl-optimization/57637
24078 * function.c (move_insn_for_shrink_wrap): Also check the
24079 GEN set of the LIVE problem for the liveness analysis
24080 if it exists, otherwise give up.
24081
24082 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24083
24084 PR tree-optimization/57993
24085 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
24086 replaced statement in the candidate table.
24087 (phi_add_costs): Return infinite cost when the hidden basis does
24088 not dominate all phis on which the candidate is dependent.
24089 (replace_one_candidate): Record replaced statement in the
24090 candidate table.
24091
24092 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
24093
24094 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
24095 (ashlv2si3): New expander.
24096 (*ashlv2si3_i): New define_insn_and_split.
24097 * predicates.md (float_operation): Allow patterns with three
24098 basic sub-patterns.
24099
24100 PR rtl-optimization/58021
24101 * mode-switching.c (create_pre_exit): Always split off preceding
24102 insns if we are not at the basic block head.
24103
24104 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
24105
24106 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
24107 (UCLIBC_DYNAMIC_LINKER): New macro.
24108 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
24109 `-mnan=2008'.
24110 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
24111 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
24112 `-mnan=2008'.
24113 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
24114 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
24115 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
24116 for SF and DF modes. Use ieee_quad_format for TF mode.
24117 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
24118 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
24119 (mips_option_override): Handle `-mnan=legacy'.
24120 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
24121 `-mabs=2008' and `-mnan=2008'.
24122 (OPTION_DEFAULT_SPECS): Add "nan" default.
24123 (ASM_SPEC): Handle `-mnan='.
24124 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
24125 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
24126 comment accordingly.
24127 (neg<mode>2): Likewise.
24128 * config/mips/mips.opt (mabs, mnan): New options.
24129 * doc/install.texi (Configuration): Document `--with-nan=' option.
24130 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
24131 `-mnan=' options.
24132 (MIPS Options): Document them.
24133 * config.gcc <mips*-*-*>: Handle `--with-nan='.
24134 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
24135 * configure: Regenerate.
24136 * config.in: Regenerate.
24137
24138 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24139
24140 * config/i386/i386.md (float post-reload splitters): Do not check
24141 for subregs of SSE registers.
24142
24143 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
24144 H.J. Lu <hongjiu.lu@intel.com>
24145
24146 PR target/57954
24147 PR target/57988
24148 * config/i386/i386.md (post-reload splitter
24149 to avoid partial SSE reg dependency stalls): New pattern.
24150
24151 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24152
24153 * config/s390/s390.md ("movcc"): Swap load and store instructions.
24154
24155 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
24156
24157 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
24158 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
24159
24160 2013-07-26 Cary Coutant <ccoutant@google.com>
24161
24162 * dwarf2out.c (die_checksum_ordered): Don't include template
24163 instantiations in signature.
24164 (is_template_parameter): New function.
24165 (is_template_instantiation): New function.
24166 (generate_skeleton_bottom_up): Don't include template instantiations
24167 in type unit DIE.
24168 (generate_skeleton): Likewise.
24169 (break_out_comdat_types): Move recursive call to break out nested
24170 types earlier.
24171 (prune_unused_types_mark_generic_parms_dies): Call
24172 is_template_parameter.
24173
24174 2013-07-26 Ian Bolton <ian.bolton@arm.com>
24175
24176 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
24177 uses vector registers.
24178 * config/aarch64/iterators.md: Add attributes rtn and vas.
24179
24180 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24181 Richard Earnshaw <richard.earnshaw@arm.com>
24182
24183 * combine.c (simplify_comparison): Re-canonicalize operands
24184 where appropriate.
24185 * config/arm/arm.md (movcond_addsi): New splitter.
24186
24187 2013-07-25 Sterling Augustine <saugustine@google.com>
24188
24189 * dwarf2out.c (size_of_pubnames): Move code to...
24190 (include_pubname_in_output): ...here. New.
24191 (want_pubnames): Rearrange.
24192 (output_pubnames): Call include_pubname_in_output. Move assertion.
24193
24194 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24195
24196 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
24197
24198 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
24199
24200 PR target/38836
24201 * doc/extend.texi: Remove obsolete builtins. Fix
24202 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
24203
24204 2013-07-25 Jan Hubicka <jh@suse.cz>
24205
24206 * cgraph.c (release_function_body): Break out from ...
24207 (cgraph_release_function_body): ... this one; also release DECL_RESULT
24208 and DECL_ARGUMENTS.
24209 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
24210 old_tree in the map.
24211 (create_specialized_node): Update.
24212 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
24213 into index.
24214 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
24215 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
24216 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
24217 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
24218 DECL_RESULT.
24219
24220 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24221
24222 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
24223 addsi3_carryin_alt2_<optab>): Correct output template.
24224
24225 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24226
24227 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
24228 Adjust for arm_restrict_it.
24229 Remove trailing whitespace.
24230
24231 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
24232
24233 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
24234 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
24235
24236 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
24237
24238 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
24239
24240 PR rtl-optimization/57960
24241 * lra-constraints.c (process_alt_operands): Use the right mode
24242 when checking strict_low.
24243
24244 2013-07-25 Jan Hubicka <jh@suse.cz>
24245
24246 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
24247 * cgraph.c (cgraph_remove_node): Do not release function body
24248 when in cgraph streaming.
24249 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
24250 in other partitions are not considered reachable; fix handling of
24251 clones.
24252
24253 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24254
24255 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
24256
24257 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24258
24259 PR target/19599
24260 PR target/57731
24261 PR target/57837
24262 * config/arm/arm.md ("*sibcall_insn): Replace use of
24263 Ss with US. Adjust output for v5 and v4t.
24264 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
24265
24266 * config/arm/constraints.md ("Ss"): Rename to US.
24267
24268 2013-07-25 Terry Guo <terry.guo@arm.com>
24269
24270 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
24271 shift_add/shift_sub0/shift_sub1 RTXs.
24272
24273 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
24274 Anton Blanchard <anton@au1.ibm.com>
24275
24276 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
24277 (altivec_vpks<VI_char>ss): Likewise.
24278 (altivec_vpks<VI_char>us): Likewise.
24279 (altivec_vpku<VI_char>us): Likewise.
24280 (altivec_vpku<VI_char>um): Likewise.
24281
24282 2013-07-24 David Malcolm <dmalcolm@redhat.com>
24283
24284 Introduce context class.
24285
24286 * Makefile.in (CONTEXT_H): New.
24287 (OBJS): Add context.o.
24288 (toplev.o): Add CONTEXT_H to dependencies.
24289 (context.o): New.
24290
24291 * toplev.c (general_init): Create the singleton gcc::context instance.
24292
24293 * context.c: New.
24294
24295 * context.h: New.
24296
24297 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
24298
24299 PR rtl-optimization/57968
24300 * mode-switching.c (create_pre_exit): Allow instructions that
24301 don't set a return register to need a non-exit mode.
24302
24303 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24304 Anton Blanchard <anton@au1.ibm.com>
24305
24306 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
24307 operands to vperm for little endian.
24308 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
24309 of lvsl to create the control mask for a vperm for little endian.
24310
24311 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24312 Anton Blanchard <anton@au1.ibm.com>
24313
24314 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
24315 two operands for little-endian.
24316
24317 2013-07-23 Steve Ellcey <sellcey@mips.com>
24318
24319 * config/mips/mips.c (mips_case_values_threshold): New.
24320 (TARGET_CASE_VALUES_THRESHOLD): Define.
24321
24322 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24323 Anton Blanchard <anton@au1.ibm.com>
24324
24325 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
24326 selection of field for vector splat in little endian mode.
24327
24328 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24329
24330 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
24331 expanders to rs6000.md.
24332 (ior<mode>3): Likewise.
24333 (and<mode>3): Likewise.
24334 (one_cmpl<mode>2): Likewise.
24335 (nor<mode>3): Likewise.
24336 (andc<mode>3): Likewise.
24337 (eqv<mode>3): Likewise.
24338 (nand<mode>3): Likewise.
24339 (orc<mode>3): Likewise.
24340
24341 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
24342 declaration.
24343
24344 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
24345 to split multi-word logical operations.
24346 (rs6000_split_logical_di): Likewise.
24347 (rs6000_split_logical): Likewise.
24348
24349 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
24350 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
24351 and allow TImode operations in 32-bit.
24352 (vsx_and<mode>3_64bit): Likewise.
24353 (vsx_ior<mode>3_32bit): Likewise.
24354 (vsx_ior<mode>3_64bit): Likewise.
24355 (vsx_xor<mode>3_32bit): Likewise.
24356 (vsx_xor<mode>3_64bit): Likewise.
24357 (vsx_one_cmpl<mode>2_32bit): Likewise.
24358 (vsx_one_cmpl<mode>2_64bit): Likewise.
24359 (vsx_nor<mode>3_32bit): Likewise.
24360 (vsx_nor<mode>3_64bit): Likewise.
24361 (vsx_andc<mode>3_32bit): Likewise.
24362 (vsx_andc<mode>3_64bit): Likewise.
24363 (vsx_eqv<mode>3_32bit): Likewise.
24364 (vsx_eqv<mode>3_64bit): Likewise.
24365 (vsx_nand<mode>3_32bit): Likewise.
24366 (vsx_nand<mode>3_64bit): Likewise.
24367 (vsx_orc<mode>3_32bit): Likewise.
24368 (vsx_orc<mode>3_64bit): Likewise.
24369
24370 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
24371 logical types in GPRs.
24372
24373 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
24374 logical insns to rs6000.md, and allow TImode operations in
24375 32-bit.
24376 (altivec_ior<mode>3): Likewise.
24377 (altivec_xor<mode>3): Likewise.
24378 (altivec_one_cmpl<mode>2): Likewise.
24379 (altivec_nor<mode>3): Likewise.
24380 (altivec_andc<mode>3): Likewise.
24381
24382 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
24383 attributes for moving the 128-bit logical operations into
24384 rs6000.md.
24385 (BOOL_REGS_OUTPUT): Likewise.
24386 (BOOL_REGS_OP1): Likewise.
24387 (BOOL_REGS_OP2): Likewise.
24388 (BOOL_REGS_UNARY): Likewise.
24389 (BOOL_REGS_AND_CR0): Likewise.
24390 (one_cmpl<mode>2): Add support for DI logical operations on
24391 32-bit, splitting the operations to 32-bit.
24392 (anddi3): Likewise.
24393 (iordi3): Likewise.
24394 (xordi3): Likewise.
24395 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
24396 changes to combine the 32/64-bit code, allow logical operations on
24397 TI mode in 32-bit, and to use similar match_operator patterns like
24398 scalar mode uses. Combine the Altivec and VSX code for logical
24399 operations, and move it here.
24400 (ior<mode>3, 128-bit types): Likewise.
24401 (xor<mode>3, 128-bit types): Likewise.
24402 (one_cmpl<mode>3, 128-bit types): Likewise.
24403 (nor<mode>3, 128-bit types): Likewise.
24404 (andc<mode>3, 128-bit types): Likewise.
24405 (eqv<mode>3, 128-bit types): Likewise.
24406 (nand<mode>3, 128-bit types): Likewise.
24407 (orc<mode>3, 128-bit types): Likewise.
24408 (and<mode>3_internal): Likewise.
24409 (bool<mode>3_internal): Likewise.
24410 (boolc<mode>3_internal1): Likewise.
24411 (boolc<mode>3_internal2): Likewise.
24412 (boolcc<mode>3_internal1): Likewise.
24413 (boolcc<mode>3_internal2): Likewise.
24414 (eqv<mode>3_internal1): Likewise.
24415 (eqv<mode>3_internal2): Likewise.
24416 (one_cmpl1<mode>3_internal): Likewise.
24417
24418 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24419
24420 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24421 Rename flag_stack_usage to flag_stack_usage_info.
24422
24423 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
24424
24425 * config/microblaze/sync.md: New file.
24426 * config/microblaze/microblaze.md: Include sync.md
24427 * config/microblaze/microblaze.c: Add print_operand 'y'.
24428 * config/microblaze/constraints.md: Add memory_contraint
24429 'Q' which is a single register.
24430
24431 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
24432
24433 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
24434
24435 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24436
24437 * reload.c (find_reloads): Exit loop once we find this operand
24438 cannot be reloaded somehow for this alternative.
24439
24440 * reload.c (find_reloads): Exit loop once we find a hard register.
24441
24442 * rtlanal.c (computed_jump_p): Exit loop once we find label
24443 reference is used.
24444
24445 * i386.c (ix86_pad_returns): Exit loop after setting replace.
24446
24447 * cfgloopmanip.c (remove_path): Exit loop after setting
24448 irred_invalidated.
24449
24450 * gensupport.c (subst_dup): Avoid loop if code is not
24451 MATCH_DUP nor MATCH_OP_DUP.
24452
24453 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
24454
24455 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
24456
24457 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24458
24459 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
24460 true for SP_REGNUM if mode == ptr_mode.
24461 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
24462 with value R0_REGNUM + 31.
24463
24464 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24465
24466 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
24467 pad pointer-typed argument downward.
24468
24469 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24470
24471 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
24472 and __ILP32__ when the ILP32 model is in use.
24473
24474 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24475
24476 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
24477 (aarch64_load_symref_appropriately): In the case of
24478 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
24479 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
24480 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
24481 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
24482 if 'mode' doesn't equal to 'ptr_mode'.
24483 (aarch64_output_mi_thunk): Add an assertion on the alignment of
24484 'vcall_offset'; change to call aarch64_emit_move differently depending
24485 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
24486 to calculate the upper bound of 'vcall_offset'.
24487 (aarch64_cannot_force_const_mem): Change to also return true if
24488 mode != ptr_mode.
24489 (aarch64_legitimize_reload_address): In the case of large
24490 displacements, add new local variable 'xmode' and an assertion
24491 based on it; change to use 'xmode' to generate the new rtx and
24492 reload.
24493 (aarch64_asm_trampoline_template): Change to generate the template
24494 differently depending on TARGET_ILP32 or not; change to use
24495 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
24496 (aarch64_trampoline_size): Removed.
24497 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
24498 and replace immediate literals with it. Change to use 'ptr_mode'
24499 instead of 'DImode' and call convert_memory_address if the mode
24500 of 'fnaddr' doesn't equal to 'ptr_mode'.
24501 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
24502 to output symbol.
24503 (aarch64_elf_asm_destructor): Likewise.
24504 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
24505 on TARGET_ILP32 instead of aarch64_trampoline_size.
24506 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
24507 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
24508 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
24509 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
24510 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
24511 (storewb_pair<GPI:mode>_<P:mode>): ... this.
24512 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
24513 depending on the value of 'mode'.
24514 (add_losym_<mode>): New.
24515 (ldr_got_small_<mode>): New, based on ldr_got_small.
24516 (ldr_got_small): Remove.
24517 (ldr_got_small_sidi): New.
24518 * config/aarch64/iterators.md (P): New.
24519 (PTR): Change to 'ptr_mode' in the condition.
24520
24521 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
24522
24523 * config.gcc (aarch64*-*-*): Support --with-abi.
24524 (aarch64*-*-elf): Support --with-multilib-list.
24525 (aarch64*-*-linux*): Likewise.
24526 (supported_defaults): Add abi to aarch64*-*-*.
24527 * configure.ac: Mention AArch64 for --with-multilib-list.
24528 * configure: Re-generated.
24529 * config/aarch64/biarchilp32.h: New file.
24530 * config/aarch64/biarchlp64.h: New file.
24531 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
24532 (ABI_SPEC): Ditto.
24533 (MULTILIB_DEFAULTS): Ditto.
24534 (DRIVER_SELF_SPECS): Ditto.
24535 (ASM_SPEC): Update to also substitute -mabi.
24536 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
24537 file whose name depends on -mabi= and -mbig-endian.
24538 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
24539 TARGET_ILP32.
24540 (POINTER_SIZE): New define.
24541 (POINTERS_EXTEND_UNSIGNED): Ditto.
24542 (enum aarch64_abi_type): New enumeration tag.
24543 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
24544 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
24545 (TARGET_ILP32): New define.
24546 * config/aarch64/aarch64.opt (mabi): New.
24547 (aarch64_abi): New.
24548 (ilp32, lp64): New values for -mabi.
24549 * config/aarch64/t-aarch64 (comma): New define.
24550 (MULTILIB_OPTIONS): Ditto.
24551 (MULTILIB_DIRNAMES): Ditto.
24552 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
24553 * doc/invoke.texi: Document -mabi for AArch64.
24554
24555 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
24556
24557 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
24558
24559 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24560 Anton Blanchard <anton@au1.ibm.com>
24561
24562 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
24563 endianness when selecting field to splat.
24564
24565 2013-07-22 Eric Christopher <echristo@gmail.com>
24566
24567 * dwarf2out.c (die_odr_checksum): New function to use
24568 CHECKSUM_ macros and ULEB128 for DIE tag.
24569 (generate_type_signature): Use.
24570
24571 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
24572
24573 * config.gcc (sparc*-*-*): Accept leon3 processor.
24574 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
24575 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
24576 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
24577 * config/sparc/sparc.opt (enum processor_type): Add leon3.
24578 (mfix-ut699): Adjust comment.
24579 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
24580 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
24581 (CPP_CPU_SPEC): Likewise.
24582 (ASM_CPU_SPEC): Likewise.
24583 * config/sparc/sparc.c (leon3_cost): New constant.
24584 (sparc_option_override): Add leon3 support.
24585 (mem_ref): New function.
24586 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
24587 (sparc_do_work_around_errata): Look into the instruction in the delay
24588 slot and adjust accordingly. Add fix for the data cache nullify issues
24589 of the UT699. Change insertion position for the NOP.
24590 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
24591 (leon3_load): New reservation.
24592 (leon_store): Bump latency to 2.
24593 (grfpu): New automaton.
24594 (grfpu_alu): New unit.
24595 (grfpu_ds): Likewise.
24596 (leon_fp_alu): Adjust.
24597 (leon_fp_mult): Delete.
24598 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
24599 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
24600 * config/sparc/sparc.md (cpu): Add leon3.
24601 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
24602 (swapsi): Likewise.
24603 (atomic_test_and_set): Likewise.
24604 (ldstub): Likewise.
24605
24606 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
24607
24608 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
24609 default for R5900 targets.
24610 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
24611 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
24612 * config/mips/mips.c (mips_option_override): Report an error for
24613 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
24614 for -march=r5900 -mhard-float.
24615
24616 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
24617
24618 * df-problems.c (can_move_insns_across): Exit loop once we
24619 find a non-fixed, non-global register.
24620
24621 * ipa-pure-const.c (propagate_nothrow): Exit loop after
24622 setting can_throw.
24623
24624 * omega.c (omega_eliminate_red): Break after setting red_found.
24625 (omega_problem_has_red_equations): Similarly after setting found.
24626 (omega_query_variable): Similarly after setting coupled.
24627
24628 2013-07-22 Marek Polacek <polacek@redhat.com>
24629
24630 * gimplify.c: Don't include gimple.h twice.
24631
24632 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24633
24634 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
24635 instead of TARGET_THUMB1.
24636 (Pz): New constraint.
24637 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
24638 encodings.
24639 (compare_negsi_si): Likewise.
24640 (compare_addsi2_op0): Likewise.
24641 (compare_addsi2_op1): Likewise.
24642 (addsi3_carryin_<optab>): Likewise.
24643 (addsi3_carryin_alt2_<optab>): Likewise.
24644 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
24645 for arm_restrict_it.
24646 (subsi3_carryin): Likewise.
24647 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
24648 (minmax_arithsi): Disable for arm_restrict_it.
24649 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
24650 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
24651 (satsi_<SAT:code>_shift): Likewise.
24652 (arm_shiftsi3): Add alternative for 16-bit encoding.
24653 (arm32_movhf): Disable for arm_restrict_it.
24654 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
24655 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
24656
24657 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
24658
24659 * config/arm/arm.md (attribute "insn"): Delete.
24660 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
24661 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
24662 (not_shiftsi): Update for attribute change.
24663 (not_shiftsi_compare0): Likewise.
24664 (not_shiftsi_compare0_scratch): Likewise.
24665 (arm_one_cmplsi2): Likewise.
24666 (thumb1_one_cmplsi2): Likewise.
24667 (notsi_compare0): Likewise.
24668 (notsi_compare0_scratch): Likewise.
24669 (thumb1_movdi_insn): Likewise.
24670 (arm_movsi_insn): Likewise.
24671 (movhi_insn_arch4): Likewise.
24672 (movhi_bytes): Likewise.
24673 (arm_movqi_insn): Likewise.
24674 (thumb1_movqi_insn): Likewise.
24675 (arm32_movhf): Likewise.
24676 (thumb1_movhf): Likewise.
24677 (arm_movsf_soft_insn): Likewise.
24678 (thumb1_movsf_insn): Likewise.
24679 (thumb_movdf_insn): Likewise.
24680 (movsicc_insn): Likewise.
24681 (movsfcc_soft_insn): Likewise.
24682 (and_scc): Likewise.
24683 (cond_move): Likewise.
24684 (if_move_not): Likewise.
24685 (if_not_move): Likewise.
24686 (if_shift_move): Likewise.
24687 (if_move_shift): Likewise.
24688 (if_shift_shift): Likewise.
24689 (if_not_arith): Likewise.
24690 (if_arith_not): Likewise.
24691 (cond_move_not): Likewise.
24692 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
24693 (neon_mov<mode>): Likewise.
24694 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
24695 (thumb2_movsi_vfp): Likewise.
24696 (movsf_vfp): Likewise.
24697 (thumb2_movsf_vfp): Likewise.
24698 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
24699 change.
24700 (cortexa7_older_only): Likewise.
24701 (cortexa7_younger): Likewise.
24702 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
24703 (1020alu_shift_op): Likewise.
24704 (1020alu_shift_reg_op): Likewise.
24705 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
24706 (alu_shift_op): Likewise.
24707 (alu_shift_reg_op): Likewise.
24708 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
24709 (11_alu_shift_op): Likewise.
24710 (11_alu_shift_reg_op): Likewise.
24711 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
24712 (9_alu_shift_reg_op): Likewise.
24713 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
24714 change.
24715 (cortex_a15_alu_shift): Likewise.
24716 (cortex_a15_alu_shift_reg): Likewise.
24717 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
24718 (cortex_a5_alu_shift): Likewise.
24719 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
24720 change.
24721 (cortex_a53_alu_shift): Likewise.
24722 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
24723 change.
24724 (cortex_a7_alu_reg): Likewise.
24725 (cortex_a7_alu_shift): Likewise.
24726 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24727 (cortex_a8_alu_shift): Likewise.
24728 (cortex_a8_alu_shift_reg): Likewise.
24729 (cortex_a8_mov): Likewise.
24730 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
24731 (cortex_a9_dp_shift): Likewise.
24732 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
24733 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
24734 (cortex_r4_mov): Likewise.
24735 (cortex_r4_alu_shift): Likewise.
24736 (cortex_r4_alu_shift_reg): Likewise.
24737 * config/arm/fa526.md (526_alu_op): Update for attribute change.
24738 (526_alu_shift_op): Likewise.
24739 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
24740 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
24741 (626te_alu_shift_op): Likewise.
24742 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
24743 (726te_alu_op): Likewise.
24744 (726te_alu_shift_op): Likewise.
24745 (726te_alu_shift_reg_op): Likewise.
24746 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
24747 (mp626_alu_shift_op): Likewise.
24748 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
24749 (pj4_alu_e1_conds): Likewise.
24750 (pj4_alu): Likewise.
24751 (pj4_alu_conds): Likewise.
24752 (pj4_shift): Likewise.
24753 (pj4_shift_conds): Likewise.
24754 (pj4_alu_shift): Likewise.
24755 (pj4_alu_shift_conds): Likewise.
24756
24757 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24758
24759 * config/arm/predicates.md (shiftable_operator_strict_it):
24760 New predicate.
24761 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
24762 Disable cond_exec version for arm_restrict_it.
24763 (thumb2_smaxsi3): Convert to generate cond_exec.
24764 (thumb2_sminsi3): Likewise.
24765 (thumb32_umaxsi3): Likewise.
24766 (thumb2_uminsi3): Likewise.
24767 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
24768 (thumb2_neg_abssi2): Likewise.
24769 (thumb2_mov_scc): Add alternative for 16-bit encoding.
24770 (thumb2_movsicc_insn): Adjust alternatives.
24771 (thumb2_mov_negscc): Disable for arm_restrict_it.
24772 (thumb2_mov_negscc_strict_it): New pattern.
24773 (thumb2_mov_notscc_strict_it): New pattern.
24774 (thumb2_mov_notscc): Disable for arm_restrict_it.
24775 (thumb2_ior_scc): Likewise.
24776 (thumb2_ior_scc_strict_it): New pattern.
24777 (thumb2_cond_move): Adjust for arm_restrict_it.
24778 (thumb2_cond_arith): Disable for arm_restrict_it.
24779 (thumb2_cond_arith_strict_it): New pattern.
24780 (thumb2_cond_sub): Adjust for arm_restrict_it.
24781 (thumb2_movcond): Likewise.
24782 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
24783 (thumb2_zero_extendhisi2_v6): Likewise.
24784 (thumb2_zero_extendqisi2_v6): Likewise.
24785 (orsi_notsi_si): Likewise.
24786 (orsi_not_shiftsi_si): Likewise.
24787
24788 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
24789
24790 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
24791 instruction sequence is 1 byte shorter.
24792
24793 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
24794
24795 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
24796 it is not needed after split.
24797
24798 2013-07-20 Iain Sandoe <iain@codesourcery.com>
24799
24800 PR target/51784
24801 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
24802 second label for nonlocal goto receivers. Don't output pic base labels
24803 unless we're producing PIC; mark that action unreachable().
24804 (ix86_save_reg): If the function contains a nonlocal label, save the
24805 PIC base reg.
24806 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
24807 * config/darwin.c (emitted_pic_label_num): New GTY.
24808 (update_pic_label_number_if_needed): New.
24809 (machopic_output_function_base_name): Adjust for nonlocal receiver
24810 case.
24811 (machopic_should_output_picbase_label): New.
24812 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
24813 (nonlocal_goto_receiver): New insn and split.
24814
24815 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
24816
24817 * config/aarch64/aarch64-builtins.c
24818 (aarch64_fold_builtin): Fold abs in all modes.
24819 * config/aarch64/aarch64-simd-builtins.def
24820 (abs): Enable for all modes.
24821 * config/aarch64/arm_neon.h
24822 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
24823 (vabs_f64): Add missing intrinsic.
24824
24825 2013-07-19 Ian Bolton <ian.bolton@arm.com>
24826
24827 * config/aarch64/arm_neon.h (vabs_s64): New function
24828
24829 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
24830
24831 PR target/57516
24832 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
24833 * config/avr/avr.md (adjust_len): Add `round'.
24834 * config/avr/avr-protos.h (avr_out_round): New prototype.
24835 (avr_out_plus): Add `out_label' argument.
24836 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
24837 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
24838 Handle the case where `insn' is just a pattern.
24839 (avr_out_bitop): Handle the case where `insn' is just a pattern.
24840 (avr_out_round): New function.
24841 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
24842
24843 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
24844
24845 * config/microblaze/microblaze.c (microblaze_expand_prologue):
24846 Add check for flag_stack_usage to handle -fstack-usage support
24847
24848 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
24849
24850 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
24851 interaction for new Power8 flags and VSX.
24852
24853 2013-07-18 Sriraman Tallam <tmsriram@google.com>
24854
24855 PR middle-end/57698
24856 * tree-inline.c (expand_call_inline): Emit errors during
24857 early_inlining only if optimization is not turned on.
24858
24859 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24860
24861 * passes.def: New.
24862
24863 * passes.c (init_optimization_passes): Move the construction of
24864 the pass hierarchy into a new passes.def file.
24865
24866 * Makefile.in (passes.o): Add dependency on passes.def.
24867
24868 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24869
24870 * passes.c (init_optimization_passes): Introduce macros for
24871 constructing the tree of passes (INSERT_PASSES_AFTER,
24872 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
24873 TERMINATE_PASS_LIST).
24874
24875 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
24876 Wei Mi <wmi@google.com>
24877
24878 PR rtl-optimization/57878
24879 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
24880 top.
24881 (reload_pseudo_compare_func): Check nregs first for reload
24882 pseudos.
24883
24884 2013-07-18 David Malcolm <dmalcolm@redhat.com>
24885
24886 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
24887
24888 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
24889
24890 * read-rtl.c (validate_const_int): Once an invalid character is
24891 seen, quit the loop.
24892
24893 * gengtype.c (write_roots): Similarly once we find the "deletable"
24894 or "if_marked" option.
24895
24896 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24897
24898 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
24899 "xtab" and "sat". Move value "clz" from here to ...
24900 (attriubte "type"): ... here.
24901 (satsi_<SAT:code>): Delete "insn" attribute.
24902 (satsi_<SAT:code>_shift): Likewise.
24903 (arm_zero_extendqisi2addsi): Likewise.
24904 (arm_extendqisi2addsi): Likewise.
24905 (clzsi2): Update for attribute changes.
24906 (rbitsi2): Likewise.
24907 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
24908 attribute.
24909 (arm_usatsihi): Likewise.
24910 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
24911
24912 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
24913
24914 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
24915 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
24916 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
24917 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
24918 in alphabetical order.
24919 (attribute "core_cycles"): Update for attribute changes.
24920 (arm_addsi3): Likewise.
24921 (addsi3_compare0): Likewise.
24922 (addsi3_compare0_scratch): Likewise.
24923 (addsi3_compare_op1): Likewise.
24924 (addsi3_compare_op2): Likewise.
24925 (compare_addsi2_op0): Likewise.
24926 (compare_addsi2_op1): Likewise.
24927 (addsi3_carryin_shift_<optab>): Likewise.
24928 (subsi3_carryin_shift): Likewise.
24929 (rsbsi3_carryin_shift): Likewise.
24930 (arm_subsi3_insn): Likewise.
24931 (subsi3_compare0): Likewise.
24932 (subsi3_compare): Likewise.
24933 (arm_andsi3_insn): Likewise.
24934 (thumb1_andsi3_insn): Likewise.
24935 (andsi3_compare0): Likewise.
24936 (andsi3_compare0_scratch): Likewise.
24937 (zeroextractsi_compare0_scratch
24938 (andsi_not_shiftsi_si): Likewise.
24939 (iorsi3_insn): Likewise.
24940 (iorsi3_compare0): Likewise.
24941 (iorsi3_compare0_scratch): Likewise.
24942 (arm_xorsi3): Likewise.
24943 (thumb1_xorsi3_insn): Likewise.
24944 (xorsi3_compare0): Likewise.
24945 (xorsi3_compare0_scratch): Likewise.
24946 (satsi_<SAT:code>_shift): Likewise.
24947 (rrx): Likewise.
24948 (arm_shiftsi3): Likewise.
24949 (shiftsi3_compare0): Likewise.
24950 (not_shiftsi): Likewise.
24951 (not_shiftsi_compare0): Likewise.
24952 (not_shiftsi_compare0_scratch): Likewise.
24953 (arm_one_cmplsi2): Likewise.
24954 (thumb_one_complsi2): Likewise.
24955 (notsi_compare0): Likewise.
24956 (notsi_compare0_scratch): Likewise.
24957 (thumb1_zero_extendhisi2): Likewise.
24958 (arm_zero_extendhisi2): Likewise.
24959 (arm_zero_extendhisi2_v6): Likewise.
24960 (arm_zero_extendhisi2addsi): Likewise.
24961 (thumb1_zero_extendqisi2): Likewise.
24962 (thumb1_zero_extendqisi2_v6): Likewise.
24963 (arm_zero_extendqisi2): Likewise.
24964 (arm_zero_extendqisi2_v6): Likewise.
24965 (arm_zero_extendqisi2addsi): Likewise.
24966 (thumb1_extendhisi2): Likewise.
24967 (arm_extendhisi2): Likewise.
24968 (arm_extendhisi2_v6): Likewise.
24969 (arm_extendqisi): Likewise.
24970 (arm_extendqisi_v6): Likewise.
24971 (arm_extendqisi2addsi): Likewise.
24972 (thumb1_extendqisi2): Likewise.
24973 (thumb1_movdi_insn): Likewise.
24974 (arm_movsi_insn): Likewise.
24975 (movsi_compare0): Likewise.
24976 (movhi_insn_arch4): Likewise.
24977 (movhi_bytes): Likewise.
24978 (arm_movqi_insn): Likewise.
24979 (thumb1_movqi_insn): Likewise.
24980 (arm32_movhf): Likewise.
24981 (thumb1_movhf): Likewise.
24982 (arm_movsf_soft_insn): Likewise.
24983 (thumb1_movsf_insn): Likewise.
24984 (movdf_soft_insn): Likewise.
24985 (thumb_movdf_insn): Likewise.
24986 (arm_cmpsi_insn): Likewise.
24987 (cmpsi_shiftsi): Likewise.
24988 (cmpsi_shiftsi_swp): Likewise.
24989 (arm_cmpsi_negshiftsi_si): Likewise.
24990 (movsicc_insn): Likewise.
24991 (movsfcc_soft_insn): Likewise.
24992 (arith_shiftsi): Likewise.
24993 (arith_shiftsi_compare0
24994 (arith_shiftsi_compare0_scratch
24995 (sub_shiftsi): Likewise.
24996 (sub_shiftsi_compare0
24997 (sub_shiftsi_compare0_scratch
24998 (and_scc): Likewise.
24999 (cond_move): Likewise.
25000 (if_plus_move): Likewise.
25001 (if_move_plus): Likewise.
25002 (if_move_not): Likewise.
25003 (if_not_move): Likewise.
25004 (if_shift_move): Likewise.
25005 (if_move_shift): Likewise.
25006 (if_shift_shift): Likewise.
25007 (if_not_arith): Likewise.
25008 (if_arith_not): Likewise.
25009 (cond_move_not): Likewise.
25010 (thumb1_ashlsi3): Set type attribute.
25011 (thumb1_ashrsi3): Likewise.
25012 (thumb1_lshrsi3): Likewise.
25013 (thumb1_rotrsi3): Likewise.
25014 (shiftsi3_compare0_scratch): Likewise.
25015 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
25016 (neon_mov<mode>): Likewise.
25017 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
25018 attribute changes.
25019 (thumb2_movsi_insn): Likewise.
25020 (thumb2_cmpsi_neg_shiftsi): Likewise.
25021 (thumb2_extendqisi_v6): Likewise.
25022 (thumb2_zero_extendhisi2_v6): Likewise.
25023 (thumb2_zero_extendqisi2_v6): Likewise.
25024 (thumb2_shiftsi3_short): Likewise.
25025 (thumb2_addsi3_compare0_scratch): Likewise.
25026 (orsi_not_shiftsi_si): Likewise.
25027 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
25028 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
25029 changes.
25030 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
25031 (1020alu_shift_op): Likewise.
25032 (1020alu_shift_reg_op): Likewise.
25033 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
25034 (alu_shift_op): Likewise.
25035 (alu_shift_reg_op): Likewise.
25036 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
25037 (11_alu_shift_op): Likewise.
25038 (11_alu_shift_reg_op): Likewise.
25039 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
25040 (9_alu_shift_reg_op): Likewise.
25041 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
25042 changes.
25043 (cortex_a15_alu_shift): Likewise.
25044 (cortex_a15_alu_shift_reg): Likewise.
25045 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
25046 changes.
25047 (cortex_a5_alu_shift): Likewise.
25048 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
25049 changes.
25050 (cortex_a53_alu_shift): Likewise.
25051 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
25052 changes.
25053 (cortex_a7_alu_reg): Likewise.
25054 (cortex_a7_alu_shift): Likewise.
25055 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
25056 changes.
25057 (cortex_a8_alu_shift): Likewise.
25058 (cortex_a8_alu_shift_reg): Likewise.
25059 (cortex_a8_mov): Likewise.
25060 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
25061 (cortex_a9_dp_shift): Likewise.
25062 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
25063 changes.
25064 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
25065 changes.
25066 (cortex_r4_mov): Likewise.
25067 (cortex_r4_alu_shift): Likewise.
25068 (cortex_r4_alu_shift_reg): Likewise.
25069 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
25070 (526_alu_shift_op): Likewise.
25071 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
25072 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
25073 (626te_alu_shift_op): Likewise.
25074 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
25075 (726te_alu_op): Likewise.
25076 (726te_alu_shift_op): Likewise.
25077 (726te_alu_shift_reg_op): Likewise.
25078 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
25079 (mp626_alu_shift_op): Likewise.
25080 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
25081 (pj4_alu_e1_conds): Likewise.
25082 (pj4_alu): Likewise.
25083 (pj4_alu_conds): Likewise.
25084 (pj4_shift): Likewise.
25085 (pj4_shift_conds): Likewise.
25086 (pj4_alu_shift): Likewise.
25087 (pj4_alu_shift_conds): Likewise.
25088 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
25089 changes.
25090 (cortexa7_older_only): Likewise.
25091 (cortexa7_younger): Likewise.
25092
25093 2013-07-18 David Malcolm <dmalcolm@redhat.com>
25094
25095 * ipa-pure-const.c (generate_summary): Rename to...
25096 (pure_const_generate_summary): ... this.
25097
25098 2013-07-17 Iain Sandoe <iain@codesourcery.com>
25099
25100 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
25101
25102 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
25103
25104 PR target/57909
25105 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
25106 usage in HI mode.
25107
25108 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25109
25110 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
25111 enabled without -march=zEC12.
25112 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
25113 flags to be set.
25114
25115 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25116
25117 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
25118 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
25119 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
25120 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
25121 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
25122 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
25123 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
25124 ISA_HAS_FP4.
25125 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
25126 and ISA_HAS_NMADD3_NMSUB3.
25127 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
25128 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
25129 (nmsub4<mode>, nmsub3<mode>): Likewise.
25130 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
25131
25132 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25133
25134 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
25135 TARGET_MIPS5400 checking.
25136
25137 2013-07-16 Jakub Jelinek <jakub@redhat.com>
25138 Peter Bergner <bergner@vnet.ibm.com>
25139
25140 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
25141 registers in the comment.
25142 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
25143 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
25144 rather than FIRST_PSEUDO_REGISTERS.
25145
25146 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
25147
25148 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
25149 enable extra ISA flags with TARGET_HTM.
25150
25151 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
25152
25153 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
25154 Fix comment typos.
25155
25156 2013-07-15 Cong Hou <congh@google.com>
25157
25158 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
25159 in compare function for sorting.
25160
25161 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
25162
25163 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
25164 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
25165 * config/rs6000/rs6000.opt: Add -mhtm option.
25166 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
25167 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
25168 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25169 __HTM__ if the HTM instructions are available.
25170 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
25171 htm_spr_reg_operand): New define_predicates.
25172 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
25173 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
25174 Include htm.md.
25175 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
25176 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
25177 HTM builtin functions.
25178 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
25179 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
25180 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
25181 (rs6000_builtin_mask_calculate): Likewise.
25182 (rs6000_option_override_internal): Likewise.
25183 (bdesc_htm): Add new HTM builtin support.
25184 (htm_spr_num): New function.
25185 (htm_spr_regno): Likewise.
25186 (rs6000_htm_spr_icode): Likewise.
25187 (htm_expand_builtin): Likewise.
25188 (htm_init_builtins): Likewise.
25189 (rs6000_expand_builtin): Add support for HTM builtin functions.
25190 (rs6000_init_builtins): Likewise.
25191 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
25192 option.
25193 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
25194 (TARGET_HTM, MASK_HTM): Define macros.
25195 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
25196 (FIXED_REGISTERS): Likewise.
25197 (CALL_USED_REGISTERS): Likewise.
25198 (CALL_REALLY_USED_REGISTERS): Likewise.
25199 (REG_ALLOC_ORDER): Likewise.
25200 (enum reg_class): Likewise.
25201 (REG_CLASS_NAMES): Likewise.
25202 (REG_CLASS_CONTENTS): Likewise.
25203 (REGISTER_NAMES): Likewise.
25204 (ADDITIONAL_REGISTER_NAMES): Likewise.
25205 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
25206 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
25207 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
25208 * config/rs6000/htm.md: New file.
25209 * config/rs6000/htmintrin.h: New file.
25210 * config/rs6000/htmxlintrin.h: New file.
25211
25212 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
25213
25214 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25215 Define SYMBOL_TINY_GOT, update comment.
25216 * config/aarch64/aarch64.c
25217 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
25218 (aarch64_expand_mov_immediate): Likewise.
25219 (aarch64_print_operand): Likewise.
25220 (aarch64_classify_symbol): Likewise.
25221 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
25222 (ldr_got_tiny): Define.
25223
25224 2013-07-13 Tobias Grosser <tobias@grosser.es>
25225
25226 PR tree-optimization/54094
25227 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
25228 scheduling dimension for the parallelism check from the polyhedral
25229 information in the AST.
25230 * graphite-dependences.c (carries_deps): Do not assume the schedule is
25231 in 2D + 1 form.
25232
25233 2013-07-13 Jason Merrill <jason@redhat.com>
25234
25235 * print-tree.c (debug_vec_tree): Use debug_raw.
25236 (debug_raw (vec<tree, va_gc> &)): New.
25237 (debug_raw (vec<tree, va_gc> *)): New.
25238 * tree.h: Declare them.
25239
25240 2013-07-13 Bin Cheng <bin.cheng@arm.com>
25241
25242 * ifcvt.c (ifcvt_after_combine): New static variable.
25243 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
25244 for size.
25245 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
25246 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
25247 rest_of_handle_if_after_reload): Pass new argument for if_convert.
25248
25249 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
25250
25251 * config/mips/mips.c (mips_expand_call): Remove empty statement.
25252
25253 2013-07-12 Michael Matz <matz@suse.de>
25254
25255 PR middle-end/55771
25256 * convert.c (convert_to_real): Reject non-float inner types.
25257
25258 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
25259
25260 * config/aarch64/aarch64-protos.h
25261 (aarch64_simd_immediate_valid_for_move): Remove.
25262 * config/aarch64/aarch64.c (simd_immediate_info): New member.
25263 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
25264 cases.
25265 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
25266
25267 2013-07-11 Steve Ellcey <sellcey@mips.com>
25268
25269 * config/mips/mips.c (mips_conditional_register_usage): Do not
25270 use t[0-7] registers in MIPS16 mode when optimizing for size.
25271
25272 2013-07-11 Sriraman Tallam <tmsriram@google.com>
25273
25274 * config/i386/i386.c (dispatch_function_versions): Fix array
25275 indexing of function_version_info to match actual_versions.
25276
25277 2013-07-11 Teresa Johnson <tejohnson@google.com>
25278
25279 * vec.h (struct va_gc): Move release out-of-line.
25280 (va_gc::release): Call ggc_free on released vec.
25281
25282 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25283
25284 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
25285 Require GOT register as additional operand in UNSPEC.
25286 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
25287 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25288 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
25289 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
25290 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
25291 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
25292 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
25293
25294 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
25295
25296 PR target/57631
25297 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
25298 name seen by assembler/linker rather if available.
25299
25300 2013-07-11 Andreas Schwab <schwab@suse.de>
25301
25302 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
25303
25304 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
25305
25306 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
25307
25308 2013-07-10 Joseph Myers <joseph@codesourcery.com>
25309
25310 * doc/tm.texi.in: Move hook documentation to ....
25311 * target.def: ... here.
25312
25313 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
25314 text on @hook line.
25315 * doc/tm.texi: Regenerate.
25316
25317 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
25318
25319 PR c++/57869
25320 * doc/invoke.texi: Document -Wconditionally-supported.
25321
25322 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25323
25324 PR target/57844
25325 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
25326 of my_fp.
25327
25328 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25329
25330 PR target/57506
25331 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
25332 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
25333 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
25334 Remove duplicate devices.
25335 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
25336 * config/avr/t-multilib: Regenerate.
25337 * config/avr/avr-tables.opt: Regenerate.
25338 * doc/avr-mmcu.texi: Regenerate.
25339
25340 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
25341
25342 PR target/56987
25343 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
25344
25345 2013-07-10 Graham Stott <graham.stott@btinternet.com>
25346
25347 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
25348 the cost of MULT when optimizing for size.
25349
25350 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25351
25352 * config/cr16/cr16-protos.h: Don't include target.h.
25353
25354 2013-07-09 Joseph Myers <joseph@codesourcery.com>
25355
25356 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
25357 adjust register size for TDmode and TFmode for VSX registers.
25358
25359 2013-07-08 Kai Tietz <ktietz@redhat.com>
25360
25361 PR target/56892
25362 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
25363 hook_bool_const_tree_true.
25364
25365 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25366
25367 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
25368 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
25369 * config/s390/s390.md: Define FPR*_REGNUM constants.
25370 Fix FPR2_REGNUM constant (18 -> 17).
25371 ("*trunc<BFP:mode><DFP_ALL:mode>2")
25372 ("*trunc<DFP_ALL:mode><BFP:mode>2")
25373 ("trunc<BFP:mode><DFP_ALL:mode>2")
25374 ("trunc<DFP_ALL:mode><BFP:mode>2")
25375 ("*extend<BFP:mode><DFP_ALL:mode>2")
25376 ("*extend<DFP_ALL:mode><BFP:mode>2")
25377 ("extend<BFP:mode><DFP_ALL:mode>2")
25378 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
25379 FPR4_REGNUM.
25380
25381 2013-07-08 Graham Stott <graham.stott@btinternet.com>
25382
25383 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
25384
25385 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25386
25387 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
25388 and cfun_fpr_bit_p to cfun_fpr_save_p.
25389 (s390_frame_area, s390_register_info, s390_frame_info)
25390 (s390_emit_prologue, s390_emit_epilogue)
25391 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
25392 register numbers.
25393 * config/s390/s390.h: Define *_REGNUM macros for floating point
25394 register numbers.
25395
25396 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
25397
25398 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
25399
25400 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
25401
25402 PR rtl-optimization/57786
25403 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
25404 and break out of the loop when it is set to false.
25405
25406 2013-07-08 Jakub Jelinek <jakub@redhat.com>
25407
25408 PR target/57819
25409 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
25410 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
25411 (const_int 63)) 0)).
25412 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
25413 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
25414 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
25415
25416 PR rtl-optimization/57829
25417 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
25418 mask bits outside of mode are just sign-extension from mode to HWI.
25419
25420 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
25421
25422 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
25423 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
25424 adjust_address instead of change_address to keep info about alignment.
25425 (emit_strmov): Remove.
25426 (emit_memmov): New function.
25427 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
25428 (expand_movmem_epilogue): Likewise and return updated rtx for
25429 destination.
25430 (expand_constant_movmem_prologue): Likewise and return updated rtx for
25431 destination and source.
25432 (decide_alignment): Refactor, handle vector_loop.
25433 (ix86_expand_movmem): Likewise.
25434 (ix86_expand_setmem): Likewise.
25435 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
25436
25437 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
25438
25439 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
25440 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
25441
25442 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25443
25444 * config/i386/sse.md (sse_movlhps): Change alternative 3
25445 of operand 2 to "m".
25446
25447 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
25448
25449 PR target/57807
25450 * config/i386/sse.md (iptr): New mode attribute.
25451 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
25452 (<sse>_vm<plusminus_insn><mode>3): Ditto.
25453 (<sse>_vmmul<mode>3): Ditto.
25454 (<sse>_vmdiv<mode>3): Ditto.
25455 (sse_vmrcpv4sf2): Ditto.
25456 (<sse>_vmsqrt<mode>2): Ditto.
25457 (sse_vmrsqrtv4sf2): Ditto.
25458 (<sse>_vm<code><mode>3): Ditto.
25459 (avx_vmcmp<mode>3): Ditto.
25460 (<sse>_vmmaskcmp<mode>3): Ditto.
25461 (<sse>_comi): Ditto.
25462 (<sse>_ucomi): Ditto.
25463 (*xop_vmfrcz_<mode>): Ditto.
25464 (*fmai_fmadd_<mode>): Ditto.
25465 (*fmai_fmsub_<mode>): Ditto.
25466 (*fmai_fnmadd_<mode>): Ditto.
25467 (*fmai_fnmsub_<mode>): Ditto.
25468 (*fma4i_vmfmadd_<mode>): Ditto.
25469 (*fma4i_vmfmsub_<mode>): Ditto.
25470 (*fma4i_vmfnmadd_<mode>): Ditto.
25471 (*fma4i_vmfnmsub_<mode>): Ditto.
25472 (*xop_vmfrcz_<mode>): Ditto.
25473 (sse_cvtps2pi): Ditto.
25474 (sse_cvttps2pi): Ditto.
25475 (sse_cvtss2si): Ditto.
25476 (sse_cvtss2si_2): Ditto.
25477 (sse_cvtss2siq_2): Ditto.
25478 (sse_cvttss2si): Ditto.
25479 (sse_cvttss2siq): Ditto.
25480 (sse_cvtsd2si): Ditto.
25481 (sse_cvtsd2si_2): Ditto.
25482 (sse_cvtsd2siq_2): Ditto.
25483 (sse_cvttsd2si): Ditto.
25484 (sse_cvttsd2siq): Ditto.
25485 (sse_cvtsd2ss): Ditto.
25486 (sse_cvtss2sd): Ditto.
25487 (avx2_pbroadcast<mode>): Ditto.
25488 (avx2_pbroadcast<mode>_1): Ditto.
25489 (*avx_vperm_broadcast_v4sf): Ditto.
25490
25491 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
25492 (sse_movlhps): Ditto.
25493 (sse_storehps): Ditto.
25494 (sse_loadhps): Ditto.
25495 (sse_storelps): Ditto.
25496 (sse_loadlps): Ditto.
25497 (*vec_concatv4sf): Ditto.
25498 (*vec_interleave_highv2df): Ditto.
25499 (*vec_interleave_lowv2df): Ditto.
25500 (*vec_extractv2df_1_sse): Ditto.
25501 (*vec_extractv2df_0_sse): Ditto.
25502 (sse2_storelpd): Ditto.
25503 (sse2_loadlpd): Ditto.
25504 (sse2_movsd): Ditto.
25505 (*vec_concatv4si): Ditto.
25506 (vec_concatv2di): Ditto.
25507
25508 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
25509 for Intel asm dialect.
25510 (mmx_punpcklwd): Ditto.
25511 (mmx_punpckldq): Ditto.
25512
25513 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
25514 for intel assembler dialect.
25515
25516 2013-07-06 Jakub Jelinek <jakub@redhat.com>
25517
25518 PR target/29776
25519 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
25520 for BUILT_IN_C{LZ,LRSB}*.
25521 * tree.h (CASE_INT_FN): Add FN##IMAX case.
25522 * tree-vrp.c (extract_range_basic): Handle
25523 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
25524 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
25525 fall thru to code calling set_value*.
25526 * builtins.c (expand_builtin): Remove *IMAX cases.
25527 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
25528 if width is bigger than 2*HWI.
25529
25530 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
25531
25532 PR rtl-optimization/55342
25533 * lra-int.h (lra_subreg_reload_pseudos): New.
25534 * lra.c: Add undoing optional reloads to the block diagram.
25535 (lra_subreg_reload_pseudos): New.
25536 (lra_optional_reload_pseudos): Change comments.
25537 (lra): Init and clear lra_subreg_reload_pseudos. Clear
25538 lra_optional_reload_pseudos after undo transformations.
25539 * lra-assigns.c (pseudo_prefix_title): New.
25540 (lra_setup_reg_renumber): Use it.
25541 (spill_for): Ditto. Check subreg reload pseudos too.
25542 (assign_by_spills): Consider subreg reload pseudos too.
25543 * lra-constraints.c (simplify_operand_subreg): Use
25544 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
25545 (curr_insn_transform): Recognize and do optional reloads.
25546 (undo_optional_reloads): New.
25547 (lra_undo_inheritance): Call undo_optional_reloads.
25548
25549 2013-07-05 Thomas Quinot <quinot@adacore.com>
25550
25551 * tree-complex.c (expand_complex_operations_1): Fix typo.
25552
25553 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
25554
25555 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
25556 (tune_params): New member 'const vec_costs'.
25557 * config/aarch64/aarch64.c (generic_vector_cost): New.
25558 (generic_tunings): New member 'generic_vector_cost'.
25559 (aarch64_builtin_vectorization_cost): New.
25560 (aarch64_add_stmt_cost): New.
25561 (TARGET_VECTORIZE_ADD_STMT_COST): New.
25562 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
25563
25564 2013-07-03 Jakub Jelinek <jakub@redhat.com>
25565
25566 PR target/57777
25567 * config/i386/predicates.md (vsib_address_operand): Disallow
25568 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
25569
25570 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
25571
25572 PR middle-end/55030
25573 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
25574 expand_builtin_setjmp_receiver.
25575 (expand_label): Adjust, call expand_builtin_setjmp_receiver
25576 with NULL for the label parameter.
25577 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
25578 the frame-pointer. Adjust comments.
25579 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
25580 only if LABEL is non-NULL.
25581
25582 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
25583
25584 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
25585 (ARM_ABI_AAPCS64): Ditto.
25586 (arm_abi): Ditto.
25587 (ARM_DEFAULT_ABI): Ditto.
25588
25589 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25590
25591 * config/aarch64/aarch64-builtins.c
25592 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
25593 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
25594 (st1): Likewise.
25595 * config/aarch64/aarch64-simd.md
25596 (aarch64_ld1<VALL:mode>): New.
25597 (aarch64_st1<VALL:mode>): Likewise.
25598 * config/aarch64/arm_neon.h
25599 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
25600
25601 2013-07-02 Sriraman Tallam <tmsriram@google.com>
25602
25603 * config/i386/i386.c (gate_insert_vzeroupper): Check if
25604 target ISA is AVX.
25605 (ix86_option_override_internal):Turn on all -mavx target flags by
25606 default as they are dependent on AVX anyway.
25607
25608 2013-07-02 Cary Coutant <ccoutant@google.com>
25609
25610 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
25611 deterministic hash.
25612 (loc_checksum_ordered): Likewise.
25613 (hash_loc_operands): Remove inline keyword.
25614
25615 2013-07-02 Jakub Jelinek <jakub@redhat.com>
25616
25617 PR tree-optimization/57741
25618 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
25619 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
25620 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
25621 Allow REAL_CST step_exprs if flag_associative_math.
25622 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
25623
25624 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25625
25626 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
25627
25628 2013-07-02 Ian Bolton <ian.bolton@arm.com>
25629
25630 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
25631
25632 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25633
25634 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
25635 encoding.
25636 (iorsi3_insn): Likewise.
25637 (arm_xorsi3): Likewise.
25638
25639 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
25640
25641 * arm.md (attribute "wtype"): Delete. Move attribute values from here
25642 to ...
25643 (attribute "type"): ... here, and prefix with "wmmx_".
25644 (attribute "core_cycles"): Update for attribute changes.
25645 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
25646 (tbcstv4hi): Likewise.
25647 (tbcstv2si): Likewise.
25648 (iwmmxt_iordi3): Likewise.
25649 (iwmmxt_xordi3): Likewise.
25650 (iwmmxt_anddi3): Likewise.
25651 (iwmmxt_nanddi3): Likewise.
25652 (iwmmxt_arm_movdi): Likewise.
25653 (iwmmxt_movsi_insn): Likewise.
25654 (mov<mode>_internal): Likewise.
25655 (and<mode>3_iwmmxt): Likewise.
25656 (ior<mode>3_iwmmxt): Likewise.
25657 (xor<mode>3_iwmmxt): Likewise.
25658 (add<mode>3_iwmmxt): Likewise.
25659 (ssaddv8qi3): Likewise.
25660 (ssaddv4hi3): Likewise.
25661 (ssaddv2si3): Likewise.
25662 (usaddv8qi3): Likewise.
25663 (usaddv4hi3): Likewise.
25664 (usaddv2si3): Likewise.
25665 (sub<mode>3_iwmmxt): Likewise.
25666 (sssubv8qi3): Likewise.
25667 (sssubv4hi3): Likewise.
25668 (sssubv2si3): Likewise.
25669 (ussubv8qi3): Likewise.
25670 (ussubv4hi3): Likewise.
25671 (ussubv2si3): Likewise.
25672 (mulv4hi3_iwmmxt): Likewise.
25673 (smulv4hi3_highpart): Likewise.
25674 (umulv4hi3_highpart): Likewise.
25675 (iwmmxt_wmacs): Likewise.
25676 (iwmmxt_wmacsz): Likewise.
25677 (iwmmxt_wmacu): Likewise.
25678 (iwmmxt_wmacuz): Likewise.
25679 (iwmmxt_clrdi): Likewise.
25680 (iwmmxt_clrv8qi): Likewise.
25681 (iwmmxt_clr4hi): Likewise.
25682 (iwmmxt_clr2si): Likewise.
25683 (iwmmxt_uavgrndv8qi3): Likewise.
25684 (iwmmxt_uavgrndv4hi3): Likewise.
25685 (iwmmxt_uavgv8qi3): Likewise.
25686 (iwmmxt_uavgv4hi3): Likewise.
25687 (iwmmxt_tinsrb): Likewise.
25688 (iwmmxt_tinsrh): Likewise.
25689 (iwmmxt_tinsrw): Likewise.
25690 (iwmmxt_textrmub): Likewise.
25691 (iwmmxt_textrmsb): Likewise.
25692 (iwmmxt_textrmuh): Likewise.
25693 (iwmmxt_textrmsh): Likewise.
25694 (iwmmxt_textrmw): Likewise.
25695 (iwmxxt_wshufh): Likewise.
25696 (eqv8qi3): Likewise.
25697 (eqv4hi3): Likewise.
25698 (eqv2si3): Likewise.
25699 (gtuv8qi3): Likewise.
25700 (gtuv4hi3): Likewise.
25701 (gtuv2si3): Likewise.
25702 (gtv8qi3): Likewise.
25703 (gtv4hi3): Likewise.
25704 (gtv2si3): Likewise.
25705 (smax<mode>3_iwmmxt): Likewise.
25706 (umax<mode>3_iwmmxt): Likewise.
25707 (smin<mode>3_iwmmxt): Likewise.
25708 (umin<mode>3_iwmmxt): Likewise.
25709 (iwmmxt_wpackhss): Likewise.
25710 (iwmmxt_wpackwss): Likewise.
25711 (iwmmxt_wpackdss): Likewise.
25712 (iwmmxt_wpackhus): Likewise.
25713 (iwmmxt_wpackwus): Likewise.
25714 (iwmmxt_wpackdus): Likewise.
25715 (iwmmxt_wunpckihb): Likewise.
25716 (iwmmxt_wunpckihh): Likewise.
25717 (iwmmxt_wunpckihw): Likewise.
25718 (iwmmxt_wunpckilb): Likewise.
25719 (iwmmxt_wunpckilh): Likewise.
25720 (iwmmxt_wunpckilw): Likewise.
25721 (iwmmxt_wunpckehub): Likewise.
25722 (iwmmxt_wunpckehuh): Likewise.
25723 (iwmmxt_wunpckehuw): Likewise.
25724 (iwmmxt_wunpckehsb): Likewise.
25725 (iwmmxt_wunpckehsh): Likewise.
25726 (iwmmxt_wunpckehsw): Likewise.
25727 (iwmmxt_wunpckelub): Likewise.
25728 (iwmmxt_wunpckeluh): Likewise.
25729 (iwmmxt_wunpckeluw): Likewise.
25730 (iwmmxt_wunpckelsb): Likewise.
25731 (iwmmxt_wunpckelsh): Likewise.
25732 (iwmmxt_wunpckelsw): Likewise.
25733 (ror<mode>3): Likewise.
25734 (ashr<mode>3_iwmmxt): Likewise.
25735 (lshr<mode>3_iwmmxt): Likewise.
25736 (ashl<mode>3_iwmmxt): Likewise.
25737 (ror<mode>3_di): Likewise.
25738 (ashr<mode>3_di): Likewise.
25739 (lshr<mode>3_di): Likewise.
25740 (ashl<mode>3_di): Likewise.
25741 (iwmmxt_wmadds): Likewise.
25742 (iwmmxt_wmaddu): Likewise.
25743 (iwmmxt_tmia): Likewise.
25744 (iwmmxt_tmiaph): Likewise.
25745 (iwmmxt_tmiabb): Likewise.
25746 (iwmmxt_tmiatb): Likewise.
25747 (iwmmxt_tmiabt): Likewise.
25748 (iwmmxt_tmiatt): Likewise.
25749 (iwmmxt_tmovmskb): Likewise.
25750 (iwmmxt_tmovmskh): Likewise.
25751 (iwmmxt_tmovmskw): Likewise.
25752 (iwmmxt_waccb): Likewise.
25753 (iwmmxt_wacch): Likewise.
25754 (iwmmxt_waccw): Likewise.
25755 (iwmmxt_waligni): Likewise.
25756 (iwmmxt_walignr): Likewise.
25757 (iwmmxt_walignr0): Likewise.
25758 (iwmmxt_walignr1): Likewise.
25759 (iwmmxt_walignr2): Likewise.
25760 (iwmmxt_walignr3): Likewise.
25761 (iwmmxt_wsadb): Likewise.
25762 (iwmmxt_wsadh): Likewise.
25763 (iwmmxt_wsadbz): Likewise.
25764 (iwmmxt_wsadhz): Likewise.
25765 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
25766 (iwmmxt_wabsdiffb): Likewise.
25767 (iwmmxt_wabsdiffh): Likewise.
25768 (iwmmxt_wabsdiffw): Likewise.
25769 (iwmmxt_waddsubhx): Likewise
25770 (iwmmxt_wsubaddhx): Likewise.
25771 (addc<mode>3): Likewise.
25772 (iwmmxt_avg4): Likewise.
25773 (iwmmxt_avg4r): Likewise.
25774 (iwmmxt_wmaddsx): Likewise.
25775 (iwmmxt_wmaddux): Likewise.
25776 (iwmmxt_wmaddsn): Likewise.
25777 (iwmmxt_wmaddun): Likewise.
25778 (iwmmxt_wmulwsm): Likewise.
25779 (iwmmxt_wmulwum): Likewise.
25780 (iwmmxt_wmulsmr): Likewise.
25781 (iwmmxt_wmulumr): Likewise.
25782 (iwmmxt_wmulwsmr): Likewise.
25783 (iwmmxt_wmulwumr): Likewise.
25784 (iwmmxt_wmulwl): Likewise.
25785 (iwmmxt_wqmulm): Likewise.
25786 (iwmmxt_wqmulwm): Likewise.
25787 (iwmmxt_wqmulmr): Likewise.
25788 (iwmmxt_wqmulwmr): Likewise.
25789 (iwmmxt_waddbhusm): Likewise.
25790 (iwmmxt_waddbhusl): Likewise.
25791 (iwmmxt_wqmiabb): Likewise.
25792 (iwmmxt_wqmiabt): Likewise.
25793 (iwmmxt_wqmiatb): Likewise.
25794 (iwmmxt_wqmiatt): Likewise.
25795 (iwmmxt_wqmiabbn): Likewise.
25796 (iwmmxt_wqmiabtn): Likewise.
25797 (iwmmxt_wqmiatbn): Likewise.
25798 (iwmmxt_wqmiattn): Likewise.
25799 (iwmmxt_wmiabb): Likewise.
25800 (iwmmxt_wmiabt): Likewise.
25801 (iwmmxt_wmiatb): Likewise.
25802 (iwmmxt_wmiatt): Likewise.
25803 (iwmmxt_wmiabbn): Likewise.
25804 (iwmmxt_wmiabtn): Likewise.
25805 (iwmmxt_wmiatbn): Likewise.
25806 (iwmmxt_wmiattn): Likewise.
25807 (iwmmxt_wmiawbb): Likewise.
25808 (iwmmxt_wmiawbt): Likewise.
25809 (iwmmxt_wmiawtb): Likewise.
25810 (iwmmxt_wmiawtt): Likewise.
25811 (iwmmxt_wmiawbbn): Likewise.
25812 (iwmmxt_wmiawbtn): Likewise.
25813 (iwmmxt_wmiawtbn): Likewise.
25814 (iwmmxt_wmiawttn): Likewise.
25815 (iwmmxt_wmerge): Likewise.
25816 (iwmmxt_tandc<mode>3): Likewise.
25817 (iwmmxt_torc<mode>3): Likewise.
25818 (iwmmxt_torvsc<mode>3): Likewise.
25819 (iwmmxt_textrc<mode>3): Likewise.
25820 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
25821 (wmmxt_pack): Likewise.
25822 (wmmxt_mult_c1): Likewise.
25823 (wmmxt_mult_c2): Likewise.
25824 (wmmxt_alu_c1): Likewise.
25825 (wmmxt_alu_c2): Likewise.
25826 (wmmxt_alu_c3): Likewise.
25827 (wmmxt_transfer_c1): Likewise.
25828 (wmmxt_transfer_c2): Likewise.
25829 (wmmxt_transfer_c3): Likewise.
25830 (marvell_f_iwmmxt_wstr): Likewise.
25831 (marvell_f_iwmmxt_wldr): Likewise.
25832
25833 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
25834
25835 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
25836
25837 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25838
25839 Revert:
25840 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25841 * lra-constraints.c (need_for_split_p): Check call used hard regs
25842 living through calls.
25843
25844 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
25845 call used regs for call insn.
25846
25847 2013-06-28 Jakub Jelinek <jakub@redhat.com>
25848
25849 PR target/57736
25850 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
25851 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
25852
25853 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25854
25855 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
25856
25857 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
25858
25859 * lra-constraints.c (need_for_split_p): Check call used hard regs
25860 living through calls.
25861
25862 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
25863
25864 PR target/57744
25865 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
25866 to tie with any other modes. Eliminate Altivec vector mode tests,
25867 since these are a subset of ALTIVEC or VSX vector modes. Simplify
25868 code, to return 0 if testing MODE2 for a condition, if we've
25869 already tested MODE1 for the same condition.
25870
25871 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25872
25873 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
25874 layout.
25875
25876 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25877
25878 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
25879 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
25880
25881 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
25882
25883 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
25884 Define.
25885 (aarch64_symbolic_constant_p): Remove.
25886 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
25887 static. Fix line length and white space.
25888 (aarch64_symbolic_constant_p): Remove.
25889 * config/aarch64/predicates.md (aarch64_valid_symref):
25890 Use aarch64_classify_symbol_expression.
25891
25892 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25893
25894 * config/arm/constraints.md (Ts): New constraint.
25895 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
25896 16-bit encodings.
25897 (compare_scc): Use "Ts" constraint for operand 0.
25898 (ior_scc_scc): Likewise.
25899 (and_scc_scc): Likewise.
25900 (and_scc_scc_nodom): Likewise.
25901 (ior_scc_scc_cmp): Likewise for operand 7.
25902 (and_scc_scc_cmp): Likewise.
25903 * config/arm/thumb2.md (thumb2_movsi_insn):
25904 Add alternatives for 16-bit encodings.
25905 (thumb2_movhi_insn): Likewise.
25906 (thumb2_movsicc_insn): Likewise.
25907 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
25908 (thumb2_negscc): Use "Ts" constraint.
25909 Move mvn instruction outside cond_exec block.
25910 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
25911 for 16-bit encodings.
25912
25913 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25914
25915 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
25916 encoding.
25917 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
25918 (mulsi3subsi): Likewise.
25919 (mulsidi3adddi): Likewise.
25920 (mulsidi3_v6): Likewise.
25921 (umulsidi3_v6): Likewise.
25922 (umulsidi3adddi_v6): Likewise.
25923 (smulsi3_highpart_v6): Likewise.
25924 (umulsi3_highpart_v6): Likewise.
25925 (mulhisi3tb): Likewise.
25926 (mulhisi3bt): Likewise.
25927 (mulhisi3tt): Likewise.
25928 (maddhisi4): Likewise.
25929 (maddhisi4tb): Likewise.
25930 (maddhisi4tt): Likewise.
25931 (maddhidi4): Likewise.
25932 (maddhidi4tb): Likewise.
25933 (maddhidi4tt): Likewise.
25934 (zeroextractsi_compare0_scratch): Likewise.
25935 (insv_zero): Likewise.
25936 (insv_t2): Likewise.
25937 (anddi_notzesidi_di): Likewise.
25938 (anddi_notsesidi_di): Likewise.
25939 (andsi_notsi_si): Likewise.
25940 (iordi_zesidi_di): Likewise.
25941 (xordi_zesidi_di): Likewise.
25942 (andsi_iorsi3_notsi): Likewise.
25943 (smax_0): Likewise.
25944 (smax_m1): Likewise.
25945 (smin_0): Likewise.
25946 (not_shiftsi): Likewise.
25947 (unaligned_loadsi): Likewise.
25948 (unaligned_loadhis): Likewise.
25949 (unaligned_loadhiu): Likewise.
25950 (unaligned_storesi): Likewise.
25951 (unaligned_storehi): Likewise.
25952 (extv_reg): Likewise.
25953 (extzv_t2): Likewise.
25954 (divsi3): Likewise.
25955 (udivsi3): Likewise.
25956 (arm_zero_extendhisi2addsi): Likewise.
25957 (arm_zero_extendqisi2addsi): Likewise.
25958 (compareqi_eq0): Likewise.
25959 (arm_extendhisi2_v6): Likewise.
25960 (arm_extendqisi2addsi): Likewise.
25961 (arm_movt): Likewise.
25962 (thumb2_ldrd): Likewise.
25963 (thumb2_ldrd_base): Likewise.
25964 (thumb2_ldrd_base_neg): Likewise.
25965 (thumb2_strd): Likewise.
25966 (thumb2_strd_base): Likewise.
25967 (thumb2_strd_base_neg): Likewise.
25968 (arm_negsi2): Add alternative for 16-bit encoding.
25969 (arm_one_cmplsi2): Likewise.
25970
25971 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25972
25973 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
25974 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
25975 (movdfcc): Likewise.
25976 * config/arm/vfp.md (*thumb2_movsf_vfp):
25977 Disable predication for arm_restrict_it.
25978 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
25979 (*thumb2_movdfcc_vfp): Likewise.
25980 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
25981 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
25982 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
25983 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
25984 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
25985 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
25986 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
25987 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
25988 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
25989 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
25990 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
25991 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
25992 Disable predication for arm_restrict_it.
25993
25994 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
25995
25996 * config/i386/bmiintrin.h (_bextr_u32): New.
25997 (_bextr_u64): Ditto.
25998
25999 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
26000
26001 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
26002 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
26003 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
26004 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
26005 * config/mips/n32-elf.h: ...this new file.
26006
26007 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
26008
26009 PR target/57224
26010 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
26011 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
26012
26013 2013-06-27 Catherine Moore <clm@codesourcery.com>
26014
26015 * config/mips/mips-tables.opt: Regenerate.
26016 * config/mips/mips-cpus.def: Add m14ke and m14kec.
26017 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
26018 * doc/invoke.texi: Add -m14kc.
26019
26020 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26021
26022 PR target/57623
26023 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
26024 constraints of operand 1 and 2.
26025
26026 PR target/57623
26027 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
26028 to match RTL canonicalization. Swap predicates and
26029 constraints of operand 1 and 2.
26030
26031 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
26032
26033 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
26034 Process OP_INOUT regs for splitting too.
26035
26036 2013-06-27 Jakub Jelinek <jakub@redhat.com>
26037
26038 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
26039 decl before the loop, initialize to NULL.
26040 (vectorizable_load): Initialize ptr_incr to NULL.
26041
26042 2013-06-27 Martin Jambor <mjambor@suse.cz>
26043
26044 PR lto/57208
26045 * ipa-ref.h (ipa_maybe_record_reference): Declare.
26046 * ipa-ref.c (ipa_maybe_record_reference): New function.
26047 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
26048 * ipa-cp.c (create_specialized_node): Record potential references from
26049 aggvals.
26050 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
26051
26052 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26053
26054 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
26055 parameter 'mode' of type 'enum machine_mode mode'; change to pass
26056 'mode' to force_reg.
26057 (aarch64_add_offset): Update calls to aarch64_force_temporary.
26058 (aarch64_expand_mov_immediate): Likewise.
26059
26060 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
26061
26062 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
26063 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
26064
26065 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26066
26067 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
26068 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26069 (struct machine_function): Add tbegin_p.
26070 (s390_canonicalize_comparison): Fold CC mode compares to
26071 conditional jump if possible.
26072 (s390_emit_jump): Return the emitted jump.
26073 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
26074 Handle CCRAWmode compares.
26075 (s390_option_override): Default to -mhtm if available.
26076 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26077 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
26078 FPRs instead of df_regs_ever_live_p.
26079 (s390_optimize_nonescaping_tx): New function.
26080 (s390_init_frame_layout): Extend clobbered_regs array to cover
26081 FPRs as well.
26082 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
26083 (s390_expand_tbegin): New function.
26084 (enum s390_builtin): New enum definition.
26085 (code_for_builtin): New array definition.
26086 (s390_init_builtins): New function.
26087 (s390_expand_builtin): New function.
26088 (TARGET_INIT_BUILTINS): Define.
26089 (TARGET_EXPAND_BUILTIN): Define.
26090 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
26091 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
26092 (s390_alc_comparison): Likewise.
26093 * config/s390/s390-modes.def: Add CCRAWmode.
26094 * config/s390/s390.h (processor_flags): Add PF_TX.
26095 (TARGET_CPU_HTM): Define macro.
26096 (TARGET_HTM): Define macro.
26097 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
26098 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
26099 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
26100 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
26101 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
26102 (TBEGIN_MASK, TBEGINC_MASK): New constants.
26103 ("*cc_to_int"): Move up.
26104 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
26105 constants other than 0.
26106 ("*ccraw_to_int"): New insn and splitter definition.
26107 ("tbegin", "tbegin_nofloat", "tbegin_retry")
26108 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
26109 ("tx_assist"): New expander.
26110 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
26111 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
26112 * config/s390/s390.opt: Add -mhtm option.
26113 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
26114 * config/s390/htmxlintrin.h: New file.
26115 * config/s390/htmintrin.h: New file.
26116 * config/s390/s390intrin.h: New file.
26117 * doc/extend.texi: Document htm builtins.
26118 * config.gcc: Add the new header files to extra_headers.
26119
26120 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
26121
26122 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
26123 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
26124
26125 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
26126 Pat Haugen <pthaugen@us.ibm.com>
26127 Peter Bergner <bergner@vnet.ibm.com>
26128
26129 * config/rs6000/power8.md: New.
26130 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
26131 setting for power8 entry.
26132 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
26133 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
26134 test for Power4/Power5 only.
26135 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
26136 support.
26137 (force_new_group): Adjust comment.
26138 * config/rs6000/rs6000.md: Include power8.md.
26139
26140 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
26141
26142 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
26143 * config/arm/arm-protos.h (arm_max_conditional_execute): New
26144 declaration.
26145 (tune_params): Update comment.
26146 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
26147 (arm_max_conditional_execute): New function.
26148 (thumb2_final_prescan_insn): Use max_insn_skipped and
26149 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
26150
26151 2013-06-25 Jakub Jelinek <jakub@redhat.com>
26152
26153 PR tree-optimization/57705
26154 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
26155 SSA_NAME step, provided that it is not defined inside the loop.
26156 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
26157 (get_initial_def_for_induction): Handle SSA_NAME IV step.
26158
26159 2013-06-25 Martin Jambor <mjambor@suse.cz>
26160
26161 PR middle-end/57670
26162 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
26163 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
26164 calls in the dump.
26165 (ipa_note_param_call): Initialize member_ptr flag.
26166 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
26167 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
26168 (ipa_write_indirect_edge_info): Stream member_ptr flag.
26169 (ipa_read_indirect_edge_info): Likewise.
26170
26171 2013-06-25 Richard Biener <rguenther@suse.de>
26172
26173 PR middle-end/56977
26174 * passes.c (init_optimization_passes): Move pass_fold_builtins
26175 and pass_dce earlier with -Og.
26176
26177 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
26178
26179 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
26180 <BIT_FIELD_REF>: Remove trailing TAB.
26181 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
26182 remove blank line.
26183
26184 2013-06-24 Martin Jambor <mjambor@suse.cz>
26185
26186 PR tree-optimization/57358
26187 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
26188 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
26189 (ipa_analyze_params_uses): Generate pessimistic info when true.
26190
26191 2013-06-24 Martin Jambor <mjambor@suse.cz>
26192
26193 PR tree-optimization/57539
26194 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
26195 global.inlined_to of the new node to it. All callers changed.
26196 * ipa-inline-transform.c (clone_inlined_nodes): New variable
26197 inlining_into, pass it to cgraph_clone_node.
26198 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
26199 ipa_free_edge_args_substructures.
26200 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
26201 rdesc linked list. Do not assert rdesc edges have inlined caller.
26202 Assert we have found an rdesc in the rdesc list.
26203
26204 2013-06-24 Richard Biener <rguenther@suse.de>
26205
26206 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
26207 (pointer_set_lookup): Declare.
26208 (class pointer_map): New template class implementing a
26209 generic pointer to T map.
26210 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
26211 pointer_map<T>::contains, pointer_map<T>::insert,
26212 pointer_map<T>::traverse): New functions.
26213 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
26214 (pointer_set_lookup): New function.
26215 (pointer_set_contains): Use pointer_set_lookup.
26216 (pointer_set_insert): Likewise.
26217 (insert_aux): Remove.
26218 (struct pointer_map_t): Embed a pointer_set_t.
26219 (pointer_map_create): Adjust.
26220 (pointer_map_destroy): Likewise.
26221 (pointer_map_contains): Likewise.
26222 (pointer_map_insert): Likewise.
26223 (pointer_map_traverse): Likewise.
26224 * tree-streamer.h (struct streamer_tree_cache_d): Use a
26225 pointer_map<unsigned> instead of a pointer_map_t.
26226 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
26227 (streamer_tree_cache_lookup): Likewise.
26228 (streamer_tree_cache_create): Likewise.
26229 (streamer_tree_cache_delete): Likewise.
26230 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
26231 pointer_map<unsigned> instead of a pointer_map_t.
26232 (lto_init_tree_ref_encoder): Adjust.
26233 (lto_destroy_tree_ref_encoder): Likewise.
26234 * lto-section-out.c (lto_output_decl_index): Likewise.
26235 (lto_record_function_out_decl_state): Likewise.
26236 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
26237
26238 2013-06-24 Richard Biener <rguenther@suse.de>
26239
26240 PR tree-optimization/57488
26241 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
26242
26243 2013-06-24 Alan Modra <amodra@gmail.com>
26244
26245 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
26246 (gen_easy_altivec_constant): Likewise.
26247 * config/rs6000/predicates.md (easy_vector_constant_add_self,
26248 easy_vector_constant_msb): Likewise.
26249
26250 2013-06-23 Jakub Jelinek <jakub@redhat.com>
26251
26252 PR target/57688
26253 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
26254 add missing return true.
26255
26256 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
26257
26258 PR target/52483
26259 * config/sh/predicates.md (general_extend_operand): Invoke
26260 general_movsrc_operand for memory operands.
26261 (general_movsrc_operand): Allow reg+reg addressing, do not use
26262 general_operand for memory operands.
26263
26264 2013-06-23 Sriraman Tallam <tmsriram@google.com>
26265
26266 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
26267 when current target options does not apply.
26268 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
26269 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
26270 * config/i386/bmiintrin.h: Pass appropriate target
26271 attributes to header.
26272 * config/i386/mmintrin.h: Ditto.
26273 * config/i386/nmmintrin.h: Ditto.
26274 * config/i386/avx2intrin.h: Ditto.
26275 * config/i386/fxsrintrin.h: Ditto.
26276 * config/i386/tbmintrin.h: Ditto.
26277 * config/i386/xsaveintrin.h: Ditto.
26278 * config/i386/f16cintrin.h: Ditto.
26279 * config/i386/xtestintrin.h: Ditto.
26280 * config/i386/xsaveoptintrin.h: Ditto.
26281 * config/i386/bmi2intrin.h: Ditto.
26282 * config/i386/lzcntintrin.h: Ditto.
26283 * config/i386/smmintrin.h: Ditto.
26284 * config/i386/wmmintrin.h: Ditto.
26285 * config/i386/x86intrin.h: Remove all header include guards.
26286 * config/i386/prfchwintrin.h: Ditto.
26287 * config/i386/pmmintrin.h: Ditto.
26288 * config/i386/tmmintrin.h: Ditto.
26289 * config/i386/xmmintrin.h: Ditto.
26290 * config/i386/popcntintrin.h: Ditto.
26291 * config/i386/rdseedintrin.h: Ditto.
26292 * config/i386/ammintrin.h: Ditto.
26293 * config/i386/emmintrin.h: Ditto.
26294 * config/i386/immintrin.h: Remove all header include guards.
26295 * config/i386/fma4intrin.h: Ditto.
26296 * config/i386/lwpintrin.h: Ditto.
26297 * config/i386/xopintrin.h: Ditto.
26298 * config/i386/ia32intrin.h: Ditto.
26299 * config/i386/avxintrin.h: Ditto.
26300 * config/i386/rtmintrin.h: Ditto.
26301 * config/i386/fmaintrin.h: Ditto.
26302 * config/i386/mm3dnow.h: Ditto.
26303
26304 2013-06-22 Sriraman Tallam <tmsriram@google.com>
26305
26306 * common/config/i386/i386-common.c: Handle LZCNT.
26307
26308 2013-06-22 Andi Kleen <ak@linux.intel.com>
26309
26310 * doc/extend.texi: Use __atomic_store_n instead of
26311 __atomic_store in HLE example.
26312
26313 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
26314
26315 * config/sh/sh.c: Remove <cstdlib> workaround.
26316
26317 2013-06-21 Andi Kleen <ak@linux.intel.com>
26318
26319 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
26320
26321 2013-06-21 Andi Kleen <ak@linux.intel.com>
26322
26323 * doc/extend.texi: Document that __atomic_clear and
26324 __atomic_test_and_set should only be used with bool.
26325
26326 2013-06-20 Jan Hubicka <jh@suse.cz>
26327
26328 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
26329 types_same_for_odr.
26330 * tree.c (decls_same_for_odr): New function.
26331 (same_for_edr): New function.
26332 (types_same_for_odr): New function.
26333 (get_binfo_at_offset): Use it.
26334 * tree.h (types_same_for_odr): Declare.
26335
26336 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
26337 Jason Merrill <jason@redhat.com>
26338
26339 * system.h: Include <cstdlib> as well as <stdlib.h>.
26340
26341 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
26342
26343 PR target/57655
26344 * config/i386/i386.c (construct_container): Report error if
26345 long double is used with disabled x87 float returns.
26346
26347 2013-06-20 Jan Hubicka <jh@suse.cz>
26348
26349 * lto-cgraph.c (input_symtab): Do not set cgraph state.
26350
26351 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
26352
26353 PR rtl-optimization/57425
26354 PR rtl-optimization/57569
26355 * alias.c (write_dependence_p): Remove parameters mem_mode and
26356 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
26357 Changed all callers.
26358 (canon_anti_dependence): Get comments and semantics in sync.
26359 Add parameter mem_canonicalized. Changed all callers.
26360 * rtl.h (canon_anti_dependence): Update prototype.
26361
26362 2013-06-20 Richard Biener <rguenther@suse.de>
26363
26364 * data-streamer-in.c (streamer_read_uhwi): Optimize single
26365 byte case, inline streamer_read_uchar and defer section
26366 overrun check.
26367
26368 2013-06-20 Richard Biener <rguenther@suse.de>
26369
26370 PR tree-optimization/57584
26371 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
26372 SSA names into the expanded expression that take part in
26373 abnormal coalescing.
26374
26375 2013-06-19 Sharad Singhai <singhai@google.com>
26376
26377 * gcov.c (print_usage): Handle new option.
26378 (process_args): Ditto.
26379 (get_gcov_intermediate_filename): New function.
26380 (output_intermediate_file): New function.
26381 (output_gcov_file): New function
26382 (generate_results): Handle new option.
26383 (release_function): Relase demangled name.
26384 (read_graph_file): Handle demangled name.
26385 (output_lines): Ditto.
26386 * doc/gcov.texi: Document gcov intermediate format.
26387
26388 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
26389
26390 PR bootstrap/57604
26391 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
26392 (lra_emit_add): Use the functions. Add comment about Y as an
26393 address segment.
26394
26395 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
26396
26397 PR driver/57652
26398 * collect2.c (collect_atexit): New.
26399 (collect_exit): Delete.
26400 (main): Register collect_atexit with atexit.
26401 (collect_wait): Change collect_exit to exit.
26402 (do_wait): Same.
26403 * collect2.h (collect_exit): Delete.
26404 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
26405
26406 2013-06-19 Wei Mi <wmi@google.com>
26407
26408 PR rtl-optimization/57518
26409 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
26410 if regno is used in paradoxical subreg.
26411 (update_equiv_regs): Check pdx_subregs[regno] before
26412 set a reg to be equivalent with a mem.
26413
26414 2013-06-19 Matthias Klose <doko@ubuntu.com>
26415
26416 PR driver/57651
26417 * file-find.h (find_a_file): Add a mode parameter.
26418 * file-find.c (find_a_file): Likewise.
26419 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
26420 with X_OK for the executables.
26421 * collect2.c (main): Call find_a_file with X_OK.
26422
26423 2013-06-19 Steve Ellcey <sellcey@mips.com>
26424
26425 PR target/56942
26426 * config/mips/mips.md (casesi_internal_mips16_<mode>):
26427 Use NEXT_INSN instead of next_real_insn.
26428
26429 2013-06-19 Jan Hubicka <jh@suse.cz>
26430
26431 * cgraph.h (const_value_known_p): Replace by ...
26432 (ctor_for_folding): .. this one.
26433 * cgraphunit.c (process_function_and_variable_attributes): Use it.
26434 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
26435 * expr.c (expand_expr_real_1): Likewise.
26436 (string_constant): Likewise.
26437 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
26438 * ipa.c (process_references): Likewise.
26439 (symtab_remove_unreachable_nodes): Likewise.
26440 * ipa-inline-analysis.c (param_change_prob): Likewise.
26441 * gimple-fold.c (canonicalize_constructor_val): Likewise.
26442 (get_base_constructor): Likwise.
26443 * varpool.c (varpool_remove_node): Likewise.
26444 (varpool_remove_initializer): LIkewise.
26445 (dump_varpool_node): LIkwise.
26446 (const_value_known_p): Rewrite to ...
26447 (ctor_for_folding): ... this one.
26448
26449 2013-06-19 Jakub Jelinek <jakub@redhat.com>
26450
26451 PR driver/57651
26452 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
26453 PERSONALITY in $PATH derived prefixes.
26454
26455 2013-06-19 Jeff Law <law@redhat.com>
26456
26457 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
26458 in comment.
26459
26460 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
26461 (simplify_bitwise_binary): Use it to simpify certain binary ops on
26462 booleans.
26463
26464 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
26465
26466 * config/arm/vfp.md: Move VFP instruction classification documentation
26467 to ...
26468 * config/arm/arm.md: ... here. Update instruction classification
26469 documentation.
26470
26471 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
26472
26473 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
26474 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
26475 pattern. Use more efficient sequences on ARMv5 and Thumb2.
26476
26477 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
26478
26479 PR target/57609
26480 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26481 with NEXT_INSN. Use tablejump_p to check for jump table data
26482 insns.
26483
26484 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
26485
26486 PR c++/56544
26487 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
26488 that now in C++ the value is correct per the C++ standards.
26489
26490 2013-06-19 Richard Biener <rguenther@suse.de>
26491
26492 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
26493 for global context.
26494
26495 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26496
26497 Revert:
26498 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26499
26500 PR target/57609
26501 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26502 with next_active_insn.
26503
26504 2013-06-18 Sriraman Tallam <tmsriram@google.com>
26505
26506 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
26507 functions are inlined during failures to flag an error.
26508 * tree-inline.c (expand_call_inline): Allow the error to be flagged
26509 in early inline pass.
26510
26511 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
26512
26513 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
26514 in comments.
26515
26516 2013-06-18 Julian Brown <julian@codesourcery.com>
26517
26518 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
26519 Permit virtual register pre-reload if !strict.
26520 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
26521 change.
26522 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
26523 prototype.
26524 * config/arm/neon.md (movmisalign<mode>): Use
26525 neon_perm_struct_or_reg_operand instead of
26526 neon_struct_or_register_operand.
26527 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
26528 neon_permissive_struct_operand instead of neon_struct_operand.
26529 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
26530 neon_vector_mem_operand.
26531 * config/arm/predicates.md (neon_struct_operand): Adjust call to
26532 neon_vector_mem_operand.
26533 (neon_permissive_struct_operand): New.
26534 (neon_struct_or_register_operand): Rename to...
26535 (neon_perm_struct_or_reg_operand): This. Adjust call to
26536 neon_vector_mem_operand.
26537
26538 2013-06-18 Richard Biener <rguenther@suse.de>
26539
26540 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
26541 * lto-streamer.h: Include pointer-set.h.
26542 (struct lto_decl_slot): Remove.
26543 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
26544 Remove next_index entry.
26545 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26546 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26547 (lto_init_tree_ref_encoder): Adjust.
26548 (lto_destroy_tree_ref_encoder): Likewise.
26549 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
26550 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
26551 (lto_output_decl_index): Adjust.
26552 (lto_new_out_decl_state): Likewise.
26553 (lto_record_function_out_decl_state): Likewise.
26554 * lto-streamer-out.c (copy_function): Likewise.
26555
26556 2013-06-18 Richard Biener <rguenther@suse.de>
26557
26558 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
26559 * cgraphunit.c: Include cfgloop.h.
26560 (init_lowered_empty_function): Initialize the loop tree.
26561 (assemble_thunk): Insert new BBs into loops.
26562
26563 2013-06-18 Richard Biener <rguenther@suse.de>
26564
26565 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
26566 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
26567 the map from cache entry to cache index optional.
26568 (streamer_tree_cache_replace_tree): Adjust accordingly.
26569 (streamer_tree_cache_append): Likewise.
26570 (streamer_tree_cache_delete): Likewise.
26571 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
26572 streamer cache map from cache entry to cache index.
26573 * lto-streamer-out.c (create_output_block): Adjust.
26574
26575 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
26576
26577 * config/arm/arm.md (attribute "insn"): Move multiplication and
26578 division attributes to...
26579 (attribute "type"): ... here. Remove mult.
26580 (attribute "mul32"): New attribute.
26581 (attribute "mul64"): Add umaal.
26582 (*arm_mulsi3): Update attributes.
26583 (*arm_mulsi3_v6): Likewise.
26584 (*thumb_mulsi3): Likewise.
26585 (*thumb_mulsi3_v6): Likewise.
26586 (*mulsi3_compare0): Likewise.
26587 (*mulsi3_compare0_v6): Likewise.
26588 (*mulsi_compare0_scratch): Likewise.
26589 (*mulsi_compare0_scratch_v6): Likewise.
26590 (*mulsi3addsi): Likewise.
26591 (*mulsi3addsi_v6): Likewise.
26592 (*mulsi3addsi_compare0): Likewise.
26593 (*mulsi3addsi_compare0_v6): Likewise.
26594 (*mulsi3addsi_compare0_scratch): Likewise.
26595 (*mulsi3addsi_compare0_scratch_v6): Likewise.
26596 (*mulsi3subsi): Likewise.
26597 (*mulsidi3adddi): Likewise.
26598 (*mulsi3addsi_v6): Likewise.
26599 (*mulsidi3adddi_v6): Likewise.
26600 (*mulsidi3_nov6): Likewise.
26601 (*mulsidi3_v6): Likewise.
26602 (*umulsidi3_nov6): Likewise.
26603 (*umulsidi3_v6): Likewise.
26604 (*umulsidi3adddi): Likewise.
26605 (*umulsidi3adddi_v6): Likewise.
26606 (*smulsi3_highpart_nov6): Likewise.
26607 (*smulsi3_highpart_v6): Likewise.
26608 (*umulsi3_highpart_nov6): Likewise.
26609 (*umulsi3_highpart_v6): Likewise.
26610 (mulhisi3): Likewise.
26611 (*mulhisi3tb): Likewise.
26612 (*mulhisi3bt): Likewise.
26613 (*mulhisi3tt): Likewise.
26614 (maddhisi4): Likewise.
26615 (*maddhisi4tb): Likewise.
26616 (*maddhisi4tt): Likewise.
26617 (maddhidi4): Likewise.
26618 (*maddhidi4tb): Likewise.
26619 (*maddhidi4tt): Likewise.
26620 (divsi3): Likewise.
26621 (udivsi3): Likewise.
26622 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
26623 (thumb2_mulsi_short_compare0): Likewise.
26624 (thumb2_mulsi_short_compare0_scratch): Likewise.
26625 * config/arm/arm1020e.md (1020mult1): Update attribute change.
26626 (1020mult2): Likewise.
26627 (1020mult3): Likewise.
26628 (1020mult4): Likewise.
26629 (1020mult5): Likewise.
26630 (1020mult6): Likewise.
26631 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
26632 change.
26633 (cortex_a15_mult64): Likewise.
26634 (cortex_a15_sdiv): Likewise.
26635 (cortex_a15_udiv): Likewise.
26636 * config/arm/arm1026ejs.md (mult1): Update attribute change.
26637 (mult2): Likewise.
26638 (mult3): Likewise.
26639 (mult4): Likewise.
26640 (mult5): Likewise.
26641 (mult6): Likewise.
26642 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
26643 (pj4_ir_div): Likewise.
26644 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
26645 (11_mult2): Likewise.
26646 (11_mult3): Likewise.
26647 (11_mult4): Likewise.
26648 (11_mult5): Likewise.
26649 (11_mult6): Likewise.
26650 (11_mult7): Likewise.
26651 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
26652 (cortex_a8_mla): Likewise.
26653 (cortex_a8_mull): Likewise.
26654 (cortex_a8_smulwy): Likewise.
26655 (cortex_a8_smlald): Likewise.
26656 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
26657 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
26658 (cortex_r4_mul_3): Likewise.
26659 (cortex_r4_mla_4): Likewise.
26660 (cortex_r4_mla_3): Likewise.
26661 (cortex_r4_smlald): Likewise.
26662 (cortex_r4_mull): Likewise.
26663 (cortex_r4_sdiv): Likewise.
26664 (cortex_r4_udiv): Likewise.
26665 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
26666 (cortex_a7_idiv): Likewise.
26667 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
26668 (9_mult2): Likewise.
26669 (9_mult3): Likewise.
26670 (9_mult4): Likewise.
26671 (9_mult5): Likewise.
26672 (9_mult6): Likewise.
26673 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
26674 (cortex_a53_sdiv): Likewise.
26675 (cortex_a53_udiv): Likewise.
26676 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
26677 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
26678 (mp626_mult2): Likewise.
26679 (mp626_mult3): Likewise.
26680 (mp626_mult4): Likewise.
26681 * config/arm/fa526.md (526_mult1): Update attribute change.
26682 (526_mult2): Likewise.
26683 * config/arm/arm-generic.md (mult): Update attribute change.
26684 (mult_ldsched_strongarm): Likewise.
26685 (mult_ldsched): Likewise.
26686 (multi_cycle): Likewise.
26687 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
26688 * config/arm/fa606te.md (606te_mult1): Update attribute change.
26689 (606te_mult2): Likewise.
26690 (606te_mult3): Likewise.
26691 (606te_mult4): Likewise.
26692 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
26693 (cortex_a9_mac16): Likewise.
26694 (cortex_a9_multiply): Likewise.
26695 (cortex_a9_mac): Likewise.
26696 (cortex_a9_multiply_long): Likewise.
26697 * config/arm/fa626te.md (626te_mult1): Update attribute change.
26698 (626te_mult2): Likewise.
26699 (626te_mult3): Likewise.
26700 (626te_mult4): Likewise.
26701
26702 2013-06-18 Richard Biener <rguenther@suse.de>
26703
26704 PR lto/57334
26705 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
26706
26707 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26708
26709 PR target/57609
26710 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
26711 with next_active_insn.
26712
26713 2013-06-18 Alan Modra <amodra@gmail.com>
26714
26715 * config/rs6000/rs6000.h (enum data_align): New.
26716 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
26717 (DATA_ABI_ALIGNMENT): Define.
26718 (CONSTANT_ALIGNMENT): Correct comment.
26719 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
26720 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
26721
26722 2013-06-17 David Malcolm <dmalcolm@redhat.com>
26723
26724 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
26725 ATTRIBUTE_UNUSED marking.
26726
26727 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
26728
26729 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
26730 alternative and update.
26731 (aarch64_dup_lanedi): Delete.
26732 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
26733 * config/aarch64/aarch64-simd-builtins.def: Update.
26734
26735 2013-06-17 Richard Biener <rguenther@suse.de>
26736
26737 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
26738 (lto_input_scc): Declare.
26739 (lto_input_tree_1): Likewise.
26740 (struct lto_stats_d): Add num_tree_bodies_output and
26741 num_pickle_refs_output.
26742 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
26743 (lto_read_tree_1): Split out from ...
26744 (lto_read_tree): ... this.
26745 (lto_input_scc): New function.
26746 (lto_input_tree_1): Split out from ...
26747 (lto_input_tree): ... this. Handle LTO_tree_scc.
26748 (lto_data_in_create): Create the streamer cache without hashes.
26749 * lto-streamer-out.c (create_output_block): Create the streamer
26750 cache with hashes when not doing WPA.
26751 (lto_write_tree_1): Split out from ...
26752 (lto_write_tree): ... this.
26753 (get_symbol_initial_value): New function.
26754 (lto_output_tree_1): Split out from ...
26755 (lto_output_tree): ... this. Write trees as series of SCCs
26756 using a DFS walk via DFS_write_tree.
26757 (struct sccs, struct scc_entry): New types.
26758 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
26759 (DFS_write_tree_body): New function.
26760 (DFS_write_tree): Likewise.
26761 (hash_tree): Likewise.
26762 (scc_entry_compare): Likewise.
26763 (hash_scc): Likewise.
26764 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
26765 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
26766 TREE_CHAIN as regular reference.
26767 (streamer_read_integer_cst): Remove.
26768 (streamer_get_pickled_tree): Adjust.
26769 * tree-streamer-out.c (streamer_write_chain): Disable streaming
26770 of DECL_EXTERNALs in BLOCK_VARS for now.
26771 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
26772 reference.
26773 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
26774 Add hash value argument and record that if hashes are recorded
26775 in the cache.
26776 (streamer_tree_cache_insert_1): Adjust.
26777 (streamer_tree_cache_insert): Likewise.
26778 (streamer_tree_cache_insert_at): Rename to ...
26779 (streamer_tree_cache_replace_tree): ... this and adjust.
26780 (streamer_tree_cache_append): Adjust.
26781 (record_common_node): Likewise.
26782 (streamer_tree_cache_create): Add argument whether to
26783 record hash values together with trees.
26784 (streamer_tree_cache_delete): Adjust.
26785 * tree-streamer.h (struct streamer_tree_cache_d): Add
26786 vector of hashes.
26787 (streamer_read_integer_cst): Remove.
26788 (streamer_tree_cache_insert): Adjust.
26789 (streamer_tree_cache_append): Likewise.
26790 (streamer_tree_cache_insert_at): Rename to ...
26791 (streamer_tree_cache_replace_tree): ... this and adjust.
26792 (streamer_tree_cache_create): Add argument whether to record hashes.
26793 (streamer_tree_cache_get): Rename to ...
26794 (streamer_tree_cache_get_tree): ... this.
26795 (streamer_tree_cache_get_hash): New function.
26796 * tree.c (cache_integer_cst): New function.
26797 * tree.h (cache_integer_cst): Declare.
26798 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
26799 * lto-symtab.c (lto_varpool_replace_node): Only release
26800 DECL_INITIAL of non-prevailing decls.
26801 * varpool.c (varpool_remove_initializer): Do not release
26802 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
26803
26804 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26805
26806 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
26807 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
26808 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
26809 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
26810 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
26811 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
26812 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
26813 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
26814 instead of TARGET_64BIT.
26815 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
26816 Require ISA_HAS_<D>DIV.
26817
26818 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26819
26820 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
26821 (mips*-*-linux*): Move default with_llsc setting to where other
26822 defaults are set.
26823 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
26824 with_arch block.
26825 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
26826 Likewise. Remove default with_tune setting. Move default float
26827 setting to its own block. Handle with_llsc in the same block as above.
26828
26829 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
26830
26831 PR rtl-optimization/57425
26832 PR rtl-optimization/57569
26833 * alias.c (write_dependence_p): Add new parameters mem_mode,
26834 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
26835 Changed all callers.
26836 (canon_anti_dependence): New function.
26837 * cse.c (check_dependence): Use canon_anti_dependence.
26838 * cselib.c (cselib_invalidate_mem): Likewise.
26839 * rtl.h (canon_anti_dependence): Declare.
26840
26841 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
26842
26843 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
26844 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
26845 ".set mips3" for 64-bit targets.
26846
26847 2013-06-15 Dehao Chen <dehao@google.com>
26848
26849 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
26850 * gimple-low.c (gimple_check_call_matching_types): Likewise.
26851 (gimple_check_call_args): Likewise.
26852 * value-prof.c (check_ic_target): Likewise.
26853 * ipa-inline.c (early_inliner): Likewise.
26854 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
26855 * cgraph.c (cgraph_create_edge_1): Likewise.
26856 (cgraph_make_edge_direct): Likewise.
26857
26858 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26859
26860 PR target/57615
26861 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
26862 rs6000_output_move_128bit to handle emitting quad memory
26863 operations. Set attribute length to 8 bytes.
26864
26865 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
26866
26867 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
26868 New pattern.
26869 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
26870 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
26871 (aarch64_<su>mlsl<mode>): Likewise.
26872
26873 2013-06-14 Mike Stump <mikestump@comcast.net>
26874
26875 * Makefile.in (TARGET_H): Add insn-codes.h.
26876
26877 2013-06-14 Alan Modra <amodra@gmail.com>
26878
26879 PR middle-end/57134
26880 PR middle-end/57586
26881 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
26882 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
26883 bitfield expansion when EXPAND_MEMORY.
26884 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
26885
26886 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26887
26888 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26889 test for clearing quad memory on 32-bit later.
26890
26891 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26892
26893 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
26894 (fold_negate_expr): Likewise.
26895 (fold_real_zero_addition_p): Handle vectors.
26896 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
26897
26898 2013-06-14 Alan Modra <amodra@gmail.com>
26899
26900 * varasm.c (force_const_mem): Revert 2013-06-07 change.
26901
26902 2013-06-13 Jan Hubicka <jh@suse.cz>
26903
26904 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
26905 Local comdats are not externally visible.
26906 * symtab.c (dump_symtab_base): Dump externally visible.
26907 (verify_symtab_base): Verify back links in the symtab hash.
26908
26909 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26910
26911 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
26912 CONVERT_EXPR as equal nodes.
26913
26914 2013-06-13 Bin Cheng <bin.cheng@arm.com>
26915
26916 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
26917
26918 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
26919
26920 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
26921 Generalize to complex and vector.
26922 * tree.c (build_all_ones_cst): New function.
26923 * tree.h (build_all_ones_cst): Declare it.
26924
26925 2013-06-13 Alan Modra <amodra@gmail.com>
26926
26927 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
26928 * config/rs6000/rs6000.md (signbittf2): New insn.
26929 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
26930 (abstf2_internal, cmptf_internal2): Likewise.
26931 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
26932
26933 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26934 Pat Haugen <pthaugen@us.ibm.com>
26935 Peter Bergner <bergner@vnet.ibm.com>
26936
26937 * config/rs6000/rs6000.c (emit_load_locked): Add support for
26938 power8 byte, half-word, and quad-word atomic instructions.
26939 (emit_store_conditional): Likewise.
26940 (rs6000_expand_atomic_compare_and_swap): Likewise.
26941 (rs6000_expand_atomic_op): Likewise.
26942
26943 * config/rs6000/sync.md (larx): Add new modes for power8.
26944 (stcx): Likewise.
26945 (AINT): New mode iterator to include TImode as well as normal
26946 integer modes on power8.
26947 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
26948 that VSX registers are not considered. Use AINT mode iterator
26949 instead of INT1 to allow inclusion of quad word atomic operations
26950 on power8.
26951 (load_locked<mode>): Likewise.
26952 (store_conditional<mode>): Likewise.
26953 (atomic_compare_and_swap<mode>): Likewise.
26954 (atomic_exchange<mode>): Likewise.
26955 (atomic_nand<mode>): Likewise.
26956 (atomic_fetch_<fetchop_name><mode>): Likewise.
26957 (atomic_nand_fetch<mode>): Likewise.
26958 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
26959 each type.
26960 (ATOMIC): On power8, add QImode, HImode modes.
26961 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
26962 modes that promote to SImode.
26963 (load_lockedti): Convert TImode arguments to PTImode, so that we
26964 get a guaranteed even/odd register pair.
26965 (load_lockedpti): Likewise.
26966 (store_conditionalti): Likewise.
26967 (store_conditionalpti): Likewise.
26968
26969 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
26970 atomic load/store instructions.
26971 (HSI): Likewise.
26972
26973 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
26974
26975 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
26976 loads.
26977 (insn_count): New attribute, with most cases extracted from...
26978 (length): ...here. Redefine most cases in terms of insn_count.
26979 (single_insn): Delete.
26980 (can_delay): Use insn_count to check for single instructions.
26981 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
26982 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
26983 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
26984 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
26985 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
26986 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
26987 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
26988 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
26989 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
26990 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
26991 rather than "length".
26992 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
26993 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
26994 Use "insn_count" rather than "length".
26995 * config/mips/mips-dsp.md
26996 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
26997 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26998 length attributes.
26999
27000 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
27001
27002 PR tree-optimization/57361
27003 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
27004
27005 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
27006
27007 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
27008 to split.
27009 (aarch64_simd_combine<mode>): New instruction expansion.
27010 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
27011 function prototype.
27012 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
27013 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
27014
27015 2013-06-12 Jan Hubicka <jh@suse.cz>
27016
27017 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
27018 decl has when in streaming stage.
27019 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
27020 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
27021
27022 2013-06-12 Roland Stigge <stigge@antcom.de>
27023
27024 PR target/57578
27025 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
27026
27027 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27028
27029 PR tree-optimization/57537
27030 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
27031 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
27032
27033 2013-06-12 Richard Biener <rguenther@suse.de>
27034
27035 * data-streamer.h (streamer_write_char_stream): CSE
27036 obs->current_pointer.
27037 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
27038 streamer_write_char_stream manually and optimize the resulting loop.
27039 (streamer_write_hwi_stream): Likewise.
27040
27041 2013-06-12 Jan Hubicka <jh@suse.cz>
27042
27043 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
27044 * cgraph.h (varpool_create_empty_node): Declare.
27045 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
27046 duplicated nodes.
27047 * symtab.c (symtab_unregister_node): Be lax about missin entries
27048 in node hash.
27049 (symtab_get_node): Update comment.
27050 * varpool.c (varpool_create_empty_node): Break out from ...
27051 (varpool_node_for_decl): ... here.
27052 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
27053
27054 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
27055
27056 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
27057 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
27058 part. Use straight-line flow at the end.
27059 <COMPONENT_REF>: Remove superfluous else.
27060 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
27061
27062 2013-06-12 Jakub Jelinek <jakub@redhat.com>
27063
27064 PR target/56564
27065 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
27066 target hook even for !TREE_PUBLIC decls. If no resolution info
27067 is available, return false for common and external decls.
27068
27069 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27070
27071 * config/rl78/constraints.md (U): New constraint.
27072 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
27073 valloc attribute.
27074
27075 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27076
27077 PR target/57589
27078 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
27079 to allow returning address to AT_PLATFORM name.
27080
27081 2013-06-11 Jan Hubicka <jh@suse.cz>
27082
27083 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
27084 * cgraph.h (symtab_node_base): Add weakref flag.
27085 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
27086 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
27087 (output_weakrefs): Use weakref flag.
27088 * fold-const.c (simple_operand_p): Handle WEAK.
27089 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
27090 * ipa.c (varpool_externally_visible_p): Drop weakref.
27091 (function_and_variable_visibility): Update comment; fix weakref
27092 sanity checks; do not clear DECL_WEAK on them.
27093 * lto-cgraph.c (lto_output_node): update.
27094 (lto_output_varpool_node): Update.
27095 (input_overwrite_node): Update.
27096 (input_node): Update.
27097 (input_varpool_node): Update.
27098 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
27099 (lto_symtab_merge_symbols): Add sanity check.
27100 (lto_symtab_prevailing_decl): Do not special case weakrefs.
27101 * passes.c (rest_of_decl_compilation): Set static flag, too.
27102 * symtab.c (dump_symtab_base): Dump weakref.
27103 (verify_symtab_base): Sanity check weakrefs.
27104 (symtab_make_decl_local): Remove duplicated code.
27105 (symtab_alias_ultimate_target): Simplify.
27106 * varpool.c (varpool_create_variable_alias): Set weakref flag.
27107
27108 2013-06-11 Tom de Vries <tom@codesourcery.com>
27109
27110 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
27111 sequence_vect == NULL.
27112
27113 2013-06-11 DJ Delorie <dj@redhat.com>
27114
27115 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
27116 (rl78_unwind_word_mode): New.
27117
27118 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27119
27120 * final.c (debug_prefix_maps): Make static.
27121
27122 2013-06-11 David Malcolm <dmalcolm@redhat.com>
27123
27124 * function.c (initial_trampoline): Remove stray copy.
27125
27126 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
27127
27128 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
27129
27130 2013-06-11 Martin Jambor <mjambor@suse.cz>
27131
27132 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
27133 within bounds at the beginning of the function.
27134
27135 2013-06-11 Alan Modra <amodra@gmail.com>
27136
27137 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
27138 reporting.
27139 (get_named_section): Don't NULL !DECL_P decl.
27140
27141 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
27142
27143 * doc/invoke.texi (core-avx2): Document.
27144 (slm): Likewise.
27145 (atom): Updated with MOVBE.
27146
27147 2013-06-11 Richard Biener <rguenther@suse.de>
27148
27149 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
27150
27151 2013-06-11 Anton Blanchard <anton@samba.org>
27152
27153 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
27154 correct shift value in little-endian mode.
27155
27156 2013-06-11 Jakub Jelinek <jakub@redhat.com>
27157
27158 PR target/56564
27159 * varasm.c (get_variable_align): Move #endif to the right place.
27160
27161 2013-06-10 Cary Coutant <ccoutant@google.com>
27162
27163 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
27164 for hash so that hash table traversal order is deterministic.
27165
27166 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27167 Pat Haugen <pthaugen@us.ibm.com>
27168 Peter Bergner <bergner@vnet.ibm.com>
27169
27170 * config/rs6000/vector.md (GPR move splitter): Do not split moves
27171 of vectors in GPRS if they are direct moves or quad word load or
27172 store moves.
27173
27174 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
27175 declaration.
27176 (direct_move_p): Likewise.
27177 (quad_load_store_p): Likewise.
27178
27179 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
27180 classes into bins based on the physical register type.
27181 (reg_class_to_reg_type): Likewise.
27182 (IS_STD_REG_TYPE): Likewise.
27183 (IS_FP_VECT_REG_TYPE): Likewise.
27184 (reload_fpr_gpr): Arrays to determine what insn to use if we can
27185 use direct move instructions.
27186 (reload_gpr_vsx): Likewise.
27187 (reload_vsx_gpr): Likewise.
27188 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
27189 information that is a simplification of register classes. Also
27190 precalculate direct move reload helpers.
27191 (direct_move_p): New function to return true if the operation can
27192 be done as a direct move instruciton.
27193 (quad_load_store_p): New function to return true if the operation
27194 is a quad memory operation.
27195 (rs6000_legitimize_address): If quad memory, only allow register
27196 indirect for TImode addresses.
27197 (rs6000_legitimate_address_p): Likewise.
27198 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
27199 (rs6000_reload_register_type): Likewise.
27200 (register_to_reg_type): Return register type.
27201 (rs6000_secondary_reload_simple_move): New helper function for
27202 secondary reload and secondary memory needed to identify anything
27203 that is a simple move, and does not need reloading.
27204 (rs6000_secondary_reload_direct_move): New helper function for
27205 secondary reload to identify cases that can be done with several
27206 instructions via the direct move instructions.
27207 (rs6000_secondary_reload_move): New helper function for secondary
27208 reload to identify moves between register types that can be done.
27209 (rs6000_secondary_reload): Add support for quad memory operations
27210 and for direct move.
27211 (rs6000_secondary_memory_needed): Likewise.
27212 (rs6000_debug_secondary_memory_needed): Change argument names.
27213 (rs6000_output_move_128bit): New function to return the move to
27214 use for 128-bit moves, including knowing about the various
27215 limitations of quad memory operations.
27216
27217 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
27218 memory operations. call rs6000_output_move_128bit for the actual
27219 instruciton(s) to generate.
27220 (vsx_movti_64bit): Likewise.
27221
27222 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
27223 (UNSPEC_P8V_MTVSRWZ): Likewise.
27224 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
27225 (UNSPEC_P8V_MTVSRD): Likewise.
27226 (UNSPEC_P8V_XXPERMDI): Likewise.
27227 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
27228 (UNSPEC_FUSION_GPR): Likewise.
27229 (FMOVE128_GPR): New iterator for direct move.
27230 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
27231 (f32_sv): Likewise.
27232 (f32_dm): Likewise.
27233 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
27234 loads and direct move instructions.
27235 (zero_extendsidi2_lfiwzx): Likewise.
27236 (extendsidi2_lfiwax): Likewise.
27237 (extendsidi2_nocell): Likewise.
27238 (floatsi<mode>2_lfiwax): Likewise.
27239 (lfiwax): Likewise.
27240 (floatunssi<mode>2_lfiwzx): Likewise.
27241 (lfiwzx): Likewise.
27242 (fix_trunc<mode>_stfiwx): Likewise.
27243 (fixuns_trunc<mode>_stfiwx): Likewise.
27244 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
27245 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
27246 (parity<mode>2_cmpb): Set length/type attr.
27247 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
27248 for 'mr.' to fast_compare.
27249 (bpermd_<mode>): Change type attr to popcnt.
27250 (p8_fmrgow_<mode>): New insns for power8 direct move support.
27251 (p8_mtvsrwz_1): Likewise.
27252 (p8_mtvsrwz_2): Likewise.
27253 (reload_fpr_from_gpr<mode>): Likewise.
27254 (p8_mtvsrd_1): Likewise.
27255 (p8_mtvsrd_2): Likewise.
27256 (p8_xxpermdi_<mode>): Likewise.
27257 (reload_vsx_from_gpr<mode>): Likewise.
27258 (reload_vsx_from_gprsf): Likewise.
27259 (p8_mfvsrd_3_<mode>): LIkewise.
27260 (reload_gpr_from_vsx<mode>): Likewise.
27261 (reload_gpr_from_vsxsf): Likewise.
27262 (p8_mfvsrd_4_disf): Likewise.
27263 (multi-word GPR splits): Do not split direct moves or quad memory
27264 operations.
27265
27266 2013-06-10 David Malcolm <dmalcolm@redhat.com>
27267
27268 * tree-into-ssa.c (interesting_blocks): Make static.
27269
27270 2013-06-10 Jakub Jelinek <jakub@redhat.com>
27271
27272 PR target/56564
27273 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
27274 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
27275 Use DATA_ABI_ALIGNMENT for that case instead if defined.
27276 (get_variable_align): New function.
27277 (get_variable_section, emit_bss, emit_common,
27278 assemble_variable_contents, place_block_symbol): Use
27279 get_variable_align instead of DECL_ALIGN.
27280 (assemble_noswitch_variable): Add align argument, use it
27281 instead of DECL_ALIGN.
27282 (assemble_variable): Adjust caller. Use get_variable_align
27283 instead of DECL_ALIGN.
27284 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
27285 caller.
27286 (DATA_ABI_ALIGNMENT): Define.
27287 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
27288 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
27289 opt is false, only return the psABI mandated alignment increase.
27290 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
27291 (DATA_ABI_ALIGNMENT): ... this.
27292 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
27293 (DATA_ABI_ALIGNMENT): ... this.
27294 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
27295 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
27296 (DATA_ABI_ALIGNMENT): ... this.
27297 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
27298 * doc/tm.texi: Regenerated.
27299
27300 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
27301
27302 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
27303 cmp_code to construct REG_EQUAL note.
27304
27305 2013-06-09 Jakub Jelinek <jakub@redhat.com>
27306
27307 PR target/57568
27308 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
27309 that operands[2] doesn't overlap with operands[0].
27310
27311 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
27312 Jan Hubicka <jh@suse.cz>
27313
27314 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
27315 hack to mark symbols as used.
27316
27317 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
27318
27319 PR rtl-optimization/57559
27320 * lra-constraints.c (process_alt_operands): Don't discourage
27321 memory with known offset for offsetable memory constraint.
27322 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
27323
27324 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
27325
27326 * varasm.c (struct oc_local_state): Reorder fields.
27327 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
27328 and adjust accordingly.
27329 (output_constructor): Reorder initialization code and adjust call to
27330 output_constructor_bitfield.
27331
27332 2013-06-07 Jan Hubicka <jh@suse.cz>
27333
27334 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
27335
27336 2013-06-07 David Malcolm <dmalcolm@redhat.com>
27337
27338 * tree-object-size.c (unknown): Make const.
27339
27340 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27341
27342 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
27343 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
27344 for last alternative in the cpu_facility attribute.
27345
27346 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27347
27348 PR target/56315
27349 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
27350 (xordi3): Change operand 2 constraint to arm_xordi_operand.
27351 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
27352 * config/arm/constraints.md (Dg): New constraint.
27353 * config/arm/neon.md (xordi3_neon): Remove.
27354 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
27355 * config/arm/predicates.md (arm_xordi_operand): New predicate.
27356
27357 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27358
27359 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
27360 Clean up alternatives.
27361
27362 2013-06-07 Alan Modra <amodra@gmail.com>
27363
27364 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
27365 va_list_gpr_size.
27366
27367 2013-06-07 Alan Modra <amodra@gmail.com>
27368
27369 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
27370
27371 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27372
27373 * config/arm/constraints.md (Df): New constraint.
27374 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
27375 Correct length attribute for last two alternatives.
27376
27377 2013-06-07 Alan Modra <amodra@gmail.com>
27378
27379 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27380 override user -mfp-in-toc.
27381 (offsettable_ok_by_alignment): Consider just the current access
27382 rather than the whole object, unless BLKmode. Handle
27383 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
27384 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
27385 for -mcmodel=medium.
27386 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
27387 override user -mfp-in-toc or -msum-in-toc. Default to
27388 -mno-fp-in-toc for -mcmodel=medium.
27389
27390 2013-06-06 DJ Delorie <dj@redhat.com>
27391
27392 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
27393 TARGET_VALID_POINTER_MODE.
27394
27395 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27396 Pat Haugen <pthaugen@us.ibm.com>
27397 Peter Bergner <bergner@vnet.ibm.com>
27398
27399 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27400 Document new power8 builtins.
27401
27402 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
27403 condition code register, to allow 128-bit logical operations to be
27404 done in the VSX or GPR registers.
27405 (nor<mode>3): Use the canonical form for nor.
27406 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
27407 vclz*, and vpopcnt* vector instructions.
27408 (nand<mode>3): Likewise.
27409 (orc<mode>3): Likewise.
27410 (clz<mode>2): LIkewise.
27411 (popcount<mode>2): Likewise.
27412
27413 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
27414 that only the GPRs are recognized.
27415
27416 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27417 support for new power8 builtins.
27418
27419 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
27420 builtin functions.
27421 (xscvdpspn): Likewise.
27422 (vclz): Likewise.
27423 (vclzb): Likewise.
27424 (vclzh): Likewise.
27425 (vclzw): Likewise.
27426 (vclzd): Likewise.
27427 (vpopcnt): Likewise.
27428 (vpopcntb): Likewise.
27429 (vpopcnth): Likewise.
27430 (vpopcntw): Likewise.
27431 (vpopcntd): Likewise.
27432 (vgbbd): Likewise.
27433 (vmrgew): Likewise.
27434 (vmrgow): Likewise.
27435 (eqv): Likewise.
27436 (eqv_v16qi3): Likewise.
27437 (eqv_v8hi3): Likewise.
27438 (eqv_v4si3): Likewise.
27439 (eqv_v2di3): Likewise.
27440 (eqv_v4sf3): Likewise.
27441 (eqv_v2df3): Likewise.
27442 (nand): Likewise.
27443 (nand_v16qi3): Likewise.
27444 (nand_v8hi3): Likewise.
27445 (nand_v4si3): Likewise.
27446 (nand_v2di3): Likewise.
27447 (nand_v4sf3): Likewise.
27448 (nand_v2df3): Likewise.
27449 (orc): Likewise.
27450 (orc_v16qi3): Likewise.
27451 (orc_v8hi3): Likewise.
27452 (orc_v4si3): Likewise.
27453 (orc_v2di3): Likewise.
27454 (orc_v4sf3): Likewise.
27455 (orc_v2df3): Likewise.
27456
27457 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
27458 allow power8 quad mode in 64-bit.
27459 (rs6000_builtin_vectorized_function): Add support to vectorize
27460 ISA 2.07 count leading zeros, population count builtins.
27461 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
27462 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
27463 (builtin_function_type): Add vgbbd builtin function which takes an
27464 unsigned argument.
27465 (altivec_expand_vec_perm_const): Add support for new power8 merge
27466 instructions.
27467
27468 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
27469 that does not include TImdoe for use with 32-bit.
27470 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
27471 instructions.
27472 (UNSPEC_VSX_CVDPSPN): Likewise.
27473 (vsx_xscvdpspn): Likewise.
27474 (vsx_xscvspdpn): Likewise.
27475 (vsx_xscvdpspn_scalar): Likewise.
27476 (vsx_xscvspdpn_directmove): Likewise.
27477 (vsx_and<mode>3): Split logical operations into 32-bit and
27478 64-bit. Add support to do logical operations on TImode as well as
27479 VSX vector types. Allow logical operations to be done in either
27480 VSX registers or in general purpose registers in 64-bit mode. Add
27481 splitters if GPRs were used. For AND, add clobber of CCmode to
27482 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
27483 encoding.
27484 (vsx_and<mode>3_32bit): Likewise.
27485 (vsx_and<mode>3_64bit): Likewise.
27486 (vsx_ior<mode>3): Likewise.
27487 (vsx_ior<mode>3_32bit): Likewise.
27488 (vsx_ior<mode>3_64bit): Likewise.
27489 (vsx_xor<mode>3): Likewise.
27490 (vsx_xor<mode>3_32bit): Likewise.
27491 (vsx_xor<mode>3_64bit): Likewise.
27492 (vsx_one_cmpl<mode>2): Likewise.
27493 (vsx_one_cmpl<mode>2_32bit): Likewise.
27494 (vsx_one_cmpl<mode>2_64bit): Likewise.
27495 (vsx_nor<mode>3): Likewise.
27496 (vsx_nor<mode>3_32bit): Likewise.
27497 (vsx_nor<mode>3_64bit): Likewise.
27498 (vsx_andc<mode>3): Likewise.
27499 (vsx_andc<mode>3_32bit): Likewise.
27500 (vsx_andc<mode>3_64bit): Likewise.
27501 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
27502 and xxlorc instructions.
27503 (vsx_eqv<mode>3_64bit): Likewise.
27504 (vsx_nand<mode>3_32bit): Likewise.
27505 (vsx_nand<mode>3_64bit): Likewise.
27506 (vsx_orc<mode>3_32bit): Likewise.
27507 (vsx_orc<mode>3_64bit): Likewise.
27508
27509 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
27510
27511 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
27512 instruction.
27513 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
27514 (p8_vmrgow): Likewise.
27515 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
27516 GPRs to be split under VSX.
27517 (p8v_clz<mode>2): Add power8 count leading zero support.
27518 (p8v_popcount<mode>2): Add power8 population count support.
27519 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
27520 support.
27521
27522 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
27523 instruction.
27524
27525 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
27526 builtin functions.
27527 (vec_nand): Likewise.
27528 (vec_vclz): Likewise.
27529 (vec_vclzb): Likewise.
27530 (vec_vclzd): Likewise.
27531 (vec_vclzh): Likewise.
27532 (vec_vclzw): Likewise.
27533 (vec_vgbbd): Likewise.
27534 (vec_vmrgew): Likewise.
27535 (vec_vmrgow): Likewise.
27536 (vec_vpopcnt): Likewise.
27537 (vec_vpopcntb): Likewise.
27538 (vec_vpopcntd): Likewise.
27539 (vec_vpopcnth): Likewise.
27540 (vec_vpopcntw): Likewise.
27541
27542 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27543
27544 PR rtl-optimization/57468
27545 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
27546 spilled pseudos.
27547
27548 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27549
27550 PR rtl-optimization/57459
27551 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
27552 type when setting live regs.
27553
27554 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
27555
27556 * config/s390/s390.opt (mlra): New option.
27557 * config/s390/s390.c (s390_decompose_address): Check displacement
27558 for all registers for LRA.
27559 (s390_secondary_reload): Don't used secondary reloads for LRA.
27560 (s390_lra_p): New function.
27561 (TARGET_LRA_P): Define.
27562 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
27563 of attribute cpu_facility to zarch for the last alternative.
27564 (*cmpmem_short): Ditto.
27565
27566 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
27567
27568 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
27569 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
27570 (arm_expand_prologue): Likewise.
27571
27572 2013-06-06 Teresa Johnson <tejohnson@google.com>
27573
27574 PR c++/53743
27575 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
27576 as this is now done by redirect_edge_and_branch_force.
27577 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
27578 barriers, and fix interaction with splitting.
27579 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27580 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
27581 reflect changes made in the routine.
27582 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
27583 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
27584 since this is called in cfglayout mode, and replace partition fixup
27585 with assert as that is now done by force_nonfallthru_and_redirect.
27586 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
27587 already be marked with region crossing note.
27588 (insert_section_boundary_note): Make non-static, gate on flag
27589 has_bb_partition, rewrite to also check for multiple partitions.
27590 (rest_of_handle_reorder_blocks): Remove call to
27591 insert_section_boundary_note, now done later during free_cfg.
27592 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
27593 * bb-reorder.h (insert_section_boundary_note): Declare.
27594 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
27595 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
27596 invoke insert_section_boundary_note.
27597 (try_redirect_by_replacing_jump): Remove unnecessary
27598 check for region crossing note.
27599 (fixup_partition_crossing): New function.
27600 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
27601 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
27602 in non-cfglayout mode.
27603 (force_nonfallthru_and_redirect): Fixup partition boundaries,
27604 remove old code that tried to do this. Emit barrier correctly
27605 when we are in cfglayout mode.
27606 (last_bb_in_partition): New function.
27607 (rtl_split_edge): Correctly fixup partition boundaries.
27608 (commit_one_edge_insertion): Remove old code that tried to
27609 fixup region crossing edge since this is now handled in
27610 split_block, and set up insertion point correctly since
27611 block may now end in a jump.
27612 (verify_hot_cold_block_grouping): Guard against checking when not in
27613 linearized RTL mode.
27614 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
27615 notes.
27616 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
27617 rtl_verify_flow_info, so not called in cfglayout mode.
27618 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
27619 (fixup_reorder_chain): Remove old code that attempted to fixup region
27620 crossing note as this is now handled in force_nonfallthru_and_redirect.
27621 (duplicate_insn_chain): Don't duplicate switch section notes.
27622 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
27623 note.
27624 * basic-block.h (emit_barrier_after_bb): Declare.
27625
27626 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27627
27628 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
27629 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
27630 arm_usatsihi): Adjust alternatives for arm_restrict_it.
27631
27632 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27633
27634 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
27635 where appropriate.
27636 * config/arm/ldmstm.md: Regenerate.
27637
27638 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27639
27640 * config/arm/sync.md (atomic_loaddi_1):
27641 Disable predication for arm_restrict_it.
27642 (arm_load_exclusive<mode>): Likewise.
27643 (arm_load_exclusivesi): Likewise.
27644 (arm_load_exclusivedi): Likewise.
27645 (arm_load_acquire_exclusive<mode>): Likewise.
27646 (arm_load_acquire_exclusivesi): Likewise.
27647 (arm_load_acquire_exclusivedi): Likewise.
27648 (arm_store_exclusive<mode>): Likewise.
27649 (arm_store_exclusive<mode>): Likewise.
27650 (arm_store_release_exclusivedi): Likewise.
27651 (arm_store_release_exclusive<mode>): Likewise.
27652
27653 2013-06-06 Richard Biener <rguenther@suse.de>
27654
27655 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
27656 after LTO_null.
27657 (lto_tag_is_tree_code_p): Adjust.
27658 (lto_tag_is_gimple_code_p): Likewise.
27659 (lto_gimple_code_to_tag): Likewise.
27660 (lto_tag_to_gimple_code): Likewise.
27661 (lto_tree_code_to_tag): Likewise.
27662 (lto_tag_to_tree_code): Likewise.
27663 * data-streamer.h (streamer_write_hwi_in_range): Use
27664 uhwi streaming to stream the normalized range.
27665 (streamer_read_hwi_in_range): Likewise.
27666
27667 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27668
27669 * config/arm/arm.md (enabled_for_depr_it): New attribute.
27670 (predicable_short_it): Likewise.
27671 (predicated): Likewise.
27672 (enabled): Handle above.
27673 (define_cond_exec): Set predicated attribute to yes.
27674
27675 2013-06-05 Mike Stump <mikestump@comcast.net>
27676
27677 * gdbinit.in (__FUNCTION__): Add.
27678
27679 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
27680
27681 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
27682 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
27683
27684 2013-06-05 Jan Hubicka <jh@suse.cz>
27685
27686 * varasm.c (mark_decl_referenced): Revert the removal until targets
27687 are fixed.
27688
27689 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
27690
27691 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
27692 instead of mark_decl_referenced.
27693
27694 2013-06-05 Jan Hubicka <jh@suse.cz>
27695
27696 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
27697 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
27698 and symtab_used_from_object_file_p.
27699 (cgraph_make_node_local_1): Clear forced_by_abi.
27700 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
27701 * cgraph.h (symtab_node_base): Add forced_by_abi.
27702 (decide_is_variable_needed): Remove.
27703 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
27704 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
27705 (decide_is_symbol_needed): ... this one; handle symbols in general;
27706 always analyze virtuals; honnor forced_by_abi.
27707 (cgraph_finalize_function): Update.
27708 (varpool_finalize_decl): Update.
27709 (symbol_defined_and_needed): Remove.
27710 (analyze_functions): Update.
27711 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27712 output_refs, input_overwrite_node): Handle forced_by_abi.
27713 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
27714 (address_taken_from_non_vtable_p): ... this one.
27715 (comdat_can_be_unshared_p_1): New function.
27716 (cgraph_comdat_can_be_unshared_p): Rename to ...
27717 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
27718 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
27719 (function_and_variable_visibility): Clear forced_by_abi as needed.
27720 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
27721 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
27722 * symtab.c (dump_symtab_base): Dump forced_by_abi.
27723 * varpool.c (decide_is_variable_needed): Remove.
27724
27725 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27726
27727 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
27728 (arm_option_override): Override arm_restrict_it where appropriate.
27729 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
27730 * config/arm/arm.opt (mrestrict-it): New command-line option.
27731 * doc/invoke.texi: Document -mrestrict-it.
27732
27733 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27734
27735 * tsan.c (tsan_atomic_table): Make const.
27736
27737 2013-06-05 Richard Biener <rguenther@suse.de>
27738
27739 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
27740 index associated with the tree we are supposed to replace.
27741 * tree-streamer-out.c (pack_ts_base_value_fields): Output
27742 TREE_ASM_WRITTEN as zero for everything but SSA names.
27743
27744 2013-06-05 David Malcolm <dmalcolm@redhat.com>
27745
27746 * tree-ssa-structalias.c (call_stmt_vars): Make static.
27747
27748 2013-06-04 Jan Hubicka <jh@suse.cz>
27749
27750 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
27751 (input_node, input_varpool_node): Handle correctly external same
27752 body aliases.
27753 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
27754 nodes at ltrans stage.
27755
27756 2013-06-04 Jan Hubicka <jh@suse.cz>
27757
27758 * ipa-inline.c (update_caller_keys): Fix availability test.
27759 (update_callee_keys): Likewise.
27760 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
27761 to follow ELF standard.
27762
27763 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
27764
27765 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
27766 (mips64r5900el-*-elf*): New configurations.
27767 * config/mips/mips-cpus.def (r5900): New processor.
27768 * config/mips/mips-tables.opt: Regenerate.
27769 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
27770 (mips_issue_rate): Handle PROCESSOR_R5900.
27771 (mips_reorg_process_insns): Force reorder mode for the R5900.
27772 * config/mips/mips.h (TARGET_MIPS5900): Define.
27773 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
27774 TARGET_MIPS5900.
27775 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
27776 TARGET_MIPS5900.
27777 * config/mips/mips.md (processor): Add r5900.
27778 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
27779
27780 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27781
27782 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
27783 into function to generate MOVI instruction.
27784 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
27785 (aarch64_preferred_simd_mode): Turn into wrapper.
27786 (aarch64_output_scalar_simd_mov_immediate): New function.
27787 * config/aarch64/aarch64-protos.h: Add prototype for above.
27788
27789 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27790
27791 * config/aarch64/aarch64.c (simd_immediate_info): Remove
27792 element_char member.
27793 (sizetochar): Return signed char.
27794 (aarch64_simd_valid_immediate): Remove elchar and other
27795 unnecessary variables.
27796 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
27797 Calculate element_char as required.
27798 * config/aarch64/aarch64-protos.h: Update and move prototype
27799 for aarch64_output_simd_mov_immediate.
27800 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
27801 Update arguments.
27802
27803 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27804
27805 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
27806 information completed by aarch64_simd_valid_immediate.
27807 (aarch64_legitimate_constant_p): Update arguments.
27808 (aarch64_simd_valid_immediate): Work with struct rather than many
27809 pointers.
27810 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
27811 (aarch64_simd_make_constant): Update arguments.
27812 (aarch64_output_simd_mov_immediate): Work with struct rather than
27813 many pointers. Output immediate directly rather than as operand.
27814 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27815 Update prototype.
27816 * config/aarch64/constraints.md (Dn): Update arguments.
27817
27818 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27819
27820 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
27821 longer static.
27822 (aarch64_simd_immediate_valid_for_move): Remove.
27823 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
27824 (aarch64_simd_make_constant): Update call.
27825 (aarch64_output_simd_mov_immediate): Update call.
27826 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
27827 Add prototype.
27828 * config/aarch64/constraints.md (Dn): Update call.
27829
27830 2013-06-04 Ian Bolton <ian.bolton@arm.com>
27831
27832 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
27833 return type to bool for prototype.
27834 (aarch64_legitimate_constant_p): Check for true instead of not -1.
27835 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
27836 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
27837
27838 2013-06-04 Catherine Moore <clm@codesourcery.com>
27839
27840 * config/mips/mips.opt (meva): New.
27841 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
27842 (ASM_SPEC): Handle -meva.
27843 * doc/invoke.texi (meva): Document.
27844
27845 2013-06-04 Alan Modra <amodra@gmail.com>
27846
27847 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
27848 constant output.
27849
27850 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27851
27852 * rtl.def: Add extra fourth optional field to define_cond_exec.
27853 * gensupport.c (process_one_cond_exec): Process attributes from
27854 define_cond_exec.
27855 * doc/md.texi: Document fourth field in define_cond_exec.
27856
27857 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
27858
27859 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
27860 out the processing order as in store_bit_field_1.
27861
27862 2013-06-04 Jan Hubicka <jh@suse.cz>
27863
27864 PR middle-end/57500
27865 * cgraphunit.c (cgraph_process_same_body_aliases): Create
27866 non-VAR_DECL node if it does not exist yet.
27867
27868 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
27869
27870 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
27871 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
27872 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
27873 target_cpu_default setting.
27874
27875 2013-06-03 Teresa Johnson <tejohnson@google.com>
27876
27877 * dumpfile.c (opt_info_switch_p): Change -fopt-info
27878 default to -fopt-info=optimized instead of all.
27879 * doc/invoke.texi: Ditto.
27880 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
27881 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
27882 (execute_vect_slp): Emit BB vectorization success under
27883 MSG_OPTIMIZED_LOCATIONS.
27884 * tree-vect-slp.c (vect_slp_transform_bb): Change
27885 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
27886 * tree-vect-loop.c (vect_transform_loop): Ditto.
27887
27888 2013-06-03 Jason Merrill <jason@redhat.com>
27889
27890 PR c++/57415
27891 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27892 Use TARGET_EXPR for C++.
27893
27894 2013-06-03 Jakub Jelinek <jakub@redhat.com>
27895
27896 PR rtl-optimization/57268
27897 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
27898 if DEBUG_INSN_P (insn).
27899
27900 Reapply
27901 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
27902
27903 PR rtl-optimization/57268
27904 * sched-deps.c (sched_analyze_2): Flush dependence lists if
27905 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
27906
27907 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
27908
27909 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
27910 (ix86_avoid_lea_for_addr): Likewise.
27911 (exact_dependency_1): Likewise.
27912 (ix86_adjust_cost): Likewise.
27913 (swap_top_of_ready_list): Fix formatting and !reload_completed check
27914 removed.
27915 (do_reorder_for_imul): Fix typo, formatting and
27916 !reload_completed check removed.
27917 (ix86_sched_reorder): Fix typo and formatting.
27918 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
27919 list.
27920
27921 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
27922
27923 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
27924
27925 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
27926
27927 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
27928 <STRING_CST>: Likewise.
27929 <VECTOR_CST>: Likewise.
27930
27931 2013-06-01 Janus Weil <janus@gcc.gnu.org>
27932 Mikael Morin <mikael@gcc.gnu.org>
27933
27934 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
27935 * config.in: Regenerated.
27936 * configure: Regenerated.
27937
27938 2013-06-01 Jan Hubicka <jh@suse.cz>
27939
27940 PR middle-end/57366
27941 * cgraphunit.c (compile): When weakref is not supported,
27942 set up transparent aliases before final output pass.
27943 * varasm.c (assemble_alias): Do not try to do it here.
27944
27945 2013-06-01 Jan Hubicka <jh@suse.cz>
27946
27947 PR middle-end/57467
27948 * passes.c (for_per_function): Skip unanalyzed functions.
27949
27950 2013-06-01 Jan Hubicka <jh@suse.cz>
27951
27952 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
27953 (lto_symtab_merge_symbols_1): ... this one.
27954 (lto_symtab_merge_cgraph_nodes): Rename to ...
27955 (lto_symtab_merge_symbols): ... this one; simplify.
27956 * cgraph.c (same_body_aliases_done): Rename to ...
27957 (cpp_implicit_aliases_done): ... this one.
27958 (cgraph_create_function_alias): Update.
27959 (cgraph_same_body_alias): Update.
27960 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
27961 (verify_edge_corresponds_to_fndecl): Simplify.
27962 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
27963 (cgraph_node): Remove same_body_alias.
27964 (varpool_node): Remove alias_of and extra_name_alias.
27965 (same_body_aliases_done): Rename to ..
27966 (cpp_implicit_aliases_done): ... this one.
27967 (symtab_alias_ultimate_target): Add default parameter.
27968 (symtab_resolve_alias): New function.
27969 (fixup_same_cpp_alias_visibility): Declare.
27970 (cgraph_function_node): Add default parameter.
27971 (cgraph_node_asm_name): Likewise.
27972 (cgraph_function_or_thunk_node): Add default parameter; do
27973 not ICE when it is NULL.
27974 (varpool_variable_node): Likewise.
27975 * tree-emutls.c (create_emultls_var): Update.
27976 (ipa_lower_emutls): Update.
27977 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
27978 (cgraph_reset_node): Reset alias info.
27979 (cgraph_finalize_function): Update.
27980 (fixup_same_cpp_alias_visibility): Move to symtab.c.
27981 (analyze_function): Simplify.
27982 (cgraph_process_same_body_aliases): Simplify.
27983 (analyze_functions): Fixup same body aliases.
27984 (handle_alias_pairs): Simplify.
27985 (assemble_thunk): Update.
27986 (assemble_thunks_and_aliases): Update.
27987 (output_weakrefs): Rewrite.
27988 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
27989 (lto_output_varpool_node): Likewise.
27990 (compute_ltrans_boundary): Remve assert.
27991 (get_alias_symbol): New functoin.
27992 (input_node): Rewrite alias handling.
27993 (input_varpool_node): Likewise.
27994 * ipa-pure-const.c (propagate_pure_const): Fix formating.
27995 * ipa.c (process_references): Handle weakrefs correctly.
27996 (symtab_remove_unreachable_nodes): Likewise.
27997 * trans-mem.c (get_cg_data): Update.
27998 (ipa_tm_create_version_alias): Update.
27999 (ipa_tm_execute): Update.
28000 * symtab.c (dump_symtab_base): Dump aliases.
28001 (verify_symtab_base): Verify aliases.
28002 (symtab_node_availability): New function.
28003 (symtab_alias_ultimate_target): Simplify.
28004 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
28005 handle all the fixup cases.
28006 (symtab_resolve_alias): New function.
28007 * passes.c (ipa_write_summaries): Handle weakrefs.
28008 * varpool.c (varpool_analyze_node): Simplify.
28009 (assemble_aliases): Update.
28010 (varpool_create_variable_alias): Simplify.
28011 (varpool_extra_name_alias): Simplify.
28012 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
28013 (lto_symtab_merge_symbols): ... this one.
28014
28015 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
28016
28017 Revert
28018 PR rtl-optimization/57268
28019 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28020 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28021
28022 2013-06-01 Tobias Burnus <burnus@net-b.de>
28023
28024 Partially reverted:
28025 2013-05-31 Tobias Burnus <burnus@net-b.de>
28026
28027 PR middle-end/57073
28028 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
28029 further up.
28030
28031 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
28032
28033 PR rtl-optimization/57268
28034 * sched-deps.c (sched_analyze_2): Flush dependence lists if
28035 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
28036
28037 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28038
28039 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
28040 unordered comparison operators when -fno-trapping-math is in effect
28041 on the e500.
28042 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
28043 and implement unordered comparison operators properly on the e500.
28044
28045 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
28046
28047 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
28048 for constant scalar integers.
28049 (simplify_relational_operation_1): Likewise.
28050
28051 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
28052
28053 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
28054 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
28055 Fix comment.
28056
28057 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28058 Igor Zamyatin <igor.zamyatin@intel.com>
28059
28060 Silvermont (SLM) architecture performance tuning.
28061 * config/i386/i386.h (enum ix86_tune_indices): Add
28062 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
28063 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
28064
28065 * config/i386/i386.c (initial_ix86_tune_features)
28066 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
28067 (ix86_lea_outperforms): Handle Silvermont tuning.
28068 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
28069 call.
28070 (ix86_use_lea_for_mov): Likewise.
28071 (ix86_avoid_lea_for_addr): Likewise.
28072 (ix86_lea_for_add_ok): Likewise.
28073 (exact_dependency_1): New function.
28074 (exact_store_load_dependency): Likewise.
28075 (ix86_adjust_cost): Handle Silvermont tuning.
28076 (do_reoder_for_imul): Likewise.
28077 (swap_top_of_ready_list): New function.
28078 (ix86_sched_reorder): Changed to handle Silvermont tuning.
28079
28080 * config/i386/i386.md (peepholes that split memory operand in fp
28081 converts): New.
28082
28083 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28084
28085 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28086 Remove un-necessary braces.
28087
28088 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
28089
28090 * config/aarch64/aarch64.c (aarch64_classify_symbol):
28091 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
28092
28093 2013-05-31 Tobias Burnus <burnus@net-b.de>
28094
28095 PR middle-end/57073
28096 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
28097
28098 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28099
28100 PR target/56315
28101 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
28102 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
28103 * config/arm/neon.md (iordi3_neon): Remove.
28104 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
28105 * config/arm/predicates.md (imm_for_neon_logic_operand):
28106 Move to earlier in the file.
28107 (neon_logic_op2): Likewise.
28108 (arm_iordi_operand_neon): New predicate.
28109
28110 2013-05-31 Richard Biener <rguenther@suse.de>
28111
28112 PR tree-optimization/57478
28113 PR tree-optimization/57453
28114 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
28115 are life as well.
28116
28117 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28118
28119 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
28120 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
28121
28122 2013-05-30 Tobias Burnus <burnus@net-b.de>
28123 Thomas Koenig <tkoenig@gcc.gnu.org>
28124
28125 PR middle-end/57073
28126 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
28127 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
28128
28129 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
28130
28131 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
28132
28133 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
28134
28135 * target.def (register_usage_leveling_p): New hook.
28136 * targhooks.c (default_register_usage_leveling_p): New.
28137 * targhooks.h (default_register_usage_leveling_p): New prototype.
28138 * lra-assigns.c (register_usage_leveling_p): Use the hook.
28139 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
28140 * doc/tm.texi: Update.
28141 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
28142
28143 2013-05-30 Ian Bolton <ian.bolton@arm.com>
28144
28145 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
28146 (*insv_reg<mode>): New define_insn.
28147
28148 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
28149
28150 PR rtl-optimization/57439
28151 * postreload.c (move2add_valid_value_p): Check that we have
28152 a zero subreg_regno_offset when accessing the register in
28153 the requested mode.
28154
28155 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
28156 Igor Zamyatin <igor.zamyatin@intel.com>
28157
28158 Silvermont (SLM) architecture pipeline model, tuning and
28159 insn selection.
28160 * config.gcc: Add slm config options and target.
28161
28162 * config/i386/slm.md: New.
28163
28164 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
28165
28166 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28167 PROCESSOR_SLM.
28168 (ix86_target_macros_internal): Likewise.
28169
28170 * config/i386/i386.c (slm_cost): New cost.
28171 (m_SLM): New macro flag.
28172 (initial_ix86_tune_features): Set m_SLM.
28173 (x86_accumulate_outgoing_args): Likewise.
28174 (x86_arch_always_fancy_math_387): Likewise.
28175 (processor_target_table): Add slm cost.
28176 (cpu_names): Add slm cpu name.
28177 (x86_option_override_internal): Set SLM ISA.
28178 (ix86_issue_rate): New case PROCESSOR_SLM.
28179 (ia32_multipass_dfa_lookahead): Likewise.
28180 (fold_builtin_cpu): Add slm.
28181
28182 * config/i386/i386.h (TARGET_SLM): New target macro.
28183 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
28184 (processor_type): Add PROCESSOR_SLM.
28185
28186 * config/i386/i386.md (cpu): Add new value "slm".
28187 (slm.md): Include slm.md.
28188
28189 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
28190 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28191
28192 * config/arm/arm-protos.h: Add and update function protos.
28193 * config/arm/arm.c (use_simple_return_p): New added.
28194 (thumb2_expand_return): Check simple_return flag.
28195 * config/arm/arm.md: Add simple_return and conditional simple_return.
28196 * config/arm/iterators.md: Add iterator for return and simple_return.
28197
28198 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28199
28200 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
28201 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
28202 (arm_emit_vfp_multi_reg_pop): Likewise.
28203 (thumb2_emit_ldrd_pop): Likewise.
28204 (arm_expand_epilogue): Add misc REG_CFA notes.
28205 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
28206
28207 2013-05-29 Lawrence Crowl <crowl@google.com>
28208
28209 * config/arm/t-arm: Update for below.
28210
28211 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
28212 Change type to hash_table. Update dependent calls and types.
28213
28214 * config/i386/t-cygming: Update for below.
28215
28216 * config/i386/t-interix: Update for below.
28217
28218 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
28219 Change type to hash_table. Update dependent calls and types.
28220 (i386_find_on_wrapper_list::wrappers): Likewise.
28221
28222 * config/ia64/t-ia64: Update for below.
28223
28224 * config/ia64/ia64.c (bundle_state_table):
28225 Change type to hash_table. Update dependent calls and types.
28226
28227 * config/mips/mips.c (mips_reorg_process_insns::htab):
28228 Change type to hash_table. Update dependent calls and types.
28229
28230 * config/sol2.c (solaris_comdat_htab):
28231 Change type to hash_table. Update dependent calls and types.
28232
28233 * config/t-sol2: Update for above.
28234
28235 2013-05-29 Teresa Johnson <tejohnson@google.com>
28236
28237 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
28238 functions are not yet marked as defined.
28239
28240 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
28241 Pat Haugen <pthaugen@us.ibm.com>
28242 Peter Bergner <bergner@vnet.ibm.com>
28243
28244 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
28245 instructions.
28246 (VEC_A): Likewise.
28247 (VEC_C): Likewise.
28248 (vrotl<mode>3): Likewise.
28249 (vashl<mode>3): Likewise.
28250 (vlshr<mode>3): Likewise.
28251 (vashr<mode>3): Likewise.
28252
28253 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
28254 support for power8 V2DI builtins.
28255
28256 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
28257 power8 V2DI builtins.
28258 (vupkhsw): Likewise.
28259 (vupklsw): Likewise.
28260 (vaddudm): Likewise.
28261 (vminsd): Likewise.
28262 (vmaxsd): Likewise.
28263 (vminud): Likewise.
28264 (vmaxud): Likewise.
28265 (vpkudum): Likewise.
28266 (vpksdss): Likewise.
28267 (vpkudus): Likewise.
28268 (vpksdus): Likewise.
28269 (vrld): Likewise.
28270 (vsld): Likewise.
28271 (vsrd): Likewise.
28272 (vsrad): Likewise.
28273 (vsubudm): Likewise.
28274 (vcmpequd): Likewise.
28275 (vcmpgtsd): Likewise.
28276 (vcmpgtud): Likewise.
28277 (vcmpequd_p): Likewise.
28278 (vcmpgtsd_p): Likewise.
28279 (vcmpgtud_p): Likewise.
28280 (vupkhsw): Likewise.
28281 (vupklsw): Likewise.
28282 (vaddudm): Likewise.
28283 (vmaxsd): Likewise.
28284 (vmaxud): Likewise.
28285 (vminsd): Likewise.
28286 (vminud): Likewise.
28287 (vpksdss): Likewise.
28288 (vpksdus): Likewise.
28289 (vpkudum): Likewise.
28290 (vpkudus): Likewise.
28291 (vrld): Likewise.
28292 (vsld): Likewise.
28293 (vsrad): Likewise.
28294 (vsrd): Likewise.
28295 (vsubudm): Likewise.
28296
28297 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28298 support for power8 V2DI instructions.
28299
28300 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
28301 power8 V2DI instructions. Combine pack and unpack insns to use an
28302 iterator for each mode. Check whether a particular mode supports
28303 Altivec instructions instead of just checking TARGET_ALTIVEC.
28304 (UNSPEC_VPKUWUM): Likewise.
28305 (UNSPEC_VPKSHSS): Likewise.
28306 (UNSPEC_VPKSWSS): Likewise.
28307 (UNSPEC_VPKUHUS): Likewise.
28308 (UNSPEC_VPKSHUS): Likewise.
28309 (UNSPEC_VPKUWUS): Likewise.
28310 (UNSPEC_VPKSWUS): Likewise.
28311 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
28312 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
28313 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
28314 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
28315 (UNSPEC_VUPKHSB): Likewise.
28316 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
28317 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
28318 (UNSPEC_VUPKHSH): Likewise.
28319 (UNSPEC_VUPKLSB): Likewise.
28320 (UNSPEC_VUPKLSH): Likewise.
28321 (VI2): Likewise.
28322 (VI_char): Likewise.
28323 (VI_scalar): Likewise.
28324 (VI_unit): Likewise.
28325 (VP): Likewise.
28326 (VP_small): Likewise.
28327 (VP_small_lc): Likewise.
28328 (VU_char): Likewise.
28329 (add<mode>3): Likewise.
28330 (altivec_vaddcuw): Likewise.
28331 (altivec_vaddu<VI_char>s): Likewise.
28332 (altivec_vadds<VI_char>s): Likewise.
28333 (sub<mode>3): Likewise.
28334 (altivec_vsubcuw): Likewise.
28335 (altivec_vsubu<VI_char>s): Likewise.
28336 (altivec_vsubs<VI_char>s): Likewise.
28337 (altivec_vavgs<VI_char>): Likewise.
28338 (altivec_vcmpbfp): Likewise.
28339 (altivec_eq<mode>): Likewise.
28340 (altivec_gt<mode>): Likewise.
28341 (altivec_gtu<mode>): Likewise.
28342 (umax<mode>3): Likewise.
28343 (smax<mode>3): Likewise.
28344 (umin<mode>3): Likewise.
28345 (smin<mode>3): Likewise.
28346 (altivec_vpkuhum): Likewise.
28347 (altivec_vpkuwum): Likewise.
28348 (altivec_vpkshss): Likewise.
28349 (altivec_vpkswss): Likewise.
28350 (altivec_vpkuhus): Likewise.
28351 (altivec_vpkshus): Likewise.
28352 (altivec_vpkuwus): Likewise.
28353 (altivec_vpkswus): Likewise.
28354 (altivec_vpks<VI_char>ss): Likewise.
28355 (altivec_vpks<VI_char>us): Likewise.
28356 (altivec_vpku<VI_char>us): Likewise.
28357 (altivec_vpku<VI_char>um): Likewise.
28358 (altivec_vrl<VI_char>): Likewise.
28359 (altivec_vsl<VI_char>): Likewise.
28360 (altivec_vsr<VI_char>): Likewise.
28361 (altivec_vsra<VI_char>): Likewise.
28362 (altivec_vsldoi_<mode>): Likewise.
28363 (altivec_vupkhsb): Likewise.
28364 (altivec_vupkhs<VU_char>): Likewise.
28365 (altivec_vupkls<VU_char>): Likewise.
28366 (altivec_vupkhsh): Likewise.
28367 (altivec_vupklsb): Likewise.
28368 (altivec_vupklsh): Likewise.
28369 (altivec_vcmpequ<VI_char>_p): Likewise.
28370 (altivec_vcmpgts<VI_char>_p): Likewise.
28371 (altivec_vcmpgtu<VI_char>_p): Likewise.
28372 (abs<mode>2): Likewise.
28373 (vec_unpacks_hi_v16qi): Likewise.
28374 (vec_unpacks_hi_v8hi): Likewise.
28375 (vec_unpacks_lo_v16qi): Likewise.
28376 (vec_unpacks_hi_<VP_small_lc>): Likewise.
28377 (vec_unpacks_lo_v8hi): Likewise.
28378 (vec_unpacks_lo_<VP_small_lc>): Likewise.
28379 (vec_pack_trunc_v8h): Likewise.
28380 (vec_pack_trunc_v4si): Likewise.
28381 (vec_pack_trunc_<mode>): Likewise.
28382
28383 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
28384 V2DI builtins.
28385 (vec_vmaxsd): Likewise.
28386 (vec_vmaxud): Likewise.
28387 (vec_vminsd): Likewise.
28388 (vec_vminud): Likewise.
28389 (vec_vpksdss): Likewise.
28390 (vec_vpksdus): Likewise.
28391 (vec_vpkudum): Likewise.
28392 (vec_vpkudus): Likewise.
28393 (vec_vrld): Likewise.
28394 (vec_vsld): Likewise.
28395 (vec_vsrad): Likewise.
28396 (vec_vsrd): Likewise.
28397 (vec_vsubudm): Likewise.
28398 (vec_vupkhsw): Likewise.
28399 (vec_vupklsw): Likewise.
28400
28401 2013-05-29 Jan Hubicka <jh@suse.cz>
28402
28403 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
28404 flags; reorder rest of fields in more consistent way.
28405 (varpool_node): Remove analyzed, finalized and alias.
28406 (cgraph_ndoe): Likewise.
28407 (symtab_alias_ultimate_target): New function.
28408 (cgraph_function_node): Move offline.
28409 (cgraph_reset_node): Declare.
28410 (cgraph_comdat_can_be_unshared_p): Remove.
28411 (varpool_remove_initializer): Declare.
28412 (varpool_first_defined_variable, varpool_next_defined_variable
28413 cgraph_first_defined_function, cgraph_next_defined_function): Update.
28414 (cgraph_function_with_gimple_body_p): Update.
28415 (varpool_all_refs_explicit_p): Update.
28416 (symtab_alias_target): New function.
28417 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
28418 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
28419 (cgraph_function_or_thunk_node): Simplify using
28420 symtab_alias_ultimate_target.
28421 (varpool_variable_node): Likewise.
28422 * cgraph.c (cgraph_create_function_alias): Update.
28423 (cgraph_add_thunk): Update.
28424 (cgraph_remove_node): Update.
28425 (dump_cgraph_node): Do not dump removed flags.
28426 (cgraph_function_body_availability): Update.
28427 (cgraph_propagate_frequency): Update.
28428 (verify_cgraph_node): Check sanity of local flag.
28429 (cgraph_function_node): Move here from cgraph.h; revamp for
28430 cgraph_function_or_thunk_node.
28431 * lto-symtab.c (lto_varpool_replace_node): Update.
28432 (lto_symtab_resolve_can_prevail_p): Update.
28433 (lto_symtab_merge_cgraph_nodes): Update.
28434 * ipa-cp.c (determine_versionability, initialize_node_lattices,
28435 propagate_constants_accross_call, devirtualization_time_bonus,
28436 ipcp_propagate_stage): Update.
28437 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
28438 * ipa-inline-transform.c (clone_inlined_nodes,
28439 preserve_function_body_p): Update.
28440 * ipa-reference.c (propagate): Update.
28441 (write_node_summary_p): Update.
28442 * toplev.c (wrapup_global_declaration_2): Update.
28443 * cgraphunit.c (cgraph_analyze_function): Rename to ...
28444 (analyze_function) ... this one.
28445 (cgraph_process_new_functions): Update.
28446 (cgraph_reset_node): Export.
28447 (cgraph_finalize_function): Update.
28448 (cgraph_add_new_function): Update.
28449 (process_function_and_variable_attributes): Update.
28450 (varpool_finalize_decl): Update.
28451 (symbol_finalized): Remove.
28452 (symbol_finalized_and_needed): Rename to ...
28453 (symbol_defined_and_needed): ... update.
28454 (cgraph_analyze_functions): Update.
28455 (handle_alias_pairs): Update.
28456 (mark_functions_to_output): Update.
28457 (assemble_thunk): Update.
28458 (output_in_order): Update.
28459 (output_weakrefs): Update.
28460 (finalize_compilation_unit): Update.
28461 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
28462 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
28463 input_node, input_varpool_node): Update.
28464 * dbxout.c (dbxout_expand_expr): Update.
28465 * cgraphclones.c (cgraph_clone_node): Update.
28466 (cgraph_copy_node_for_versioning): Update.
28467 (cgraph_materialize_clone): Update.
28468 (cgraph_materialize_all_clones): Update.
28469 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
28470 propagate_pure_const, propagate_nothrow): Update.
28471 * lto-streamer-out.c (lto_output, write_symbol): Update.
28472 * ipa-utils.c (ipa_reverse_postorder): Update.
28473 * ipa-inline.c (can_inline_edge_p): Update.
28474 (update_caller_keys, ipa_inline): Update.
28475 * dwarf2out.c (reference_to_unused,
28476 premark_types_used_by_global_vars_helper): Update.
28477 * tree-eh.c (tree_could_trap_p): Update.
28478 * ipa-split.c (consider_split, execute_split_functions): Update.
28479 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
28480 has_addr_references_p): Update; move ahead in file for better
28481 readability.
28482 (process_references): Simplify.
28483 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
28484 bodies are removed.
28485 (cgraph_comdat_can_be_unshared_p): Make static.
28486 (cgraph_externally_visible_p): Update.
28487 (varpool_externally_visible_p): Update.
28488 (function_and_variable_visibility): Update.
28489 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
28490 ipa_tm_mark_force_output_node): Update.
28491 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
28492 estimate_edge_devirt_benefit, inline_generate_summary,
28493 inline_write_summary): Update.
28494 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
28495 * ipa-prop.c (ipa_compute_jump_functions): Update.
28496 (ipa_print_node_params, ipa_prop_read_section,
28497 ipa_update_after_lto_read, read_replacements_section): Update.
28498 * varasm.c (mark_decl_referenced): Update.
28499 (assemble_alias, dump_tm_clone_pairs): Update.
28500 * tree-inline.c (copy_bb): Update.
28501 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
28502 Update.
28503 * symtab.c (dump_symtab_base): Print new flags.
28504 (verify_symtab_base): Verify new flags.
28505 (symtab_alias_ultimate_target): New function.
28506 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
28507 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
28508 Update.
28509 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
28510 Update.
28511 * i386.c (ix86_get_function_versions_dispatcher,
28512 ix86_generate_version_dispatcher_body): Update.
28513 (fold_builtin_cpu): Use varpool_add_new_variable.
28514 * varpool.c (varpool_remove_initializer): Break out from ...
28515 (varpool_remove_node): ... this one.
28516 (dump_varpool_node, varpool_node_for_asm,
28517 cgraph_variable_initializer_availability, varpool_analyze_node,
28518 varpool_assemble_decl, varpool_remove_unreferenced_decls,
28519 varpool_finalize_named_section_flags, varpool_create_variable_alias):
28520 Update.
28521
28522 2013-05-29 Jan Hubicka <jh@suse.cz>
28523
28524 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
28525
28526 2013-05-29 Easwaran Raman <eraman@google.com>
28527
28528 PR tree-optimization/57442
28529 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
28530 when control exits the main loop.
28531
28532 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
28533
28534 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
28535 and RX600.
28536 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
28537 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
28538 * rx/t-rx: Add rx100 under multi library matches option for nofpu
28539 option.
28540
28541 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28542
28543 PR tree-optimization/57441
28544 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
28545 Don't limit size of incr_vec to number of candidates.
28546
28547 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
28548
28549 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
28550 and mips16 directories.
28551 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
28552 (MULTILIB_DIRNAMES): Ditto.
28553 (MULTILIB_EXCEPTIONS): Add new exceptions.
28554 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
28555 (MULTILIB_DIRNAMES): Ditto.
28556 (MULTILIB_EXCEPTIONS): Add new exceptions.
28557
28558 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28559 Marcus Shawcroft <marcus.shawcroft@arm.com>
28560
28561 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
28562 SYMBOL_TINY_ABSOLUTE.
28563 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
28564 SYMBOL_TINY_ABSOLUTE.
28565 (aarch64_expand_mov_immediate): Likewise.
28566 (aarch64_classify_symbol): Likewise.
28567 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
28568 Permit SYMBOL_TINY_ABSOLUTE.
28569 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
28570
28571 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28572 Marcus Shawcroft <marcus.shawcroft@arm.com>
28573
28574 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
28575 Refactor if/switch. Replace gcc_assert with if.
28576
28577 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28578
28579 * config/i386/i386.c (initial_ix86_tune_features): Enable
28580 FP Reassociation for AMD bdver1 and bdver2.
28581
28582 2013-05-29 Martin Jambor <mjambor@suse.cz>
28583
28584 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
28585 and IMAGPART_EXPR do not occur within other handled_components.
28586
28587 2013-05-29 Richard Biener <rguenther@suse.de>
28588
28589 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
28590 access on whether the use is in the BB we currently try to
28591 vectorize.
28592 (vect_bb_vectorization_profitable_p): Pass the BB we currently
28593 vectorize to vect_bb_slp_scalar_cost.
28594
28595 2013-05-29 Richard Biener <rguenther@suse.de>
28596
28597 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
28598 computing scalar cost offsetted by stmts that are kept live
28599 by scalar uses.
28600 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
28601 for computation of scalar cost.
28602
28603 2013-05-28 Steve Ellcey <sellcey@mips.com>
28604
28605 * config/mips/mips-cpus.def (mips32r2): Change processor type.
28606
28607 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
28608
28609 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
28610 array notation built-in reduction functions.
28611 * doc/passes.texi (Passes): Added documentation about changes done
28612 for Cilk Plus.
28613 * doc/invoke.texi (C Dialect Options): Added documentation about
28614 the -fcilkplus flag.
28615 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
28616 (BUILTINS_DEF): Depend on cilkplus.def.
28617 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
28618 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
28619 * cilkplus.def: New file.
28620
28621 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
28622
28623 PR rtl-optimization/57439
28624 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
28625
28626 2013-05-28 Easwaran Raman <eraman@google.com>
28627
28628 PR tree-optimization/57337
28629 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
28630 (find_insert_point): Correctly identify the insertion point
28631 when two statements with the same UID is compared.
28632
28633 2013-05-28 Richard Biener <rguenther@suse.de>
28634
28635 PR tree-optimization/56787
28636 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
28637 from the list of data references.
28638 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
28639 clobbers.
28640 (vect_analyze_loop_operations): Likewise.
28641 (vect_transform_loop): Remove clobbers.
28642
28643 2013-05-28 Martin Jambor <mjambor@suse.cz>
28644
28645 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
28646 and REALPART_EXPRs have scalar type.
28647
28648 2013-05-28 Richard Biener <rguenther@suse.de>
28649
28650 PR tree-optimization/57411
28651 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
28652 virtual operands.
28653 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
28654 virtual operand propagation.
28655
28656 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28657
28658 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
28659 destination register for bmasksi_vis.
28660 (vector_init_bshuffle): Likewise.
28661 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
28662
28663 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
28664
28665 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
28666 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
28667 mode if the instruction isn't available in the original mode.
28668 * config/sparc/sparc.opt (mfix-ut699): New option.
28669 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
28670 (divdf3): Turn into expander.
28671 (divdf3_nofix): New insn.
28672 (divdf3_fix): Likewise.
28673 (divsf3): Disable if -mfix-ut699.
28674 (sqrtdf2): Turn into expander.
28675 (sqrtdf2_nofix): New insn.
28676 (sqrtdf2_fix): Likewise.
28677 (sqrtsf2): Disable if -mfix-ut699.
28678
28679 2013-05-27 Richard Biener <rguenther@suse.de>
28680
28681 PR middle-end/57412
28682 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
28683 block for the new loop.
28684
28685 2013-05-27 Richard Biener <rguenther@suse.de>
28686
28687 PR tree-optimization/57343
28688 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
28689 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
28690 (number_of_iterations_cond): Do not build the folded tree.
28691
28692 2013-05-27 Richard Biener <rguenther@suse.de>
28693
28694 Revert
28695 PR middle-end/57381
28696 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28697 OEP_CONSTANT_ADDRESS_OF retained.
28698
28699 PR tree-optimization/57417
28700 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
28701 for unchanged base.
28702 (set_ssa_val_to): Compare addresses using
28703 get_addr_base_and_unit_offset.
28704
28705 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
28706
28707 PR rtl-optimization/56833
28708 * postreload.c (move2add_record_mode): New function.
28709 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
28710 (move2add_use_add2_insn): Use move2add_record_sym_value.
28711 (move2add_use_add3_insn): Likewise.
28712 (reload_cse_move2add): Use move2add_valid_value_p and
28713 move2add_record_mode. Invalidate call-clobbered and REG_INC
28714 affected regs by setting reg_mode to VOIDmode.
28715 (move2add_note_store): Don't pretend the inside of a SUBREG is
28716 the actual destination. Invalidate single/leading registers by
28717 setting reg_mode to VOIDmode.
28718 Use move2add_record_sym_value, move2add_valid_value_p and
28719 move2add_record_mode.
28720
28721 2013-05-27 Richard Biener <rguenther@suse.de>
28722
28723 PR tree-optimization/57396
28724 * tree-affine.c (double_int_constant_multiple_p): Properly
28725 return false for val == 0 and div != 0.
28726
28727 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28728
28729 * config/mips/mips.h: Use #elif in preprocessor conditions.
28730
28731 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28732
28733 PR target/53916
28734 * config/mips/constraints.md (kl): New constraint.
28735 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
28736 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
28737 constraint for operand 0. Split after CSE for MIPS16. Emit a move
28738 from LO for MIPS16.
28739 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
28740
28741 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
28742
28743 PR target/55777
28744 * config/mips/mips.c (mips_can_inline_p): New function.
28745 (TARGET_CAN_INLINE_P): Define.
28746
28747 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
28748
28749 * sched-int.h (ds_t, dw_t): Make unsigned int.
28750 Fix documentation that describes how all the ds_t bits are used.
28751 Reserve the last bit for delayed-branch scheduling.
28752 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
28753 (BITS_PER_DEP_WEAK): Fix definition and documentation.
28754 (gen_dep_weak_1): Remove prototype.
28755 * sched-deps.c (get_dep_weak_1): Make static.
28756 * target.def (speculate_insn, needs_block_p, gen_spec_check,
28757 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
28758 * doc/tm.texi: Regenerate.
28759 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
28760
28761 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
28762
28763 PR debug/56950
28764 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
28765
28766 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
28767 Sandra Loosemore <sandra@codesourcery.com>
28768
28769 * config.gcc (powerpc-*): Allow native for with-cpu.
28770
28771 2013-05-24 Jeff Law <law@redhat.com>
28772
28773 PR tree-optimization/57124
28774 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
28775 conversion feeding a condition if the range has an overflow
28776 if -fstrict-overflow. Add warnings for when we do make the
28777 transformation.
28778
28779 2013-05-24 Dehao Chen <dehao@google.com>
28780
28781 * tree-cfg.c (locus_discrim_map): Fix the typo.
28782 (locus_discrim_hasher): Likewise.
28783 (locus_discrim_hasher::hash): Likewise.
28784 (locus_discrim_hasher::equal): Likewise.
28785
28786 2013-05-24 Martin Jambor <mjambor@suse.cz>
28787
28788 PR tree-optimization/57294
28789 * cgraph.h (ipa_record_stmt_references): Declare.
28790 * cgraphbuild.c (ipa_record_stmt_references): New function.
28791 (build_cgraph_edges): Use ipa_record_stmt_references.
28792 (rebuild_cgraph_edges): Likewise.
28793 (cgraph_rebuild_references): Likewise.
28794 * ipa-prop.c (ipa_modify_call_arguments): Discard references
28795 associated with the old statement and build references from the
28796 newly built statements.
28797 * ipa-ref.c (ipa_remove_stmt_references): New function.
28798 * ipa-ref.h (ipa_remove_stmt_references): Declare.
28799
28800 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
28801
28802 * lra-constraints.c (emit_spill_move): Use smaller mode for
28803 mem-mem moves.
28804 (check_and_process_move): Consider mem-reg moves for secondary
28805 too.
28806 (curr_insn_transform): Don't lose insns emitted before for
28807 secondary memory moves.
28808 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
28809 reg set up in the current insn.
28810
28811 2013-05-24 Dehao Chen <dehao@google.com>
28812
28813 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
28814 hash function.
28815 (locus_descrim_hasher::equal): Likewise.
28816 (build_gimple_cfg): New discriminator assignment algorithm.
28817 (make_edges): Likewise.
28818 (next_discriminator_for_locus): Likewise.
28819 (same_line_p): Likewise.
28820 (assign_discriminators): Likewise.
28821 (make_cond_expr_edges): Likewise.
28822 (make_gimple_switch_edges): Likewise.
28823 (make_goto_expr_edges): Likewise.
28824 (make_gimple_asm_edges): Likewise.
28825
28826 2013-05-24 Ian Bolton <ian.bolton@arm.com>
28827
28828 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
28829 X format specifier to only display bottom 16 bits.
28830 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
28831 immediate to match for operand 2, since it will be masked.
28832
28833 2013-05-24 Richard Biener <rguenther@suse.de>
28834
28835 PR tree-optimization/57287
28836 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
28837 all SSA names that occur in abnormal PHIs.
28838
28839 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
28840
28841 PR tree-ssa/57385
28842 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
28843 that index is not negative.
28844
28845 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
28846
28847 PR rtl-optimization/55177
28848 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
28849 (simplify_byte_swapping_operation): New.
28850 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
28851 (simplify_relational_operation_1): Deal with BSWAP.
28852
28853 2013-05-23 Richard Henderson <rth@redhat.com>
28854
28855 PR target/56742
28856 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
28857 (ix86_reorg): Call it.
28858
28859 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
28860
28861 PR target/57379
28862 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
28863 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
28864 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
28865
28866 2013-05-23 Christian Bruel <christian.bruel@st.com>
28867
28868 PR debug/57351
28869 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
28870
28871 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28872 Marcus Shawcroft <marcus.shawcroft@arm.com>
28873
28874 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
28875 * config/aarch64/constraints.md (Usa): Remove.
28876 * doc/md.texi (AArch64 Usa): Remove.
28877
28878 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
28879 Marcus Shawcroft <marcus.shawcroft@arm.com>
28880
28881 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
28882 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
28883 * config/aarch64/predicates.md (aarch64_const_address): Remove.
28884 (aarch64_mov_operand): Use aarch64_mov_operand_p.
28885
28886 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
28887
28888 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
28889 instruction (AdvSIMD).
28890 * config/aarch64/aarch64-builtins.c
28891 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
28892 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
28893
28894 2013-05-23 Martin Jambor <mjambor@suse.cz>
28895
28896 PR middle-end/57347
28897 * tree.h (contains_bitfld_component_ref_p): Declare.
28898 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
28899 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
28900 caller.
28901 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
28902 not access a bit-field. Assert all final offsets are byte-aligned.
28903
28904 2013-05-23 Richard Biener <rguenther@suse.de>
28905
28906 PR tree-optimization/57380
28907 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
28908 least one invariant or re-used load.
28909 * passes.c (init_optimization_passes): Move pass_phiprop before
28910 pass_forwprop.
28911
28912 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
28913
28914 * config/aarch64/aarch64-simd.md
28915 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
28916
28917 2013-05-23 Richard Biener <rguenther@suse.de>
28918
28919 PR middle-end/57381
28920 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
28921 OEP_CONSTANT_ADDRESS_OF retained.
28922
28923 2013-05-23 Jakub Jelinek <jakub@redhat.com>
28924
28925 PR middle-end/57344
28926 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
28927 don't lower unit. Handle unit not being always BITS_PER_WORD.
28928
28929 2013-05-23 Richard Biener <rguenther@suse.de>
28930
28931 PR rtl-optimization/57341
28932 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
28933 instead of true_dependence.
28934
28935 2013-05-22 David Malcolm <dmalcolm@redhat.com>
28936
28937 * bb-reorder.c (branch_threshold): Make const.
28938 (exec_threshold): Ditto.
28939
28940 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28941 Pat Haugen <pthaugen@us.ibm.com>
28942 Peter Bergner <bergner@vnet.ibm.com>
28943
28944 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
28945 documentation for the power8 crypto builtins.
28946
28947 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
28948
28949 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
28950 macros for defining power8 builtin functions.
28951 (BU_P8V_AV_2): Likewise.
28952 (BU_P8V_AV_P): Likewise.
28953 (BU_P8V_VSX_1): Likewise.
28954 (BU_P8V_OVERLOAD_1): Likewise.
28955 (BU_P8V_OVERLOAD_2): Likewise.
28956 (BU_CRYPTO_1): Likewise.
28957 (BU_CRYPTO_2): Likewise.
28958 (BU_CRYPTO_3): Likewise.
28959 (BU_CRYPTO_OVERLOAD_1): Likewise.
28960 (BU_CRYPTO_OVERLOAD_2): Likewise.
28961 (XSCVSPDP): Fix typo, point to the correct instruction.
28962 (VCIPHER): Add power8 crypto builtins.
28963 (VCIPHERLAST): Likewise.
28964 (VNCIPHER): Likewise.
28965 (VNCIPHERLAST): Likewise.
28966 (VPMSUMB): Likewise.
28967 (VPMSUMH): Likewise.
28968 (VPMSUMW): Likewise.
28969 (VPERMXOR_V2DI): Likewise.
28970 (VPERMXOR_V4SI: Likewise.
28971 (VPERMXOR_V8HI: Likewise.
28972 (VPERMXOR_V16QI: Likewise.
28973 (VSHASIGMAW): Likewise.
28974 (VSHASIGMAD): Likewise.
28975 (VPMSUM): Likewise.
28976 (VPERMXOR): Likewise.
28977 (VSHASIGMA): Likewise.
28978
28979 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
28980 __CRYPTO__ if the crypto instructions are available.
28981 (altivec_overloaded_builtins): Add support for overloaded power8
28982 builtins.
28983
28984 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
28985 support for power8 crypto builtins.
28986 (builtin_function_type): Likewise.
28987 (altivec_init_builtins): Add support for builtins that take vector
28988 long long (V2DI) arguments.
28989
28990 * config/rs6000/crypto.md: New file, define power8 crypto
28991 instructions.
28992
28993 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
28994 Pat Haugen <pthaugen@us.ibm.com>
28995 Peter Bergner <bergner@vnet.ibm.com>
28996
28997 * doc/invoke.texi (Option Summary): Add power8 options.
28998 (RS/6000 and PowerPC Options): Likewise.
28999
29000 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
29001 constraints.md instead of rs6000.h. Reorder w* constraints. Add
29002 wm, wn, wr documentation.
29003
29004 * config/rs6000/constraints.md (wm): New constraint for VSX
29005 registers if direct move instructions are enabled.
29006 (wn): New constraint for no registers.
29007 (wq): New constraint for quad word even GPR registers.
29008 (wr): New constraint if 64-bit instructions are enabled.
29009 (wv): New constraint if power8 vector instructions are enabled.
29010 (wQ): New constraint for quad word memory locations.
29011
29012 * config/rs6000/predicates.md (const_0_to_15_operand): New
29013 constraint for 0..15 for crypto instructions.
29014 (gpc_reg_operand): If VSX allow registers in VSX registers as well
29015 as GPR and floating point registers.
29016 (int_reg_operand): New predicate to match only GPR registers.
29017 (base_reg_operand): New predicate to match base registers.
29018 (quad_int_reg_operand): New predicate to match even GPR registers
29019 for quad memory operations.
29020 (vsx_reg_or_cint_operand): New predicate to allow vector logical
29021 operations in both GPR and VSX registers.
29022 (quad_memory_operand): New predicate for quad memory operations.
29023 (reg_or_indexed_operand): New predicate for direct move support.
29024
29025 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
29026 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
29027 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
29028 (POWERPC_MASKS): Add power8 options.
29029 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
29030 various options.
29031
29032 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29033 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
29034
29035 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
29036 (-mpower8-fusion): New power8 options.
29037 (-mpower8-fusion-sign): Likewise.
29038 (-mpower8-vector): Likewise.
29039 (-mcrypto): Likewise.
29040 (-mdirect-move): Likewise.
29041 (-mquad-memory): Likewise.
29042
29043 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
29044 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
29045 registers.
29046 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
29047 (rs6000_debug_vector_unit): Add p8_vector.
29048 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
29049 definitions. Also print fusion state.
29050 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
29051 (rs6000_builtin_mask_calculate): Add power8 builtin support.
29052 (rs6000_option_override_internal): Add support for power8.
29053 (rs6000_common_init_builtins): Add debugging for skipped builtins
29054 if -mdebug=builtin.
29055 (rs6000_adjust_cost): Add power8 support.
29056 (rs6000_issue_rate): Likewise.
29057 (insn_must_be_first_in_group): Likewise.
29058 (insn_must_be_last_in_group): Likewise.
29059 (force_new_group): Likewise.
29060 (rs6000_register_move_cost): Likewise.
29061 (rs6000_opt_masks): Likewise.
29062
29063 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
29064 power8 capable assembler, default to power7 options.
29065 (TARGET_DIRECT_MOVE): Likewise.
29066 (TARGET_CRYPTO): Likewise.
29067 (TARGET_P8_VECTOR): Likewise.
29068 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
29069 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
29070 (VECTOR_MEM_P8_VECTOR_P): Likewise.
29071 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
29072 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
29073 (TARGET_XSCVDPSPN): Likewise.
29074 (TARGET_XSCVSPDPN): Likewsie.
29075 (TARGET_SYNC_HI_QI): Likewise.
29076 (TARGET_SYNC_TI): Likewise.
29077 (MASK_CRYPTO): Likewise.
29078 (MASK_DIRECT_MOVE): Likewise.
29079 (MASK_P8_FUSION): Likewise.
29080 (MASK_P8_VECTOR): Likewise.
29081 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
29082 temporary used by some of the direct move instructions to get two FP
29083 temporary registers does not force creation of a stack frame.
29084 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
29085 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
29086 that any VSX registers are tieable, even if they are also an
29087 Altivec vector mode.
29088 (r6000_reg_class_enum): Add wm, wr, wv constraints.
29089 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
29090 (RS6000_BTM_CRYPTO): Likewise.
29091 (RS6000_BTM_COMMON): Likewise.
29092
29093 * config/rs6000/rs6000.md (cpu attribute): Add power8.
29094 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
29095 (enum rs6000_vector): Add power8 vector support.
29096
29097 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29098
29099 PR target/19599
29100 PR target/57340
29101 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
29102 (any_sibcall_could_use_r3): this and handle indirect calls.
29103 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
29104
29105 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29106
29107 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
29108
29109 2013-05-22 Richard Biener <rguenther@suse.de>
29110
29111 PR middle-end/57349
29112 * profile.c (branch_prob): Do not split blocks that are
29113 abnormally receiving from ECF_RETURNS_TWICE functions.
29114
29115 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29116
29117 * recog.c (offsettable_address_addr_space_p): Fix calculation of
29118 address mode. Move pointer mode initialization to the same place.
29119
29120 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29121
29122 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
29123 while it has any effect.
29124
29125 2013-05-21 Easwaran Raman <eraman@google.com>
29126
29127 PR tree-optimization/57322
29128 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
29129 UID of the statement added to the BB to be 1.
29130
29131 2013-05-21 Jakub Jelinek <jakub@redhat.com>
29132
29133 PR tree-optimization/57331
29134 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
29135 of conversion from pointer type to integral type with integer.
29136
29137 2013-05-21 Martin Jambor <mjambor@suse.cz>
29138
29139 PR lto/57289
29140 * ipa-prop.c (ipa_read_node_info): Process param_used and
29141 controlled_uses in the same order as when writing.
29142
29143 2013-05-21 Magnus Granberg <baldrick@free.fr>
29144
29145 PR plugins/56754
29146 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
29147
29148 2013-05-21 Richard Biener <rguenther@suse.de>
29149
29150 PR tree-optimization/57318
29151 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
29152 estimate stmts with side-effects as likely eliminated.
29153
29154 2013-05-21 Richard Biener <rguenther@suse.de>
29155
29156 PR tree-optimization/57330
29157 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
29158 preserve the call stmts fntype.
29159
29160 2013-05-21 Richard Biener <rguenther@suse.de>
29161
29162 PR tree-optimization/57303
29163 * tree-ssa-sink.c (statement_sink_location): Improve killing
29164 stmt detection and properly handle self-assignments.
29165
29166 2013-05-21 Christian Bruel <christian.bruel@st.com>
29167
29168 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
29169 spanning registers. LEAF_REG_REMAP is supported only for contiguous
29170 registers. Set register size out of the PARALLEL loop.
29171
29172 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
29173
29174 PR target/56547
29175 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
29176 (*fmasf4, *fmasf4_media): New insns.
29177
29178 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29179
29180 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
29181 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
29182 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
29183 (mips_idiv_insns): Update the comments to say that the returned
29184 instruction counts are in units of BASE_INSN_LENGTH.
29185 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
29186 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
29187 using 2 rather than 4 as the length of indirect MIPS16 and
29188 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
29189 length of a NOP. Don't divide MIPS16 lengths by 2.
29190 (mips16_split_long_branches): Assume a branch is long if the
29191 length is greater than 4 rather than 8.
29192 * config/mips/mips.md (length): Give MIPS16 lengths directly,
29193 rather than multiplying them by 2. Multiply instruction counts
29194 by BASE_INSN_LENGTH rather than 4.
29195 (*jump_mips16, tls_get_tp_mips16_<mode>)
29196 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
29197
29198 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29199
29200 * config/mips/mips.md (extended_mips16): Remove branch case.
29201 (length): Remove duplicated extended_mips16 test.
29202
29203 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
29204
29205 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
29206
29207 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
29208
29209 * recog.h (Recog_data): Rename to...
29210 (recog_data_d): ...this.
29211 (recog_data): Update accordingly.
29212 * recog.c (recog_data): Likewise.
29213 * reload.c (save_recog_data): Likewise.
29214 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
29215 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
29216
29217 2013-05-17 Julian Brown <julian@codesourcery.com>
29218
29219 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
29220 found in a REG_EQUAL note, invalidate it.
29221
29222 2013-05-17 Easwaran Raman <eraman@google.com>
29223
29224 * tree-ssa-reassoc.c (find_insert_point): New function.
29225 (insert_stmt_after): Likewise.
29226 (get_def_stmt): Likewise.
29227 (ensure_ops_are_available): Likewise.
29228 (not_dominated_by): Likewise.
29229 (rewrite_expr_tree): Do not move statements beyond what is
29230 necessary. Remove call to swap_ops_for_binary_stmt...
29231 (reassociate_bb): ... and move it here.
29232 (build_and_add_sum): Assign UIDs for new statements.
29233 (linearize_expr): Likewise.
29234 (do_reassoc): Renumber gimple statement UIDs.
29235
29236 2013-05-17 Jan Hubicka <jh@suse.cz>
29237
29238 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
29239 weakrefs.
29240 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
29241 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
29242 weakrefs.
29243 (output_weakrefs): Update.
29244
29245 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
29246 Martin Jambor <mjambor@suse.cz>
29247
29248 PR middle-end/57276
29249 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
29250 value that corresponds to the given aggval is found in values vector.
29251
29252 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
29253
29254 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
29255 sse, sse2, sse3, ssse3 and sse4a flags to options.
29256
29257 2013-05-17 David Malcolm <dmalcolm@redhat.com>
29258
29259 * gengtype-state.c: (s_expr_writer): New class, to handle
29260 prettifying of output layout of s-expressions.
29261 (state_writer): New class, to write out gtype.state.
29262 (state_written_type_count): Move this variable into member data of
29263 state_writer.
29264 (s_expr_writer::s_expr_writer): New code: constructor for new class
29265 (state_writer::state_writer(): ditto
29266 (s_expr_writer::write_new_line): New function
29267 (s_expr_writer::write_any_indent): ditto
29268 (s_expr_writer::begin_s_expr): ditto
29269 (s_expr_writer::end_s_expr): ditto
29270 (write_state_fileloc): convert to method of state_writer...
29271 (state_writer:: write_state_fileloc): ...and use methods of
29272 s_expr_writer to write indentation into the gtype.state output file
29273 to visually represent the hierarchical structure of the list
29274 structures
29275 (write_state_fields): ditto, renaming to...
29276 (state_writer::write_state_fields)
29277 (write_state_a_string): ditto, renaming to...
29278 (state_writer::write_state_a_string)
29279 (write_state_string_option): ditto, renaming to...
29280 (state_writer::write_state_string_option)
29281 (write_state_type_option): ditto, renaming to...
29282 (state_writer::write_state_type_option)
29283 (write_state_nested_option): ditto, renaming to...
29284 (state_writer::write_state_nested_option)
29285 (write_state_option): ditto, renaming to...
29286 (state_writer::write_state_option)
29287 (write_state_options): ditto, renaming to...
29288 (state_writer::write_state_options)
29289 (write_state_lang_bitmap): ditto, renaming to...
29290 (state_writer::write_state_lang_bitmap)
29291 (write_state_version): ditto, renaming to...
29292 (state_writer::write_state_version)
29293 (write_state_scalar_type): ditto, renaming to...
29294 (state_writer::write_state_scalar_type)
29295 (write_state_string_type): ditto, renaming to...
29296 (state_writer::write_state_string_type)
29297 (write_state_undefined_type): ditto, renaming to...
29298 (state_writer::write_state_undefined_type)
29299 (write_state_struct_union_type): ditto, renaming to...
29300 (state_writer::write_state_struct_union_type)
29301 (write_state_struct_type): ditto, renaming to...
29302 (state_writer::write_state_struct_type)
29303 (write_state_user_struct_type): ditto, renaming to...
29304 (state_writer::write_state_user_struct_type)
29305 (write_state_lang_struct_type): ditto, renaming to...
29306 (state_writer::write_state_lang_struct_type)
29307 (write_state_param_struct_type): ditto, renaming to...
29308 (state_writer::write_state_param_struct_type)
29309 (write_state_pointer_type): ditto, renaming to...
29310 (state_writer::write_state_pointer_type)
29311 (write_state_array_type): ditto, renaming to...
29312 (state_writer::write_state_array_type)
29313 (write_state_gc_used): ditto, renaming to...
29314 (state_writer::write_state_gc_used)
29315 (write_state_common_type_content): ditto, renaming to...
29316 (state_writer::write_state_common_type_content)
29317 (write_state_type): ditto, renaming to...
29318 (state_writer::write_state_type)
29319 (write_state_pair_list): ditto, renaming to...
29320 (state_writer::write_state_pair_list)
29321 (write_state_pair): ditto, renaming to...
29322 (state_writer::write_state_pair)
29323 (write_state_typedefs): ditto, renaming to...
29324 (state_writer::write_state_typedefs)
29325 (write_state_structures): ditto, renaming to...
29326 (state_writer::write_state_structures)
29327 (write_state_param_structs): ditto, renaming to...
29328 (state_writer::write_state_param_structs)
29329 (write_state_variables): ditto, renaming to...
29330 (state_writer::write_state_variables)
29331 (write_state_srcdir): ditto, renaming to...
29332 (state_writer::write_state_srcdir)
29333 (write_state_files_list): ditto, renaming to...
29334 (state_writer::write_state_files_list)
29335 (write_state_languages): ditto, renaming to...
29336 (state_writer::write_state_languages)
29337 (write_state): create a state_writer instance and use it when
29338 writing out the state file
29339
29340 2013-05-17 Mike Stump <mikestump@comcast.net>
29341
29342 PR rtl-optimization/57304
29343 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
29344 accessing DF_REF_REAL_LOC.
29345
29346 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29347
29348 PR rtl-optimization/57281
29349 PR rtl-optimization/57300
29350 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
29351 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
29352 what the other splitter did if the registers are dead.
29353
29354 2013-05-17 Richard Biener <rguenther@suse.de>
29355
29356 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
29357 MEM_REF offsets.
29358
29359 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29360
29361 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
29362 linking.
29363
29364 2013-05-17 Marek Polacek <polacek@redhat.com>
29365
29366 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
29367 length when doing non-zero store of storing '\0' to '\0'.
29368
29369 2013-05-17 Jakub Jelinek <jakub@redhat.com>
29370
29371 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
29372 vect_external_def oprnd1 with loop_vinfo, try to emit
29373 optional cast, negation and and stmts on the loop preheader
29374 edge instead of into the pattern def seq.
29375
29376 PR tree-optimization/57051
29377 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
29378 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
29379
29380 2013-05-16 Nick Clifton <nickc@redhat.com>
29381
29382 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
29383 (rl78_is_naked_func): New function.
29384 (rl78_expand_prologue): Skip prologue generation for naked functions.
29385 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
29386 * doc/extend.texi (naked): Add RL78 to the list of processors
29387 that supports this attribute.
29388
29389 2013-05-16 Jeff Law <law@redhat.com>
29390
29391 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
29392
29393 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29394
29395 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
29396 cache parameters using detect_caches_amd also for CYRIX,
29397 NSC and TM2 signatures.
29398
29399 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
29400 Dzianis Kahanovich <mahatma@eu.by>
29401
29402 PR target/45359
29403 PR target/46396
29404 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29405 VIA/Centaur processors and determine their cache parameters
29406 using detect_caches_amd.
29407
29408 2013-05-16 Teresa Johnson <tejohnson@google.com>
29409
29410 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
29411 (rtl_verify_edges): New function.
29412 (rtl_verify_bb_insns): Ditto.
29413 (rtl_verify_bb_pointers): Ditto.
29414 (rtl_verify_bb_insn_chain): Ditto.
29415 (rtl_verify_fallthru): Ditto.
29416 (rtl_verify_bb_layout): Ditto.
29417 (rtl_verify_flow_info_1): Outline checks into new functions.
29418 (rtl_verify_flow_info): Ditto.
29419
29420 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
29421
29422 * cfghooks.c (copy_bbs): Add update_dominance argument.
29423 * cfghooks.h (copy_bbs): Update prototype.
29424 * tree-cfg.c (gimple_duplicate_sese_region):
29425 Add update_dominance argument.
29426 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
29427 * tree-ssa-loop-ch.c (copy_loop_headers): Update
29428 gimple_duplicate_sese_region call.
29429 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
29430 Update copy_bbs call.
29431 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
29432 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
29433
29434 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29435
29436 * tree-vectorizer.h (NUM_PATTERNS): Increment.
29437 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
29438 vect_recog_rotate_pattern.
29439 (vect_recog_rotate_pattern): New function.
29440
29441 2013-05-16 Jason Merrill <jason@redhat.com>
29442
29443 * Makefile.in (LLINKER): New variable.
29444 (mostlyclean): Remove link mutex.
29445 * configure.ac: Handle --enable-link-mutex.
29446 * lock-and-run.sh: New script.
29447
29448 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29449
29450 PR target/19599
29451 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
29452 for NULL decl.
29453
29454 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29455
29456 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
29457
29458 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
29459
29460 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
29461 * config/arm/arm.c (next_consecutive_mem): New function.
29462 (gen_movmem_ldrd_strd): Likewise.
29463 * config/arm/arm.md (movmemqi): Update condition and code.
29464 (unaligned_loaddi, unaligned_storedi): New patterns.
29465
29466 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29467
29468 * config.gcc: Obsolete *-*-solaris2.9*.
29469 * doc/install.texi (Specific, *-*-solaris2*): Document it.
29470
29471 2013-05-16 Richard Biener <rguenther@suse.de>
29472
29473 * passes.c (init_optimization_passes): Move pass_parallelize_loops
29474 earlier, after GRAPHITE transforms and IV canonicalization.
29475
29476 2013-05-16 Jakub Jelinek <jakub@redhat.com>
29477
29478 * omp-low.c (extract_omp_for_data): For collapsed loops,
29479 if at least one of the loops is known at compile time to
29480 iterate zero times, set count to 0.
29481 (expand_omp_regimplify_p): New function.
29482 (expand_omp_for_generic): For collapsed loops, if at least
29483 one of the loops isn't known to iterate at least once,
29484 add runtime check with setting count to 0.
29485 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29486 For unsigned types if it isn't known at compile time that
29487 the loop will iterate at least once, add runtime check to bypass
29488 the whole loop if initial condition isn't true.
29489
29490 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
29491
29492 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
29493
29494 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
29495
29496 PR middle-end/57286
29497 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
29498 transformations to avoid an infinite loop.
29499
29500 2013-05-16 Marek Polacek <polacek@redhat.com>
29501
29502 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
29503
29504 2013-05-15 Leif Ekblad <leif@rdos.net>
29505
29506 * config/i386/i386.c (ix86_decompose_address): Use
29507 DEFAULT_TLS_SEG_REG to access TLS segment register.
29508 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
29509 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
29510 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
29511
29512 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
29513
29514 PR target/57260
29515 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
29516 sibling calls to functions that would normally be lazily bound,
29517 unless $gp is call-clobbered.
29518
29519 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
29520
29521 * config/i386/i386.c (ix86_option_override_internal): Update
29522 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
29523 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
29524 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
29525 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
29526 of TARGET_3DNOW.
29527 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
29528
29529 2013-05-15 Andreas Schwab <schwab@suse.de>
29530
29531 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
29532 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
29533 third operand.
29534
29535 2013-05-15 Teresa Johnson <tejohnson@google.com>
29536
29537 * loop-unroll.c (report_unroll_peel): Check decision before
29538 emitting unroll/peel message.
29539
29540 2013-05-15 Teresa Johnson <tejohnson@google.com>
29541
29542 * function.h (has_bb_partition): New rtl_data flag.
29543 (bb_reorder_complete): Ditto.
29544 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
29545 instead of flag_reorder_blocks_and_partition.
29546 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
29547 with some enhancements.
29548 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
29549 * bb-reorder.c (connect_traces): Check for has_bb_partition
29550 instead of flag_reorder_blocks_and_partition.
29551 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
29552 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
29553 verify_hot_cold_block_grouping.
29554 (partition_hot_cold_basic_blocks): Set has_bb_partition.
29555
29556 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29557
29558 PR target/19599
29559 * config/arm/predicates.md (call_insn_operand): New predicate.
29560 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
29561 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
29562 if insn is not a tail call.
29563 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
29564 registers.
29565 * config/arm/arm.h (enum reg_class): New caller save register class.
29566 (REG_CLASS_NAMES): Likewise.
29567 (REG_CLASS_CONTENTS): Likewise.
29568 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
29569 without decls.
29570
29571 2013-05-15 Richard Biener <rguenther@suse.de>
29572
29573 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
29574 of MSG_OPTIMIZED_LOCATIONS.
29575 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
29576 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
29577 message.
29578 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
29579 of MSG_OPTIMIZED_LOCATIONS.
29580 (execute_vect_slp): Likewise.
29581 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
29582 (vect_create_cond_for_alias_checks): Likewise.
29583 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
29584 (vect_recog_widen_mult_pattern): Likewise.
29585 (vect_recog_widen_sum_pattern): Likewise.
29586 (vect_recog_over_widening_pattern): Likewise.
29587 (vect_recog_widen_shift_pattern): Likewise.
29588 (vect_recog_vector_vector_shift_pattern): Likewise.
29589 (vect_recog_divmod_pattern): Likewise.
29590 (vect_recog_mixed_size_cond_pattern): Likewise.
29591 (vect_recog_bool_pattern): Likewise.
29592 (vect_pattern_recog_1): Likewise.
29593
29594 2013-05-15 Martin Jambor <mjambor@suse.cz>
29595
29596 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
29597 non-functions to builtin_unreachable.
29598 * ipa-inline-transform.c (inline_call): Do not assert estimates were
29599 correct when new direct edges were discovered.
29600
29601 2013-05-15 Martin Jambor <mjambor@suse.cz>
29602
29603 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
29604 header, print symbol order instead of node uid, print more information
29605 about indirect edge targets.
29606 (ipa_make_edge_direct_to_target): Print symbol order instead of node
29607 uids.
29608 (ipa_make_edge_direct_to_target): Likewise.
29609 (remove_described_reference): Likewise.
29610 (propagate_controlled_uses): Likewise.
29611 (ipa_print_node_params): Also print symbol order.
29612 (ipcp_transform_function): Print symbol order instead of node uids.
29613 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
29614 (cgraph_get_create_real_symbol_node): Likewise.
29615 * ipa-cp.c (print_lattice): Likewise.
29616 (print_all_lattices): Likewise.
29617 (determine_versionability): Likewise.
29618 (initialize_node_lattices): Likewise.
29619 (estimate_local_effects): Likewise.
29620 (update_profiling_info): Likewise.
29621 (create_specialized_node): Likewise.
29622 (perhaps_add_new_callers): Likewise.
29623 (decide_about_value): Likewise.
29624 (decide_whether_version_node): Likewise.
29625 (identify_dead_nodes): Likewise.
29626 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
29627 (dump_inline_summary): Likewise.
29628 (estimate_node_size_and_time): Likewise.
29629 (inline_analyze_function): Likewise.
29630 * ipa-inline.c (report_inline_failed_reason): Likewise.
29631 (want_early_inline_function_p): Likewise.
29632 (edge_badness): Likewise.
29633 (update_edge_key): Likewise.
29634 (inline_small_functions): Likewise. Add dumping of order to two other
29635 dumps.
29636 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
29637 instead of node uids.
29638 (propagate_pure_const): Likewise.
29639 (propagate_pure_const): Likewise.
29640 * ipa-utils.c (dump_cgraph_node_set): Likewise.
29641 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
29642 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
29643 of node uids.
29644 * tree-pretty-print.c (dump_function_header): Likewise.
29645 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
29646 Print symbol order instead of node uids.
29647
29648 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29649
29650 * config/s390/s390.c (s390_register_move_cost): Don't impose the
29651 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
29652
29653 2013-05-15 Richard Biener <rguenther@suse.de>
29654
29655 PR tree-optimization/57275
29656 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
29657 return value for fail to do runtime alias checks for gather loads.
29658
29659 2013-05-15 Jan Hubicka <jh@suse.cz>
29660
29661 PR lto/57038
29662 PR lto/47375
29663 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
29664 weakrefs are not external.
29665 (lto_symtab_merge_decls): Fix thinko when dealing with
29666 non-lto_symtab decls.
29667 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
29668 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
29669 * varpool.c (dump_varpool_node): Dump more flags.
29670
29671 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29672
29673 * config/i386/i386.c (processor_alias_table): Add instruction
29674 FSGSBASE for AMD bdver3 architecture.
29675
29676 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29677
29678 * tree.c (warn_deprecated_use): Print file:line using locus color.
29679 * diagnostic.c (diagnostic_report_current_module): Print file:line
29680 and file:line:column using locus color.
29681
29682 2013-05-14 Mike Stump <mikestump@comcast.net>
29683
29684 * gdbinit.in: Add __null.
29685
29686 2013-05-14 Mike Stump <mikestump@comcast.net>
29687
29688 * recog.h: Rename struct recog_data to Recog_data.
29689 * recog.c: Likewise.
29690 * reload.c (can_reload_into): Likewise.
29691 * config/picochip/picochip.c: Likewise.
29692
29693 2013-05-14 Mike Stump <mikestump@comcast.net>
29694
29695 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
29696
29697 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
29698
29699 * resource.h (struct resources): Remove unch_memory member.
29700 (CLEAR_RESOURCE): Don't clear unch_memory.
29701 * resource.c (mark_referenced_resources): Don't set it.
29702 (mark_set_resources): Likewise.
29703 (mark_target_live_regs): Don't clear it.
29704 (init_resource_info): Likewise.
29705 * reorg.c (resource_conflicts_p): Don't compare it.
29706 (redundant_insn): Don't set it.
29707
29708 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
29709 Remove prototypes.
29710 * emit-rtl.c (next_label): Remove unused function.
29711 (skip_consecutive_labels, link_cc0_insns): Move to ...
29712 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
29713 only place where these functions are used, and make them static.
29714
29715 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29716
29717 * fold-const.c (fold_negate_expr): Handle vectors.
29718 (fold_truth_not_expr): Make it static.
29719 (fold_invert_truthvalue): New static function.
29720 (invert_truthvalue_loc): Handle vectors. Do not call
29721 fold_truth_not_expr directly.
29722 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
29723 <TRUTH_NOT_EXPR>: Do not cast to boolean.
29724 (fold_comparison): Handle vector constants.
29725 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
29726 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
29727 * tree.h (fold_truth_not_expr): Remove declaration.
29728
29729 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
29730
29731 * config/aarch64/aarch64-simd.md
29732 (aarch64_vcond_internal<mode>): Rename to...
29733 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
29734 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
29735 float modes. Clarify all iterator modes.
29736 (vcond<mode><mode>): Use new name for vcond expanders.
29737 (vcond<v_cmp_result><mode>): Likewise.
29738 (vcondu<mode><mode>: Likewise.
29739 * config/aarch64/iterators.md (VDQF_COND): New.
29740
29741 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
29742
29743 PR bootstrap/57266
29744 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
29745 variable for the shift amount. Check that we shift by non-negative
29746 amounts.
29747
29748 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
29749
29750 PR target/42017
29751 * config/arm/arm.h (EPILOGUE_USES): Only return true
29752 for LR_REGNUM after epilogue_completed.
29753
29754 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
29755
29756 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
29757 is error_mark_node.
29758
29759 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29760
29761 PR target/57261
29762 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
29763 and Solaris 11+/x86 with gld.
29764 * configure: Regenerate.
29765
29766 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29767
29768 * expmed.c (expand_shift_1): Canonicalize rotates by
29769 constant bitsize / 2 to bitsize - 1.
29770 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
29771 case ROTATERT>: Likewise.
29772
29773 Revert:
29774 2013-05-10 Jakub Jelinek <jakub@redhat.com>
29775
29776 * config/i386/i386.md (rotateinv): New code attr.
29777 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
29778 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
29779 roll $31, %eax, etc.
29780
29781 2013-05-14 Richard Biener <rguenther@suse.de>
29782
29783 PR middle-end/57235
29784 * tree-eh.c (sink_clobbers): Give up for successors with
29785 multiple predecessors and no virtual uses.
29786
29787 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
29788
29789 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
29790 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
29791
29792 2013-05-14 Jakub Jelinek <jakub@redhat.com>
29793
29794 PR middle-end/57251
29795 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
29796 the case when both op0 and op1 have VOIDmode.
29797
29798 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
29799
29800 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
29801 in multiply-accumulate mode.
29802
29803 2013-05-13 Guozhi Wei <carrot@google.com>
29804
29805 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
29806
29807 2013-05-13 Kai Tietz <ktietz@redhat.com>
29808
29809 PR target/56975
29810 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
29811 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
29812 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
29813 * config/i386/i386.c (ix86_option_override_internal): Likewise.
29814 (ix86_expand_prologue): Likewise.
29815 (ix86_expand_split_stack_prologue): Likewise.
29816 (legitimate_pic_address_disp_p): Likewise.
29817 (legitimize_pic_address): Likewise.
29818 (legitimize_tls_address): Likewise.
29819 (legitimize_pe_coff_symbol): Likewise.
29820 (output_pic_addr_const): Likewise.
29821 (construct_plt_address): Likewise.
29822 (ix86_expand_call): Likewise.
29823 (x86_output_mi_thunk): Likewise.
29824 (x86_function_profiler): Likewise.
29825
29826 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
29827
29828 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
29829 similar switch cases.
29830 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
29831 (aarch64_simd_mov_to_<mode>low): Delete.
29832 (aarch64_simd_mov_to_<mode>high): Delete.
29833 (move_lo_quad_<mode>): Add w<-r alternative.
29834 (aarch64_simd_move_hi_quad_<mode>): Likewise.
29835 (aarch64_simd_mov_from_*): Update type attribute.
29836 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
29837 statement.
29838
29839 2013-05-13 Jan Hubicka <jh@suse.cz>
29840
29841 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
29842 * config/i386/i386.c (ix86_compute_frame_layout,
29843 ix86_expand_epilogue, emit_i387_cw_initialization,
29844 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
29845 ix86_local_alignment): Fix use of size/speed predicates.
29846
29847 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29848
29849 PR tree-optimization/45216
29850 PR tree-optimization/57157
29851 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
29852 the (-Y) & (B - 1) variant if OP is |.
29853 * expmed.c (expand_shift_1): For rotations by const0_rtx just
29854 return shifted. Use (-op1) & (prec - 1) as other_amount
29855 instead of prec - op1.
29856
29857 2013-05-13 Martin Jambor <mjambor@suse.cz>
29858
29859 PR middle-end/42371
29860 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
29861 (ipa_constant_data): New type.
29862 (ipa_jump_func): Use ipa_constant_data to hold information about
29863 constant jump functions.
29864 (ipa_get_jf_constant): Adjust to jump function type changes.
29865 (ipa_get_jf_constant_rdesc): New function.
29866 (ipa_param_descriptor): New field controlled_uses.
29867 (ipa_get_controlled_uses): New function.
29868 (ipa_set_controlled_uses): Likewise.
29869 * ipa-ref.h (ipa_find_reference): Declare.
29870 * ipa-prop.c (ipa_cst_ref_desc): New type.
29871 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
29872 changes.
29873 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
29874 New parameter cs. Adjust all callers.
29875 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
29876 (remove_described_reference): New function.
29877 (jfunc_rdesc_usable): Likewise.
29878 (try_make_edge_direct_simple_call): Decrement controlled use count,
29879 attempt to remove reference if it hits zero.
29880 (combine_controlled_uses_counters): New function.
29881 (propagate_controlled_uses): Likewise.
29882 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
29883 (ipa_edge_duplication_hook): Duplicate reference descriptions.
29884 (ipa_print_node_params): Print described use counter.
29885 (ipa_write_jump_function): Adjust to jump function type changes.
29886 (ipa_read_jump_function): New parameter CS, pass it to
29887 ipa_set_jf_constant. Adjust caller.
29888 (ipa_write_node_info): Stream controlled use count
29889 (ipa_read_node_info): Likewise.
29890 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
29891 asserting.
29892 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
29893 count. Remove cloning-added reference if it reaches zero.
29894 * ipa-ref.c (ipa_find_reference): New function.
29895
29896 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
29897
29898 * config/i386/i386.c (processor_target_table): Modified default
29899 alignment values for AMD BD and BT architectures.
29900
29901 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
29902
29903 * tree-vect-generic.c (uniform_vector_p): Move ...
29904 * tree.c (uniform_vector_p): ... here.
29905 * tree.h (uniform_vector_p): Declare it.
29906 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
29907 into a scalar.
29908
29909 2013-05-13 Jakub Jelinek <jakub@redhat.com>
29910
29911 PR tree-optimization/57230
29912 * tree-ssa-strlen.c (handle_char_store): Record length for
29913 array store from STRING_CST.
29914
29915 PR tree-optimization/57230
29916 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
29917 check.
29918
29919 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
29920
29921 * config/epiphany/epiphany.c (epiphany_init): Check size of
29922 NUM_MODES_FOR_MODE_SWITCHING.
29923 (epiphany_expand_prologue):
29924 Remove CONFIG_REGNUM initial value handling code.
29925 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
29926 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
29927 (emit_set_fp_mode, epiphany_mode_after): Likewise.
29928 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
29929 Don't return 1 for FP_MODE_NONE.
29930 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
29931 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
29932 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
29933 * config/epiphany/epiphany.md (save_config): New pattern.
29934
29935 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
29936
29937 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
29938
29939 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
29940
29941 * config/i386/i386.md (memory): Handle sseishft1.
29942 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
29943 (*vec_extractv2di_1): Ditto.
29944
29945 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
29946
29947 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
29948 saved registers.
29949
29950 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
29951
29952 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
29953 Add mthumb/march=armv7-a multilib.
29954 Add mthumb/march=armv7-r multilib.
29955 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
29956
29957 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
29958
29959 * config/v850/t-rtems: Add more multilibs.
29960
29961 2013-05-10 Richard Biener <rguenther@suse.de>
29962
29963 PR tree-optimization/57214
29964 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
29965 not propagate from SSA names that occur in abnormal PHI nodes.
29966
29967 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
29968
29969 * stor-layout.c (element_precision): New function.
29970 * machmode.h (element_precision): Declare it.
29971 * tree.c (build_minus_one_cst): New function.
29972 (element_precision): Likewise.
29973 * tree.h (build_minus_one_cst): Declare new function.
29974 (element_precision): Likewise.
29975 * fold-const.c (operand_equal_p): Use element_precision.
29976 (fold_binary_loc): Handle vector types.
29977 * convert.c (convert_to_integer): Use element_precision.
29978 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
29979 separately.
29980
29981 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
29982
29983 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
29984 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
29985 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
29986 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29987 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
29988 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
29989 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
29990 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
29991 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
29992 (Uuw8): New constraints.
29993 (Usb4): Move into alphabetical order.
29994 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
29995 (sd8_operand, ub8_operand, uw8_operand): New predicates.
29996 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
29997 previously unnamed patterns.
29998 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
29999 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
30000 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
30001 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
30002 of set_attr_alternative/if_then_else. Use extended_mips16 instead
30003 of specific lengths.
30004
30005 2013-05-10 Jakub Jelinek <jakub@redhat.com>
30006
30007 * config/i386/i386.md (rotateinv): New code attr.
30008 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
30009 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
30010 roll $31, %eax, etc.
30011
30012 PR tree-optimization/45216
30013 PR tree-optimization/57157
30014 * tree-ssa-forwprop.c (simplify_rotate): New function.
30015 (ssa_forward_propagate_and_combine): Call it.
30016
30017 2013-05-10 Richard Biener <rguenther@suse.de>
30018
30019 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
30020 disable peeling when we version for aliasing.
30021 (vector_alignment_reachable_p): Honor explicit user alignment.
30022 (vect_supportable_dr_alignment): Likewise.
30023 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
30024 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
30025 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
30026 then peeling to arrange for the cost-model check to come first.
30027
30028 2013-05-10 Alan Modra <amodra@gmail.com>
30029
30030 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
30031 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
30032 * configure: Regenerate.
30033
30034 2013-05-10 Alan Modra <amodra@gmail.com>
30035
30036 PR target/55033
30037 * varasm.c (default_elf_select_section): Move !DECL_P check..
30038 (get_named_section): ..to here before calling get_section_name.
30039 Adjust assertion.
30040 (default_section_type_flags): Add DECL_P check.
30041 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
30042 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
30043
30044 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
30045
30046 * config/epiphany/epiphany.c (epiphany_expand_prologue):
30047 When using gen_stack_adjust_str with a register offset, add a
30048 REG_FRAME_RELATED_EXPR note.
30049
30050 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
30051
30052 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
30053 (*vec_extractv4si_zext_mem): Ditto.
30054 (*vec_extractv2di): Add 0->x and x->x alternatives.
30055 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
30056 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
30057
30058 2013-05-09 Jason Merrill <jason@redhat.com>
30059
30060 N3639 C++1y VLA support
30061 * gimplify.c (gimplify_vla_decl): Don't touch an existing
30062 DECL_VALUE_EXPR.
30063
30064 * tree.c (build_constructor_va): New.
30065 * tree.h: Declare it.
30066
30067 2013-05-09 Martin Jambor <mjambor@suse.cz>
30068
30069 PR lto/57084
30070 * gimple-fold.c (canonicalize_constructor_val): Call
30071 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
30072
30073 2013-05-09 Jan Hubicka <jh@suse.cz>
30074 Richard Biener <rguenther@suse.de>
30075
30076 PR lto/54095
30077 * symtab.c (symtab_make_decl_local): Do not add private names.
30078
30079 2013-05-09 Jan Hubicka <jh@suse.cz>
30080
30081 PR lto/54095
30082 * symtab.c (insert_to_assembler_name_hash): Handle clones.
30083 (unlink_from_assembler_name_hash): Likewise.
30084 (symtab_prevail_in_asm_name_hash, symtab_register_node,
30085 symtab_unregister_node, symtab_initialize_asm_name_hash,
30086 change_decl_assembler_name): Update.
30087
30088 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
30089
30090 * config/aarch64/aarch64.md: New movtf split.
30091 (*movtf_aarch64): Update.
30092 (aarch64_movdi_tilow): Handle TF modes and rename to
30093 aarch64_movdi_<mode>low.
30094 (aarch64_movdi_tihigh): Handle TF modes and rename to
30095 aarch64_movdi_<mode>high
30096 (aarch64_movtihigh_di): Handle TF modes and rename to
30097 aarch64_mov<mode>high_di
30098 (aarch64_movtilow_di): Handle TF modes and rename to
30099 aarch64_mov<mode>low_di
30100 (aarch64_movtilow_tilow): Remove spurious whitespace.
30101 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
30102 splits.
30103 (aarch64_print_operand): Update.
30104
30105 2013-05-09 Alan Modra <amodra@gmail.com>
30106
30107 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
30108 powerpc64le.
30109 * configure: Regenerate.
30110
30111 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30112
30113 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
30114 splitter preparation statements.
30115 * config/i386/sse.md (*vec_extract* splitters): Ditto.
30116 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
30117 adjust_address_nv.
30118
30119 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30120
30121 * gimple-ssa-strength-reduction.c (count_candidates): Change
30122 return value to int.
30123 (analyze_candidates_and_replace): Change type of length to int.
30124
30125 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
30126
30127 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
30128 (*vec_extract<mode>): Use VI12_128 mode iterator.
30129 (*vec_extract<mode>_mem): Ditto.
30130 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
30131 attribute.
30132
30133 2013-05-08 Diego Novillo <dnovillo@google.com>
30134
30135 PR bootstrap/54659
30136
30137 Revert:
30138 2012-08-17 Diego Novillo <dnovillo@google.com>
30139
30140 PR bootstrap/54281
30141 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
30142 * config.in: Regenerate.
30143 * configure: Regenerate.
30144 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
30145
30146 2013-05-08 Jan Hubicka <jh@suse.cz>
30147
30148 PR lto/54095
30149 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
30150 * cgraph.h (symtab_node_base): Add unique_name.
30151 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
30152 input_overwrite_node, input_varpool_node): Stream unique_name.
30153 * cgraphclones.c (cgraph_create_virtual_clone,
30154 cgraph_function_versioning): Set unique_name.
30155 * ipa.c (function_and_variable_visibility): Set unique_name.
30156
30157 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30158
30159 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
30160 (alloc_cand_and_find_basis): Restrict conditional candidate
30161 processing to CAND_MULTs.
30162
30163 2013-05-08 Jan Hubicka <jh@suse.cz>
30164
30165 PR lto/54095
30166 lto-symtab.c (lto_symtab_symbol_p): New function.
30167 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
30168 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
30169 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
30170 Skip static symbols.
30171
30172 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
30173
30174 PR tree-optimization/57200
30175 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
30176 Only call inform if the preceding warning_at returns true.
30177
30178 2013-05-07 Han Shen <shenhan@google.com>
30179
30180 * cfgexpand.c (record_or_union_type_has_array_p): New function.
30181 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
30182 * common.opt (fstack-protector-strong): New option.
30183 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
30184 * doc/invoke.texi (Optimization Options): Document
30185 "-fstack-protector-strong".
30186 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
30187
30188 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30189
30190 * config/mips/mips.c (mips_machine_reorg2): Return 0.
30191
30192 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
30193
30194 * ira.c (update_equiv_regs): Add insn having equiv memory even if
30195 it is not lhs of the insn.
30196 (setup_reg_equiv): Remove insn having equiv memory which it is not
30197 lhs of the insn.
30198 * lra-constraints.c (process_address): Try to improve generation
30199 code for address base + disp.
30200 (lra_constraints): Make correct the code for checking insn setting
30201 up backward equivalence. Remove insn only if it is in the init
30202 insn list.
30203 * lra-eliminations.c (update_reg_eliminate): Change return value.
30204 (lra_eliminate): Use the result.
30205
30206 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
30207
30208 * config/i386/sse.md (ssescalarnummask): New mode attribute.
30209 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
30210 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
30211 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
30212 register target operands.
30213 (*vec_extractv8hi_sse2): New pattern.
30214 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
30215 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
30216 (*vec_extract<mode>_mem): New insn and split pattern.
30217
30218 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
30219
30220 * config/arm/arm.c (arm_asan_shadow_offset): New function.
30221 (TARGET_ASAN_SHADOW_OFFSET): Define.
30222 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
30223 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
30224
30225 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30226
30227 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
30228 (incr_vec_index): Return -1 if increment not found.
30229 (create_add_on_incoming_edge): Assert if increment not found.
30230 (record_increment): Limit number of increments recorded.
30231 (all_phi_incrs_profitable): Return false if an increment not found.
30232 (replace_profitable_candidates): Don't process increments that were
30233 not recorded.
30234 (analyze_candidates_and_replace): Limit size of incr_vec.
30235
30236 2013-05-07 Richard Biener <rguenther@suse.de>
30237
30238 * calls.c (special_function_p): setjmp-like functions are leaf.
30239 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
30240 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
30241
30242 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
30243
30244 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
30245 (aarch64_simd_mov<mode>): New expander.
30246 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
30247 (aarch64_simd_mov_to_<mode>high): Likewise.
30248 (aarch64_simd_mov_from_<mode>low): Likewise.
30249 (aarch64_simd_mov_from_<mode>high): Likewise.
30250 (aarch64_dup_lane<mode>): Update.
30251 (aarch64_dup_lanedi): New instruction pattern.
30252 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
30253 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
30254
30255 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30256
30257 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
30258 (replace_mult_candidate): Remove unnecessary argument; remove
30259 unnecessary parameter from call to introduce_cast_before_cand.
30260 (replace_unconditional_candidate): Remove unnecessary parameter
30261 from call to replace_mult_candidate.
30262 (replace_conditional_candidate): Likewise.
30263 (insert_initializers): Use make_temp_ssa_name.
30264 (introduce_cast_before_cand): Remove unnecessary argument; use
30265 make_temp_ssa_name.
30266 (replace_one_candidate): Remove unnecessary argument; remove
30267 unnecessary parameter from calls to introduce_cast_before_cand.
30268 (replace_profitable_candidates): Remove unnecessary parameters
30269 from calls to replace_one_candidate.
30270
30271 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30272
30273 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
30274 phi def as possibly hiding a basis for a CAND_ADD whose operands
30275 have been commuted in the analysis.
30276 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
30277
30278 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30279
30280 * config/aarch64/aarch64.md
30281 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
30282 shift value between 0-4.
30283
30284 2013-05-07 Richard Biener <rguenther@suse.de>
30285
30286 * double-int.h (rshift): New overload.
30287 * double-int.c (rshift): New function.
30288 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
30289 (create_reference_ops_from_ref): Remove.
30290 (vn_reference_insert): Use shared ops for constructing the
30291 reference and copy it.
30292
30293 2013-05-07 Richard Biener <rguenther@suse.de>
30294
30295 PR middle-end/57190
30296 * tree-eh.c (sink_clobbers): Properly propagate
30297 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30298
30299 2013-05-07 Jakub Jelinek <jakub@redhat.com>
30300
30301 PR tree-optimization/57149
30302 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
30303 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
30304 collect_phi_def_edges, execute_late_warn_uninitialized): Use
30305 uninit_undefined_value_p instead of ssa_undefined_value_p.
30306
30307 PR debug/57184
30308 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
30309 for modifier == EXPAND_INITIALIZER.
30310
30311 2013-05-07 Anton Blanchard <anton@samba.org>
30312
30313 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
30314 for powerpc64 little endian.
30315 * configure: Regenerate.
30316
30317 2013-05-06 Graham Stott <grahams@btinternet.com>
30318
30319 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
30320 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
30321 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
30322 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
30323
30324 2013-05-06 Graham Stott <grahams@btinternet.com>
30325
30326 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
30327 codes which allow non-lvalues.
30328
30329 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
30330
30331 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
30332 components are all 1s.
30333 (integer_minus_onep): New function.
30334 * tree.h (integer_minus_onep): Declare it.
30335 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
30336 integer_minus_onep instead of integer_all_onesp.
30337
30338 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30339
30340 PR target/52933
30341 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
30342 variations of these patterns.
30343
30344 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30345
30346 * config/i386/i386.md (isa): Add x64_sse4 member.
30347 (enabled): Handle x64_sse4.
30348 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
30349 instruction for 64bit SSE4_1 targets. Update insn attributes.
30350 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
30351 instruction for SSE4_1 targets. Update insn attributes.
30352 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30353 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
30354 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
30355 const_1 selector.
30356 (*vec_extractv4si): Rename from *sse4_1_pextrd.
30357 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
30358 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
30359
30360 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30361
30362 PR target/57108
30363 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
30364
30365 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
30366
30367 * final.c (do_assembler_dialects): Don't handle curly braces and
30368 vertical bar escaped by % as dialect delimiters.
30369 (output_asm_insn): Print curly braces and vertical bar if escaped
30370 by % and ASSEMBLER_DIALECT defined.
30371 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
30372 * doc/tm.texi: Regenerated.
30373
30374 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
30375
30376 * config/mips/mips.c: Include tree-pass.h.
30377 (mips_reorg): Split in pre- and post-dbr_schedule parts.
30378 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
30379 (pass_mips_machine_reorg2): New machine specific pass.
30380 (insert_pass_mips_machine_reorg2): New pass plugin definition.
30381 (mips_option_override): Register the new pass.
30382 * rtl.h (cleanup_barriers): Remove prototype.
30383 (dbr_schedule): Likewise.
30384 * jump.c (cleanup_barriers): Make static.
30385 * reorg.c (dbr_schedule): Likewise.
30386
30387 2013-05-06 Richard Biener <rguenther@suse.de>
30388
30389 PR tree-optimization/57185
30390 * tree-parloops.c (add_field_for_reduction): Handle anonymous
30391 SSA names properly.
30392
30393 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
30394
30395 PR target/57106
30396 * config/i386/i386.c (add_parameter_dependencies): Add dependence
30397 between "first_arg" and "insn", not "last" and "insn".
30398
30399 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30400
30401 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
30402 (find_candidates_in_block): Re-enable slsr_process_phi.
30403 (create_phi_basis): Fix double counting of candidate adjustment.
30404
30405 2013-05-06 Richard Biener <rguenther@suse.de>
30406
30407 PR middle-end/57147
30408 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
30409 the edge is also fallthru, preserve it and just clear the
30410 abnormal flag.
30411 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
30412 also complex, preserve that and just clear the fallthru flag.
30413 * tree-inline.c (update_ssa_across_abnormal_edges): Also
30414 update virtual operands.
30415
30416 2013-05-06 Alan Modra <amodra@gmail.com>
30417
30418 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
30419 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
30420 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
30421 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30422 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30423 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
30424
30425 2013-05-06 Alan Modra <amodra@gmail.com>
30426
30427 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
30428 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
30429 (DEFAULT_ASM_ENDIAN): Define.
30430 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
30431 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
30432 Update -K PIC clause from sysv4.h.
30433 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
30434 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
30435
30436 2013-05-06 Alan Modra <amodra@gmail.com>
30437
30438 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
30439 twice for little-endian.
30440 (ashrdi3_no_power, ashrdi3): Support little-endian.
30441
30442 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
30443
30444 PR target/55303
30445 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
30446 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
30447 related expanders.
30448 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
30449 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
30450 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
30451 New predicates.
30452
30453 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
30454 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30455
30456 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
30457 * config/pa/pa.opt: Make mbig-switch a no-op.
30458 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
30459 (CASE_VECTOR_MODE): Always return SImode.
30460 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
30461 for the !TARGET_BIG_SWITCH case.
30462 * config/pa/pa-linux.h: Likewise.
30463 * config/pa/pa-openbsd.h: Likewise.
30464 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
30465 * config/pa/pa.md (short_jump): Remove define_insn.
30466 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
30467 (casesi0): Remove define_insn.
30468 (type): Remove btable_branch.
30469 (pa_combine_type): Likewise.
30470 (in_nullified_branch_delay): Likewise.
30471 (in_call_delay): Likewise.
30472 (define_delay): Likewise.
30473 (define_insn_reservation "Z3"): Likewise.
30474 (define_insn_reservation "Z4"): Likewise.
30475 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
30476 (pa_adjust_insn_length): Remove adjustment for btable branches.
30477 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
30478 and mno-big-switch
30479
30480 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
30481
30482 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
30483 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
30484 Add m->r,x alternatives.
30485 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
30486 splitters using SWI48x mode iterator.
30487 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
30488 TARGET_64BIT. Add m->x alternative.
30489 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
30490 Add o->x alternative. Enable for TARGET_SSE.
30491 (sse_storeq): Remove expander.
30492 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
30493 with memory input operand.
30494 (*vec_extractv2di_1 splitter): New.
30495 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
30496 * config/i386/i386.md (ssevecmodelower): New mode attribute.
30497
30498 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30499
30500 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
30501 (INT_LOWPART): Delete.
30502 (extract_MB): Adjust.
30503 (extract_ME): Adjust.
30504 (print_operand): Adjust.
30505
30506 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
30507
30508 * config/rs6000/predicates.md (reg_or_add_cint_operand,
30509 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30510 (reg_or_logical_cint_operand, easy_fp_constant,
30511 logical_const_operand): Delete "CONST_DOUBLE" case.
30512 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
30513 "HOST_BITS_PER_WIDE_INT == 64" test.
30514 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
30515 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
30516 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
30517 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
30518 test.
30519 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
30520 CONST_DOUBLE DImode/VOIDmode case.
30521 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
30522 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30523 CONST_DOUBLE VOIDmode case.
30524 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
30525 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
30526 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
30527 Delete CONST_DOUBLE case.
30528 (splitters for mov FMOVE64 const_double): Delete
30529 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
30530 "HOST_BITS_PER_WIDE_INT >= 64" test.
30531 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
30532 case.
30533 (mov DI const_double): Delete.
30534
30535 2013-05-04 Jakub Jelinek <jakub@redhat.com>
30536
30537 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
30538 on op shows all bits zero in mode of a lowpart subreg, return zero.
30539
30540 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30541
30542 PR target/57150
30543 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
30544 to save TFmode registers and DImode to save TImode registers for
30545 caller save operations.
30546 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
30547 mark being partially clobbered since they only use the first
30548 double word.
30549
30550 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
30551 and TDmode only use the upper 64-bits of each VSX register.
30552
30553 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30554
30555 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
30556 (find_candidates_in_block): Disable slsr_process_phi.
30557
30558 2013-05-03 Guozhi Wei <carrot@google.com>
30559
30560 * coverage.c (coverage_obj_init): Move the construction of gcov
30561 constructor to ...
30562 (build_init_ctor): ... here.
30563
30564 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30565
30566 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
30567 (slsr_cand_d): Redefine def_phi.
30568 (stride_status, phi_adjust_status, count_phis_status): New enums.
30569 (find_phi_def): New.
30570 (find_basis_for_base_expr): New.
30571 (find_basis_for_candidate): Handle hidden bases.
30572 (alloc_cand_and_find_basis): Handle phi candidates.
30573 (slsr_process_phi): New.
30574 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
30575 (create_mul_imm_cand): Likewise.
30576 (create_add_ssa_cand): Exclude phi base candidates.
30577 (create_add_imm_cand): Likewise.
30578 (slsr_process_cast): Likewise.
30579 (slsr_process_copy): Likewise.
30580 (find_candidates_in_block): Handle phi candidates.
30581 (dump_candidate): Likewise.
30582 (unconditional_cands): Delete.
30583 (unconditional_cands_with_known_stride_p): Delete.
30584 (phi_dependent_cand_p): New.
30585 (cand_increment): Handle phi-dependent candidates.
30586 (replace_dependent): Delete.
30587 (replace_mult_candidate): New.
30588 (replace_unconditional_candidate): New.
30589 (incr_vec_index): Move to avoid forward reference.
30590 (create_add_on_incoming_edge): New.
30591 (create_phi_basis): New.
30592 (replace_dependents): Delete.
30593 (replace_conditional_candidate): New.
30594 (phi_add_costs): New.
30595 (replace_uncond_cands_and_profitable_phis): New.
30596 (record_increment): Handle phi adjustments.
30597 (record_phi_increments): New.
30598 (record_increments): Handle phi adjustments.
30599 (phi_incr_cost): New.
30600 (lowest_cost_path): Handle phis.
30601 (total_savings): Likewise.
30602 (analyze_increments): Likewise.
30603 (ncd_with_phi): New.
30604 (ncd_of_cand_and_phis): New.
30605 (nearest_common_dominator_for_cands): Handle phi increments.
30606 (all_phi_incrs_profitable): New.
30607 (replace_profitable_candidates): Handle phi-dependent candidates.
30608 (analyze_candidates_and_replace): Likewise.
30609
30610 2013-05-03 Teresa Johnson <tejohnson@google.com>
30611
30612 PR bootstrap/57154
30613 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
30614 do not exceed REG_BR_PROB_BASE.
30615
30616 2013-05-03 Jeff Law <law@redhat.com>
30617
30618 PR tree-optimization/57144
30619 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
30620 operand of the condition will bit into the new type when eliminating
30621 a cast feeding a condition.
30622
30623 2013-05-03 Jakub Jelinek <jakub@redhat.com>
30624
30625 PR rtl-optimization/57130
30626 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
30627 of COMPARE as in_code to the recursive call if needed.
30628
30629 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
30630
30631 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
30632 (enabled): Handle new members.
30633 * config/i386/sse.md (*vec_concatv2si): Merge from
30634 *vec_concatv2si_sse2 and vec_concatv2si_sse.
30635 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
30636
30637 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
30638
30639 PR tree-optimization/57027
30640 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
30641 for fnms opportunity, check we got the prerequisite kind
30642 of tree / gimple before using accessor functions.
30643
30644 2013-05-03 Richard Biener <rguenther@suse.de>
30645
30646 * double-int.h (lshift): New overload without precision
30647 and arith argument.
30648 (operator *=, operator +=, operator -=): Move ...
30649 * double-int.c (operator *=, operator +=, operator -=): ... here
30650 and implement more efficiently.
30651 (mul_double_with_sign): Remove.
30652 (lshift_double): Adjust to take unsinged shift argument, push
30653 dispatching code to callers.
30654 (mul_double_wide_with_sign): Add early out for callers that
30655 are not interested in high parts or overflow.
30656 (lshift): New function.
30657 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
30658 dispatch code here.
30659 (lrotate, rrotate): Use logical shifts.
30660 * expr.c (get_inner_reference): Use lshift.
30661 * fixed-value.c (do_fixed_divide): Likewise.
30662 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30663 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30664 (indirect_refs_may_alias_p): Likewise.
30665 (stmt_kills_ref_p_1): Likewise.
30666
30667 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30668
30669 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
30670
30671 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
30672
30673 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
30674 scalar form of FABD instruction.
30675
30676 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
30677
30678 * lra-constraints.c (process_alt_operands): Add checking alt
30679 number to choose the best alternative.
30680
30681 2013-05-02 Richard Biener <rguenther@suse.de>
30682
30683 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
30684 bitmap and its handling.
30685 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
30686
30687 2013-05-02 Richard Biener <rguenther@suse.de>
30688
30689 PR middle-end/57140
30690 * tree-inline.c (copy_loops): Properly handle removed loops.
30691 (copy_cfg_body): Mark destination loops for fixup if source
30692 loops needed fixup.
30693
30694 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
30695
30696 PR target/56732
30697 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
30698 generating simple_return for naked functions.
30699
30700 2013-05-02 Martin Jambor <mjambor@suse.cz>
30701
30702 PR middle-end/56988
30703 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
30704 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
30705 flags match.
30706 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
30707 ipa_agg_replacement_value structures.
30708 (known_aggs_to_agg_replacement_list): Likewise.
30709 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
30710 (read_agg_replacement_chain): Likewise.
30711 (ipcp_transform_function): Also check that by_ref flags match.
30712
30713 2013-05-02 Richard Biener <rguenther@suse.de>
30714
30715 * graphds.h (struct graph): Add obstack member.
30716 * graphds.c (new_graph): Initialize obstack and allocate
30717 vertices from it.
30718 (add_edge): Allocate edge from the obstack.
30719 (free_graph): Free the obstack instead of all edges and vertices.
30720
30721 2013-05-02 Teresa Johnson <tejohnson@google.com>
30722
30723 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
30724 divides.
30725 * cfg.c (update_bb_profile_for_threading): Ditto.
30726 * tree-inline.c (copy_bb): Ditto.
30727 (copy_edges_for_bb): Ditto.
30728 (initialize_cfun): Ditto.
30729 (copy_cfg_body): Ditto.
30730 (expand_call_inline): Ditto.
30731 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
30732 (estimate_node_size_and_time): Ditto.
30733 (inline_merge_summary): Ditto.
30734 * cgraphclones.c (cgraph_clone_edge): Ditto.
30735 (cgraph_clone_node): Ditto.
30736 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30737 (compute_trg_info): Ditto.
30738
30739 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30740
30741 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
30742 S reg when fp attribute set.
30743 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
30744
30745 2013-05-02 Ian Bolton <ian.bolton@arm.com>
30746
30747 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
30748 New pattern.
30749 (*and_one_cmplsi3_compare0_uxtw): Likewise.
30750 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
30751 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
30752
30753 2013-05-02 Richard Biener <rguenther@suse.de>
30754
30755 * tree-scalar-evolution.c (scev_info_hasher): Remove.
30756 (struct instantiate_cache_entry): New type.
30757 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
30758 (struct instantiate_cache_type): New type.
30759 (set_instantiated_value, get_instantiated_value): Remove.
30760 (get_instantiated_value_entry): New function.
30761 (instantiate_scev_name): Use the new cache and adjust.
30762 (instantiate_scev_poly): Adjust.
30763 (instantiate_scev_binary): Likewise.
30764 (instantiate_array_ref): Likewise.
30765 (instantiate_scev_convert): Likewise.
30766 (instantiate_scev_not): Likewise.
30767 (instantiate_scev_3): Likewise.
30768 (instantiate_scev_2): Likewise.
30769 (instantiate_scev_r): Likewise.
30770 (instantiate_scev): Likewise.
30771 (resolve_mixers): Likewise.
30772
30773 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
30774
30775 PR target/57091
30776 * lra-constraints.c (best_small_class_operands_num): Remove.
30777 (process_alt_operands): Remove small_class_operands_num. Take
30778 small classes operands into losers and only if the operand is not
30779 matched. Modify debugging output.
30780 (curr_insn_transform): Remove best_small_class_operands_num.
30781 Print insn name.
30782
30783 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30784
30785 * config/aarch64/aarch64-builtins.c
30786 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
30787 * config/aarch64/aarch64-simd-builtins.def
30788 (reduc_splus_): Add new modes.
30789 (reduc_uplus_): New.
30790 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
30791 (reduc_uplus_v4sf): Likewise.
30792 (reduc_splus_v4sf): Likewise.
30793 (aarch64_addv<mode>): Likewise.
30794 (reduc_uplus_<mode>): Likewise.
30795 (reduc_splus_<mode>): Likewise.
30796 (aarch64_addvv2di): Likewise.
30797 (reduc_uplus_v2di): Likewise.
30798 (reduc_splus_v2di): Likewise.
30799 (aarch64_addvv2si): Likewise.
30800 (reduc_uplus_v2si): Likewise.
30801 (reduc_splus_v2si): Likewise.
30802 (reduc_<sur>plus_<mode>): New.
30803 (reduc_<sur>plus_v2di): Likewise.
30804 (reduc_<sur>plus_v2si): Likewise.
30805 (reduc_<sur>plus_v4sf): Likewise.
30806 (aarch64_addpv4sf): Likewise.
30807 * config/aarch64/arm_neon.h
30808 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
30809 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
30810 add UNSPEC_SADDV, UNSPEC_UADDV.
30811 (SUADDV): New.
30812 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
30813
30814 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30815
30816 * config/aarch64/arm_neon.h
30817 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
30818
30819 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30820
30821 * config/aarch64/aarch64-builtins
30822 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
30823
30824 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30825
30826 * config/aarch64/aarch64-simd-builtins.def
30827 (reduc_smax_): New.
30828 (reduc_smin_): Likewise.
30829 (reduc_umax_): Likewise.
30830 (reduc_umin_): Likewise.
30831 (reduc_smax_nan_): Likewise.
30832 (reduc_smin_nan_): Likewise.
30833 (fmax): Remove.
30834 (fmin): Likewise.
30835 (smax): Update for V2SF, V4SF and V2DF modes.
30836 (smin): Likewise.
30837 (smax_nan): New.
30838 (smin_nan): Likewise.
30839 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
30840 (<su><maxmin><mode>3): ...This, refactor.
30841 (s<maxmin><mode>3): New.
30842 (<maxmin_uns><mode>3): Likewise.
30843 (reduc_<maxmin_uns>_<mode>): Refactor.
30844 (reduc_<maxmin_uns>_v4sf): Likewise.
30845 (reduc_<maxmin_uns>_v2si): Likewise.
30846 (aarch64_<fmaxmin><mode>: Remove.
30847 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
30848 new builtin names.
30849 (vmin<q>_f<32,64>): Likewise.
30850 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30851 (FMAXMIN): New.
30852 (su): Add mappings for smax, smin, umax, umin.
30853 (maxmin): New.
30854 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
30855 (FMAXMIN): Rename as...
30856 (FMAXMIN_UNS): ...This.
30857 (maxminv): Remove.
30858 (fmaxminv): Likewise.
30859 (fmaxmin): Likewise.
30860 (maxmin_uns): New.
30861 (maxmin_uns_op): Likewise.
30862
30863 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30864
30865 * config/aarch64/arm_neon.h
30866 (vac<ge, gt><sd>_f<32, 64>): Rename to...
30867 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
30868 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
30869
30870 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30871
30872 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
30873 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
30874
30875 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30876
30877 * config/aarch64/aarch64-simd.md
30878 (vcond<mode>_internal): Handle special cases for constant masks.
30879 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
30880 (vcondu<mode><mode>): Likewise.
30881 (vcond<v_cmp_result><mode>): New.
30882
30883 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30884
30885 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
30886 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
30887 * config/aarch64/aarch64-simd-builtins.def
30888 (cmeq): Update to BUILTIN_VALLDI.
30889 (cmgt): Likewise.
30890 (cmge): Likewise.
30891 (cmle): Likewise.
30892 (cmlt): Likewise.
30893 * config/aarch64/arm_neon.h
30894 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
30895 to builtins or C as appropriate.
30896
30897 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
30898
30899 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
30900 (cmgeu): ...This.
30901 (cmhi): Rename to...
30902 (cmgtu): ...This.
30903 * config/aarch64/aarch64-simd.md
30904 (simd_mode): Add SF.
30905 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
30906 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
30907 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
30908 (cstore<mode>_neg): ...This.
30909 * config/aarch64/iterators.md
30910 (VALLF): new.
30911 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
30912 (COMPARISONS): New.
30913 (UCOMPARISONS): Likewise.
30914 (optab): Add missing comparisons.
30915 (n_optab): New.
30916 (cmp_1): Likewise.
30917 (cmp_2): Likewise.
30918 (CMP): Likewise.
30919 (cmp): Remove.
30920 (VCMP_S): Likewise.
30921 (VCMP_U): Likewise.
30922 (V_cmp_result): Add DF, SF modes.
30923 (v_cmp_result): Likewise.
30924 (v): Likewise.
30925 (vmtype): Likewise.
30926 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
30927
30928 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
30929
30930 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
30931 define_insn to define_insn_and_split.
30932 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
30933 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
30934 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
30935 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
30936 (thumb2_negscc): Likewise.
30937
30938 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30939
30940 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
30941
30942 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
30943
30944 * config/arm/thumb2.md: Remove trailing whitespaces.
30945
30946 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30947
30948 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
30949 Use gen_int_mode rather than GEN_INT.
30950
30951 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
30952
30953 * value-prof.c (stream_in_histogram_value): Remove the strayed
30954 debug_gimple_stmt.
30955
30956 2013-04-30 Richard Biener <rguenther@suse.de>
30957
30958 PR middle-end/57122
30959 * cfghooks.c (split_edge): Properly check for the loop latch edge.
30960
30961 2013-04-30 Richard Biener <rguenther@suse.de>
30962
30963 PR middle-end/57107
30964 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
30965
30966 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
30967
30968 PR rtl-optimization/56957
30969 PR rtl-optimization/57105
30970 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
30971 variable. Use just INSN_UID for determining whether an insn
30972 should be only disconnected from the insn stream.
30973 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
30974
30975 2013-04-30 Jakub Jelinek <jakub@redhat.com>
30976
30977 PR tree-optimization/57104
30978 * tsan.c (instrument_expr): Don't instrument accesses to
30979 DECL_HARD_REGISTER VAR_DECLs.
30980
30981 2013-04-30 Richard Biener <rguenther@suse.de>
30982
30983 * function.h (loops_for_fn): New inline function.
30984 (set_loops_for_fn): Likewise.
30985 * cfgloop.h (place_new_loop): Add struct function parameter.
30986 (get_loop): Likewise.
30987 (get_loops): Likewise.
30988 (number_of_loops): Likewise.
30989 (fel_next): Adjust.
30990 (fel_init): Likewise.
30991 * cfg.c (get_loop_copy): Adjust.
30992 * cfgloop.c (flow_loops_dump): Likewise.
30993 (record_loop_exits): Likewise.
30994 (verify_loop_structure): Likewise.
30995 * cfgloopanal.c (mark_irreducible_loops): Likewise.
30996 (estimate_reg_pressure_cost): Likewise.
30997 (mark_loop_exit_edges): Likewise.
30998 * cfgloopmanip.c (place_new_loop): Likewise.
30999 (add_loop): Likewise.
31000 (duplicate_loop): Likewise.
31001 * graph.c (draw_cfg_nodes): Likewise.
31002 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
31003 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
31004 (extract_affine_chrec): Likewise.
31005 (build_scop_iteration_domain): Likewise.
31006 * graphite.c (graphite_initialize): Likewise.
31007 * ira-build.c (create_loop_tree_nodes): Likewise.
31008 (more_one_region_p): Likewise.
31009 (rebuild_regno_allocno_maps): Likewise.
31010 (mark_loops_for_removal): Likewise.
31011 (mark_all_loops_for_removal): Likewise.
31012 (remove_unnecessary_regions): Likewise.
31013 (ira_build): Likewise.
31014 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
31015 * loop-init.c (fix_loop_structure): Likewise.
31016 (gate_rtl_move_loop_invariants): Likewise.
31017 (gate_rtl_unswitch): Likewise.
31018 (gate_rtl_unroll_and_peel_loops): Likewise.
31019 (rtl_doloop): Likewise.
31020 * lto-streamer-in.c (input_cfg): Likewise.
31021 * lto-streamer-out.c (output_cfg): Likewise.
31022 * modulo-sched.c (sms_schedule): Likewise.
31023 * predict.c (tree_estimate_probability): Likewise.
31024 (tree_estimate_probability_driver): Likewise.
31025 (estimate_loops): Likewise.
31026 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
31027 (move_sese_region_to_fn): Likewise.
31028 (debug_loop_num): Likewise.
31029 * tree-chrec.c (chrec_evaluate): Likewise.
31030 (hide_evolution_in_other_loops_than_loop): Likewise.
31031 (chrec_component_in_loop_num): Likewise.
31032 (reset_evolution_in_loop): Likewise.
31033 (evolution_function_is_invariant_rec_p): Likewise.
31034 * tree-if-conv.c (main_tree_if_conversion): Likewise.
31035 * tree-inline.c (copy_loops): Likewise.
31036 (copy_cfg_body): Likewise.
31037 (tree_function_versioning): Likewise.
31038 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
31039 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
31040 Likewise.
31041 (add_to_evolution_1): Likewise.
31042 (scev_const_prop): Likewise.
31043 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
31044 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
31045 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
31046 (tree_ssa_lim_initialize): Likewise.
31047 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
31048 (verify_loop_closed_ssa): Likewise.
31049 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
31050 (tree_ssa_loop_im): Likewise.
31051 (tree_ssa_loop_unswitch): Likewise.
31052 (tree_vectorize): Likewise.
31053 (check_data_deps): Likewise.
31054 (tree_ssa_loop_ivcanon): Likewise.
31055 (tree_ssa_loop_bounds): Likewise.
31056 (tree_complete_unroll): Likewise.
31057 (tree_complete_unroll_inner): Likewise.
31058 (tree_parallelize_loops): Likewise.
31059 (tree_ssa_loop_prefetch): Likewise.
31060 (tree_ssa_loop_ivopts): Likewise.
31061 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
31062 * tree-vectorizer.c (vectorize_loops): Likewise.
31063
31064 2013-04-29 Mike Frysinger <vapier@gentoo.org>
31065
31066 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
31067 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
31068 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
31069 with EABI_LINK_SPEC.
31070
31071 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31072
31073 PR target/44578
31074 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
31075 alternative.
31076
31077 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
31078
31079 PR target/57097
31080 * lra-constraints.c (process_alt_operands): Discourage a bit more
31081 using memory for pseudos. Print cost dump for alternatives.
31082 Modify cost values for conflicts with early clobbers.
31083 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
31084
31085 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31086
31087 PR target/57098
31088 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
31089
31090 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31091
31092 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
31093 from/to S register.
31094 (movdi_aarch64): Support LDR/STR from/to D register.
31095
31096 2013-04-29 Ian Bolton <ian.bolton@arm.com>
31097
31098 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
31099 or higher by default.
31100
31101 2013-04-29 Richard Biener <rguenther@suse.de>
31102
31103 PR middle-end/57075
31104 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
31105 even if not adding abnormal edges for calls that can make
31106 abnormal gotos.
31107
31108 2013-04-29 Richard Biener <rguenther@suse.de>
31109
31110 PR middle-end/57103
31111 * tree-cfg.c (move_stmt_op): Fix condition under which to update
31112 TREE_BLOCK.
31113 (move_stmt_r): Remove redundant checking.
31114
31115 2013-04-29 Teresa Johnson <tejohnson@google.com>
31116
31117 PR bootstrap/57077
31118 * basic-block.h (apply_scale): New function.
31119 (apply_probability): Use apply_scale.
31120 * gimple-streamer-in.c (input_bb): Ditto.
31121 * lto-streamer-in.c (input_cfg): Ditto.
31122 * lto-cgraph.c (merge_profile_summaries): Ditto.
31123 * tree-optimize.c (execute_fixup_cfg): Ditto.
31124 * tree-inline.c (copy_bb): Update comment to use apply_scale.
31125 (copy_edges_for_bb): Ditto.
31126 (copy_cfg_body): Ditto.
31127
31128 2013-04-29 Tom de Vries <tom@codesourcery.com>
31129
31130 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
31131 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
31132 (tail_merge_optimize): Handle current_loops == NULL.
31133
31134 2013-04-26 Jeff Law <law@redhat.com>
31135
31136 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
31137 (simplify_cond_using_ranges): Generalize code to simplify
31138 COND_EXPRs where one argument is a constant and the other
31139 is an SSA_NAME created by an integral type conversion.
31140
31141 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31142
31143 * config/arm/arm.md (store_minmaxsi): Use only when
31144 optimize_insn_for_size_p.
31145
31146 2013-04-29 Christian Bruel <christian.bruel@st.com>
31147
31148 PR target/57108
31149 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
31150
31151 2013-04-29 Richard Biener <rguenther@suse.de>
31152
31153 PR middle-end/57089
31154 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
31155 loop tree make sure to schedule a fixup for the child as well.
31156 (expand_omp_for_generic): Properly add loops.
31157 (expand_omp_for_static_nochunk): Likewise.
31158 (expand_omp_for_static_chunk): Likewise.
31159 (expand_omp_for): For the degenerate case fixup loops.
31160 (expand_omp_sections): Fix default bb placement in loops.
31161 (expand_omp_atomic_pipeline): Properly add loops.
31162
31163 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31164
31165 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
31166
31167 2013-04-29 Tom de Vries <tom@codesourcery.com>
31168
31169 * tree-ssa-tail-merge.c: Update header comment.
31170
31171 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31172
31173 * config/aarch64/arm_neon.h
31174 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
31175 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
31176 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
31177 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
31178 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
31179 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
31180 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
31181 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
31182
31183 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31184
31185 * config/aarch64/aarch64-simd.md
31186 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
31187 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
31188 fix_trunc, fixuns_trunc.
31189 (ftrunc<VDQF:mode>2): New.
31190 * config/aarch64/iterators.md (optab): Add fix, fixuns.
31191 (fix_trunc_optab): New.
31192
31193 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31194
31195 * config/aarch64/aarch64-builtins.c
31196 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
31197 iceilf, lround, iroundf.
31198
31199 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
31200
31201 PR target/54349
31202 * config/i386/i386.h (enum ix86_tune_indices)
31203 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
31204 New, split from X86_TUNE_INTER_UNIT_MOVES.
31205 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
31206 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
31207 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
31208 (TARGET_INTER_UNIT_MOVES): Remove.
31209 * config/i386/i386.c (initial_ix86_tune_features): Update.
31210 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
31211 (ix86_expand_convert_uns_didf_sse): Use
31212 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31213 (ix86_expand_vector_init_one_nonzero): Ditto.
31214 (ix86_expand_vector_init_interleave): Ditto.
31215 (inline_secondary_memory_needed): Return true for moves from SSE class
31216 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
31217 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
31218 * config/i386/constraints.md (Yi, Ym): Depend on
31219 TARGET_INTER_UNIT_MOVES_TO_VEC.
31220 (Yj, Yn): New constraints.
31221 * config/i386/i386.md (*movdi_internal): Change constraints of
31222 operand 1 from Yi to Yj and from Ym to Yn.
31223 (*movsi_internal): Ditto.
31224 (*movdf_internal): Ditto.
31225 (*movsf_internal): Ditto.
31226 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
31227 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
31228 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
31229 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
31230 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
31231 * config/i386/sse.md (movdi_to_sse): Ditto.
31232 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
31233 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
31234 TARGET_INTER_UNIT_MOVES.
31235 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
31236 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
31237 instead of TARGET_INTER_UNIT_MOVES.
31238 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
31239 operand 1 from Yi to Yj and from Ym to Yn.
31240
31241 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31242
31243 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
31244 (float_truncate_hi_): Likewise.
31245 (float_extend_lo_): Likewise.
31246 (float_truncate_lo_): Likewise.
31247 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
31248 (aarch64_float_extend_lo_v2df): Likewise.
31249 (vec_unpacks_hi_v4sf): Likewise.
31250 (aarch64_float_truncate_lo_v2sf): Likewise.
31251 (aarch64_float_truncate_hi_v4sf): Likewise.
31252 (vec_pack_trunc_v2df): Likewise.
31253 (vec_pack_trunc_df): Likewise.
31254
31255 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31256
31257 * config/aarch64/aarch64-builtins.c
31258 (aarch64_fold_builtin): Fold float conversions.
31259 * config/aarch64/aarch64-simd-builtins.def
31260 (floatv2si, floatv4si, floatv2di): New.
31261 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
31262 * config/aarch64/aarch64-simd.md
31263 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
31264 * config/aarch64/iterators.md (FLOATUORS): New.
31265 (optab): Add float, floatuns.
31266 (su_optab): Likewise.
31267
31268 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31269
31270 * config/aarch64/aarch64-builtins.c
31271 (aarch64_builtin_vectorized_function): Use new names for
31272 fcvt builtins.
31273 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
31274 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
31275 (fcvtzu): Split as...
31276 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
31277 (fcvtas): Split as...
31278 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
31279 (fcvtau): Split as...
31280 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
31281 (fcvtps): Split as...
31282 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
31283 (fcvtpu): Split as...
31284 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
31285 (fcvtms): Split as...
31286 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
31287 (fcvtmu): Split as...
31288 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
31289 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
31290 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
31291 (lfrintnusf, lfrintnudf): Likewise.
31292 * config/aarch64/aarch64-simd.md
31293 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
31294 define_insn.
31295 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
31296 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
31297 (fcvt_pattern): Likewise.
31298
31299 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31300
31301 * config/aarch64/aarch64-simd.md
31302 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
31303 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
31304
31305 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31306
31307 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
31308 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
31309 (vrnd<a,m,n,p>_f32): Implement using builtins.
31310 (vrnd<i,x><q>_f<32, 64>): New.
31311
31312 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31313
31314 * config/aarch64/aarch64-builtins.c
31315 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
31316 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
31317 (frintz): Rename to...
31318 (btrunc): ...this.
31319 (frintp): Rename to...
31320 (ceil): ...this.
31321 (frintm): Rename to...
31322 (floor): ...this.
31323 (frinti): Rename to...
31324 (nearbyint): ...this.
31325 (frintx): Rename to...
31326 (rint): ...this.
31327 (frinta): Rename to...
31328 (round): ...this.
31329 * config/aarch64/aarch64-simd.md
31330 (aarch64_frint<frint_suffix><mode>): Delete.
31331 (<frint_pattern><mode>2): Convert to insn.
31332 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
31333 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
31334 (frint_pattern): Likewise.
31335 (frint_suffix): Likewise.
31336
31337 2013-04-29 Richard Biener <rguenther@suse.de>
31338
31339 PR tree-optimization/57081
31340 * loop-init.c: Include tree-flow.h.
31341 (loop_optimizer_finalize): Free number of iteration estimates.
31342 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
31343
31344 2013-04-29 Jakub Jelinek <jakub@redhat.com>
31345
31346 PR tree-optimization/57083
31347 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
31348 non-singleton shift count range, zero extend low_bound for uns case.
31349
31350 * config/i386/predicates.md (general_vector_operand): New predicate.
31351 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
31352 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
31353 if they aren't nonimmediate operands. If their original values
31354 satisfy const_vector_equal_evenodd_p, don't shift them.
31355 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
31356 predicates. For the SSE4.1 case force operands[{1,2}] into registers
31357 if not nonimmediate_operand.
31358 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
31359 instead of register_operand.
31360 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
31361
31362 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
31363
31364 * stor-layout.c (finalize_size_functions): Allocate a structure and
31365 reset cfun before dumping the functions.
31366
31367 2013-04-27 Jakub Jelinek <jakub@redhat.com>
31368
31369 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
31370
31371 PR target/56866
31372 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
31373 use xop_pmacsdqh if uns_p.
31374 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
31375 the immediate rotate count.
31376
31377 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
31378
31379 * rtl.h (struct rtx_def): Add comment for field jump.
31380 (LRA_SUBREG_P): New macro.
31381 * recog.c (register_operand): Check LRA_SUBREG_P.
31382 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31383 stack frame.
31384 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31385 (lra_final_code_change): Skip subreg change for operators.
31386 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31387 if there are no operand changes.
31388 * lra-constraints.c (curr_insn_set): New.
31389 (match_reload): Set LRA_SUBREG_P.
31390 (emit_spill_move): Ditto.
31391 (check_and_process_move): Use curr_insn_set. Process only single
31392 set insns. Don't initialize sec_mem_p and change_p.
31393 (simplify_operand_subreg): Use LRA_SUBREG_P.
31394 (reg_in_class_p): New function.
31395 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31396 of #ifdef. Add code to remove cycling.
31397 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31398 non-null disp. Reload inner instead of disp when base and index
31399 are null. Try to put lo_sum into register.
31400 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31401 (check_and_process_move): Move code for move cost check to
31402 simple_move_p. Remove equiv_substitution.
31403 (simple_move_p): New function.
31404 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31405 curr_insn_set. Call check_and_process_move only for single set
31406 insns. Use the new function. Move call of check_and_process_move
31407 after operand equiv substitution and address process.
31408
31409 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31410
31411 PR go/57045
31412 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
31413 with nonlocal goto receivers or returns twice calls, ignore
31414 unininitialized values from abnormal edges to nl goto receiver
31415 or returns twice call.
31416
31417 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31418
31419 PR tree-optimization/57051
31420 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
31421 and VEC_RSHIFT_EXPR if shift count is a multiple of element
31422 bitsize.
31423
31424 2013-04-26 Richard Biener <rguenther@suse.de>
31425
31426 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
31427 (expand_omp_taskreg): Likewise. Mark loops for fixup.
31428 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
31429 (fixup_loop_arrays_after_move): New function.
31430 (move_sese_region_to_fn): Properly outline the loop tree parts
31431 of the SESE region.
31432
31433 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
31434
31435 * config/i386/i386.md (type, unit): Fix long lines.
31436
31437 2013-04-26 Richard Biener <rguenther@suse.de>
31438
31439 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
31440 (lto-streamer-out.o): Likewise.
31441 * cfgloop.c (init_loops_structure): Export, add struct function
31442 argument and adjust.
31443 (flow_loops_find): Adjust.
31444 * cfgloop.h (enum loop_estimation): Add EST_LAST.
31445 (init_loops_structure): Declare.
31446 * lto-streamer-in.c: Include cfgloop.h.
31447 (input_cfg): Input the loop tree.
31448 * lto-streamer-out.c: Include cfgloop.h.
31449 (output_cfg): Output the loop tree.
31450 (output_struct_function_base): Do not drop PROP_loops.
31451
31452 2013-03-26 Richard Biener <rguenther@suse.de>
31453
31454 * tree-cfg.c (execute_build_cfg): Build the loop tree.
31455 (pass_build_cfg): Provide PROP_loops.
31456 (move_sese_region_to_fn): Remove loops that are outlined into fn
31457 for now.
31458 * tree-inline.c: Include cfgloop.h.
31459 (initialize_cfun): Do not drop PROP_loops.
31460 (copy_loops): New function.
31461 (copy_cfg_body): Copy loop structure.
31462 (tree_function_versioning): Initialize destination loop tree.
31463 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
31464 (pass_parallelize_loops): Do IL verification.
31465 * loop-init.c (loop_optimizer_init): Fixup loops if required.
31466 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
31467 the CFG make sure we fixup loops as well.
31468 * tree-ssa-tail-merge.c: Include cfgloop.h.
31469 (replace_block_by): When merging loop latches mark loops for fixup.
31470 * lto-streamer-out.c (output_struct_function_base): Drop
31471 PROP_loops for now.
31472 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
31473 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
31474 * ipa-split.c: Include cfgloop.h.
31475 (split_function): Add the new return block to the loop tree root.
31476 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
31477 whether we have removed the forwarder block.
31478 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
31479 * cfgloop.h (place_new_loop): Declare.
31480 * cfgloopmanip.c (place_new_loop): Export.
31481 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
31482 (tree-switch-conversion.o): Likewise.
31483 (tree-complex.o): Likewise.
31484 (tree-inline.o): Likewise.
31485 (tree-ssa-tailmerge.o): Likewise.
31486 (ipa-split.o): Likewise.
31487 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
31488 (tree-ssa-copy.o): Likewise.
31489 * tree-switch-conversion.c: Include cfgloop.h
31490 (process_switch): If we emit a bit-test cascade, schedule loops
31491 for fixup.
31492 * tree-complex.c: Include cfgloop.h.
31493 (expand_complex_div_wide): Properly add new basic-blocks to loops.
31494 * asan.c: Include cfgloop.h.
31495 (create_cond_insert_point): Properly add new basic-blocks to
31496 loops, schedule loop fixup.
31497 * cfgloop.c (verify_loop_structure): Check that looks are not
31498 marked for fixup.
31499 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
31500 to loops.
31501 (expand_omp_for_generic): Likewise.
31502 (expand_omp_sections): Likewise.
31503 (expand_omp_atomic_pipeline): Schedule loops for fixup.
31504 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
31505 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
31506 is initialized, not when loops are present.
31507 * tree-parloops.c (parallelize_loops): Remove checking here.
31508 * passes.c (init_optimization_passes): Schedule a copy-propagation
31509 pass before complete unrolling of inner loops.
31510
31511 2013-04-26 Jakub Jelinek <jakub@redhat.com>
31512
31513 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
31514 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
31515 (colorize_init): Add argument to _WIN32 version.
31516 * toplev.c: Include diagnostic-color.h.
31517 (process_options): Default to -fdiagnostics-color=auto if
31518 GCC_COLORS env var is in the environment.
31519 * common.opt (fdiagnostics-color=): Add Var and Init.
31520 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
31521 env var is in the environment, the default is auto rather than never.
31522
31523 * diagnostic.h (file_name_as_prefix): Add context argument.
31524 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
31525 the string as locus.
31526 * langhooks.c (lhd_print_error_function): Adjust caller.
31527
31528 2013-04-25 Lawrence Crowl <crowl@google.com>
31529
31530 * var-tracking.c (shared_hash_def::htab):
31531 Change type to hash_table. Update dependent calls and types.
31532
31533 2013-04-25 Lawrence Crowl <crowl@google.com>
31534
31535 * Makefile.in: Update as needed below.
31536
31537 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
31538 Move declaration to after the type's method definitons.
31539
31540 * attribs.c (htab_t scoped_attributes::attribute_hash):
31541 Change type to hash_table. Update dependent calls and types.
31542
31543 * bitmap.c (htab_t bitmap_desc_hash):
31544 Change type to hash_table. Update dependent calls and types.
31545
31546 * cselib.c (htab_t cselib_hash_table):
31547 Change type to hash_table. Update dependent calls and types.
31548
31549 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
31550 (hash_string_slot_node): Move implementation into lto-streamer.h
31551 struct string_slot_hasher.
31552 (eq_string_slot_node): Likewise.
31553
31554 * data-streamer-out.c: Update output_block::string_hash_table
31555 dependent calls and types.
31556
31557 * dwarf2cfi.c (htab_t trace_index):
31558 Change type to hash_table. Update dependent calls and types.
31559
31560 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
31561 Change type to hash_table. Update dependent calls and types.
31562 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
31563 (htab_t optimize_external_refs::map): Likewise.
31564 (htab_t output_comp_unit::extern_map): Likewise.
31565 (htab_t output_comdat_type_unit::extern_map): Likewise.
31566 (htab_t output_macinfo::macinfo_htab): Likewise.
31567 (htab_t optimize_location_lists::htab): Likewise.
31568 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
31569
31570 * except.c (htab_t ehspec_hash_type):
31571 Change type to hash_table. Update dependent calls and types.
31572 (assign_filter_values::ttypes): Likewise.
31573 (assign_filter_values::ehspec): Likewise.
31574 (sjlj_assign_call_site_values::ar_hash): Likewise.
31575 (convert_to_eh_region_ranges::ar_hash): Likewise.
31576
31577 * gcse.c (htab_t pre_ldst_table):
31578 Change type to hash_table. Update dependent calls and types.
31579
31580 * ggc-common.c (htab_t saving_htab):
31581 Change type to hash_table. Update dependent calls and types.
31582 (htab_t loc_hash): Likewise.
31583 (htab_t ptr_hash): Likewise.
31584 (call_count): Rename ggc_call_count.
31585 (call_alloc): Rename ggc_call_alloc.
31586 (loc_descriptor): Rename make_loc_descriptor.
31587 (add_statistics): Rename ggc_add_statistics.
31588
31589 * ggc-common.c (saving_htab):
31590 Change type to hash_table. Update dependent calls and types.
31591
31592 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
31593 (push_gimplify_context): Likewise.
31594 (pop_gimplify_context): Likewise.
31595 (struct gimple_temp_hash_elt): Added.
31596 (struct gimplify_hasher): Likewise.
31597 (struct gimplify_ctx.temp_htab):
31598 Change type to hash_table. Update dependent calls and types.
31599
31600 * gimple-fold.c: Include gimplify-ctx.h.
31601
31602 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
31603 Change type to hash_table. Update dependent calls and types.
31604 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
31605 avoid potential global name collision.
31606
31607 * gimplify.c: Include gimplify-ctx.h.
31608 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
31609 (htab_t gimplify_ctx::temp_htab):
31610 Update dependent calls and types for new type hash_table.
31611 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
31612 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
31613
31614 * gimplify-ctx.h: New.
31615 (struct gimple_temp_hash_elt): Move from gimplify.c.
31616 (class gimplify_hasher): New.
31617 (struct gimplify_ctx): Move from gimple.h.
31618 (htab_t gimplify_ctx::temp_htab):
31619 Change type to hash_table. Update dependent calls and types.
31620
31621 * graphite-clast-to-gimple.c: Include graphite-htab.h.
31622 (htab_t ivs_params::newivs_index):
31623 Change type to hash_table. Update dependent calls and types.
31624 (htab_t ivs_params::params_index): Likewise.
31625 (htab_t print_generated_program::params_index): Likewise.
31626 (htab_t gloog::newivs_index): Likewise.
31627 (htab_t gloog::params_index): Likewise.
31628
31629 * graphite.c: Include graphite-htab.h.
31630 4htab_t graphite_transform_loops::bb_pbb_mapping):
31631 Change type to hash_table. Update dependent calls and types.
31632
31633 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
31634 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
31635 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
31636
31637 * graphite-dependences.c: Include graphite-htab.h.
31638 (loop_is_parallel_p): Change hash table type of parameter.
31639
31640 * graphite-htab.h: New.
31641 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
31642 (extern find_pbb_via_hash): Move from graphite-poly.h.
31643 (extern loop_is_parallel_p): Move from graphite-poly.h.
31644 (extern get_loop_body_pbbs): Move from graphite-poly.h.
31645
31646 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
31647 (extern loop_is_parallel_p): Move to graphite-htab.h.
31648 (extern get_loop_body_pbbs): Move to graphite-htab.h.
31649
31650 * haifa-sched.c (htab_t delay_htab):
31651 Change type to hash_table. Update dependent calls and types.
31652 (htab_t delay_htab_i2): Likewise.
31653
31654 * ira-color.c (htab_t allocno_hard_regs_htab):
31655 Change type to hash_table. Update dependent calls and types.
31656
31657 * ira-costs.c (htab_t cost_classes_htab):
31658 Change type to hash_table. Update dependent calls and types.
31659
31660 * loop-invariant.c (htab_t merge_identical_invariants::eq):
31661 Change type to hash_table. Update dependent calls and types.
31662
31663 * loop-iv.c (htab_t bivs):
31664 Change type to hash_table. Update dependent calls and types.
31665
31666 * loop-unroll.c (htab_t opt_info::insns_to_split):
31667 Change type to hash_table. Update dependent calls and types.
31668 (htab_t opt_info::insns_with_var_to_expand): Likewise.
31669
31670 * lto-streamer.h (struct string_slot): Move from data-streamer.h
31671 (struct string_slot_hasher): New.
31672 (htab_t output_block::string_hash_table):
31673 Change type to hash_table. Update dependent calls and types.
31674
31675 * lto-streamer-in.c (freeing_string_slot_hasher): New.
31676 (htab_t file_name_hash_table):
31677 Change type to hash_table. Update dependent calls and types.
31678
31679 * lto-streamer-out.c: Update output_block::string_hash_table dependent
31680 calls and types.
31681
31682 * lto-streamer.c (htab_t tree_htab):
31683 Change type to hash_table. Update dependent calls and types.
31684
31685 * omp-low.c: Include gimplify-ctx.h.
31686
31687 * passes.c (htab_t name_to_pass_map):
31688 Change type to hash_table. Update dependent calls and types.
31689 (pass_traverse): Rename to passes_pass_traverse.
31690
31691 * plugin.c (htab_t event_tab):
31692 Change type to hash_table. Update dependent calls and types.
31693
31694 * postreload-gcse.c (htab_t expr_table):
31695 Change type to hash_table. Update dependent calls and types.
31696 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
31697
31698 * sese.c (debug_rename_map_1): Make extern.
31699 (htab_t copy_bb_and_scalar_dependences::rename_map):
31700 Change type to hash_table. Update dependent calls and types.
31701
31702 * sese.h (extern debug_rename_map): Move to .c file.
31703
31704 * store-motion.c (htab_t store_motion_mems_table):
31705 Change type to hash_table. Update dependent calls and types.
31706
31707 * trans-mem.c (htab_t tm_new_mem_hash):
31708 Change type to hash_table. Update dependent calls and types.
31709
31710 * tree-browser.c (htab_t TB_up_ht):
31711 Change type to hash_table. Update dependent calls and types.
31712
31713 * tree-cfg.c (htab_t discriminator_per_locus):
31714 Change type to hash_table. Update dependent calls and types.
31715
31716 * tree-complex.c: Include tree-hasher.h
31717 (htab_t complex_variable_components):
31718 Change type to hash_table. Update dependent calls and types.
31719
31720 * tree-eh.c (htab_t finally_tree):
31721 Change type to hash_table. Update dependent calls and types.
31722
31723 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
31724 struct int_tree_hasher.
31725 (extern int_tree_map_eq): Likewise.
31726 (uid_decl_map_hash): Removed.
31727 (extern decl_tree_map_eq): Likewise.
31728
31729 * tree-hasher.h: New.
31730 (struct int_tree_hasher): New.
31731 (typedef int_tree_htab_type): New.
31732
31733 * tree-inline.c: Include gimplify-ctx.h.
31734
31735 * tree-mudflap.c: Include gimplify-ctx.h.
31736
31737 * tree-parloops.c: Include tree-hasher.h.
31738 (htab_t eliminate_local_variables_stmt::decl_address):
31739 Change type to hash_table. Update dependent calls and types.
31740 (htab_t separate_decls_in_region::decl_copies): Likewise.
31741
31742 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
31743 Change type to hash_table. Update dependent calls and types.
31744
31745 * tree-sra.c (candidates):
31746 Change type to hash_table. Update dependent calls and types.
31747
31748 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
31749 in tree-flow.h.
31750 (int_tree_map_hash): Likewise.
31751
31752 * tree-ssa-dom.c (htab_t avail_exprs):
31753 Change type to hash_table. Update dependent calls and types.
31754
31755 * tree-ssa-live.c (var_map_base_init::tree_to_index):
31756 Change type to hash_table. Update dependent calls and types.
31757
31758 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
31759 Change type to hash_table. Update dependent calls and types.
31760
31761 * tree-ssa-phiopt.c (seen_ssa_names):
31762 Change type to hash_table. Update dependent calls and types.
31763
31764 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
31765 Change type to hash_table. Update dependent calls and types.
31766
31767 * tree-ssa-uncprop.c (equiv):
31768 Change type to hash_table. Update dependent calls and types.
31769
31770 2013-04-25 Jakub Jelinek <jakub@redhat.com>
31771
31772 PR rtl-optimization/57003
31773 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
31774 call note_stores with kill_clobbered_value callback again after
31775 killing regs_invalidated_by_call.
31776
31777 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31778
31779 * config/aarch64/aarch64-simd.md
31780 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
31781 (aarch64_simd_bsl<mode>): Likewise.
31782 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
31783
31784 2013-04-25 Marek Polacek <polacek@redhat.com>
31785
31786 PR tree-optimization/57066
31787 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
31788
31789 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31790
31791 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
31792
31793 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31794
31795 * config/aarch64/aarch64-builtins.c
31796 (aarch64_fold_builtin): New.
31797 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
31798 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
31799 * config/aarch64/aarch64-simd-builtins.def (abs): New.
31800 * config/aarch64/arm_neon.h
31801 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
31802
31803 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31804 Tejas Belagod <tejas.belagod@arm.com>
31805
31806 * config/aarch64/aarch64-builtins.c
31807 (aarch64_gimple_fold_builtin): New.
31808 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
31809 * config/aarch64/aarch64-simd-builtins.def (addv): New.
31810 * config/aarch64/aarch64-simd.md (addpv4sf): New.
31811 (addvv4sf): Update.
31812 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
31813
31814 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31815
31816 * config/aarch64/aarch64.md
31817 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
31818
31819 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31820
31821 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
31822 (*ngcsi_uxtw): New pattern.
31823
31824 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31825 Julian Brown <julian@codesourcery.com>
31826
31827 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
31828 (TB_DREG): Add T_V4HF.
31829 (v4hf_UP): New macro.
31830 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31831 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31832 Handle initialisation of V4HF. Adjust initialisation of reinterpret
31833 built-ins.
31834 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
31835 (arm_vector_mode_supported_p): Handle V4HF.
31836 (arm_mangle_map): Handle V4HFmode.
31837 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
31838 * config/arm/arm_neon_builtins.def: Add entries for
31839 vcvtv4hfv4sf, vcvtv4sfv4hf.
31840 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
31841 (neon_vcvtv4hfv4sf): Likewise.
31842 * config/arm/neon-gen.ml: Handle half-precision floating point
31843 features.
31844 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
31845 * config/arm/arm_neon.h: Regenerate.
31846 * config/arm/neon.ml (type elts): Add F16.
31847 (type vectype): Add T_float16x4, T_floatHF.
31848 (type vecmode): Add V4HF.
31849 (type features): Add Requires_FP_bit feature.
31850 (elt_width): Handle F16.
31851 (elt_class): Likewise.
31852 (elt_of_class_width): Likewise.
31853 (mode_of_elt): Refactor.
31854 (type_for_elt): Handle F16, fix error messages.
31855 (vectype_size): Handle T_float16x4.
31856 (vcvt_sh): New function.
31857 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
31858 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
31859 (string_of_mode): Handle V4HF.
31860 * doc/arm-neon-intrinsics.texi: Regenerate.
31861
31862 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
31863
31864 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
31865 format specifier in 'X' case.
31866
31867 2013-04-25 Alan Modra <amodra@gmail.com>
31868
31869 PR target/57052
31870 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
31871 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
31872 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
31873 Repeat for many other rotate/shift and mask patterns using subregs.
31874 Name lshiftrt insns.
31875 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
31876 on WORDS_BIG_ENDIAN.
31877
31878 2013-04-25 Alan Modra <amodra@gmail.com>
31879
31880 * config.gcc: Support little-endian powerpc-linux targets.
31881 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
31882 (LINK_OS_LINUX_SPEC): Define.
31883 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
31884 Preserve MASK_LITTLE_ENDIAN.
31885 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
31886 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
31887 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
31888 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
31889 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
31890 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
31891 Correct fp word order for little-endian. Don't shift toc entries
31892 smaller than a word for little-endian.
31893 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
31894 (bswapdi2 splits): Correct low-part subreg for little-endian.
31895 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
31896 low/high where such is correct only for be.
31897 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
31898 little-endian for -mcall-aixdesc.
31899
31900 2013-04-25 Alan Modra <amodra@gmail.com>
31901
31902 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31903 replace_equiv_address_nv.
31904
31905 2013-04-25 Alan Modra <amodra@gmail.com>
31906
31907 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
31908
31909 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31910
31911 Revert:
31912 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31913 * rtl.h (struct rtx_def): ...
31914
31915 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31916
31917 PR rtl-optimizations/57046
31918 * lra-constraints (split_reg): Set up lra_risky_transformations_p
31919 for multi-reg splits.
31920
31921 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
31922
31923 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
31924
31925 2013-04-24 Sterling Augustine <saugustine@google.com>
31926
31927 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
31928 (comp_dir_string, debug_str_dwo_section): New.
31929 (DEBUG_STR_DWO_SECTION): Rename to ...
31930 (DEBUG_DWO_STR_SECTION): ... this.
31931 (DEBUG_NORM_STR_SECTION): Delete.
31932 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
31933 (DEBUG_STR_DWO_SECTION_FLAGS): New.
31934 (find_AT_string): Move most logic to ...
31935 (find_AT_string_in_table): ... here. New.
31936 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
31937 add_skeleton_AT_string. Delete logic.
31938 (output_skeleton_debug_sections): Remove call to
31939 add_top_level_skeleton_die_attrs.
31940 (add_comp_dir_attribute): Move logic to comp_dir_string.
31941 (dwarf2out_init): Initialize debug_str_dwo_section.
31942 (output_indirect_string): Call find_string_form.
31943 (output_indirect_strings): Rewrite.
31944 (prune_unused_types): Empty skeleton_debug_str_hash.
31945 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
31946 (dwarf2out_finish): Call output_indirect_strings.
31947
31948 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31949
31950 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
31951
31952 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
31953
31954 * rtl.h (struct rtx_def): Add comment for field jump.
31955 (LRA_SUBREG_P): New macro.
31956 * recog.c (register_operand): Check LRA_SUBREG_P.
31957 * lra.c (lra): Add note at the end of RTL code. Align non-empty
31958 stack frame.
31959 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
31960 (lra_final_code_change): Skip subreg change for operators.
31961 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
31962 if there are no operand changes.
31963 * lra-constraints.c (curr_insn_set): New.
31964 (match_reload): Set LRA_SUBREG_P.
31965 (emit_spill_move): Ditto.
31966 (check_and_process_move): Use curr_insn_set. Process only single
31967 set insns. Don't initialize sec_mem_p and change_p.
31968 (simplify_operand_subreg): Use LRA_SUBREG_P.
31969 (reg_in_class_p): New function.
31970 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
31971 of #ifdef. Add code to remove cycling.
31972 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
31973 non-null disp. Reload inner instead of disp when base and index
31974 are null. Try to put lo_sum into register.
31975 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
31976 (check_and_process_move): Move code for move cost check to
31977 simple_move_p. Remove equiv_substitution.
31978 (simple_move_p): New function.
31979 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
31980 curr_insn_set. Call check_and_process_move only for single set
31981 insns. Use the new function. Move call of check_and_process_move
31982 after operand equiv substitution and address process.
31983
31984 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
31985
31986 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
31987 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
31988 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
31989
31990 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
31991
31992 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
31993
31994 2013-04-24 Marek Polacek <polacek@redhat.com>
31995
31996 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
31997 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
31998 (select_loops_exit_conditions): Likewise.
31999 (number_of_iterations_for_all_loops): Likewise.
32000 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
32001 (scev_analysis): Likewise.
32002
32003 2013-04-02 Catherine Moore <clm@codesourcery.com>
32004 Chao-ying Fu <fu@mips.com>
32005
32006 * config/mips/micromips.md (jraddiusp): New pattern.
32007 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
32008 instruction if possible.
32009
32010 2013-04-24 Alan Modra <amodra@gmail.com>
32011
32012 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
32013
32014 2013-04-24 Julian Brown <julian@codesourcery.com>
32015 Chung-Lin Tang <cltang@codesourcery.com>
32016
32017 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
32018 dependency behavior in enumeration type DIE generation. Add TODO note
32019 to comments about future DW_FORM_sdata/udata re-work of related code.
32020
32021 2013-04-23 Lawrence Crowl <crowl@google.com>
32022
32023 * Makefile.in: Update as needed below.
32024
32025 * hash-table.h (class hash_table):
32026 Correct many methods with parameter types compare_type to the correct
32027 value_type. (Correct code was unlikely to notice the change.)
32028 (hash_table::elements_with_deleted) New.
32029 (class hashtable::iterator): New.
32030 (hashtable::begin()): New.
32031 (hashtable::end()): New.
32032 (FOR_EACH_HASH_TABLE_ELEMENT): New.
32033
32034 * statistics.c (statistics_hashes):
32035 Change type to hash_table. Update dependent calls and types.
32036
32037 * tree-into-ssa.c (var_infos):
32038 Change type to hash_table. Update dependent calls and types.
32039
32040 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
32041 Change type to hash_table. Update dependent calls and types.
32042
32043 * tree-ssa-loop-im.c (struct mem_ref.refs):
32044 Change type to hash_table. Update dependent calls and types.
32045
32046 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
32047 Change type to hash_table. Update dependent calls and types.
32048
32049 * tree-ssa-sccvn.c (vn_tables_s::nary):
32050 Change type to hash_table. Update dependent calls and types.
32051 (vn_tables_s::phis): Likewise.
32052 (vn_tables_s::references): Likewise.
32053
32054 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
32055 (vn_reference_eq): Update parameter and return types.
32056
32057 * tree-ssa-structalias.c (pointer_equiv_class_table):
32058 Change type to hash_table. Update dependent calls and types.
32059 (location_equiv_class_table): Likewise.
32060
32061 * tree-vect-data-refs.c: Consequential changes for making
32062 peeling a hash_table.
32063
32064 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
32065 (destroy_loop_vec_info): Dependent hash_table update.
32066
32067 * tree-vectorizer.h (peeling_htab):
32068 Change type to hash_table. Update dependent calls and types.
32069
32070 2013-04-23 Shiva Chen <shiva0217@gmail.com>
32071
32072 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
32073 to check the register content is equal or not.
32074 * lra-constraints.c (match_reload): Use lra_assign_reg_val
32075 to assign register content record.
32076 * lra-eliminations.c (update_reg_eliminate): Use
32077 lra_update_reg_val_offset to update register content offset.
32078 * lra-int.h (struct lra_reg): Add offset member.
32079 (lra_reg_val_equal_p): New static inline function.
32080 (lra_update_reg_val_offset): New static inline function.
32081 (lra_assign_reg_val): New static inline function.
32082 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
32083 to assign register content record.
32084 (initialize_lra_reg_info_element): Initial offset to zero.
32085
32086 2013-04-23 Catherine Moore <clm@codesourcery.com>
32087
32088 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
32089 operands. Record compression.
32090
32091 2013-04-23 Xinliang David Li <davidxl@google.com>
32092
32093 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
32094
32095 2013-04-23 Richard Biener <rguenther@suse.de>
32096
32097 PR middle-end/57036
32098 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
32099 parameter, only add abnormal goto edges from the copied body
32100 if the call could perform abnormal gotos.
32101 (copy_cfg_body): Adjust.
32102
32103 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
32104
32105 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
32106
32107 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
32108
32109 * coretypes.h (gimple_stmt_iterator): Add struct to make
32110 compatible with C.
32111
32112 2013-04-23 Richard Biener <rguenther@suse.de>
32113
32114 PR tree-optimization/57026
32115 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
32116 from SSA names occuring in abnormal PHI nodes.
32117
32118 2013-04-22 Andi Kleen <ak@linux.intel.com>
32119
32120 * lto/lto.c (print_lto_report_1): Fix LTO report names.
32121
32122 2013-04-22 Andi Kleen <ak@linux.intel.com>
32123
32124 * lto/lto.c (print_lto_report_1): Declare early.
32125 (read_cgraph_and_symbols): Call print_lto_report_1 early.
32126
32127 2013-04-22 Andi Kleen <ak@linux.intel.com>
32128
32129 * common.opt (-flto-report-wpa): Add.
32130 * doc/invoke.texi (-flto-report-wpa): Add.
32131 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
32132 (lto_main): dito.
32133
32134 2013-04-22 Xinliang David Li <davidxl@google.com>
32135
32136 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
32137 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
32138 * Makefile.in: New dependency
32139
32140 David Daney <ddaney.cavm@gmail.com>
32141
32142 * configure.ac (gcc_cv_as_micromips_support): Use the
32143 --fatal-warnings option.
32144 * configure: Regenerate.
32145
32146 2013-04-22 Marek Polacek <polacek@redhat.com>
32147
32148 PR sanitizer/56990
32149 * tsan.c (instrument_expr): Don't instrument expression
32150 in case its size is zero.
32151
32152 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
32153
32154 PR target/57032
32155 Revert:
32156 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32157
32158 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32159
32160 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32161
32162 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
32163 (gimple_stmt_iterator): New typedef.
32164 * gimple.h (gimple_stmt_iterator): Rename to...
32165 (gimple_stmt_iterator_d): ... This.
32166 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
32167 trees be valid for GIMPLE and GENERIC.
32168 (TARGET_GIMPLE_FOLD_BUILTIN): New.
32169 * gimple-fold.c (gimple_fold_call): Call target hook
32170 gimple_fold_builtin.
32171 * hooks.c (hook_bool_gsiptr_false): New.
32172 * hooks.h (hook_bool_gsiptr_false): New.
32173 * target.def (fold_stmt): New.
32174 * doc/tm.texi: Regenerate.
32175
32176 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
32177
32178 PR target/57018
32179 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
32180 a set sp if no stack realignment.
32181
32182 2013-04-22 Nick Clifton <nickc@redhat.com>
32183
32184 * config.gcc (tilegx-linux): Extend extra_objs rather than
32185 overwriting it.
32186 (tilepro-linux): Likewise.
32187
32188 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32189
32190 * config/aarch64/aarch64-builtins.c
32191 (CF): Remove.
32192 (CF0, CF1, CF2, CF3, CF4, CF10): New.
32193 (VAR<1-12>): Add MAP parameter.
32194 (BUILTIN_*): Likewise.
32195 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
32196 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
32197 (aarch64_ushl_n<mode>): Likewise.
32198 (aarch64_sshr_n<mode>): Likewise.
32199 (aarch64_ushr_n<mode>): Likewise.
32200 (aarch64_<maxmin><mode>): Likewise.
32201 (aarch64_sqrt<mode>): Likewise.
32202 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
32203 (vshr<q>_n_*): Likewise.
32204
32205 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32206
32207 * config/aarch64/aarch64-builtins.c
32208 (aarch64_simd_builtin_type_mode): Handle SF types.
32209 (sf_UP): Define.
32210 (BUILTIN_GPF): Define.
32211 (aarch64_init_simd_builtins): Handle SF types.
32212 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
32213 (frecps): Likewise.
32214 (frecpx): Likewise.
32215 * config/aarch64/aarch64-simd.md
32216 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
32217 (aarch64_frecpe<mode>): New.
32218 (aarch64_frecps<mode>): Likewise.
32219 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
32220 (v8type): Add frecp<esx>.
32221 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
32222 (aarch64_frecps<mode>): Likewise.
32223 * config/aarch64/iterators.md (FRECP): New.
32224 (frecp_suffix): Likewise.
32225 * config/aarch64/arm_neon.h
32226 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
32227
32228 2013-04-22 Christian Bruel <christian.bruel@st.com>
32229
32230 PR target/56995
32231 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
32232 (REG_CLASS_NAMES): Idem.
32233 (REG_CLASS_CONTENTS): Idem.
32234 (REGCLASS_HAS_FP_REG): Idem.
32235 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
32236 (sh_conditional_register_usage): Idem.
32237
32238 2013-04-21 Jeff Law <law@redhat.com>
32239
32240 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
32241 (ssa_forward_propagate_and_combine): Use it.
32242
32243 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32244
32245 * lra.c: Update the flow chart diagram.
32246
32247 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
32248
32249 PR rtl-optimization/56847
32250 * lra-constraints.c (process_alt_operands): Discourage alternative
32251 with non-matche doffsettable memory constraint fro memory with
32252 known offset.
32253
32254 2013-04-19 Richard Biener <rguenther@suse.de>
32255
32256 PR tree-optimization/56982
32257 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
32258 function.
32259 * gimplify.c (gimplify_call_expr): Notice special calls.
32260 (gimplify_modify_expr): Likewise.
32261 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
32262 abnormal control flow receivers.
32263 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
32264 in the same way as cfun->has_nonlocal_labels.
32265 (gimple_purge_dead_abnormal_call_edges): Likewise.
32266 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
32267 receivers start a basic-block.
32268
32269 2013-04-19 Richard Biener <rguenther@suse.de>
32270
32271 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
32272 member ...
32273 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
32274 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
32275 (SLP_TREE_LOAD_PERMUTATION): Add.
32276 (vect_transform_slp_perm_load): Adjust prototype.
32277 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
32278 (vect_free_slp_instance): Likewise.
32279 (vect_create_new_slp_node): Likewise.
32280 (vect_supported_slp_permutation_p): Remove.
32281 (vect_slp_rearrange_stmts): Adjust.
32282 (vect_supported_load_permutation_p): Likewise. Inline
32283 vect_supported_slp_permutation_p here.
32284 (vect_analyze_slp_instance): Compute load permutations per
32285 slp node instead of per instance.
32286 (vect_get_slp_defs): Adjust.
32287 (vect_transform_slp_perm_load): Likewise.
32288 (vect_schedule_slp_instance): Remove redundant code.
32289 (vect_schedule_slp): Remove hack for PR56270, add it ...
32290 * tree-vect-stmts.c (vectorizable_load): ... here, do not
32291 CSE loads for SLP. Adjust.
32292
32293 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32294
32295 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
32296 spelling in two comments.
32297
32298 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
32299
32300 PR target/56797
32301 * config/arm/arm.c (load_multiple_sequence): Require SP
32302 as base register for loads if SP is in the register list.
32303
32304 2013-04-19 Martin Jambor <mjambor@suse.cz>
32305
32306 PR tree-optimization/56718
32307 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
32308 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
32309 and made public. Adjusted all callers.
32310 (ipa_intraprocedural_devirtualization): New function.
32311 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
32312 (ipa_intraprocedural_devirtualization): Likewise.
32313 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
32314
32315 2013-04-19 Richard Biener <rguenther@suse.de>
32316
32317 PR tree-optimization/57000
32318 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
32319
32320 2013-04-19 Terry Guo <terry.guo@arm.com>
32321
32322 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
32323 Replace with ...
32324 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
32325 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
32326 (cortex_m4_fmacs): Use new reservations.
32327 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
32328
32329 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
32330
32331 PR rtl-optimization/56999
32332 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
32333 related code.
32334 (lra_coalesce): Remove split_origin_bitmap and related code.
32335 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
32336 ranges if necessary.
32337
32338 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
32339
32340 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
32341 New array.
32342 (ix86_expand_call): Remove clobbered_registers array and use
32343 x86_64_ms_sysv_extra_clobbered_registers instead.
32344 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
32345 Declare here.
32346 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
32347 predicate.
32348 * config/i386/i386.md (*call_rex64_ms_sysv): Use
32349 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
32350 (*call_value_rex64_ms_sysv): Ditto.
32351
32352 2013-04-18 Cary Coutant <ccoutant@google.com>
32353
32354 * dwarf2out.c (output_pubnames): Check die_perennial_p of
32355 parent instead of die_mark.
32356
32357 2013-04-18 Diego Novillo <dnovillo@google.com>
32358
32359 * gimple.c (create_gimple_tmp): New.
32360 (get_expr_type): New.
32361 (build_assign): New.
32362 (build_type_cast): New.
32363 * gimple.h (enum ssa_mode): Define.
32364 (gimple_seq_set_location): New.
32365 * asan.c (build_check_stmt): Change some gimple_build_* calls
32366 to use build_assign and build_type_cast.
32367
32368 2013-04-18 Richard Biener <rguenther@suse.de>
32369
32370 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32371 handle negative step. Remove redundant checks.
32372 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
32373 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
32374 for negative step and grouped loads fail to vectorize.
32375
32376 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32377
32378 * emit-rtl.c (reset_insn_used_flags): New function.
32379 (reset_all_used_flags): Use it.
32380 (verify_insn_sharing): New function.
32381 (verify_rtl_sharing): Fix verification for SEQUENCEs.
32382
32383 2013-04-18 Jakub Jelinek <jakub@redhat.com>
32384
32385 PR tree-optimization/56984
32386 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
32387 and (x >> M) >= N don't register any assertion if N << M is the
32388 minimum value.
32389
32390 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
32391
32392 * lower-subreg.c (resolve_simple_move): If called self-recursive,
32393 do not delete_insn insns that have not yet been emitted, only
32394 unlink them with remove_insn.
32395 * df-scan.c (df_insn_delete): Revert r197492.
32396
32397 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
32398
32399 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
32400 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
32401
32402 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32403
32404 * config/arm/arm.md (movsicc_insn): Convert define_insn into
32405 define_insn_and_split.
32406 (and_scc,ior_scc,negscc): Likewise.
32407 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
32408
32409 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
32410
32411 * config/arm/arm.c (use_return_insn): Return 0 for targets that
32412 can benefit from using a sequence of LDRD instructions in epilogue
32413 instead of a single LDM instruction.
32414
32415 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
32416
32417 PR 45688
32418 * doc/extend.texi: Fix typo.
32419
32420 2013-04-17 Richard Biener <rguenther@suse.de>
32421
32422 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
32423 (vect_build_slp_tree): ... here.
32424 (vect_build_slp_tree_1): Compute which stmts of the SLP group
32425 match. Remove special-casing of mismatched complex loads.
32426 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
32427 re-try the match with swapped commutative operands.
32428 (vect_supported_load_permutation_p): Remove special-casing of
32429 mismatched complex loads.
32430 (vect_analyze_slp_instance): Adjust.
32431
32432 2013-04-17 Richard Biener <rguenther@suse.de>
32433
32434 PR rtl-optimization/56921
32435 * cfgloop.h (struct loop): Add simple_loop_desc member.
32436 (struct niter_desc): Mark with GTY(()).
32437 (simple_loop_desc): Do not use aux field but simple_loop_desc.
32438 * loop-iv.c (get_simple_loop_desc): Likewise.
32439 (free_simple_loop_desc): Likewise.
32440
32441 Revert
32442 2013-04-16 Richard Biener <rguenther@suse.de>
32443
32444 PR rtl-optimization/56921
32445 * loop-init.c (pass_rtl_move_loop_invariants): Add
32446 TODO_do_not_ggc_collect to todo_flags_finish.
32447 (pass_rtl_unswitch): Same.
32448 (pass_rtl_unroll_and_peel_loops): Same.
32449 (pass_rtl_doloop): Same.
32450
32451 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
32452
32453 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
32454 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
32455 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
32456 references.
32457 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
32458 * tree-streamer.c (record_common_node): Adjust reference in comment.
32459
32460 2013-04-17 Terry Guo <terry.guo@arm.com>
32461
32462 * config/arm/cortex-m4.md: Add a new bypass.
32463
32464 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32465
32466 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
32467 New pattern.
32468 (*subs_<optab><mode>_multp2): New pattern.
32469 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32470 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
32471
32472 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32473
32474 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
32475 (*subs_mul_imm_<mode>): New pattern.
32476
32477 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
32478
32479 PR target/56948
32480 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
32481 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
32482 (vsx_movti_32bit): Change j->wa to O->wa.
32483
32484 2013-04-16 Richard Biener <rguenther@suse.de>
32485
32486 PR rtl-optimization/56921
32487 * loop-init.c (pass_rtl_move_loop_invariants): Add
32488 TODO_do_not_ggc_collect to todo_flags_finish.
32489 (pass_rtl_unswitch): Same.
32490 (pass_rtl_unroll_and_peel_loops): Same.
32491 (pass_rtl_doloop): Same.
32492
32493 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
32494
32495 * config/arm/arm.c (emit_multi_reg_push): New declaration
32496 for an existing function.
32497 (arm_emit_strd_push): New function.
32498 (arm_expand_prologue): Used here.
32499 (arm_emit_ldrd_pop): New function.
32500 (arm_expand_epilogue): Used here.
32501 (arm_get_frame_offsets): Update condition.
32502 (arm_emit_multi_reg_pop): Add a special case for load of a single
32503 register with writeback.
32504
32505 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
32506
32507 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
32508 description.
32509
32510 2013-04-16 Richard Biener <rguenther@suse.de>
32511
32512 PR tree-optimization/56756
32513 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
32514 (first_mem_ref_loc): New.
32515 (execute_sm): Place the load temporarily before a previous
32516 access instead of in the latch edge to ensure its SSA dependencies
32517 are defined at points dominating the load.
32518
32519 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
32520
32521 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
32522 correct fix by moving header and footer insn to the footer of
32523 the merged basic block. Clear BB_END of the merged-away block.
32524
32525 PR middle-end/43631
32526 * emit-rtl.c (make_note_raw): New function.
32527 (link_insn_into_chain): New static inline function.
32528 (add_insn): Use it.
32529 (add_insn_before, add_insn_after): Factor insn chain linking code...
32530 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
32531 using link_insn_into_chain.
32532 (note_outside_basic_block_p): New helper function for emit_note_after
32533 and emit_note_before.
32534 (emit_note_after): Use nobb variant of add_insn_after if the note
32535 should not be contained in a basic block.
32536 (emit_note_before): Use nobb variant of add_insn_before if the note
32537 should not be contained in a basic block.
32538 (emit_note_copy): Use make_note_raw.
32539 (emit_note): Likewise.
32540 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
32541 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
32542 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
32543 the moved barrier the tail of the basic block it follows.
32544 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
32545
32546 2013-04-15 Jakub Jelinek <jakub@redhat.com>
32547
32548 PR tree-optimization/56962
32549 * gimple-ssa-strength-reduction.c (record_increment): Only set
32550 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
32551 either rhs1 or rhs2 is equal to c->base_expr.
32552
32553 2013-04-15 Richard Biener <rguenther@suse.de>
32554
32555 PR tree-optimization/56933
32556 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
32557 member.
32558 (GROUP_READ_WRITE_DEPENDENCE): Remove.
32559 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
32560 * tree-vect-data-refs.c (vect_analyze_group_access): Move
32561 dependence check ...
32562 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
32563 ... here.
32564 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
32565 GROUP_READ_WRITE_DEPENDENCE.
32566
32567 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32568
32569 * emit-rtl.c (reset_all_used_flags): New function.
32570 (verify_rtl_sharing): Call reset_all_used_flags before and after
32571 performing the checks.
32572
32573 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32574
32575 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
32576 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
32577 * config/arm/constraints.md (De): New constraint.
32578 * config/arm/neon.md (anddi3_neon): Delete.
32579 (neon_vand<mode>): Expand to standard anddi3 pattern.
32580 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
32581 Move earlier in the file.
32582 (neon_inv_logic_op2): Likewise.
32583 (arm_anddi_operand_neon): New predicate.
32584
32585 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32586
32587 * configure.ac (gcc_cv_ld_as_needed): Set
32588 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
32589 Use -z ignore, -z record on *-*-solaris2*.
32590 (HAVE_LD_AS_NEEDED): Update comment.
32591 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
32592 * configure: Regenerate.
32593 * config.in: Regenerate.
32594 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
32595 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
32596 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
32597 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
32598 equivalents. Fix markup.
32599 * doc/tm.texi: Regenerate.
32600
32601 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
32602
32603 * config/i386/i386.opt: New option mstack-protector-guard=.
32604 * config/i386/i386-opts.h: Add enum stack_protector_guard.
32605 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
32606 TARGET_SSP_TLS_GUARD.
32607 * config/i386/i386.c (ix86_option_override_internal): Set
32608 ix86_stack_protector_guard.
32609 * config/i386/i386.md (stack_protect_set): Enable for
32610 TARGET_SSP_TLS_GUARD only.
32611 (stack_protect_set_<mode>): Ditto.
32612 (stack_protect_test): Ditto.
32613 (stack_protect_test_<mode>): Ditto.
32614 * doc/invoke.texi (i386 Option): Document.
32615
32616 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
32617
32618 PR target/56890
32619 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
32620 (S_MODES): Set H_MODE bit.
32621 (SF_MODES): Set only S_MODE and SF_MODE bits.
32622 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
32623 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
32624 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
32625 <MODE_FLOAT>: Likewise.
32626
32627 2013-04-15 Joey Ye <joey.ye@arm.com>
32628
32629 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
32630
32631 2013-04-15 Joey Ye <joey.ye@arm.com>
32632
32633 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
32634 for real far jump.
32635 (thumb_far_jump_used_p): Count instruction size and set
32636 far_jump_used.
32637
32638 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
32639
32640 * reorg.c (fill_simple_delay_slots): Reindent block of code.
32641 * resource.c (mark_target_live_regs): Reformat conditional block.
32642
32643 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32644
32645 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
32646 notes, they are emitted only just before final.
32647 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
32648
32649 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
32650
32651 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
32652 * cfgrtl.c (delete_insn): Call it here instead.
32653 * lra-spills.c (lra_final_code_change): Use delete_insn.
32654 * haifa-sched.c (sched_remove_insn): Likewise.
32655 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
32656 returning to the nop pool.
32657 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
32658 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
32659
32660 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32661
32662 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
32663 * doc/tm.texi: Regenerated.
32664
32665 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
32666
32667 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
32668 QImode checks.
32669
32670 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
32671
32672 * df-core.c (df_find_def): Compare register numbers.
32673 (df_find_use): Likewise.
32674
32675 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
32676
32677 PR target/56903
32678 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
32679 lra_in_progress for return.
32680
32681 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32682
32683 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
32684 define_insn into define_insn_and_split and emit movsicc patterns.
32685
32686 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
32687
32688 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
32689
32690 2013-04-12 Richard Biener <rguenther@suse.de>
32691
32692 * tree-pass.h (TODO_do_not_ggc_collect): New.
32693 * passes.c (execute_one_ipa_transform_pass): Honor
32694 TODO_do_not_ggc_collect.
32695 (execute_one_pass): Likewise.
32696
32697 Revert
32698 2013-04-10 Richard Biener <rguenther@suse.de>
32699
32700 * passes.c (init_optimization_passes): Remove reload pass.
32701 * ira.c (do_reload): Merge into ...
32702 (ira): ... this.
32703 (rest_of_handle_reload): Remove.
32704 (pass_reload): Likewise.
32705 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32706 of reload for vzeroupper pass placement.
32707
32708 2013-04-12 Jakub Jelinek <jakub@redhat.com>
32709
32710 PR tree-optimization/56918
32711 PR tree-optimization/56920
32712 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
32713 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
32714 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
32715 use wide_mul_with_sign method.
32716
32717 2013-04-12 Richard Biener <rguenther@suse.de>
32718
32719 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
32720 not be considered a gimple constant.
32721
32722 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
32723
32724 * fold-const.c (const_binop): Handle vector shifts by a scalar.
32725 (fold_binary_loc): Call const_binop also for mixed vector-scalar
32726 operations.
32727
32728 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
32729 Jakub Jelinek <jakub@redhat.com>
32730
32731 * opts.c: Include diagnostic-color.h.
32732 (common_handle_option): Handle OPT_fdiagnostics_color_.
32733 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
32734 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
32735 (diagnostic-color.o): New.
32736 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
32737 (diagnostic_color_rule): New enum.
32738 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
32739 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
32740 the location string.
32741 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
32742 either NULL, or color kind.
32743 * diagnostic-color.c: New file.
32744 * diagnostic-color.h: New file.
32745 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
32746 arguments.
32747 * doc/invoke.texi (-fdiagnostics-color): Document.
32748 * pretty-print.h (pp_show_color): Define.
32749 (struct pretty_print_info): Add show_color field.
32750 * diagnostic.c: Include diagnostic-color.h.
32751 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
32752 macros. Colorize error:, warning: etc. strings and also the location
32753 string.
32754 (diagnostic_show_locus): Colorize the caret line.
32755 * pretty-print.c: Include diagnostic-color.h.
32756 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
32757 inside of %< %> quotes or quoted through q format modifier.
32758
32759 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32760
32761 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
32762
32763 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32764
32765 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
32766 code in CC_NZ mode.
32767 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
32768 pattern.
32769
32770 2013-04-11 Marek Polacek <polacek@redhat.com>
32771
32772 PR tree-optimization/48184
32773 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
32774
32775 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
32776
32777 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
32778 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
32779 (skip_simple_arithmetic): Tidy up.
32780 * tree.h (skip_simple_constant_arithmetic): Declare.
32781
32782 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32783
32784 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
32785
32786 2013-04-11 Richard Biener <rguenther@suse.de>
32787
32788 * tree-vect-loop.c (get_initial_def_for_induction): Properly
32789 generate vector constants.
32790
32791 2013-04-11 Richard Biener <rguenther@suse.de>
32792
32793 PR tree-optimization/56878
32794 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
32795 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
32796 New function.
32797 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32798 Prefer to align the DR with the most invariant base address.
32799
32800 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32801
32802 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
32803 comment.
32804
32805 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
32806
32807 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
32808 floating-point vector comparisons against 0.
32809
32810 2013-04-11 Jakub Jelinek <jakub@redhat.com>
32811
32812 PR tree-optimization/56899
32813 * fold-const.c (extract_muldiv_1): Apply distributive law
32814 only if TYPE_OVERFLOW_WRAPS (ctype).
32815
32816 2013-04-11 Bin Cheng <bin.cheng@arm.com>
32817
32818 PR target/56124
32819 * ira-costs.c (scan_one_insn): Check whether the source rtx of
32820 loading has side effect.
32821
32822 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
32823
32824 * config/sparc/sparc.c: Include tree-pass.h.
32825 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
32826 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
32827 head of file. Change return type. Split off gate function.
32828 (sparc_gate_work_around_errata): New function.
32829 (pass_work_around_errata): New pass definition.
32830 (insert_pass_work_around_errata) New pass insert definition to
32831 insert pass_work_around_errata just after delayed-branch scheduling.
32832 (sparc_option_override): Insert the pass.
32833 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
32834
32835 2013-04-10 David S. Miller <davem@davemloft.net>
32836
32837 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
32838 or -mcpu=hypersparc.
32839
32840 * target.def (cstore_mode): New hook.
32841 * target.h: Include insn-codes.h
32842 * targhooks.c: Likewise.
32843 (default_cstore_mode): New function.
32844 * targhooks.h: Declare it.
32845 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
32846 * doc/tm.texi: Rebuild.
32847 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
32848 target hook, rather than inspecting the insn_data.
32849 * config/sparc/sparc.c (sparc_cstore_mode): New function.
32850 (TARGET_CSTORE_MODE): Redefine.
32851 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
32852 result patterns.
32853 * config/sparc/predicates.md (cstore_result_operand): New special
32854 predicate.
32855 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
32856 Use it for operand 0.
32857 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
32858 (*snesi_special): Likewise.
32859 (*snesi_zero): Likewise.
32860 (*seqsi_zero): Likewise.
32861 (*sltu_insn): Likewise.
32862 (*sgeu_insn): Likewise.
32863 (*seqdi_special): Make operand 0 and comparison operation be of
32864 DImode.
32865 (*snedi_special): Likewise.
32866 (*snedi_special_vis3): Likewise.
32867 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
32868 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
32869 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
32870 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
32871 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
32872 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
32873 (*sltu_extend_sp64): Likewise.
32874 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
32875 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
32876 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
32877 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
32878 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
32879
32880 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
32881
32882 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
32883 (aarch64_start_file): Use the new function.
32884
32885 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32886 Jason Merrill <jason@redhat.com>
32887
32888 * common.opt: Add -gdwarf.
32889 * opts.c (common_handle_option): Handle it.
32890 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
32891
32892 2013-04-10 Richard Biener <rguenther@suse.de>
32893
32894 * passes.c (execute_todo): Do not call ggc_collect conditional here.
32895 (execute_one_ipa_transform_pass): But unconditionally here.
32896 (execute_one_pass): And here.
32897 (init_optimization_passes): Remove reload pass.
32898 * tree-pass.h (TODO_ggc_collect): Remove.
32899 (pass_reload): Likewise.
32900 * ira.c (do_reload): Merge into ...
32901 (ira): ... this.
32902 (rest_of_handle_reload): Remove.
32903 (pass_reload): Likewise.
32904 * config/i386/i386.c (ix86_option_override): Refer to ira instead
32905 of reload for vzeroupper pass placement.
32906 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
32907 and todo_flags_finish of all passes.
32908
32909 2013-04-10 Richard Biener <rguenther@suse.de>
32910
32911 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
32912 first_const_oprnd field, rename first_def_type to first_op_type.
32913 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
32914 (vect_get_and_check_slp_defs): Always use the type of the
32915 operand. Allow mixed vect_external_def, vect_constant_def types.
32916 (vect_get_constant_vectors): Handle mixed vect_external_def,
32917 vect_constant_def types.
32918
32919 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
32920
32921 PR tree-optimization/55524
32922 * tree-ssa-math-opts.c
32923 (convert_mult_to_fma): Don't use an fms construct
32924 when we don't have an fms operation, but fnma, and it looks
32925 likely that we'll be able to use the latter.
32926
32927 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32928
32929 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
32930 function.
32931 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
32932 inline fail caused by overwritable functions.
32933
32934 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
32935
32936 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
32937 unnecessary bits in the constant power of two case.
32938
32939 2013-04-10 Richard Biener <rguenther@suse.de>
32940
32941 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
32942 broken code swapping operands.
32943 (vect_build_slp_tree): Do not compute load permutations here.
32944 (vect_analyze_slp_instance): Compute load permutations here,
32945 after building the SLP tree.
32946
32947 2013-04-09 Christian Bruel <christian.bruel@st.com>
32948
32949 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
32950 of next/prev_real_insn.
32951
32952 2013-04-09 Jan Hubicka <jh@suse.cz>
32953
32954 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
32955 Drop aliased parameter.
32956 (function_and_variable_visibility): Do not handle alias pairs.
32957 * cgraph.c (varpool_externally_visible_p): Update prototype.
32958 * varpool.c (varpool_add_new_variable): Update.
32959
32960 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32961
32962 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
32963
32964 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
32965
32966 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
32967
32968 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
32969
32970 2013-04-09 Marek Polacek <polacek@redhat.com>
32971
32972 PR tree-optimization/48762
32973 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
32974
32975 2013-04-09 Richard Biener <rguenther@suse.de>
32976
32977 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
32978 dealing with cost.
32979 (vect_build_slp_tree): Likewise.
32980 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
32981 calculating the cost of a SLP instance.
32982 (vect_analyze_slp_instance): Use it from here, after building
32983 the SLP tree.
32984
32985 2013-04-09 Jakub Jelinek <jakub@redhat.com>
32986
32987 PR middle-end/56883
32988 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32989 expand_omp_for_static_chunk): Use simple_p = true in
32990 force_gimple_operand_gsi calls when assigning to addressable decls.
32991
32992 2013-04-09 Jeff Law <law@redhat.com>
32993
32994 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
32995 when the boolean was created by converting a wider object which
32996 had a boolean range.
32997
32998 2013-04-09 Richard Biener <rguenther@suse.de>
32999
33000 * tree-vectorizer.h (slp_void_p): Remove.
33001 (slp_tree): Typedef before _slp_tree declaration.
33002 (struct _slp_tree): Use a vector of slp_tree as children.
33003 (vect_get_place_in_interleaving_chain): Remove.
33004 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
33005 Move ...
33006 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
33007 and make static.
33008 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
33009 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
33010 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
33011 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
33012 Use slp_node instead of slp_void_p and adjust.
33013
33014 2013-04-09 Richard Biener <rguenther@suse.de>
33015
33016 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
33017 work that is not necessary.
33018
33019 2013-04-09 Jakub Jelinek <jakub@redhat.com>
33020
33021 PR tree-optimization/56854
33022 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
33023 forward into clobber stmts if it would change MEM_REF lhs into
33024 non-MEM_REF.
33025
33026 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
33027
33028 * tree.c (type_hash_lookup, type_hash_add): Make static.
33029 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
33030
33031 2013-04-09 Richard Biener <rguenther@suse.de>
33032
33033 * tree.h (unsave_expr_now): Remove.
33034 * tree-inline.c (mark_local_for_remap_r): Remove.
33035 (unsave_expr_1): Likewise.
33036 (unsave_r): Likewise.
33037 (unsave_expr_now): Likewise.
33038 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
33039 (propagate_tree_value): Likewise.
33040
33041 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
33042
33043 * doc/rtl.texi (sequence): Rewrite documentation to match the
33044 current use of SEQUENCE rtl objects.
33045 * rtl.def (SEQUENCE): Likewise.
33046
33047 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
33048 Update documentation.
33049 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
33050 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
33051
33052 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
33053
33054 2013-04-08 Teresa Johnson <tejohnson@google.com>
33055
33056 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
33057 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33058 methods.
33059 (estimate_edge_size_and_time): Add comment to suggest using rounding
33060 methods.
33061 (estimate_node_size_and_time): Ditto.
33062 (remap_edge_change_prob): Use helper rounding divide methods.
33063 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
33064 (gimple_mod_pow2_value_transform): Ditto.
33065 (gimple_mod_subtract_transform): Ditto.
33066 (gimple_ic_transform): Ditto.
33067 (gimple_stringops_transform): Ditto.
33068 * stmt.c (conditional_probability): Ditto.
33069 (emit_case_dispatch_table): Ditto.
33070 * lto-cgraph.c (merge_profile_summaries): Ditto.
33071 * tree-optimize.c (execute_fixup_cfg): Ditto.
33072 * cfgcleanup.c (try_forward_edges): Ditto.
33073 * cfgloopmanip.c (scale_loop_profile): Ditto.
33074 (loopify): Ditto.
33075 (duplicate_loop_to_header_edge): Ditto.
33076 (lv_adjust_loop_entry_edge): Ditto.
33077 * tree-vect-loop.c (vect_transform_loop): Ditto.
33078 * profile.c (compute_branch_probabilities): Ditto.
33079 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
33080 * lto-streamer-in.c (input_cfg): Ditto.
33081 * gimple-streamer-in.c (input_bb): Ditto.
33082 * ipa-cp.c (update_profiling_info): Ditto.
33083 (update_specialized_profile): Ditto.
33084 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
33085 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33086 rounding methods.
33087 * sched-rgn.c (compute_dom_prob_ps): Ditto.
33088 (compute_trg_info): Ditto.
33089 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
33090 (purge_dead_edges): Ditto.
33091 * loop-unswitch.c (unswitch_loop): Ditto.
33092 * cgraphclones.c (cgraph_clone_edge): Ditto.
33093 (cgraph_clone_node): Ditto.
33094 * tree-inline.c (copy_bb): Ditto.
33095 (copy_edges_for_bb): Ditto.
33096 (initialize_cfun): Ditto.
33097 (copy_cfg_body): Ditto.
33098 (expand_call_inline): Ditto.
33099
33100 2013-04-08 Kai Tietz <ktietz@redhat.com>
33101
33102 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
33103 TARGET_CYGWIN64 by TARGET_64BIT.
33104
33105 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33106
33107 * config/epiphany/epiphany.md (GPR_1): New constant.
33108 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
33109 * config/epiphany/epiphany.c (gen_compare_reg):
33110 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
33111 is already in place.
33112 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
33113 Don't require being called during rtl expansion; If y operlaps r0,
33114 return 0.
33115 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
33116 (epiphany_expand_epilogue): Likewise.
33117
33118 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
33119 Don't use CC_FPmode for ORDERED / UNORDERED.
33120 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
33121
33122 * config/epiphany/constraints.md (CnL): New constraint.
33123 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
33124 * config/epiphany/predicates.md (add_operand): Allow 1024.
33125
33126 * config/epiphany/epiphany.md (logical_op): New code iterator.
33127 (op_mnc): New code attribute.
33128 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
33129 (mov_f+1, mov_f+2): New peephole2 patterns.
33130
33131 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
33132 (cstoresi4): Also allow re-use of zero result when doing a NE
33133 comparison to a non-zero operand.
33134 Use (clobber (scratch)) for first insn if the gpr output is not needed.
33135
33136 * config/epiphany/epiphany.md (<insn_opname>v2si3):
33137 Use gen_addsi3_i / gen_subsi3_i.
33138
33139 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33140
33141 PR c++/34949
33142 PR c++/50243
33143 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
33144 contain anything but clobbers, at most one __builtin_stack_restore,
33145 optionally debug stmts and final resx, and if it has at least one
33146 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
33147 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
33148 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
33149 which isn't defaut definition, remove them.
33150 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
33151 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
33152 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
33153 with MEM_REF LHS with SSA_NAME address.
33154
33155 2013-04-08 Jeff Law <law@redhat.com>
33156
33157 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
33158
33159 2013-04-08 Richard Biener <rguenther@suse.de>
33160
33161 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
33162 extra newline.
33163 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
33164 determined vector type.
33165 (vect_analyze_data_refs): Likewise.
33166 (vect_get_new_vect_var): Adjust.
33167 (vect_create_destination_var): Preserve SSA name versions.
33168 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
33169 not dump anything here.
33170
33171 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
33172
33173 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
33174 Add member lr_slot_known.
33175 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
33176 if necessary.
33177 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
33178 Remove code that sets lr_slot_offset according to what a previous
33179 version of epiphany_emit_save_restore used to do.
33180 (epiphany_emit_save_restore): When doing an lr save or restore,
33181 set/verify lr_slot_known and lr_slot_offset.
33182
33183 2013-04-08 Xinyu Qi <xyqi@marvell.com>
33184
33185 PR target/54338
33186 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
33187 in ALL_REGS.
33188
33189 2013-04-08 Richard Biener <rguenther@suse.de>
33190
33191 * alias.c (find_base_term): Fix thinko in previous change.
33192
33193 2013-04-08 Jakub Jelinek <jakub@redhat.com>
33194
33195 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
33196 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
33197 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
33198 if possible to compute val.
33199 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
33200 For QImode integers don't require anything about precision. Use
33201 const_with_all_bytes_same to find out if the constant doesn't have
33202 repeated bytes in it.
33203
33204 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33205
33206 * config/s390/s390.c (s390_expand_insv): Only accept insertions
33207 within mode size.
33208
33209 2013-04-08 Marek Polacek <polacek@redhat.com>
33210
33211 PR rtl-optimization/48182
33212 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
33213 value to 1.
33214
33215 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33216
33217 PR target/55487
33218 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
33219 nuses, make sure we have a label.
33220
33221 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33222
33223 PR target/56843
33224 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
33225 (rs6000_emit_swdiv_low_precision): Remove.
33226 (rs6000_emit_swdiv): Rewrite to handle between one and four
33227 iterations of Newton-Raphson generally; modify required number of
33228 iterations for some cases.
33229 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
33230
33231 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
33232
33233 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
33234 set-but-unused variable.
33235
33236 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
33237 basic blocks of released function bodies garbage-collectable.
33238
33239 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
33240 (struct rtl_opt_pass): Add TODO_df_finish.
33241
33242 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
33243
33244 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33245
33246 * config/arm/constraints.md (q): New constraint.
33247 * config/arm/ldrdstrd.md: New file.
33248 * config/arm/arm.md (ldrdstrd.md) New include.
33249 (arm_movdi): Use "q" instead of "r" constraint
33250 for double-word memory access.
33251 (movdf_soft_insn): Likewise.
33252 * config/arm/vfp.md (movdi_vfp): Likewise.
33253 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33254 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
33255 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
33256 (mem_ok_for_ldrd_strd): Likewise.
33257 (output_move_double): Update assertion.
33258
33259 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33260
33261 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
33262
33263 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33264
33265 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
33266 define_insn_and_split.
33267 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
33268
33269 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33270
33271 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
33272 define_insn_and_split.
33273 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
33274 (shiftsi3_compare): New pattern.
33275 (rrx): New pattern.
33276 * config/arm/unspecs.md (UNSPEC_RRX): New.
33277
33278 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33279
33280 * config/arm/arm.md (negdi_extendsidi): New pattern.
33281 (negdi_zero_extendsidi): Likewise.
33282
33283 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33284
33285 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
33286 define_insn_and_split.
33287 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
33288 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
33289
33290 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33291
33292 * config/arm/arm.md (arm_subdi3): Convert define_insn into
33293 define_insn_and_split.
33294 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
33295 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
33296
33297 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33298
33299 * config/arm/arm.md (subsi3_carryin): New pattern.
33300 (subsi3_carryin_const): Likewise.
33301 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
33302 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
33303
33304 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33305
33306 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
33307
33308 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
33309
33310 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
33311 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
33312
33313 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33314
33315 * config/arm/arm.c (arm_expand_builtin): Change fcode
33316 type to unsigned int.
33317
33318 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33319
33320 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
33321
33322 2013-04-04 Ian Lance Taylor <iant@google.com>
33323
33324 * doc/standards.texi (Standards): The Go frontend supports the Go 1
33325 language standard.
33326
33327 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
33328
33329 PR middle-end/56729
33330 * df-scan.c (df_insn_delete): Disable failing assert.
33331
33332 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33333
33334 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
33335 New function prototype.
33336 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
33337 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
33338 (arm_builtin_vectorized_function): New function.
33339
33340 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33341
33342 * config/arm/arm_neon_builtins.def: New file.
33343 * config/arm/arm.c (neon_builtin_data): Move contents to
33344 arm_neon_builtins.def.
33345 (enum arm_builtins): Include neon builtin definitions.
33346 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33347 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
33348
33349 2013-04-04 Marek Polacek <polacek@redhat.com>
33350
33351 PR tree-optimization/48186
33352 * predict.c (maybe_hot_frequency_p): Return false if
33353 HOT_BB_FREQUENCY_FRACTION is 0.
33354 (cgraph_maybe_hot_edge_p): Likewise.
33355
33356 2013-04-04 Richard Biener <rguenther@suse.de>
33357
33358 PR tree-optimization/56826
33359 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
33360 more accurately.
33361
33362 2013-04-04 Richard Biener <rguenther@suse.de>
33363
33364 PR tree-optimization/56213
33365 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33366 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
33367
33368 2013-04-04 Richard Biener <rguenther@suse.de>
33369
33370 PR tree-optimization/56837
33371 * tree-loop-distribution.c (classify_partition): For non-zero
33372 values require that the value has the same precision as its
33373 mode to be useful as memset value.
33374
33375 2013-04-03 Nick Clifton <nickc@redhat.com>
33376
33377 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
33378 (fmssf4): Use fmsf.s on E3V5 architectures.
33379 (fnmasf4): Use fnmaf.s on E3V5 architectures.
33380 (fnmssf4): Use fnmsf.s on E3V5 architectures.
33381
33382 2013-04-03 Jeff Law <law@redhat.com>
33383
33384 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
33385 (lra-eliminations.o): Likewise.
33386
33387 2013-04-03 Teresa Johnson <tejohnson@google.com>
33388
33389 * gcov-io.c (compute_working_sets): Moved most of body of old
33390 compute_working_sets here from profile.c.
33391 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33392 (gcov_working_set_t): Moved typedef here from basic-block.h
33393 (compute_working_set): Declare.
33394 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
33395 (get_working_sets): Renamed from compute_working_set,
33396 replace most of body with call to new compute_working_sets.
33397 (get_exec_counts): Replace call to compute_working_sets
33398 to get_working_sets.
33399 * profile.h (get_working_sets): Renamed from compute_working_set.
33400 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33401 to get_working_sets.
33402 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
33403 * gcov-dump.c (dump_working_sets): New function.
33404
33405 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
33406
33407 * hwint.c (sext_hwi, zext_hwi): New functions.
33408 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
33409 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
33410 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
33411 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
33412 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
33413 (sext_hwi, zext_hwi): New functions.
33414
33415 2013-04-03 Jeff Law <law@redhat.com>
33416
33417 PR tree-optimization/56799
33418 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
33419 back test for widening conversion erroneously dropped in prior change.
33420
33421 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33422
33423 PR target/56809
33424 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
33425 instead of next_real_insn.
33426
33427 2013-04-03 Marek Polacek <polacek@redhat.com>
33428
33429 PR sanitizer/55702
33430 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
33431
33432 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33433
33434 PR target/56809
33435 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
33436 next_real_insn.
33437 (thumb1_output_casesi): Likewise.
33438 (thumb2_output_casesi): Likewise.
33439
33440 2013-04-03 Richard Biener <rguenther@suse.de>
33441
33442 PR tree-optimization/56817
33443 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
33444 Split out ...
33445 (tree_unroll_loops_completely_1): ... new function to manually
33446 walk the loop tree, properly defering outer loops of unrolled
33447 loops to later iterations.
33448
33449 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33450
33451 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
33452 (vectorizable_load): Likewise.
33453 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
33454 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
33455
33456 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33457
33458 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
33459 BIT_FIELD_REF.
33460
33461 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33462
33463 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
33464
33465 2013-04-03 Bin Cheng <bin.cheng@arm.com>
33466
33467 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
33468
33469 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33470
33471 PR tree-optimization/56790
33472 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
33473 folding.
33474
33475 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
33476
33477 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
33478 Handle VEC_MERGE.
33479 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
33480 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
33481 equal arguments.
33482
33483 2013-04-03 Jakub Jelinek <jakub@redhat.com>
33484
33485 PR c/19449
33486 * tree.h (force_folding_builtin_constant_p): New decl.
33487 * builtins.c (force_folding_builtin_constant_p): New variable.
33488 (fold_builtin_constant_p): Fold immediately also if
33489 force_folding_builtin_constant_p.
33490
33491 2013-04-03 Richard Biener <rguenther@suse.de>
33492
33493 PR tree-optimization/56812
33494 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
33495 DRs of the same interleaving chain are independent.
33496
33497 2013-04-02 Jason Merrill <jason@redhat.com>
33498
33499 * gdbinit.in (pbb): Use debug fn.
33500
33501 2013-04-02 Lawrence Crowl <crowl@google.com>
33502
33503 * sese.h (struct ivtype_map_elt_s): Remove unused.
33504 (extern debug_ivtype_map): Remove unused.
33505 (extern eq_ivtype_map_elts): Remove unused.
33506 * sese.c (debug_ivtype_map): Removed unused.
33507 (debug_ivtype_map_1): Removed unused.
33508 (debug_ivtype_elt): Remove unused.
33509 (eq_ivtype_map_elts): Remove unused.
33510
33511 2013-04-02 Kai Tietz <ktietz@redhat.com>
33512
33513 PR target/52790
33514 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
33515 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33516 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
33517 function.
33518 (legitimize_pe_coff_symbol): Likewise.
33519 (is_imported_p): New helper-function.
33520 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
33521 for Windows x64 targets.
33522 (ix86_expand_prologue): Optimize for pe-coff targets.
33523 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
33524 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
33525 medium/large code-model.
33526 (legitimize_pic_address): Likewise.
33527 (legitimize_tls_address): Likewise.
33528 (ix86_expand_call): Likewise.
33529 (x86_output_mi_thunk): Likewise.
33530 (get_dllimport_decl): Add new beimport argument.
33531 (construct_plt_address): Don't assert for x64 pe-coff targets.
33532 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
33533 targets.
33534 (SYMBOL_FLAG_STUBVAR): New macro.
33535 (SYMBOL_REF_STUBVAR_P): Likewise.
33536 * config/i386/winnt.c (stub_list): New structure.
33537 (stub_head): New local variable.
33538 (i386_pe_record_stub): New function.
33539 (i386_pe_file_end): Emit refptr-stubs.
33540
33541 2013-04-02 Jakub Jelinek <jakub@redhat.com>
33542
33543 PR rtl-optimization/56745
33544 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
33545 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
33546
33547 PR c++/34949
33548 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
33549 and both of them are MEM_REFs, just compare first argument for
33550 equality and attempt to deal even with differing offsets.
33551
33552 PR c++/34949
33553 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
33554 of gimple_clobber_p to be MEM_REF.
33555 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
33556 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
33557 after gimplification.
33558 * asan.c (get_mem_ref_of_assignment): Don't instrument
33559 gimple_clobber_p stmts.
33560 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
33561 gimple_clobber_p stmt if they have MEM_REF lhs and
33562 are dead because of another gimple_clobber_p stmt.
33563 * tree-ssa-live.c (clear_unused_block_pointer): Treat
33564 gimple_clobber_p stmts like debug stmts.
33565 (remove_unused_locals): Remove clobbers with MEM_REF lhs
33566 that refer to unused VAR_DECLs or uninitialized values.
33567 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
33568 gimple_clobber_p stmts if they refer to removed parameters.
33569 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
33570 formatting.
33571
33572 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
33573
33574 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
33575 using SWI48 mode attribute.
33576
33577 2013-04-02 Wei Mi <wmi@google.com>
33578
33579 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
33580 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
33581 *<rotate_insn><mode>3_mask in i386.md.
33582
33583 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
33584
33585 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
33586
33587 2013-04-02 Richard Biener <rguenther@suse.de>
33588
33589 PR tree-optimization/56778
33590 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33591 Runtime alias tests are not supported for gather loads.
33592 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
33593 stmts referenced from SSA operands before updating SSA form.
33594
33595 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
33596 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33597
33598 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
33599 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
33600 * config/arm/cortex-a53.md: New file.
33601 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
33602 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
33603 * config/arm/arm.c (arm_issue_rate): Likewise.
33604 * config/arm/arm-tune.md: Regenerate
33605 * config/arm/arm-tables.opt: Regenerate.
33606 * config/arm/arm-cores.def: Add cortex-a53.
33607
33608 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
33609
33610 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
33611 non-static link.
33612
33613 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33614
33615 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
33616 scalar load/store operations using B/H registers.
33617 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
33618
33619 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
33620
33621 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
33622 scalar move.
33623 * config/aarch64/aarch64.c
33624 (aarch64_simd_scalar_immediate_valid_for_move): New.
33625 * config/aarch64/aarch64-protos.h
33626 (aarch64_simd_scalar_immediate_valid_for_move): New.
33627 * config/aarch64/constraints.md (Dh, Dq): New.
33628 * config/aarch64/iterators.md (hq): New.
33629
33630 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
33631
33632 * reorg.c (get_branch_condition): Deal with conditional returns.
33633 (fill_simple_delay_slots): Remove dead code dealing with jumps.
33634
33635 2013-04-01 Wei Mi <wmi@google.com>
33636
33637 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
33638 Truncate operand 2 using %b asm operand modifier.
33639 (*<shift_insn><mode>3_mask): Ditto.
33640 (*<rotate_insn><mode>3_mask): Ditto.
33641
33642 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
33643
33644 PR middle-end/56798
33645 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
33646
33647 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
33648
33649 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
33650 of next_real_insn.
33651 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
33652
33653 2013-03-30 Lawrence Crowl <crowl@google.com>
33654
33655 * dse.c (clear_alias_sets): Remove never set.
33656 (disqualified_clear_alias_sets): Remove never set.
33657 (clear_alias_mode_pool): Remove never set.
33658 (dse_step0): Remove condition that is never true.
33659 (canon_address): Remove condition that is never true.
33660 (dse_step7): Remove condition that is never true.
33661 (rest_of_handle_dse): Remove condition that is never true.
33662 (rest_of_handle_dse::did_global): Remove never read from above.
33663 (dse_step2_spill): Remove never called from above.
33664 (dse_step5_spill): Remove never called from above.
33665
33666 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
33667
33668 * doc/md.texi (Standard Names) <casesi>: Update documentation for
33669 JUMP_TABLE_DATA changes.
33670 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
33671 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
33672 (Insns) <jump_table_data>: New entry.
33673 * doc/tm.texi: Regenerate.
33674
33675 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
33676
33677 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
33678 for table jump at the end of a basic block using tablejump_p.
33679 * targhooks.c (default_invalid_within_doloop): Likewise.
33680 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
33681 target hook implementation that is identical to the default hook.
33682 (rs6000_invalid_within_doloop): Remove.
33683
33684 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
33685 unused variable from tablejump_p call.
33686
33687 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
33688 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
33689 (INSN_DELETED_P): Likewise.
33690 (emit_jump_table_data): New prototype.
33691 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
33692 after 4th as unused.
33693 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
33694 * sched-vis.c (print_insn): Likewise.
33695 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
33696 insn for compatibility with back ends that use next_active_insn to
33697 identify jump table data.
33698 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
33699 (remove_insn): Likewise.
33700 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
33701 to be emitted.
33702 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
33703 (emit_jump_table_data): New function.
33704
33705 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
33706 basic block, a JUMP_TABLE_DATA never is.
33707 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
33708 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
33709 off from code handling real insns.
33710 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
33711 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
33712 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
33713 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
33714 is not a NONDEBUG_INSN_P.
33715 * ira-costs.c (scan_one_insn): Likewise.
33716 * jump.c (mark_all_labels): Likewise.
33717 (mark_jump_label_1): Likewise.
33718 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33719 * lra.c (get_insn_freq): Expect all insns reaching here to be in
33720 a basic block.
33721 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
33722 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
33723 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
33724 JUMP_TABLE_DATA_P insns.
33725 (calculate_elim_costs_all_insns): Likewise.
33726 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
33727 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
33728 (delete_output_reload): Code style fixups.
33729 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
33730 insn flags on this non-insn.
33731 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
33732 as scheduling barriers, for pre-change compatibility.
33733 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
33734 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
33735
33736 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
33737 redundant JUMP_TABLE_DATA_P test.
33738 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
33739 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33740 (frv_for_each_packet): Likewise.
33741 * config/i386/i386.c (min_insn_size): Likewise.
33742 (ix86_avoid_jump_mispredicts): Likewise.
33743 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33744 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
33745 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33746 (mips16_insn_length): Robustify.
33747 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
33748 (mips16_split_long_branches): Likewise.
33749 * config/pa/pa.c (pa_combine_instructions): Likewise.
33750 * config/rs6000/rs6000.c (get_next_active_insn): Treat
33751 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
33752 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
33753 as contributing to pool range lengths.
33754 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
33755 Remove redundant JUMP_TABLE_DATA_P test.
33756 (sh_loop_align): Likewise.
33757 (split_branches): Likewise.
33758 (sh_insn_length_adjustment): Likewise.
33759 * config/spu/spu.c (get_branch_target): Likewise.
33760
33761 2013-03-29 Jan Hubicka <jh@suse.cz>
33762
33763 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
33764 gcov streaming; stream hot bb threshold to ltrans.
33765 * predict.c (get_hot_bb_threshold): Break out from ....
33766 (maybe_hot_count_p): ... here.
33767 (set_hot_bb_threshold): New function.
33768 * lto-section-in.c (lto_section_name): Add profile.
33769 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
33770 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
33771 and data-streamer.h
33772 (histogram_entry): New structure.
33773 (histogram, histogram_pool): New global vars.
33774 (histogram_hash): New structure.
33775 (histogram_hash::hash): New method.
33776 (histogram_hash::equal): Likewise.
33777 (account_time_size): New function.
33778 (cmp_counts): New function.
33779 (dump_histogram): New function.
33780 (ipa_profile_generate_summary): New function.
33781 (ipa_profile_write_summary): New function.
33782 (ipa_profile_read_summary): New function.
33783 (ipa_profile): Decide on threshold.
33784 (pass_ipa_profile): Add ipa_profile_write_summary and
33785 ipa_profile_read_summary.
33786 * Makefile.in (ipa.o): Update dependencies.
33787 * lto-streamer.h (LTO_section_ipa_profile): New section.
33788
33789 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
33790
33791 * tree.h (VAR_P): New.
33792
33793 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33794
33795 PR lto/56777
33796 * doc/invoke.texi ([-fwhole-program]): Fix typo.
33797
33798 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
33799
33800 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
33801 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33802 (control_flow_insn_p): Likewise.
33803 * cfgrtl.c (duplicate_insn_chain): Likewise.
33804 * final.c (get_attr_length_1): Likewise.
33805 (shorten_branches): Likewise.
33806 (final_scan_insn): Likewise.
33807 * function.c (instantiate_virtual_regs): Likewise.
33808 * gcse.c (insert_insn_end_basic_block): Likewise.
33809 * ira-costs.c (scan_one_insn): Likewise.
33810 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
33811 * lra.c (check_rtl): Likewise.
33812 * reload1.c (elimination_costs_in_insn): Likewise.
33813 * reorg.c (follow_jumps): Likewise.
33814
33815 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
33816 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
33817 (thumb_far_jump_used_p): Likewise.
33818 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
33819 (workaround_speculation): Likewise.
33820 (add_sched_insns_for_speculation): Likewise.
33821 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
33822 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
33823 (frv_for_each_packet): Likewise.
33824 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
33825 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
33826 (final_emit_insn_group_barriers): Likewise.
33827 * config/m32r/m32r.c (m32r_is_insn): Likewise.
33828 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
33829 (mips16_insn_length): Likewise.
33830 * config/pa/pa.c (pa_reorg): Likewise.
33831 (pa_combine_instructions): Likewise.
33832 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
33833 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
33834 (sh_reorg): Likewise.
33835 (split_branches): Likewise.
33836 * config/spu/spu.c (get_branch_target): Likewise.
33837
33838 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
33839 JUMP_TABLE_DATA_P.
33840
33841 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
33842
33843 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
33844 Fix declaration name.
33845
33846 2013-03-28 Lawrence Crowl <crowl@google.com>
33847
33848 * graphds.h (struct graph.indicies): Remove unused.
33849 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
33850 (SCOP_ORIGINAL_PDDRS): Remove unused.
33851 * sese.h (extern insert_loop_close_phis): Removed unused.
33852 (extern insert_guard_phis): Removed unused.
33853 (extern ivtype_map_elt_info): Removed unused.
33854 (new_ivtype_map_elt): Removed unused.
33855 * sese.c (ivtype_map_elt_info): Removed unused.
33856
33857 2013-03-28 Lawrence Crowl <crowl@google.com>
33858
33859 * Makefile.in: Add several missing include dependences.
33860 (DUMPFILE_H): New.
33861 (test-dump.o): New. This object is not added to any executable,
33862 but is present for ad-hoc testing.
33863 * bitmap.c
33864 (debug (const bitmap_head_def &)): New.
33865 (debug (const bitmap_head_def *)): New.
33866 * bitmap.h
33867 (extern debug (const bitmap_head_def &)): New.
33868 (extern debug (const bitmap_head_def *)): New.
33869 * cfg.c
33870 (debug (edge_def &)): New.
33871 (debug (edge_def *)): New.
33872 * cfghooks.c
33873 (debug (basic_block_def &)): New.
33874 (debug (basic_block_def *)): New.
33875 * dumpfile.h
33876 (dump_node (const_tree, int, FILE *)): Correct source file.
33877 * dwarf2out.c
33878 (debug (die_struct &)): New.
33879 (debug (die_struct *)): New.
33880 * dwarf2out.h
33881 (extern debug (die_struct &)): New.
33882 (extern debug (die_struct *)): New.
33883 * gimple-pretty-print.c
33884 (debug (gimple_statement_d &)): New.
33885 (debug (gimple_statement_d *)): New.
33886 * gimple-pretty-print.h
33887 (extern debug (gimple_statement_d &)): New.
33888 (extern debug (gimple_statement_d *)): New.
33889 * ira-build.c
33890 (debug (ira_allocno_copy &)): New.
33891 (debug (ira_allocno_copy *)): New.
33892 (debug (ira_allocno &)): New.
33893 (debug (ira_allocno *)): New.
33894 * ira-int.h
33895 (extern debug (ira_allocno_copy &)): New.
33896 (extern debug (ira_allocno_copy *)): New.
33897 (extern debug (ira_allocno &)): New.
33898 (extern debug (ira_allocno *)): New.
33899 * ira-lives.c
33900 (debug (live_range &)): New.
33901 (debug (live_range *)): New.
33902 * lra-int.h
33903 (debug (lra_live_range &)): New.
33904 (debug (lra_live_range *)): New.
33905 * lra-lives.c
33906 (debug (lra_live_range &)): New.
33907 (debug (lra_live_range *)): New.
33908 * omega.c
33909 (debug (omega_pb_d &)): New.
33910 (debug (omega_pb_d *)): New.
33911 * omega.h
33912 (extern debug (omega_pb_d &)): New.
33913 (extern debug (omega_pb_d *)): New.
33914 * print-rtl.c
33915 (debug (const rtx_def &)): New.
33916 (debug (const rtx_def *)): New.
33917 * print-tree.c
33918 (debug_tree (tree): Move within file.
33919 (debug_raw (const tree_node &)): New.
33920 (debug_raw (const tree_node *)): New.
33921 (dump_tree_via_hooks (const tree_node *, int)): New.
33922 (debug (const tree_node &)): New.
33923 (debug (const tree_node *)): New.
33924 (debug_verbose (const tree_node &)): New.
33925 (debug_verbose (const tree_node *)): New.
33926 (debug_head (const tree_node &)): New.
33927 (debug_head (const tree_node *)): New.
33928 (debug_body (const tree_node &)): New.
33929 (debug_body (const tree_node *)): New.
33930 (debug_vec_tree (tree): Move and reimplement in terms of dump.
33931 (debug (vec<tree, va_gc> &)): New.
33932 (debug (vec<tree, va_gc> *)): New.
33933 * rtl.h
33934 (extern debug (const rtx_def &)): New.
33935 (extern debug (const rtx_def *)): New.
33936 * sbitmap.c
33937 (debug_raw (simple_bitmap_def &)): New.
33938 (debug_raw (simple_bitmap_def *)): New.
33939 (debug (simple_bitmap_def &)): New.
33940 (debug (simple_bitmap_def *)): New.
33941 * sbitmap.h
33942 (extern debug (simple_bitmap_def &)): New.
33943 (extern debug (simple_bitmap_def *)): New.
33944 (extern debug_raw (simple_bitmap_def &)): New.
33945 (extern debug_raw (simple_bitmap_def *)): New.
33946 * sel-sched-dump.c
33947 (debug (vinsn_def &)): New.
33948 (debug (vinsn_def *)): New.
33949 (debug_verbose (vinsn_def &)): New.
33950 (debug_verbose (vinsn_def *)): New.
33951 (debug (expr_def &)): New.
33952 (debug (expr_def *)): New.
33953 (debug_verbose (expr_def &)): New.
33954 (debug_verbose (expr_def *)): New.
33955 (debug (vec<rtx> &)): New.
33956 (debug (vec<rtx> *)): New.
33957 * sel-sched-dump.h
33958 (extern debug (vinsn_def &)): New.
33959 (extern debug (vinsn_def *)): New.
33960 (extern debug_verbose (vinsn_def &)): New.
33961 (extern debug_verbose (vinsn_def *)): New.
33962 (extern debug (expr_def &)): New.
33963 (extern debug (expr_def *)): New.
33964 (extern debug_verbose (expr_def &)): New.
33965 (extern debug_verbose (expr_def *)): New.
33966 (extern debug (vec<rtx> &)): New.
33967 (extern debug (vec<rtx> *)): New.
33968 * sel-sched-ir.h
33969 (_list_iter_cond_expr): Make inline instead of static.
33970 * sreal.c
33971 (debug (sreal &)): New.
33972 (debug (sreal *)): New.
33973 * sreal.h
33974 (extern debug (sreal &)): New.
33975 (extern debug (sreal *)): New.
33976 * tree.h
33977 (extern debug_raw (const tree_node &)): New.
33978 (extern debug_raw (const tree_node *)): New.
33979 (extern debug (const tree_node &)): New.
33980 (extern debug (const tree_node *)): New.
33981 (extern debug_verbose (const tree_node &)): New.
33982 (extern debug_verbose (const tree_node *)): New.
33983 (extern debug_head (const tree_node &)): New.
33984 (extern debug_head (const tree_node *)): New.
33985 (extern debug_body (const tree_node &)): New.
33986 (extern debug_body (const tree_node *)): New.
33987 (extern debug (vec<tree, va_gc> &)): New.
33988 (extern debug (vec<tree, va_gc> *)): New.
33989 * tree-cfg.c
33990 (debug (struct loop &)): New.
33991 (debug (struct loop *)): New.
33992 (debug_verbose (struct loop &)): New.
33993 (debug_verbose (struct loop *)): New.
33994 * tree-dump.c: Add header dependence.
33995 * tree-flow.h
33996 (extern debug (struct loop &)): New.
33997 (extern debug (struct loop *)): New.
33998 (extern debug_verbose (struct loop &)): New.
33999 (extern debug_verbose (struct loop *)): New.
34000 * tree-data-ref.c
34001 (debug (data_reference &)): New.
34002 (debug (data_reference *)): New.
34003 (debug (vec<data_reference_p> &)): New.
34004 (debug (vec<data_reference_p> *)): New.
34005 (debug (vec<ddr_p> &)): New.
34006 (debug (vec<ddr_p> *)): New.
34007 * tree-data-ref.h
34008 (extern debug (data_reference &)): New.
34009 (extern debug (data_reference *)): New.
34010 (extern debug (vec<data_reference_p> &)): New.
34011 (extern debug (vec<data_reference_p> *)): New.
34012 (extern debug (vec<ddr_p> &)): New.
34013 (extern debug (vec<ddr_p> *)): New.
34014 * tree-ssa-alias.c
34015 (debug (pt_solution &)): New.
34016 (debug (pt_solution *)): New.
34017 * tree-ssa-alias.h
34018 (extern debug (pt_solution &)): New.
34019 (extern debug (pt_solution *)): New.
34020 * tree-ssa-alias.c
34021 (debug (_var_map &)): New.
34022 (debug (_var_map *)): New.
34023 (debug (tree_live_info_d &)): New.
34024 (debug (tree_live_info_d *)): New.
34025 * tree-ssa-alias.h
34026 (extern debug (_var_map &)): New.
34027 (extern debug (_var_map *)): New.
34028 (extern debug (tree_live_info_d &)): New.
34029 (extern debug (tree_live_info_d *)): New.
34030
34031 2013-03-28 Jan Hubicka <jh@suse.cz>
34032
34033 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
34034
34035 2013-03-28 Ian Bolton <ian.bolton@arm.com>
34036
34037 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
34038 record only when desired or required.
34039
34040 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
34041
34042 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
34043 *vec_extractv2di_1_rex64. Use x64 isa attribute.
34044
34045 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34046
34047 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
34048 (*andsi3_compare0_uxtw): New pattern.
34049 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
34050 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
34051
34052 2013-03-28 Jan Hubicka <jh@suse.cz>
34053
34054 * data-streamer-in.c (streamer_read_gcov_count): New function.
34055 * gimple-streamer-out.c: Include value-prof.h.
34056 (output_gimple_stmt): Output histogram.
34057 (output_bb): Use streamer_write_gcov_count.
34058 * value-prof.c: Include data-streamer.h
34059 (dump_histogram_value): Add HIST_TYPE_MAX.
34060 (stream_out_histogram_value): New function.
34061 (stream_in_histogram_value): New function.
34062 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
34063 (stream_out_histogram_value, stream_in_histogram_value): Declare.
34064 * data-streamer-out.c (streamer_write_gcov_count): New function.
34065 (streamer_write_gcov_count_stream): New function.
34066 * lto-cgraph.c (lto_output_edge): Update counter streaming.
34067 (lto_output_node): Likewise.
34068 (input_node, input_edge): Likewise.
34069 * lto-streamer-out.c (output_cfg): Update streaming.
34070 * lto-streamer-in.c (input_cfg): Likewise.
34071 * data-streamer.h (streamer_write_gcov_count,
34072 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
34073 * gimple-streamer-in.c: Include value-prof.h
34074 (input_gimple_stmt): Input histograms.
34075 (input_bb): Update profile streaming.
34076
34077 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34078
34079 * genmodes.c (emit_max_int): New function.
34080 (emit_insn_modes_h): Added call to emit_max_function.
34081 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
34082 Added doc.
34083 * machmode.def: Fixed comment.
34084
34085 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
34086
34087 * combine.c (try_combine): Removed useless assert.
34088 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
34089
34090 2013-03-28 Marek Polacek <polacek@redhat.com>
34091 Richard Biener <rguenther@suse.de>
34092
34093 PR tree-optimization/56695
34094 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
34095 build signed result of a vector comparison.
34096 * tree-cfg.c (verify_gimple_comparison): Check that a result
34097 of a vector comparison has signed type.
34098
34099 2013-03-28 Richard Biener <rguenther@suse.de>
34100
34101 PR tree-optimization/37021
34102 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
34103 do not restrict gaps between groups.
34104 * tree-vect-stmts.c (vectorizable_load): Properly account for
34105 a gap between groups.
34106
34107 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
34108
34109 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
34110 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
34111 is not enabled.
34112
34113 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
34114
34115 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
34116 * doc/extend.texi (Named Address Spaces): Ditto.
34117 (Variable Attributes): Ditto.
34118
34119 2013-03-27 Kai Tietz <ktietz@redhat.com>
34120
34121 * config.build: Add support for cygwin x64 target.
34122 * config.gcc: Likewise.
34123 * config.host: Likewise.
34124 * configure.ac: Likewise
34125 * configure: Regenerated.
34126
34127 2013-03-27 Kai Tietz <ktietz@redhat.com>
34128
34129 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
34130 * config/i386/t-cygwin-w64: New file.
34131 * config/i386/cygwin-w64.h: New file.
34132 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
34133 and add support for x64-cygwin target.
34134 (CPP_SPEC): Likewise.
34135 (CXX_WRAP_SPEC_LIST): Undefine before define.
34136 (LIBGCJ_SONAME): Use 15 as version.
34137
34138 2013-03-27 Richard Biener <rguenther@suse.de>
34139
34140 PR tree-optimization/56716
34141 * tree-ssa-structalias.c (perform_var_substitution): Adjust
34142 dumping for ref nodes.
34143
34144 2013-03-27 Martin Jambor <mjambor@suse.cz>
34145
34146 PR tree-optimization/55334
34147 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
34148 restricted pointers to arrays.
34149
34150 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
34151
34152 * Makefile.in (.SUFFIXES): Add .cc.
34153 (.c.o): Apply same recipe for implicit rule .cc.o.
34154
34155 2013-03-27 Richard Biener <rguenther@suse.de>
34156
34157 PR tree-optimization/37021
34158 * tree-vect-data-refs.c (vect_check_strided_load): Allow
34159 REALPART/IMAGPART_EXPRs around the supported refs.
34160 * tree-ssa-structalias.c (find_func_aliases): Assume that
34161 floating-point values are not used to transfer pointers.
34162
34163 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
34164
34165 * target.def (TARGET_HAS_IFUNC_P): New target hook.
34166 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
34167 * doc/tm.texi: Regenerate.
34168 * targhooks.h (default_has_ifunc_p): New.
34169 * targhooks.c (default_has_ifunc_p): Ditto.
34170 * config/linux-protos.h: New file.
34171 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
34172 hook for linux which disables support of indirect functions in android.
34173 * config/linux-android.c: New file.
34174 * config/t-linux-android.c: Ditto.
34175 * config.gcc: Added new object file linux-android.o.
34176 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
34177 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
34178 * varasm.c (do_assemble_alias): Likewise.
34179 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
34180 doesn't support indirect functions.
34181 * configure: Regenerate.
34182
34183 2013-03-27 Bin Cheng <bin.cheng@arm.com>
34184
34185 PR target/56102
34186 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
34187 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
34188 mult-word mode.
34189
34190 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34191
34192 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
34193
34194 2013-03-27 Terry Guo <terry.guo@arm.com>
34195
34196 * config/arm/arm-cores.def: Added core cortex-r7.
34197 * config/arm/arm-tune.md: Regenerated.
34198 * config/arm/arm-tables.opt: Regenerated.
34199 * doc/invoke.texi: Added entry for core cortex-r7.
34200
34201 2013-03-27 Walter Lee <walt@tilera.com>
34202
34203 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
34204 double-decrement of next_scratch_regno.
34205
34206 2013-03-27 Walter Lee <walt@tilera.com>
34207
34208 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
34209 input operands.
34210 (insn_v1mulus): Ditto.
34211 (insn_v2muls): Ditto.
34212
34213 2013-03-27 Walter Lee <walt@tilera.com>
34214
34215 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
34216 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
34217
34218 2013-03-27 Walter Lee <walt@tilera.com>
34219
34220 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
34221 (*sibcall_value): Ditto.
34222
34223 2013-03-27 Walter Lee <walt@tilera.com>
34224
34225 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
34226 (insn_mnz_v8qi): ... this ...
34227 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
34228 vector equivalent.
34229 (insn_v<n>mnz): Replaced by ...
34230 (insn_v1mnz): ... this ...
34231 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
34232 equivalent.
34233 (insn_mz_<mode>): Replaced by ...
34234 (insn_mz_v8qi): ... this ...
34235 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
34236 vector equivalent.
34237 (insn_v<n>mz): Replaced by ...
34238 (insn_v1mz): ... this ...
34239 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
34240 equivalent.
34241
34242 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
34243
34244 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
34245
34246 2013-03-26 Roland McGrath <mcgrathr@google.com>
34247
34248 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
34249 than fprintf with a non-constant, non-format string.
34250
34251 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34252
34253 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
34254 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
34255 operand 0 predicate.
34256 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
34257 attribute. Use general_x64nomem_operand as operand 1 predicate.
34258 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
34259 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34260 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
34261 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
34262 (mov<mode>_insv_1): Remove expander. Merge insn with
34263 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
34264 Use general_x64nomem_operand as operand 1 predicate.
34265 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
34266 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
34267 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34268 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
34269 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
34270 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
34271 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
34272 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
34273 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
34274 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
34275 (general_x64nomem_operand): Ditto.
34276
34277 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
34278
34279 * config/rtems.opt: Add -pthread option.
34280
34281 2013-03-26 Richard Biener <rguenther@suse.de>
34282
34283 * alias.c (find_base_term): Avoid redundant and not used recursion.
34284 (base_alias_check): Get the initial base term from the caller.
34285 (true_dependence_1): Compute and pass base terms to base_alias_check.
34286 (write_dependence_p): Likewise.
34287 (may_alias_p): Likewise.
34288
34289 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
34290
34291 * config/aarch64/aarch64.c (aarch64_classify_address): Support
34292 PC-relative load in SI modes and above only.
34293
34294 2013-03-26 Xinyu Qi <xyqi@marvell.com>
34295
34296 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
34297 * config/arm/iwmmxt.md (WCGR0): Update.
34298 (WCGR1, WCGR2, WCGR3): Likewise.
34299
34300 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
34301
34302 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
34303 Use x64 and nox64 isa attributes.
34304
34305 2013-03-26 Richard Biener <rguenther@suse.de>
34306
34307 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
34308 alignment computations and rely on get_object_alignment_1
34309 for the !TYPE_P case.
34310 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
34311
34312 2013-03-26 Walter Lee <walt@tilera.com>
34313
34314 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
34315 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
34316
34317 2013-03-25 Jeff Law <law@redhat.com>
34318
34319 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
34320 check for INTEGRAL_TYPE_P that was missing due to checking in
34321 wrong version of prior patch.
34322
34323 2013-03-25 Walter Lee <walt@tilera.com>
34324
34325 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
34326 TILEGX_INSN_SHUFFLEBYTES1.
34327 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
34328 shufflebytes1.
34329 (tilegx_builtins): Ditto.
34330 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
34331
34332 2013-03-25 Walter Lee <walt@tilera.com>
34333
34334 * config/tilegx/tilegx.md (floatsisf2): New pattern.
34335 (floatunssisf2): New pattern.
34336 (floatsidf2): New pattern.
34337 (floatunssidf2): New pattern.
34338
34339 2013-03-25 Walter Lee <walt@tilera.com>
34340
34341 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
34342 tests for constraint J, K, N, P.
34343
34344 2013-03-25 Walter Lee <walt@tilera.com>
34345
34346 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
34347 Use indirect/pcrel encoding.
34348 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
34349 Ditto.
34350
34351 2013-03-25 Steve Ellcey <sellcey@mips.com>
34352
34353 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
34354 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
34355 * config/mips/mips.c (mips_option_override): Set IMADD default.
34356 * config/mips/mips.h (PTF_AVOID_IMADD): New.
34357 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
34358 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
34359 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
34360 * doc/invoke.texi (-mimadd/-mno-imadd): New.
34361
34362 2013-03-25 Jeff Law <law@redhat.com>
34363
34364 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
34365 slightly to avoid creating and folding useless trees. Simplify
34366 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
34367
34368 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
34369
34370 * config/i386/i386.md (*zero_extendsidi2): Merge with
34371 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
34372 * config/i386/predicates.md (x86_64_zext_operand): Rename from
34373 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
34374 targets. Clarify comment.
34375
34376 2013-03-25 Martin Jambor <mjambor@suse.cz>
34377
34378 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
34379 pass-through jump functions differently.
34380 (ipa_read_jump_function): Likewise. Also use setter functions to set
34381 up jump functions.
34382
34383 2013-03-25 Martin Jambor <mjambor@suse.cz>
34384
34385 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
34386 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
34387 process it.
34388 (ipa_get_indirect_edge_target): New function.
34389 (devirtualization_time_bonus): New parameter known_aggs, pass it to
34390 ipa_get_indirect_edge_target. Update all callers.
34391 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
34392 ipa_get_indirect_edge_target_1 instead of calling
34393 ipa_get_indirect_edge_target.
34394 (create_specialized_node): Pass aggvlas to
34395 ipcp_discover_new_direct_edges.
34396
34397 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34398
34399 * config/arm/arm.md (f_sels, f_seld): New types.
34400 (*cmov<mode>): New pattern.
34401 * config/arm/predicates.md (arm_vsel_comparison_operator): New
34402 predicate.
34403
34404 2013-03-25 Kai Tietz <ktietz@redhat.com>
34405
34406 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
34407 POSIX-printf for mingw-hosted builds.
34408
34409 2013-03-25 Richard Biener <rguenther@suse.de>
34410
34411 PR middle-end/56694
34412 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
34413 must-not-throw stmt location.
34414
34415 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34416
34417 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
34418 Emit load-acquire versions when acq is true.
34419 (arm_emit_store_exclusive): Add rel parameter.
34420 Emit store-release versions when rel is true.
34421 (arm_split_compare_and_swap): Use acquire-release instructions
34422 instead.
34423 of barriers when appropriate.
34424 (arm_split_atomic_op): Likewise.
34425 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
34426 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
34427 (VUNSPEC_SLX): Likewise.
34428 (VUNSPEC_LDA): Likewise.
34429 (VUNSPEC_STL): Likewise.
34430 * config/arm/sync.md (atomic_load<mode>): New pattern.
34431 (atomic_store<mode>): Likewise.
34432 (arm_load_acquire_exclusive<mode>): Likewise.
34433 (arm_load_acquire_exclusivesi): Likewise.
34434 (arm_load_acquire_exclusivedi): Likewise.
34435 (arm_store_release_exclusive<mode>): Likewise.
34436
34437 2013-03-25 Catherine Moore <clm@codesourcery.com>
34438
34439 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
34440 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
34441 * config/mip/predicates.md (lwsp_swsp_operand,
34442 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
34443 sb16_operand, db4_operand, db7_operand, ib3_operand,
34444 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
34445 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
34446 andi16_operand): New predicates.
34447 * config/mips/mips.md (compression): New attribute.
34448 (enabled): New attribute.
34449 (length): Consider compression in computing length.
34450 (shift_compression): New code attribute.
34451 (*add<mode>3): New operands. Record compression.
34452 (sub<mode>3): Likewise.
34453 (one_cmpl<mode>2): Likewise.
34454 (*and<mode>3): Likewise.
34455 (*ior<mode>3): Likewise.
34456 (unnamed pattern for xor): Likewise.
34457 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
34458 (*<optab><mode>3): Likewise.
34459 (*mov<mode>_internal: Likewise.
34460 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
34461 (mips_unsigned_immediate_p): New.
34462 (umips_lwsp_swsp_address_p): New.
34463 (m16_based_address_p): New.
34464 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
34465 (mips_unsigned_immediate_p): New prototype.
34466 (lwsp_swsp_address_p): New prototype.
34467 (m16_based_address_p): New prototype.
34468 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
34469 (mips_signed_immediate_p): New function.
34470 (m16_based_address_p): New function.
34471 (lwsp_swsp_address_p): New function.
34472 (mips_print_operand_punctuation): Recognize short delay slot insns
34473 for microMIPS.add<mode>3"
34474
34475 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34476
34477 PR target/56720
34478 * config/arm/iterators.md (v_cmp_result): New mode attribute.
34479 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
34480
34481 2013-03-25 Richard Biener <rguenther@suse.de>
34482
34483 PR tree-optimization/56689
34484 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
34485 any edge.
34486
34487 2013-03-25 Richard Biener <rguenther@suse.de>
34488
34489 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
34490 of bitmap.
34491 (memory_references): Likewise.
34492 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
34493 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
34494 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
34495 (gather_mem_refs_in_loops): Fold into ...
34496 (analyze_memory_references): ... this. Move initialization
34497 to tree_ssa_lim_initialize.
34498 (fill_always_executed_in): Rename to ...
34499 (fill_always_executed_in_1): ... this.
34500 (fill_always_executed_in): Move contains_call computation to
34501 this new function from ...
34502 (tree_ssa_lim_initialize): ... here.
34503 (tree_ssa_lim): Call fill_always_executed_in.
34504
34505 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34506
34507 * postreload.c (reload_combine): Fix code detecting returns.
34508
34509 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
34510
34511 * function.c (emit_use_return_register_into_block): On cc0 targets,
34512 do not emit the sequence between cc0 setter and user.
34513
34514 2013-03-25 Kai Tietz <ktietz@redhat.com>
34515
34516 * config/i386/predicates.md (local_symbolic_operand): Interpret
34517 dll-imported symbols as none-local.
34518
34519 2013-03-25 Richard Biener <rguenther@suse.de>
34520
34521 * tree-ssa-loop-im.c (struct depend): Remove.
34522 (struct lim_aux_data): Make depends a vec of gimples.
34523 (free_lim_aux_data): Adjust.
34524 (add_dependency): Likewise.
34525 (set_level): Likewise.
34526
34527 2013-03-25 Richard Biener <rguenther@suse.de>
34528
34529 PR middle-end/56434
34530 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
34531 the pointer returned by calls with ECF_MALLOC set.
34532
34533 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34534
34535 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
34536
34537 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
34538
34539 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
34540 using MMXMODE mode iterator.
34541 (*move<mode>_internal): Merge with *movv2sf_internal and
34542 *movv2sf_internal_rex64 using MMXMODE mode iterator.
34543
34544 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34545
34546 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
34547 (record_last_mem_set_info): Likewise.
34548
34549 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
34550 of XNEWVEC followed by memset.
34551 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
34552
34553 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
34554
34555 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
34556 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
34557 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
34558 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
34559 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
34560 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
34561 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
34562 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
34563 BARRIER_P instead of GET_CODE.
34564
34565 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34566
34567 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
34568 inaccuracy in the probing code.
34569
34570 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
34571 (ctrapdi4): Likewise.
34572
34573 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34574
34575 * calls.c (expand_call): Add missing guard to code handling return
34576 of non-BLKmode structures in MSB.
34577 * function.c (expand_function_end): Likewise.
34578
34579 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
34580
34581 * combine.c (try_combine): Adjust comment. Do not add the set of
34582 insn #0 if the destination indirectly is set or dies in insn #2.
34583 Tidy up code to distribute a new note.
34584
34585 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34586
34587 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
34588 also for alternatives 16 and 17.
34589
34590 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
34591
34592 * config/i386/sse.md (*mov<mode>_internal): Merge with
34593 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
34594 Emit insn template depending on type attribute. Use
34595 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34596 movd instead of movq mnemonic for interunit moves. Rewrite mode
34597 attribute calculation. Remove unit attribute calculation.
34598 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
34599 Set prefix_data16 attribute for DImode ssemov types.
34600 Use Ym instead of y for SSE-MMX conversion alternatives.
34601 Reorder operand constraints.
34602
34603 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
34604
34605 * df.h (df_insn_delete): Adjust prototype.
34606 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
34607 and let it decide whether mark the basic block dirty.
34608 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
34609 * df-scan.c (df_insn_info_delete): New helper function, split
34610 off from df_insn_delete.
34611 (df_scan_free_bb_info): Use it.
34612 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
34613 Likewise.
34614 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
34615 that the insn is actually an insn and it has a non-NULL basic block.
34616 Do not mark basic block dirty if only deleting a DEBUG_INSN.
34617
34618 2013-03-22 Richard Biener <rguenther@suse.de>
34619
34620 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
34621 dep_ref members.
34622 (mem_ref_alloc): Do not allocate them.
34623 (refs_independent_p): Do not query or maintain a cache.
34624
34625 2013-03-22 Richard Biener <rguenther@suse.de>
34626
34627 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
34628 (gather_mem_refs_in_loops): Do not compute it.
34629 (analyze_memory_references): Do not allocate it.
34630 (tree_ssa_lim_finalize): Do not free it.
34631 (for_all_locs_in_loop): Do not query all_refs_in_loop.
34632
34633 2013-03-22 Richard Biener <rguenther@suse.de>
34634
34635 * is-a.h (as_a): Use gcc_checking_assert.
34636
34637 2013-03-22 Ian Bolton <ian.bolton@arm.com>
34638
34639 * config/aarch64/aarch64.c (aarch64_print_operand): New
34640 format specifier for printing a constant in hex.
34641 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
34642 format specifier for printing second operand.
34643
34644 2013-03-22 Richard Biener <rguenther@suse.de>
34645
34646 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
34647 bitmaps.
34648 (gather_mem_refs_in_loops): Perform store accumulation here.
34649 (create_vop_ref_mapping_loop): Remove.
34650 (create_vop_ref_mapping): Likewise.
34651 (analyze_memory_references): Initialize refs_stored_in_loop.
34652 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
34653 (record_indep_loop): Remove.
34654 (record_dep_loop): New function.
34655 (ref_indep_loop_p_1): Adjust to only walk over references
34656 in the loop, not its subloops.
34657 (ref_indep_loop_p): Rename to ...
34658 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
34659 maintaining a more fine-grained cache.
34660 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
34661 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
34662
34663 2013-03-22 Richard Biener <rguenther@suse.de>
34664
34665 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
34666 (struct mem_ref): Make accesses_in_loop a vec of a vec of
34667 aggregate mem_ref_loc.
34668 (free_mem_ref_locs): Inline into ...
34669 (memref_free): ... this and adjust.
34670 (mem_ref_alloc): Adjust.
34671 (mem_ref_locs_alloc): Remove.
34672 (record_mem_ref_loc): Adjust.
34673 (get_all_locs_in_loop): Rewrite into ...
34674 (for_all_locs_in_loop): ... this iterator.
34675 (rewrite_mem_ref_loc): New functor.
34676 (rewrite_mem_refs): Use for_all_locs_in_loop.
34677 (sm_set_flag_if_changed): New functor.
34678 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
34679 (ref_always_accessed): New functor.
34680 (ref_always_accessed_p): Use for_all_locs_in_loop.
34681
34682 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34683
34684 * tree-pass.h (PROP_gimple_lvec): New.
34685 * passes.c (dump_properties): Handle PROP_gimple_lvec.
34686 (init_optimization_passes): Move pass_lower_vector.
34687 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
34688 PROP_gimple_lvec.
34689 (pass_lower_vector): Provide PROP_gimple_lvec.
34690 (pass_lower_vector_ssa): Likewise.
34691 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
34692
34693 2013-03-21 Mark Wielaard <mjw@redhat.com>
34694
34695 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
34696
34697 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34698
34699 * config/i386/i386.md (*movdi_internal): Disparage slightly
34700 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
34701 conversion alternatives.
34702
34703 2013-03-21 Jakub Jelinek <jakub@redhat.com>
34704
34705 PR middle-end/48087
34706 * diagnostic.def (DK_WERROR): New kind.
34707 * diagnostic.h (werrorcount): Define.
34708 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
34709 promoted to DK_ERROR, increment DK_WERROR counter instead of
34710 DK_ERROR counter.
34711 * toplev.c (toplev_main): Call print_ignored_options even if
34712 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
34713 even if just werrorcount is non-zero.
34714
34715 PR debug/55608
34716 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
34717 on failure.
34718 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
34719 (string_cst_pool_decl): New function.
34720 (optimize_one_addr_into_implicit_ptr): New function.
34721 (resolve_addr_in_expr): Optimize DWARF location expression
34722 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
34723 which doesn't live in memory, but has DW_AT_location or
34724 DW_AT_const_value, or refers to a string literal, into
34725 DW_OP_GNU_implicit_pointer.
34726 (optimize_location_into_implicit_ptr): New function.
34727 (resolve_addr): If removing DW_AT_location of a variable because
34728 it was DW_OP_addr of address of the variable, but the variable doesn't
34729 live in memory, try to emit const value attribute for the initializer.
34730
34731 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34732
34733 * tree.h (VECTOR_TYPE_P): New macro.
34734 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
34735 TYPE_MODE): Use it.
34736 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
34737 VEC_COND_EXPR cannot be lvalues.
34738 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
34739
34740 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
34741
34742 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
34743 Restrict the transformation to equal modes.
34744
34745 2013-03-21 Richard Biener <rguenther@suse.de>
34746
34747 PR tree-optimization/39326
34748 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
34749 (MEM_ANALYZABLE): Adjust.
34750 (record_mem_ref_loc): Move bitmap ops ...
34751 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
34752 unanalyzable refs, do not record locations for it.
34753 (analyze_memory_references): Allocate ref zero as shared
34754 unanalyzable ref.
34755 (refs_independent_p): Do not test for unanalyzed mems here.
34756 (ref_indep_loop_p_1): Special-case disambiguation against
34757 the unanalyzed ref.
34758 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
34759
34760 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
34761
34762 * config/arm/arm-protos.h (tune_params): Add
34763 prefer_neon_for_64bits field.
34764 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
34765 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
34766 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
34767 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
34768 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
34769 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
34770 (arm_option_override): Handle -mneon-for-64bits new option.
34771 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
34772 (prefer_neon_for_64bits): Declare new variable.
34773 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
34774 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
34775 (arch_enabled): Handle new arch types. Remove support for onlya8
34776 and nota8.
34777 (one_cmpldi2): Use new arch names.
34778 (zero_extend<mode>di2, extend<mode>di2): Ditto.
34779 * config/arm/arm.opt (mneon-for-64bits): Add option.
34780 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
34781 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
34782 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
34783 of onlya8.
34784 * doc/invoke.texi (-mneon-for-64bits): Document.
34785
34786 2013-03-21 Richard Biener <rguenther@suse.de>
34787
34788 PR tree-optimization/39326
34789 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
34790 (sort_bbs_in_loop_postorder_cmp): New function.
34791 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
34792
34793 2013-03-21 Richard Biener <rguenther@suse.de>
34794
34795 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
34796 (vect_insert_into_interleaving_chain): Likewise.
34797 (vect_drs_dependent_in_basic_block): Inline ...
34798 (vect_slp_analyze_data_ref_dependence): ... here. New function,
34799 split out from ...
34800 (vect_analyze_data_ref_dependence): ... here. Simplify.
34801 (vect_check_interleaving): Simplify.
34802 (vect_analyze_data_ref_dependences): Likewise. Split out ...
34803 (vect_slp_analyze_data_ref_dependences): ... this new function.
34804 (dr_group_sort_cmp): New function.
34805 (vect_analyze_data_ref_accesses): Compute data-reference groups
34806 here instead of in vect_analyze_data_ref_dependence. Use
34807 a more efficient algorithm.
34808 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
34809 vect_slp_analyze_data_ref_dependences. Call
34810 vect_analyze_data_ref_accesses earlier.
34811 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
34812 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
34813 (vect_slp_analyze_data_ref_dependences): New prototype.
34814
34815 2013-03-21 Richard Biener <rguenther@suse.de>
34816
34817 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
34818 ref is stored in the loop.
34819 (find_refs_for_sm): Walk only over all stores.
34820 (store_motion_loop): Allocate from lim_bitmap_obstack.
34821 (store_motion): Likewise.
34822
34823 2013-03-21 Richard Biener <rguenther@suse.de>
34824
34825 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
34826 Update virtual SSA form.
34827
34828 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34829
34830 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
34831 * configure: Regenerate.
34832 * config.in: Regenerate.
34833 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
34834 if !HAVE_LD_EH_FRAME_CIEV3.
34835
34836 2013-03-21 Richard Biener <rguenther@suse.de>
34837
34838 * tree-cfg.c (verify_expr_no_block): New function.
34839 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
34840 nor DECL_VALUE_EXPR have locations with associated blocks.
34841 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
34842 (clear_unused_block_pointer): Remove code dealing with
34843 blocks in DECL_DEBUG_EXPR locations.
34844
34845 2013-03-21 Richard Biener <rguenther@suse.de>
34846
34847 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
34848 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
34849 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
34850 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
34851 instead of DECL_DEBUG_EXPR_IS_FROM.
34852 * gimplify.c (gimplify_modify_expr): Likewise.
34853 * tree-cfg.c (verify_expr_location_1): Likewise.
34854 * tree-complex.c (create_one_component_var): Likewise.
34855 * tree-sra.c (create_access_replacement): Likewise.
34856 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
34857 (clear_unused_block_pointer): Likewise.
34858 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
34859 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
34860 * var-tracking.c (var_debug_decl): Likewise.
34861 (track_expr_p): Likewise.
34862 * tree-inline.c (add_local_variables): Likewise. Set
34863 DECL_HAS_DEBUG_EXPR_P after copying it.
34864 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
34865 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
34866
34867 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
34868
34869 PR bootstrap/56656
34870 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
34871 * configure: Regenerate.
34872 * config.in: Regenerate.
34873 * config/i386/i386.md (*movdf_internal): Use
34874 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
34875 movd instead of movq mnemonic for interunit moves.
34876 (*movdi_internal): Ditto.
34877
34878 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34879
34880 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
34881 (abd<mode>_3): New pattern.
34882 (aba<mode>_3): New pattern.
34883 (fabd<mode>_3): New pattern.
34884
34885 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
34886
34887 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
34888 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
34889 occurrence of REGISTER_PREFIX as its empty string.
34890
34891 2013-03-20 Jeff Law <law@redhat.com>
34892
34893 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
34894 addititional equivalences for equality comparisons between an SSA_NAME
34895 and a constant where the SSA_NAME was set from a widening conversion.
34896
34897 2013-03-20 Walter Lee <walt@tilera.com>
34898
34899 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
34900
34901 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34902
34903 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
34904 depending on type attribute.
34905 (*movti_internal): Ditto.
34906 (*movtf_internal): Ditto.
34907 (*movxf_internal): Ditto.
34908 (*movdf_internal): Ditto.
34909 (*movsf_internal): Ditto.
34910
34911 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
34912
34913 * config/i386/i386.md (*movti_internal): Set prefix attribute to
34914 maybe_vex for sselog1 and ssemov types.
34915 (*movdi_internal): Reorder operand constraints.
34916 (*movsi_internal): Ditto. Set prefix attribute to
34917 maybe_vex for sselog1 and ssemov types.
34918 (*movtf_internal): Set prefix attribute to maybe_vex
34919 for sselog1 and ssemov types.
34920 (*movdf_internal): Ditto. Set prefix_data16 attribute for
34921 DImode ssemov types. Reorder operand constraints.
34922 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
34923 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
34924 attribute for SImode ssemov types. Reorder operand constraints.
34925
34926 2013-03-20 Martin Jambor <mjambor@suse.cz>
34927
34928 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
34929 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
34930
34931 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
34932
34933 * config/rs6000/predicates.md (indexed_address, update_address_mem
34934 update_indexed_address_mem): New predicates.
34935 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
34936 attribute for load/store instructions.
34937 * config/rs6000/dfp.md (movsd_store): Likewise.
34938 (movsd_load): Likewise.
34939 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
34940 (unnamed HI->DI extend define_insn): Likewise.
34941 (unnamed SI->DI extend define_insn): Likewise.
34942 (unnamed QI->SI extend define_insn): Likewise.
34943 (unnamed QI->HI extend define_insn): Likewise.
34944 (unnamed HI->SI extend define_insn): Likewise.
34945 (unnamed HI->SI extend define_insn): Likewise.
34946 (extendsfdf2_fpr): Likewise.
34947 (movsi_internal1): Likewise.
34948 (movsi_internal1_single): Likewise.
34949 (movhi_internal): Likewise.
34950 (movqi_internal): Likewise.
34951 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
34952 attribute for load/store instructions.
34953 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
34954 instructions.
34955 (mov<mode>_softfloat): Likewise.
34956 (mov<mode>_hardfloat32): Likewise.
34957 (mov<mode>_hardfloat64): Likewise.
34958 (mov<mode>_softfloat64): Likewise.
34959 (movdi_internal32): Likewise.
34960 (movdi_internal64): Likewise.
34961 (probe_stack_<mode>): Likewise.
34962
34963 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
34964
34965 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
34966 floating point, and decimal floating point to reload iterator.
34967
34968 * config/rs6000/constraints.md (wl constraint): New constraints to
34969 return FLOAT_REGS if certain options are used to reduce the number
34970 of separate patterns that exist in the file.
34971 (wx constraint): Likewise.
34972 (wz constraint): Likewise.
34973
34974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34975 -mdebug=reg, print wg, wl, wx, and wz constraints.
34976 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
34977 Initialize the reload functions for 64-bit binary/decimal floating
34978 point types.
34979 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
34980 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
34981 create the buffer on the stack to overcome not having a 32-bit
34982 load and store.
34983 (rs6000_emit_move): Likewise.
34984 (rs6000_secondary_memory_needed_rtx): Likewise.
34985 (rs6000_alloc_sdmode_stack_slot): Likewise.
34986 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
34987 via xxlxor, just like DFmode 0.0.
34988
34989 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
34990 define as 1 if we are running on a power7 or newer.
34991 (enum r6000_reg_class_enum): Add new constraints.
34992
34993 * config/rs6000/dfp.md (movsd): Delete, combine with binary
34994 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
34995 with other moves by using conditional constraits (wg). Use LFIWZX
34996 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
34997 (movsd splitter): Likewise.
34998 (movsd_hardfloat): Likewise.
34999 (movsd_softfloat): Likewise.
35000
35001 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
35002 binary and decimal floating point moves.
35003 (fmove_ok): New attributes to combine binary and decimal floating
35004 point moves, and to combine power6x (mfpgpr) moves along normal
35005 floating moves.
35006 (real_value_to_target): Likewise.
35007 (f32_lr): Likewise.
35008 (f32_lm): Likewise.
35009 (f32_li): Likewise.
35010 (f32_sr): Likewise.
35011 (f32_sm): Likewise.
35012 (f32_si): Likewise.
35013 (movsf): Combine binary and decimal floating point moves. Combine
35014 power6x (mfpgpr) moves with other moves by using conditional
35015 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
35016 (mov<mode> for SFmode/SDmode); Likewise.
35017 (SFmode/SDmode splitters): Likewise.
35018 (movsf_hardfloat): Likewise.
35019 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
35020 (movsf_softfloat): Likewise.
35021 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
35022
35023 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
35024 wx and wz constraints.
35025
35026 * config/rs6000/constraints.md (wg constraint): New constraint to
35027 return FLOAT_REGS if -mmfpgpr (power6x) was used.
35028
35029 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
35030 constraint.
35031
35032 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35033 -mdebug=reg, print wg, wl, wx, and wz constraints.
35034 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
35035 Initialize the reload functions for 64-bit binary/decimal floating
35036 point types.
35037 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
35038 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
35039 create the buffer on the stack to overcome not having a 32-bit
35040 load and store.
35041 (rs6000_emit_move): Likewise.
35042 (rs6000_secondary_memory_needed_rtx): Likewise.
35043 (rs6000_alloc_sdmode_stack_slot): Likewise.
35044 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
35045 via xxlxor, just like DFmode 0.0.
35046
35047 * config/rs6000/dfp.md (movdd): Delete, combine with binary
35048 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
35049 with other moves by using conditional constraits (wg). Use LFIWZX
35050 and STFIWX for loading SDmode on power7.
35051 (movdd splitters): Likewise.
35052 (movdd_hardfloat32): Likewise.
35053 (movdd_softfloat32): Likewise.
35054 (movdd_hardfloat64_mfpgpr): Likewise.
35055 (movdd_hardfloat64): Likewise.
35056 (movdd_softfloat64): Likewise.
35057
35058 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
35059 64-bit binary and decimal floating point moves.
35060 (FMOVE64X): Likewise.
35061 (movdf): Combine 64-bit binary and decimal floating point moves.
35062 Combine power6x (mfpgpr) moves with other moves by using
35063 conditional constraits (wg).
35064 (mov<mode> for DFmode/DDmode): Likewise.
35065 (DFmode/DDmode splitters): Likewise.
35066 (movdf_hardfloat32): Likewise.
35067 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
35068 (movdf_softfloat32): Likewise.
35069 (movdf_hardfloat64_mfpgpr): Likewise.
35070 (movdf_hardfloat64): Likewise.
35071 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
35072 (movdf_softfloat64): Likewise.
35073 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
35074 (reload_<mode>_load): Move to later in the file so they aren't in
35075 the middle of the floating point move insns.
35076 (reload_<mode>_store): Likewise.
35077
35078 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
35079 constraint.
35080
35081 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
35082 constraint if -mdebug=reg.
35083 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
35084 Enable using dd reload support if needed.
35085
35086 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
35087 binary and decimal floating point moves in rs6000.md.
35088 (movtd_internal): Likewise.
35089
35090 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
35091 decimal floating point moves.
35092 (movtf): Likewise.
35093 (movtf_internal): Likewise.
35094 (mov<mode>_internal, TDmode/TFmode): Likewise.
35095 (movtf_softfloat): Likewise.
35096 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
35097
35098 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
35099 movdi_internal64, using wg constraint for move direct operations.
35100 (movdi_internal64): Likewise.
35101
35102 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
35103 MODES_TIEABLE_P for selected modes. Print the numerical value of
35104 the various virtual registers. Use GPR/FPR first/last values,
35105 instead of hard coding the register numbers. Print which modes
35106 have reload functions registered.
35107 (rs6000_option_override_internal): If -mdebug=reg, trace the options
35108 settings before/after setting cpu, target and subtarget settings.
35109 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
35110 and for secondary reload failures in rs6000_secondary_reload_inner.
35111 (rs6000_secondary_reload_fail): Likewise.
35112 (rs6000_secondary_reload_inner): Likewise.
35113
35114 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
35115 macros for first/last GPR and FPR registers.
35116 (LAST_GPR_REGNO): Likewise.
35117 (FIRST_FPR_REGNO): Likewise.
35118 (LAST_FPR_REGNO): Likewise.
35119
35120 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
35121 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
35122 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
35123 (vcond<mode><mode>): Likewise.
35124 (vcondu<mode><mode>): Likewise.
35125 (vector_gtu<mode>): Likewise.
35126 (vector_gte<mode>): Likewise.
35127 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
35128 to prevent the compiler from converting DImode operations to TImode.
35129 (ior<mode>3): Likewise.
35130 (and<mode>3): Likewise.
35131 (one_cmpl<mode>2): Likewise.
35132 (nor<mode>3): Likewise.
35133 (andc<mode>3): Likewise.
35134
35135 * config/rs6000/constraints.md (wt constraint): New constraint
35136 that returns VSX_REGS if TImode is allowed in VSX registers.
35137
35138 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
35139 constant under VSX.
35140
35141 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
35142 similar to TImode, but it is restricted to being in the GPRs.
35143
35144 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
35145 TImode to occupy a single VSX register.
35146
35147 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
35148 -mvsx-timode for power7/power8.
35149 (power7 cpu): Likewise.
35150 (power8 cpu): Likewise.
35151
35152 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
35153 sure that TFmode/TDmode take up two registers if they are ever
35154 allowed in the upper VSX registers.
35155 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
35156 registers.
35157 (rs6000_init_hard_regno_mode_ok): Likewise.
35158 (rs6000_debug_reg_global): Add debugging for PTImode and wt
35159 constraint. Print if LRA is turned on.
35160 (rs6000_option_override_internal): Give an error if -mvsx-timode
35161 and VSX is not enabled.
35162 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
35163 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
35164 to reg+offset addressing. Use PTImode when checking offset
35165 addresses for validity.
35166 (reg_offset_addressing_ok_p): Likewise.
35167 (rs6000_legitimate_offset_address_p): Likewise.
35168 (rs6000_legitimize_address): Likewise.
35169 (rs6000_legitimize_reload_address): Likewise.
35170 (rs6000_legitimate_address_p): Likewise.
35171 (rs6000_eliminate_indexed_memrefs): Likewise.
35172 (rs6000_emit_move): Likewise.
35173 (rs6000_secondary_reload): Likewise.
35174 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
35175 reloads to fpr registers to continue to use reg+offset addressing,
35176 but 64-bit reloads to altivec registers need reg+reg addressing.
35177 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
35178 it. Treat LO_SUM like a PLUS operation.
35179 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
35180 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
35181 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
35182 registers to share a register with a smaller sized type, since VSX
35183 puts scalars in the upper 64-bits.
35184 (print_operand): Add support for PTImode.
35185 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
35186 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
35187 registers, but don't have arithmetic support.
35188 (rs6000_memory_move_cost): Add test for VSX.
35189 (rs6000_opt_masks): Add -mvsx-timode.
35190
35191 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
35192 for TImode.
35193 (VSs): Likewise.
35194 (VSr): Use wt constraint for TImode.
35195 (VSv): Drop TImode support.
35196 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
35197 (vsx_movti_64bit): Likewise.
35198 (vsx_movti_32bit): Likewise.
35199 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
35200 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
35201 one '?' on the appropriate output constraint. Do not allow TImode
35202 logical operations on 32-bit systems.
35203 (vsx_ior<mode>3): Likewise.
35204 (vsx_xor<mode>3): Likewise.
35205 (vsx_one_cmpl<mode>2): Likewise.
35206 (vsx_nor<mode>3): Likewise.
35207 (vsx_andc<mode>3): Likewise.
35208 (vsx_concat_<mode>): Likewise.
35209 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
35210
35211 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
35212 OPTION_MASK_VSX_TIMODE.
35213 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
35214 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
35215
35216 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
35217 (TI2 iterator): New iterator for TImode, PTImode.
35218 (wd mode attribute): Add values for vector types.
35219 (movti_string): Replace TI move operations with operations for TImode
35220 and PTImode. Add support for TImode being allowed in VSX registers.
35221 (mov<mode>_string, TImode/PTImode): Likewise.
35222 (movti_ppc64): Likewise.
35223 (mov<mode>_ppc64, TImode/PTImode): Likewise.
35224 (TI mode splitters): Likewise.
35225
35226 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
35227 constraint.
35228
35229 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
35230
35231 PR tree-optimization/56355
35232 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
35233 Also handle integers with undefined overflow.
35234
35235 2013-03-20 Catherine Moore <clm@codesourcery.com>
35236 Maciej W. Rozycki <macro@codesourcery.com>
35237 Tom de Vries <tom@codesourcery.com>
35238 Nathan Sidwell <nathan@codesourcery.com>
35239 Iain Sandoe <iain@codesourcery.com>
35240 Nathan Froyd <froydnj@codesourcery.com>
35241 Chao-ying Fu <fu@mips.com>
35242
35243 * doc/extend.texi: (micromips, nomicromips, nocompression):
35244 Document new function attributes.
35245 * doc/invoke.texi (minterlink-compressed, mmicromips,
35246 m14k, m14ke, m14kec): Document new options.
35247 (minterlink-mips16): Update documentation.
35248 * doc/md.texi (ZC, ZD): Document new constraints.
35249 * configure.ac (gcc_cv_as_micromips): Check if linker
35250 supports the .set micromips directive.
35251 * configure: Regenerate.
35252 * config.in: Regenerate.
35253 * config/mips/mips-tables.opt: Regenerate.
35254 * config/mips/micromips.md: New file.
35255 * constraints.md (ZC, ZD): New constraints.
35256 * config/mips/predicates.md (movep_src_register): New predicate.
35257 (movep_src_operand): New predicate.
35258 (non_volatile_mem_operand): New predicate.
35259 * config/mips/mips.md (multimem): New type.
35260 (length): Differentiate between 17-bit and 18-bit branch offsets.
35261 (MOVEP1, MOVEP2): New mode iterator.
35262 (mov_<load>l): Use ZC constraint.
35263 (mov_<load>r): Likewise.
35264 (mov_<store>l): Likewise.
35265 (mov_<store>r): Likewise.
35266 (*branch_equality<mode>_inverted): Add microMIPS support.
35267 (*branch_equality<mode>): Likewise.
35268 (*jump_absolute): Likewise.
35269 (indirect_jump_<mode>): Likewise.
35270 (tablejump_<mode>): Likewise.
35271 (<optab>_internal): Likewise.
35272 (sibcall_internal): Likewise.
35273 (sibcall_value_internal): Likewise.
35274 (prefetch): Use constraint ZD.
35275 * config/mips/mips.opt (minterlink-compressed): New option.
35276 (minterlink-mips16): Now an alias for minterlink-compressed.
35277 (mmicromips): New option.
35278 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
35279 (compare_and_swap_12): Likewise.
35280 (sync_add<mode>): Likewise.
35281 (sync_<optab>_12): Likewise.
35282 (sync_old_<optab>_12): Likewise.
35283 (sync_new_<optab>_12): Likewise.
35284 (sync_nand_12): Likewise.
35285 (sync_old_nand_12): Likewise.
35286 (sync_new_nand_12): Likewise.
35287 (sync_sub<mode>): Likewise.
35288 (sync_old_add<mode>): Likewise.
35289 (sync_old_sub<mode>): Likewise.
35290 (sync_new_add<mode>): Likewise.
35291 (sync_new_sub<mode>): Likewise.
35292 (sync_<optab><mode>): Likewise.
35293 (sync_old_<optab><mode>): Likewise.
35294 (sync_new_<optab><mode>): Likewise.
35295 (sync_nand<mode>): Likewise.
35296 (sync_old_nand<mode>): Likewise.
35297 (sync_new_nand<mode>): Likewise.
35298 (sync_lock_test_and_set<mode>): Likewise.
35299 (test_and_set_12): Likewise.
35300 (atomic_compare_and_swap<mode>): Likewise.
35301 (atomic_exchange<mode>_llsc): Likewise.
35302 (atomic_fetch_add<mode>_llsc): Likewise.
35303 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
35304 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
35305 (umips_save_restore_pattern_p): Likewise.
35306 (umips_load_store_pair_p): Likewise.
35307 (umips_output_load_store_pair): Likewise.
35308 (umips_movep_target_p): Likewise.
35309 (umips_12bit_offset_address_p): Likewise.
35310 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
35311 (mips_base_mips16): Rename this...
35312 (mips_base_compression_flags): ...to this. Update all uses.
35313 (mips_attribute_table): Add micromips, nomicromips and nocompression.
35314 (mips_mips16_decl_p): Delete.
35315 (mips_nomips16_decl_p): Delete.
35316 (mips_get_compress_on_flags): New function.
35317 (mips_get_compress_off_flags): New function.
35318 (mips_get_compress_mode): New function.
35319 (mips_get_compress_on_name): New function.
35320 (mips_get_compress_off_name): New function.
35321 (mips_insert_attributes): Support multiple compression types.
35322 (mips_merge_decl_attributes): Likewise.
35323 (umips_12bit_offset_address_p): New function.
35324 (mips_start_function_definition): Emit .set micromips directive.
35325 (mips_call_may_need_jalx_p): New function.
35326 (mips_function_ok_for_sibcall): Add microMIPS support.
35327 (mips_print_operand_punctuation): Support short delay slots and
35328 compact jumps.
35329 (umips_swm_mask, umips_swm_encoding): New.
35330 (umips_build_save_restore): New function.
35331 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
35332 (was_mips16_p): Remove.
35333 (old_compression_mode): New.
35334 (mips_set_compression_mode): New function.
35335 (mips_set_current_function): Add microMIPS support.
35336 (mips_option_override): Likewise.
35337 (umips_save_restore_pattern_p): New function.
35338 (umips_output_save_restore): New function.
35339 (umips_load_store_pair_p_1): New function.
35340 (umips_load_store_pair_p): New function.
35341 (umips_output_load_store_pair_1): New function.
35342 (umips_output_load_store_pair): New function.
35343 (umips_movep_target_p) New function.
35344 (mips_prepare_pch_save): Add microMIPS support.
35345 * config/mips/mips.h (TARGET_COMPRESSION): New.
35346 (TARGET_CPU_CPP_BUILTINS): Update macro
35347 to use new compression flags and to support microMIPS.
35348 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
35349 (MIPS_ARCH_FLOAT_SPEC): Likewise.
35350 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
35351 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
35352 (ASM_SPEC): Support mmicromips and mno-micromips.
35353 (M16STORE_REG_P): New macro.
35354 (MIPS_CALL): Support TARGET_MICROMIPS.
35355 (MICROMIPS_J): New macro.
35356 (mips_base_mips16): Rename this...
35357 (mips_base_compression_flags): ...to this.
35358 (UMIPS_12BIT_OFFSET_P): New macro.
35359 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
35360 (MULTILIB_DIRNAMES): Likewise.
35361 2013-03-20 Richard Biener <rguenther@suse.de>
35362
35363 PR tree-optimization/56661
35364 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
35365 the result does not have to be distinct.
35366
35367 2013-03-20 Richard Biener <rguenther@suse.de>
35368
35369 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
35370 remap_gimple_op_r.
35371
35372 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35373 Steven Bosscher <steven@gcc.gnu.org>
35374
35375 PR rtl-optimization/56605
35376 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
35377
35378 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
35379
35380 PR bootstrap/56656
35381 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
35382 that require movd instead of movq.
35383
35384 2013-03-20 Richard Biener <rguenther@suse.de>
35385
35386 * tree-ssa-structalias.c (struct variable_info): Add pointer
35387 to the first field of an aggregate with sub-vars. Make
35388 this and the pointer to the next subfield its ID.
35389 (vi_next): New function.
35390 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
35391 storedanything_id, integer_id): Increment by one.
35392 (new_var_info, get_call_vi, lookup_call_clobber_vi,
35393 get_call_clobber_vi): Adjust.
35394 (solution_set_expand): Simplify and speedup.
35395 (solution_set_add): Inline into ...
35396 (set_union_with_increment): ... this. Adjust accordingly.
35397 (do_sd_constraint): Likewise.
35398 (do_ds_constraint): Likewise.
35399 (do_complex_constraint): Simplify.
35400 (build_pred_graph): Adjust.
35401 (solve_graph): Likewise. Simplify and speedup.
35402 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
35403 get_constraint_for_component_ref, get_constraint_for_1,
35404 first_vi_for_offset, first_or_preceding_vi_for_offset,
35405 create_function_info_for, create_variable_info_for_1,
35406 create_variable_info_for, intra_create_variable_infos): Adjust.
35407 (init_base_vars): Push NULL for ID zero.
35408 (compute_points_to_sets): Adjust.
35409
35410 2013-03-20 Richard Biener <rguenther@suse.de>
35411
35412 * cfgloop.c (verify_loop_structure): Streamline and avoid
35413 ICEing on corrupt loop tree.
35414 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
35415 loop tree.
35416
35417 2013-03-20 Richard Biener <rguenther@suse.de>
35418
35419 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
35420 check whether an SSA update is needed.
35421
35422 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
35423
35424 * config/mips/constraints.md (T): Rename to...
35425 (Yf): ...this.
35426 (U): Rename to...
35427 (Yd): ...this.
35428 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
35429 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
35430
35431 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35432
35433 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
35434 (*subsi3_carryin_uxtw): Likewise.
35435
35436 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35437
35438 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
35439 (*rorsi3_insn_uxtw): Likewise.
35440
35441 2013-03-19 Ian Bolton <ian.bolton@arm.com>
35442
35443 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
35444 (*extrsi5_insn_uxtw): Likewise.
35445
35446 2013-03-19 Richard Biener <rguenther@suse.de>
35447
35448 PR tree-optimization/56273
35449 * passes.c (init_optimization_passes): Move second VRP after DOM.
35450
35451 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
35452
35453 * config/i386/i386.md (*movti_internal): Merge from
35454 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
35455 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
35456 nox64 isa attributes.
35457
35458 2013-03-18 Richard Biener <rguenther@suse.de>
35459
35460 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
35461 (unite): Likewise.
35462 (merge_node_constraints): Likewise.
35463 (build_succ_graph): Likewise.
35464 (valid_graph_edge): Inline into single caller.
35465 (unify_nodes): Likewise. Use bitmap_set_bit return value
35466 and cache varinfo.
35467 (scc_visit): Fix formatting and variable use.
35468 (do_sd_constraint): Use gcc_checking_assert.
35469 (do_ds_constraint): Likewise.
35470 (do_complex_constraint): Likewise.
35471 (condense_visit): Likewise. Cleanup.
35472 (dump_pred_graph): New function.
35473 (perform_var_substitution): Dump the pred-graph before
35474 variable substitution.
35475 (find_equivalent_node): Use gcc_checking_assert.
35476 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
35477
35478 2013-03-18 Richard Biener <rguenther@suse.de>
35479
35480 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35481 Remove cond_expr_stmt_list argument and do not gimplify the
35482 built expression.
35483 (vect_loop_versioning): Adjust.
35484 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
35485 Cleanup to use less temporaries.
35486 (vect_create_data_ref_ptr): Cleanup.
35487
35488 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35489
35490 PR tree-optimization/56635
35491 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
35492 require types_compatible_p types.
35493
35494 2013-03-18 Nick Clifton <nickc@redhat.com>
35495
35496 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
35497 spurious backslash.
35498
35499 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
35500 Add missing line to comment describing function.
35501
35502 2013-03-18 Richard Biener <rguenther@suse.de>
35503
35504 PR tree-optimization/56210
35505 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35506 Handle string / character search functions.
35507 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
35508
35509 2013-03-18 Richard Biener <rguenther@suse.de>
35510
35511 PR middle-end/56483
35512 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
35513 and implement properly.
35514 * gimple.h (gimple_cond_single_var_p): Remove.
35515
35516 2013-03-18 Richard Biener <rguenther@suse.de>
35517
35518 * tree-data-ref.h (find_data_references_in_loop): Declare.
35519 * tree-data-ref.c (get_references_in_stmt): Use a stack
35520 vector pre-allocated in the callers.
35521 (find_data_references_in_stmt): Adjust.
35522 (graphite_find_data_references_in_stmt): Likewise.
35523 (create_rdg_vertices): Likewise.
35524 (find_data_references_in_loop): Export.
35525 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
35526 Compute dependences here...
35527 (vect_analyze_data_refs): ...not here. When we encounter
35528 a non-vectorizable data reference in basic-block vectorization
35529 truncate the data reference vector. Do not bother to
35530 fixup data-dependence information for gather loads.
35531 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
35532 of data references, as reported.
35533
35534 2013-03-18 Richard Biener <rguenther@suse.de>
35535
35536 PR tree-optimization/3713
35537 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
35538 has_constants and expr.
35539 (stmt_has_constants): Properly valueize SSA names when deciding
35540 whether the stmt has constants.
35541
35542 2013-03-18 Richard Biener <rguenther@suse.de>
35543
35544 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
35545 whole function when there is nothing to do.
35546 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
35547 * tree-vectorizer.c (vectorize_loops): Update virtual and
35548 loop-closed SSA once.
35549 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
35550
35551 2013-03-18 Richard Biener <rguenther@suse.de>
35552
35553 PR middle-end/56113
35554 * domwalk.c (bb_postorder): New global static.
35555 (cmp_bb_postorder): New function.
35556 (walk_dominator_tree): Replace scheme imposing an order for
35557 visiting dominator sons by one sorting them at the time they
35558 are pushed on the stack.
35559
35560 2013-03-18 Richard Biener <rguenther@suse.de>
35561
35562 PR tree-optimization/39326
35563 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
35564 (struct mem_ref): Replace mem member with ao_ref typed member.
35565 (MEM_ANALYZABLE): Adjust.
35566 (memref_eq): Likewise.
35567 (mem_ref_alloc): Likewise.
35568 (gather_mem_refs_stmt): Likewise.
35569 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
35570 (execute_sm_if_changed_flag_set): Adjust.
35571 (execute_sm): Likewise.
35572 (ref_always_accessed_p): Likewise.
35573 (refs_independent_p): Likewise.
35574 (can_sm_ref_p): Likewise.
35575
35576 2013-03-18 Jakub Jelinek <jakub@redhat.com>
35577
35578 PR c/56566
35579 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
35580 return 1 even for !unsignedp.
35581
35582 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35583
35584 * config/i386/i386.md (isa): Add x64 and nox64.
35585 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
35586 (*pushtf): Enable *roF alternative for x64 isa only.
35587 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
35588 mode attribute of integer alternatives to DImode for TARGET_64BIT.
35589 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
35590 (*movtf_internal): Merge from *movtf_internal_rex64 and
35591 *movtf_internal_sse. Use x64 and nox64 isa attributes.
35592 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
35593 nox64 isa attributes.
35594 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
35595 nox64 isa attributes.
35596 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
35597
35598 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
35599
35600 * config/alpha/alpha.c (TARGET_LRA_P): New define.
35601
35602 2013-03-17 Jakub Jelinek <jakub@redhat.com>
35603
35604 PR target/56640
35605 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
35606 class names. Remove trailing comma after "ALL_REGS".
35607
35608 2013-03-16 Jan Hubicka <jh@suse.cz>
35609
35610 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
35611 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
35612 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
35613 of cgraph_get_create_node.
35614 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
35615
35616 2013-03-16 Jason Merrill <jason@redhat.com>
35617
35618 PR debug/49090
35619 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
35620 with DW_AT_default_value.
35621
35622 2013-03-16 Jakub Jelinek <jakub@redhat.com>
35623
35624 * BASE-VER: Set to 4.9.0.
35625
35626 2013-03-14 Andi Kleen <ak@linux.intel.com>
35627
35628 PR target/56619
35629 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
35630 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
35631 Document _x* TSX intrinsics.
35632
35633 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35634 David Holsgrove <david.holsgrove@xilinx.com>
35635
35636 * configure.ac: Add MicroBlaze TLS support detection.
35637 * configure: Regenerate.
35638 * config/microblaze/microblaze-protos.h
35639 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
35640 symbol_mentioned_p, label_mentioned_p): Add prototypes.
35641 * config/microblaze/microblaze.c (microblaze_address_type): Add
35642 ADDRESS_TLS and tls_reloc address types.
35643 (microblaze_address_info): Add tls_reloc.
35644 (TARGET_HAVE_TLS): Define.
35645 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
35646 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
35647 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
35648 load_tls_operand, microblaze_call_tls_get_addr,
35649 microblaze_legitimize_tls_address): New functions.
35650 (microblaze_classify_unspec): Handle UNSPEC_TLS.
35651 (get_base_reg): Use microblaze_tls_symbol_p.
35652 (microblaze_classify_address): Handle TLS.
35653 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
35654 label_mentioned_p and microblaze_tls_referenced_p.
35655 (microblaze_legitimize_address): Handle TLS.
35656 (microblaze_address_insns): Handle ADDRESS_TLS.
35657 (pic_address_needs_scratch): Handle TLS.
35658 (print_operand_address): Handle TLS.
35659 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
35660 (microblaze_expand_move): Handle TLS.
35661 (microblaze_legitimate_constant_p): Check
35662 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
35663 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
35664 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
35665 (PIC_OFFSET_TABLE_REGNUM): Set.
35666 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
35667 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
35668 (addsi3, movsi_internal2, movdf_internal): Update constraints
35669 * config/microblaze/predicates.md (arith_plus_operand): Define
35670 (move_operand): Redefine as move_src_operand,
35671 check microblaze_tls_referenced_p.
35672
35673 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35674
35675 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
35676 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
35677
35678 2013-03-14 Ian Bolton <ian.bolton@arm.com>
35679
35680 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
35681 CC mode for AND.
35682
35683 2013-03-14 Jakub Jelinek <jakub@redhat.com>
35684
35685 PR tree-optimization/53265
35686 * common.opt (Waggressive-loop-optimizations): New option.
35687 * tree-ssa-loop-niter.c: Include tree-pass.h.
35688 (do_warn_aggressive_loop_optimizations): New function.
35689 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
35690 if number_of_latch_executions returned constant.
35691 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
35692 early. If number_of_latch_executions returned constant, set
35693 nb_iterations_upper_bound back to it.
35694 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
35695 field.
35696 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
35697 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
35698
35699 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
35700 (MULTILIB_OSDIRNAMES): Set.
35701 * genmultilib: If defaultosdirname doesn't start with :: , set
35702 defaultosdirname2 instead, clear it and emit two . multilib_raw
35703 entries instead of just one.
35704
35705 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
35706
35707 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35708 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
35709 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
35710 (SUBTARGET_OVERRIDE_OPTIONS): New.
35711
35712 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
35713
35714 PR target/49880
35715 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
35716 (musermode): Convert to Var(TARGET_USERMODE).
35717 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
35718 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
35719 * config/sh/sh.c (sh_option_override): Use
35720 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
35721 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
35722 condition.
35723 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
35724 TARGET_SH4.
35725 (udivsi3_i4_single, divsi3_i4_single): Use
35726 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
35727
35728 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
35729
35730 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
35731 default setting.
35732
35733 2013-03-13 Richard Biener <rguenther@suse.de>
35734
35735 PR tree-optimization/56608
35736 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
35737 calls when vectorizing basic-blocks.
35738
35739 2013-03-13 Jakub Jelinek <jakub@redhat.com>
35740
35741 PR plugins/45078
35742 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
35743 tm_file.
35744
35745 2013-03-12 Jakub Jelinek <jakub@redhat.com>
35746
35747 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
35748
35749 2013-03-11 Jan Hubicka <jh@suse.cz>
35750
35751 PR lto/56557
35752 * lto-streamer-out.c (output_symbol_p): Skip references from
35753 constructors of external variables.
35754
35755 2013-03-11 Jan Hubicka <jh@suse.cz>
35756
35757 PR middle-end/56571
35758 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
35759 from pseudos.
35760 * emit-rtl.c (verify_rtx_sharing): Likewise.
35761 (copy_insn_1): Likewise.
35762 * rtl.c (copy_rtx): Likewise.
35763
35764 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
35765
35766 PR target/56591
35767 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
35768 output_operand_lossage message.
35769
35770 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
35771
35772 PR target/56470
35773 * arm.c (shift_op): Validate RTL pattern on the fly.
35774 (arm_print_operand, case 'S'): Don't use shift_operator to validate
35775 the RTL.
35776
35777 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35778
35779 PR target/56347
35780 * config/pa/pa.md (call_value): Check for calls to powf and direct to
35781 new call patterns that clobber %fr12.
35782 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
35783 split and postreload patterns.
35784 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
35785 registers %fr12 and %fr12R as call used.
35786
35787 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
35788
35789 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
35790 (canon_address, record_store, replace_read, check_mem_read_rtx,
35791 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
35792 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
35793 rest_of_handle_dse): Likewise.
35794
35795 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
35796
35797 PR middle-end/56524
35798 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
35799 Add base_optabs.
35800 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
35801 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
35802 (save_optabs_if_changed): Replace with...
35803 (init_tree_optimization_optabs): ...this.
35804 * optabs.c (save_optabs_if_changed): Rename to...
35805 (init_tree_optimization_optabs): ...this. Take the optimization node
35806 as argument. Do nothing if the base optabs are already correct.
35807 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
35808 to recompute optabs.
35809 * function.h (function): Remove optabs field.
35810 * function.c (invoke_set_current_function_hook): Call
35811 init_tree_optimization_optabs. Use the result to initialize
35812 this_fn_optabs.
35813
35814 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
35815
35816 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
35817 if GTMA_HAS_NO_INSTRUMENTATION.
35818 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
35819 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
35820 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
35821 * gimple-pretty-print.c (dump_gimple_transaction): Handle
35822 GTMA_HAS_NO_INSTRUMENTATION.
35823
35824 2013-03-08 Jakub Jelinek <jakub@redhat.com>
35825
35826 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
35827 libasan_preinit.o.
35828
35829 2013-03-08 Marek Polacek <polacek@redhat.com>
35830 Jakub Jelinek <jakub@redhat.com>
35831
35832 PR tree-optimization/56478
35833 * predict.c (is_comparison_with_loop_invariant_p): Change the
35834 type of loop_step to tree.
35835 (predict_loops): Adjust.
35836 (predict_iv_comparison): Perform the computations on double_ints.
35837
35838 2013-03-08 Richard Biener <rguenther@suse.de>
35839
35840 PR tree-optimization/56570
35841 * tree-cfg.c (verify_expr_location_1): Verify locations for
35842 DECL_DEBUG_EXPR.
35843 * tree-sra.c (create_access_replacement): Strip locations
35844 from DECL_DEBUG_EXPRs.
35845
35846 2013-03-08 Richard Biener <rguenther@suse.de>
35847
35848 * tree-inline.c (expand_call_inline): Do not associate
35849 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
35850 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
35851
35852 2013-03-08 Richard Biener <rguenther@suse.de>
35853
35854 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
35855 or block changes with -Og. Fix for location / block encoding
35856 changes and PHI arguments with locations.
35857
35858 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
35859
35860 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
35861 for all counters.
35862 (struct output_info): Likewise.
35863 (register_overhead): Remove bad gcc_assert.
35864 (bitmap_find_bit): If there is only a single bitmap element, do not
35865 count a miss as a search.
35866 (print_statistics): Update for counter type changes.
35867 (dump_bitmap_statistics): Likewise. Print headers such that they
35868 are properly lined up with the printed counters.
35869
35870 2013-03-07 Jakub Jelinek <jakub@redhat.com>
35871
35872 PR tree-optimization/56559
35873 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
35874 check that it has only a single use.
35875
35876 2013-03-07 Richard Biener <rguenther@suse.de>
35877
35878 * doc/invoke.texi (fwhole-program): Discourage use in combination
35879 with -flto.
35880
35881 2013-03-06 Jakub Jelinek <jakub@redhat.com>
35882
35883 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
35884
35885 PR tree-optimization/56539
35886 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
35887 instead of GSI_CONTINUE_LINKING as last argument to
35888 force_gimple_operand_gsi. Adjust function comment.
35889
35890 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
35891 aarch64-cores.def.
35892
35893 PR middle-end/56548
35894 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
35895 promoted mode, convert the result back to the original mode.
35896
35897 2013-03-06 Richard Biener <rguenther@suse.de>
35898
35899 PR middle-end/56294
35900 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
35901 (insert_updated_phi_nodes_compare_uids): New function.
35902 (update_ssa): Sort symbols_to_rename after UID before
35903 traversing it to insert PHI nodes.
35904
35905 2013-03-06 Richard Biener <rguenther@suse.de>
35906
35907 PR middle-end/50494
35908 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
35909 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
35910
35911 Revert
35912 2013-02-13 Richard Biener <rguenther@suse.de>
35913
35914 PR lto/50494
35915 * varasm.c (output_constant_def_1): Get the decl representing
35916 the constant as argument.
35917 (output_constant_def): Wrap output_constant_def_1.
35918 (make_decl_rtl): Use output_constant_def_1 with the decl
35919 representing the constant.
35920 (build_constant_desc): Optionally re-use a decl already
35921 representing the constant.
35922 (tree_output_constant_def): Adjust.
35923
35924 2013-03-06 Joey Ye <joey.ye@arm.com>
35925
35926 PR lto/50293
35927 * gcc.c (convert_white_space): New function.
35928 (main): Handles white space in function name.
35929
35930 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
35931
35932 PR target/56529
35933 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
35934 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
35935 to SH_DIV_CALL_TABLE for TARGET_SH2.
35936 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
35937 list.
35938 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
35939 call-table options.
35940
35941 2013-03-05 Sterling Augustine <saugustine@google.com>
35942 Cary Coutant <ccoutant@google.com>
35943
35944 PR debug/55364
35945 * dwarf2out.c (resolve_addr): Don't call
35946 remove_loc_list_addr_table_entries a second time for the same
35947 expression.
35948
35949 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35950
35951 PR debug/56510
35952 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
35953 (avoid_complex_debug_insns): New function.
35954 (expand_debug_locations): Call it.
35955
35956 PR rtl-optimization/56484
35957 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35958 lifetimes of hard registers on small register class machines.
35959
35960 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35961
35962 * config/microblaze/microblaze-protos.h: Rename
35963 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
35964 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
35965 fast_interrupt.
35966 (microblaze_fast_interrupt_function_p): New function.
35967 (microblaze_is_interrupt_handler): Rename to
35968 microblaze_is_interrupt_variant and add fast_interrupt check.
35969 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
35970 (save_restore_insns): Likewise.
35971 (compute_frame_size): Likewise.
35972 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
35973 (microblaze_globalize_label): Likewise.
35974 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
35975 * config/microblaze/microblaze.md: Use wrapper
35976 microblaze_is_interrupt_variant.
35977
35978 2013-03-05 Kai Tietz <ktietz@redhat.com>
35979
35980 * sdbout.c (sdbout_one_type): Switch to current function's section
35981 supporting cold/hot.
35982
35983 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
35984
35985 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
35986 -mxl-reorder.
35987
35988 2013-03-05 Jakub Jelinek <jakub@redhat.com>
35989
35990 PR middle-end/56461
35991 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
35992 if VALGRIND_GET_VBITS is defined, temporarily make object
35993 memory all defined, and restore previous valgrind addressability
35994 and definability afterwards. Free this_object at the end.
35995
35996 PR middle-end/56461
35997 * lra.c (lra): Call lra_clear_live_ranges if live_p,
35998 right before calling lra_create_live_ranges, also call it
35999 when clearing live_p. Only call lra_clear_live_ranges
36000 at the end if live_p.
36001
36002 PR middle-end/56461
36003 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
36004
36005 2013-03-05 Richard Biener <rguenther@suse.de>
36006
36007 PR tree-optimization/56521
36008 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
36009 value-id.
36010
36011 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
36012
36013 PR c++/55135
36014 * except.h (remove_unreachable_eh_regions): New prototype.
36015 * except.c (remove_eh_handler_splicer): New function, split out
36016 of remove_eh_handler.
36017 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
36018 warning about running it on many EH regions one at a time.
36019 (remove_unreachable_eh_regions_worker): New function, walk the
36020 EH tree in depth-first order and remove non-marked regions.
36021 (remove_unreachable_eh_regions): New function.
36022 * tree-eh.c (mark_reachable_handlers): New function, split out
36023 from remove_unreachable_handlers.
36024 (remove_unreachable_handlers): Use mark_reachable_handlers and
36025 remove_unreachable_eh_regions.
36026 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
36027 and remove_unreachable_eh_regions.
36028
36029 2013-03-05 Richard Biener <rguenther@suse.de>
36030
36031 PR middle-end/56525
36032 * loop-init.c (fix_loop_structure): Remove loops in two stages,
36033 not freeing them until the end.
36034
36035 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36036
36037 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
36038
36039 2013-03-05 Richard Biener <rguenther@suse.de>
36040
36041 PR tree-optimization/56270
36042 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
36043 of loads after scheduling an SLP instance.
36044
36045 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36046
36047 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
36048 tic6x.exp.
36049 (check_gcc_parallelize): Run guality.exp as a separate job from
36050 vect.exp with unsorted.exp and $(dg_target_exps) separately from
36051 struct-layout-1.exp with stackalign.exp.
36052
36053 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
36054
36055 PR middle-end/56461
36056 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
36057 load_index sbitmap even if some bit in it isn't set.
36058
36059 PR middle-end/56461
36060 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
36061 (discover_iteration_bound_by_body_walk): Change queues to
36062 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
36063 spelling in comment. Call safe_push on queues[bound_index] directly.
36064 Release queues[queue_index] in every iteration unconditionally.
36065 Release bounds vector.
36066
36067 PR middle-end/56461
36068 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
36069 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
36070 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
36071 inner_phis vector.
36072
36073 2013-03-05 Richard Biener <rguenther@suse.de>
36074
36075 PR lto/56515
36076 * tree-inline.c (remap_blocks_to_null): New function.
36077 (expand_call_inline): When expanding a call stmt without
36078 an associated block inline remap all callee blocks to NULL.
36079
36080 2013-03-05 Jakub Jelinek <jakub@redhat.com>
36081
36082 PR rtl-optimization/56494
36083 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
36084 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
36085 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
36086
36087 PR middle-end/56461
36088 * sel-sched-ir.c (free_sched_pools): Release
36089 succs_info_pool.stack[succs_info_pool.max_top] vectors too
36090 if succs_info_pool.max_top isn't -1.
36091
36092 PR bootstrap/56509
36093 * opts.c (opts_obstack, opts_concat): Moved to...
36094 * opts-common.c (opts_obstack, opts_concat): ... here.
36095
36096 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36097
36098 PR middle-end/56461
36099 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
36100
36101 2013-03-04 Martin Jambor <mjambor@suse.cz>
36102
36103 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
36104 all appropriate places.
36105
36106 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
36107
36108 PR tree-optimization/56424
36109 * ipa-split.c (split_function): Do not set the RSO flag if result is
36110 not by reference and its type is a register type.
36111
36112 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
36113
36114 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
36115 (microblaze_legitimate_pic_operand): Likewise
36116 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
36117 new function microblaze_legitimate_pic_operand
36118 * config/microblaze/microblaze-protos.h
36119 (microblaze_legitimate_pic_operand): Declare.
36120
36121 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36122
36123 * config/microblaze/predicates.md (call_insn_simple_operand):
36124 New predicate for supported rtx code types.
36125 * config/microblaze/microblaze.md (call_internal1): Use
36126 call_insn_simple_operand predicate.
36127
36128 2013-03-04 Jakub Jelinek <jakub@redhat.com>
36129
36130 PR middle-end/56461
36131 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
36132 partitions.ordered_remove.
36133
36134 PR middle-end/56461
36135 * tree-vect-stmts.c (vectorizable_conversion): Don't call
36136 vec_oprnds0.create (1) for modifier == NONE.
36137
36138 PR middle-end/56461
36139 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
36140 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
36141 vec_oprnds1 right before pushing anything to it for
36142 scalar_shift_arg.
36143
36144 PR middle-end/56461
36145 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
36146 set nbbs to 0 instead of having separate code path.
36147 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
36148 instead of false as last argument if returning NULL.
36149
36150 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
36151
36152 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
36153 the attribute is now called "target" instead of "option".
36154 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
36155 * doc/tm.texi.in (Target Attributes): Likewise document the correct
36156 attribute/pragma name for TARGET_OPTION_VALID_P and
36157 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
36158 * doc/tm.texi: Regenerated.
36159
36160 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
36161
36162 * config/microblaze/microblaze.c:
36163 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
36164 * config/microblaze/microblaze.h: Add -mxl-reorder to
36165 DRIVER_SELF_SPECS.
36166 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
36167 instructions emitted if TARGET_REORDER.
36168 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
36169 or 0 for -m/-mno case, but initialises as 2 to detect default use case
36170 separately.
36171
36172 2013-03-01 Xinliang David Li <davidxl@google.com>
36173
36174 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
36175 walk length.
36176
36177 2013-03-01 Jakub Jelinek <jakub@redhat.com>
36178
36179 PR middle-end/56461
36180 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
36181 vector even when returning true. Fix up function comment formatting.
36182
36183 PR middle-end/56461
36184 * ira-build.c (ira_loop_nodes_count): New variable.
36185 (create_loop_tree_nodes): Initialize it.
36186 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
36187
36188 PR middle-end/56461
36189 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
36190 method on dr_chain and result_chain.
36191 * tree-vect-stmts.c (vectorizable_store): Only call
36192 result_chain.create if j == 0.
36193
36194 PR middle-end/56461
36195 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
36196 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
36197 before overwriting it.
36198
36199 2013-03-01 Tobias Burnus <burnus@net-b.de>
36200
36201 * doc/extended.texi (C Extensions): Change order in @menu
36202 to match @node.
36203 (Other MIPS Built-in Functions): Move last MIPS entry before
36204 "picoChip Built-in Functions".
36205 (SH Built-in Functions): Move after RX Built-in Functions.
36206 * doc/gcc.texi (Introduction): Change order in @menu
36207 to match @node.
36208 * doc/md.texi (Constraints): Ditto.
36209 * gty.texi (Type Information): Ditto.
36210 (User-provided marking routines for template types): Make
36211 subsection.
36212 * doc/invoke.texi (AArch64 Options): Move before
36213 "Adapteva Epiphany Options".
36214
36215 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
36216 Jakub Jelinek <jakub@redhat.com>
36217
36218 PR sanitizer/56454
36219 * asan.c (gate_asan): Lookup no_sanitize_address instead of
36220 no_address_safety_analysis attribute.
36221 * doc/extend.texi (no_address_safety_attribute): Rename to
36222 no_sanitize_address attribute, mention no_address_safety_analysis
36223 attribute as deprecated alias.
36224
36225 2013-02-28 Jakub Jelinek <jakub@redhat.com>
36226
36227 PR middle-end/56461
36228 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
36229 type to vec<vec<tree> > *.
36230 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
36231 to be vec<tree> instead of vec<tree> *, set vec_defs
36232 to vNULL and call vec_defs.create (number_of_vects), adjust other
36233 uses of vec_defs.
36234 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
36235 vectorizable_condition): Adjust vect_get_slp_defs callers.
36236
36237 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36238
36239 * config/aarch64/aarch64.c
36240 (aarch64_float_const_representable): Remove unused variable.
36241
36242 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36243
36244 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
36245
36246 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36247
36248 * config/aarch64/aarch64-builtins.c
36249 (aarch64_init_simd_builtins): Make static.
36250
36251 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
36252
36253 * config/aarch64/aarch64.c
36254 (aarch64_simd_make_constant): Make static.
36255
36256 2013-02-28 Martin Jambor <mjambor@suse.cz>
36257
36258 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
36259 with no initialization to the RHS of debug statements.
36260
36261 2013-02-28 Martin Jambor <mjambor@suse.cz>
36262
36263 PR tree-optimization/56294
36264 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
36265 Adjust dumping.
36266 (get_access_replacement): Do not call create_access_replacement.
36267 Assert a replacement exists.
36268 (get_repl_default_def_ssa_name): Create the replacement declaration
36269 itself.
36270
36271 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36272
36273 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
36274 final_end_function.
36275
36276 2013-02-28 Marek Polacek <polacek@redhat.com>
36277
36278 PR rtl-optimization/56466
36279 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
36280 if we're changing a loop.
36281 (peel_loops_completely): Likewise.
36282
36283 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
36284
36285 PR c++/55813
36286 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
36287
36288 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36289
36290 PR target/56445
36291 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
36292 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
36293 INTX_FTYPE_FX, FX_FTYPE_INTX.
36294 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
36295
36296 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36297
36298 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
36299 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
36300 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
36301 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
36302 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
36303 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
36304 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
36305 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
36306 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
36307 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
36308 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
36309 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
36310 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
36311 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
36312 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
36313 (avrxmega6): Increase max flash segments from 5 to 6.
36314 * config/avr/t-multilib: Regenerate.
36315 * config/avr/avr-tables.opt: Regenerate.
36316 * doc/avr-mmcu.texi: Regenerate.
36317
36318 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
36319
36320 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
36321 (avr_device_to_arch): Rename to avr_device_to_ld.
36322 (avr_device_to_as): New prototype.
36323 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
36324 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
36325 * config/avr/driver-avr.c (avr_device_to_as): New.
36326 (avr_device_to_arch): Rename to avr_device_to_ld.
36327
36328 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36329
36330 PR middle-end/56461
36331 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
36332 method on dr_chain and result_chain.
36333
36334 PR middle-end/56461
36335 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
36336 pointer_set_destroy on not_executed_last_iteration.
36337
36338 PR middle-end/56461
36339 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
36340
36341 PR middle-end/56461
36342 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
36343 FOR_EACH_DEFINED_FUNCTION when freeing state.
36344
36345 PR middle-end/56461
36346 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
36347 pool_free.
36348 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
36349 overwriting it.
36350
36351 PR middle-end/56461
36352 * ipa-cp.c (decide_whether_version_node): Call vec_free on
36353 known_aggs[i].items and release known_aggs vector.
36354
36355 PR middle-end/56461
36356 * ipa-reference.c (propagate): Free node_info even for alias nodes.
36357
36358 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36359
36360 * config/microblaze/microblaze.c (microblaze_emit_compare):
36361 Use xor for EQ/NE comparisions.
36362 * config/microblaze/microblaze.md (cstoresf4): Add constraints
36363 (cbranchsf4): Adjust operator to comparison_operator.
36364
36365 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36366
36367 PR middle-end/56461
36368 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
36369 vector.
36370 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
36371 vec_safe_push, always update *slot.
36372 (redirect_edge_var_map_clear): Use vec_free.
36373 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
36374 (free_var_map_entry): Use vec_free.
36375 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
36376 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
36377
36378 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
36379
36380 PR middle-end/45472
36381 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
36382 when the may_trap_p bit of the exprs being merged differs.
36383 Reorder tests for speculativeness in the logical and operator.
36384
36385 2013-02-27 Jakub Jelinek <jakub@redhat.com>
36386
36387 * incpath.c (add_standard_paths): Use reconcat instead of concat
36388 where appropriate and avoid leaking memory.
36389
36390 * opts.h: Include obstack.h.
36391 (opts_concat): New prototype.
36392 (opts_obstack): New declaration.
36393 * opts.c (opts_concat): New function.
36394 (opts_obstack): New variable.
36395 (init_options_struct): Call gcc_init_obstack on opts_obstack.
36396 (finish_options): Use opts_concat instead of concat
36397 and XOBNEWVEC instead of XNEWVEC.
36398 * opts-common.c (generate_canonical_option, decode_cmdline_option,
36399 generate_option): Likewise.
36400 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
36401 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
36402
36403 PR target/56455
36404 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
36405 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
36406
36407 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36408
36409 PR middle-end/56461
36410 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
36411
36412 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36413
36414 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
36415 (arm_block_move_unaligned_straight): Likewise.
36416 (arm_adjust_block_mem): Likewise.
36417
36418 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
36419
36420 PR target/48901
36421 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
36422 temp, cond and label.
36423 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
36424
36425 PR target/52500
36426 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
36427 * config/c6x/c6x.h (dbx_register_map): Update declaration.
36428
36429 PR target/52501
36430 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
36431 of prologue/epilogue functions.
36432
36433 PR target/52550
36434 * config/tilegx/tilegx.c (tilegx_expand_prologue):
36435 Remove unused variable cfa_offset.
36436 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
36437
36438 PR target/54639
36439 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
36440 type promotion to unsigned.
36441
36442 PR target/54640
36443 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
36444 for HOST_WIDE_INT of 32 bit / same size as int.
36445 (arm_block_move_unaligned_straight): Likewise.
36446 (arm_adjust_block_mem): Likewise.
36447
36448 PR target/54662
36449 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
36450 ALL_CFLAGS.
36451
36452 2013-02-26 Marek Polacek <polacek@redhat.com>
36453
36454 PR tree-optimization/56426
36455 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
36456
36457 2013-02-26 Richard Biener <rguenther@suse.de>
36458
36459 PR target/56444
36460 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
36461 unused variable loops.
36462
36463 2013-02-26 Jakub Jelinek <jakub@redhat.com>
36464
36465 PR tree-optimization/56448
36466 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
36467 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
36468 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
36469 later operands of the references, or even first operand for
36470 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
36471
36472 PR tree-optimization/56443
36473 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
36474 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
36475 to type_for_mode langhook.
36476
36477 2013-02-25 Matt Turner <mattst88@gmail.com>
36478
36479 * doc/invoke.texi: Document r4700.
36480
36481 2013-02-25 Richard Biener <rguenther@suse.de>
36482
36483 PR tree-optimization/56175
36484 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
36485 split out from ...
36486 (simplify_bitwise_binary): ... here. Also guard the conversion
36487 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
36488
36489 2013-02-25 Catherine Moore <clm@codesourcery.com>
36490
36491 Revert:
36492 2013-02-24 Catherine Moore <clm@codesourcery.com>
36493 Maciej W. Rozycki <macro@codesourcery.com>
36494 Tom de Vries <tom@codesourcery.com>
36495 Nathan Sidwell <nathan@codesourcery.com>
36496 Iain Sandoe <iain@codesourcery.com>
36497 Nathan Froyd <froydnj@codesourcery.com>
36498 Chao-ying Fu <fu@mips.com>
36499
36500 * doc/extend.texi: (micromips, nomicromips, nocompression):
36501 Document new function attributes.
36502 * doc/invoke.texi (minterlink-compressed, mmicromips,
36503 m14k, m14ke, m14kec): Document new options.
36504 (minterlink-mips16): Update documentation.
36505 * doc/md.texi (ZC, ZD): Document new constraints.
36506 * configure.ac (gcc_cv_as_micromips): Check if linker
36507 supports the .set micromips directive.
36508 * configure: Regenerate.
36509 * config.in: Regenerate.
36510 * config/mips/mips-tables.opt: Regenerate.
36511 * config/mips/micromips.md: New file.
36512 * constraints.md (ZC, AD): New constraints.
36513 * config/mips/predicates.md (movep_src_register): New predicate.
36514 (movep_src_operand): New predicate.
36515 (non_volatile_mem_operand): New predicate.
36516 * config/mips/mips.md (multimem): New type.
36517 (length): Differentiate between 17-bit and 18-bit branch offsets.
36518 (MOVEP1, MOVEP2): New mode iterator.
36519 (mov_<load>l): Use ZC constraint.
36520 (mov_<load>r): Likewise.
36521 (mov_<store>l): Likewise.
36522 (mov_<store>r): Likewise.
36523 (*branch_equality<mode>_inverted): Add microMIPS support.
36524 (*branch_equality<mode>): Likewise.
36525 (*jump_absolute): Likewise.
36526 (indirect_jump_<mode>): Likewise.
36527 (tablejump_<mode>): Likewise.
36528 (<optab>_internal): Likewise.
36529 (sibcall_internal): Likewise.
36530 (sibcall_value_internal): Likewise.
36531 (prefetch): Use constraint ZD.
36532 * config/mips/mips.opt (minterlink-compressed): New option.
36533 (minterlink-mips16): Now an alias for minterlink-compressed.
36534 (mmicromips): New option.
36535 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36536 (compare_and_swap_12): Likewise.
36537 (sync_add<mode>): Likewise.
36538 (sync_<optab>_12): Likewise.
36539 (sync_old_<optab>_12): Likewise.
36540 (sync_new_<optab>_12): Likewise.
36541 (sync_nand_12): Likewise.
36542 (sync_old_nand_12): Likewise.
36543 (sync_new_nand_12): Likewise.
36544 (sync_sub<mode>): Likewise.
36545 (sync_old_add<mode>): Likewise.
36546 (sync_old_sub<mode>): Likewise.
36547 (sync_new_add<mode>): Likewise.
36548 (sync_new_sub<mode>): Likewise.
36549 (sync_<optab><mode>): Likewise.
36550 (sync_old_<optab><mode>): Likewise.
36551 (sync_new_<optab><mode>): Likewise.
36552 (sync_nand<mode>): Likewise.
36553 (sync_old_nand<mode>): Likewise.
36554 (sync_new_nand<mode>): Likewise.
36555 (sync_lock_test_and_set<mode>): Likewise.
36556 (test_and_set_12): Likewise.
36557 (atomic_compare_and_swap<mode>): Likewise.
36558 (atomic_exchange<mode>_llsc): Likewise.
36559 (atomic_fetch_add<mode>_llsc): Likewise.
36560 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36561 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36562 (umips_save_restore_pattern_p): Likewise.
36563 (umips_load_store_pair_p): Likewise.
36564 (umips_output_load_store_pair): Likewise.
36565 (umips_movep_target_p): Likewise.
36566 (umips_12bit_offset_address_p): Likewise.
36567 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36568 (mips_base_mips16): Rename this...
36569 (mips_base_compression_flags): ...to this. Update all uses.
36570 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36571 (mips_mips16_decl_p): Delete.
36572 (mips_nomips16_decl_p): Delete.
36573 (mips_get_compress_on_flags): New function.
36574 (mips_get_compress_off_flags): New function.
36575 (mips_get_compress_mode): New function.
36576 (mips_get_compress_on_name): New function.
36577 (mips_get_compress_off_name): New function.
36578 (mips_insert_attributes): Support multiple compression types.
36579 (mips_merge_decl_attributes): Likewise.
36580 (umips_12bit_offset_address_p): New function.
36581 (mips_start_function_definition): Emit .set micromips directive.
36582 (mips_call_may_need_jalx_p): New function.
36583 (mips_function_ok_for_sibcall): Add microMIPS support.
36584 (mips_print_operand_punctuation): Support short delay slots and
36585 compact jumps.
36586 (umips_swm_mask, umips_swm_encoding): New.
36587 (umips_build_save_restore): New function.
36588 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36589 (was_mips16_p): Remove.
36590 (old_compression_mode): New.
36591 (mips_set_compression_mode): New function.
36592 (mips_set_current_function): Add microMIPS support.
36593 (mips_option_override): Likewise.
36594 (umips_save_restore_pattern_p): New function.
36595 (umips_output_save_restore): New function.
36596 (umips_load_store_pair_p_1): New function.
36597 (umips_load_store_pair_p): New function.
36598 (umips_output_load_store_pair_1): New function.
36599 (umips_output_load_store_pair): New function.
36600 (umips_movep_target_p) New function.
36601 (mips_prepare_pch_save): Add microMIPS support.
36602 * config/mips/mips.h (TARGET_COMPRESSION): New.
36603 (TARGET_CPU_CPP_BUILTINS): Update macro
36604 to use new compression flags and to support microMIPS.
36605 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36606 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36607 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36608 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36609 (ASM_SPEC): Support mmicromips and mno-micromips.
36610 (M16STORE_REG_P): New macro.
36611 (MIPS_CALL): Support TARGET_MICROMIPS.
36612 (MICROMIPS_J): New macro.
36613 (mips_base_mips16): Rename this...
36614 (mips_base_compression_flags): ...to this.
36615 (UMIPS_12BIT_OFFSET_P): New macro.
36616 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36617 (MULTILIB_DIRNAMES): Likewise.
36618
36619 2013-02-25 Tom de Vries <tom@codesourcery.com>
36620
36621 PR rtl-optimization/56131
36622 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
36623 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
36624 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
36625
36626 2013-02-25 Tobias Burnus <burnus@net-b.de>
36627
36628 * doc/invoke.texi (-fsanitize=): Move from optimization
36629 to debugging options.
36630
36631 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36632
36633 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
36634
36635 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
36636 Alexander Monakov <amonakov@ispras.ru>
36637
36638 PR middle-end/56077
36639 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
36640 flush pending lists also on non-jumps. Adjust comment.
36641
36642 2013-02-24 Catherine Moore <clm@codesourcery.com>
36643 Maciej W. Rozycki <macro@codesourcery.com>
36644 Tom de Vries <tom@codesourcery.com>
36645 Nathan Sidwell <nathan@codesourcery.com>
36646 Iain Sandoe <iain@codesourcery.com>
36647 Nathan Froyd <froydnj@codesourcery.com>
36648 Chao-ying Fu <fu@mips.com>
36649
36650 * doc/extend.texi: (micromips, nomicromips, nocompression):
36651 Document new function attributes.
36652 * doc/invoke.texi (minterlink-compressed, mmicromips,
36653 m14k, m14ke, m14kec): Document new options.
36654 (minterlink-mips16): Update documentation.
36655 * doc/md.texi (ZC, ZD): Document new constraints.
36656 * configure.ac (gcc_cv_as_micromips): Check if linker
36657 supports the .set micromips directive.
36658 * configure: Regenerate.
36659 * config.in: Regenerate.
36660 * config/mips/mips-tables.opt: Regenerate.
36661 * config/mips/micromips.md: New file.
36662 * constraints.md (ZC, AD): New constraints.
36663 * config/mips/predicates.md (movep_src_register): New predicate.
36664 (movep_src_operand): New predicate.
36665 (non_volatile_mem_operand): New predicate.
36666 * config/mips/mips.md (multimem): New type.
36667 (length): Differentiate between 17-bit and 18-bit branch offsets.
36668 (MOVEP1, MOVEP2): New mode iterator.
36669 (mov_<load>l): Use ZC constraint.
36670 (mov_<load>r): Likewise.
36671 (mov_<store>l): Likewise.
36672 (mov_<store>r): Likewise.
36673 (*branch_equality<mode>_inverted): Add microMIPS support.
36674 (*branch_equality<mode>): Likewise.
36675 (*jump_absolute): Likewise.
36676 (indirect_jump_<mode>): Likewise.
36677 (tablejump_<mode>): Likewise.
36678 (<optab>_internal): Likewise.
36679 (sibcall_internal): Likewise.
36680 (sibcall_value_internal): Likewise.
36681 (prefetch): Use constraint ZD.
36682 * config/mips/mips.opt (minterlink-compressed): New option.
36683 (minterlink-mips16): Now an alias for minterlink-compressed.
36684 (mmicromips): New option.
36685 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
36686 (compare_and_swap_12): Likewise.
36687 (sync_add<mode>): Likewise.
36688 (sync_<optab>_12): Likewise.
36689 (sync_old_<optab>_12): Likewise.
36690 (sync_new_<optab>_12): Likewise.
36691 (sync_nand_12): Likewise.
36692 (sync_old_nand_12): Likewise.
36693 (sync_new_nand_12): Likewise.
36694 (sync_sub<mode>): Likewise.
36695 (sync_old_add<mode>): Likewise.
36696 (sync_old_sub<mode>): Likewise.
36697 (sync_new_add<mode>): Likewise.
36698 (sync_new_sub<mode>): Likewise.
36699 (sync_<optab><mode>): Likewise.
36700 (sync_old_<optab><mode>): Likewise.
36701 (sync_new_<optab><mode>): Likewise.
36702 (sync_nand<mode>): Likewise.
36703 (sync_old_nand<mode>): Likewise.
36704 (sync_new_nand<mode>): Likewise.
36705 (sync_lock_test_and_set<mode>): Likewise.
36706 (test_and_set_12): Likewise.
36707 (atomic_compare_and_swap<mode>): Likewise.
36708 (atomic_exchange<mode>_llsc): Likewise.
36709 (atomic_fetch_add<mode>_llsc): Likewise.
36710 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
36711 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
36712 (umips_save_restore_pattern_p): Likewise.
36713 (umips_load_store_pair_p): Likewise.
36714 (umips_output_load_store_pair): Likewise.
36715 (umips_movep_target_p): Likewise.
36716 (umips_12bit_offset_address_p): Likewise.
36717 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
36718 (mips_base_mips16): Rename this...
36719 (mips_base_compression_flags): ...to this. Update all uses.
36720 (mips_attribute_table): Add micromips, nomicromips and nocompression.
36721 (mips_mips16_decl_p): Delete.
36722 (mips_nomips16_decl_p): Delete.
36723 (mips_get_compress_on_flags): New function.
36724 (mips_get_compress_off_flags): New function.
36725 (mips_get_compress_mode): New function.
36726 (mips_get_compress_on_name): New function.
36727 (mips_get_compress_off_name): New function.
36728 (mips_insert_attributes): Support multiple compression types.
36729 (mips_merge_decl_attributes): Likewise.
36730 (umips_12bit_offset_address_p): New function.
36731 (mips_start_function_definition): Emit .set micromips directive.
36732 (mips_call_may_need_jalx_p): New function.
36733 (mips_function_ok_for_sibcall): Add microMIPS support.
36734 (mips_print_operand_punctuation): Support short delay slots and
36735 compact jumps.
36736 (umips_swm_mask, umips_swm_encoding): New.
36737 (umips_build_save_restore): New function.
36738 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
36739 (was_mips16_p): Remove.
36740 (old_compression_mode): New.
36741 (mips_set_compression_mode): New function.
36742 (mips_set_current_function): Add microMIPS support.
36743 (mips_option_override): Likewise.
36744 (umips_save_restore_pattern_p): New function.
36745 (umips_output_save_restore): New function.
36746 (umips_load_store_pair_p_1): New function.
36747 (umips_load_store_pair_p): New function.
36748 (umips_output_load_store_pair_1): New function.
36749 (umips_output_load_store_pair): New function.
36750 (umips_movep_target_p) New function.
36751 (mips_prepare_pch_save): Add microMIPS support.
36752 * config/mips/mips.h (TARGET_COMPRESSION): New.
36753 (TARGET_CPU_CPP_BUILTINS): Update macro
36754 to use new compression flags and to support microMIPS.
36755 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
36756 (MIPS_ARCH_FLOAT_SPEC): Likewise.
36757 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
36758 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
36759 (ASM_SPEC): Support mmicromips and mno-micromips.
36760 (M16STORE_REG_P): New macro.
36761 (MIPS_CALL): Support TARGET_MICROMIPS.
36762 (MICROMIPS_J): New macro.
36763 (mips_base_mips16): Rename this...
36764 (mips_base_compression_flags): ...to this.
36765 (UMIPS_12BIT_OFFSET_P): New macro.
36766 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
36767 (MULTILIB_DIRNAMES): Likewise.
36768
36769 2013-02-24 Jakub Jelinek <jakub@redhat.com>
36770
36771 PR target/52555
36772 * target-globals.c (save_target_globals): For init_reg_sets and
36773 target_reinit remporarily set this_fn_optabs to this_target_optabs.
36774
36775 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
36776
36777 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
36778 * config/aarch64/t-aarch64
36779 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
36780
36781 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
36782
36783 PR inline-asm/56148
36784 * lra-constraints.c (process_alt_operands): Reload operand
36785 conflicting with earlier clobber only if no more other conflicting
36786 operands.
36787
36788 2013-02-22 Jakub Jelinek <jakub@redhat.com>
36789
36790 PR sanitizer/56393
36791 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
36792 if not linking a shared library.
36793
36794 2013-02-22 Seth LaForge <sethml@google.com>
36795
36796 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
36797
36798 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
36799
36800 * config/arm/arm.md (split for extendsidi): Update condition.
36801 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
36802 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
36803 (qhs_zextenddi_cstr): Likewise.
36804
36805 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36806
36807 PR middle-end/56420
36808 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
36809 avoid signed wrapping.
36810 (expand_mult): Handle properly multiplication by
36811 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
36812 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
36813 in the compiler if coeff is HOST_WIDE_INT_MIN.
36814 (expand_divmod): Don't make ext_op1 static, change it's type to
36815 uhwi. Avoid undefined behavior in -INTVAL (op1).
36816
36817 PR rtl-optimization/50339
36818 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
36819 field.
36820 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
36821 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
36822 into splitting_ashiftrt field.
36823 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
36824 ASHIFTRT.
36825 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
36826 choices.
36827
36828 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
36829
36830 PR middle-end/56108
36831 * trans-mem.c (execute_tm_mark): Do not expand transactions that
36832 are sure to go irrevocable.
36833
36834 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
36835
36836 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
36837 scalars are valid operands.
36838
36839 2013-02-21 Martin Jambor <mjambor@suse.cz>
36840
36841 PR tree-optimization/56310
36842 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
36843 only matching indices and non-negative final offsets.
36844 (intersect_aggregates_with_edge): Pass src_idx to
36845 agg_replacements_to_vector. Pass src_idx insstead of index to
36846 intersect_with_agg_replacements.
36847
36848 2013-02-21 Martin Jambor <mjambor@suse.cz>
36849
36850 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
36851 instead of hard-wired defaults.
36852
36853 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
36854
36855 * doc/invoke.texi (MIPS Options): Update documentation of the
36856 floating-point multiply-accumulate instruction restrictions.
36857
36858 2013-02-21 Kostya Serebryany <kcc@google.com>
36859
36860 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
36861 asan_shadow_offset on x86_64 linux.
36862
36863 2013-02-21 Richard Biener <rguenther@suse.de>
36864
36865 PR tree-optimization/56415
36866 Revert
36867 2013-02-11 Richard Biener <rguenther@suse.de>
36868
36869 PR tree-optimization/56273
36870 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
36871 first VRP run.
36872
36873 2013-02-21 Jakub Jelinek <jakub@redhat.com>
36874
36875 PR bootstrap/56258
36876 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
36877 instead of @itemx.
36878
36879 PR inline-asm/56405
36880 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
36881 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
36882
36883 2013-02-20 Jan Hubicka <jh@suse.cz>
36884
36885 PR tree-optimization/56265
36886 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
36887 when target is referenced for first time.
36888
36889 2013-02-20 Richard Biener <rguenther@suse.de>
36890
36891 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
36892 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
36893 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
36894 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
36895 not return anything.
36896 (rename_ssa_copies): Do not remove unused locals.
36897 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
36898 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
36899 * passes.c (execute_function_todo): Do not schedule unused locals
36900 removal if cleanup_tree_cfg did something.
36901 * tree-ssa-live.c (remove_unused_locals): Dump statistics
36902 about the number of removed locals.
36903
36904 2013-02-20 Richard Biener <rguenther@suse.de>
36905
36906 PR tree-optimization/56398
36907 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
36908
36909 2013-02-20 Martin Jambor <mjambor@suse.cz>
36910
36911 PR tree-optimization/55334
36912 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
36913 restricted pointers to arrays.
36914
36915 2013-02-20 Richard Biener <rguenther@suse.de>
36916 Jakub Jelinek <jakub@redhat.com>
36917
36918 PR tree-optimization/56396
36919 * tree-ssa-ccp.c (n_const_val): New static variable.
36920 (get_value): Return NULL for SSA names we don't have a lattice
36921 entry for.
36922 (ccp_initialize): Initialize n_const_val.
36923 * tree-ssa-copy.c (n_copy_of): New static variable.
36924 (init_copy_prop): Initialize n_copy_of.
36925 (get_value): Return NULL_TREE for SSA names we don't have a
36926 lattice entry for.
36927
36928 2013-02-20 Martin Jambor <mjambor@suse.cz>
36929
36930 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
36931
36932 2013-02-20 Richard Biener <rguenther@suse.de>
36933
36934 * genpreds.c (write_lookup_constraint): Do not compare first
36935 letter of the constraint again.
36936
36937 2013-02-20 Richard Biener <rguenther@suse.de>
36938
36939 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
36940 and ceil_log2.
36941 (get_use_iv_cost): Terminate hashtable walk when coming across
36942 an empty entry.
36943
36944 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
36945
36946 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
36947 reassociation for avx2 targets.
36948
36949 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36950
36951 * config/microblaze/microblaze.c: microblaze_has_clz = 0
36952 Add version check for v8.10.a to enable microblaze_has_clz
36953 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
36954 version and TARGET_PATTERN_COMPARE check
36955 * config/microblaze/microblaze.md: New clzsi2 instruction
36956
36957 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
36958
36959 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
36960 function before branching.
36961
36962 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36963
36964 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
36965 DUMP_INSN_RTX_UID.
36966 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
36967
36968 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
36969
36970 PR middle-end/55889
36971 * sel-sched.c: Include ira.h.
36972 (implicit_clobber_conflict_p): New function.
36973 (moveup_expr): Use it.
36974 * Makefile.in (sel-sched.o): Depend on ira.h.
36975
36976 2013-02-19 Richard Biener <rguenther@suse.de>
36977
36978 PR tree-optimization/56384
36979 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
36980 (vn_hash_type): Split out from ...
36981 (vn_hash_constant_with_type): ... here.
36982 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
36983 (vn_phi_eq): Compare types from vn_phi_s structure.
36984 (vn_phi_lookup): Populate vn_phi_s type.
36985 (vn_phi_insert): Likewise.
36986
36987 2013-02-19 Jakub Jelinek <jakub@redhat.com>
36988
36989 PR tree-optimization/56350
36990 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
36991 if haven't found reduction or nested cycle operand, rather than
36992 asserting we must find it.
36993
36994 PR tree-optimization/56381
36995 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
36996 to fold_build3.
36997
36998 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
36999 Jakub Jelinek <jakub@redhat.com>
37000
37001 PR target/52555
37002 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
37003 (swap_optab_enable): Same.
37004 (init_all_optabs): Use argument instead of global.
37005 * tree.h (struct tree_optimization_option): New field target_optabs.
37006 * expr.h (init_all_optabs): Add argument to prototype.
37007 (TREE_OPTIMIZATION_OPTABS): New.
37008 (save_optabs_if_changed): Protoize.
37009 * optabs.h: Declare this_fn_optabs.
37010 * optabs.c (save_optabs_if_changed): New.
37011 Declare this_fn_optabs.
37012 (init_optabs): Add argument to init_all_optabs() call.
37013 * function.c (invoke_set_current_function_hook): Handle per
37014 function optabs.
37015 * function.h (struct function): New field optabs.
37016 * config/mips/mips.c (mips_set_mips16_mode): Handle when
37017 optimization_current_node has changed.
37018 * target-globals.h (save_target_globals_default_opts): Protoize.
37019 * target-globals.c (save_target_globals_default_opts): New.
37020
37021 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37022
37023 PR target/56347
37024 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
37025 registers %fr12 and %fr12R as call used.
37026
37027 PR target/56214
37028 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
37029 and HImode, require all displacements to be an integer multiple of
37030 their mode size.
37031 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
37032 only allow QImode and HImode when reload is in progress and strict is
37033 true. Likewise for symbolic addresses. Use base14_operand to check
37034 displacements in REG+BASE addresses.
37035
37036 2013-02-18 Richard Biener <rguenther@suse.de>
37037
37038 PR tree-optimization/56366
37039 * tree-vect-loop.c (get_initial_def_for_induction): Properly
37040 handle sign-conversion of outer-loop initial induction value.
37041
37042 2013-02-18 Richard Biener <rguenther@suse.de>
37043
37044 PR middle-end/56349
37045 * cfghooks.c (merge_blocks): If we merge a latch into another
37046 block adjust references to it.
37047 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
37048 (verify_loop_structure): Verify that a recorded latch is in fact
37049 a latch.
37050
37051 2013-02-18 Richard Biener <rguenther@suse.de>
37052
37053 PR tree-optimization/56321
37054 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
37055 order SSA name release and virtual operand unlinking.
37056
37057 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37058
37059 * config/microblaze/microblaze.md (save_stack_block): Define.
37060 (restore_stack_block): Likewise.
37061
37062 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37063
37064 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
37065 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
37066 * config/microblaze/microblaze.c (microblaze_option_override):
37067 Bail out early for PIC modes when target does not support PIC.
37068
37069 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37070
37071 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
37072 Replace with a microblaze version.
37073 (microblaze_trampoline_init): Adapt for microblaze.
37074 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
37075 microblaze.
37076
37077 2013-02-16 Jakub Jelinek <jakub@redhat.com>
37078 Dodji Seketeli <dodji@redhat.com>
37079
37080 PR asan/56330
37081 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
37082 (instrument_mem_region_access): Do not forget to always put
37083 instrumentation of the of 'base' and 'base + len' in a "if (len !=
37084 0) statement, even for cases where either 'base' or 'base + len'
37085 are not instrumented -- because they have been previously
37086 instrumented. Simplify the logic by putting all the statements
37087 instrument 'base + len' inside a sequence, and then insert that
37088 sequence right before the current insertion point. Then, to
37089 instrument 'base + len', just get an iterator on that statement.
37090 And do not forget to update the pointer to iterator the function
37091 received as argument.
37092
37093 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
37094
37095 PR rtl-optimization/56348
37096 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
37097
37098 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
37099
37100 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
37101 (clean_graph_dump_file): Pass base to start_graph_dump.
37102
37103 2013-02-14 Richard Henderson <rth@redhat.com>
37104
37105 PR target/55941
37106 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
37107
37108 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
37109
37110 * collect2-aix.h: Define F_LOADONLY.
37111
37112 2013-02-14 Richard Biener <rguenther@suse.de>
37113
37114 PR lto/50494
37115 * varasm.c (output_constant_def_1): Get the decl representing
37116 the constant as argument.
37117 (output_constant_def): Wrap output_constant_def_1.
37118 (make_decl_rtl): Use output_constant_def_1 with the decl
37119 representing the constant.
37120 (build_constant_desc): Optionally re-use a decl already
37121 representing the constant.
37122 (tree_output_constant_def): Adjust.
37123
37124 2013-02-14 Dodji Seketeli <dodji@redhat.com>
37125
37126 Fix an asan crash
37127 * asan.c (instrument_builtin_call): Really put the length of the
37128 second source argument into src1_len.
37129
37130 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37131
37132 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
37133 argument. If it is false, don't create edge from then_bb to
37134 fallthru_bb.
37135 (insert_if_then_before_iter): Pass true to it.
37136 (build_check_stmt): Pass false to it.
37137 (transform_statements): Flush hash table only on extended basic
37138 block boundaries, rather than at the beginning of every bb.
37139 Don't flush hash table on nonfreeing_call_p calls.
37140 * tree-flow.h (nonfreeing_call_p): New prototype.
37141 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
37142
37143 2013-02-13 David S. Miller <davem@davemloft.net>
37144
37145 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
37146
37147 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
37148
37149 PR target/56184
37150 * ira.c (max_regno_before_ira): Move from ...
37151 (ira): ... here.
37152 (fix_reg_equiv_init): Use max_regno_before_ira instead of
37153 vec_safe_length.
37154
37155 2013-02-13 Jakub Jelinek <jakub@redhat.com>
37156
37157 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
37158
37159 2013-02-13 Richard Biener <rguenther@suse.de>
37160
37161 PR lto/56295
37162 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
37163 globals in MEM_REFs.
37164
37165 2013-02-13 Richard Biener <rguenther@suse.de>
37166
37167 * loop-init.c (loop_optimizer_init): Clear loop state when
37168 re-initializing preserved loops.
37169 * loop-unswitch.c (unswitch_single_loop): Return whether
37170 we unswitched the loop. Do not verify loop state here.
37171 (unswitch_loops): When we unswitched a loop discover new loops.
37172
37173 2013-02-13 Kostya Serebryany <kcc@google.com>
37174
37175 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
37176 on x86_64 linux.
37177 * sanitizer.def: Rename __asan_init to __asan_init_v1.
37178
37179 2013-02-12 Dodji Seketeli <dodji@redhat.com>
37180
37181 Avoid instrumenting duplicated memory access in the same basic block
37182 * Makefile.in (asan.o): Add new dependency on hash-table.h
37183 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
37184 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
37185 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
37186 (free_mem_ref_resources, has_mem_ref_been_instrumented)
37187 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
37188 (get_mem_ref_of_assignment): New functions.
37189 (get_mem_refs_of_builtin_call): Extract from
37190 instrument_builtin_call and tweak a little bit to make it fit with
37191 the new signature.
37192 (instrument_builtin_call): Use the new
37193 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
37194 of is_gimple_builtin_call.
37195 (instrument_derefs, instrument_mem_region_access): Insert the
37196 instrumented memory reference into the hash table.
37197 (maybe_instrument_assignment): Renamed instrument_assignment into
37198 this, and change it to advance the iterator when instrumentation
37199 actually happened and return true in that case. This makes it
37200 homogeneous with maybe_instrument_assignment, and thus give a
37201 chance to callers to be more 'regular'.
37202 (transform_statements): Clear the memory reference hash table
37203 whenever we enter a new BB, when we cross a function call, or when
37204 we are done transforming statements. Use
37205 maybe_instrument_assignment instead of instrumentation. No more
37206 need to special case maybe_instrument_assignment and advance the
37207 iterator after calling it; it's now handled just like
37208 maybe_instrument_call. Update comment.
37209
37210 2013-02-13 Richard Biener <rguenther@suse.de>
37211
37212 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
37213 Fix loop discovery code.
37214
37215 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
37216
37217 PR inline-asm/56148
37218 * lra-constraints.c (process_alt_operands): Match early clobber
37219 operand with itself. Check conflicts with earlyclobber only if
37220 the operand is not reloaded. Prefer to reload conflicting operand
37221 if earlyclobber and matching operands are the same.
37222
37223 2013-02-12 Richard Biener <rguenther@suse.de>
37224
37225 PR lto/56297
37226 * lto-streamer-out.c (write_symbol): Do not output symbols
37227 for hard register variables.
37228
37229 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
37230
37231 PR target/54222
37232 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
37233 (umulsidi3_insn, mulsidi3_insn): New insns.
37234
37235 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
37236
37237 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
37238 (struct tune_params): Add vec_costs field.
37239 * config/arm/arm.c (arm_builtin_vectorization_cost)
37240 (arm_add_stmt_cost): New functions.
37241 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
37242 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
37243 (arm_default_vec_cost): New struct of type cpu_vec_costs.
37244 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
37245 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
37246 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
37247 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
37248
37249 2013-02-12 Richard Biener <rguenther@suse.de>
37250
37251 PR lto/56295
37252 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
37253 decls again if possible.
37254
37255 2013-02-12 Richard Biener <rguenther@suse.de>
37256
37257 PR middle-end/56288
37258 * tree-ssa.c (verify_ssa_name): Fix check, move
37259 SSA_NAME_IN_FREE_LIST check up.
37260
37261 2013-02-12 Jakub Jelinek <jakub@redhat.com>
37262 Steven Bosscher <steven@gcc.gnu.org>
37263
37264 PR rtl-optimization/56151
37265 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
37266 equal to op0 or op1, and last_insn pattern is CODE operation
37267 with MEM dest and one of the operands matches that MEM.
37268
37269 2013-02-11 Sriraman Tallam <tmsriram@google.com>
37270
37271 * doc/extend.texi: Document Function Multiversioning and "default"
37272 parameter string to target attribute.
37273 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
37274 target attribute parameter is "default".
37275 (ix86_compare_version_priority): Remove checks for target attribute.
37276 (ix86_mangle_function_version_assembler_name): Change error to sorry.
37277 Remove check for target attribute equal to NULL. Add assert.
37278 (ix86_generate_version_dispatcher_body): Change error to sorry.
37279
37280 2013-02-11 Iain Sandoe <iain@codesourcery.com>
37281 Jack Howarth <howarth@bromo.med.uc.edu>
37282 Patrick Marlier <patrick.marlier@gmail.com>
37283
37284 PR libitm/55693
37285 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
37286 define ENDFILE_SPEC as TM_DESTRUCTOR.
37287 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
37288
37289 2013-02-11 Alexander Potapenko <glider@google.com>
37290 Jack Howarth <howarth@bromo.med.uc.edu>
37291 Jakub Jelinek <jakub@redhat.com>
37292
37293 PR sanitizer/55617
37294 * config/darwin.c (cdtor_record): Rename ctor_record.
37295 (sort_cdtor_records): Rename sort_ctor_records.
37296 (finalize_dtors): New routine to sort destructors by
37297 priority before use in assemble_integer.
37298 (machopic_asm_out_destructor): Use finalize_dtors if needed.
37299
37300 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
37301
37302 PR rtl-optimization/56275
37303 * simplify-rtx.c (avoid_constant_pool_reference): Check that
37304 offset is non-negative and less than cmode size before
37305 calling simplify_subreg.
37306
37307 2013-02-11 Richard Biener <rguenther@suse.de>
37308
37309 PR tree-optimization/56264
37310 * cfgloop.h (fix_loop_structure): Adjust prototype.
37311 * loop-init.c (fix_loop_structure): Return the number of
37312 newly discovered loops.
37313 * tree-cfgcleanup.c (repair_loop_structures): When new loops
37314 are discovered, do a full loop-closed SSA rewrite.
37315
37316 2013-02-11 Richard Biener <rguenther@suse.de>
37317
37318 PR tree-optimization/56273
37319 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
37320 first VRP run.
37321 (check_array_ref): Fix missing newline in dumps.
37322 (search_for_addr_array): Likewise.
37323
37324 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
37325
37326 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
37327
37328 2013-02-09 Jakub Jelinek <jakub@redhat.com>
37329
37330 PR target/56256
37331 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
37332
37333 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
37334
37335 PR rtl-optimization/56246
37336 * lra-constraints.c (simplify_operand_subreg): Try to reuse
37337 reload pseudo.
37338 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
37339 constraints are satisfied.
37340
37341 2013-02-08 Jeff Law <law@redhat.com>
37342
37343 PR debug/53948
37344 * emit-rtl.c (reg_is_parm_p): New function.
37345 * regs.h (reg_is_parm_p): New prototype.
37346 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
37347 callee-clobbered registers.
37348
37349 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
37350
37351 PR target/56043
37352 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
37353 If there is no implicit builtin declaration, just return NULL.
37354
37355 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37356
37357 * config/i386/sse.md (FMAMODEM): New mode iterator.
37358 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
37359 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
37360
37361 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37362
37363 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
37364 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
37365 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
37366
37367 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
37368
37369 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
37370 (microblaze*-*-elf): Likewise.
37371 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
37372 LINK_SPEC.
37373 * config/microblaze/microblaze-c.c: Add builtin defines for
37374 _LITTLE_ENDIAN and _BIG_ENDIAN.
37375 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
37376 add to TARGET_DEFAULT flags.
37377 Expand ASM_SPEC and LINK_SPEC.
37378 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
37379 * config/microblaze/microblaze.md: Update extendsidi2 and
37380 movdi_internal instructions to use low-order / high-order reg
37381 print_operands.
37382 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
37383 options and inversemask / mask of LITTLE_ENDIAN.
37384 * config/microblaze/t-microblaze: Expand multilib options to
37385 include mlittle-endian (le) and update exceptions patterns.
37386
37387 2013-02-08 Jakub Jelinek <jakub@redhat.com>
37388
37389 PR rtl-optimization/56195
37390 * lra-constraints.c (get_reload_reg): Don't reuse regs
37391 if they have smaller mode than requested, if they have
37392 wider mode than requested, try to return a SUBREG.
37393
37394 PR tree-optimization/56250
37395 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
37396 if type is unsigned and code isn't MULT_EXPR.
37397
37398 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37399
37400 PR tree-optimization/56064
37401 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
37402 bits according to mode.
37403 * fixed-value.h (fixed_from_double_int)
37404 (const_fixed_from_double_int): Adjust comments.
37405
37406 2013-02-08 Richard Biener <rguenther@suse.de>
37407
37408 PR lto/56231
37409 * lto-streamer.h (struct data_in): Remove current_file, current_line
37410 and current_col members.
37411 * lto-streamer-out.c (lto_output_location): Stream changed bits
37412 en-block for efficiency.
37413 * lto-streamer-in.c (clear_line_info): Remove.
37414 (lto_input_location): Cache current file, line and column
37415 globally via local statics. Read changed bits en-block.
37416 (input_function): Do not call clear_line_info.
37417 (lto_read_body): Likewise.
37418 (lto_input_toplevel_asms): Likewise.
37419
37420 2013-02-08 Michael Matz <matz@suse.de>
37421
37422 PR tree-optimization/52448
37423 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
37424 (nt_call_phase): New static.
37425 (add_or_mark_expr): Only mark accesses with newer phase than any
37426 call seen.
37427 (nonfreeing_call_p): New.
37428 (nt_init_block): Update nt_call_phase, mark blocks as visited.
37429 (nt_fini_block): Keep blocks marked as visited.
37430 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
37431
37432 2013-02-08 Richard Biener <rguenther@suse.de>
37433
37434 * ira.c (ira): Free broken dominator information.
37435
37436 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
37437
37438 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
37439
37440 2013-02-08 Marek Polacek <polacek@redhat.com>
37441
37442 * cfgloop.c (verify_loop_structure): Add more checking of headers.
37443
37444 2013-02-08 Richard Biener <rguenther@suse.de>
37445
37446 PR middle-end/56181
37447 * cfgloop.h (flow_loops_find): Adjust.
37448 (bb_loop_header_p): Declare.
37449 * cfgloop.c (bb_loop_header_p): New function split out from ...
37450 (flow_loops_find): ... here. Adjust function signature,
37451 support incremental loop structure update.
37452 (verify_loop_structure): Cleanup. Verify a loop is a loop.
37453 * cfgloopmanip.c (fix_loop_structure): Move ...
37454 * loop-init.c (fix_loop_structure): ... here.
37455 (apply_loop_flags): Split out from ...
37456 (loop_optimizer_init): ... here.
37457 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
37458 in incremental mode, only remove dead loops here.
37459
37460 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
37461
37462 PR target/54222
37463 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
37464 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
37465 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
37466 (*round<mode>3.libgcc): New insns for fixed-modes.
37467 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
37468 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
37469 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
37470 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
37471 implementations. Define to __builtin_avr_absFX,
37472 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
37473 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
37474 __builtin_avr_countlsFX, respectively.
37475 * config/avr/avr-c.c (target.h): Include it.
37476 (enum avr_builtin_id): New enum.
37477 (avr_resolve_overloaded_builtin): New static function.
37478 (avr_register_target_pragmas): Use it to set
37479 targetm.resolve_overloaded_builtin.
37480 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
37481 tree nodes used by DEF_BUILTIN.
37482 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
37483 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
37484 <AVR_BUILTIN_xxBITS>: Same.
37485
37486 2013-02-08 Richard Biener <rguenther@suse.de>
37487
37488 * cfgloop.c (verify_loop_structure): Properly handle
37489 a loop exiting to another loop header.
37490 * ira-int.h (ira_loops): Remove.
37491 * ira.c (ira_loops): Remove.
37492 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
37493 (do_reload): Use loop_optimizer_finalize.
37494 * ira-build.c (create_loop_tree_nodes): Use get_loops and
37495 number_of_loops to access the loop tree.
37496 (more_one_region_p): Likewise.
37497 (finish_loop_tree_nodes): Likewise.
37498 (rebuild_regno_allocno_maps): Likewise.
37499 (mark_loops_for_removal): Likewise.
37500 (mark_all_loops_for_removal): Likewise.
37501 (remove_unnecessary_regions): Likewise.
37502 (ira_build): Likewise.
37503 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
37504
37505 2013-02-08 Richard Biener <rguenther@suse.de>
37506
37507 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
37508 * ipa-pure-const.c (analyze_function): Avoid calling
37509 mark_irreducible_loops twice.
37510 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
37511
37512 2013-02-07 David S. Miller <davem@davemloft.net>
37513
37514 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
37515 on 'reg'.
37516 * var-tracking.c (vt_add_function_parameter): Test the presence of
37517 HAVE_window_save properly and do not remap argument registers when
37518 we have a leaf function.
37519
37520 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
37521
37522 PR bootstrap/56227
37523 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
37524 instead of "ll".
37525 * config/i386/i386.c (ix86_print_operand): Ditto.
37526
37527 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37528
37529 * lra-constraints.c (process_alt_operands): Fix recently added comment.
37530
37531 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
37532
37533 PR rtl-optimization/56225
37534 * lra-constraints.c (process_alt_operands): Check that reload hard
37535 reg can hold value for strict_low_part.
37536
37537 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37538
37539 PR debug/56154
37540 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
37541 dwarf2out_end_function.
37542 (in_first_function_p, maybe_at_text_label_p,
37543 first_loclabel_num_not_at_text_label): New variables.
37544 (dwarf2out_var_location): In the first function find out
37545 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
37546 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
37547 functions.
37548
37549 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
37550
37551 PR rtl-optimization/56178
37552 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
37553 SUBREG of a register. Tidy up related block of code.
37554 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
37555 note if the source is a register or a SUBREG of a register.
37556
37557 2013-02-07 Jakub Jelinek <jakub@redhat.com>
37558
37559 PR target/56228
37560 * config/rs6000/rs6000.md (ptrm): New mode attr.
37561 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
37562 call_value_indirect_aix<pttrsize>,
37563 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
37564 m in constraints.
37565
37566 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
37567
37568 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
37569 if -bnortl. Convert to strcmp and strncmp.
37570
37571 2013-02-07 Alan Modra <amodra@gmail.com>
37572
37573 PR target/54009
37574 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
37575 addresses won't wrap when offsetting.
37576 (rs6000_secondary_reload): Provide secondary reloads needed for
37577 wrapping LO_SUM addresses.
37578
37579 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
37580
37581 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
37582 MACH, just __MACH__.
37583
37584 2013-02-06 Richard Biener <rguenther@suse.de>
37585
37586 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
37587 instead of calling fix_loop_structure.
37588
37589 2013-02-06 Jakub Jelinek <jakub@redhat.com>
37590
37591 PR middle-end/56217
37592 * omp-low.c (use_pointer_for_field): Return false if
37593 lower_send_shared_vars doesn't generate any copy-out code.
37594
37595 2013-02-06 Tom de Vries <tom@codesourcery.com>
37596
37597 PR rtl-optimization/56131
37598 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
37599 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
37600 of the label is NULL. Add comment.
37601
37602 2013-02-05 Jakub Jelinek <jakub@redhat.com>
37603
37604 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
37605
37606 PR sanitizer/55374
37607 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
37608 (STATIC_LIBTSAN_LIBS): Likewise.
37609 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
37610 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
37611 is defined, don't add anything else beyond that.
37612 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
37613 (LINK_COMMAND_SPEC): Use them.
37614
37615 PR tree-optimization/56205
37616 * tree-stdarg.c (check_all_va_list_escapes): Return true if
37617 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
37618 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
37619
37620 2013-02-05 Richard Biener <rguenther@suse.de>
37621
37622 PR tree-optimization/53342
37623 PR tree-optimization/53185
37624 * tree-vectorizer.h (vect_check_strided_load): Remove.
37625 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
37626 not disallow peeling for vectorized strided loads.
37627 (vect_check_strided_load): Make static and simplify.
37628 (vect_analyze_data_refs): Adjust.
37629 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
37630 correctly when vectorizing strided loads.
37631
37632 2013-02-05 Richard Biener <rguenther@suse.de>
37633
37634 * doc/install.texi: Refer to ISL, not PPL.
37635
37636 2013-02-05 Jan Hubicka <jh@suse.cz>
37637
37638 PR tree-optimization/55789
37639 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
37640
37641 2013-02-05 Jan Hubicka <jh@suse.cz>
37642
37643 PR tree-optimization/55789
37644 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
37645 the dead call anyway.
37646
37647 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
37648
37649 PR sanitizer/55374
37650 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
37651
37652 2013-02-04 Alexander Potapenko <glider@google.com>
37653 Jack Howarth <howarth@bromo.med.uc.edu>
37654 Jakub Jelinek <jakub@redhat.com>
37655
37656 PR sanitizer/55617
37657 * config/darwin.c (sort_ctor_records): Stabilized qsort
37658 on constructor priority by using original position.
37659 (finalize_ctors): New routine to sort constructors by
37660 priority before use in assemble_integer.
37661 (machopic_asm_out_constructor): Use finalize_ctors if needed.
37662
37663 2013-02-04 Jakub Jelinek <jakub@redhat.com>
37664
37665 PR libstdc++/54314
37666 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
37667 about visibility on artificial decls.
37668 * config/sol2.c (solaris_assemble_visibility): Likewise.
37669
37670 2013-02-04 Kai Tietz <ktietz@redhat.com>
37671
37672 PR target/56186
37673 * config/i386/i386.c (function_value_ms_64): Add additional valtype
37674 argument and improve checking of return-argument types for 16-byte
37675 modes.
37676 (ix86_function_value_1): Add additional valtype argument on call
37677 of function_value_64.
37678 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
37679 handling infunction_value_64 function.
37680
37681 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
37682
37683 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
37684
37685 2013-02-04 Richard Biener <rguenther@suse.de>
37686
37687 PR tree-optimization/56188
37688 * tree-ssa-structalias.c (label_visit): Consider case with
37689 initially non-empty points-to set.
37690 (perform_var_substitution): Dump node mapping and clean up.
37691
37692 2013-02-04 Richard Guenther <rguenther@suse.de>
37693
37694 PR lto/56168
37695 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
37696 node prevail as last resort.
37697 (lto_symtab_merge_decls): Remove guard on LTRANS here.
37698 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
37699
37700 2013-02-04 Richard Biener <rguenther@suse.de>
37701
37702 PR tree-optimization/56113
37703 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
37704 Merge into ...
37705 (equiv_class_lookup_or_add): ... this.
37706 (label_visit): Adjust and fix error in previous patch.
37707 (perform_var_substitution): Adjust.
37708
37709 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
37710
37711 * config/sh/divtab.c: Fix formatting and comments throughout the file.
37712 * config/sh/sh4-300.md: Likewise.
37713 * config/sh/sh4a.md: Likewise.
37714 * config/sh/constraints.md: Likewise.
37715 * config/sh/sh.md: Likewise.
37716 * config/sh/netbsd-elf.h: Likewise.
37717 * config/sh/predicates.md: Likewise.
37718 * config/sh/sh-protos.h: Likewise.
37719 * config/sh/ushmedia.h: Likewise.
37720 * config/sh/linux.h: Likewise.
37721 * config/sh/sh.c: Likewise.
37722 * config/sh/superh.h: Likewise.
37723 * config/sh/elf.h: Likewise.
37724 * config/sh/sh4.md: Likewise.
37725 * config/sh/sh.h: Likewise.
37726
37727 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37728
37729 * config/pa/constraints.md: Adjust unused letters. Change "T"
37730 constraint to match_test floating_point_store_memory_operand().
37731 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
37732 (base14_operand): New.
37733 (floating_point_store_memory_operand): New.
37734 (integer_store_memory_operand): Revise to use base14_operand and
37735 reg_plus_base_memory_operand.
37736 (move_dest_operand): Allow symbolic_memory_operands.
37737 (symbolic_memory_operand): Check for LO_SOM.
37738 (symbolic_operand): Change default case to break.
37739 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
37740 CONST_DOUBLE values to be reloaded by putting them into memory when
37741 the destination is a floating point register.
37742 (movdf): Remove code to handle CONST_DOUBLE.
37743 (movsf): Likewise.
37744 (reload_indf_r1): New.
37745 (reload_insf_r1): New.
37746 Consistently use "Q" and "T" constraints with integer and floating
37747 point move instructions, respectively.
37748 (movdi): Remove FAIL.
37749 Change predicate for source operand unamed DImode move from
37750 general_operand to move_src_operand.
37751 (umulsidi3): Change predicate for destination operand to
37752 register_operand.
37753 Likewise for similar unamed patterns.
37754 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
37755 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
37756 (hppa_legitimize_address): Simplify mask calculation.
37757 (pa_emit_move_sequence): Revised handling of secondary reloads from
37758 REG+D addresses for floating point loads and stores. Directly handle
37759 loading CONST0_RTX (mode) to a floating point register.
37760 (pa_secondary_reload): Handle reloading DF and SFmode constant values
37761 to floating point registers. Don't restrict secondary reloads to
37762 floating point registers to integer modes. Revise some comments and
37763 cleanup some code.
37764 (TARGET_LEGITIMATE_ADDRESS_P): Define.
37765 (pa_legitimate_address_p): New.
37766 (pa_legitimize_reload_address): New.
37767 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
37768 (STRICT_REG_OK_FOR_BASE_P): New.
37769 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
37770 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
37771
37772 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
37773 Andrew Dixie <andrewd@gentrack.com>
37774
37775 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
37776 flag set.
37777
37778 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
37779
37780 * expmed.c (extract_bit_field_1): Pass the full width of the
37781 structure to get_best_reg_extraction_insn.
37782
37783 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37784
37785 PR target/54601
37786 * configure.ac (use_cxa_atexit): Add AIX.
37787 * configure: Regenerate.
37788
37789 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
37790
37791 2013-02-01 Jakub Jelinek <jakub@redhat.com>
37792
37793 PR debug/54793
37794 * final.c (need_profile_function): New variable.
37795 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
37796 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
37797 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
37798 notes, targetm.asm_out.function_prologue doesn't emit anything,
37799 HAVE_prologue and profiler should be emitted before prologue,
37800 set need_profile_function instead of emitting it.
37801 (final_scan_insn): If need_profile_function, emit
37802 profile_function on the first NOTE_INSN_BASIC_BLOCK or
37803 NOTE_INSN_FUNCTION_BEG note.
37804
37805 2013-02-01 Richard Henderson <rth@redhat.com>
37806
37807 * config/rs6000/rs6000.md (smulditi3): New.
37808 (umulditi3): New.
37809
37810 * config/alpha/alpha.md (umulditi3): New.
37811
37812 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
37813
37814 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
37815 (ASM_OUTPUT_ALIGNED_LOCAL): New.
37816
37817 2013-02-01 Richard Biener <rguenther@suse.de>
37818
37819 PR tree-optimization/56113
37820 * tree-ssa-structalias.c (label_visit): Reduce work for
37821 single-predecessor nodes.
37822
37823 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
37824
37825 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
37826 range isn't testing for zero.
37827
37828 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
37829
37830 PR middle-end/56113
37831 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
37832
37833 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
37834 Nick Clifton <nickc@redhat.com>
37835
37836 * config/v850/constraints.md (Q): Define as a memory constraint.
37837 * config/v850/predicates.md (label_ref_operand): New predicate.
37838 (e3v5_shift_operand): New predicate.
37839 (ior_operator): New predicate.
37840 * config/v850/t-v850: Add e3v5 multilib.
37841 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
37842 (v850_gen_movdi): Prototype.
37843 * config/v850/v850.c: Add support for e3v5 architecture.
37844 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
37845 TARGET_V850E_UP.
37846 (construct_save_jarl): Add e3v5 long JARL support.
37847 (v850_adjust_insn_length): New function. Adjust length of call
37848 insns when using e3v5 instructions.
37849 (v850_gen_movdi): New function: Generate instructions to move a
37850 DImode value.
37851 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
37852 (CPP_SPEC): Define __v850e3v5__ as appropriate.
37853 (TARGET_USE_FPU): Enable for e3v5.
37854 (CONST_OK_FOR_W): New macro.
37855 (ADJUST_INSN_LENGTH): Define.
37856 * config/v850/v850.md (UNSPEC_LOOP): Define.
37857 (attr cpu): Add v850e3v5.
37858 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
37859 (movdi): New pattern.
37860 (movdi_internal): New pattern.
37861 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
37862 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
37863 (cstoresf4): Likewise.
37864 (cstoredf4): Likewise.
37865 (insv): New pattern.
37866 (rotlso3_a): New pattern.
37867 (rotlsi3_b): New pattern
37868 (rotlsi3_v850e3v5): New pattern.
37869 (doloop_begin): New pattern.
37870 (fix_loop_counter): New pattern.
37871 (doloop_end): New pattern.
37872 (branch_normal): Add e3v5 long branch support.
37873 (branch_invert): Likewise.
37874 (branch_z_normal): Likewise.
37875 (branch_z_invert): Likewise.
37876 (branch_nz_normal): Likewise.
37877 (branch_nz_invert): Likewise.
37878 (call_internal_short): Add e3v5 register-indirect JARL support.
37879 (call_internal_long): Likewise.
37880 (call_value_internal_short): Likewise.
37881 (call_value_internal_long): Likewise.
37882 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
37883 (mloop): New option.
37884 * config.gcc: Add support for configuring v840e3v5 target.
37885 * doc/invoke.texi: Document new v850 specific command line options.
37886
37887 2013-01-31 Paul Koning <ni1d@arrl.net>
37888
37889 PR debug/55059
37890 PR debug/54508
37891 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
37892 children if parent is a class.
37893 (prune_unused_types_prune): Don't add DW_AT_declaration.
37894
37895 2013-01-31 Richard Biener <rguenther@suse.de>
37896
37897 PR tree-optimization/56157
37898 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
37899 match up operand with SLP child.
37900
37901 2013-01-31 Jason Merrill <jason@redhat.com>
37902
37903 PR debug/54410
37904 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
37905 parameters the first time.
37906 (gen_scheduled_generic_parms_dies): Check completeness here.
37907
37908 2013-01-31 Richard Biener <rguenther@suse.de>
37909
37910 PR middle-end/53073
37911 * common.opt (faggressive-loop-optimizations): New flag,
37912 enabled by default.
37913 * doc/invoke.texi (faggressive-loop-optimizations): Document.
37914 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
37915 infer_loop_bounds_from_undefined by it.
37916
37917 2013-01-31 Richard Biener <rguenther@suse.de>
37918
37919 PR tree-optimization/56150
37920 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
37921 visit virtual operands.
37922 (find_uses_to_rename_bb): Likewise.
37923
37924 2013-01-31 Richard Biener <rguenther@suse.de>
37925
37926 PR tree-optimization/56150
37927 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
37928 mixed store non-store stmts.
37929
37930 2013-01-30 Jakub Jelinek <jakub@redhat.com>
37931
37932 PR sanitizer/55374
37933 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
37934 LIBASAN_EARLY_SPEC is defined.
37935 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
37936 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
37937 before %o.
37938 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
37939
37940 PR c++/55742
37941 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
37942 invalid args instead of ICEing on it.
37943 (ix86_valid_target_attribute_tree): Return error_mark_node if
37944 ix86_valid_target_attribute_inner_p failed.
37945 (ix86_valid_target_attribute_p): Return false only if
37946 ix86_valid_target_attribute_tree returned error_mark_node. Allow
37947 target("default") attribute.
37948 (sorted_attr_string): Change argument from const char * to tree,
37949 merge in all target attribute arguments rather than just one.
37950 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
37951 instead of free. Avoid using strcat.
37952 (ix86_mangle_function_version_assembler_name): Mangle
37953 target("default") as if no target attribute is present. Adjust
37954 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
37955 instead of xmalloc and XDELETEVEC instead of free.
37956 (ix86_function_versions): Don't return true if one of the decls
37957 doesn't have target attribute. If they don't and one of the decls
37958 is DECL_FUNCTION_VERSIONED, report an error. Adjust
37959 sorted_attr_string caller. Use XDELETEVEC instead of free.
37960 (ix86_supports_function_versions): Remove.
37961 (make_name): Fix up formatting.
37962 (make_dispatcher_decl): Remove resolver_name and its initialization.
37963 Avoid leaking memory.
37964 (is_function_default_version): Return true if there is
37965 target("default") attribute rather than no target attribute at all.
37966 (make_resolver_func): Avoid leaking memory.
37967 (ix86_generate_version_dispatcher_body): Likewise.
37968 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
37969 * target.def (supports_function_versions): Remove.
37970 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
37971 * doc/tm.texi: Regenerated.
37972
37973 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
37974
37975 PR rtl-optimization/56144
37976 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
37977 for values with side effects.
37978
37979 2013-01-30 Richard Biener <rguenther@suse.de>
37980
37981 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
37982 (sparseset_pop): Likewise.
37983 * cfganal.c (compute_idf): Likewise. Increase work-stack size
37984 to be able to use quick_push in the worker loop.
37985
37986 2013-01-30 Marek Polacek <polacek@redhat.com>
37987
37988 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
37989
37990 2013-01-30 Richard Biener <rguenther@suse.de>
37991
37992 PR lto/56147
37993 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
37994
37995 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
37996
37997 PR tree-optimization/56064
37998 * fixed-value.c (fixed_from_double_int): New function.
37999 * fixed-value.h (fixed_from_double_int): New prototype.
38000 (const_fixed_from_double_int): New static inline function.
38001 * fold-const.c (native_interpret_fixed): New static function.
38002 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
38003 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
38004 (native_encode_fixed): New static function.
38005 (native_encode_expr) <FIXED_CST>: Use it.
38006 (native_interpret_int): Move double_int worker code to...
38007 * double-int.c (double_int::from_buffer): ...this new static method.
38008 * double-int.h (double_int::from_buffer): Prototype it.
38009
38010 2013-01-30 Richard Biener <rguenther@suse.de>
38011
38012 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
38013 New pointer-map and obstack.
38014 (init_alias_vars): Allocate pointer-map and obstack.
38015 (delete_points_to_sets): Free them.
38016 (find_what_var_points_to): Cache result.
38017 (find_what_p_points_to): Adjust for changed interface of
38018 find_what_var_points_to.
38019 (compute_points_to_sets): Likewise.
38020 (ipa_pta_execute): Likewise.
38021
38022 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38023
38024 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
38025 * configure: Regenerate.
38026 * config.in: Regenerate.
38027 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
38028 #nobits/#progbits if supported.
38029
38030 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
38031
38032 PR target/56121
38033 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
38034 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
38035 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
38036
38037 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38038
38039 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
38040 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
38041
38042 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38043
38044 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
38045 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
38046
38047 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38048
38049 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
38050 declaration.
38051 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
38052 * config/arm/cortex-a7.md: New bypasses using
38053 arm_mac_accumulator_is_result.
38054
38055 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38056
38057 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
38058 (cortex_a7_neon_mla): Likewise.
38059 (cortex_a7_fpfmad): New reservation.
38060 (cortex_a7_fpmacs): Use ffmas and update required units.
38061 (cortex_a7_fpmuld): Update required units and latency.
38062 (cortex_a7_fpmacd): Likewise.
38063 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
38064 (cortex_a7_neon). Likewise.
38065 (bypass) Update participating units.
38066
38067 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
38068
38069 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
38070 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
38071 from fmac to ffma.
38072 * config/arm/vfp11.md (vfp_farith): Use ffmas.
38073 (vfp_fmul): Use ffmad.
38074 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
38075 (cortex_r4_fmacd): Use ffmad.
38076 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
38077 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
38078 (cortex_a9_fmacd): Use ffmad.
38079 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
38080 (cortex_a8_vfp_macd): Use ffmad.
38081 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
38082 (cortex_a5_fpmacd): Use ffmad.
38083 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
38084 (cortex_a15_vfp_macd): Use ffmad.
38085 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
38086
38087 2013-01-29 Jason Merrill <jason@redhat.com>
38088
38089 PR libstdc++/54314
38090 * varasm.c (default_assemble_visibility): Don't warn about
38091 visibility on artificial decls.
38092
38093 2013-01-29 Richard Biener <rguenther@suse.de>
38094
38095 PR tree-optimization/56113
38096 * tree-ssa-structalias.c (equiv_class_lookup): Also return
38097 the bitmap leader.
38098 (label_visit): Free duplicate bitmaps and record the leader instead.
38099 (perform_var_substitution): Adjust.
38100
38101 2013-01-29 Richard Biener <rguenther@suse.de>
38102
38103 PR tree-optimization/55270
38104 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
38105 the CFG, schedule loops for fixup.
38106
38107 2013-01-29 Nick Clifton <nickc@redhat.com>
38108
38109 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
38110 SP_REG.
38111
38112 2013-01-28 Leif Ekblad <leif@rdos.net>
38113
38114 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
38115 * config/i386/i386.h (TARGET_RDOS): New macro.
38116 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
38117 * config/i386/i386.c (ix86_option_override_internal): For 64bit
38118 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
38119 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
38120 DEFAULT_LARGE_SECTION_THRESHOLD.
38121 * config/i386/i386.md (R14_REG, R15_REG): New constants.
38122 * config/i386/rdos.h: New file.
38123 * config/i386/rdos64.h: New file.
38124
38125 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
38126
38127 PR other/54814
38128 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
38129 TEST_HARD_REG_BIT.
38130
38131 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38132
38133 PR rtl-optimization/56117
38134 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
38135 call cselib_lookup_from_insn on the MEM before calling
38136 add_insn_mem_dependence.
38137
38138 2013-01-28 Richard Biener <rguenther@suse.de>
38139
38140 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
38141 to a stmt that didn't have one.
38142 (copy_phis_for_bb): Likewise for PHI arguments.
38143 (copy_debug_stmt): Likewise for debug stmts.
38144
38145 2013-01-28 Richard Biener <rguenther@suse.de>
38146
38147 PR tree-optimization/56034
38148 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
38149 (partition_builtin_p): Adjust.
38150 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
38151 it is the last partition.
38152 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
38153 up the vertex for the definition.
38154 (classify_partition): Classify whether a partition is a
38155 PKIND_REDUCTION, thus has uses outside of the loop.
38156 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
38157 Merge all PKIND_REDUCTION partitions into the last partition.
38158 (tree_loop_distribution): Seed partitions from reductions as well.
38159
38160 2013-01-28 Jakub Jelinek <jakub@redhat.com>
38161
38162 PR tree-optimization/56125
38163 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
38164 pow(x,c) into sqrt(x) * powi(x, n/2) or
38165 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
38166 optimizing for size.
38167 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
38168 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
38169 integer.
38170
38171 PR tree-optimization/56094
38172 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
38173 to UNKNOWN_LOCATION while gimplifying expr.
38174
38175 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
38176
38177 PR target/56114
38178 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
38179 operand 0 in movabs insn template for -masm=intel asm alternative.
38180 (*movabs<mode>_2): Ditto for operand 1.
38181
38182 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
38183
38184 PR target/54663
38185 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
38186 of microblaze-c.o
38187
38188 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38189
38190 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
38191 tm_file.
38192
38193 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38194
38195 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
38196 Undef to avoid warning.
38197
38198 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
38199
38200 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
38201 * configure: Regenerate.
38202
38203 2013-01-25 Jakub Jelinek <jakub@redhat.com>
38204
38205 PR tree-optimization/56098
38206 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
38207 for stmts with volatile ops.
38208 (cond_store_replacement): Don't optimize if assign has volatile ops.
38209 (cond_if_else_store_replacement_1): Don't optimize if either
38210 then_assign or else_assign have volatile ops.
38211 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
38212 volatile ops.
38213
38214 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38215
38216 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
38217
38218 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38219
38220 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
38221 missing ':' in asm example.
38222
38223 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
38224
38225 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
38226 entries into lane and laneq entries.
38227 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
38228 Remove AdvSIMD scalar modes.
38229 (aarch64_sq<r>dmulh_laneq<mode>): New.
38230 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
38231 modes.
38232 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
38233 builtin implementations to relfect changes in RTL in aarch64-simd.md.
38234 * config/aarch64/iterators.md (VCOND): New.
38235 (VCONQ): New.
38236
38237 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
38238
38239 PR target/54222
38240 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
38241 Add NULL LIBNAME argument to existing definitions.
38242 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
38243 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
38244 * config/avr/avr.c (DEF_BUILTIN): Same.
38245 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
38246 (avr_expand_builtin): Expand to a vanilla call if a libgcc
38247 implementation is available (DECL_ASSEMBLER_NAME is set).
38248 (avr_fold_absfx): New static function.
38249 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
38250 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
38251 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
38252 AVR_BUILTIN_ABSLLK.
38253 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
38254 (abshk, absk, abslk, absllk): Provide as static inline functions.
38255
38256 2013-01-25 Marek Polacek <polacek@redhat.com>
38257
38258 PR tree-optimization/56035
38259 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
38260
38261 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
38262
38263 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
38264 (*movtf_internal_rex64): Add (!o,C) alternative
38265 (*movxf_internal_rex64): Ditto.
38266 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
38267
38268 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
38269
38270 * doc/invoke.texi: fix typo.
38271 * doc/objc.texi: fix typo.
38272
38273 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
38274
38275 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
38276 for the first two alternatives.
38277
38278 2013-01-24 Diego Novillo <dnovillo@google.com>
38279
38280 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
38281 (ggc-zone.o): Remove.
38282 * configure.ac: Remove option --with-gc.
38283 * configure: Re-generate.
38284 * doc/install.texi: Remove documentation for --with-gc.
38285 * gengtype.c (write_enum_defn): Remove. Update all users.
38286 (write_Types_process_field): Remove generation of gt_e_* argument.
38287 (output_type_enum): Remove. Update all users.
38288 (write_enum_defn): Remove. Update all users.
38289 (enum alloc_zone): Remove. Update all users.
38290 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
38291 * ggc-common.c (ggc_splay_alloc): Remove first argument.
38292 Update all callers.
38293 (struct ptr_data): Remove field TYPE. Update all users.
38294 (gt_pch_note_object): Remove argument TYPE. Update all users.
38295 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
38296 Update all users.
38297 * ggc-none.c (ggc_alloc_typed_stat): Remove.
38298 (struct alloc_zone): Remove.
38299 (ggc_internal_alloc_zone_stat): Remove.
38300 (ggc_internal_cleared_alloc_zone_stat): Remove.
38301 * ggc-page.c (ggc_alloc_typed_stat): Remove.
38302 (ggc_pch_count_object): Remove last argument. Update all users.
38303 (ggc_pch_alloc_object): Remove last argument. Update all users.
38304 (struct alloc_zone): Remove.
38305 * ggc-zone.c: Remove.
38306 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
38307 (struct alloc_zone): Remove.
38308 (ggc_alloc_typed_stat): Remove.
38309 (ggc_alloc_typed): Remove.
38310 (ggc_splay_alloc): Remove first argument.
38311 (rtl_zone): Remove. Update all users.
38312 (tree_zone): Remove. Update all users.
38313 (tree_id_zone): Remove. Update all users.
38314 (ggc_internal_zone_alloc_stat): Remove. Update all users.
38315 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
38316 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
38317 * tree-ssanames.c: Remove references to zone allocator in comments.
38318
38319 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
38320
38321 * config/avr/avr.c (avr_out_fract): Make register numbers that
38322 might be outside of source operand signed.
38323
38324 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
38325
38326 * config/i386/constraints.md (Yf): New constraint.
38327 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
38328 of f constraint to conditionaly disable x87 register preferences.
38329 (*movdf_internal): Ditto.
38330 (*movsf_internal): Ditto.
38331
38332 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
38333
38334 PR inline-asm/55934
38335 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
38336 that have operands with impossible constraints.
38337 Add a FIXME for a speed-up opportunity.
38338 * lra-constraints.c (process_alt_operands): Verify that a class
38339 selected from constraints on asms is valid for the operand mode.
38340 (curr_insn_transform): Remove incorrect comment.
38341
38342 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
38343
38344 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
38345 TOC operand is a valid symbol ref in the constant pool.
38346
38347 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
38348
38349 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
38350
38351 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
38352
38353 PR target/54222
38354 * config/avr/stdfix.h: New file.
38355 * t-avr (stdfix-gcc.h): New rule to build it.
38356 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
38357
38358 2013-01-23 Kostya Serebryany <kcc@google.com>
38359
38360 * config/darwin.h: remove dependency on
38361 CoreFoundation (asan on Mac OS).
38362
38363 2013-01-23 Jakub Jelinek <jakub@redhat.com>
38364
38365 PR target/49069
38366 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
38367 instead of cmpdi_operand for first comparison operand.
38368 Don't assert that comparison operands aren't both constants.
38369
38370 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38371
38372 * doc/install.texi (Downloading the Source): Update references to
38373 downloading separate components.
38374
38375 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
38376
38377 * doc/extend.texi (__int128): Improve grammar.
38378
38379 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
38380
38381 PR target/56028
38382 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
38383 alternative to (o,r).
38384 (*movdi_internal_rex64): Remove (!o,n) alternative.
38385 (DImode immediate->memory splitter): Remove.
38386 (DImode immediate->memory peephole2): Remove.
38387 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
38388 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
38389 alternative to (!o,*r).
38390 (*movtf_internal_sse): New pattern.
38391 (*movxf_internal_rex64): New pattern.
38392 (*movxf_internal): Disable for TARGET_64BIT.
38393 (*movdf_internal_rex64): Remove (!o,F) alternative.
38394
38395 2013-01-22 Jakub Jelinek <jakub@redhat.com>
38396
38397 PR middle-end/56074
38398 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
38399 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
38400 * tree-vect-loop-manip.c (find_loop_location): Also ignore
38401 stmt locations where LOCATION_LOCUS of the stmt location is
38402 UNKNOWN_LOCATION or BUILTINS_LOCATION.
38403
38404 PR target/55686
38405 * config/i386/i386.md (UNSPEC_STOS): New.
38406 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
38407 *strsetqi_1): Add UNSPEC_STOS.
38408
38409 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
38410
38411 PR c++/56067
38412 * doc/invoke.texi: Remove left over -Wsynth example.
38413
38414 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38415
38416 PR tree-optimization/56051
38417 * fold-const.c (fold_binary_loc): Don't fold
38418 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
38419 a narrowing conversion, or widening conversion from signed
38420 to unsigned.
38421
38422 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38423
38424 PR rtl-optimization/56023
38425 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
38426 dependent on debug instruction.
38427
38428 2013-01-21 Martin Jambor <mjambor@suse.cz>
38429
38430 PR middle-end/56022
38431 * function.c (allocate_struct_function): Call
38432 invoke_set_current_function_hook earlier.
38433
38434 2013-01-21 Jakub Jelinek <jakub@redhat.com>
38435
38436 * reload1.c (init_reload): Only initialize reload_obstack
38437 during the first call.
38438
38439 2013-01-21 Marek Polacek <polacek@redhat.com>
38440
38441 * cfgloop.c (verify_loop_structure): Fix up grammar.
38442
38443 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
38444
38445 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
38446 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
38447
38448 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38449
38450 PR target/56058
38451 * config/arm/marvell-pj4.md: Update copyright year.
38452 Fix up use of alu to alu_reg and simple_alu_imm.
38453
38454 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
38455
38456 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
38457
38458 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
38459
38460 PR target/55433
38461 * lra-constraints.c (curr_insn_transform): Don't reuse original
38462 insn for secondary memory move when memory mode should be different.
38463
38464 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38465
38466 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
38467 atomic_storedi_1): New patterns.
38468
38469 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
38470
38471 btver2 pipeline descriptions.
38472 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
38473 descriptions.
38474 * config/i386/i386.md (btver2_decode): New type attributes.
38475 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
38476 type attributes.
38477 * config/i386/btver2.md: New file describing btver2 pipelines.
38478
38479 2013-01-19 Andrew Pinski <apinski@cavium.com>
38480
38481 PR tree-optimization/52631
38482 * tree-ssa-sccvn (visit_use): Before looking up the original
38483 statement, try looking up the simplified expression.
38484
38485 2013-01-19 Anthony Green <green@moxielogic.com>
38486
38487 * config/moxie/moxie.c (moxie_expand_prologue): Set
38488 current_function_static_stack_size.
38489
38490 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38491
38492 PR tree-optimization/56029
38493 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
38494 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
38495
38496 2013-01-18 Sharad Singhai <singhai@google.com>
38497
38498 PR tree-optimization/55995
38499 * dumpfile.c (dump_loc): Print location only if available.
38500 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
38501
38502 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
38503
38504 PR target/55433
38505 * lra-constraints.c (curr_insn_transform): Reuse original insn for
38506 secondary memory move.
38507 (inherit_reload_reg): Use rclass instead of cl for
38508 check_secondary_memory_needed_p.
38509
38510 2013-01-18 Jakub Jelinek <jakub@redhat.com>
38511
38512 PR middle-end/56015
38513 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
38514 the case where writing real complex part of target modifies op1.
38515
38516 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
38517
38518 * config/aarch64/aarch64-simd.md
38519 (aarch64_vcond_internal<mode>): Handle unordered cases.
38520 * config/aarch64/iterators.md (v_cmp_result): New.
38521
38522 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
38523 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38524
38525 * config/arm/marvell-pj4.md: New file.
38526 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
38527 * config/arm/arm.md (generic_sched): Add marvell_pj4.
38528 (generic_vfp): Likewise.
38529 * config/arm/arm-cores.def: Add marvell-pj4.
38530 * config/arm/arm-tune.md: Regenerate.
38531 * config/arm/arm-tables.opt: Regenerate.
38532 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
38533 * doc/invoke.texi: Document marvell-pj4.
38534
38535 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
38536
38537 * config/aarch64/arm_neon.h: Map scalar types to standard types.
38538
38539 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38540
38541 PR debug/54114
38542 PR debug/54402
38543 PR debug/49888
38544 * var-tracking.c (negative_power_of_two_p): New.
38545 (global_get_addr_cache, local_get_addr_cache): New.
38546 (get_addr_from_global_cache, get_addr_from_local_cache): New.
38547 (vt_canonicalize_addr): Rewrite using the above. Adjust the
38548 heading comment.
38549 (vt_stack_offset_p): Remove.
38550 (vt_canon_true_dep): Always canonicalize loc's address.
38551 (clobber_overlapping_mems): Make sure we have a MEM.
38552 (local_get_addr_clear_given_value): New.
38553 (val_reset): Clear local cached entries.
38554 (compute_bb_dataflow): Create and release the local cache.
38555 Disable duplicate MEMs clobbering.
38556 (emit_notes_in_bb): Clobber MEMs likewise.
38557 (vt_emit_notes): Create and release the local cache.
38558 (vt_initialize, vt_finalize): Create and release the global
38559 cache, respectively.
38560 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
38561
38562 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38563
38564 PR libmudflap/53359
38565 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
38566 not found in the symtab.
38567
38568 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
38569
38570 PR debug/56006
38571 PR rtl-optimization/55547
38572 PR rtl-optimization/53827
38573 PR debug/53671
38574 PR debug/49888
38575 * alias.c (offset_overlap_p): New, factored out of...
38576 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
38577 the conservative special case for symbolic constants. Don't
38578 adjust zero sizes on alignment.
38579
38580 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
38581
38582 PR rtl-optimization/52573
38583 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
38584 REG_UNUSED for the same register.
38585
38586 2013-01-17 Richard Biener <rguenther@suse.de>
38587 Marek Polacek <polacek@redhat.com>
38588
38589 PR rtl-optimization/55833
38590 * loop-unswitch.c (unswitch_loops): Move loop verification...
38591 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
38592 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
38593 Set it to true when we're removing a loop from hierarchy tree in
38594 an irreducible region.
38595 (fix_bb_placements): Adjust caller.
38596 (fix_loop_placements): Likewise.
38597
38598 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
38599
38600 * config/avr/builtins.def (DEF_BUILTIN): Factor out
38601 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
38602 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
38603 Remove ID. Adjust comments.
38604 * config/avr/avr-c.c (avr_builtin_name): Remove.
38605 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
38606 * config/avr/avr.c (avr_tolower): New static function.
38607 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
38608 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
38609 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
38610 default expansion.
38611
38612 2013-01-17 Jan Hubicka <jh@suse.cz>
38613
38614 PR tree-optimization/55273
38615 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
38616
38617 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
38618
38619 PR target/55981
38620 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
38621 store through atomic_store<mode>_1.
38622 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
38623
38624 2013-01-17 Martin Jambor <mjambor@suse.cz>
38625
38626 PR tree-optimizations/55264
38627 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
38628 for virtual methods.
38629 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
38630 virtual methods before inlining is over.
38631 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
38632 virtual functions.
38633 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
38634 non-virtual.
38635
38636 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
38637
38638 PR rtl-optimization/56005
38639 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
38640 pending reads for prefetch.
38641
38642 2013-01-16 Ian Bolton <ian.bolton@arm.com>
38643
38644 * config/aarch64/aarch64.md
38645 (*cstoresi_neg_uxtw): New pattern.
38646 (*cmovsi_insn_uxtw): New pattern.
38647 (*<optab>si3_uxtw): New pattern.
38648 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
38649 (*<optab>si3_insn_uxtw): New pattern.
38650 (*bswapsi2_uxtw): New pattern.
38651
38652 2013-01-16 Richard Biener <rguenther@suse.de>
38653
38654 * tree-inline.c (tree_function_versioning): Remove set but
38655 never used variable.
38656
38657 2013-01-16 Richard Biener <rguenther@suse.de>
38658
38659 PR tree-optimization/55964
38660 * tree-flow.h (rename_variables_in_loop): Remove.
38661 (rename_variables_in_bb): Likewise.
38662 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
38663 (copy_loop_before): Adjust and delete update-ssa status.
38664 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
38665 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
38666 (rename_variables_in_loop): Remove.
38667 (slpeel_update_phis_for_duplicate_loop): Likewise.
38668 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
38669 use available cfg machinery instead of duplicating it.
38670 Update PHI nodes and perform poor-mans SSA update here.
38671 (slpeel_tree_peel_loop_to_edge): Adjust.
38672
38673 2013-01-16 Richard Biener <rguenther@suse.de>
38674
38675 PR tree-optimization/54767
38676 PR tree-optimization/53465
38677 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
38678 (vrp_visit_phi_node): For PHI arguments coming via backedges
38679 drop all symbolical range information.
38680 (execute_vrp): Compute backedges.
38681
38682 2013-01-16 Richard Biener <rguenther@suse.de>
38683
38684 * doc/install.texi: Update CLooG and ISL requirements to
38685 0.18.0 and 0.11.1.
38686
38687 2013-01-16 Christian Bruel <christian.bruel@st.com>
38688
38689 PR target/55301
38690 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
38691 (broken_move): Handle UNSPECV_SP_SWITCH_B.
38692 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
38693
38694 2013-01-16 DJ Delorie <dj@redhat.com>
38695
38696 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
38697 (UNSPECV_SP_SWITCH_E): New.
38698 (sp_switch_1): Change to an unspec.
38699 (sp_switch_2): Change to an unspec. Don't use post-inc when we
38700 replace $r15.
38701
38702 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
38703
38704 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
38705 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
38706 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
38707 (expand_mem_thread_fence): Ditto.
38708 (expand_mem_signal_fence): Ditto.
38709 (expand_atomic_load): Ditto.
38710 (expand_atomic_store): Ditto.
38711
38712 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
38713
38714 PR rtl-optimization/55547
38715 PR rtl-optimization/53827
38716 PR debug/53671
38717 PR debug/49888
38718 * alias.c (memrefs_conflict_p): Set sizes to negative after
38719 AND adjustments.
38720
38721 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38722
38723 PR target/55940
38724 * function.c (thread_prologue_and_epilogue_insns): Always
38725 add crtl->drap_reg to set_up_by_prologue.set, even if
38726 stack_realign_drap is false.
38727
38728 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38729
38730 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
38731 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
38732 *call): Fix indention.
38733
38734 2013-01-15 Tom de Vries <tom@codesourcery.com>
38735
38736 PR target/55876
38737 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
38738 Update comment.
38739
38740 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
38741
38742 PR rtl-optimization/55153
38743 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
38744
38745 2013-01-15 Martin Jambor <mjambor@suse.cz>
38746
38747 PR tree-optimization/55920
38748 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
38749 accesses as grp_to_be_debug_replaced.
38750
38751 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38752
38753 PR tree-optimization/55920
38754 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
38755 there is non-useless type conversion needed from debug rhs to lhs,
38756 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
38757
38758 2013-01-15 Joseph Myers <joseph@codesourcery.com>
38759 Mikael Pettersson <mikpe@it.uu.se>
38760
38761 PR target/43961
38762 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
38763 Thumb.
38764 (ASM_OUTPUT_CASE_LABEL): Remove.
38765 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
38766 * final.c (shorten_branches): Update alignment of labels before
38767 jump tables if CASE_VECTOR_SHORTEN_MODE.
38768
38769 2013-01-15 Richard Biener <rguenther@suse.de>
38770
38771 PR bootstrap/55961
38772 * system.h: Do not include gmp.h for building host tools.
38773
38774 2013-01-15 Richard Biener <rguenther@suse.de>
38775
38776 PR middle-end/55882
38777 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
38778 account for bitpos when computing alignment.
38779
38780 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
38781
38782 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
38783 (ix86_target_macros_internal): Likewise.
38784
38785 * config/i386/i386.c (m_CORE2I7): Removed.
38786 (m_CORE_HASWELL): New macro.
38787 (m_CORE_ALL): Likewise.
38788 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
38789 (initial_ix86_arch_features): Likewise.
38790 (processor_target_table): Initializations for Core avx2.
38791 (cpu_names): New names "core-avx2".
38792 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
38793 PROCESSOR_CORE_HASWELL.
38794 (ix86_issue_rate): New case.
38795 (ia32_multipass_dfa_lookahead): Likewise.
38796 (ix86_sched_init_global): Likewise.
38797
38798 * config/i386/i386.h (TARGET_HASWELL): New macro.
38799 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
38800 (processor_type): New PROCESSOR_HASWELL.
38801
38802 2013-01-15 Jakub Jelinek <jakub@redhat.com>
38803
38804 PR tree-optimization/55955
38805 * tree-vect-loop.c (vectorizable_reduction): Give up early on
38806 *SHIFT_EXPR and *ROTATE_EXPR codes.
38807
38808 PR tree-optimization/48766
38809 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
38810 -ftrapv disable -fwrapv.
38811
38812 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38813
38814 PR target/55974
38815 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
38816 etc. to 1 and not to __flash.
38817 Use LL suffix for __INT24_MAX__ with -mint8.
38818 Use ULL suffix for __UINT24_MAX__ with -mint8.
38819
38820 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38821
38822 * config/avr/avr-arch.h
38823 (struct base_arch_s): Use typedef avr_arch_t instead.
38824 (struct arch_info_s): Use typedef avr_arch_info_t instead.
38825 (struct mcu_type_s): Use typedef avr_mcu_t instead.
38826 * config/avr/avr.c: Same.
38827 * config/avr/avr-devices.c: Same.
38828 * config/avr/driver-avr.c: Same.
38829 * config/avr/gen-avr-mmcu-texi.c: Same.
38830 * config/avr/avr-mcus.def: Adjust comment.
38831
38832 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
38833
38834 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
38835 * config/aarch64/iterators.md (VALLDI): New.
38836
38837 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
38838 Andi Kleen <ak@linux.intel.com>
38839
38840 PR target/55948
38841 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
38842 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
38843 memmodel flag.
38844
38845 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38846
38847 * config/avr/avr-stdint.h: Remove trailing blanks.
38848 * config/avr/avr-log.h: Same.
38849 * config/avr/avr-arch.h: Same.
38850 * config/avr/avr-devices.c: Same.
38851 * config/avr/avr-dimode.md: Same.
38852 * config/avr/predicates.md: Same.
38853 * config/avr/avr-c.c: Same. And fix typo.
38854
38855 * config/avr/avr-protos.h: Same. And:
38856 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
38857 (init_cumulative_args): Rename to avr_init_cumulative_args.
38858 (expand_prologue): Rename to avr_expand_prologue.
38859 (expand_epilogue): Rename to avr_expand_epilogue.
38860 (adjust_insn_length): Rename to avr_adjust_insn_length.
38861 (notice_update_cc): Rename to avr_notice_update_cc.
38862 (final_prescan_insn): Rename to avr_final_prescan_insn.
38863 * config/avr/avr.c: Same.
38864 * config/avr/avr.h: Same.
38865 * config/avr/avr.md: Remove trailing blanks.
38866 (prologue): Use avr_expand_prologue.
38867 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
38868
38869 2013-01-14 Richard Biener <rguenther@suse.de>
38870
38871 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
38872 verify_location, collect_subblocks): New functions.
38873 (verify_gimple_in_cfg): Verify that locations only reference
38874 BLOCKs in the functions BLOCK tree.
38875
38876 2013-01-14 Richard Biener <rguenther@suse.de>
38877
38878 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
38879 PHI argument.
38880 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
38881 unshare reference.
38882 (insert_out_of_ssa_copy_on_edge): Likewise.
38883 (rewrite_close_phi_out_of_ssa): Likewise.
38884 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
38885 debug expressions.
38886 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
38887 propagated constants.
38888 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
38889 can not be shared.
38890
38891 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
38892
38893 * config/avr/avr-modes.def: Add GPL copyright notice.
38894
38895 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
38896
38897 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
38898 MEMMODEL_MASK to determine memory model.
38899 (atomic_store<mode>): Ditto from operands[2].
38900 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
38901
38902 2013-01-13 Jakub Jelinek <jakub@redhat.com>
38903
38904 PR fortran/55935
38905 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
38906 (fold_gimple_assign): Don't call unshare_expr here.
38907 (fold_ctor_reference): Call unshare_expr.
38908
38909 2013-01-13 Terry Guo <terry.guo@arm.com>
38910
38911 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
38912 * doc/fragments.texi: Document MULTILIB_REUSE.
38913 * gcc.c (multilib_reuse): New internal spec.
38914 (set_multilib_dir): Also search multilib from multilib_reuse.
38915 * genmultilib (tmpmultilib3): Refactor code.
38916 (tmpmultilib4): Ditto.
38917 (multilib_reuse): New multilib argument.
38918
38919 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
38920
38921 * Makefile.in: Update copyright.
38922
38923 2013-01-12 Tom de Vries <tom@codesourcery.com>
38924
38925 PR middle-end/55890
38926 * calls.c (expand_call): Check if arg_nr is valid.
38927
38928 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38929
38930 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
38931 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
38932 documentation. Add missing '__' in front of
38933 __builtin_ia32_packssdw256.
38934
38935 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38936
38937 PR target/55719
38938 * config/s390/s390.c (s390_preferred_reload_class): Do not return
38939 NO_REGS for larl operands.
38940 (s390_reload_larl_operand): Use s390_load_address instead of
38941 emit_move_insn.
38942
38943 2013-01-11 Richard Biener <rguenther@suse.de>
38944
38945 * tree-cfg.c (verify_node_sharing_1): Split out from ...
38946 (verify_node_sharing): ... here.
38947 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
38948
38949 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
38950
38951 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
38952 Substitute TREECHECKING.
38953 * configure: Regenerate.
38954 * Makefile.in (TREECHECKING): New.
38955
38956 2013-01-11 Richard Guenther <rguenther@suse.de>
38957
38958 PR tree-optimization/44061
38959 * tree-vrp.c (extract_range_basic): Compute zero as
38960 value-range for __builtin_constant_p of function parameters.
38961
38962 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
38963
38964 Update copyright years.
38965
38966 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
38967
38968 PR rtl-optimization/55672
38969 * lra-eliminations.c (mark_not_eliminable): Permit addition with
38970 const to be eliminable.
38971
38972 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
38973
38974 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
38975 * configure: Regenerate.
38976
38977 2013-01-10 Richard Biener <rguenther@suse.de>
38978
38979 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
38980
38981 2013-01-10 Richard Biener <rguenther@suse.de>
38982
38983 PR bootstrap/55792
38984 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
38985 locations for virtual PHI arguments.
38986 (rewrite_update_phi_arguments): Likewise.
38987
38988 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
38989
38990 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
38991 on to assembler.
38992
38993 2013-01-10 Jakub Jelinek <jakub@redhat.com>
38994
38995 PR tree-optimization/55921
38996 * tree-complex.c (expand_complex_asm): New function.
38997 (expand_complex_operations_1): Call it for GIMPLE_ASM.
38998
38999 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39000
39001 PR target/55718
39002 * config/s390/s390.c (s390_symref_operand_p)
39003 (s390_loadrelative_operand_p): Merge the two functions.
39004 (s390_check_qrst_address, print_operand_address): Add parameters
39005 to s390_loadrelative_operand_p invokation.
39006 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
39007 (s390_reload_larl_operand, s390_secondary_reload): Use
39008 s390_loadrelative_operand_p instead of s390_symref_operand_p.
39009 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
39010
39011 2013-01-09 Mike Stump <mikestump@comcast.net>
39012
39013 * dse.c (record_store): Remove unnecessary assert.
39014
39015 2013-01-09 Jan Hubicka <jh@suse.cz>
39016
39017 PR tree-optimization/55569
39018 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
39019 * cfgloop.h (scale_loop_profile): Likewise.
39020
39021 2013-01-09 Jan Hubicka <jh@suse.cz>
39022
39023 PR lto/45375
39024 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
39025 functions.
39026 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
39027
39028 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
39029
39030 PR middle-end/55114
39031 * expr.h (maybe_emit_group_store): Declare.
39032 * expr.c (maybe_emit_group_store): New function.
39033 * builtins.c (expand_builtin_int_roundingfn): Call it.
39034 (expand_builtin_int_roundingfn_2): Likewise.
39035
39036 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
39037
39038 PR rtl-optimization/55829
39039 * lra-constraints.c (match_reload): Add code for absent output.
39040 (curr_insn_transform): Add code for reloads of matched inputs
39041 without output.
39042
39043 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
39044
39045 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
39046 attribute of movddup insn to DF.
39047 (*vec_interleave_lowv2df): Ditto.
39048 (vec_dupv2df): Ditto.
39049
39050 2013-01-09 Jan Hubicka <jh@suse.cz>
39051
39052 PR tree-optimiation/55875
39053 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
39054 EVERY_ITERATION parameter.
39055 (number_of_iterations_exit): Check if exit is executed every iteration.
39056 (idx_infer_loop_bounds): Similarly here.
39057 (n_of_executions_at_most): Simplify
39058 to only test for cases where statement is dominated by the
39059 particular bound; handle correctly the "postdominance" test.
39060 (scev_probably_wraps_p): Use max loop iterations info
39061 as a global bound first.
39062
39063 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
39064 Nick Clifton <nickc@redhat.com>
39065
39066 * config/v850/v850.md (cbranchsf4): New pattern.
39067 (cstoresf4): New pattern.
39068 (cbranchdf4): New pattern.
39069 (cstoredf4): New pattern.
39070 (movsicc): Disallow floating point comparisons.
39071 (cmpsf_le_insn): Fix order of operators.
39072 (cmpsf_lt_insn): Likewise.
39073 (cmpsf_eq_insn): Likewise.
39074 (cmpdf_le_insn): Likewise.
39075 (cmpdf_lt_insn): Likewise.
39076 (cmpdf_eq_insn): Likewise.
39077 (cmpsf_ge_insn): Use LE comparison.
39078 (cmpdf_ge_insn): Likewise.
39079 (cmpsf_gt_insn): Use LT comparison.
39080 (cmpdf_gt_insn): Likewise.
39081 (cmpsf_ne_insn): Delete pattern.
39082 (cmpdf_ne_insn): Delete pattern.
39083 * config/v850/v850.c (v850_gen_float_compare): Use
39084 gen_cmpdf_eq_insn for NE comparison.
39085 (v850_float_z_comparison_operator)
39086 (v850_float_nz_comparison_operator): Move from here ...
39087 * config/v850/predicates.md: ... to here. Move GT and GE
39088 comparisons into v850_float_z_comparison_operator.
39089 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
39090 Delete prototype.
39091 (v850_float_nz_comparison_operator): Likewise.
39092
39093 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39094
39095 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
39096 with calls to gen_insvsi/gen_insvdi.
39097
39098 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
39099
39100 * config/i386/i386.c (initial_ix86_tune_features): Set up
39101 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
39102
39103 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
39104 Jakub Jelinek <jakub@redhat.com>
39105
39106 PR tree-optimization/48189
39107 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
39108 If nitercst is 0, don't predict the exit edge.
39109
39110 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39111
39112 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
39113 in asm_fprintf with reg_names.
39114 (aarch64_print_operand_address): Likewise.
39115 (aarch64_return_addr): Likewise.
39116 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
39117
39118 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39119
39120 * config/pa/pa.h (VAL_U6_BITS_P): Define.
39121 (INT_U6_BITS): Likewise.
39122 * config/pa/predicates.md (uint6_operand): New predicate.
39123 (shift5_operand, shift6_operand): Likewise.
39124 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
39125 arith32_operand.
39126 (lshrdi3): Use shift6_operand.
39127 (shrpsi4, shrpdi4): New insn patterns.
39128 (extzv): Delete expander.
39129 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
39130 predicates in unamed zero extract patterns. Tighten common constraint.
39131 (extv): Delete expander.
39132 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
39133 predicates in unamed sign extract patterns. Tighten common constraint.
39134 (insv): Delete expander.
39135 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
39136 predicates in unamed insert patterns. Tighten common constraint.
39137 Change uint32_operand predicate to uint6_operand predicate in unamed
39138 DImode pattern to insert constant values of type 1...1xxxx.
39139
39140 2013-01-04 Jan Hubicka <jh@suse.cz>
39141
39142 PR tree-optimization/55823
39143 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
39144 issue.
39145
39146 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39147 Uros Bizjak <ubizjak@gmail.com>
39148
39149 PR rtl-optimization/55845
39150 * df-problems.c (can_move_insns_across): Stop scanning at
39151 volatile_insn_p source instruction or give up if
39152 across_from .. across_to range contains any volatile_insn_p
39153 instructions.
39154
39155 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39156
39157 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
39158 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
39159 Declare.
39160 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
39161 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
39162
39163 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39164
39165 PR fortran/55341
39166 * asan.c (asan_clear_shadow): New function.
39167 (asan_emit_stack_protection): Use it.
39168
39169 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
39170
39171 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
39172 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
39173 with tab instead of space.
39174
39175 2013-01-08 Nick Clifton <nickc@redhat.com>
39176
39177 * config/rl78/rl78.c (rl78_expand_prologue): Always select
39178 register bank 0 at the start of an interrupt handler.
39179 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
39180 MDBH registers.
39181
39182 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39183
39184 * config/aarch64/aarch64-simd.md
39185 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
39186 (aarch64_simd_bsl): Likewise.
39187 (aarch64_vcond_internal<mode>): Likewise.
39188 (vcond<mode><mode>): Likewise.
39189 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
39190 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
39191
39192 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
39193
39194 * config/aarch64/aarch64-builtins.c
39195 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
39196
39197 2013-01-08 Martin Jambor <mjambor@suse.cz>
39198
39199 PR debug/55579
39200 * tree-sra.c (analyze_access_subtree): Return true also after
39201 potentially creating a debug-only replacement.
39202
39203 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39204
39205 PR middle-end/55890
39206 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
39207
39208 PR tree-optimization/54120
39209 * tree-vrp.c (range_fits_type_p): Don't allow
39210 src_precision < precision from signed vr to unsigned_p
39211 if vr->min or vr->max is negative.
39212 (simplify_float_conversion_using_ranges): Test can_float_p
39213 against CODE_FOR_nothing.
39214
39215 2013-01-08 Jakub Jelinek <jakub@redhat.com>
39216 Richard Biener <rguenther@suse.de>
39217
39218 PR middle-end/55851
39219 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
39220 types instead of just INTEGER_TYPE types.
39221
39222 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
39223
39224 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
39225 TF_SIZE): Define.
39226
39227 2013-01-07 Steve Ellcey <sellcey@mips.com>
39228
39229 PR target/42661
39230 * config/mips/mips.opt: Change mad to mmad to match documentation.
39231
39232 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39233
39234 PR target/55897
39235 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
39236 .progmemx.data now.
39237
39238 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39239
39240 PR target/55897
39241 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
39242 (avr_addrspace_t): Add .section_name field.
39243 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
39244 array size.
39245 (avr_addrspace): Same. Initialize .section_name. Remove last
39246 NULL entry. Put __memx into .progmemx.data.
39247 (progmem_section_prefix): Remove.
39248 (avr_asm_init_sections): No need to initialize progmem_section.
39249 (avr_asm_named_section): Use avr_addrspace[].section_name to get
39250 section name prefix.
39251 (avr_asm_select_section): Ditto. And use get_unnamed_section to
39252 retrieve the progmem section.
39253 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
39254 boundary to run over avr_addrspace[].
39255 (avr_register_target_pragmas): Ditto.
39256
39257 2013-01-06 Jakub Jelinek <jakub@redhat.com>
39258
39259 * varasm.c (output_constant_def_contents): For asan_protect_global
39260 protected strings, adjust DECL_ALIGN if needed, before testing for
39261 anchored symbols.
39262 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
39263 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
39264 normal decls.
39265 (output_object_block): For asan protected decls, emit asan padding
39266 after their contents.
39267 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
39268 (asan_finish_file): Test it here instead.
39269
39270 2013-01-07 Nick Clifton <nickc@redhat.com>
39271 Matthias Klose <doko@debian.org>
39272 Doug Kwan <dougkwan@google.com>
39273 H.J. Lu <hongjiu.lu@intel.com>
39274
39275 PR driver/55470
39276 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
39277
39278 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
39279
39280 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
39281
39282 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
39283
39284 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
39285
39286 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39287
39288 PR target/54461
39289 * doc/install.texi (Cross-Compiler-Specific Options): Document
39290 --with-avrlibc.
39291
39292 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
39293
39294 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
39295 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
39296 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
39297 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
39298 vqmovun_high_s64): Fix source operand number and update copyright.
39299
39300 2013-01-07 Richard Biener <rguenther@suse.de>
39301
39302 PR middle-end/55890
39303 * gimple.h (gimple_call_builtin_p): New overload.
39304 * gimple.c (validate_call): New function.
39305 (gimple_call_builtin_p): Likewise.
39306 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39307 Use gimple_call_builtin_p.
39308 (find_func_clobbers): Likewise.
39309 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
39310 (strlen_optimize_stmt): Likewise.
39311
39312 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39313
39314 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
39315 (vld1q_dup_*): Likewise.
39316 (vld1_*): Likewise.
39317 (vld1q_*): Likewise.
39318 (vld1_lane_*): Likewise.
39319 (vld1q_lane_*): Likewise.
39320
39321 2013-01-07 Richard Biener <rguenther@suse.de>
39322
39323 * lto-streamer.h (LTO_minor_version): Bump to 2.
39324
39325 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39326
39327 * config/aarch64/aarch64-protos.h
39328 (aarch64_const_double_zero_rtx_p): Rename to...
39329 (aarch64_float_const_zero_rtx_p): ...this.
39330 (aarch64_float_const_representable_p): New.
39331 (aarch64_output_simd_mov_immediate): Likewise.
39332 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
39333 move immediate case.
39334 * config/aarch64/aarch64.c
39335 (aarch64_const_double_zero_rtx_p): Rename to...
39336 (aarch64_float_const_zero_rtx_p): ...this.
39337 (aarch64_print_operand): Allow printing of new constants.
39338 (aarch64_valid_floating_const): New.
39339 (aarch64_legitimate_constant_p): Check for valid floating-point
39340 constants.
39341 (aarch64_simd_valid_immediate): Likewise.
39342 (aarch64_vect_float_const_representable_p): New.
39343 (aarch64_float_const_representable_p): Likewise.
39344 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
39345 (aarch64_output_simd_mov_immediate): New.
39346 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
39347 (*movdf_aarch64): Likewise.
39348 * config/aarch64/constraints.md (Ufc): New.
39349 (Y): call aarch64_float_const_zero_rtx.
39350 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
39351
39352 2013-01-07 Richard Biener <rguenther@suse.de>
39353
39354 PR tree-optimization/55888
39355 PR tree-optimization/55862
39356 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
39357 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
39358 not if it is contained therein.
39359
39360 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39361
39362 * config/avr/t-avr: Typo.
39363
39364 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
39365
39366 PR55243
39367 * config/avr/t-avr: Don't automatically rebuild
39368 $(srcdir)/config/avr/t-multilib
39369 $(srcdir)/config/avr/avr-tables.opt
39370 $(srcdir)/doc/avr-mmcu.texi
39371 (avr-mcus): New phony target to build them on request.
39372 (s-avr-mlib, s-avr-mmcu-texi): Remove.
39373 * avr/avr-mcus.def: Adjust comments.
39374
39375 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
39376
39377 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
39378
39379 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39380
39381 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
39382
39383 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
39384
39385 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
39386
39387 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
39388
39389 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
39390 to generate profiling.
39391 * config/rs6000/aix64.h (LIB_SPEC): Same.
39392
39393 2013-01-04 Andrew Pinski <apinski@cavium.com>
39394
39395 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
39396 New function.
39397 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
39398
39399 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
39400
39401 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
39402 unconditionally.
39403 (ix86_expand_move): Ditto.
39404 (ix86_zero_extend_to_Pmode): Ditto.
39405 (ix86_expand_call): Ditto.
39406 (ix86_expand_special_args_builtin): Ditto.
39407 (ix86_expand_builtin): Ditto.
39408
39409 2013-01-04 Richard Biener <rguenther@suse.de>
39410
39411 PR tree-optimization/55862
39412 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
39413 translating them through PHI nodes.
39414
39415 2013-01-04 Martin Jambor <mjambor@suse.cz>
39416
39417 PR tree-optimization/55755
39418 * tree-sra.c (sra_modify_assign): Do not check that an access has no
39419 children when trying to avoid producing a VIEW_CONVERT_EXPR.
39420
39421 2013-01-04 Marek Polacek <polacek@redhat.com>
39422
39423 PR middle-end/55859
39424 * opts.c (default_options_optimization): Clarify error message.
39425
39426 2013-01-04 Richard Biener <rguenther@suse.de>
39427
39428 PR middle-end/55863
39429 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
39430 reassociation.
39431
39432 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39433
39434 PR target/53789
39435 * config/pa/pa.md (movsi): Revert previous change.
39436 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
39437 references.
39438
39439 2013-01-03 Richard Henderson <rth@redhat.com>
39440
39441 * config/i386/i386.c (ix86_expand_move): Always assign to op1
39442 after eliminating TLS symbols.
39443
39444 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
39445
39446 PR bootstrap/50167
39447 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
39448 * graphite-poly.c (debug_gmp_value): Likewise.
39449
39450 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
39451
39452 PR target/55712
39453 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
39454 selected code model, define __code_mode_small__, __code_model_medium__,
39455 __code_model_large__, __code_model_32__ or __code_model_kernel__.
39456 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
39457 xchg temporary register with %k. Declare temporary register as
39458 early clobbered.
39459 [__x86_64__]: For medium and large code models, preserve %rbx register.
39460
39461 2013-01-03 Richard Biener <rguenther@suse.de>
39462
39463 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
39464 (dump_subscript): Adjust.
39465 (finalize_ddr_dependent): Do not dump redundant info.
39466 (analyze_siv_subscript): Adjust.
39467 (subscript_dependence_tester): Likewise.
39468 (compute_affine_dependence): Likewise.
39469
39470 2013-01-03 Richard Biener <rguenther@suse.de>
39471
39472 Revert
39473 2013-01-03 Richard Biener <rguenther@suse.de>
39474
39475 PR tree-optimization/55857
39476 * tree-vect-stmts.c (vectorizable_load): Do not setup
39477 re-alignment for invariant loads.
39478
39479 2013-01-02 Richard Biener <rguenther@suse.de>
39480
39481 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39482 invariant load do not generate a vector load from the scalar location.
39483
39484 2013-01-03 Richard Biener <rguenther@suse.de>
39485
39486 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
39487 for not vectorizing.
39488 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
39489 not build INDIRECT_REFs, call get_name once only.
39490 (vect_create_data_ref_ptr): Likewise. Dump base object kind
39491 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
39492
39493 2013-01-03 Richard Biener <rguenther@suse.de>
39494
39495 PR tree-optimization/55857
39496 * tree-vect-stmts.c (vectorizable_load): Do not setup
39497 re-alignment for invariant loads.
39498
39499 2013-01-03 Richard Biener <rguenther@suse.de>
39500
39501 PR lto/55848
39502 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
39503 prefer a built-in decl.
39504
39505 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39506
39507 * gcc.c (process_command): Update copyright notice dates.
39508 * gcov.c (print_version): Likewise.
39509 * gcov-dump.c (print_version): Likewise.
39510
39511 PR rtl-optimization/55838
39512 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
39513 iv0.step, iv1.step and step.
39514
39515 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39516 Marc Glisse <marc.glisse@inria.fr>
39517
39518 PR tree-optimization/55832
39519 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
39520 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
39521 integer_{one,zero}_node.
39522
39523 2013-01-03 Jakub Jelinek <jakub@redhat.com>
39524
39525 PR debug/54402
39526 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
39527 * var-tracking.c (reverse_op): Don't add reverse ops to
39528 VALUEs that have already
39529 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
39530
39531 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
39532
39533 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
39534
39535 2013-01-02 Teresa Johnson <tejohnson@google.com>
39536
39537 * dumpfile.c (dump_loc): Print filename with location.
39538 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
39539 new location_t parameter to emit complete unroll message with
39540 new dump framework.
39541 (canonicalize_loop_induction_variables): Compute loops location
39542 and pass to try_unroll_loop_completely.
39543 * loop-unroll.c (report_unroll_peel): New function.
39544 (peel_loops_completely): Use new dump format with location
39545 for main dumpfile message, and invoke report_unroll_peel on success.
39546 (decide_unrolling_and_peeling): Ditto.
39547 (decide_peel_once_rolling): Remove old dumpfile message subsumed
39548 by report_unroll_peel.
39549 (decide_peel_completely): Ditto.
39550 (decide_unroll_constant_iterations): Ditto.
39551 (decide_unroll_runtime_iterations): Ditto.
39552 (decide_peel_simple): Ditto.
39553 (decide_unroll_stupid): Ditto.
39554 * cfgloop.c (get_loop_location): New function.
39555 * cfgloop.h (get_loop_location): Declare.
39556
39557 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39558
39559 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
39560 NULL.
39561
39562 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39563
39564 PR middle-end/55198
39565 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
39566 BLKmode objects when EXPAND_MEMORY is specified.
39567
39568 2013-01-02 Sriraman Tallam <tmsriram@google.com>
39569
39570 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
39571 in loop predicate.
39572 (fold_builtin_cpu): Do not share cpu model decls across statements.
39573
39574 2013-01-02 Jason Merrill <jason@redhat.com>
39575
39576 PR c++/55804
39577 * tree.c (build_array_type_1): Revert earlier change.
39578
39579 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
39580
39581 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
39582 "cortex-a57".
39583 * config/aarch64/aarch64-tune.md: Re-generate.
39584
39585 2013-01-02 Richard Biener <rguenther@suse.de>
39586
39587 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
39588 invariant load do not generate a vector load from the scalar location.
39589
39590 2013-01-02 Richard Biener <rguenther@suse.de>
39591
39592 PR bootstrap/55784
39593 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
39594 * configure: Regenerate.
39595
39596 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39597
39598 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
39599 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
39600 (expand_builtin_int_roundingfn_2): Keep the original target around
39601 for the fallback case.
39602
39603 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39604
39605 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
39606 to be clear for sign changes.
39607
39608 2013-01-01 Jan Hubicka <jh@suse.cz>
39609
39610 * ipa-inline-analysis.c: Fix formatting.
39611
39612 2013-01-01 Jakub Jelinek <jakub@redhat.com>
39613
39614 PR tree-optimization/55831
39615 * tree-vect-loop.c (get_initial_def_for_induction): Use
39616 gsi_after_labels instead of gsi_start_bb.
39617 \f
39618 Copyright (C) 2013 Free Software Foundation, Inc.
39619
39620 Copying and distribution of this file, with or without modification,
39621 are permitted in any medium without royalty provided the copyright
39622 notice and this notice are preserved.