re PR tree-optimization/57478 (ice in vec.h:815)
[gcc.git] / gcc / ChangeLog
1 2013-05-31 Richard Biener <rguenther@suse.de>
2
3 PR tree-optimization/57478
4 PR tree-optimization/57453
5 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
6 are life as well.
7
8 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9
10 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
11 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
12
13 2013-05-30 Tobias Burnus <burnus@net-b.de>
14 Thomas Koenig <tkoenig@gcc.gnu.org>
15
16 PR middle-end/57073
17 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
18 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
19
20 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
21
22 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
23
24 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25
26 * target.def (register_usage_leveling_p): New hook.
27 * targhooks.c (default_register_usage_leveling_p): New.
28 * targhooks.h (default_register_usage_leveling_p): New prototype.
29 * lra-assigns.c (register_usage_leveling_p): Use the hook.
30 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
31 * doc/tm.texi: Update.
32 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
33
34 2013-05-30 Ian Bolton <ian.bolton@arm.com>
35
36 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
37 (*insv_reg<mode>): New define_insn.
38
39 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
40
41 PR rtl-optimization/57439
42 * postreload.c (move2add_valid_value_p): Check that we have
43 a zero subreg_regno_offset when accessing the register in
44 the requested mode.
45
46 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
47 Igor Zamyatin <igor.zamyatin@intel.com>
48
49 Silvermont (SLM) architecture pipeline model, tuning and
50 insn selection.
51 * config.gcc: Add slm config options and target.
52
53 * config/i386/slm.md: New.
54
55 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
56
57 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
58 PROCESSOR_SLM.
59 (ix86_target_macros_internal): Likewise.
60
61 * gcc/config/i386/i386.c (slm_cost): New cost.
62 (m_SLM): New macro flag.
63 (initial_ix86_tune_features): Set m_SLM.
64 (x86_accumulate_outgoing_args): Likewise.
65 (x86_arch_always_fancy_math_387): Likewise.
66 (processor_target_table): Add slm cost.
67 (cpu_names): Add slm cpu name.
68 (x86_option_override_internal): Set SLM ISA.
69 (ix86_issue_rate): New case PROCESSOR_SLM.
70 (ia32_multipass_dfa_lookahead): Likewise.
71 (fold_builtin_cpu): Add slm.
72
73 * config/i386/i386.h (TARGET_SLM): New target macro.
74 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
75 (processor_type): Add PROCESSOR_SLM.
76
77 * config/i386/i386.md (cpu): Add new value "slm".
78 (slm.md): Include slm.md.
79
80 * libgcc/config/i386/cpuinfo.c (INTEL_SLM): New enum value.
81
82 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
83 Zhenqiang Chen <zhenqiang.chen@linaro.org>
84
85 * config/arm/arm-protos.h: Add and update function protos.
86 * config/arm/arm.c (use_simple_return_p): New added.
87 (thumb2_expand_return): Check simple_return flag.
88 * config/arm/arm.md: Add simple_return and conditional simple_return.
89 * config/arm/iterators.md: Add iterator for return and simple_return.
90
91 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
92
93 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
94 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
95 (arm_emit_vfp_multi_reg_pop): Likewise.
96 (thumb2_emit_ldrd_pop): Likewise.
97 (arm_expand_epilogue): Add misc REG_CFA notes.
98 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
99
100 2013-05-29 Lawrence Crowl <crowl@google.com>
101
102 * config/arm/t-arm: Update for below.
103
104 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
105 Change type to hash_table. Update dependent calls and types.
106
107 * config/i386/t-cygming: Update for below.
108
109 * config/i386/t-interix: Update for below.
110
111 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
112 Change type to hash_table. Update dependent calls and types.
113 (i386_find_on_wrapper_list::wrappers): Likewise.
114
115 * config/ia64/t-ia64: Update for below.
116
117 * config/ia64/ia64.c (bundle_state_table):
118 Change type to hash_table. Update dependent calls and types.
119
120 * config/mips/mips.c (mips_reorg_process_insns::htab):
121 Change type to hash_table. Update dependent calls and types.
122
123 * config/sol2.c (solaris_comdat_htab):
124 Change type to hash_table. Update dependent calls and types.
125
126 * config/t-sol2: Update for above.
127
128 2013-05-29 Teresa Johnson <tejohnson@google.com>
129
130 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
131 functions are not yet marked as defined.
132
133 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
134 Pat Haugen <pthaugen@us.ibm.com>
135 Peter Bergner <bergner@vnet.ibm.com>
136
137 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
138 instructions.
139 (VEC_A): Likewise.
140 (VEC_C): Likewise.
141 (vrotl<mode>3): Likewise.
142 (vashl<mode>3): Likewise.
143 (vlshr<mode>3): Likewise.
144 (vashr<mode>3): Likewise.
145
146 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
147 support for power8 V2DI builtins.
148
149 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
150 power8 V2DI builtins.
151 (vupkhsw): Likewise.
152 (vupklsw): Likewise.
153 (vaddudm): Likewise.
154 (vminsd): Likewise.
155 (vmaxsd): Likewise.
156 (vminud): Likewise.
157 (vmaxud): Likewise.
158 (vpkudum): Likewise.
159 (vpksdss): Likewise.
160 (vpkudus): Likewise.
161 (vpksdus): Likewise.
162 (vrld): Likewise.
163 (vsld): Likewise.
164 (vsrd): Likewise.
165 (vsrad): Likewise.
166 (vsubudm): Likewise.
167 (vcmpequd): Likewise.
168 (vcmpgtsd): Likewise.
169 (vcmpgtud): Likewise.
170 (vcmpequd_p): Likewise.
171 (vcmpgtsd_p): Likewise.
172 (vcmpgtud_p): Likewise.
173 (vupkhsw): Likewise.
174 (vupklsw): Likewise.
175 (vaddudm): Likewise.
176 (vmaxsd): Likewise.
177 (vmaxud): Likewise.
178 (vminsd): Likewise.
179 (vminud): Likewise.
180 (vpksdss): Likewise.
181 (vpksdus): Likewise.
182 (vpkudum): Likewise.
183 (vpkudus): Likewise.
184 (vrld): Likewise.
185 (vsld): Likewise.
186 (vsrad): Likewise.
187 (vsrd): Likewise.
188 (vsubudm): Likewise.
189
190 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
191 support for power8 V2DI instructions.
192
193 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
194 power8 V2DI instructions. Combine pack and unpack insns to use an
195 iterator for each mode. Check whether a particular mode supports
196 Altivec instructions instead of just checking TARGET_ALTIVEC.
197 (UNSPEC_VPKUWUM): Likewise.
198 (UNSPEC_VPKSHSS): Likewise.
199 (UNSPEC_VPKSWSS): Likewise.
200 (UNSPEC_VPKUHUS): Likewise.
201 (UNSPEC_VPKSHUS): Likewise.
202 (UNSPEC_VPKUWUS): Likewise.
203 (UNSPEC_VPKSWUS): Likewise.
204 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
205 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
206 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
207 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
208 (UNSPEC_VUPKHSB): Likewise.
209 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
210 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
211 (UNSPEC_VUPKHSH): Likewise.
212 (UNSPEC_VUPKLSB): Likewise.
213 (UNSPEC_VUPKLSH): Likewise.
214 (VI2): Likewise.
215 (VI_char): Likewise.
216 (VI_scalar): Likewise.
217 (VI_unit): Likewise.
218 (VP): Likewise.
219 (VP_small): Likewise.
220 (VP_small_lc): Likewise.
221 (VU_char): Likewise.
222 (add<mode>3): Likewise.
223 (altivec_vaddcuw): Likewise.
224 (altivec_vaddu<VI_char>s): Likewise.
225 (altivec_vadds<VI_char>s): Likewise.
226 (sub<mode>3): Likewise.
227 (altivec_vsubcuw): Likewise.
228 (altivec_vsubu<VI_char>s): Likewise.
229 (altivec_vsubs<VI_char>s): Likewise.
230 (altivec_vavgs<VI_char>): Likewise.
231 (altivec_vcmpbfp): Likewise.
232 (altivec_eq<mode>): Likewise.
233 (altivec_gt<mode>): Likewise.
234 (altivec_gtu<mode>): Likewise.
235 (umax<mode>3): Likewise.
236 (smax<mode>3): Likewise.
237 (umin<mode>3): Likewise.
238 (smin<mode>3): Likewise.
239 (altivec_vpkuhum): Likewise.
240 (altivec_vpkuwum): Likewise.
241 (altivec_vpkshss): Likewise.
242 (altivec_vpkswss): Likewise.
243 (altivec_vpkuhus): Likewise.
244 (altivec_vpkshus): Likewise.
245 (altivec_vpkuwus): Likewise.
246 (altivec_vpkswus): Likewise.
247 (altivec_vpks<VI_char>ss): Likewise.
248 (altivec_vpks<VI_char>us): Likewise.
249 (altivec_vpku<VI_char>us): Likewise.
250 (altivec_vpku<VI_char>um): Likewise.
251 (altivec_vrl<VI_char>): Likewise.
252 (altivec_vsl<VI_char>): Likewise.
253 (altivec_vsr<VI_char>): Likewise.
254 (altivec_vsra<VI_char>): Likewise.
255 (altivec_vsldoi_<mode>): Likewise.
256 (altivec_vupkhsb): Likewise.
257 (altivec_vupkhs<VU_char>): Likewise.
258 (altivec_vupkls<VU_char>): Likewise.
259 (altivec_vupkhsh): Likewise.
260 (altivec_vupklsb): Likewise.
261 (altivec_vupklsh): Likewise.
262 (altivec_vcmpequ<VI_char>_p): Likewise.
263 (altivec_vcmpgts<VI_char>_p): Likewise.
264 (altivec_vcmpgtu<VI_char>_p): Likewise.
265 (abs<mode>2): Likewise.
266 (vec_unpacks_hi_v16qi): Likewise.
267 (vec_unpacks_hi_v8hi): Likewise.
268 (vec_unpacks_lo_v16qi): Likewise.
269 (vec_unpacks_hi_<VP_small_lc>): Likewise.
270 (vec_unpacks_lo_v8hi): Likewise.
271 (vec_unpacks_lo_<VP_small_lc>): Likewise.
272 (vec_pack_trunc_v8h): Likewise.
273 (vec_pack_trunc_v4si): Likewise.
274 (vec_pack_trunc_<mode>): Likewise.
275
276 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
277 V2DI builtins.
278 (vec_vmaxsd): Likewise.
279 (vec_vmaxud): Likewise.
280 (vec_vminsd): Likewise.
281 (vec_vminud): Likewise.
282 (vec_vpksdss): Likewise.
283 (vec_vpksdus): Likewise.
284 (vec_vpkudum): Likewise.
285 (vec_vpkudus): Likewise.
286 (vec_vrld): Likewise.
287 (vec_vsld): Likewise.
288 (vec_vsrad): Likewise.
289 (vec_vsrd): Likewise.
290 (vec_vsubudm): Likewise.
291 (vec_vupkhsw): Likewise.
292 (vec_vupklsw): Likewise.
293
294 2013-05-29 Jan Hubicka <jh@suse.cz>
295
296 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
297 flags; reorder rest of fields in more consistent way.
298 (varpool_node): Remove analyzed, finalized and alias.
299 (cgraph_ndoe): Likewise.
300 (symtab_alias_ultimate_target): New function.
301 (cgraph_function_node): Move offline.
302 (cgraph_reset_node): Declare.
303 (cgraph_comdat_can_be_unshared_p): Remove.
304 (varpool_remove_initializer): Declare.
305 (varpool_first_defined_variable, varpool_next_defined_variable
306 cgraph_first_defined_function, cgraph_next_defined_function): Update.
307 (cgraph_function_with_gimple_body_p): Update.
308 (varpool_all_refs_explicit_p): Update.
309 (symtab_alias_target): New function.
310 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
311 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
312 (cgraph_function_or_thunk_node): Simplify using symtab_alias_ultimate_target.
313 (varpool_variable_node): Likewise.
314 * cgraph.c (cgraph_create_function_alias): Update.
315 (cgraph_add_thunk): Update.
316 (cgraph_remove_node): Update.
317 (dump_cgraph_node): Do not dump removed flags.
318 (cgraph_function_body_availability): Update.
319 (cgraph_propagate_frequency): Update.
320 (verify_cgraph_node): Check sanity of local flag.
321 (cgraph_function_node): Move here from cgraph.h; revamp for
322 cgraph_function_or_thunk_node.
323 * lto-symtab.c (lto_varpool_replace_node): Update.
324 (lto_symtab_resolve_can_prevail_p): Update.
325 (lto_symtab_merge_cgraph_nodes): Update.
326 * ipa-cp.c (determine_versionability, initialize_node_lattices,
327 propagate_constants_accross_call, devirtualization_time_bonus,
328 ipcp_propagate_stage): Update.
329 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
330 * ipa-inline-transform.c (clone_inlined_nodes, preserve_function_body_p): Update.
331 * ipa-reference.c (propagate): Update.
332 (write_node_summary_p): Update.
333 * toplev.c (wrapup_global_declaration_2): Update.
334 * cgraphunit.c (cgraph_analyze_function): Rename to ...
335 (analyze_function) ... this one.
336 (cgraph_process_new_functions): Update.
337 (cgraph_reset_node): Export.
338 (cgraph_finalize_function): Update.
339 (cgraph_add_new_function): Update.
340 (process_function_and_variable_attributes): Update.
341 (varpool_finalize_decl): Update.
342 (symbol_finalized): Remove.
343 (symbol_finalized_and_needed): Rename to ...
344 (symbol_defined_and_needed): ... update.
345 (cgraph_analyze_functions): Update.
346 (handle_alias_pairs): Update.
347 (mark_functions_to_output): Update.
348 (assemble_thunk): Update.
349 (output_in_order): Update.
350 (output_weakrefs): Update.
351 (finalize_compilation_unit): Update.
352 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
353 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
354 input_node, input_varpool_node): Update.
355 * dbxout.c (dbxout_expand_expr): Update.
356 * cgraphclones.c (cgraph_clone_node): Update.
357 (cgraph_copy_node_for_versioning): Update.
358 (cgraph_materialize_clone): Update.
359 (cgraph_materialize_all_clones): Update.
360 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
361 propagate_pure_const, propagate_nothrow): Update.
362 * lto-streamer-out.c (lto_output, write_symbol): Update.
363 * ipa-utils.c (ipa_reverse_postorder): Update.
364 * ipa-inline.c (can_inline_edge_p): Update.
365 (update_caller_keys, ipa_inline): Update.
366 * dwarf2out.c (reference_to_unused,
367 premark_types_used_by_global_vars_helper): Update.
368 * tree-eh.c (tree_could_trap_p): Update.
369 * ipa-split.c (consider_split, execute_split_functions): Update.
370 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
371 has_addr_references_p): Update;
372 move ahead in file for better readability.
373 (process_references): Simplify.
374 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
375 bodies are removed.
376 (cgraph_comdat_can_be_unshared_p): Make static.
377 (cgraph_externally_visible_p): Update.
378 (varpool_externally_visible_p): Update.
379 (function_and_variable_visibility): Update.
380 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
381 ipa_tm_mark_force_output_node): Update.
382 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
383 estimate_edge_devirt_benefit, inline_generate_summary,
384 inline_write_summary): Update.
385 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
386 * ipa-prop.c (ipa_compute_jump_functions): Update.
387 (ipa_print_node_params, ipa_prop_read_section, ipa_update_after_lto_read,
388 read_replacements_section): Update.
389 * varasm.c (mark_decl_referenced): Update.
390 (assemble_alias, dump_tm_clone_pairs): Update.
391 * tree-inline.c (copy_bb): Update.
392 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
393 Update.
394 * symtab.c (dump_symtab_base): Print new flags.
395 (verify_symtab_base): Verify new flags.
396 (symtab_alias_ultimate_target): New function.
397 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
398 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
399 Update.
400 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries): Update.
401 * i386.c (ix86_get_function_versions_dispatcher,
402 ix86_generate_version_dispatcher_body): Update.
403 (fold_builtin_cpu): Use varpool_add_new_variable.
404 * varpool.c (varpool_remove_initializer): Break out from ...
405 (varpool_remove_node): ... this one.
406 (dump_varpool_node, varpool_node_for_asm,
407 cgraph_variable_initializer_availability, varpool_analyze_node,
408 varpool_assemble_decl, varpool_remove_unreferenced_decls,
409 varpool_finalize_named_section_flags, varpool_create_variable_alias): Update
410
411 2013-05-29 Jan Hubicka <jh@suse.cz>
412
413 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
414
415 2013-05-29 Easwaran Raman <eraman@google.com>
416
417 PR tree-optimization/57442
418 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
419 when control exits the main loop.
420
421 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
422
423 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
424 and RX600.
425 * rx/rx.opt: Add macro for rx100 with string rx100 and value
426 RX100.
427 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
428 * rx/t-rx: Add rx100 under multi library matches option for nofpu
429 option.
430
431 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
432
433 PR tree-optimization/57441
434 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
435 Don't limit size of incr_vec to number of candidates.
436
437 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
438
439 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
440 and mips16 directories.
441 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and
442 mips16.
443 (MULTILIB_DIRNAMES): Ditto.
444 (MULTILIB_EXCEPTIONS): Add new exceptions.
445 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
446 (MULTILIB_DIRNAMES): Ditto.
447 (MULTILIB_EXCEPTIONS): Add new exceptions.
448
449 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
450 Marcus Shawcroft <marcus.shawcroft@arm.com>
451
452 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
453 SYMBOL_TINY_ABSOLUTE.
454 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
455 SYMBOL_TINY_ABSOLUTE.
456 (aarch64_expand_mov_immediate): Likewise.
457 (aarch64_classify_symbol): Likewise.
458 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
459 Permit SYMBOL_TINY_ABSOLUTE.
460 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
461
462 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
463 Marcus Shawcroft <marcus.shawcroft@arm.com>
464
465 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
466 Refactor if/switch. Replace gcc_assert with if.
467
468 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
469
470 * config/i386/i386.c (initial_ix86_tune_features): Enable
471 FP Reassociation for AMD bdver1 and bdver2.
472
473 2013-05-29 Martin Jambor <mjambor@suse.cz>
474
475 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
476 and IMAGPART_EXPR do not occur within other handled_components.
477
478 2013-05-29 Richard Biener <rguenther@suse.de>
479
480 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
481 access on whether the use is in the BB we currently try to
482 vectorize.
483 (vect_bb_vectorization_profitable_p): Pass the BB we currently
484 vectorize to vect_bb_slp_scalar_cost.
485
486 2013-05-29 Richard Biener <rguenther@suse.de>
487
488 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
489 computing scalar cost offsetted by stmts that are kept live
490 by scalar uses.
491 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
492 for computation of scalar cost.
493
494 2013-05-28 Steve Ellcey <sellcey@mips.com>
495
496 * config/mips/mips-cpus.def (mips32r2): Change processor type.
497
498 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
499
500 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
501 array notation built-in reduction functions.
502 * doc/passes.texi (Passes): Added documentation about changes done
503 for Cilk Plus.
504 * doc/invoke.texi (C Dialect Options): Added documentation about
505 the -fcilkplus flag.
506 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
507 (BUILTINS_DEF): Depend on cilkplus.def.
508 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
509 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
510 * cilkplus.def: New file.
511
512 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
513
514 PR rtl-optimization/57439
515 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
516
517 2013-05-28 Easwaran Raman <eraman@google.com>
518
519 PR tree-optimization/57337
520 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
521 (find_insert_point): Correctly identify the insertion point
522 when two statements with the same UID is compared.
523
524 2013-05-28 Richard Biener <rguenther@suse.de>
525
526 PR tree-optimization/56787
527 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
528 from the list of data references.
529 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
530 clobbers.
531 (vect_analyze_loop_operations): Likewise.
532 (vect_transform_loop): Remove clobbers.
533
534 2013-05-28 Martin Jambor <mjambor@suse.cz>
535
536 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
537 and REALPART_EXPRs have scalar type.
538
539 2013-05-28 Richard Biener <rguenther@suse.de>
540
541 PR tree-optimization/57411
542 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
543 virtual operands.
544 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
545 virtual operand propagation.
546
547 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
548
549 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
550 destination register for bmasksi_vis.
551 (vector_init_bshuffle): Likewise.
552 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
553
554 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
555
556 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
557 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
558 mode if the instruction isn't available in the original mode.
559 * config/sparc/sparc.opt (mfix-ut699): New option.
560 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
561 (divdf3): Turn into expander.
562 (divdf3_nofix): New insn.
563 (divdf3_fix): Likewise.
564 (divsf3): Disable if -mfix-ut699.
565 (sqrtdf2): Turn into expander.
566 (sqrtdf2_nofix): New insn.
567 (sqrtdf2_fix): Likewise.
568 (sqrtsf2): Disable if -mfix-ut699.
569
570 2013-05-27 Richard Biener <rguenther@suse.de>
571
572 PR middle-end/57412
573 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
574 block for the new loop.
575
576 2013-05-27 Richard Biener <rguenther@suse.de>
577
578 PR tree-optimization/57343
579 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
580 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
581 (number_of_iterations_cond): Do not build the folded tree.
582
583 2013-05-27 Richard Biener <rguenther@suse.de>
584
585 Revert
586 PR middle-end/57381
587 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
588 OEP_CONSTANT_ADDRESS_OF retained.
589
590 PR tree-optimization/57417
591 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
592 for unchanged base.
593 (set_ssa_val_to): Compare addresses using
594 get_addr_base_and_unit_offset.
595
596 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
597
598 PR rtl-optimization/56833
599 * postreload.c (move2add_record_mode): New function.
600 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
601 (move2add_use_add2_insn): Use move2add_record_sym_value.
602 (move2add_use_add3_insn): Likewise.
603 (reload_cse_move2add): Use move2add_valid_value_p and
604 move2add_record_mode. Invalidate call-clobbered and REG_INC
605 affected regs by setting reg_mode to VOIDmode.
606 (move2add_note_store): Don't pretend the inside of a SUBREG is
607 the actual destination. Invalidate single/leading registers by
608 setting reg_mode to VOIDmode.
609 Use move2add_record_sym_value, move2add_valid_value_p and
610 move2add_record_mode.
611
612 2013-05-27 Richard Biener <rguenther@suse.de>
613
614 PR tree-optimization/57396
615 * tree-affine.c (double_int_constant_multiple_p): Properly
616 return false for val == 0 and div != 0.
617
618 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
619
620 * config/mips/mips.h: Use #elif in preprocessor conditions.
621
622 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
623
624 PR target/53916
625 * config/mips/constraints.md (kl): New constraint.
626 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
627 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
628 constraint for operand 0. Split after CSE for MIPS16. Emit a move
629 from LO for MIPS16.
630 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
631
632 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
633
634 PR target/55777
635 * config/mips/mips.c (mips_can_inline_p): New function.
636 (TARGET_CAN_INLINE_P): Define.
637
638 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
639
640 * sched-int.h (ds_t, dw_t): Make unsigned int.
641 Fix documentation that describes how all the ds_t bits are used.
642 Reserve the last bit for delayed-branch scheduling.
643 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
644 (BITS_PER_DEP_WEAK): Fix definition and documentation.
645 (gen_dep_weak_1): Remove prototype.
646 * sched-deps.c (get_dep_weak_1): Make static.
647 * target.def (speculate_insn, needs_block_p, gen_spec_check,
648 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
649 * doc/tm.texi: Regenerate.
650 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
651
652 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
653
654 PR debug/56950
655 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
656
657 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
658 Sandra Loosemore <sandra@codesourcery.com>
659
660 * config.gcc (powerpc-*): Allow native for with-cpu.
661
662 2013-05-24 Jeff Law <law@redhat.com>
663
664 PR tree-optimization/57124
665 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
666 conversion feeding a condition if the range has an overflow
667 if -fstrict-overflow. Add warnings for when we do make the
668 transformation.
669
670 2013-05-24 Dehao Chen <dehao@google.com>
671
672 * tree-cfg.c (locus_discrim_map): Fix the typo.
673 (locus_discrim_hasher): Likewise.
674 (locus_discrim_hasher::hash): Likewise.
675 (locus_discrim_hasher::equal): Likewise.
676
677 2013-05-24 Martin Jambor <mjambor@suse.cz>
678
679 PR tree-optimization/57294
680 * cgraph.h (ipa_record_stmt_references): Declare.
681 * cgraphbuild.c (ipa_record_stmt_references): New function.
682 (build_cgraph_edges): Use ipa_record_stmt_references.
683 (rebuild_cgraph_edges): Likewise.
684 (cgraph_rebuild_references): Likewise.
685 * ipa-prop.c (ipa_modify_call_arguments): Discard references
686 associated with the old statement and build references from the
687 newly built statements.
688 * ipa-ref.c (ipa_remove_stmt_references): New function.
689 * ipa-ref.h (ipa_remove_stmt_references): Declare.
690
691 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
692
693 * lra-constraints.c (emit_spill_move): Use smaller mode for
694 mem-mem moves.
695 (check_and_process_move): Consider mem-reg moves for secondary
696 too.
697 (curr_insn_transform): Don't lose insns emitted before for
698 secondary memory moves.
699 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
700 reg set up in the current insn.
701
702 2013-05-24 Dehao Chen <dehao@google.com>
703
704 * testsuite/gcc.dg/debug/dwarf2/discriminator.c: New Testcase.
705 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
706 hash function.
707 (locus_descrim_hasher::equal): Likewise.
708 (build_gimple_cfg): New discriminator assignment algorithm.
709 (make_edges): Likewise.
710 (next_discriminator_for_locus): Likewise.
711 (same_line_p): Likewise.
712 (assign_discriminators): Likewise.
713 (make_cond_expr_edges): Likewise.
714 (make_gimple_switch_edges): Likewise.
715 (make_goto_expr_edges): Likewise.
716 (make_gimple_asm_edges): Likewise.
717
718 2013-05-24 Ian Bolton <ian.bolton@arm.com>
719
720 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
721 X format specifier to only display bottom 16 bits.
722 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
723 immediate to match for operand 2, since it will be masked.
724
725 2013-05-24 Richard Biener <rguenther@suse.de>
726
727 PR tree-optimization/57287
728 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
729 all SSA names that occur in abnormal PHIs.
730
731 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
732
733 PR tree-ssa/57385
734 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
735 that index is not negative.
736
737 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
738
739 PR rtl-optimization/55177
740 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
741 (simplify_byte_swapping_operation): New.
742 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
743 (simplify_relational_operation_1): Deal with BSWAP.
744
745 2013-05-23 Richard Henderson <rth@redhat.com>
746
747 PR target/56742
748 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
749 (ix86_reorg): Call it.
750
751 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
752
753 PR target/57379
754 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
755 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
756 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
757
758 2013-05-23 Christian Bruel <christian.bruel@st.com>
759
760 PR debug/57351
761 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
762
763 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
764 Marcus Shawcroft <marcus.shawcroft@arm.com>
765
766 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
767 * config/aarch64/constraints.md (Usa): Remove.
768 * doc/md.texi (AArch64 Usa): Remove.
769
770 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
771 Marcus Shawcroft <marcus.shawcroft@arm.com>
772
773 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
774 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
775 * config/aarch64/predicates.md (aarch64_const_address): Remove.
776 (aarch64_mov_operand): Use aarch64_mov_operand_p.
777
778 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
779
780 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
781 instruction (AdvSIMD).
782 * config/aarch64/aarch64-builtins.c
783 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
784 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
785
786 2013-05-23 Martin Jambor <mjambor@suse.cz>
787
788 PR middle-end/57347
789 * tree.h (contains_bitfld_component_ref_p): Declare.
790 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
791 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
792 caller.
793 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
794 not access a bit-field. Assert all final offsets are byte-aligned.
795
796 2013-05-23 Richard Biener <rguenther@suse.de>
797
798 PR tree-optimization/57380
799 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
800 least one invariant or re-used load.
801 * passes.c (init_optimization_passes): Move pass_phiprop before
802 pass_forwprop.
803
804 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
805
806 * config/aarch64/aarch64-simd.md
807 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
808
809 2013-05-23 Richard Biener <rguenther@suse.de>
810
811 PR middle-end/57381
812 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
813 OEP_CONSTANT_ADDRESS_OF retained.
814
815 2013-05-23 Jakub Jelinek <jakub@redhat.com>
816
817 PR middle-end/57344
818 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
819 don't lower unit. Handle unit not being always BITS_PER_WORD.
820
821 2013-05-23 Richard Biener <rguenther@suse.de>
822
823 PR rtl-optimization/57341
824 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
825 instead of true_dependence.
826
827 2013-05-22 David Malcolm <dmalcolm@redhat.com>
828
829 * bb-reorder.c (branch_threshold): Make const.
830 (exec_threshold): Ditto.
831
832 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
833 Pat Haugen <pthaugen@us.ibm.com>
834 Peter Bergner <bergner@vnet.ibm.com>
835
836 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
837 documentation for the power8 crypto builtins.
838
839 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
840
841 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
842 macros for defining power8 builtin functions.
843 (BU_P8V_AV_2): Likewise.
844 (BU_P8V_AV_P): Likewise.
845 (BU_P8V_VSX_1): Likewise.
846 (BU_P8V_OVERLOAD_1): Likewise.
847 (BU_P8V_OVERLOAD_2): Likewise.
848 (BU_CRYPTO_1): Likewise.
849 (BU_CRYPTO_2): Likewise.
850 (BU_CRYPTO_3): Likewise.
851 (BU_CRYPTO_OVERLOAD_1): Likewise.
852 (BU_CRYPTO_OVERLOAD_2): Likewise.
853 (XSCVSPDP): Fix typo, point to the correct instruction.
854 (VCIPHER): Add power8 crypto builtins.
855 (VCIPHERLAST): Likewise.
856 (VNCIPHER): Likewise.
857 (VNCIPHERLAST): Likewise.
858 (VPMSUMB): Likewise.
859 (VPMSUMH): Likewise.
860 (VPMSUMW): Likewise.
861 (VPERMXOR_V2DI): Likewise.
862 (VPERMXOR_V4SI: Likewise.
863 (VPERMXOR_V8HI: Likewise.
864 (VPERMXOR_V16QI: Likewise.
865 (VSHASIGMAW): Likewise.
866 (VSHASIGMAD): Likewise.
867 (VPMSUM): Likewise.
868 (VPERMXOR): Likewise.
869 (VSHASIGMA): Likewise.
870
871 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
872 __CRYPTO__ if the crypto instructions are available.
873 (altivec_overloaded_builtins): Add support for overloaded power8
874 builtins.
875
876 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
877 support for power8 crypto builtins.
878 (builtin_function_type): Likewise.
879 (altivec_init_builtins): Add support for builtins that take vector
880 long long (V2DI) arguments.
881
882 * config/rs6000/crypto.md: New file, define power8 crypto
883 instructions.
884
885 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
886 Pat Haugen <pthaugen@us.ibm.com>
887 Peter Bergner <bergner@vnet.ibm.com>
888
889 * doc/invoke.texi (Option Summary): Add power8 options.
890 (RS/6000 and PowerPC Options): Likewise.
891
892 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
893 constraints.md instead of rs6000.h. Reorder w* constraints. Add
894 wm, wn, wr documentation.
895
896 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
897 registers if direct move instructions are enabled.
898 (wn): New constraint for no registers.
899 (wq): New constraint for quad word even GPR registers.
900 (wr): New constraint if 64-bit instructions are enabled.
901 (wv): New constraint if power8 vector instructions are enabled.
902 (wQ): New constraint for quad word memory locations.
903
904 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
905 constraint for 0..15 for crypto instructions.
906 (gpc_reg_operand): If VSX allow registers in VSX registers as well
907 as GPR and floating point registers.
908 (int_reg_operand): New predicate to match only GPR registers.
909 (base_reg_operand): New predicate to match base registers.
910 (quad_int_reg_operand): New predicate to match even GPR registers
911 for quad memory operations.
912 (vsx_reg_or_cint_operand): New predicate to allow vector logical
913 operations in both GPR and VSX registers.
914 (quad_memory_operand): New predicate for quad memory operations.
915 (reg_or_indexed_operand): New predicate for direct move support.
916
917 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
918 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
919 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
920 (POWERPC_MASKS): Add power8 options.
921 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
922 various options.
923
924 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
925 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
926
927 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
928 (-mpower8-fusion): New power8 options.
929 (-mpower8-fusion-sign): Likewise.
930 (-mpower8-vector): Likewise.
931 (-mcrypto): Likewise.
932 (-mdirect-move): Likewise.
933 (-mquad-memory): Likewise.
934
935 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
936 power8.
937 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
938 registers.
939 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
940 (rs6000_debug_vector_unit): Add p8_vector.
941 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
942 definitions. Also print fusion state.
943 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
944 (rs6000_builtin_mask_calculate): Add power8 builtin support.
945 (rs6000_option_override_internal): Add support for power8.
946 (rs6000_common_init_builtins): Add debugging for skipped builtins
947 if -mdebug=builtin.
948 (rs6000_adjust_cost): Add power8 support.
949 (rs6000_issue_rate): Likewise.
950 (insn_must_be_first_in_group): Likewise.
951 (insn_must_be_last_in_group): Likewise.
952 (force_new_group): Likewise.
953 (rs6000_register_move_cost): Likewise.
954 (rs6000_opt_masks): Likewise.
955
956 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
957 power8 capable assembler, default to power7 options.
958 (TARGET_DIRECT_MOVE): Likewise.
959 (TARGET_CRYPTO): Likewise.
960 (TARGET_P8_VECTOR): Likewise.
961 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
962 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
963 (VECTOR_MEM_P8_VECTOR_P): Likewise.
964 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
965 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
966 (TARGET_XSCVDPSPN): Likewise.
967 (TARGET_XSCVSPDPN): Likewsie.
968 (TARGET_SYNC_HI_QI): Likewise.
969 (TARGET_SYNC_TI): Likewise.
970 (MASK_CRYPTO): Likewise.
971 (MASK_DIRECT_MOVE): Likewise.
972 (MASK_P8_FUSION): Likewise.
973 (MASK_P8_VECTOR): Likewise.
974 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
975 temporary used by some of the direct move instructions to get two FP
976 temporary registers does not force creation of a stack frame.
977 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
978 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
979 that any VSX registers are tieable, even if they are also an
980 Altivec vector mode.
981 (r6000_reg_class_enum): Add wm, wr, wv constraints.
982 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
983 (RS6000_BTM_CRYPTO): Likewise.
984 (RS6000_BTM_COMMON): Likewise.
985
986 * config/rs6000/rs6000.md (cpu attribute): Add power8.
987 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
988 (enum rs6000_vector): Add power8 vector support.
989
990 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
991
992 PR target/19599
993 PR target/57340
994 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
995 (any_sibcall_could_use_r3): this and handle indirect calls.
996 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
997
998 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
999
1000 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1001
1002 2013-05-22 Richard Biener <rguenther@suse.de>
1003
1004 PR middle-end/57349
1005 * profile.c (branch_prob): Do not split blocks that are
1006 abnormally receiving from ECF_RETURNS_TWICE functions.
1007
1008 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1009
1010 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1011 address mode. Move pointer mode initialization to the same place.
1012
1013 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1014
1015 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1016 while it has any effect.
1017
1018 2013-05-21 Easwaran Raman <eraman@google.com>
1019
1020 PR tree-optimization/57322
1021 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1022 UID of the statement added to the BB to be 1.
1023
1024 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1025
1026 PR tree-optimization/57331
1027 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1028 of conversion from pointer type to integral type with integer.
1029
1030 2013-05-21 Martin Jambor <mjambor@suse.cz>
1031
1032 PR lto/57289
1033 * ipa-prop.c (ipa_read_node_info): Process param_used and
1034 controlled_uses in the same order as when writing.
1035
1036 2013-05-21 Magnus Granberg <baldrick@free.fr>
1037
1038 PR plugins/56754
1039 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1040
1041 2013-05-21 Richard Biener <rguenther@suse.de>
1042
1043 PR tree-optimization/57318
1044 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1045 estimate stmts with side-effects as likely eliminated.
1046
1047 2013-05-21 Richard Biener <rguenther@suse.de>
1048
1049 PR tree-optimization/57330
1050 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1051 preserve the call stmts fntype.
1052
1053 2013-05-21 Richard Biener <rguenther@suse.de>
1054
1055 PR tree-optimization/57303
1056 * tree-ssa-sink.c (statement_sink_location): Improve killing
1057 stmt detection and properly handle self-assignments.
1058
1059 2013-05-21 Christian Bruel <christian.bruel@st.com>
1060
1061 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1062 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1063 registers. Set register size out of the PARALLEL loop.
1064
1065 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1066
1067 PR target/56547
1068 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1069 (*fmasf4, *fmasf4_media): New insns.
1070
1071 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1072
1073 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1074 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1075 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1076 (mips_idiv_insns): Update the comments to say that the returned
1077 instruction counts are in units of BASE_INSN_LENGTH.
1078 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1079 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1080 using 2 rather than 4 as the length of indirect MIPS16 and
1081 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1082 length of a NOP. Don't divide MIPS16 lengths by 2.
1083 (mips16_split_long_branches): Assume a branch is long if the
1084 length is greater than 4 rather than 8.
1085 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1086 rather than multiplying them by 2. Multiply instruction counts
1087 by BASE_INSN_LENGTH rather than 4.
1088 (*jump_mips16, tls_get_tp_mips16_<mode>)
1089 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1090
1091 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1092
1093 * config/mips/mips.md (extended_mips16): Remove branch case.
1094 (length): Remove duplicated extended_mips16 test.
1095
1096 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1097
1098 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1099
1100 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1101
1102 * recog.h (Recog_data): Rename to...
1103 (recog_data_d): ...this.
1104 (recog_data): Update accordingly.
1105 * recog.c (recog_data): Likewise.
1106 * reload.c (save_recog_data): Likewise.
1107 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1108 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1109
1110 2013-05-17 Julian Brown <julian@codesourcery.com>
1111
1112 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1113 found in a REG_EQUAL note, invalidate it.
1114
1115 2013-05-17 Easwaran Raman <eraman@google.com>
1116
1117 * tree-ssa-reassoc.c (find_insert_point): New function.
1118 (insert_stmt_after): Likewise.
1119 (get_def_stmt): Likewise.
1120 (ensure_ops_are_available): Likewise.
1121 (not_dominated_by): Likewise.
1122 (rewrite_expr_tree): Do not move statements beyond what is
1123 necessary. Remove call to swap_ops_for_binary_stmt...
1124 (reassociate_bb): ... and move it here.
1125 (build_and_add_sum): Assign UIDs for new statements.
1126 (linearize_expr): Likewise.
1127 (do_reassoc): Renumber gimple statement UIDs.
1128
1129 2013-05-17 Jan Hubicka <jh@suse.cz>
1130
1131 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1132 weakrefs.
1133 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1134 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1135 weakrefs.
1136 (output_weakrefs): Update.
1137
1138 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1139 Martin Jambor <mjambor@suse.cz>
1140
1141 PR middle-end/57276
1142 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1143 value that corresponds to the given aggval is found in values vector.
1144
1145 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1146
1147 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1148 sse, sse2, sse3, ssse3 and sse4a flags to options.
1149
1150 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1151
1152 * gengtype-state.c: (s_expr_writer): New class, to handle
1153 prettifying of output layout of s-expressions.
1154 (state_writer): New class, to write out gtype.state.
1155 (state_written_type_count): Move this variable into member data of
1156 state_writer.
1157 (s_expr_writer::s_expr_writer): New code: constructor for new class
1158 (state_writer::state_writer(): ditto
1159 (s_expr_writer::write_new_line): New function
1160 (s_expr_writer::write_any_indent): ditto
1161 (s_expr_writer::begin_s_expr): ditto
1162 (s_expr_writer::end_s_expr): ditto
1163 (write_state_fileloc): convert to method of state_writer...
1164 (state_writer:: write_state_fileloc): ...and use methods of
1165 s_expr_writer to write indentation into the gtype.state output file
1166 to visually represent the hierarchical structure of the list
1167 structures
1168 (write_state_fields): ditto, renaming to...
1169 (state_writer::write_state_fields)
1170 (write_state_a_string): ditto, renaming to...
1171 (state_writer::write_state_a_string)
1172 (write_state_string_option): ditto, renaming to...
1173 (state_writer::write_state_string_option)
1174 (write_state_type_option): ditto, renaming to...
1175 (state_writer::write_state_type_option)
1176 (write_state_nested_option): ditto, renaming to...
1177 (state_writer::write_state_nested_option)
1178 (write_state_option): ditto, renaming to...
1179 (state_writer::write_state_option)
1180 (write_state_options): ditto, renaming to...
1181 (state_writer::write_state_options)
1182 (write_state_lang_bitmap): ditto, renaming to...
1183 (state_writer::write_state_lang_bitmap)
1184 (write_state_version): ditto, renaming to...
1185 (state_writer::write_state_version)
1186 (write_state_scalar_type): ditto, renaming to...
1187 (state_writer::write_state_scalar_type)
1188 (write_state_string_type): ditto, renaming to...
1189 (state_writer::write_state_string_type)
1190 (write_state_undefined_type): ditto, renaming to...
1191 (state_writer::write_state_undefined_type)
1192 (write_state_struct_union_type): ditto, renaming to...
1193 (state_writer::write_state_struct_union_type)
1194 (write_state_struct_type): ditto, renaming to...
1195 (state_writer::write_state_struct_type)
1196 (write_state_user_struct_type): ditto, renaming to...
1197 (state_writer::write_state_user_struct_type)
1198 (write_state_lang_struct_type): ditto, renaming to...
1199 (state_writer::write_state_lang_struct_type)
1200 (write_state_param_struct_type): ditto, renaming to...
1201 (state_writer::write_state_param_struct_type)
1202 (write_state_pointer_type): ditto, renaming to...
1203 (state_writer::write_state_pointer_type)
1204 (write_state_array_type): ditto, renaming to...
1205 (state_writer::write_state_array_type)
1206 (write_state_gc_used): ditto, renaming to...
1207 (state_writer::write_state_gc_used)
1208 (write_state_common_type_content): ditto, renaming to...
1209 (state_writer::write_state_common_type_content)
1210 (write_state_type): ditto, renaming to...
1211 (state_writer::write_state_type)
1212 (write_state_pair_list): ditto, renaming to...
1213 (state_writer::write_state_pair_list)
1214 (write_state_pair): ditto, renaming to...
1215 (state_writer::write_state_pair)
1216 (write_state_typedefs): ditto, renaming to...
1217 (state_writer::write_state_typedefs)
1218 (write_state_structures): ditto, renaming to...
1219 (state_writer::write_state_structures)
1220 (write_state_param_structs): ditto, renaming to...
1221 (state_writer::write_state_param_structs)
1222 (write_state_variables): ditto, renaming to...
1223 (state_writer::write_state_variables)
1224 (write_state_srcdir): ditto, renaming to...
1225 (state_writer::write_state_srcdir)
1226 (write_state_files_list): ditto, renaming to...
1227 (state_writer::write_state_files_list)
1228 (write_state_languages): ditto, renaming to...
1229 (state_writer::write_state_languages)
1230 (write_state): create a state_writer instance and use it when
1231 writing out the state file
1232
1233 2013-05-17 Mike Stump <mikestump@comcast.net>
1234
1235 PR rtl-optimization/57304
1236 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1237 accessing DF_REF_REAL_LOC.
1238
1239 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR rtl-optimization/57281
1242 PR rtl-optimization/57300
1243 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1244 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1245 what the other splitter did if the registers are dead.
1246
1247 2013-05-17 Richard Biener <rguenther@suse.de>
1248
1249 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1250 MEM_REF offsets.
1251
1252 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1253
1254 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1255 linking.
1256
1257 2013-05-17 Marek Polacek <polacek@redhat.com>
1258
1259 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1260 length when doing non-zero store of storing '\0' to '\0'.
1261
1262 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1263
1264 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1265 vect_external_def oprnd1 with loop_vinfo, try to emit
1266 optional cast, negation and and stmts on the loop preheader
1267 edge instead of into the pattern def seq.
1268
1269 PR tree-optimization/57051
1270 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1271 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1272
1273 2013-05-16 Nick Clifton <nickc@redhat.com>
1274
1275 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1276 (rl78_is_naked_func): New function.
1277 (rl78_expand_prologue): Skip prologue generation for naked
1278 functions.
1279 (rl78_expand_epilogue): Skip epilogue generation for naked
1280 functions.
1281 * doc/extend.texi (naked): Add RL78 to the list of processors
1282 that supports this attribute.
1283
1284 2013-05-16 Jeff Law <law@redhat.com>
1285
1286 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1287
1288 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1289
1290 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1291 cache parameters using detect_caches_amd also for CYRIX,
1292 NSC and TM2 signatures.
1293
1294 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1295 Dzianis Kahanovich <mahatma@eu.by>
1296
1297 PR target/45359
1298 PR target/46396
1299 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1300 VIA/Centaur processors and determine their cache parameters
1301 using detect_caches_amd.
1302
1303 2013-05-16 Teresa Johnson <tejohnson@google.com>
1304
1305 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1306 (rtl_verify_edges): New function.
1307 (rtl_verify_bb_insns): Ditto.
1308 (rtl_verify_bb_pointers): Ditto.
1309 (rtl_verify_bb_insn_chain): Ditto.
1310 (rtl_verify_fallthru): Ditto.
1311 (rtl_verify_bb_layout): Ditto.
1312 (rtl_verify_flow_info_1): Outline checks into new functions.
1313 (rtl_verify_flow_info): Ditto.
1314
1315 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1316
1317 * cfghooks.c (copy_bbs): Add update_dominance argument.
1318 * cfghooks.h (copy_bbs): Update prototype.
1319 * tree-cfg.c (gimple_duplicate_sese_region):
1320 Add update_dominance argument.
1321 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1322 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1323 gimple_duplicate_sese_region call.
1324 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1325 Update copy_bbs call.
1326 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1327 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1328
1329 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1330
1331 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1332 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1333 vect_recog_rotate_pattern.
1334 (vect_recog_rotate_pattern): New function.
1335
1336 2013-05-16 Jason Merrill <jason@redhat.com>
1337
1338 * Makefile.in (LLINKER): New variable.
1339 (mostlyclean): Remove link mutex.
1340 * configure.ac: Handle --enable-link-mutex.
1341 * lock-and-run.sh: New script.
1342
1343 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1344
1345 PR target/19599
1346 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1347 for NULL decl.
1348
1349 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1350
1351 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1352
1353 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1354
1355 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1356 * config/arm/arm.c (next_consecutive_mem): New function.
1357 (gen_movmem_ldrd_strd): Likewise.
1358 * config/arm/arm.md (movmemqi): Update condition and code.
1359 (unaligned_loaddi, unaligned_storedi): New patterns.
1360
1361 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1362
1363 * config.gcc: Obsolete *-*-solaris2.9*.
1364 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1365
1366 2013-05-16 Richard Biener <rguenther@suse.de>
1367
1368 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1369 earlier, after GRAPHITE transforms and IV canonicalization.
1370
1371 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1372
1373 * omp-low.c (extract_omp_for_data): For collapsed loops,
1374 if at least one of the loops is known at compile time to
1375 iterate zero times, set count to 0.
1376 (expand_omp_regimplify_p): New function.
1377 (expand_omp_for_generic): For collapsed loops, if at least
1378 one of the loops isn't known to iterate at least once,
1379 add runtime check with setting count to 0.
1380 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1381 For unsigned types if it isn't known at compile time that
1382 the loop will iterate at least once, add runtime check to bypass
1383 the whole loop if initial condition isn't true.
1384
1385 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1386
1387 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1388
1389 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1390
1391 PR middle-end/57286
1392 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1393 transformations to avoid an infinite loop.
1394
1395 2013-05-16 Marek Polacek <polacek@redhat.com>
1396
1397 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1398
1399 2013-05-15 Leif Ekblad <leif@rdos.net>
1400
1401 * config/i386/i386.c (ix86_decompose_address): Use
1402 DEFAULT_TLS_SEG_REG to access TLS segment register.
1403 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1404 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1405 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1406
1407 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1408
1409 PR target/57260
1410 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1411 sibling calls to functions that would normally be lazily bound,
1412 unless $gp is call-clobbered.
1413
1414 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1415
1416 * config/i386/i386.c (ix86_option_override_internal): Update
1417 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1418 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1419 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1420 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1421 of TARGET_3DNOW.
1422 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1423
1424 2013-05-15 Andreas Schwab <schwab@suse.de>
1425
1426 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1427 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1428 third operand.
1429
1430 2013-05-15 Teresa Johnson <tejohnson@google.com>
1431
1432 * loop-unroll.c (report_unroll_peel): Check decision before
1433 emitting unroll/peel message.
1434
1435 2013-05-15 Teresa Johnson <tejohnson@google.com>
1436
1437 * function.h (has_bb_partition): New rtl_data flag.
1438 (bb_reorder_complete): Ditto.
1439 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1440 instead of flag_reorder_blocks_and_partition.
1441 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1442 with some enhancements.
1443 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1444 * bb-reorder.c (connect_traces): Check for has_bb_partition
1445 instead of flag_reorder_blocks_and_partition.
1446 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1447 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1448 verify_hot_cold_block_grouping.
1449 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1450
1451 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1452
1453 PR target/19599
1454 * config/arm/predicates.md (call_insn_operand): New predicate.
1455 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1456 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
1457 if insn is not a tail call.
1458 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
1459 registers.
1460 * config/arm/arm.h (enum reg_class): New caller save register class.
1461 (REG_CLASS_NAMES): Likewise.
1462 (REG_CLASS_CONTENTS): Likewise.
1463 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
1464 without decls.
1465
1466 2013-05-15 Richard Biener <rguenther@suse.de>
1467
1468 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
1469 of MSG_OPTIMIZED_LOCATIONS.
1470 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
1471 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
1472 message.
1473 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
1474 of MSG_OPTIMIZED_LOCATIONS.
1475 (execute_vect_slp): Likewise.
1476 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
1477 (vect_create_cond_for_alias_checks): Likewise.
1478 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
1479 (vect_recog_widen_mult_pattern): Likewise.
1480 (vect_recog_widen_sum_pattern): Likewise.
1481 (vect_recog_over_widening_pattern): Likewise.
1482 (vect_recog_widen_shift_pattern): Likewise.
1483 (vect_recog_vector_vector_shift_pattern): Likewise.
1484 (vect_recog_divmod_pattern): Likewise.
1485 (vect_recog_mixed_size_cond_pattern): Likewise.
1486 (vect_recog_bool_pattern): Likewise.
1487 (vect_pattern_recog_1): Likewise.
1488
1489 2013-05-15 Martin Jambor <mjambor@suse.cz>
1490
1491 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
1492 non-functions to builtin_unreachable.
1493 * ipa-inline-transform.c (inline_call): Do not assert estimates were
1494 correct when new direct edges were discovered.
1495
1496 2013-05-15 Martin Jambor <mjambor@suse.cz>
1497
1498 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
1499 header, print symbol order instead of node uid, print more information
1500 about indirect edge targets.
1501 (ipa_make_edge_direct_to_target): Print symbol order instead of node
1502 uids.
1503 (ipa_make_edge_direct_to_target): Likewise.
1504 (remove_described_reference): Likewise.
1505 (propagate_controlled_uses): Likewise.
1506 (ipa_print_node_params): Also print symbol order.
1507 (ipcp_transform_function): Print symbol order instead of node uids.
1508 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
1509 (cgraph_get_create_real_symbol_node): Likewise.
1510 * ipa-cp.c (print_lattice): Likewise.
1511 (print_all_lattices): Likewise.
1512 (determine_versionability): Likewise.
1513 (initialize_node_lattices): Likewise.
1514 (estimate_local_effects): Likewise.
1515 (update_profiling_info): Likewise.
1516 (create_specialized_node): Likewise.
1517 (perhaps_add_new_callers): Likewise.
1518 (decide_about_value): Likewise.
1519 (decide_whether_version_node): Likewise.
1520 (identify_dead_nodes): Likewise.
1521 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
1522 (dump_inline_summary): Likewise.
1523 (estimate_node_size_and_time): Likewise.
1524 (inline_analyze_function): Likewise.
1525 * ipa-inline.c (report_inline_failed_reason): Likewise.
1526 (want_early_inline_function_p): Likewise.
1527 (edge_badness): Likewise.
1528 (update_edge_key): Likewise.
1529 (inline_small_functions): Likewise. Add dumping of order to two other
1530 dumps.
1531 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
1532 instead of node uids.
1533 (propagate_pure_const): Likewise.
1534 (propagate_pure_const): Likewise.
1535 * ipa-utils.c (dump_cgraph_node_set): Likewise.
1536 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
1537 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
1538 of node uids.
1539 * tree-pretty-print.c (dump_function_header): Likewise.
1540 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
1541 Print symbol order instead of node uids.
1542
1543 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1544
1545 * config/s390/s390.c (s390_register_move_cost): Don't impose the
1546 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
1547
1548 2013-05-15 Richard Biener <rguenther@suse.de>
1549
1550 PR tree-optimization/57275
1551 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
1552 return value for fail to do runtime alias checks for gather loads.
1553
1554 2013-05-15 Jan Hubicka <jh@suse.cz>
1555
1556 PR lto/57038
1557 PR lto/47375
1558 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
1559 weakrefs are not external.
1560 (lto_symtab_merge_decls): Fix thinko when dealing with
1561 non-lto_symtab decls.
1562 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
1563 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
1564 * varpool.c (dump_varpool_node): Dump more flags.
1565
1566 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1567
1568 * config/i386/i386.c (processor_alias_table): Add instruction
1569 FSGSBASE for AMD bdver3 architecture.
1570
1571 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1572
1573 * tree.c (warn_deprecated_use): Print file:line using locus color.
1574 * diagnostic.c (diagnostic_report_current_module): Print file:line
1575 and file:line:column using locus color.
1576
1577 2013-05-14 Mike Stump <mikestump@comcast.net>
1578
1579 * gdbinit.in: Add __null.
1580
1581 2013-05-14 Mike Stump <mikestump@comcast.net>
1582
1583 * recog.h: Rename struct recog_data to Recog_data.
1584 * recog.c: Likewise.
1585 * reload.c (can_reload_into): Likewise.
1586 * config/picochip/picochip.c: Likewise.
1587
1588 2013-05-14 Mike Stump <mikestump@comcast.net>
1589
1590 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
1591
1592 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
1593
1594 * resource.h (struct resources): Remove unch_memory member.
1595 (CLEAR_RESOURCE): Don't clear unch_memory.
1596 * resource.c (mark_referenced_resources): Don't set it.
1597 (mark_set_resources): Likewise.
1598 (mark_target_live_regs): Don't clear it.
1599 (init_resource_info): Likewise.
1600 * reorg.c (resource_conflicts_p): Don't compare it.
1601 (redundant_insn): Don't set it.
1602
1603 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
1604 Remove prototypes.
1605 * emit-rtl.c (next_label): Remove unused function.
1606 (skip_consecutive_labels, link_cc0_insns): Move to ...
1607 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
1608 only place where these functions are used, and make them static.
1609
1610 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1611
1612 * fold-const.c (fold_negate_expr): Handle vectors.
1613 (fold_truth_not_expr): Make it static.
1614 (fold_invert_truthvalue): New static function.
1615 (invert_truthvalue_loc): Handle vectors. Do not call
1616 fold_truth_not_expr directly.
1617 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
1618 <TRUTH_NOT_EXPR>: Do not cast to boolean.
1619 (fold_comparison): Handle vector constants.
1620 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
1621 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
1622 * tree.h (fold_truth_not_expr): Remove declaration.
1623
1624 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
1625
1626 * config/aarch64/aarch64-simd.md
1627 (aarch64_vcond_internal<mode>): Rename to...
1628 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
1629 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
1630 float modes. Clarify all iterator modes.
1631 (vcond<mode><mode>): Use new name for vcond expanders.
1632 (vcond<v_cmp_result><mode>): Likewise.
1633 (vcondu<mode><mode>: Likewise.
1634 * config/aarch64/iterators.md (VDQF_COND): New.
1635
1636 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
1637
1638 PR bootstrap/57266
1639 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
1640 variable for the shift amount. Check that we shift by non-negative
1641 amounts.
1642
1643 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
1644
1645 PR target/42017
1646 * config/arm/arm.h (EPILOGUE_USES): Only return true
1647 for LR_REGNUM after epilogue_completed.
1648
1649 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
1650
1651 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
1652 is error_mark_node.
1653
1654 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1655
1656 PR target/57261
1657 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
1658 and Solaris 11+/x86 with gld.
1659 * configure: Regenerate.
1660
1661 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1662
1663 * expmed.c (expand_shift_1): Canonicalize rotates by
1664 constant bitsize / 2 to bitsize - 1.
1665 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
1666 case ROTATERT>: Likewise.
1667
1668 Revert:
1669 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1670
1671 * config/i386/i386.md (rotateinv): New code attr.
1672 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1673 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1674 roll $31, %eax, etc.
1675
1676 2013-05-14 Richard Biener <rguenther@suse.de>
1677
1678 PR middle-end/57235
1679 * tree-eh.c (sink_clobbers): Give up for successors with
1680 multiple predecessors and no virtual uses.
1681
1682 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
1683
1684 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
1685 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
1686
1687 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1688
1689 PR middle-end/57251
1690 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
1691 the case when both op0 and op1 have VOIDmode.
1692
1693 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1694
1695 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
1696 in multiply-accumulate mode.
1697
1698 2013-05-13 Guozhi Wei <carrot@google.com>
1699
1700 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
1701
1702 2013-05-13 Kai Tietz <ktietz@redhat.com>
1703
1704 PR target/56975
1705 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
1706 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
1707 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
1708 * config/i386/i386.c (ix86_option_override_internal): Likewise.
1709 (ix86_expand_prologue): Likewise.
1710 (ix86_expand_split_stack_prologue): Likewise.
1711 (legitimate_pic_address_disp_p): Likewise.
1712 (legitimize_pic_address): Likewise.
1713 (legitimize_tls_address): Likewise.
1714 (legitimize_pe_coff_symbol): Likewise.
1715 (output_pic_addr_const): Likewise.
1716 (construct_plt_address): Likewise.
1717 (ix86_expand_call): Likewise.
1718 (x86_output_mi_thunk): Likewise.
1719 (x86_function_profiler): Likewise.
1720
1721 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
1722
1723 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
1724 similar switch cases.
1725 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
1726 (aarch64_simd_mov_to_<mode>low): Delete.
1727 (aarch64_simd_mov_to_<mode>high): Delete.
1728 (move_lo_quad_<mode>): Add w<-r alternative.
1729 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1730 (aarch64_simd_mov_from_*): Update type attribute.
1731 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
1732 statement.
1733
1734 2013-05-13 Jan Hubicka <jh@suse.cz>
1735
1736 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
1737 * config/i386/i386.c (ix86_compute_frame_layout,
1738 ix86_expand_epilogue, emit_i387_cw_initialization,
1739 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
1740 ix86_local_alignment): Fix use of size/speed predicates.
1741
1742 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1743
1744 PR tree-optimization/45216
1745 PR tree-optimization/57157
1746 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
1747 the (-Y) & (B - 1) variant if OP is |.
1748 * expmed.c (expand_shift_1): For rotations by const0_rtx just
1749 return shifted. Use (-op1) & (prec - 1) as other_amount
1750 instead of prec - op1.
1751
1752 2013-05-13 Martin Jambor <mjambor@suse.cz>
1753
1754 PR middle-end/42371
1755 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
1756 (ipa_constant_data): New type.
1757 (ipa_jump_func): Use ipa_constant_data to hold information about
1758 constant jump functions.
1759 (ipa_get_jf_constant): Adjust to jump function type changes.
1760 (ipa_get_jf_constant_rdesc): New function.
1761 (ipa_param_descriptor): New field controlled_uses.
1762 (ipa_get_controlled_uses): New function.
1763 (ipa_set_controlled_uses): Likewise.
1764 * ipa-ref.h (ipa_find_reference): Declare.
1765 * ipa-prop.c (ipa_cst_ref_desc): New type.
1766 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
1767 changes.
1768 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
1769 New parameter cs. Adjust all callers.
1770 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
1771 (remove_described_reference): New function.
1772 (jfunc_rdesc_usable): Likewise.
1773 (try_make_edge_direct_simple_call): Decrement controlled use count,
1774 attempt to remove reference if it hits zero.
1775 (combine_controlled_uses_counters): New function.
1776 (propagate_controlled_uses): Likewise.
1777 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
1778 (ipa_edge_duplication_hook): Duplicate reference descriptions.
1779 (ipa_print_node_params): Print described use counter.
1780 (ipa_write_jump_function): Adjust to jump function type changes.
1781 (ipa_read_jump_function): New parameter CS, pass it to
1782 ipa_set_jf_constant. Adjust caller.
1783 (ipa_write_node_info): Stream controlled use count
1784 (ipa_read_node_info): Likewise.
1785 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1786 asserting.
1787 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1788 count. Remove cloning-added reference if it reaches zero.
1789 * ipa-ref.c (ipa_find_reference): New function.
1790
1791 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1792
1793 * config/i386/i386.c (processor_target_table): Modified default
1794 alignment values for AMD BD and BT architectures.
1795
1796 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
1797
1798 * tree-vect-generic.c (uniform_vector_p): Move ...
1799 * tree.c (uniform_vector_p): ... here.
1800 * tree.h (uniform_vector_p): Declare it.
1801 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1802 into a scalar.
1803
1804 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1805
1806 PR tree-optimization/57230
1807 * tree-ssa-strlen.c (handle_char_store): Record length for
1808 array store from STRING_CST.
1809
1810 PR tree-optimization/57230
1811 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1812 check.
1813
1814 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1815
1816 * config/epiphany/epiphany.c (epiphany_init): Check size of
1817 NUM_MODES_FOR_MODE_SWITCHING.
1818 (epiphany_expand_prologue):
1819 Remove CONFIG_REGNUM initial value handling code.
1820 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1821 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1822 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1823 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1824 Don't return 1 for FP_MODE_NONE.
1825 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1826 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1827 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1828 * config/epiphany/epiphany.md (save_config): New pattern.
1829
1830 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
1831
1832 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1833
1834 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
1835
1836 * config/i386/i386.md (memory): Handle sseishft1.
1837 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1838 (*vec_extractv2di_1): Ditto.
1839
1840 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1841
1842 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1843 saved registers.
1844
1845 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1846
1847 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1848 Add mthumb/march=armv7-a multilib.
1849 Add mthumb/march=armv7-r multilib.
1850 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1851
1852 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1853
1854 * config/v850/t-rtems: Add more multilibs.
1855
1856 2013-05-10 Richard Biener <rguenther@suse.de>
1857
1858 PR tree-optimization/57214
1859 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1860 not propagate from SSA names that occur in abnormal PHI nodes.
1861
1862 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1863
1864 * stor-layout.c (element_precision): New function.
1865 * machmode.h (element_precision): Declare it.
1866 * tree.c (build_minus_one_cst): New function.
1867 (element_precision): Likewise.
1868 * tree.h (build_minus_one_cst): Declare new function.
1869 (element_precision): Likewise.
1870 * fold-const.c (operand_equal_p): Use element_precision.
1871 (fold_binary_loc): Handle vector types.
1872 * convert.c (convert_to_integer): Use element_precision.
1873 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1874 separately.
1875
1876 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1877
1878 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1879 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1880 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1881 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1882 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1883 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1884 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1885 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1886 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1887 (Uuw8): New constraints.
1888 (Usb4): Move into alphabetical order.
1889 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1890 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1891 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1892 previously unnamed patterns.
1893 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1894 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1895 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1896 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1897 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1898 of specific lengths.
1899
1900 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1901
1902 * config/i386/i386.md (rotateinv): New code attr.
1903 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1904 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1905 roll $31, %eax, etc.
1906
1907 PR tree-optimization/45216
1908 PR tree-optimization/57157
1909 * tree-ssa-forwprop.c (simplify_rotate): New function.
1910 (ssa_forward_propagate_and_combine): Call it.
1911
1912 2013-05-10 Richard Biener <rguenther@suse.de>
1913
1914 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1915 disable peeling when we version for aliasing.
1916 (vector_alignment_reachable_p): Honor explicit user alignment.
1917 (vect_supportable_dr_alignment): Likewise.
1918 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1919 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1920 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1921 then peeling to arrange for the cost-model check to come first.
1922
1923 2013-05-10 Alan Modra <amodra@gmail.com>
1924
1925 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1926 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1927 * configure: Regenerate.
1928
1929 2013-05-10 Alan Modra <amodra@gmail.com>
1930
1931 PR target/55033
1932 * varasm.c (default_elf_select_section): Move !DECL_P check..
1933 (get_named_section): ..to here before calling get_section_name.
1934 Adjust assertion.
1935 (default_section_type_flags): Add DECL_P check.
1936 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1937 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1938
1939 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1940
1941 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1942 When using gen_stack_adjust_str with a register offset, add a
1943 REG_FRAME_RELATED_EXPR note.
1944
1945 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
1946
1947 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1948 (*vec_extractv4si_zext_mem): Ditto.
1949 (*vec_extractv2di): Add 0->x and x->x alternatives.
1950 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1951 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1952
1953 2013-05-09 Jason Merrill <jason@redhat.com>
1954
1955 N3639 C++1y VLA support
1956 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1957 DECL_VALUE_EXPR.
1958
1959 * tree.c (build_constructor_va): New.
1960 * tree.h: Declare it.
1961
1962 2013-05-09 Martin Jambor <mjambor@suse.cz>
1963
1964 PR lto/57084
1965 * gimple-fold.c (canonicalize_constructor_val): Call
1966 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1967
1968 2013-05-09 Jan Hubicka <jh@suse.cz>
1969 Richard Biener <rguenther@suse.de>
1970
1971 PR lto/54095
1972 * symtab.c (symtab_make_decl_local): Do not add private names.
1973
1974 2013-05-09 Jan Hubicka <jh@suse.cz>
1975
1976 PR lto/54095
1977 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1978 (unlink_from_assembler_name_hash): Likewise.
1979 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1980 symtab_unregister_node, symtab_initialize_asm_name_hash,
1981 change_decl_assembler_name): Update.
1982
1983 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1984
1985 * config/aarch64/aarch64.md: New movtf split.
1986 (*movtf_aarch64): Update.
1987 (aarch64_movdi_tilow): Handle TF modes and rename to
1988 aarch64_movdi_<mode>low.
1989 (aarch64_movdi_tihigh): Handle TF modes and rename to
1990 aarch64_movdi_<mode>high
1991 (aarch64_movtihigh_di): Handle TF modes and rename to
1992 aarch64_mov<mode>high_di
1993 (aarch64_movtilow_di): Handle TF modes and rename to
1994 aarch64_mov<mode>low_di
1995 (aarch64_movtilow_tilow): Remove spurious whitespace.
1996 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1997 splits.
1998 (aarch64_print_operand): Update.
1999
2000 2013-05-09 Alan Modra <amodra@gmail.com>
2001
2002 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2003 powerpc64le.
2004 * configure: Regenerate.
2005
2006 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2007
2008 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2009 splitter preparation statements.
2010 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2011 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2012 adjust_address_nv.
2013
2014 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2015
2016 * gimple-ssa-strength-reduction.c (count_candidates): Change
2017 return value to int.
2018 (analyze_candidates_and_replace): Change type of length to int.
2019
2020 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2021
2022 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2023 (*vec_extract<mode>): Use VI12_128 mode iterator.
2024 (*vec_extract<mode>_mem): Ditto.
2025 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2026 attribute.
2027
2028 2013-05-08 Diego Novillo <dnovillo@google.com>
2029
2030 PR bootstrap/54659
2031
2032 Revert:
2033 2012-08-17 Diego Novillo <dnovillo@google.com>
2034
2035 PR bootstrap/54281
2036 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2037 * config.in: Regenerate.
2038 * configure: Regenerate.
2039 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2040
2041 2013-05-08 Jan Hubicka <jh@suse.cz>
2042
2043 PR lto/54095
2044 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2045 * cgraph.h (symtab_node_base): Add unique_name.
2046 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2047 input_overwrite_node, input_varpool_node): Stream unique_name.
2048 * cgraphclones.c (cgraph_create_virtual_clone,
2049 cgraph_function_versioning): Set unique_name.
2050 * ipa.c (function_and_variable_visibility): Set unique_name.
2051
2052 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2053
2054 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2055 (alloc_cand_and_find_basis): Restrict conditional candidate
2056 processing to CAND_MULTs.
2057
2058 2013-05-08 Jan Hubicka <jh@suse.cz>
2059
2060 PR lto/54095
2061 lto-symtab.c (lto_symtab_symbol_p): New function.
2062 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2063 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2064 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2065 Skip static symbols.
2066
2067 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2068
2069 PR tree-optimization/57200
2070 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2071 Only call inform if the preceding warning_at returns true.
2072
2073 2013-05-07 Han Shen <shenhan@google.com>
2074
2075 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2076 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2077 * common.opt (fstack-protector-strong): New option.
2078 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2079 * doc/invoke.texi (Optimization Options): Document
2080 "-fstack-protector-strong".
2081 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2082
2083 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2084
2085 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2086
2087 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2088
2089 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2090 it is not lhs of the insn.
2091 (setup_reg_equiv): Remove insn having equiv memory which it is not
2092 lhs of the insn.
2093 * lra-constraints.c (process_address): Try to improve generation
2094 code for address base + disp.
2095 (lra_constraints): Make correct the code for checking insn setting
2096 up backward equivalence. Remove insn only if it is in the init
2097 insn list.
2098 * lra-eliminations.c (update_reg_eliminate): Change return value.
2099 (lra_eliminate): Use the result.
2100
2101 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2102
2103 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2104 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2105 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2106 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2107 register target operands.
2108 (*vec_extractv8hi_sse2): New pattern.
2109 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2110 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2111 (*vec_extract<mode>_mem): New insn and split pattern.
2112
2113 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2114
2115 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2116 (TARGET_ASAN_SHADOW_OFFSET): Define.
2117 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2118 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2119
2120 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2121
2122 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2123 (incr_vec_index): Return -1 if increment not found.
2124 (create_add_on_incoming_edge): Assert if increment not found.
2125 (record_increment): Limit number of increments recorded.
2126 (all_phi_incrs_profitable): Return false if an increment not found.
2127 (replace_profitable_candidates): Don't process increments that were
2128 not recorded.
2129 (analyze_candidates_and_replace): Limit size of incr_vec.
2130
2131 2013-05-07 Richard Biener <rguenther@suse.de>
2132
2133 * calls.c (special_function_p): setjmp-like functions are leaf.
2134 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2135 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2136
2137 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2138
2139 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2140 (aarch64_simd_mov<mode>): New expander.
2141 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2142 (aarch64_simd_mov_to_<mode>high): Likewise.
2143 (aarch64_simd_mov_from_<mode>low): Likewise.
2144 (aarch64_simd_mov_from_<mode>high): Likewise.
2145 (aarch64_dup_lane<mode>): Update.
2146 (aarch64_dup_lanedi): New instruction pattern.
2147 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2148 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2149
2150 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2151
2152 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2153 (replace_mult_candidate): Remove unnecessary argument; remove
2154 unnecessary parameter from call to introduce_cast_before_cand.
2155 (replace_unconditional_candidate): Remove unnecessary parameter
2156 from call to replace_mult_candidate.
2157 (replace_conditional_candidate): Likewise.
2158 (insert_initializers): Use make_temp_ssa_name.
2159 (introduce_cast_before_cand): Remove unnecessary argument; use
2160 make_temp_ssa_name.
2161 (replace_one_candidate): Remove unnecessary argument; remove
2162 unnecessary parameter from calls to introduce_cast_before_cand.
2163 (replace_profitable_candidates): Remove unnecessary parameters
2164 from calls to replace_one_candidate.
2165
2166 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2167
2168 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2169 phi def as possibly hiding a basis for a CAND_ADD whose operands
2170 have been commuted in the analysis.
2171 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2172
2173 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2174
2175 * config/aarch64/aarch64.md
2176 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2177 shift value between 0-4.
2178
2179 2013-05-07 Richard Biener <rguenther@suse.de>
2180
2181 * double-int.h (rshift): New overload.
2182 * double-int.c (rshift): New function.
2183 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2184 (create_reference_ops_from_ref): Remove.
2185 (vn_reference_insert): Use shared ops for constructing the
2186 reference and copy it.
2187
2188 2013-05-07 Richard Biener <rguenther@suse.de>
2189
2190 PR middle-end/57190
2191 * tree-eh.c (sink_clobbers): Properly propagate
2192 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2193
2194 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR tree-optimization/57149
2197 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2198 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2199 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2200 uninit_undefined_value_p instead of ssa_undefined_value_p.
2201
2202 PR debug/57184
2203 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2204 for modifier == EXPAND_INITIALIZER.
2205
2206 2013-05-07 Anton Blanchard <anton@samba.org>
2207
2208 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2209 for powerpc64 little endian.
2210 * configure: Regenerate.
2211
2212 2013-05-06 Graham Stott <grahams@btinternet.com>
2213
2214 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2215 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2216 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2217 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2218
2219 2013-05-06 Graham Stott <grahams@btinternet.com>
2220
2221 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2222 codes which allow non-lvalues.
2223
2224 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2225
2226 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2227 components are all 1s.
2228 (integer_minus_onep): New function.
2229 * tree.h (integer_minus_onep): Declare it.
2230 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2231 integer_minus_onep instead of integer_all_onesp.
2232
2233 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2234
2235 PR target/52933
2236 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2237 variations of these patterns.
2238
2239 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2240
2241 * config/i386/i386.md (isa): Add x64_sse4 member.
2242 (enabled): Handle x64_sse4.
2243 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2244 instruction for 64bit SSE4_1 targets. Update insn attributes.
2245 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2246 instruction for SSE4_1 targets. Update insn attributes.
2247 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2248 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2249 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2250 const_1 selector.
2251 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2252 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2253 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2254
2255 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2256
2257 PR target/57108
2258 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2259
2260 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2261
2262 * final.c (do_assembler_dialects): Don't handle curly braces and
2263 vertical bar escaped by % as dialect delimiters.
2264 (output_asm_insn): Print curly braces and vertical bar if escaped
2265 by % and ASSEMBLER_DIALECT defined.
2266 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2267 * doc/tm.texi: Regenerated.
2268
2269 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2270
2271 * config/mips/mips.c: Include tree-pass.h.
2272 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2273 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2274 (pass_mips_machine_reorg2): New machine specific pass.
2275 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2276 (mips_option_override): Register the new pass.
2277 * rtl.h (cleanup_barriers): Remove prototype.
2278 (dbr_schedule): Likewise.
2279 * jump.c (cleanup_barriers): Make static.
2280 * reorg.c (dbr_schedule): Likewise.
2281
2282 2013-05-06 Richard Biener <rguenther@suse.de>
2283
2284 PR tree-optimization/57185
2285 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2286 SSA names properly.
2287
2288 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2289
2290 PR target/57106
2291 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2292 between "first_arg" and "insn", not "last" and "insn".
2293
2294 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2295
2296 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2297 (find_candidates_in_block): Re-enable slsr_process_phi.
2298 (create_phi_basis): Fix double counting of candidate adjustment.
2299
2300 2013-05-06 Richard Biener <rguenther@suse.de>
2301
2302 PR middle-end/57147
2303 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2304 the edge is also fallthru, preserve it and just clear the
2305 abnormal flag.
2306 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2307 also complex, preserve that and just clear the fallthru flag.
2308 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2309 update virtual operands.
2310
2311 2013-05-06 Alan Modra <amodra@gmail.com>
2312
2313 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2314 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2315 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2316 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2317 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2318 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2319
2320 2013-05-06 Alan Modra <amodra@gmail.com>
2321
2322 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2323 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2324 (DEFAULT_ASM_ENDIAN): Define.
2325 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2326 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2327 Update -K PIC clause from sysv4.h.
2328 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2329 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2330
2331 2013-05-06 Alan Modra <amodra@gmail.com>
2332
2333 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2334 twice for little-endian.
2335 (ashrdi3_no_power, ashrdi3): Support little-endian.
2336
2337 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2338
2339 PR target/55303
2340 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2341 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2342 related expanders.
2343 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2344 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2345 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2346 New predicates.
2347
2348 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2349 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2350
2351 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2352 * config/pa/pa.opt: Make mbig-switch a no-op.
2353 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2354 (CASE_VECTOR_MODE): Always return SImode.
2355 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2356 for the !TARGET_BIG_SWITCH case.
2357 * config/pa/pa-linux.h: Likewise.
2358 * config/pa/pa-openbsd.h: Likewise.
2359 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2360 * config/pa/pa.md (short_jump): Remove define_insn.
2361 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2362 (casesi0): Remove define_insn.
2363 (type): Remove btable_branch.
2364 (pa_combine_type): Likewise.
2365 (in_nullified_branch_delay): Likewise.
2366 (in_call_delay): Likewise.
2367 (define_delay): Likewise.
2368 (define_insn_reservation "Z3"): Likewise.
2369 (define_insn_reservation "Z4"): Likewise.
2370 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2371 (pa_adjust_insn_length): Remove adjustment for btable branches.
2372 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2373 and mno-big-switch
2374
2375 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2376
2377 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2378 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2379 Add m->r,x alternatives.
2380 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2381 splitters using SWI48x mode iterator.
2382 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2383 TARGET_64BIT. Add m->x alternative.
2384 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2385 Add o->x alternative. Enable for TARGET_SSE.
2386 (sse_storeq): Remove expander.
2387 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2388 with memory input operand.
2389 (*vec_extractv2di_1 splitter): New.
2390 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2391 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2392
2393 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2394
2395 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2396 (INT_LOWPART): Delete.
2397 (extract_MB): Adjust.
2398 (extract_ME): Adjust.
2399 (print_operand): Adjust.
2400
2401 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2402
2403 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2404 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2405 (reg_or_logical_cint_operand, easy_fp_constant,
2406 logical_const_operand): Delete "CONST_DOUBLE" case.
2407 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2408 "HOST_BITS_PER_WIDE_INT == 64" test.
2409 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2410 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2411 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2412 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2413 test.
2414 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2415 CONST_DOUBLE DImode/VOIDmode case.
2416 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2417 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2418 CONST_DOUBLE VOIDmode case.
2419 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2420 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2421 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2422 Delete CONST_DOUBLE case.
2423 (splitters for mov FMOVE64 const_double): Delete
2424 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2425 "HOST_BITS_PER_WIDE_INT >= 64" test.
2426 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2427 case.
2428 (mov DI const_double): Delete.
2429
2430 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2431
2432 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2433 on op shows all bits zero in mode of a lowpart subreg, return zero.
2434
2435 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2436
2437 PR target/57150
2438 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2439 to save TFmode registers and DImode to save TImode registers for
2440 caller save operations.
2441 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2442 mark being partially clobbered since they only use the first
2443 double word.
2444
2445 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2446 and TDmode only use the upper 64-bits of each VSX register.
2447
2448 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2449
2450 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2451 (find_candidates_in_block): Disable slsr_process_phi.
2452
2453 2013-05-03 Guozhi Wei <carrot@google.com>
2454
2455 * coverage.c (coverage_obj_init): Move the construction of gcov
2456 constructor to ...
2457 (build_init_ctor): ... here.
2458
2459 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2460
2461 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
2462 (slsr_cand_d): Redefine def_phi.
2463 (stride_status, phi_adjust_status, count_phis_status): New enums.
2464 (find_phi_def): New.
2465 (find_basis_for_base_expr): New.
2466 (find_basis_for_candidate): Handle hidden bases.
2467 (alloc_cand_and_find_basis): Handle phi candidates.
2468 (slsr_process_phi): New.
2469 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
2470 (create_mul_imm_cand): Likewise.
2471 (create_add_ssa_cand): Exclude phi base candidates.
2472 (create_add_imm_cand): Likewise.
2473 (slsr_process_cast): Likewise.
2474 (slsr_process_copy): Likewise.
2475 (find_candidates_in_block): Handle phi candidates.
2476 (dump_candidate): Likewise.
2477 (unconditional_cands): Delete.
2478 (unconditional_cands_with_known_stride_p): Delete.
2479 (phi_dependent_cand_p): New.
2480 (cand_increment): Handle phi-dependent candidates.
2481 (replace_dependent): Delete.
2482 (replace_mult_candidate): New.
2483 (replace_unconditional_candidate): New.
2484 (incr_vec_index): Move to avoid forward reference.
2485 (create_add_on_incoming_edge): New.
2486 (create_phi_basis): New.
2487 (replace_dependents): Delete.
2488 (replace_conditional_candidate): New.
2489 (phi_add_costs): New.
2490 (replace_uncond_cands_and_profitable_phis): New.
2491 (record_increment): Handle phi adjustments.
2492 (record_phi_increments): New.
2493 (record_increments): Handle phi adjustments.
2494 (phi_incr_cost): New.
2495 (lowest_cost_path): Handle phis.
2496 (total_savings): Likewise.
2497 (analyze_increments): Likewise.
2498 (ncd_with_phi): New.
2499 (ncd_of_cand_and_phis): New.
2500 (nearest_common_dominator_for_cands): Handle phi increments.
2501 (all_phi_incrs_profitable): New.
2502 (replace_profitable_candidates): Handle phi-dependent candidates.
2503 (analyze_candidates_and_replace): Likewise.
2504
2505 2013-05-03 Teresa Johnson <tejohnson@google.com>
2506
2507 PR bootstrap/57154
2508 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
2509 do not exceed REG_BR_PROB_BASE.
2510
2511 2013-05-03 Jeff Law <law@redhat.com>
2512
2513 PR tree-optimization/57144
2514 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
2515 operand of the condition will bit into the new type when eliminating
2516 a cast feeding a condition.
2517
2518 2013-05-03 Jakub Jelinek <jakub@redhat.com>
2519
2520 PR rtl-optimization/57130
2521 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
2522 of COMPARE as in_code to the recursive call if needed.
2523
2524 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
2525
2526 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
2527 (enabled): Handle new members.
2528 * config/i386/sse.md (*vec_concatv2si): Merge from
2529 *vec_concatv2si_sse2 and vec_concatv2si_sse.
2530 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
2531
2532 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
2533
2534 PR tree-optimization/57027
2535 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
2536 for fnms opportunity, check we got the prerequisite kind
2537 of tree / gimple before using accessor functions.
2538
2539 2013-05-03 Richard Biener <rguenther@suse.de>
2540
2541 * double-int.h (lshift): New overload without precision
2542 and arith argument.
2543 (operator *=, operator +=, operator -=): Move ...
2544 * double-int.c (operator *=, operator +=, operator -=): ... here
2545 and implement more efficiently.
2546 (mul_double_with_sign): Remove.
2547 (lshift_double): Adjust to take unsinged shift argument, push
2548 dispatching code to callers.
2549 (mul_double_wide_with_sign): Add early out for callers that
2550 are not interested in high parts or overflow.
2551 (lshift): New function.
2552 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
2553 dispatch code here.
2554 (lrotate, rrotate): Use logical shifts.
2555 * expr.c (get_inner_reference): Use lshift.
2556 * fixed-value.c (do_fixed_divide): Likewise.
2557 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2558 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
2559 (indirect_refs_may_alias_p): Likewise.
2560 (stmt_kills_ref_p_1): Likewise.
2561
2562 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2563
2564 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
2565
2566 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
2567
2568 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
2569 scalar form of FABD instruction.
2570
2571 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
2572
2573 * lra-constraints.c (process_alt_operands): Add checking alt
2574 number to choose the best alternative.
2575
2576 2013-05-02 Richard Biener <rguenther@suse.de>
2577
2578 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
2579 bitmap and its handling.
2580 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
2581
2582 2013-05-02 Richard Biener <rguenther@suse.de>
2583
2584 PR middle-end/57140
2585 * tree-inline.c (copy_loops): Properly handle removed loops.
2586 (copy_cfg_body): Mark destination loops for fixup if source
2587 loops needed fixup.
2588
2589 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
2590
2591 PR target/56732
2592 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
2593 generating simple_return for naked functions.
2594
2595 2013-05-02 Martin Jambor <mjambor@suse.cz>
2596
2597 PR middle-end/56988
2598 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
2599 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
2600 flags match.
2601 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
2602 ipa_agg_replacement_value structures.
2603 (known_aggs_to_agg_replacement_list): Likewise.
2604 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
2605 (read_agg_replacement_chain): Likewise.
2606 (ipcp_transform_function): Also check that by_ref flags match.
2607
2608 2013-05-02 Richard Biener <rguenther@suse.de>
2609
2610 * graphds.h (struct graph): Add obstack member.
2611 * graphds.c (new_graph): Initialize obstack and allocate
2612 vertices from it.
2613 (add_edge): Allocate edge from the obstack.
2614 (free_graph): Free the obstack instead of all edges and vertices.
2615
2616 2013-05-02 Teresa Johnson <tejohnson@google.com>
2617
2618 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
2619 divides.
2620 * cfg.c (update_bb_profile_for_threading): Ditto.
2621 * tree-inline.c (copy_bb): Ditto.
2622 (copy_edges_for_bb): Ditto.
2623 (initialize_cfun): Ditto.
2624 (copy_cfg_body): Ditto.
2625 (expand_call_inline): Ditto.
2626 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
2627 (estimate_node_size_and_time): Ditto.
2628 (inline_merge_summary): Ditto.
2629 * cgraphclones.c (cgraph_clone_edge): Ditto.
2630 (cgraph_clone_node): Ditto.
2631 * sched-rgn.c (compute_dom_prob_ps): Ditto.
2632 (compute_trg_info): Ditto.
2633
2634 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2635
2636 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
2637 S reg when fp attribute set.
2638 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
2639
2640 2013-05-02 Ian Bolton <ian.bolton@arm.com>
2641
2642 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
2643 New pattern.
2644 (*and_one_cmplsi3_compare0_uxtw): Likewise.
2645 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
2646 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
2647
2648 2013-05-02 Richard Biener <rguenther@suse.de>
2649
2650 * tree-scalar-evolution.c (scev_info_hasher): Remove.
2651 (struct instantiate_cache_entry): New type.
2652 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
2653 (struct instantiate_cache_type): New type.
2654 (set_instantiated_value, get_instantiated_value): Remove.
2655 (get_instantiated_value_entry): New function.
2656 (instantiate_scev_name): Use the new cache and adjust.
2657 (instantiate_scev_poly): Adjust.
2658 (instantiate_scev_binary): Likewise.
2659 (instantiate_array_ref): Likewise.
2660 (instantiate_scev_convert): Likewise.
2661 (instantiate_scev_not): Likewise.
2662 (instantiate_scev_3): Likewise.
2663 (instantiate_scev_2): Likewise.
2664 (instantiate_scev_r): Likewise.
2665 (instantiate_scev): Likewise.
2666 (resolve_mixers): Likewise.
2667
2668 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
2669
2670 PR target/57091
2671 * lra-constraints.c (best_small_class_operands_num): Remove.
2672 (process_alt_operands): Remove small_class_operands_num. Take
2673 small classes operands into losers and only if the operand is not
2674 matched. Modify debugging output.
2675 (curr_insn_transform): Remove best_small_class_operands_num.
2676 Print insn name.
2677
2678 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2679
2680 * config/aarch64/aarch64-builtins.c
2681 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
2682 * config/aarch64/aarch64-simd-builtins.def
2683 (reduc_splus_): Add new modes.
2684 (reduc_uplus_): New.
2685 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
2686 (reduc_uplus_v4sf): Likewise.
2687 (reduc_splus_v4sf): Likewise.
2688 (aarch64_addv<mode>): Likewise.
2689 (reduc_uplus_<mode>): Likewise.
2690 (reduc_splus_<mode>): Likewise.
2691 (aarch64_addvv2di): Likewise.
2692 (reduc_uplus_v2di): Likewise.
2693 (reduc_splus_v2di): Likewise.
2694 (aarch64_addvv2si): Likewise.
2695 (reduc_uplus_v2si): Likewise.
2696 (reduc_splus_v2si): Likewise.
2697 (reduc_<sur>plus_<mode>): New.
2698 (reduc_<sur>plus_v2di): Likewise.
2699 (reduc_<sur>plus_v2si): Likewise.
2700 (reduc_<sur>plus_v4sf): Likewise.
2701 (aarch64_addpv4sf): Likewise.
2702 * config/aarch64/arm_neon.h
2703 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
2704 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
2705 add UNSPEC_SADDV, UNSPEC_UADDV.
2706 (SUADDV): New.
2707 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
2708
2709 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2710
2711 * config/aarch64/arm_neon.h
2712 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
2713
2714 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2715
2716 * config/aarch64/aarch64-builtins
2717 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
2718
2719 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2720
2721 * config/aarch64/aarch64-simd-builtins.def
2722 (reduc_smax_): New.
2723 (reduc_smin_): Likewise.
2724 (reduc_umax_): Likewise.
2725 (reduc_umin_): Likewise.
2726 (reduc_smax_nan_): Likewise.
2727 (reduc_smin_nan_): Likewise.
2728 (fmax): Remove.
2729 (fmin): Likewise.
2730 (smax): Update for V2SF, V4SF and V2DF modes.
2731 (smin): Likewise.
2732 (smax_nan): New.
2733 (smin_nan): Likewise.
2734 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
2735 (<su><maxmin><mode>3): ...This, refactor.
2736 (s<maxmin><mode>3): New.
2737 (<maxmin_uns><mode>3): Likewise.
2738 (reduc_<maxmin_uns>_<mode>): Refactor.
2739 (reduc_<maxmin_uns>_v4sf): Likewise.
2740 (reduc_<maxmin_uns>_v2si): Likewise.
2741 (aarch64_<fmaxmin><mode>: Remove.
2742 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
2743 new builtin names.
2744 (vmin<q>_f<32,64>): Likewise.
2745 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2746 (FMAXMIN): New.
2747 (su): Add mappings for smax, smin, umax, umin.
2748 (maxmin): New.
2749 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
2750 (FMAXMIN): Rename as...
2751 (FMAXMIN_UNS): ...This.
2752 (maxminv): Remove.
2753 (fmaxminv): Likewise.
2754 (fmaxmin): Likewise.
2755 (maxmin_uns): New.
2756 (maxmin_uns_op): Likewise.
2757
2758 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2759
2760 * config/aarch64/arm_neon.h
2761 (vac<ge, gt><sd>_f<32, 64>): Rename to...
2762 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
2763 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
2764
2765 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2766
2767 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
2768 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
2769
2770 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2771
2772 * config/aarch64/aarch64-simd.md
2773 (vcond<mode>_internal): Handle special cases for constant masks.
2774 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
2775 (vcondu<mode><mode>): Likewise.
2776 (vcond<v_cmp_result><mode>): New.
2777
2778 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2779
2780 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
2781 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2782 * config/aarch64/aarch64-simd-builtins.def
2783 (cmeq): Update to BUILTIN_VALLDI.
2784 (cmgt): Likewise.
2785 (cmge): Likewise.
2786 (cmle): Likewise.
2787 (cmlt): Likewise.
2788 * config/aarch64/arm_neon.h
2789 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2790 to builtins or C as appropriate.
2791
2792 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2793
2794 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2795 (cmgeu): ...This.
2796 (cmhi): Rename to...
2797 (cmgtu): ...This.
2798 * config/aarch64/aarch64-simd.md
2799 (simd_mode): Add SF.
2800 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2801 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2802 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2803 (cstore<mode>_neg): ...This.
2804 * config/aarch64/iterators.md
2805 (VALLF): new.
2806 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2807 (COMPARISONS): New.
2808 (UCOMPARISONS): Likewise.
2809 (optab): Add missing comparisons.
2810 (n_optab): New.
2811 (cmp_1): Likewise.
2812 (cmp_2): Likewise.
2813 (CMP): Likewise.
2814 (cmp): Remove.
2815 (VCMP_S): Likewise.
2816 (VCMP_U): Likewise.
2817 (V_cmp_result): Add DF, SF modes.
2818 (v_cmp_result): Likewise.
2819 (v): Likewise.
2820 (vmtype): Likewise.
2821 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2822
2823 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2824
2825 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2826 define_insn to define_insn_and_split.
2827 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2828 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2829 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2830 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2831 (thumb2_negscc): Likewise.
2832
2833 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2834
2835 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2836
2837 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2838
2839 * config/arm/thumb2.md: Remove trailing whitespaces.
2840
2841 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2842
2843 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2844 Use gen_int_mode rather than GEN_INT.
2845
2846 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2847
2848 * value-prof.c (stream_in_histogram_value): Remove the strayed
2849 debug_gimple_stmt.
2850
2851 2013-04-30 Richard Biener <rguenther@suse.de>
2852
2853 PR middle-end/57122
2854 * cfghooks.c (split_edge): Properly check for the loop latch edge.
2855
2856 2013-04-30 Richard Biener <rguenther@suse.de>
2857
2858 PR middle-end/57107
2859 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2860
2861 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
2862
2863 PR rtl-optimization/56957
2864 PR rtl-optimization/57105
2865 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2866 variable. Use just INSN_UID for determining whether an insn
2867 should be only disconnected from the insn stream.
2868 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2869
2870 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2871
2872 PR tree-optimization/57104
2873 * tsan.c (instrument_expr): Don't instrument accesses to
2874 DECL_HARD_REGISTER VAR_DECLs.
2875
2876 2013-04-30 Richard Biener <rguenther@suse.de>
2877
2878 * function.h (loops_for_fn): New inline function.
2879 (set_loops_for_fn): Likewise.
2880 * cfgloop.h (place_new_loop): Add struct function parameter.
2881 (get_loop): Likewise.
2882 (get_loops): Likewise.
2883 (number_of_loops): Likewise.
2884 (fel_next): Adjust.
2885 (fel_init): Likewise.
2886 * cfg.c (get_loop_copy): Adjust.
2887 * cfgloop.c (flow_loops_dump): Likewise.
2888 (record_loop_exits): Likewise.
2889 (verify_loop_structure): Likewise.
2890 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2891 (estimate_reg_pressure_cost): Likewise.
2892 (mark_loop_exit_edges): Likewise.
2893 * cfgloopmanip.c (place_new_loop): Likewise.
2894 (add_loop): Likewise.
2895 (duplicate_loop): Likewise.
2896 * graph.c (draw_cfg_nodes): Likewise.
2897 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2898 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2899 (extract_affine_chrec): Likewise.
2900 (build_scop_iteration_domain): Likewise.
2901 * graphite.c (graphite_initialize): Likewise.
2902 * ira-build.c (create_loop_tree_nodes): Likewise.
2903 (more_one_region_p): Likewise.
2904 (rebuild_regno_allocno_maps): Likewise.
2905 (mark_loops_for_removal): Likewise.
2906 (mark_all_loops_for_removal): Likewise.
2907 (remove_unnecessary_regions): Likewise.
2908 (ira_build): Likewise.
2909 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2910 * loop-init.c (fix_loop_structure): Likewise.
2911 (gate_rtl_move_loop_invariants): Likewise.
2912 (gate_rtl_unswitch): Likewise.
2913 (gate_rtl_unroll_and_peel_loops): Likewise.
2914 (rtl_doloop): Likewise.
2915 * lto-streamer-in.c (input_cfg): Likewise.
2916 * lto-streamer-out.c (output_cfg): Likewise.
2917 * modulo-sched.c (sms_schedule): Likewise.
2918 * predict.c (tree_estimate_probability): Likewise.
2919 (tree_estimate_probability_driver): Likewise.
2920 (estimate_loops): Likewise.
2921 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2922 (move_sese_region_to_fn): Likewise.
2923 (debug_loop_num): Likewise.
2924 * tree-chrec.c (chrec_evaluate): Likewise.
2925 (hide_evolution_in_other_loops_than_loop): Likewise.
2926 (chrec_component_in_loop_num): Likewise.
2927 (reset_evolution_in_loop): Likewise.
2928 (evolution_function_is_invariant_rec_p): Likewise.
2929 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2930 * tree-inline.c (copy_loops): Likewise.
2931 (copy_cfg_body): Likewise.
2932 (tree_function_versioning): Likewise.
2933 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2934 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2935 Likewise.
2936 (add_to_evolution_1): Likewise.
2937 (scev_const_prop): Likewise.
2938 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2939 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2940 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2941 (tree_ssa_lim_initialize): Likewise.
2942 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2943 (verify_loop_closed_ssa): Likewise.
2944 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2945 (tree_ssa_loop_im): Likewise.
2946 (tree_ssa_loop_unswitch): Likewise.
2947 (tree_vectorize): Likewise.
2948 (check_data_deps): Likewise.
2949 (tree_ssa_loop_ivcanon): Likewise.
2950 (tree_ssa_loop_bounds): Likewise.
2951 (tree_complete_unroll): Likewise.
2952 (tree_complete_unroll_inner): Likewise.
2953 (tree_parallelize_loops): Likewise.
2954 (tree_ssa_loop_prefetch): Likewise.
2955 (tree_ssa_loop_ivopts): Likewise.
2956 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2957 * tree-vectorizer.c (vectorize_loops): Likewise.
2958
2959 2013-04-29 Mike Frysinger <vapier@gentoo.org>
2960
2961 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2962 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2963 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2964 with EABI_LINK_SPEC.
2965
2966 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2967
2968 PR target/44578
2969 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2970 alternative.
2971
2972 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2973
2974 PR target/57097
2975 * lra-constraints.c (process_alt_operands): Discourage a bit more
2976 using memory for pseudos. Print cost dump for alternatives.
2977 Modify cost values for conflicts with early clobbers.
2978 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2979
2980 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2981
2982 PR target/57098
2983 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2984
2985 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2986
2987 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2988 from/to S register.
2989 (movdi_aarch64): Support LDR/STR from/to D register.
2990
2991 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2992
2993 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2994 or higher by default.
2995
2996 2013-04-29 Richard Biener <rguenther@suse.de>
2997
2998 PR middle-end/57075
2999 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3000 even if not adding abnormal edges for calls that can make
3001 abnormal gotos.
3002
3003 2013-04-29 Richard Biener <rguenther@suse.de>
3004
3005 PR middle-end/57103
3006 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3007 TREE_BLOCK.
3008 (move_stmt_r): Remove redundant checking.
3009
3010 2013-04-29 Teresa Johnson <tejohnson@google.com>
3011
3012 PR bootstrap/57077
3013 * basic-block.h (apply_scale): New function.
3014 (apply_probability): Use apply_scale.
3015 * gimple-streamer-in.c (input_bb): Ditto.
3016 * lto-streamer-in.c (input_cfg): Ditto.
3017 * lto-cgraph.c (merge_profile_summaries): Ditto.
3018 * tree-optimize.c (execute_fixup_cfg): Ditto.
3019 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3020 (copy_edges_for_bb): Ditto.
3021 (copy_cfg_body): Ditto.
3022
3023 2013-04-29 Tom de Vries <tom@codesourcery.com>
3024
3025 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3026 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3027 (tail_merge_optimize): Handle current_loops == NULL.
3028
3029 2013-04-26 Jeff Law <law@redhat.com>
3030
3031 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3032 (simplify_cond_using_ranges): Generalize code to simplify
3033 COND_EXPRs where one argument is a constant and the other
3034 is an SSA_NAME created by an integral type conversion.
3035
3036 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3037
3038 * config/arm/arm.md (store_minmaxsi): Use only when
3039 optimize_insn_for_size_p.
3040
3041 2013-04-29 Christian Bruel <christian.bruel@st.com>
3042
3043 PR target/57108
3044 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3045
3046 2013-04-29 Richard Biener <rguenther@suse.de>
3047
3048 PR middle-end/57089
3049 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3050 loop tree make sure to schedule a fixup for the child as well.
3051 (expand_omp_for_generic): Properly add loops.
3052 (expand_omp_for_static_nochunk): Likewise.
3053 (expand_omp_for_static_chunk): Likewise.
3054 (expand_omp_for): For the degenerate case fixup loops.
3055 (expand_omp_sections): Fix default bb placement in loops.
3056 (expand_omp_atomic_pipeline): Properly add loops.
3057
3058 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3059
3060 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3061
3062 2013-04-29 Tom de Vries <tom@codesourcery.com>
3063
3064 * tree-ssa-tail-merge.c: Update header comment.
3065
3066 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3067
3068 * config/aarch64/arm_neon.h
3069 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3070 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3071 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3072 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3073 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3074 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3075 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3076 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3077
3078 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3079
3080 * config/aarch64/aarch64-simd.md
3081 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3082 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3083 fix_trunc, fixuns_trunc.
3084 (ftrunc<VDQF:mode>2): New.
3085 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3086 (fix_trunc_optab): New.
3087
3088 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3089
3090 * config/aarch64/aarch64-builtins.c
3091 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3092 iceilf, lround, iroundf.
3093
3094 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3095
3096 PR target/54349
3097 * config/i386/i386.h (enum ix86_tune_indices)
3098 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3099 New, split from X86_TUNE_INTER_UNIT_MOVES.
3100 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3101 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3102 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3103 (TARGET_INTER_UNIT_MOVES): Remove.
3104 * config/i386/i386.c (initial_ix86_tune_features): Update.
3105 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3106 (ix86_expand_convert_uns_didf_sse): Use
3107 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3108 (ix86_expand_vector_init_one_nonzero): Ditto.
3109 (ix86_expand_vector_init_interleave): Ditto.
3110 (inline_secondary_memory_needed): Return true for moves from SSE class
3111 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3112 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3113 * config/i386/constraints.md (Yi, Ym): Depend on
3114 TARGET_INTER_UNIT_MOVES_TO_VEC.
3115 (Yj, Yn): New constraints.
3116 * config/i386/i386.md (*movdi_internal): Change constraints of
3117 operand 1 from Yi to Yj and from Ym to Yn.
3118 (*movsi_internal): Ditto.
3119 (*movdf_internal): Ditto.
3120 (*movsf_internal): Ditto.
3121 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3122 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3123 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3124 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3125 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3126 * config/i386/sse.md (movdi_to_sse): Ditto.
3127 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3128 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3129 TARGET_INTER_UNIT_MOVES.
3130 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3131 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3132 instead of TARGET_INTER_UNIT_MOVES.
3133 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3134 operand 1 from Yi to Yj and from Ym to Yn.
3135
3136 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3137
3138 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3139 (float_truncate_hi_): Likewise.
3140 (float_extend_lo_): Likewise.
3141 (float_truncate_lo_): Likewise.
3142 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3143 (aarch64_float_extend_lo_v2df): Likewise.
3144 (vec_unpacks_hi_v4sf): Likewise.
3145 (aarch64_float_truncate_lo_v2sf): Likewise.
3146 (aarch64_float_truncate_hi_v4sf): Likewise.
3147 (vec_pack_trunc_v2df): Likewise.
3148 (vec_pack_trunc_df): Likewise.
3149
3150 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3151
3152 * config/aarch64/aarch64-builtins.c
3153 (aarch64_fold_builtin): Fold float conversions.
3154 * config/aarch64/aarch64-simd-builtins.def
3155 (floatv2si, floatv4si, floatv2di): New.
3156 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3157 * config/aarch64/aarch64-simd.md
3158 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3159 * config/aarch64/iterators.md (FLOATUORS): New.
3160 (optab): Add float, floatuns.
3161 (su_optab): Likewise.
3162
3163 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3164
3165 * config/aarch64/aarch64-builtins.c
3166 (aarch64_builtin_vectorized_function): Use new names for
3167 fcvt builtins.
3168 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3169 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3170 (fcvtzu): Split as...
3171 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3172 (fcvtas): Split as...
3173 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3174 (fcvtau): Split as...
3175 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3176 (fcvtps): Split as...
3177 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3178 (fcvtpu): Split as...
3179 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3180 (fcvtms): Split as...
3181 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3182 (fcvtmu): Split as...
3183 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3184 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3185 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3186 (lfrintnusf, lfrintnudf): Likewise.
3187 * config/aarch64/aarch64-simd.md
3188 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3189 define_insn.
3190 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3191 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3192 (fcvt_pattern): Likewise.
3193
3194 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3195
3196 * config/aarch64/aarch64-simd.md
3197 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3198 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3199
3200 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3201
3202 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3203 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3204 (vrnd<a,m,n,p>_f32): Implement using builtins.
3205 (vrnd<i,x><q>_f<32, 64>): New.
3206
3207 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3208
3209 * config/aarch64/aarch64-builtins.c
3210 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3211 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3212 (frintz): Rename to...
3213 (btrunc): ...this.
3214 (frintp): Rename to...
3215 (ceil): ...this.
3216 (frintm): Rename to...
3217 (floor): ...this.
3218 (frinti): Rename to...
3219 (nearbyint): ...this.
3220 (frintx): Rename to...
3221 (rint): ...this.
3222 (frinta): Rename to...
3223 (round): ...this.
3224 * config/aarch64/aarch64-simd.md
3225 (aarch64_frint<frint_suffix><mode>): Delete.
3226 (<frint_pattern><mode>2): Convert to insn.
3227 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3228 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3229 (frint_pattern): Likewise.
3230 (frint_suffix): Likewise.
3231
3232 2013-04-29 Richard Biener <rguenther@suse.de>
3233
3234 PR tree-optimization/57081
3235 * loop-init.c: Include tree-flow.h.
3236 (loop_optimizer_finalize): Free number of iteration estimates.
3237 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3238
3239 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR tree-optimization/57083
3242 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3243 non-singleton shift count range, zero extend low_bound for uns case.
3244
3245 * config/i386/predicates.md (general_vector_operand): New predicate.
3246 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3247 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3248 if they aren't nonimmediate operands. If their original values
3249 satisfy const_vector_equal_evenodd_p, don't shift them.
3250 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3251 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3252 if not nonimmediate_operand.
3253 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3254 instead of register_operand.
3255 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3256
3257 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3258
3259 * stor-layout.c (finalize_size_functions): Allocate a structure and
3260 reset cfun before dumping the functions.
3261
3262 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3263
3264 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3265
3266 PR target/56866
3267 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3268 use xop_pmacsdqh if uns_p.
3269 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3270 the immediate rotate count.
3271
3272 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3273
3274 * rtl.h (struct rtx_def): Add comment for field jump.
3275 (LRA_SUBREG_P): New macro.
3276 * recog.c (register_operand): Check LRA_SUBREG_P.
3277 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3278 stack frame.
3279 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3280 (lra_final_code_change): Skip subreg change for operators.
3281 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3282 if there are no operand changes.
3283 * lra-constraints.c (curr_insn_set): New.
3284 (match_reload): Set LRA_SUBREG_P.
3285 (emit_spill_move): Ditto.
3286 (check_and_process_move): Use curr_insn_set. Process only single
3287 set insns. Don't initialize sec_mem_p and change_p.
3288 (simplify_operand_subreg): Use LRA_SUBREG_P.
3289 (reg_in_class_p): New function.
3290 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3291 of #ifdef. Add code to remove cycling.
3292 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3293 non-null disp. Reload inner instead of disp when base and index
3294 are null. Try to put lo_sum into register.
3295 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3296 (check_and_process_move): Move code for move cost check to
3297 simple_move_p. Remove equiv_substitution.
3298 (simple_move_p): New function.
3299 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3300 curr_insn_set. Call check_and_process_move only for single set
3301 insns. Use the new function. Move call of check_and_process_move
3302 after operand equiv substitution and address process.
3303
3304 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3305
3306 PR go/57045
3307 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3308 with nonlocal goto receivers or returns twice calls, ignore
3309 unininitialized values from abnormal edges to nl goto receiver
3310 or returns twice call.
3311
3312 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3313
3314 PR tree-optimization/57051
3315 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3316 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3317 bitsize.
3318
3319 2013-04-26 Richard Biener <rguenther@suse.de>
3320
3321 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3322 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3323 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3324 (fixup_loop_arrays_after_move): New function.
3325 (move_sese_region_to_fn): Properly outline the loop tree parts
3326 of the SESE region.
3327
3328 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3329
3330 * config/i386/i386.md (type, unit): Fix long lines.
3331
3332 2013-04-26 Richard Biener <rguenther@suse.de>
3333
3334 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3335 (lto-streamer-out.o): Likewise.
3336 * cfgloop.c (init_loops_structure): Export, add struct function
3337 argument and adjust.
3338 (flow_loops_find): Adjust.
3339 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3340 (init_loops_structure): Declare.
3341 * lto-streamer-in.c: Include cfgloop.h.
3342 (input_cfg): Input the loop tree.
3343 * lto-streamer-out.c: Include cfgloop.h.
3344 (output_cfg): Output the loop tree.
3345 (output_struct_function_base): Do not drop PROP_loops.
3346
3347 2013-03-26 Richard Biener <rguenther@suse.de>
3348
3349 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3350 (pass_build_cfg): Provide PROP_loops.
3351 (move_sese_region_to_fn): Remove loops that are outlined into fn
3352 for now.
3353 * tree-inline.c: Include cfgloop.h.
3354 (initialize_cfun): Do not drop PROP_loops.
3355 (copy_loops): New function.
3356 (copy_cfg_body): Copy loop structure.
3357 (tree_function_versioning): Initialize destination loop tree.
3358 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3359 (pass_parallelize_loops): Do IL verification.
3360 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3361 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3362 the CFG make sure we fixup loops as well.
3363 * tree-ssa-tail-merge.c: Include cfgloop.h.
3364 (replace_block_by): When merging loop latches mark loops for fixup.
3365 * lto-streamer-out.c (output_struct_function_base): Drop
3366 PROP_loops for now.
3367 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3368 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3369 * ipa-split.c: Include cfgloop.h.
3370 (split_function): Add the new return block to the loop tree root.
3371 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3372 whether we have removed the forwarder block.
3373 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3374 * cfgloop.h (place_new_loop): Declare.
3375 * cfgloopmanip.c (place_new_loop): Export.
3376 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3377 (tree-switch-conversion.o): Likewise.
3378 (tree-complex.o): Likewise.
3379 (tree-inline.o): Likewise.
3380 (tree-ssa-tailmerge.o): Likewise.
3381 (ipa-split.o): Likewise.
3382 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3383 (tree-ssa-copy.o): Likewise.
3384 * tree-switch-conversion.c: Include cfgloop.h
3385 (process_switch): If we emit a bit-test cascade, schedule loops
3386 for fixup.
3387 * tree-complex.c: Include cfgloop.h.
3388 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3389 * asan.c: Include cfgloop.h.
3390 (create_cond_insert_point): Properly add new basic-blocks to
3391 loops, schedule loop fixup.
3392 * cfgloop.c (verify_loop_structure): Check that looks are not
3393 marked for fixup.
3394 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3395 to loops.
3396 (expand_omp_for_generic): Likewise.
3397 (expand_omp_sections): Likewise.
3398 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3399 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3400 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3401 is initialized, not when loops are present.
3402 * tree-parloops.c (parallelize_loops): Remove checking here.
3403 * passes.c (init_optimization_passes): Schedule a copy-propagation
3404 pass before complete unrolling of inner loops.
3405
3406 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3407
3408 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3409 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3410 (colorize_init): Add argument to _WIN32 version.
3411 * toplev.c: Include diagnostic-color.h.
3412 (process_options): Default to -fdiagnostics-color=auto if
3413 GCC_COLORS env var is in the environment.
3414 * common.opt (fdiagnostics-color=): Add Var and Init.
3415 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3416 env var is in the environment, the default is auto rather than never.
3417
3418 * diagnostic.h (file_name_as_prefix): Add context argument.
3419 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3420 the string as locus.
3421 * langhooks.c (lhd_print_error_function): Adjust caller.
3422
3423 2013-04-25 Lawrence Crowl <crowl@google.com>
3424
3425 * var-tracking.c (shared_hash_def::htab):
3426 Change type to hash_table. Update dependent calls and types.
3427
3428 2013-04-25 Lawrence Crowl <crowl@google.com>
3429
3430 * Makefile.in: Update as needed below.
3431
3432 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3433 Move declaration to after the type's method definitons.
3434
3435 * attribs.c (htab_t scoped_attributes::attribute_hash):
3436 Change type to hash_table. Update dependent calls and types.
3437
3438 * bitmap.c (htab_t bitmap_desc_hash):
3439 Change type to hash_table. Update dependent calls and types.
3440
3441 * cselib.c (htab_t cselib_hash_table):
3442 Change type to hash_table. Update dependent calls and types.
3443
3444 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3445 (hash_string_slot_node): Move implementation into lto-streamer.h
3446 struct string_slot_hasher.
3447 (eq_string_slot_node): Likewise.
3448
3449 * data-streamer-out.c: Update output_block::string_hash_table
3450 dependent calls and types.
3451
3452 * dwarf2cfi.c (htab_t trace_index):
3453 Change type to hash_table. Update dependent calls and types.
3454
3455 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3456 Change type to hash_table. Update dependent calls and types.
3457 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
3458 (htab_t optimize_external_refs::map): Likewise.
3459 (htab_t output_comp_unit::extern_map): Likewise.
3460 (htab_t output_comdat_type_unit::extern_map): Likewise.
3461 (htab_t output_macinfo::macinfo_htab): Likewise.
3462 (htab_t optimize_location_lists::htab): Likewise.
3463 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
3464
3465 * except.c (htab_t ehspec_hash_type):
3466 Change type to hash_table. Update dependent calls and types.
3467 (assign_filter_values::ttypes): Likewise.
3468 (assign_filter_values::ehspec): Likewise.
3469 (sjlj_assign_call_site_values::ar_hash): Likewise.
3470 (convert_to_eh_region_ranges::ar_hash): Likewise.
3471
3472 * gcse.c (htab_t pre_ldst_table):
3473 Change type to hash_table. Update dependent calls and types.
3474
3475 * ggc-common.c (htab_t saving_htab):
3476 Change type to hash_table. Update dependent calls and types.
3477 (htab_t loc_hash): Likewise.
3478 (htab_t ptr_hash): Likewise.
3479 (call_count): Rename ggc_call_count.
3480 (call_alloc): Rename ggc_call_alloc.
3481 (loc_descriptor): Rename make_loc_descriptor.
3482 (add_statistics): Rename ggc_add_statistics.
3483
3484 * ggc-common.c (saving_htab):
3485 Change type to hash_table. Update dependent calls and types.
3486
3487 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
3488 (push_gimplify_context): Likewise.
3489 (pop_gimplify_context): Likewise.
3490 (struct gimple_temp_hash_elt): Added.
3491 (struct gimplify_hasher): Likewise.
3492 (struct gimplify_ctx.temp_htab):
3493 Change type to hash_table. Update dependent calls and types.
3494
3495 * gimple-fold.c: Include gimplify-ctx.h.
3496
3497 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
3498 Change type to hash_table. Update dependent calls and types.
3499 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
3500 avoid potential global name collision.
3501
3502 * gimplify.c: Include gimplify-ctx.h.
3503 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
3504 (htab_t gimplify_ctx::temp_htab):
3505 Update dependent calls and types for new type hash_table.
3506 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
3507 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
3508
3509 * gimplify-ctx.h: New.
3510 (struct gimple_temp_hash_elt): Move from gimplify.c.
3511 (class gimplify_hasher): New.
3512 (struct gimplify_ctx): Move from gimple.h.
3513 (htab_t gimplify_ctx::temp_htab):
3514 Change type to hash_table. Update dependent calls and types.
3515
3516 * graphite-clast-to-gimple.c: Include graphite-htab.h.
3517 (htab_t ivs_params::newivs_index):
3518 Change type to hash_table. Update dependent calls and types.
3519 (htab_t ivs_params::params_index): Likewise.
3520 (htab_t print_generated_program::params_index): Likewise.
3521 (htab_t gloog::newivs_index): Likewise.
3522 (htab_t gloog::params_index): Likewise.
3523
3524 * graphite.c: Include graphite-htab.h.
3525 4htab_t graphite_transform_loops::bb_pbb_mapping):
3526 Change type to hash_table. Update dependent calls and types.
3527
3528 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
3529 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
3530 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
3531
3532 * graphite-dependences.c: Include graphite-htab.h.
3533 (loop_is_parallel_p): Change hash table type of parameter.
3534
3535 * graphite-htab.h: New.
3536 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
3537 (extern find_pbb_via_hash): Move from graphite-poly.h.
3538 (extern loop_is_parallel_p): Move from graphite-poly.h.
3539 (extern get_loop_body_pbbs): Move from graphite-poly.h.
3540
3541 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
3542 (extern loop_is_parallel_p): Move to graphite-htab.h.
3543 (extern get_loop_body_pbbs): Move to graphite-htab.h.
3544
3545 * haifa-sched.c (htab_t delay_htab):
3546 Change type to hash_table. Update dependent calls and types.
3547 (htab_t delay_htab_i2): Likewise.
3548
3549 * ira-color.c (htab_t allocno_hard_regs_htab):
3550 Change type to hash_table. Update dependent calls and types.
3551
3552 * ira-costs.c (htab_t cost_classes_htab):
3553 Change type to hash_table. Update dependent calls and types.
3554
3555 * loop-invariant.c (htab_t merge_identical_invariants::eq):
3556 Change type to hash_table. Update dependent calls and types.
3557
3558 * loop-iv.c (htab_t bivs):
3559 Change type to hash_table. Update dependent calls and types.
3560
3561 * loop-unroll.c (htab_t opt_info::insns_to_split):
3562 Change type to hash_table. Update dependent calls and types.
3563 (htab_t opt_info::insns_with_var_to_expand): Likewise.
3564
3565 * lto-streamer.h (struct string_slot): Move from data-streamer.h
3566 (struct string_slot_hasher): New.
3567 (htab_t output_block::string_hash_table):
3568 Change type to hash_table. Update dependent calls and types.
3569
3570 * lto-streamer-in.c (freeing_string_slot_hasher): New.
3571 (htab_t file_name_hash_table):
3572 Change type to hash_table. Update dependent calls and types.
3573
3574 * lto-streamer-out.c: Update output_block::string_hash_table dependent
3575 calls and types.
3576
3577 * lto-streamer.c (htab_t tree_htab):
3578 Change type to hash_table. Update dependent calls and types.
3579
3580 * omp-low.c: Include gimplify-ctx.h.
3581
3582 * passes.c (htab_t name_to_pass_map):
3583 Change type to hash_table. Update dependent calls and types.
3584 (pass_traverse): Rename to passes_pass_traverse.
3585
3586 * plugin.c (htab_t event_tab):
3587 Change type to hash_table. Update dependent calls and types.
3588
3589 * postreload-gcse.c (htab_t expr_table):
3590 Change type to hash_table. Update dependent calls and types.
3591 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
3592
3593 * sese.c (debug_rename_map_1): Make extern.
3594 (htab_t copy_bb_and_scalar_dependences::rename_map):
3595 Change type to hash_table. Update dependent calls and types.
3596
3597 * sese.h (extern debug_rename_map): Move to .c file.
3598
3599 * store-motion.c (htab_t store_motion_mems_table):
3600 Change type to hash_table. Update dependent calls and types.
3601
3602 * trans-mem.c (htab_t tm_new_mem_hash):
3603 Change type to hash_table. Update dependent calls and types.
3604
3605 * tree-browser.c (htab_t TB_up_ht):
3606 Change type to hash_table. Update dependent calls and types.
3607
3608 * tree-cfg.c (htab_t discriminator_per_locus):
3609 Change type to hash_table. Update dependent calls and types.
3610
3611 * tree-complex.c: Include tree-hasher.h
3612 (htab_t complex_variable_components):
3613 Change type to hash_table. Update dependent calls and types.
3614
3615 * tree-eh.c (htab_t finally_tree):
3616 Change type to hash_table. Update dependent calls and types.
3617
3618 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
3619 struct int_tree_hasher.
3620 (extern int_tree_map_eq): Likewise.
3621 (uid_decl_map_hash): Removed.
3622 (extern decl_tree_map_eq): Likewise.
3623
3624 * tree-hasher.h: New.
3625 (struct int_tree_hasher): New.
3626 (typedef int_tree_htab_type): New.
3627
3628 * tree-inline.c: Include gimplify-ctx.h.
3629
3630 * tree-mudflap.c: Include gimplify-ctx.h.
3631
3632 * tree-parloops.c: Include tree-hasher.h.
3633 (htab_t eliminate_local_variables_stmt::decl_address):
3634 Change type to hash_table. Update dependent calls and types.
3635 (htab_t separate_decls_in_region::decl_copies): Likewise.
3636
3637 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
3638 Change type to hash_table. Update dependent calls and types.
3639
3640 * tree-sra.c (candidates):
3641 Change type to hash_table. Update dependent calls and types.
3642
3643 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
3644 in tree-flow.h.
3645 (int_tree_map_hash): Likewise.
3646
3647 * tree-ssa-dom.c (htab_t avail_exprs):
3648 Change type to hash_table. Update dependent calls and types.
3649
3650 * tree-ssa-live.c (var_map_base_init::tree_to_index):
3651 Change type to hash_table. Update dependent calls and types.
3652
3653 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
3654 Change type to hash_table. Update dependent calls and types.
3655
3656 * tree-ssa-phiopt.c (seen_ssa_names):
3657 Change type to hash_table. Update dependent calls and types.
3658
3659 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
3660 Change type to hash_table. Update dependent calls and types.
3661
3662 * tree-ssa-uncprop.c (equiv):
3663 Change type to hash_table. Update dependent calls and types.
3664
3665 2013-04-25 Jakub Jelinek <jakub@redhat.com>
3666
3667 PR rtl-optimization/57003
3668 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3669 call note_stores with kill_clobbered_value callback again after
3670 killing regs_invalidated_by_call.
3671
3672 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3673
3674 * config/aarch64/aarch64-simd.md
3675 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
3676 (aarch64_simd_bsl<mode>): Likewise.
3677 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
3678
3679 2013-04-25 Marek Polacek <polacek@redhat.com>
3680
3681 PR tree-optimization/57066
3682 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
3683
3684 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
3685
3686 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
3687
3688 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3689
3690 * config/aarch64/aarch64-builtins.c
3691 (aarch64_fold_builtin): New.
3692 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
3693 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
3694 * config/aarch64/aarch64-simd-builtins.def (abs): New.
3695 * config/aarch64/arm_neon.h
3696 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
3697
3698 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3699 Tejas Belagod <tejas.belagod@arm.com>
3700
3701 * config/aarch64/aarch64-builtins.c
3702 (aarch64_gimple_fold_builtin): New.
3703 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
3704 * config/aarch64/aarch64-simd-builtins.def (addv): New.
3705 * config/aarch64/aarch64-simd.md (addpv4sf): New.
3706 (addvv4sf): Update.
3707 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3708
3709 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3710
3711 * config/aarch64/aarch64.md
3712 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
3713
3714 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3715
3716 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
3717 (*ngcsi_uxtw): New pattern.
3718
3719 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3720 Julian Brown <julian@codesourcery.com>
3721
3722 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
3723 (TB_DREG): Add T_V4HF.
3724 (v4hf_UP): New macro.
3725 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3726 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3727 Handle initialisation of V4HF. Adjust initialisation of reinterpret
3728 built-ins.
3729 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
3730 (arm_vector_mode_supported_p): Handle V4HF.
3731 (arm_mangle_map): Handle V4HFmode.
3732 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
3733 * config/arm/arm_neon_builtins.def: Add entries for
3734 vcvtv4hfv4sf, vcvtv4sfv4hf.
3735 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
3736 (neon_vcvtv4hfv4sf): Likewise.
3737 * config/arm/neon-gen.ml: Handle half-precision floating point
3738 features.
3739 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
3740 * config/arm/arm_neon.h: Regenerate.
3741 * config/arm/neon.ml (type elts): Add F16.
3742 (type vectype): Add T_float16x4, T_floatHF.
3743 (type vecmode): Add V4HF.
3744 (type features): Add Requires_FP_bit feature.
3745 (elt_width): Handle F16.
3746 (elt_class): Likewise.
3747 (elt_of_class_width): Likewise.
3748 (mode_of_elt): Refactor.
3749 (type_for_elt): Handle F16, fix error messages.
3750 (vectype_size): Handle T_float16x4.
3751 (vcvt_sh): New function.
3752 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
3753 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
3754 (string_of_mode): Handle V4HF.
3755 * doc/arm-neon-intrinsics.texi: Regenerate.
3756
3757 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
3758
3759 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
3760 format specifier in 'X' case.
3761
3762 2013-04-25 Alan Modra <amodra@gmail.com>
3763
3764 PR target/57052
3765 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
3766 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
3767 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
3768 Repeat for many other rotate/shift and mask patterns using subregs.
3769 Name lshiftrt insns.
3770 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
3771 on WORDS_BIG_ENDIAN.
3772
3773 2013-04-25 Alan Modra <amodra@gmail.com>
3774
3775 * config.gcc: Support little-endian powerpc-linux targets.
3776 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
3777 (LINK_OS_LINUX_SPEC): Define.
3778 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
3779 Preserve MASK_LITTLE_ENDIAN.
3780 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
3781 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3782 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3783 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3784 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3785 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3786 Correct fp word order for little-endian. Don't shift toc entries
3787 smaller than a word for little-endian.
3788 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3789 (bswapdi2 splits): Correct low-part subreg for little-endian.
3790 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3791 low/high where such is correct only for be.
3792 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3793 little-endian for -mcall-aixdesc.
3794
3795 2013-04-25 Alan Modra <amodra@gmail.com>
3796
3797 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3798 replace_equiv_address_nv.
3799
3800 2013-04-25 Alan Modra <amodra@gmail.com>
3801
3802 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3803
3804 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3805
3806 Revert:
3807 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3808 * rtl.h (struct rtx_def): ...
3809
3810 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3811
3812 PR rtl-optimizations/57046
3813 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3814 for multi-reg splits.
3815
3816 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3817
3818 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3819
3820 2013-04-24 Sterling Augustine <saugustine@google.com>
3821
3822 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3823 (comp_dir_string, debug_str_dwo_section): New.
3824 (DEBUG_STR_DWO_SECTION): Rename to ...
3825 (DEBUG_DWO_STR_SECTION): ... this.
3826 (DEBUG_NORM_STR_SECTION): Delete.
3827 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3828 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3829 (find_AT_string): Move most logic to ...
3830 (find_AT_string_in_table): ... here. New.
3831 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3832 add_skeleton_AT_string. Delete logic.
3833 (output_skeleton_debug_sections): Remove call to
3834 add_top_level_skeleton_die_attrs.
3835 (add_comp_dir_attribute): Move logic to comp_dir_string.
3836 (dwarf2out_init): Initialize debug_str_dwo_section.
3837 (output_indirect_string): Call find_string_form.
3838 (output_indirect_strings): Rewrite.
3839 (prune_unused_types): Empty skeleton_debug_str_hash.
3840 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3841 (dwarf2out_finish): Call output_indirect_strings.
3842
3843 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3844
3845 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3846
3847 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3848
3849 * rtl.h (struct rtx_def): Add comment for field jump.
3850 (LRA_SUBREG_P): New macro.
3851 * recog.c (register_operand): Check LRA_SUBREG_P.
3852 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3853 stack frame.
3854 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3855 (lra_final_code_change): Skip subreg change for operators.
3856 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3857 if there are no operand changes.
3858 * lra-constraints.c (curr_insn_set): New.
3859 (match_reload): Set LRA_SUBREG_P.
3860 (emit_spill_move): Ditto.
3861 (check_and_process_move): Use curr_insn_set. Process only single
3862 set insns. Don't initialize sec_mem_p and change_p.
3863 (simplify_operand_subreg): Use LRA_SUBREG_P.
3864 (reg_in_class_p): New function.
3865 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3866 of #ifdef. Add code to remove cycling.
3867 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3868 non-null disp. Reload inner instead of disp when base and index
3869 are null. Try to put lo_sum into register.
3870 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3871 (check_and_process_move): Move code for move cost check to
3872 simple_move_p. Remove equiv_substitution.
3873 (simple_move_p): New function.
3874 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3875 curr_insn_set. Call check_and_process_move only for single set
3876 insns. Use the new function. Move call of check_and_process_move
3877 after operand equiv substitution and address process.
3878
3879 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3880
3881 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3882 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3883 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3884
3885 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3886
3887 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3888
3889 2013-04-24 Marek Polacek <polacek@redhat.com>
3890
3891 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3892 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3893 (select_loops_exit_conditions): Likewise.
3894 (number_of_iterations_for_all_loops): Likewise.
3895 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3896 (scev_analysis): Likewise.
3897
3898 2013-04-02 Catherine Moore <clm@codesourcery.com>
3899 Chao-ying Fu <fu@mips.com>
3900
3901 * config/mips/micromips.md (jraddiusp): New pattern.
3902 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3903 instruction if possible.
3904
3905 2013-04-24 Alan Modra <amodra@gmail.com>
3906
3907 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3908
3909 2013-04-24 Julian Brown <julian@codesourcery.com>
3910 Chung-Lin Tang <cltang@codesourcery.com>
3911
3912 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
3913 dependency behavior in enumeration type DIE generation. Add TODO note
3914 to comments about future DW_FORM_sdata/udata re-work of related code.
3915
3916 2013-04-23 Lawrence Crowl <crowl@google.com>
3917
3918 * Makefile.in: Update as needed below.
3919
3920 * hash-table.h (class hash_table):
3921 Correct many methods with parameter types compare_type to the correct
3922 value_type. (Correct code was unlikely to notice the change.)
3923 (hash_table::elements_with_deleted) New.
3924 (class hashtable::iterator): New.
3925 (hashtable::begin()): New.
3926 (hashtable::end()): New.
3927 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3928
3929 * statistics.c (statistics_hashes):
3930 Change type to hash_table. Update dependent calls and types.
3931
3932 * tree-into-ssa.c (var_infos):
3933 Change type to hash_table. Update dependent calls and types.
3934
3935 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3936 Change type to hash_table. Update dependent calls and types.
3937
3938 * tree-ssa-loop-im.c (struct mem_ref.refs):
3939 Change type to hash_table. Update dependent calls and types.
3940
3941 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3942 Change type to hash_table. Update dependent calls and types.
3943
3944 * tree-ssa-sccvn.c (vn_tables_s::nary):
3945 Change type to hash_table. Update dependent calls and types.
3946 (vn_tables_s::phis): Likewise.
3947 (vn_tables_s::references): Likewise.
3948
3949 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3950 (vn_reference_eq): Update parameter and return types.
3951
3952 * tree-ssa-structalias.c (pointer_equiv_class_table):
3953 Change type to hash_table. Update dependent calls and types.
3954 (location_equiv_class_table): Likewise.
3955
3956 * tree-vect-data-refs.c: Consequential changes for making
3957 peeling a hash_table.
3958
3959 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3960 (destroy_loop_vec_info): Dependent hash_table update.
3961
3962 * tree-vectorizer.h (peeling_htab):
3963 Change type to hash_table. Update dependent calls and types.
3964
3965 2013-04-23 Shiva Chen <shiva0217@gmail.com>
3966
3967 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3968 to check the register content is equal or not.
3969 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3970 to assign register content record.
3971 * lra-eliminations.c (update_reg_eliminate): Use
3972 lra_update_reg_val_offset to update register content offset.
3973 * lra-int.h (struct lra_reg): Add offset member.
3974 (lra_reg_val_equal_p): New static inline function.
3975 (lra_update_reg_val_offset): New static inline function.
3976 (lra_assign_reg_val): New static inline function.
3977 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3978 to assign register content record.
3979 (initialize_lra_reg_info_element): Initial offset to zero.
3980
3981 2013-04-23 Catherine Moore <clm@codesourcery.com>
3982
3983 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3984 operands. Record compression.
3985
3986 2013-04-23 Xinliang David Li <davidxl@google.com>
3987
3988 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3989
3990 2013-04-23 Richard Biener <rguenther@suse.de>
3991
3992 PR middle-end/57036
3993 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3994 parameter, only add abnormal goto edges from the copied body
3995 if the call could perform abnormal gotos.
3996 (copy_cfg_body): Adjust.
3997
3998 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3999
4000 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4001
4002 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4003
4004 * coretypes.h (gimple_stmt_iterator): Add struct to make
4005 compatible with C.
4006
4007 2013-04-23 Richard Biener <rguenther@suse.de>
4008
4009 PR tree-optimization/57026
4010 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4011 from SSA names occuring in abnormal PHI nodes.
4012
4013 2013-04-22 Andi Kleen <ak@linux.intel.com>
4014
4015 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4016
4017 2013-04-22 Andi Kleen <ak@linux.intel.com>
4018
4019 * lto/lto.c (print_lto_report_1): Declare early.
4020 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4021
4022 2013-04-22 Andi Kleen <ak@linux.intel.com>
4023
4024 * common.opt (-flto-report-wpa): Add.
4025 * doc/invoke.texi (-flto-report-wpa): Add.
4026 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4027 (lto_main): dito.
4028
4029 2013-04-22 Xinliang David Li <davidxl@google.com>
4030
4031 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4032 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4033 * Makefile.in: New dependency
4034
4035 David Daney <ddaney.cavm@gmail.com>
4036
4037 * configure.ac (gcc_cv_as_micromips_support): Use the
4038 --fatal-warnings option.
4039 * configure: Regenerate.
4040
4041 2013-04-22 Marek Polacek <polacek@redhat.com>
4042
4043 PR sanitizer/56990
4044 * tsan.c (instrument_expr): Don't instrument expression
4045 in case its size is zero.
4046
4047 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4048
4049 PR target/57032
4050 Revert:
4051 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4052
4053 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4054
4055 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4056
4057 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4058 (gimple_stmt_iterator): New typedef.
4059 * gimple.h (gimple_stmt_iterator): Rename to...
4060 (gimple_stmt_iterator_d): ... This.
4061 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4062 trees be valid for GIMPLE and GENERIC.
4063 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4064 * gimple-fold.c (gimple_fold_call): Call target hook
4065 gimple_fold_builtin.
4066 * hooks.c (hook_bool_gsiptr_false): New.
4067 * hooks.h (hook_bool_gsiptr_false): New.
4068 * target.def (fold_stmt): New.
4069 * doc/tm.texi: Regenerate.
4070
4071 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4072
4073 PR target/57018
4074 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4075 a set sp if no stack realignment.
4076
4077 2013-04-22 Nick Clifton <nickc@redhat.com>
4078
4079 * config.gcc (tilegx-linux): Extend extra_objs rather than
4080 overwriting it.
4081 (tilepro-linux): Likewise.
4082
4083 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4084
4085 * config/aarch64/aarch64-builtins.c
4086 (CF): Remove.
4087 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4088 (VAR<1-12>): Add MAP parameter.
4089 (BUILTIN_*): Likewise.
4090 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4091 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4092 (aarch64_ushl_n<mode>): Likewise.
4093 (aarch64_sshr_n<mode>): Likewise.
4094 (aarch64_ushr_n<mode>): Likewise.
4095 (aarch64_<maxmin><mode>): Likewise.
4096 (aarch64_sqrt<mode>): Likewise.
4097 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4098 (vshr<q>_n_*): Likewise.
4099
4100 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4101
4102 * config/aarch64/aarch64-builtins.c
4103 (aarch64_simd_builtin_type_mode): Handle SF types.
4104 (sf_UP): Define.
4105 (BUILTIN_GPF): Define.
4106 (aarch64_init_simd_builtins): Handle SF types.
4107 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4108 (frecps): Likewise.
4109 (frecpx): Likewise.
4110 * config/aarch64/aarch64-simd.md
4111 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4112 (aarch64_frecpe<mode>): New.
4113 (aarch64_frecps<mode>): Likewise.
4114 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4115 (v8type): Add frecp<esx>.
4116 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4117 (aarch64_frecps<mode>): Likewise.
4118 * config/aarch64/iterators.md (FRECP): New.
4119 (frecp_suffix): Likewise.
4120 * config/aarch64/arm_neon.h
4121 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4122
4123 2013-04-22 Christian Bruel <christian.bruel@st.com>
4124
4125 PR target/56995
4126 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4127 (REG_CLASS_NAMES): Idem.
4128 (REG_CLASS_CONTENTS): Idem.
4129 (REGCLASS_HAS_FP_REG): Idem.
4130 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4131 (sh_conditional_register_usage): Idem.
4132
4133 2013-04-21 Jeff Law <law@redhat.com>
4134
4135 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4136 (ssa_forward_propagate_and_combine): Use it.
4137
4138 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4139
4140 * lra.c: Update the flow chart diagram.
4141
4142 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4143
4144 PR rtl-optimization/56847
4145 * lra-constraints.c (process_alt_operands): Discourage alternative
4146 with non-matche doffsettable memory constraint fro memory with
4147 known offset.
4148
4149 2013-04-19 Richard Biener <rguenther@suse.de>
4150
4151 PR tree-optimization/56982
4152 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4153 function.
4154 * gimplify.c (gimplify_call_expr): Notice special calls.
4155 (gimplify_modify_expr): Likewise.
4156 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4157 abnormal control flow receivers.
4158 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4159 in the same way as cfun->has_nonlocal_labels.
4160 (gimple_purge_dead_abnormal_call_edges): Likewise.
4161 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4162 receivers start a basic-block.
4163
4164 2013-04-19 Richard Biener <rguenther@suse.de>
4165
4166 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4167 member ...
4168 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4169 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4170 (SLP_TREE_LOAD_PERMUTATION): Add.
4171 (vect_transform_slp_perm_load): Adjust prototype.
4172 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4173 (vect_free_slp_instance): Likewise.
4174 (vect_create_new_slp_node): Likewise.
4175 (vect_supported_slp_permutation_p): Remove.
4176 (vect_slp_rearrange_stmts): Adjust.
4177 (vect_supported_load_permutation_p): Likewise. Inline
4178 vect_supported_slp_permutation_p here.
4179 (vect_analyze_slp_instance): Compute load permutations per
4180 slp node instead of per instance.
4181 (vect_get_slp_defs): Adjust.
4182 (vect_transform_slp_perm_load): Likewise.
4183 (vect_schedule_slp_instance): Remove redundant code.
4184 (vect_schedule_slp): Remove hack for PR56270, add it ...
4185 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4186 CSE loads for SLP. Adjust.
4187
4188 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4189
4190 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4191 spelling in two comments.
4192
4193 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4194
4195 PR target/56797
4196 * config/arm/arm.c (load_multiple_sequence): Require SP
4197 as base register for loads if SP is in the register list.
4198
4199 2013-04-19 Martin Jambor <mjambor@suse.cz>
4200
4201 PR tree-optimization/56718
4202 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4203 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4204 and made public. Adjusted all callers.
4205 (ipa_intraprocedural_devirtualization): New function.
4206 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4207 (ipa_intraprocedural_devirtualization): Likewise.
4208 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4209
4210 2013-04-19 Richard Biener <rguenther@suse.de>
4211
4212 PR tree-optimization/57000
4213 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4214
4215 2013-04-19 Terry Guo <terry.guo@arm.com>
4216
4217 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4218 Replace with ...
4219 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4220 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4221 (cortex_m4_fmacs): Use new reservations.
4222 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4223
4224 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4225
4226 PR rtl-optimization/56999
4227 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4228 related code.
4229 (lra_coalesce): Remove split_origin_bitmap and related code.
4230 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4231 ranges if necessary.
4232
4233 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4234
4235 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4236 New array.
4237 (ix86_expand_call): Remove clobbered_registers array and use
4238 x86_64_ms_sysv_extra_clobbered_registers instead.
4239 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4240 Declare here.
4241 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4242 predicate.
4243 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4244 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4245 (*call_value_rex64_ms_sysv): Ditto.
4246
4247 2013-04-18 Cary Coutant <ccoutant@google.com>
4248
4249 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4250 parent instead of die_mark.
4251
4252 2013-04-18 Diego Novillo <dnovillo@google.com>
4253
4254 * gimple.c (create_gimple_tmp): New.
4255 (get_expr_type): New.
4256 (build_assign): New.
4257 (build_type_cast): New.
4258 * gimple.h (enum ssa_mode): Define.
4259 (gimple_seq_set_location): New.
4260 * asan.c (build_check_stmt): Change some gimple_build_* calls
4261 to use build_assign and build_type_cast.
4262
4263 2013-04-18 Richard Biener <rguenther@suse.de>
4264
4265 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4266 handle negative step. Remove redundant checks.
4267 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4268 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4269 for negative step and grouped loads fail to vectorize.
4270
4271 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4272
4273 * emit-rtl.c (reset_insn_used_flags): New function.
4274 (reset_all_used_flags): Use it.
4275 (verify_insn_sharing): New function.
4276 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4277
4278 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4279
4280 PR tree-optimization/56984
4281 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4282 and (x >> M) >= N don't register any assertion if N << M is the
4283 minimum value.
4284
4285 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4286
4287 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4288 do not delete_insn insns that have not yet been emitted, only
4289 unlink them with remove_insn.
4290 * df-scan.c (df_insn_delete): Revert r197492.
4291
4292 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4293
4294 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4295 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4296
4297 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4298
4299 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4300 define_insn_and_split.
4301 (and_scc,ior_scc,negscc): Likewise.
4302 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4303
4304 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4305
4306 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4307 can benefit from using a sequence of LDRD instructions in epilogue
4308 instead of a single LDM instruction.
4309
4310 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4311
4312 PR 45688
4313 * doc/extend.texi: Fix typo.
4314
4315 2013-04-17 Richard Biener <rguenther@suse.de>
4316
4317 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4318 (vect_build_slp_tree): ... here.
4319 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4320 match. Remove special-casing of mismatched complex loads.
4321 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4322 re-try the match with swapped commutative operands.
4323 (vect_supported_load_permutation_p): Remove special-casing of
4324 mismatched complex loads.
4325 (vect_analyze_slp_instance): Adjust.
4326
4327 2013-04-17 Richard Biener <rguenther@suse.de>
4328
4329 PR rtl-optimization/56921
4330 * cfgloop.h (struct loop): Add simple_loop_desc member.
4331 (struct niter_desc): Mark with GTY(()).
4332 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4333 * loop-iv.c (get_simple_loop_desc): Likewise.
4334 (free_simple_loop_desc): Likewise.
4335
4336 Revert
4337 2013-04-16 Richard Biener <rguenther@suse.de>
4338
4339 PR rtl-optimization/56921
4340 * loop-init.c (pass_rtl_move_loop_invariants): Add
4341 TODO_do_not_ggc_collect to todo_flags_finish.
4342 (pass_rtl_unswitch): Same.
4343 (pass_rtl_unroll_and_peel_loops): Same.
4344 (pass_rtl_doloop): Same.
4345
4346 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4347
4348 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4349 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4350 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4351 references.
4352 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4353 * tree-streamer.c (record_common_node): Adjust reference in comment.
4354
4355 2013-04-17 Terry Guo <terry.guo@arm.com>
4356
4357 * config/arm/cortex-m4.md: Add a new bypass.
4358
4359 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4360
4361 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4362 New pattern.
4363 (*subs_<optab><mode>_multp2): New pattern.
4364 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4365 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4366
4367 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4368
4369 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4370 (*subs_mul_imm_<mode>): New pattern.
4371
4372 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4373
4374 PR target/56948
4375 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4376 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4377 (vsx_movti_32bit): Change j->wa to O->wa.
4378
4379 2013-04-16 Richard Biener <rguenther@suse.de>
4380
4381 PR rtl-optimization/56921
4382 * loop-init.c (pass_rtl_move_loop_invariants): Add
4383 TODO_do_not_ggc_collect to todo_flags_finish.
4384 (pass_rtl_unswitch): Same.
4385 (pass_rtl_unroll_and_peel_loops): Same.
4386 (pass_rtl_doloop): Same.
4387
4388 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4389
4390 * config/arm/arm.c (emit_multi_reg_push): New declaration
4391 for an existing function.
4392 (arm_emit_strd_push): New function.
4393 (arm_expand_prologue): Used here.
4394 (arm_emit_ldrd_pop): New function.
4395 (arm_expand_epilogue): Used here.
4396 (arm_get_frame_offsets): Update condition.
4397 (arm_emit_multi_reg_pop): Add a special case for load of a single
4398 register with writeback.
4399
4400 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4401
4402 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4403 description.
4404
4405 2013-04-16 Richard Biener <rguenther@suse.de>
4406
4407 PR tree-optimization/56756
4408 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4409 (first_mem_ref_loc): New.
4410 (execute_sm): Place the load temporarily before a previous
4411 access instead of in the latch edge to ensure its SSA dependencies
4412 are defined at points dominating the load.
4413
4414 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4415
4416 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4417 correct fix by moving header and footer insn to the footer of
4418 the merged basic block. Clear BB_END of the merged-away block.
4419
4420 PR middle-end/43631
4421 * emit-rtl.c (make_note_raw): New function.
4422 (link_insn_into_chain): New static inline function.
4423 (add_insn): Use it.
4424 (add_insn_before, add_insn_after): Factor insn chain linking code...
4425 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4426 using link_insn_into_chain.
4427 (note_outside_basic_block_p): New helper function for emit_note_after
4428 and emit_note_before.
4429 (emit_note_after): Use nobb variant of add_insn_after if the note
4430 should not be contained in a basic block.
4431 (emit_note_before): Use nobb variant of add_insn_before if the note
4432 should not be contained in a basic block.
4433 (emit_note_copy): Use make_note_raw.
4434 (emit_note): Likewise.
4435 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4436 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4437 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4438 the moved barrier the tail of the basic block it follows.
4439 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4440
4441 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR tree-optimization/56962
4444 * gimple-ssa-strength-reduction.c (record_increment): Only set
4445 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4446 either rhs1 or rhs2 is equal to c->base_expr.
4447
4448 2013-04-15 Richard Biener <rguenther@suse.de>
4449
4450 PR tree-optimization/56933
4451 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4452 member.
4453 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4454 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4455 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4456 dependence check ...
4457 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
4458 ... here.
4459 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
4460 GROUP_READ_WRITE_DEPENDENCE.
4461
4462 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4463
4464 * emit-rtl.c (reset_all_used_flags): New function.
4465 (verify_rtl_sharing): Call reset_all_used_flags before and after
4466 performing the checks.
4467
4468 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4469
4470 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
4471 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
4472 * config/arm/constraints.md (De): New constraint.
4473 * config/arm/neon.md (anddi3_neon): Delete.
4474 (neon_vand<mode>): Expand to standard anddi3 pattern.
4475 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
4476 Move earlier in the file.
4477 (neon_inv_logic_op2): Likewise.
4478 (arm_anddi_operand_neon): New predicate.
4479
4480 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4481
4482 * configure.ac (gcc_cv_ld_as_needed): Set
4483 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
4484 Use -z ignore, -z record on *-*-solaris2*.
4485 (HAVE_LD_AS_NEEDED): Update comment.
4486 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
4487 * configure: Regenerate.
4488 * config.in: Regenerate.
4489 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
4490 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
4491 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
4492 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
4493 equivalents. Fix markup.
4494 * doc/tm.texi: Regenerate.
4495
4496 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
4497
4498 * config/i386/i386.opt: New option mstack-protector-guard=.
4499 * config/i386/i386-opts.h: Add enum stack_protector_guard.
4500 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
4501 TARGET_SSP_TLS_GUARD.
4502 * config/i386/i386.c (ix86_option_override_internal): Set
4503 ix86_stack_protector_guard.
4504 * config/i386/i386.md (stack_protect_set): Enable for
4505 TARGET_SSP_TLS_GUARD only.
4506 (stack_protect_set_<mode>): Ditto.
4507 (stack_protect_test): Ditto.
4508 (stack_protect_test_<mode>): Ditto.
4509 * doc/invoke.texi (i386 Option): Document.
4510
4511 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
4512
4513 PR target/56890
4514 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
4515 (S_MODES): Set H_MODE bit.
4516 (SF_MODES): Set only S_MODE and SF_MODE bits.
4517 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
4518 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
4519 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
4520 <MODE_FLOAT>: Likewise.
4521
4522 2013-04-15 Joey Ye <joey.ye@arm.com>
4523
4524 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
4525
4526 2013-04-15 Joey Ye <joey.ye@arm.com>
4527
4528 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
4529 for real far jump.
4530 (thumb_far_jump_used_p): Count instruction size and set
4531 far_jump_used.
4532
4533 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
4534
4535 * reorg.c (fill_simple_delay_slots): Reindent block of code.
4536 * resource.c (mark_target_live_regs): Reformat conditional block.
4537
4538 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4539
4540 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
4541 notes, they are emitted only just before final.
4542 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
4543
4544 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
4545
4546 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
4547 * cfgrtl.c (delete_insn): Call it here instead.
4548 * lra-spills.c (lra_final_code_change): Use delete_insn.
4549 * haifa-sched.c (sched_remove_insn): Likewise.
4550 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
4551 returning to the nop pool.
4552 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
4553 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
4554
4555 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4556
4557 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
4558 * doc/tm.texi: Regenerated.
4559
4560 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
4561
4562 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
4563 QImode checks.
4564
4565 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
4566
4567 * df-core.c (df_find_def): Compare register numbers.
4568 (df_find_use): Likewise.
4569
4570 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
4571
4572 PR target/56903
4573 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
4574 lra_in_progress for return.
4575
4576 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4577
4578 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
4579 define_insn into define_insn_and_split and emit movsicc patterns.
4580
4581 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
4582
4583 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
4584
4585 2013-04-12 Richard Biener <rguenther@suse.de>
4586
4587 * tree-pass.h (TODO_do_not_ggc_collect): New.
4588 * passes.c (execute_one_ipa_transform_pass): Honor
4589 TODO_do_not_ggc_collect.
4590 (execute_one_pass): Likewise.
4591
4592 Revert
4593 2013-04-10 Richard Biener <rguenther@suse.de>
4594
4595 * passes.c (init_optimization_passes): Remove reload pass.
4596 * ira.c (do_reload): Merge into ...
4597 (ira): ... this.
4598 (rest_of_handle_reload): Remove.
4599 (pass_reload): Likewise.
4600 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4601 of reload for vzeroupper pass placement.
4602
4603 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4604
4605 PR tree-optimization/56918
4606 PR tree-optimization/56920
4607 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
4608 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
4609 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
4610 use wide_mul_with_sign method.
4611
4612 2013-04-12 Richard Biener <rguenther@suse.de>
4613
4614 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
4615 not be considered a gimple constant.
4616
4617 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
4618
4619 * fold-const.c (const_binop): Handle vector shifts by a scalar.
4620 (fold_binary_loc): Call const_binop also for mixed vector-scalar
4621 operations.
4622
4623 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
4624 Jakub Jelinek <jakub@redhat.com>
4625
4626 * opts.c: Include diagnostic-color.h.
4627 (common_handle_option): Handle OPT_fdiagnostics_color_.
4628 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
4629 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
4630 (diagnostic-color.o): New.
4631 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
4632 (diagnostic_color_rule): New enum.
4633 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
4634 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
4635 the location string.
4636 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
4637 either NULL, or color kind.
4638 * diagnostic-color.c: New file.
4639 * diagnostic-color.h: New file.
4640 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
4641 arguments.
4642 * doc/invoke.texi (-fdiagnostics-color): Document.
4643 * pretty-print.h (pp_show_color): Define.
4644 (struct pretty_print_info): Add show_color field.
4645 * diagnostic.c: Include diagnostic-color.h.
4646 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
4647 macros. Colorize error:, warning: etc. strings and also the location
4648 string.
4649 (diagnostic_show_locus): Colorize the caret line.
4650 * pretty-print.c: Include diagnostic-color.h.
4651 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
4652 inside of %< %> quotes or quoted through q format modifier.
4653
4654 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4655
4656 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
4657
4658 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4659
4660 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
4661 code in CC_NZ mode.
4662 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
4663 pattern.
4664
4665 2013-04-11 Marek Polacek <polacek@redhat.com>
4666
4667 PR tree-optimization/48184
4668 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
4669
4670 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
4671
4672 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
4673 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
4674 (skip_simple_arithmetic): Tidy up.
4675 * tree.h (skip_simple_constant_arithmetic): Declare.
4676
4677 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4678
4679 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
4680
4681 2013-04-11 Richard Biener <rguenther@suse.de>
4682
4683 * tree-vect-loop.c (get_initial_def_for_induction): Properly
4684 generate vector constants.
4685
4686 2013-04-11 Richard Biener <rguenther@suse.de>
4687
4688 PR tree-optimization/56878
4689 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
4690 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
4691 New function.
4692 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4693 Prefer to align the DR with the most invariant base address.
4694
4695 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4696
4697 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
4698 comment.
4699
4700 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
4701
4702 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
4703 floating-point vector comparisons against 0.
4704
4705 2013-04-11 Jakub Jelinek <jakub@redhat.com>
4706
4707 PR tree-optimization/56899
4708 * fold-const.c (extract_muldiv_1): Apply distributive law
4709 only if TYPE_OVERFLOW_WRAPS (ctype).
4710
4711 2013-04-11 Bin Cheng <bin.cheng@arm.com>
4712
4713 PR target/56124
4714 * ira-costs.c (scan_one_insn): Check whether the source rtx of
4715 loading has side effect.
4716
4717 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
4718
4719 * config/sparc/sparc.c: Include tree-pass.h.
4720 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
4721 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
4722 head of file. Change return type. Split off gate function.
4723 (sparc_gate_work_around_errata): New function.
4724 (pass_work_around_errata): New pass definition.
4725 (insert_pass_work_around_errata) New pass insert definition to
4726 insert pass_work_around_errata just after delayed-branch scheduling.
4727 (sparc_option_override): Insert the pass.
4728 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
4729
4730 2013-04-10 David S. Miller <davem@davemloft.net>
4731
4732 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
4733 or -mcpu=hypersparc.
4734
4735 * target.def (cstore_mode): New hook.
4736 * target.h: Include insn-codes.h
4737 * targhooks.c: Likewise.
4738 (default_cstore_mode): New function.
4739 * targhooks.h: Declare it.
4740 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
4741 * doc/tm.texi: Rebuild.
4742 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
4743 target hook, rather than inspecting the insn_data.
4744 * config/sparc/sparc.c (sparc_cstore_mode): New function.
4745 (TARGET_CSTORE_MODE): Redefine.
4746 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
4747 result patterns.
4748 * config/sparc/predicates.md (cstore_result_operand): New special
4749 predicate.
4750 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
4751 Use it for operand 0.
4752 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
4753 (*snesi_special): Likewise.
4754 (*snesi_zero): Likewise.
4755 (*seqsi_zero): Likewise.
4756 (*sltu_insn): Likewise.
4757 (*sgeu_insn): Likewise.
4758 (*seqdi_special): Make operand 0 and comparison operation be of
4759 DImode.
4760 (*snedi_special): Likewise.
4761 (*snedi_special_vis3): Likewise.
4762 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
4763 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
4764 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
4765 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
4766 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
4767 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
4768 (*sltu_extend_sp64): Likewise.
4769 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
4770 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
4771 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
4772 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
4773 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
4774
4775 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
4776
4777 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
4778 (aarch64_start_file): Use the new function.
4779
4780 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4781 Jason Merrill <jason@redhat.com>
4782
4783 * common.opt: Add -gdwarf.
4784 * opts.c (common_handle_option): Handle it.
4785 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4786
4787 2013-04-10 Richard Biener <rguenther@suse.de>
4788
4789 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4790 (execute_one_ipa_transform_pass): But unconditionally here.
4791 (execute_one_pass): And here.
4792 (init_optimization_passes): Remove reload pass.
4793 * tree-pass.h (TODO_ggc_collect): Remove.
4794 (pass_reload): Likewise.
4795 * ira.c (do_reload): Merge into ...
4796 (ira): ... this.
4797 (rest_of_handle_reload): Remove.
4798 (pass_reload): Likewise.
4799 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4800 of reload for vzeroupper pass placement.
4801 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4802 and todo_flags_finish of all passes.
4803
4804 2013-04-10 Richard Biener <rguenther@suse.de>
4805
4806 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4807 first_const_oprnd field, rename first_def_type to first_op_type.
4808 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4809 (vect_get_and_check_slp_defs): Always use the type of the
4810 operand. Allow mixed vect_external_def, vect_constant_def types.
4811 (vect_get_constant_vectors): Handle mixed vect_external_def,
4812 vect_constant_def types.
4813
4814 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4815
4816 PR tree-optimization/55524
4817 * tree-ssa-math-opts.c
4818 (convert_mult_to_fma): Don't use an fms construct
4819 when we don't have an fms operation, but fnma, and it looks
4820 likely that we'll be able to use the latter.
4821
4822 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4823
4824 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4825 function.
4826 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4827 inline fail caused by overwritable functions.
4828
4829 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4830
4831 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4832 unnecessary bits in the constant power of two case.
4833
4834 2013-04-10 Richard Biener <rguenther@suse.de>
4835
4836 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4837 broken code swapping operands.
4838 (vect_build_slp_tree): Do not compute load permutations here.
4839 (vect_analyze_slp_instance): Compute load permutations here,
4840 after building the SLP tree.
4841
4842 2013-04-09 Christian Bruel <christian.bruel@st.com>
4843
4844 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4845 of next/prev_real_insn.
4846
4847 2013-04-09 Jan Hubicka <jh@suse.cz>
4848
4849 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4850 Drop aliased parameter.
4851 (function_and_variable_visibility): Do not handle alias pairs.
4852 * cgraph.c (varpool_externally_visible_p): Update prototype.
4853 * varpool.c (varpool_add_new_variable): Update.
4854
4855 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4856
4857 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4858
4859 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4860
4861 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4862
4863 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4864
4865 2013-04-09 Marek Polacek <polacek@redhat.com>
4866
4867 PR tree-optimization/48762
4868 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
4869
4870 2013-04-09 Richard Biener <rguenther@suse.de>
4871
4872 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4873 dealing with cost.
4874 (vect_build_slp_tree): Likewise.
4875 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4876 calculating the cost of a SLP instance.
4877 (vect_analyze_slp_instance): Use it from here, after building
4878 the SLP tree.
4879
4880 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4881
4882 PR middle-end/56883
4883 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4884 expand_omp_for_static_chunk): Use simple_p = true in
4885 force_gimple_operand_gsi calls when assigning to addressable decls.
4886
4887 2013-04-09 Jeff Law <law@redhat.com>
4888
4889 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4890 when the boolean was created by converting a wider object which
4891 had a boolean range.
4892
4893 2013-04-09 Richard Biener <rguenther@suse.de>
4894
4895 * tree-vectorizer.h (slp_void_p): Remove.
4896 (slp_tree): Typedef before _slp_tree declaration.
4897 (struct _slp_tree): Use a vector of slp_tree as children.
4898 (vect_get_place_in_interleaving_chain): Remove.
4899 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4900 Move ...
4901 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4902 and make static.
4903 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4904 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4905 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4906 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4907 Use slp_node instead of slp_void_p and adjust.
4908
4909 2013-04-09 Richard Biener <rguenther@suse.de>
4910
4911 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4912 work that is not necessary.
4913
4914 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4915
4916 PR tree-optimization/56854
4917 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4918 forward into clobber stmts if it would change MEM_REF lhs into
4919 non-MEM_REF.
4920
4921 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4922
4923 * tree.c (type_hash_lookup, type_hash_add): Make static.
4924 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4925
4926 2013-04-09 Richard Biener <rguenther@suse.de>
4927
4928 * tree.h (unsave_expr_now): Remove.
4929 * tree-inline.c (mark_local_for_remap_r): Remove.
4930 (unsave_expr_1): Likewise.
4931 (unsave_r): Likewise.
4932 (unsave_expr_now): Likewise.
4933 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4934 (propagate_tree_value): Likewise.
4935
4936 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4937
4938 * doc/rtl.texi (sequence): Rewrite documentation to match the
4939 current use of SEQUENCE rtl objects.
4940 * rtl.def (SEQUENCE): Likewise.
4941
4942 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4943 Update documentation.
4944 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4945 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4946
4947 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4948
4949 2013-04-08 Teresa Johnson <tejohnson@google.com>
4950
4951 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4952 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
4953 methods.
4954 (estimate_edge_size_and_time): Add comment to suggest using rounding
4955 methods.
4956 (estimate_node_size_and_time): Ditto.
4957 (remap_edge_change_prob): Use helper rounding divide methods.
4958 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4959 (gimple_mod_pow2_value_transform): Ditto.
4960 (gimple_mod_subtract_transform): Ditto.
4961 (gimple_ic_transform): Ditto.
4962 (gimple_stringops_transform): Ditto.
4963 * stmt.c (conditional_probability): Ditto.
4964 (emit_case_dispatch_table): Ditto.
4965 * lto-cgraph.c (merge_profile_summaries): Ditto.
4966 * tree-optimize.c (execute_fixup_cfg): Ditto.
4967 * cfgcleanup.c (try_forward_edges): Ditto.
4968 * cfgloopmanip.c (scale_loop_profile): Ditto.
4969 (loopify): Ditto.
4970 (duplicate_loop_to_header_edge): Ditto.
4971 (lv_adjust_loop_entry_edge): Ditto.
4972 * tree-vect-loop.c (vect_transform_loop): Ditto.
4973 * profile.c (compute_branch_probabilities): Ditto.
4974 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4975 * lto-streamer-in.c (input_cfg): Ditto.
4976 * gimple-streamer-in.c (input_bb): Ditto.
4977 * ipa-cp.c (update_profiling_info): Ditto.
4978 (update_specialized_profile): Ditto.
4979 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4980 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
4981 rounding methods.
4982 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4983 (compute_trg_info): Ditto.
4984 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4985 (purge_dead_edges): Ditto.
4986 * loop-unswitch.c (unswitch_loop): Ditto.
4987 * cgraphclones.c (cgraph_clone_edge): Ditto.
4988 (cgraph_clone_node): Ditto.
4989 * tree-inline.c (copy_bb): Ditto.
4990 (copy_edges_for_bb): Ditto.
4991 (initialize_cfun): Ditto.
4992 (copy_cfg_body): Ditto.
4993 (expand_call_inline): Ditto.
4994
4995 2013-04-08 Kai Tietz <ktietz@redhat.com>
4996
4997 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4998 TARGET_CYGWIN64 by TARGET_64BIT.
4999
5000 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5001
5002 * config/epiphany/epiphany.md (GPR_1): New constant.
5003 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5004 * config/epiphany/epiphany.c (gen_compare_reg):
5005 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5006 is already in place.
5007 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5008 Don't require being called during rtl expansion; If y operlaps r0,
5009 return 0.
5010 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5011 (epiphany_expand_epilogue): Likewise.
5012
5013 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5014 Don't use CC_FPmode for ORDERED / UNORDERED.
5015 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5016
5017 * config/epiphany/constraints.md (CnL): New constraint.
5018 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5019 * config/epiphany/predicates.md (add_operand): Allow 1024.
5020
5021 * config/epiphany/epiphany.md (logical_op): New code iterator.
5022 (op_mnc): New code attribute.
5023 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5024 (mov_f+1, mov_f+2): New peephole2 patterns.
5025
5026 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5027 (cstoresi4): Also allow re-use of zero result when doing a NE
5028 comparison to a non-zero operand.
5029 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5030
5031 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5032 Use gen_addsi3_i / gen_subsi3_i.
5033
5034 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5035
5036 PR c++/34949
5037 PR c++/50243
5038 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5039 contain anything but clobbers, at most one __builtin_stack_restore,
5040 optionally debug stmts and final resx, and if it has at least one
5041 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5042 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5043 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5044 which isn't defaut definition, remove them.
5045 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5046 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5047 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5048 with MEM_REF LHS with SSA_NAME address.
5049
5050 2013-04-08 Jeff Law <law@redhat.com>
5051
5052 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5053
5054 2013-04-08 Richard Biener <rguenther@suse.de>
5055
5056 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5057 extra newline.
5058 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5059 determined vector type.
5060 (vect_analyze_data_refs): Likewise.
5061 (vect_get_new_vect_var): Adjust.
5062 (vect_create_destination_var): Preserve SSA name versions.
5063 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5064 not dump anything here.
5065
5066 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5067
5068 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5069 Add member lr_slot_known.
5070 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5071 if necessary.
5072 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5073 Remove code that sets lr_slot_offset according to what a previous
5074 version of epiphany_emit_save_restore used to do.
5075 (epiphany_emit_save_restore): When doing an lr save or restore,
5076 set/verify lr_slot_known and lr_slot_offset.
5077
5078 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5079
5080 PR target/54338
5081 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5082 in ALL_REGS.
5083
5084 2013-04-08 Richard Biener <rguenther@suse.de>
5085
5086 * alias.c (find_base_term): Fix thinko in previous change.
5087
5088 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5089
5090 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5091 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5092 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5093 if possible to compute val.
5094 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5095 For QImode integers don't require anything about precision. Use
5096 const_with_all_bytes_same to find out if the constant doesn't have
5097 repeated bytes in it.
5098
5099 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5100
5101 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5102 within mode size.
5103
5104 2013-04-08 Marek Polacek <polacek@redhat.com>
5105
5106 PR rtl-optimization/48182
5107 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5108 value to 1.
5109
5110 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5111
5112 PR target/55487
5113 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5114 nuses, make sure we have a label.
5115
5116 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5117
5118 PR target/56843
5119 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5120 (rs6000_emit_swdiv_low_precision): Remove.
5121 (rs6000_emit_swdiv): Rewrite to handle between one and four
5122 iterations of Newton-Raphson generally; modify required number of
5123 iterations for some cases.
5124 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5125
5126 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5127
5128 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5129 set-but-unused variable.
5130
5131 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5132 basic blocks of released function bodies garbage-collectable.
5133
5134 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5135 (struct rtl_opt_pass): Add TODO_df_finish.
5136
5137 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5138
5139 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5140
5141 * config/arm/constraints.md (q): New constraint.
5142 * config/arm/ldrdstrd.md: New file.
5143 * config/arm/arm.md (ldrdstrd.md) New include.
5144 (arm_movdi): Use "q" instead of "r" constraint
5145 for double-word memory access.
5146 (movdf_soft_insn): Likewise.
5147 * config/arm/vfp.md (movdi_vfp): Likewise.
5148 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5149 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5150 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5151 (mem_ok_for_ldrd_strd): Likewise.
5152 (output_move_double): Update assertion.
5153
5154 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5155
5156 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5157
5158 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5159
5160 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5161 define_insn_and_split.
5162 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5163
5164 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5165
5166 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5167 define_insn_and_split.
5168 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5169 (shiftsi3_compare): New pattern.
5170 (rrx): New pattern.
5171 * config/arm/unspecs.md (UNSPEC_RRX): New.
5172
5173 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5174
5175 * config/arm/arm.md (negdi_extendsidi): New pattern.
5176 (negdi_zero_extendsidi): Likewise.
5177
5178 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5179
5180 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5181 define_insn_and_split.
5182 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5183 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5184
5185 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5186
5187 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5188 define_insn_and_split.
5189 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5190 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5191
5192 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5193
5194 * config/arm/arm.md (subsi3_carryin): New pattern.
5195 (subsi3_carryin_const): Likewise.
5196 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5197 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5198
5199 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5200
5201 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5202
5203 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5204
5205 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5206 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5207
5208 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5209
5210 * config/arm/arm.c (arm_expand_builtin): Change fcode
5211 type to unsigned int.
5212
5213 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5214
5215 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5216
5217 2013-04-04 Ian Lance Taylor <iant@google.com>
5218
5219 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5220 language standard.
5221
5222 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5223
5224 PR middle-end/56729
5225 * df-scan.c (df_insn_delete): Disable failing assert.
5226
5227 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5228
5229 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5230 New function prototype.
5231 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5232 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5233 (arm_builtin_vectorized_function): New function.
5234
5235 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5236
5237 * config/arm/arm_neon_builtins.def: New file.
5238 * config/arm/arm.c (neon_builtin_data): Move contents to
5239 arm_neon_builtins.def.
5240 (enum arm_builtins): Include neon builtin definitions.
5241 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5242 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5243
5244 2013-04-04 Marek Polacek <polacek@redhat.com>
5245
5246 PR tree-optimization/48186
5247 * predict.c (maybe_hot_frequency_p): Return false if
5248 HOT_BB_FREQUENCY_FRACTION is 0.
5249 (cgraph_maybe_hot_edge_p): Likewise.
5250
5251 2013-04-04 Richard Biener <rguenther@suse.de>
5252
5253 PR tree-optimization/56826
5254 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5255 more accurately.
5256
5257 2013-04-04 Richard Biener <rguenther@suse.de>
5258
5259 PR tree-optimization/56213
5260 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5261 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5262
5263 2013-04-04 Richard Biener <rguenther@suse.de>
5264
5265 PR tree-optimization/56837
5266 * tree-loop-distribution.c (classify_partition): For non-zero
5267 values require that the value has the same precision as its
5268 mode to be useful as memset value.
5269
5270 2013-04-03 Nick Clifton <nickc@redhat.com>
5271
5272 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5273 (fmssf4): Use fmsf.s on E3V5 architectures.
5274 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5275 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5276
5277 2013-04-03 Jeff Law <law@redhat.com>
5278
5279 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5280 (lra-eliminations.o): Likewise.
5281
5282 2013-04-03 Teresa Johnson <tejohnson@google.com>
5283
5284 * gcov-io.c (compute_working_sets): Moved most of body of old
5285 compute_working_sets here from profile.c.
5286 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5287 (gcov_working_set_t): Moved typedef here from basic-block.h
5288 (compute_working_set): Declare.
5289 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5290 (get_working_sets): Renamed from compute_working_set,
5291 replace most of body with call to new compute_working_sets.
5292 (get_exec_counts): Replace call to compute_working_sets
5293 to get_working_sets.
5294 * profile.h (get_working_sets): Renamed from compute_working_set.
5295 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5296 to get_working_sets.
5297 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5298 * gcov-dump.c (dump_working_sets): New function.
5299
5300 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5301
5302 * hwint.c (sext_hwi, zext_hwi): New functions.
5303 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5304 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5305 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5306 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5307 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5308 (sext_hwi, zext_hwi): New functions.
5309
5310 2013-04-03 Jeff Law <law@redhat.com>
5311
5312 PR tree-optimization/56799
5313 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5314 back test for widening conversion erroneously dropped in prior change.
5315
5316 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5317
5318 PR target/56809
5319 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5320 instead of next_real_insn.
5321
5322 2013-04-03 Marek Polacek <polacek@redhat.com>
5323
5324 PR sanitizer/55702
5325 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5326
5327 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5328
5329 PR target/56809
5330 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5331 next_real_insn.
5332 (thumb1_output_casesi): Likewise.
5333 (thumb2_output_casesi): Likewise.
5334
5335 2013-04-03 Richard Biener <rguenther@suse.de>
5336
5337 PR tree-optimization/56817
5338 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5339 Split out ...
5340 (tree_unroll_loops_completely_1): ... new function to manually
5341 walk the loop tree, properly defering outer loops of unrolled
5342 loops to later iterations.
5343
5344 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5345
5346 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5347 (vectorizable_load): Likewise.
5348 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5349 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5350
5351 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5352
5353 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5354 BIT_FIELD_REF.
5355
5356 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5357
5358 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5359
5360 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5361
5362 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5363
5364 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5365
5366 PR tree-optimization/56790
5367 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5368 folding.
5369
5370 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5371
5372 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5373 Handle VEC_MERGE.
5374 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5375 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5376 equal arguments.
5377
5378 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5379
5380 PR c/19449
5381 * tree.h (force_folding_builtin_constant_p): New decl.
5382 * builtins.c (force_folding_builtin_constant_p): New variable.
5383 (fold_builtin_constant_p): Fold immediately also if
5384 force_folding_builtin_constant_p.
5385
5386 2013-04-03 Richard Biener <rguenther@suse.de>
5387
5388 PR tree-optimization/56812
5389 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5390 DRs of the same interleaving chain are independent.
5391
5392 2013-04-02 Jason Merrill <jason@redhat.com>
5393
5394 * gdbinit.in (pbb): Use debug fn.
5395
5396 2013-04-02 Lawrence Crowl <crowl@google.com>
5397
5398 * sese.h (struct ivtype_map_elt_s): Remove unused.
5399 (extern debug_ivtype_map): Remove unused.
5400 (extern eq_ivtype_map_elts): Remove unused.
5401 * sese.c (debug_ivtype_map): Removed unused.
5402 (debug_ivtype_map_1): Removed unused.
5403 (debug_ivtype_elt): Remove unused.
5404 (eq_ivtype_map_elts): Remove unused.
5405
5406
5407 2013-04-02 Kai Tietz <ktietz@redhat.com>
5408
5409 PR target/52790
5410 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5411 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5412 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5413 function.
5414 (legitimize_pe_coff_symbol): Likewise.
5415 (is_imported_p): New helper-function.
5416 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5417 for Windows x64 targets.
5418 (ix86_expand_prologue): Optimize for pe-coff targets.
5419 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5420 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5421 medium/large code-model.
5422 (legitimize_pic_address): Likewise.
5423 (legitimize_tls_address): Likewise.
5424 (ix86_expand_call): Likewise.
5425 (x86_output_mi_thunk): Likewise.
5426 (get_dllimport_decl): Add new beimport argument.
5427 (construct_plt_address): Don't assert for x64 pe-coff targets.
5428 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5429 targets.
5430 (SYMBOL_FLAG_STUBVAR): New macro.
5431 (SYMBOL_REF_STUBVAR_P): Likewise.
5432 * config/i386/winnt.c (stub_list): New structure.
5433 (stub_head): New local variable.
5434 (i386_pe_record_stub): New function.
5435 (i386_pe_file_end): Emit refptr-stubs.
5436
5437 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5438
5439 PR rtl-optimization/56745
5440 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5441 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5442
5443 PR c++/34949
5444 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5445 and both of them are MEM_REFs, just compare first argument for
5446 equality and attempt to deal even with differing offsets.
5447
5448 PR c++/34949
5449 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5450 of gimple_clobber_p to be MEM_REF.
5451 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5452 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5453 after gimplification.
5454 * asan.c (get_mem_ref_of_assignment): Don't instrument
5455 gimple_clobber_p stmts.
5456 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
5457 gimple_clobber_p stmt if they have MEM_REF lhs and
5458 are dead because of another gimple_clobber_p stmt.
5459 * tree-ssa-live.c (clear_unused_block_pointer): Treat
5460 gimple_clobber_p stmts like debug stmts.
5461 (remove_unused_locals): Remove clobbers with MEM_REF lhs
5462 that refer to unused VAR_DECLs or uninitialized values.
5463 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
5464 gimple_clobber_p stmts if they refer to removed parameters.
5465 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
5466 formatting.
5467
5468 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
5469
5470 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
5471 using SWI48 mode attribute.
5472
5473 2013-04-02 Wei Mi <wmi@google.com>
5474
5475 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
5476 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
5477 *<rotate_insn><mode>3_mask in i386.md.
5478
5479 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
5480
5481 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
5482
5483 2013-04-02 Richard Biener <rguenther@suse.de>
5484
5485 PR tree-optimization/56778
5486 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5487 Runtime alias tests are not supported for gather loads.
5488 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
5489 stmts referenced from SSA operands before updating SSA form.
5490
5491 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
5492 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5493
5494 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
5495 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
5496 * config/arm/cortex-a53.md: New file.
5497 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
5498 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
5499 * config/arm/arm.c (arm_issue_rate): Likewise.
5500 * config/arm/arm-tune.md: Regenerate
5501 * config/arm/arm-tables.opt: Regenerate.
5502 * config/arm/arm-cores.def: Add cortex-a53.
5503
5504 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
5505
5506 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
5507 non-static link.
5508
5509 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5510
5511 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
5512 scalar load/store operations using B/H registers.
5513 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
5514
5515 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
5516
5517 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
5518 scalar move.
5519 * config/aarch64/aarch64.c
5520 (aarch64_simd_scalar_immediate_valid_for_move): New.
5521 * config/aarch64/aarch64-protos.h
5522 (aarch64_simd_scalar_immediate_valid_for_move): New.
5523 * config/aarch64/constraints.md (Dh, Dq): New.
5524 * config/aarch64/iterators.md (hq): New.
5525
5526 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
5527
5528 * reorg.c (get_branch_condition): Deal with conditional returns.
5529 (fill_simple_delay_slots): Remove dead code dealing with jumps.
5530
5531 2013-04-01 Wei Mi <wmi@google.com>
5532
5533 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
5534 Truncate operand 2 using %b asm operand modifier.
5535 (*<shift_insn><mode>3_mask): Ditto.
5536 (*<rotate_insn><mode>3_mask): Ditto.
5537
5538 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
5539
5540 PR middle-end/56798
5541 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
5542
5543 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
5544
5545 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
5546 of next_real_insn.
5547 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
5548
5549 2013-03-30 Lawrence Crowl <crowl@google.com>
5550
5551 * dse.c (clear_alias_sets): Remove never set.
5552 (disqualified_clear_alias_sets): Remove never set.
5553 (clear_alias_mode_pool): Remove never set.
5554 (dse_step0): Remove condition that is never true.
5555 (canon_address): Remove condition that is never true.
5556 (dse_step7): Remove condition that is never true.
5557 (rest_of_handle_dse): Remove condition that is never true.
5558 (rest_of_handle_dse::did_global): Remove never read from above.
5559 (dse_step2_spill): Remove never called from above.
5560 (dse_step5_spill): Remove never called from above.
5561
5562 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
5563
5564 * doc/md.texi (Standard Names) <casesi>: Update documentation for
5565 JUMP_TABLE_DATA changes.
5566 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
5567 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
5568 (Insns) <jump_table_data>: New entry.
5569 * doc/tm.texi: Regenerate.
5570
5571 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
5572
5573 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
5574 for table jump at the end of a basic block using tablejump_p.
5575 * targhooks.c (default_invalid_within_doloop): Likewise.
5576 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
5577 target hook implementation that is identical to the default hook.
5578 (rs6000_invalid_within_doloop): Remove.
5579
5580 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
5581 unused variable from tablejump_p call.
5582
5583 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
5584 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
5585 (INSN_DELETED_P): Likewise.
5586 (emit_jump_table_data): New prototype.
5587 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
5588 after 4th as unused.
5589 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
5590 * sched-vis.c (print_insn): Likewise.
5591 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
5592 insn for compatibility with back ends that use next_active_insn to
5593 identify jump table data.
5594 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
5595 (remove_insn): Likewise.
5596 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
5597 to be emitted.
5598 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
5599 (emit_jump_table_data): New function.
5600
5601 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
5602 basic block, a JUMP_TABLE_DATA never is.
5603 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
5604 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
5605 off from code handling real insns.
5606 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
5607 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
5608 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
5609 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
5610 is not a NONDEBUG_INSN_P.
5611 * ira-costs.c (scan_one_insn): Likewise.
5612 * jump.c (mark_all_labels): Likewise.
5613 (mark_jump_label_1): Likewise.
5614 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5615 * lra.c (get_insn_freq): Expect all insns reaching here to be in
5616 a basic block.
5617 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
5618 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
5619 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
5620 JUMP_TABLE_DATA_P insns.
5621 (calculate_elim_costs_all_insns): Likewise.
5622 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
5623 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
5624 (delete_output_reload): Code style fixups.
5625 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
5626 insn flags on this non-insn.
5627 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
5628 as scheduling barriers, for pre-change compatibility.
5629 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
5630 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
5631
5632 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
5633 redundant JUMP_TABLE_DATA_P test.
5634 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
5635 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5636 (frv_for_each_packet): Likewise.
5637 * config/i386/i386.c (min_insn_size): Likewise.
5638 (ix86_avoid_jump_mispredicts): Likewise.
5639 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5640 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
5641 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5642 (mips16_insn_length): Robustify.
5643 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
5644 (mips16_split_long_branches): Likewise.
5645 * config/pa/pa.c (pa_combine_instructions): Likewise.
5646 * config/rs6000/rs6000.c (get_next_active_insn): Treat
5647 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
5648 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
5649 as contributing to pool range lengths.
5650 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
5651 Remove redundant JUMP_TABLE_DATA_P test.
5652 (sh_loop_align): Likewise.
5653 (split_branches): Likewise.
5654 (sh_insn_length_adjustment): Likewise.
5655 * config/spu/spu.c (get_branch_target): Likewise.
5656
5657 2013-03-29 Jan Hubicka <jh@suse.cz>
5658
5659 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
5660 gcov streaming; stream hot bb threshold to ltrans.
5661 * predict.c (get_hot_bb_threshold): Break out from ....
5662 (maybe_hot_count_p): ... here.
5663 (set_hot_bb_threshold): New function.
5664 * lto-section-in.c (lto_section_name): Add profile.
5665 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
5666 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
5667 and data-streamer.h
5668 (histogram_entry): New structure.
5669 (histogram, histogram_pool): New global vars.
5670 (histogram_hash): New structure.
5671 (histogram_hash::hash): New method.
5672 (histogram_hash::equal): Likewise.
5673 (account_time_size): New function.
5674 (cmp_counts): New function.
5675 (dump_histogram): New function.
5676 (ipa_profile_generate_summary): New function.
5677 (ipa_profile_write_summary): New function.
5678 (ipa_profile_read_summary): New function.
5679 (ipa_profile): Decide on threshold.
5680 (pass_ipa_profile): Add ipa_profile_write_summary and
5681 ipa_profile_read_summary.
5682 * Makefile.in (ipa.o): Update dependencies.
5683 * lto-streamer.h (LTO_section_ipa_profile): New section.
5684
5685 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
5686
5687 * tree.h (VAR_P): New.
5688
5689 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
5690
5691 PR lto/56777
5692 * doc/invoke.texi ([-fwhole-program]): Fix typo.
5693
5694 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
5695
5696 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
5697 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5698 (control_flow_insn_p): Likewise.
5699 * cfgrtl.c (duplicate_insn_chain): Likewise.
5700 * final.c (get_attr_length_1): Likewise.
5701 (shorten_branches): Likewise.
5702 (final_scan_insn): Likewise.
5703 * function.c (instantiate_virtual_regs): Likewise.
5704 * gcse.c (insert_insn_end_basic_block): Likewise.
5705 * ira-costs.c (scan_one_insn): Likewise.
5706 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
5707 * lra.c (check_rtl): Likewise.
5708 * reload1.c (elimination_costs_in_insn): Likewise.
5709 * reorg.c (follow_jumps): Likewise.
5710
5711 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
5712 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
5713 (thumb_far_jump_used_p): Likewise.
5714 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
5715 (workaround_speculation): Likewise.
5716 (add_sched_insns_for_speculation): Likewise.
5717 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
5718 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
5719 (frv_for_each_packet): Likewise.
5720 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
5721 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
5722 (final_emit_insn_group_barriers): Likewise.
5723 * config/m32r/m32r.c (m32r_is_insn): Likewise.
5724 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
5725 (mips16_insn_length): Likewise.
5726 * config/pa/pa.c (pa_reorg): Likewise.
5727 (pa_combine_instructions): Likewise.
5728 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
5729 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
5730 (sh_reorg): Likewise.
5731 (split_branches): Likewise.
5732 * config/spu/spu.c (get_branch_target): Likewise.
5733
5734 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
5735 JUMP_TABLE_DATA_P.
5736
5737 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
5738
5739 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
5740 Fix declaration name.
5741
5742 2013-03-28 Lawrence Crowl <crowl@google.com>
5743
5744 * graphds.h (struct graph.indicies): Remove unused.
5745 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
5746 (SCOP_ORIGINAL_PDDRS): Remove unused.
5747 * sese.h (extern insert_loop_close_phis): Removed unused.
5748 (extern insert_guard_phis): Removed unused.
5749 (extern ivtype_map_elt_info): Removed unused.
5750 (new_ivtype_map_elt): Removed unused.
5751 * sese.c (ivtype_map_elt_info): Removed unused.
5752
5753 2013-03-28 Lawrence Crowl <crowl@google.com>
5754
5755 * Makefile.in: Add several missing include dependences.
5756 (DUMPFILE_H): New.
5757 (test-dump.o): New. This object is not added to any executable,
5758 but is present for ad-hoc testing.
5759 * bitmap.c
5760 (debug (const bitmap_head_def &)): New.
5761 (debug (const bitmap_head_def *)): New.
5762 * bitmap.h
5763 (extern debug (const bitmap_head_def &)): New.
5764 (extern debug (const bitmap_head_def *)): New.
5765 * cfg.c
5766 (debug (edge_def &)): New.
5767 (debug (edge_def *)): New.
5768 * cfghooks.c
5769 (debug (basic_block_def &)): New.
5770 (debug (basic_block_def *)): New.
5771 * dumpfile.h
5772 (dump_node (const_tree, int, FILE *)): Correct source file.
5773 * dwarf2out.c
5774 (debug (die_struct &)): New.
5775 (debug (die_struct *)): New.
5776 * dwarf2out.h
5777 (extern debug (die_struct &)): New.
5778 (extern debug (die_struct *)): New.
5779 * gimple-pretty-print.c
5780 (debug (gimple_statement_d &)): New.
5781 (debug (gimple_statement_d *)): New.
5782 * gimple-pretty-print.h
5783 (extern debug (gimple_statement_d &)): New.
5784 (extern debug (gimple_statement_d *)): New.
5785 * ira-build.c
5786 (debug (ira_allocno_copy &)): New.
5787 (debug (ira_allocno_copy *)): New.
5788 (debug (ira_allocno &)): New.
5789 (debug (ira_allocno *)): New.
5790 * ira-int.h
5791 (extern debug (ira_allocno_copy &)): New.
5792 (extern debug (ira_allocno_copy *)): New.
5793 (extern debug (ira_allocno &)): New.
5794 (extern debug (ira_allocno *)): New.
5795 * ira-lives.c
5796 (debug (live_range &)): New.
5797 (debug (live_range *)): New.
5798 * lra-int.h
5799 (debug (lra_live_range &)): New.
5800 (debug (lra_live_range *)): New.
5801 * lra-lives.c
5802 (debug (lra_live_range &)): New.
5803 (debug (lra_live_range *)): New.
5804 * omega.c
5805 (debug (omega_pb_d &)): New.
5806 (debug (omega_pb_d *)): New.
5807 * omega.h
5808 (extern debug (omega_pb_d &)): New.
5809 (extern debug (omega_pb_d *)): New.
5810 * print-rtl.c
5811 (debug (const rtx_def &)): New.
5812 (debug (const rtx_def *)): New.
5813 * print-tree.c
5814 (debug_tree (tree): Move within file.
5815 (debug_raw (const tree_node &)): New.
5816 (debug_raw (const tree_node *)): New.
5817 (dump_tree_via_hooks (const tree_node *, int)): New.
5818 (debug (const tree_node &)): New.
5819 (debug (const tree_node *)): New.
5820 (debug_verbose (const tree_node &)): New.
5821 (debug_verbose (const tree_node *)): New.
5822 (debug_head (const tree_node &)): New.
5823 (debug_head (const tree_node *)): New.
5824 (debug_body (const tree_node &)): New.
5825 (debug_body (const tree_node *)): New.
5826 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5827 (debug (vec<tree, va_gc> &)): New.
5828 (debug (vec<tree, va_gc> *)): New.
5829 * rtl.h
5830 (extern debug (const rtx_def &)): New.
5831 (extern debug (const rtx_def *)): New.
5832 * sbitmap.c
5833 (debug_raw (simple_bitmap_def &)): New.
5834 (debug_raw (simple_bitmap_def *)): New.
5835 (debug (simple_bitmap_def &)): New.
5836 (debug (simple_bitmap_def *)): New.
5837 * sbitmap.h
5838 (extern debug (simple_bitmap_def &)): New.
5839 (extern debug (simple_bitmap_def *)): New.
5840 (extern debug_raw (simple_bitmap_def &)): New.
5841 (extern debug_raw (simple_bitmap_def *)): New.
5842 * sel-sched-dump.c
5843 (debug (vinsn_def &)): New.
5844 (debug (vinsn_def *)): New.
5845 (debug_verbose (vinsn_def &)): New.
5846 (debug_verbose (vinsn_def *)): New.
5847 (debug (expr_def &)): New.
5848 (debug (expr_def *)): New.
5849 (debug_verbose (expr_def &)): New.
5850 (debug_verbose (expr_def *)): New.
5851 (debug (vec<rtx> &)): New.
5852 (debug (vec<rtx> *)): New.
5853 * sel-sched-dump.h
5854 (extern debug (vinsn_def &)): New.
5855 (extern debug (vinsn_def *)): New.
5856 (extern debug_verbose (vinsn_def &)): New.
5857 (extern debug_verbose (vinsn_def *)): New.
5858 (extern debug (expr_def &)): New.
5859 (extern debug (expr_def *)): New.
5860 (extern debug_verbose (expr_def &)): New.
5861 (extern debug_verbose (expr_def *)): New.
5862 (extern debug (vec<rtx> &)): New.
5863 (extern debug (vec<rtx> *)): New.
5864 * sel-sched-ir.h
5865 (_list_iter_cond_expr): Make inline instead of static.
5866 * sreal.c
5867 (debug (sreal &)): New.
5868 (debug (sreal *)): New.
5869 * sreal.h
5870 (extern debug (sreal &)): New.
5871 (extern debug (sreal *)): New.
5872 * tree.h
5873 (extern debug_raw (const tree_node &)): New.
5874 (extern debug_raw (const tree_node *)): New.
5875 (extern debug (const tree_node &)): New.
5876 (extern debug (const tree_node *)): New.
5877 (extern debug_verbose (const tree_node &)): New.
5878 (extern debug_verbose (const tree_node *)): New.
5879 (extern debug_head (const tree_node &)): New.
5880 (extern debug_head (const tree_node *)): New.
5881 (extern debug_body (const tree_node &)): New.
5882 (extern debug_body (const tree_node *)): New.
5883 (extern debug (vec<tree, va_gc> &)): New.
5884 (extern debug (vec<tree, va_gc> *)): New.
5885 * tree-cfg.c
5886 (debug (struct loop &)): New.
5887 (debug (struct loop *)): New.
5888 (debug_verbose (struct loop &)): New.
5889 (debug_verbose (struct loop *)): New.
5890 * tree-dump.c: Add header dependence.
5891 * tree-flow.h
5892 (extern debug (struct loop &)): New.
5893 (extern debug (struct loop *)): New.
5894 (extern debug_verbose (struct loop &)): New.
5895 (extern debug_verbose (struct loop *)): New.
5896 * tree-data-ref.c
5897 (debug (data_reference &)): New.
5898 (debug (data_reference *)): New.
5899 (debug (vec<data_reference_p> &)): New.
5900 (debug (vec<data_reference_p> *)): New.
5901 (debug (vec<ddr_p> &)): New.
5902 (debug (vec<ddr_p> *)): New.
5903 * tree-data-ref.h
5904 (extern debug (data_reference &)): New.
5905 (extern debug (data_reference *)): New.
5906 (extern debug (vec<data_reference_p> &)): New.
5907 (extern debug (vec<data_reference_p> *)): New.
5908 (extern debug (vec<ddr_p> &)): New.
5909 (extern debug (vec<ddr_p> *)): New.
5910 * tree-ssa-alias.c
5911 (debug (pt_solution &)): New.
5912 (debug (pt_solution *)): New.
5913 * tree-ssa-alias.h
5914 (extern debug (pt_solution &)): New.
5915 (extern debug (pt_solution *)): New.
5916 * tree-ssa-alias.c
5917 (debug (_var_map &)): New.
5918 (debug (_var_map *)): New.
5919 (debug (tree_live_info_d &)): New.
5920 (debug (tree_live_info_d *)): New.
5921 * tree-ssa-alias.h
5922 (extern debug (_var_map &)): New.
5923 (extern debug (_var_map *)): New.
5924 (extern debug (tree_live_info_d &)): New.
5925 (extern debug (tree_live_info_d *)): New.
5926
5927 2013-03-28 Jan Hubicka <jh@suse.cz>
5928
5929 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5930
5931 2013-03-28 Ian Bolton <ian.bolton@arm.com>
5932
5933 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5934 record only when desired or required.
5935
5936 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
5937
5938 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5939 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5940
5941 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5942
5943 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5944 (*andsi3_compare0_uxtw): New pattern.
5945 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5946 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5947
5948 2013-03-28 Jan Hubicka <jh@suse.cz>
5949
5950 * data-streamer-in.c (streamer_read_gcov_count): New function.
5951 * gimple-streamer-out.c: Include value-prof.h.
5952 (output_gimple_stmt): Output histogram.
5953 (output_bb): Use streamer_write_gcov_count.
5954 * value-prof.c: Include data-streamer.h
5955 (dump_histogram_value): Add HIST_TYPE_MAX.
5956 (stream_out_histogram_value): New function.
5957 (stream_in_histogram_value): New function.
5958 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5959 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5960 * data-streamer-out.c (streamer_write_gcov_count): New function.
5961 (streamer_write_gcov_count_stream): New function.
5962 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5963 (lto_output_node): Likewise.
5964 (input_node, input_edge): Likewise.
5965 * lto-streamer-out.c (output_cfg): Update streaming.
5966 * lto-streamer-in.c (input_cfg): Likewise.
5967 * data-streamer.h (streamer_write_gcov_count,
5968 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5969 * gimple-streamer-in.c: Include value-prof.h
5970 (input_gimple_stmt): Input histograms.
5971 (input_bb): Update profile streaming.
5972
5973 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5974
5975 * genmodes.c (emit_max_int): New function.
5976 (emit_insn_modes_h): Added call to emit_max_function.
5977 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5978 Added doc.
5979 * machmode.def: Fixed comment.
5980
5981 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5982
5983 * combine.c (try_combine): Removed useless assert.
5984 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5985
5986 2013-03-28 Marek Polacek <polacek@redhat.com>
5987 Richard Biener <rguenther@suse.de>
5988
5989 PR tree-optimization/56695
5990 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5991 build signed result of a vector comparison.
5992 * tree-cfg.c (verify_gimple_comparison): Check that a result
5993 of a vector comparison has signed type.
5994
5995 2013-03-28 Richard Biener <rguenther@suse.de>
5996
5997 PR tree-optimization/37021
5998 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5999 do not restrict gaps between groups.
6000 * tree-vect-stmts.c (vectorizable_load): Properly account for
6001 a gap between groups.
6002
6003 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6004
6005 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6006 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6007 is not enabled.
6008
6009 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6010
6011 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6012 * doc/extend.texi (Named Address Spaces): Ditto.
6013 (Variable Attributes): Ditto.
6014
6015 2013-03-27 Kai Tietz <ktietz@redhat.com>
6016
6017 * config.build: Add support for cygwin x64 target.
6018 * config.gcc: Likewise.
6019 * config.host: Likewise.
6020 * configure.ac: Likewise
6021 * configure: Regenerated.
6022
6023 2013-03-27 Kai Tietz <ktietz@redhat.com>
6024
6025 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6026 * config/i386/t-cygwin-w64: New file.
6027 * config/i386/cygwin-w64.h: New file.
6028 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6029 and add support for x64-cygwin target.
6030 (CPP_SPEC): Likewise.
6031 (CXX_WRAP_SPEC_LIST): Undefine before define.
6032 (LIBGCJ_SONAME): Use 15 as version.
6033
6034 2013-03-27 Richard Biener <rguenther@suse.de>
6035
6036 PR tree-optimization/56716
6037 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6038 dumping for ref nodes.
6039
6040 2013-03-27 Martin Jambor <mjambor@suse.cz>
6041
6042 PR tree-optimization/55334
6043 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6044 restricted pointers to arrays.
6045
6046 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6047
6048 * Makefile.in (.SUFFIXES): Add .cc.
6049 (.c.o): Apply same recipe for implicit rule .cc.o.
6050
6051 2013-03-27 Richard Biener <rguenther@suse.de>
6052
6053 PR tree-optimization/37021
6054 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6055 REALPART/IMAGPART_EXPRs around the supported refs.
6056 * tree-ssa-structalias.c (find_func_aliases): Assume that
6057 floating-point values are not used to transfer pointers.
6058
6059 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6060
6061 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6062 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6063 * doc/tm.texi: Regenerate.
6064 * targhooks.h (default_has_ifunc_p): New.
6065 * targhooks.c (default_has_ifunc_p): Ditto.
6066 * config/linux-protos.h: New file.
6067 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6068 this hook for linux which disables support of indirect functions in
6069 android.
6070 * config/linux-android.c: New file.
6071 * config/t-linux-android.c: Ditto.
6072 * config.gcc: Added new object file linux-android.o.
6073 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6074 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6075 * varasm.c (do_assemble_alias): Likewise.
6076 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6077 doesn't support indirect functions.
6078 * configure: Regenerate.
6079
6080 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6081
6082 PR target/56102
6083 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6084 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6085 mult-word mode.
6086
6087 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6088
6089 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6090
6091 2013-03-27 Terry Guo <terry.guo@arm.com>
6092
6093 * config/arm/arm-cores.def: Added core cortex-r7.
6094 * config/arm/arm-tune.md: Regenerated.
6095 * config/arm/arm-tables.opt: Regenerated.
6096 * doc/invoke.texi: Added entry for core cortex-r7.
6097
6098 2013-03-27 Walter Lee <walt@tilera.com>
6099
6100 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6101 double-decrement of next_scratch_regno.
6102
6103 2013-03-27 Walter Lee <walt@tilera.com>
6104
6105 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6106 input operands.
6107 (insn_v1mulus): Ditto.
6108 (insn_v2muls): Ditto.
6109
6110 2013-03-27 Walter Lee <walt@tilera.com>
6111
6112 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6113 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6114
6115 2013-03-27 Walter Lee <walt@tilera.com>
6116
6117 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6118 (*sibcall_value): Ditto.
6119
6120 2013-03-27 Walter Lee <walt@tilera.com>
6121
6122 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6123 (insn_mnz_v8qi): ... this ...
6124 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6125 vector equivalent.
6126 (insn_v<n>mnz): Replaced by ...
6127 (insn_v1mnz): ... this ...
6128 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6129 equivalent.
6130 (insn_mz_<mode>): Replaced by ...
6131 (insn_mz_v8qi): ... this ...
6132 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6133 vector equivalent.
6134 (insn_v<n>mz): Replaced by ...
6135 (insn_v1mz): ... this ...
6136 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6137 equivalent.
6138
6139 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6140
6141 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6142
6143 2013-03-26 Roland McGrath <mcgrathr@google.com>
6144
6145 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6146 than fprintf with a non-constant, non-format string.
6147
6148 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6149
6150 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6151 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6152 operand 0 predicate.
6153 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6154 attribute. Use general_x64nomem_operand as operand 1 predicate.
6155 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6156 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6157 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6158 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6159 (mov<mode>_insv_1): Remove expander. Merge insn with
6160 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6161 Use general_x64nomem_operand as operand 1 predicate.
6162 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6163 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6164 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6165 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6166 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6167 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6168 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6169 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6170 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6171 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6172 (general_x64nomem_operand): Ditto.
6173
6174 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6175
6176 * config/rtems.opt: Add -pthread option.
6177
6178 2013-03-26 Richard Biener <rguenther@suse.de>
6179
6180 * alias.c (find_base_term): Avoid redundant and not used recursion.
6181 (base_alias_check): Get the initial base term from the caller.
6182 (true_dependence_1): Compute and pass base terms to base_alias_check.
6183 (write_dependence_p): Likewise.
6184 (may_alias_p): Likewise.
6185
6186 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6187
6188 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6189 PC-relative load in SI modes and above only.
6190
6191 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6192
6193 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6194 * config/arm/iwmmxt.md (WCGR0): Update.
6195 (WCGR1, WCGR2, WCGR3): Likewise.
6196
6197 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6198
6199 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6200 Use x64 and nox64 isa attributes.
6201
6202 2013-03-26 Richard Biener <rguenther@suse.de>
6203
6204 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6205 alignment computations and rely on get_object_alignment_1
6206 for the !TYPE_P case.
6207 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6208
6209 2013-03-26 Walter Lee <walt@tilera.com>
6210
6211 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6212 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6213
6214 2013-03-25 Jeff Law <law@redhat.com>
6215
6216 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6217 check for INTEGRAL_TYPE_P that was missing due to checking in
6218 wrong version of prior patch.
6219
6220 2013-03-25 Walter Lee <walt@tilera.com>
6221
6222 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6223 TILEGX_INSN_SHUFFLEBYTES1.
6224 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6225 shufflebytes1.
6226 (tilegx_builtins): Ditto.
6227 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6228
6229 2013-03-25 Walter Lee <walt@tilera.com>
6230
6231 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6232 (floatunssisf2): New pattern.
6233 (floatsidf2): New pattern.
6234 (floatunssidf2): New pattern.
6235
6236 2013-03-25 Walter Lee <walt@tilera.com>
6237
6238 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6239 tests for constraint J, K, N, P.
6240
6241 2013-03-25 Walter Lee <walt@tilera.com>
6242
6243 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6244 Use indirect/pcrel encoding.
6245 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6246 Ditto.
6247
6248 2013-03-25 Steve Ellcey <sellcey@mips.com>
6249
6250 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6251 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6252 * config/mips/mips.c (mips_option_override): Set IMADD default.
6253 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6254 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6255 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6256 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6257 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6258
6259 2013-03-25 Jeff Law <law@redhat.com>
6260
6261 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6262 slightly to avoid creating and folding useless trees. Simplify
6263 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6264
6265 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6266
6267 * config/i386/i386.md (*zero_extendsidi2): Merge with
6268 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6269 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6270 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6271 targets. Clarify comment.
6272
6273 2013-03-25 Martin Jambor <mjambor@suse.cz>
6274
6275 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6276 pass-through jump functions differently.
6277 (ipa_read_jump_function): Likewise. Also use setter functions to set
6278 up jump functions.
6279
6280 2013-03-25 Martin Jambor <mjambor@suse.cz>
6281
6282 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6283 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6284 process it.
6285 (ipa_get_indirect_edge_target): New function.
6286 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6287 ipa_get_indirect_edge_target. Update all callers.
6288 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6289 ipa_get_indirect_edge_target_1 instead of calling
6290 ipa_get_indirect_edge_target.
6291 (create_specialized_node): Pass aggvlas to
6292 ipcp_discover_new_direct_edges.
6293
6294 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6295
6296 * config/arm/arm.md (f_sels, f_seld): New types.
6297 (*cmov<mode>): New pattern.
6298 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6299 predicate.
6300
6301 2013-03-25 Kai Tietz <ktietz@redhat.com>
6302
6303 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6304 POSIX-printf for mingw-hosted builds.
6305
6306 2013-03-25 Richard Biener <rguenther@suse.de>
6307
6308 PR middle-end/56694
6309 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6310 must-not-throw stmt location.
6311
6312 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6313
6314 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6315 Emit load-acquire versions when acq is true.
6316 (arm_emit_store_exclusive): Add rel parameter.
6317 Emit store-release versions when rel is true.
6318 (arm_split_compare_and_swap): Use acquire-release instructions
6319 instead.
6320 of barriers when appropriate.
6321 (arm_split_atomic_op): Likewise.
6322 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6323 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6324 (VUNSPEC_SLX): Likewise.
6325 (VUNSPEC_LDA): Likewise.
6326 (VUNSPEC_STL): Likewise.
6327 * config/arm/sync.md (atomic_load<mode>): New pattern.
6328 (atomic_store<mode>): Likewise.
6329 (arm_load_acquire_exclusive<mode>): Likewise.
6330 (arm_load_acquire_exclusivesi): Likewise.
6331 (arm_load_acquire_exclusivedi): Likewise.
6332 (arm_store_release_exclusive<mode>): Likewise.
6333
6334 2013-03-25 Catherine Moore <clm@codesourcery.com>
6335
6336 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6337 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6338 * config/mip/predicates.md (lwsp_swsp_operand,
6339 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6340 sb16_operand, db4_operand, db7_operand, ib3_operand,
6341 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6342 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6343 andi16_operand): New predicates.
6344 * config/mips/mips.md (compression): New attribute.
6345 (enabled): New attribute.
6346 (length): Consider compression in computing length.
6347 (shift_compression): New code attribute.
6348 (*add<mode>3): New operands. Record compression.
6349 (sub<mode>3): Likewise.
6350 (one_cmpl<mode>2): Likewise.
6351 (*and<mode>3): Likewise.
6352 (*ior<mode>3): Likewise.
6353 (unnamed pattern for xor): Likewise.
6354 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6355 (*<optab><mode>3): Likewise.
6356 (*mov<mode>_internal: Likewise.
6357 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6358 (mips_unsigned_immediate_p): New.
6359 (umips_lwsp_swsp_address_p): New.
6360 (m16_based_address_p): New.
6361 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6362 (mips_unsigned_immediate_p): New prototype.
6363 (lwsp_swsp_address_p): New prototype.
6364 (m16_based_address_p): New prototype.
6365 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6366 (mips_signed_immediate_p): New function.
6367 (m16_based_address_p): New function.
6368 (lwsp_swsp_address_p): New function.
6369 (mips_print_operand_punctuation): Recognize short delay slot insns
6370 for microMIPS.add<mode>3"
6371
6372 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6373
6374 PR target/56720
6375 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6376 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6377
6378 2013-03-25 Richard Biener <rguenther@suse.de>
6379
6380 PR tree-optimization/56689
6381 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6382 any edge.
6383
6384 2013-03-25 Richard Biener <rguenther@suse.de>
6385
6386 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6387 of bitmap.
6388 (memory_references): Likewise.
6389 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6390 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6391 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6392 (gather_mem_refs_in_loops): Fold into ...
6393 (analyze_memory_references): ... this. Move initialization
6394 to tree_ssa_lim_initialize.
6395 (fill_always_executed_in): Rename to ...
6396 (fill_always_executed_in_1): ... this.
6397 (fill_always_executed_in): Move contains_call computation to
6398 this new function from ...
6399 (tree_ssa_lim_initialize): ... here.
6400 (tree_ssa_lim): Call fill_always_executed_in.
6401
6402 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6403
6404 * postreload.c (reload_combine): Fix code detecting returns.
6405
6406 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6407
6408 * function.c (emit_use_return_register_into_block): On cc0 targets,
6409 do not emit the sequence between cc0 setter and user.
6410
6411 2013-03-25 Kai Tietz <ktietz@redhat.com>
6412
6413 * config/i386/predicates.md (local_symbolic_operand): Interpret
6414 dll-imported symbols as none-local.
6415
6416 2013-03-25 Richard Biener <rguenther@suse.de>
6417
6418 * tree-ssa-loop-im.c (struct depend): Remove.
6419 (struct lim_aux_data): Make depends a vec of gimples.
6420 (free_lim_aux_data): Adjust.
6421 (add_dependency): Likewise.
6422 (set_level): Likewise.
6423
6424 2013-03-25 Richard Biener <rguenther@suse.de>
6425
6426 PR middle-end/56434
6427 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6428 the pointer returned by calls with ECF_MALLOC set.
6429
6430 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6431
6432 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6433
6434 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6435
6436 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6437 using MMXMODE mode iterator.
6438 (*move<mode>_internal): Merge with *movv2sf_internal and
6439 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6440
6441 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6442
6443 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6444 (record_last_mem_set_info): Likewise.
6445
6446 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6447 of XNEWVEC followed by memset.
6448 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6449
6450 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6451
6452 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6453 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6454 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6455 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6456 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
6457 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
6458 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
6459 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
6460 BARRIER_P instead of GET_CODE.
6461
6462 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6463
6464 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
6465 inaccuracy in the probing code.
6466
6467 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
6468 (ctrapdi4): Likewise.
6469
6470 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6471
6472 * calls.c (expand_call): Add missing guard to code handling return
6473 of non-BLKmode structures in MSB.
6474 * function.c (expand_function_end): Likewise.
6475
6476 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
6477
6478 * combine.c (try_combine): Adjust comment. Do not add the set of
6479 insn #0 if the destination indirectly is set or dies in insn #2.
6480 Tidy up code to distribute a new note.
6481
6482 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6483
6484 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
6485 also for alternatives 16 and 17.
6486
6487 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
6488
6489 * config/i386/sse.md (*mov<mode>_internal): Merge with
6490 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
6491 Emit insn template depending on type attribute. Use
6492 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6493 movd instead of movq mnemonic for interunit moves. Rewrite mode
6494 attribute calculation. Remove unit attribute calculation.
6495 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
6496 Set prefix_data16 attribute for DImode ssemov types.
6497 Use Ym instead of y for SSE-MMX conversion alternatives.
6498 Reorder operand constraints.
6499
6500 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
6501
6502 * df.h (df_insn_delete): Adjust prototype.
6503 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
6504 and let it decide whether mark the basic block dirty.
6505 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
6506 * df-scan.c (df_insn_info_delete): New helper function, split
6507 off from df_insn_delete.
6508 (df_scan_free_bb_info): Use it.
6509 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
6510 Likewise.
6511 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
6512 that the insn is actually an insn and it has a non-NULL basic block.
6513 Do not mark basic block dirty if only deleting a DEBUG_INSN.
6514
6515 2013-03-22 Richard Biener <rguenther@suse.de>
6516
6517 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
6518 dep_ref members.
6519 (mem_ref_alloc): Do not allocate them.
6520 (refs_independent_p): Do not query or maintain a cache.
6521
6522 2013-03-22 Richard Biener <rguenther@suse.de>
6523
6524 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
6525 (gather_mem_refs_in_loops): Do not compute it.
6526 (analyze_memory_references): Do not allocate it.
6527 (tree_ssa_lim_finalize): Do not free it.
6528 (for_all_locs_in_loop): Do not query all_refs_in_loop.
6529
6530 2013-03-22 Richard Biener <rguenther@suse.de>
6531
6532 * is-a.h (as_a): Use gcc_checking_assert.
6533
6534 2013-03-22 Ian Bolton <ian.bolton@arm.com>
6535
6536 * config/aarch64/aarch64.c (aarch64_print_operand): New
6537 format specifier for printing a constant in hex.
6538 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
6539 format specifier for printing second operand.
6540
6541 2013-03-22 Richard Biener <rguenther@suse.de>
6542
6543 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
6544 bitmaps.
6545 (gather_mem_refs_in_loops): Perform store accumulation here.
6546 (create_vop_ref_mapping_loop): Remove.
6547 (create_vop_ref_mapping): Likewise.
6548 (analyze_memory_references): Initialize refs_stored_in_loop.
6549 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
6550 (record_indep_loop): Remove.
6551 (record_dep_loop): New function.
6552 (ref_indep_loop_p_1): Adjust to only walk over references
6553 in the loop, not its subloops.
6554 (ref_indep_loop_p): Rename to ...
6555 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
6556 maintaining a more fine-grained cache.
6557 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
6558 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
6559
6560 2013-03-22 Richard Biener <rguenther@suse.de>
6561
6562 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
6563 (struct mem_ref): Make accesses_in_loop a vec of a vec of
6564 aggregate mem_ref_loc.
6565 (free_mem_ref_locs): Inline into ...
6566 (memref_free): ... this and adjust.
6567 (mem_ref_alloc): Adjust.
6568 (mem_ref_locs_alloc): Remove.
6569 (record_mem_ref_loc): Adjust.
6570 (get_all_locs_in_loop): Rewrite into ...
6571 (for_all_locs_in_loop): ... this iterator.
6572 (rewrite_mem_ref_loc): New functor.
6573 (rewrite_mem_refs): Use for_all_locs_in_loop.
6574 (sm_set_flag_if_changed): New functor.
6575 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
6576 (ref_always_accessed): New functor.
6577 (ref_always_accessed_p): Use for_all_locs_in_loop.
6578
6579 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6580
6581 * tree-pass.h (PROP_gimple_lvec): New.
6582 * passes.c (dump_properties): Handle PROP_gimple_lvec.
6583 (init_optimization_passes): Move pass_lower_vector.
6584 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
6585 PROP_gimple_lvec.
6586 (pass_lower_vector): Provide PROP_gimple_lvec.
6587 (pass_lower_vector_ssa): Likewise.
6588 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
6589
6590 2013-03-21 Mark Wielaard <mjw@redhat.com>
6591
6592 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
6593
6594 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6595
6596 * config/i386/i386.md (*movdi_internal): Disparage slightly
6597 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
6598 conversion alternatives.
6599
6600 2013-03-21 Jakub Jelinek <jakub@redhat.com>
6601
6602 PR middle-end/48087
6603 * diagnostic.def (DK_WERROR): New kind.
6604 * diagnostic.h (werrorcount): Define.
6605 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
6606 promoted to DK_ERROR, increment DK_WERROR counter instead of
6607 DK_ERROR counter.
6608 * toplev.c (toplev_main): Call print_ignored_options even if
6609 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
6610 even if just werrorcount is non-zero.
6611
6612 PR debug/55608
6613 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
6614 on failure.
6615 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
6616 (string_cst_pool_decl): New function.
6617 (optimize_one_addr_into_implicit_ptr): New function.
6618 (resolve_addr_in_expr): Optimize DWARF location expression
6619 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
6620 which doesn't live in memory, but has DW_AT_location or
6621 DW_AT_const_value, or refers to a string literal, into
6622 DW_OP_GNU_implicit_pointer.
6623 (optimize_location_into_implicit_ptr): New function.
6624 (resolve_addr): If removing DW_AT_location of a variable because
6625 it was DW_OP_addr of address of the variable, but the variable doesn't
6626 live in memory, try to emit const value attribute for the initializer.
6627
6628 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6629
6630 * tree.h (VECTOR_TYPE_P): New macro.
6631 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
6632 TYPE_MODE): Use it.
6633 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
6634 VEC_COND_EXPR cannot be lvalues.
6635 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
6636
6637 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
6638
6639 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
6640 Restrict the transformation to equal modes.
6641
6642 2013-03-21 Richard Biener <rguenther@suse.de>
6643
6644 PR tree-optimization/39326
6645 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
6646 (MEM_ANALYZABLE): Adjust.
6647 (record_mem_ref_loc): Move bitmap ops ...
6648 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
6649 unanalyzable refs, do not record locations for it.
6650 (analyze_memory_references): Allocate ref zero as shared
6651 unanalyzable ref.
6652 (refs_independent_p): Do not test for unanalyzed mems here.
6653 (ref_indep_loop_p_1): Special-case disambiguation against
6654 the unanalyzed ref.
6655 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
6656
6657 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
6658
6659 * config/arm/arm-protos.h (tune_params): Add
6660 prefer_neon_for_64bits field.
6661 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
6662 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
6663 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6664 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6665 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
6666 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6667 (arm_option_override): Handle -mneon-for-64bits new option.
6668 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
6669 (prefer_neon_for_64bits): Declare new variable.
6670 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
6671 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
6672 (arch_enabled): Handle new arch types. Remove support for onlya8
6673 and nota8.
6674 (one_cmpldi2): Use new arch names.
6675 (zero_extend<mode>di2, extend<mode>di2): Ditto.
6676 * config/arm/arm.opt (mneon-for-64bits): Add option.
6677 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
6678 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
6679 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
6680 of onlya8.
6681 * doc/invoke.texi (-mneon-for-64bits): Document.
6682
6683 2013-03-21 Richard Biener <rguenther@suse.de>
6684
6685 PR tree-optimization/39326
6686 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
6687 (sort_bbs_in_loop_postorder_cmp): New function.
6688 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
6689
6690 2013-03-21 Richard Biener <rguenther@suse.de>
6691
6692 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
6693 (vect_insert_into_interleaving_chain): Likewise.
6694 (vect_drs_dependent_in_basic_block): Inline ...
6695 (vect_slp_analyze_data_ref_dependence): ... here. New function,
6696 split out from ...
6697 (vect_analyze_data_ref_dependence): ... here. Simplify.
6698 (vect_check_interleaving): Simplify.
6699 (vect_analyze_data_ref_dependences): Likewise. Split out ...
6700 (vect_slp_analyze_data_ref_dependences): ... this new function.
6701 (dr_group_sort_cmp): New function.
6702 (vect_analyze_data_ref_accesses): Compute data-reference groups
6703 here instead of in vect_analyze_data_ref_dependence. Use
6704 a more efficient algorithm.
6705 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
6706 vect_slp_analyze_data_ref_dependences. Call
6707 vect_analyze_data_ref_accesses earlier.
6708 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6709 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
6710 (vect_slp_analyze_data_ref_dependences): New prototype.
6711
6712 2013-03-21 Richard Biener <rguenther@suse.de>
6713
6714 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
6715 ref is stored in the loop.
6716 (find_refs_for_sm): Walk only over all stores.
6717 (store_motion_loop): Allocate from lim_bitmap_obstack.
6718 (store_motion): Likewise.
6719
6720 2013-03-21 Richard Biener <rguenther@suse.de>
6721
6722 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
6723 Update virtual SSA form.
6724
6725 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6726
6727 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
6728 * configure: Regenerate.
6729 * config.in: Regenerate.
6730 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
6731 if !HAVE_LD_EH_FRAME_CIEV3.
6732
6733 2013-03-21 Richard Biener <rguenther@suse.de>
6734
6735 * tree-cfg.c (verify_expr_no_block): New function.
6736 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
6737 nor DECL_VALUE_EXPR have locations with associated blocks.
6738 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
6739 (clear_unused_block_pointer): Remove code dealing with
6740 blocks in DECL_DEBUG_EXPR locations.
6741
6742 2013-03-21 Richard Biener <rguenther@suse.de>
6743
6744 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
6745 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
6746 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
6747 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
6748 instead of DECL_DEBUG_EXPR_IS_FROM.
6749 * gimplify.c (gimplify_modify_expr): Likewise.
6750 * tree-cfg.c (verify_expr_location_1): Likewise.
6751 * tree-complex.c (create_one_component_var): Likewise.
6752 * tree-sra.c (create_access_replacement): Likewise.
6753 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
6754 (clear_unused_block_pointer): Likewise.
6755 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
6756 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6757 * var-tracking.c (var_debug_decl): Likewise.
6758 (track_expr_p): Likewise.
6759 * tree-inline.c (add_local_variables): Likewise. Set
6760 DECL_HAS_DEBUG_EXPR_P after copying it.
6761 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
6762 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
6763
6764 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
6765
6766 PR bootstrap/56656
6767 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
6768 * configure: Regenerate.
6769 * config.in: Regenerate.
6770 * config/i386/i386.md (*movdf_internal): Use
6771 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
6772 movd instead of movq mnemonic for interunit moves.
6773 (*movdi_internal): Ditto.
6774
6775 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6776
6777 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
6778 (abd<mode>_3): New pattern.
6779 (aba<mode>_3): New pattern.
6780 (fabd<mode>_3): New pattern.
6781
6782 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6783
6784 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6785 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6786 occurrence of REGISTER_PREFIX as its empty string.
6787
6788 2013-03-20 Jeff Law <law@redhat.com>
6789
6790 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6791 addititional equivalences for equality comparisons between an SSA_NAME
6792 and a constant where the SSA_NAME was set from a widening conversion.
6793
6794 2013-03-20 Walter Lee <walt@tilera.com>
6795
6796 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6797
6798 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6799
6800 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6801 depending on type attribute.
6802 (*movti_internal): Ditto.
6803 (*movtf_internal): Ditto.
6804 (*movxf_internal): Ditto.
6805 (*movdf_internal): Ditto.
6806 (*movsf_internal): Ditto.
6807
6808 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6809
6810 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6811 maybe_vex for sselog1 and ssemov types.
6812 (*movdi_internal): Reorder operand constraints.
6813 (*movsi_internal): Ditto. Set prefix attribute to
6814 maybe_vex for sselog1 and ssemov types.
6815 (*movtf_internal): Set prefix attribute to maybe_vex
6816 for sselog1 and ssemov types.
6817 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6818 DImode ssemov types. Reorder operand constraints.
6819 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6820 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6821 attribute for SImode ssemov types. Reorder operand constraints.
6822
6823 2013-03-20 Martin Jambor <mjambor@suse.cz>
6824
6825 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6826 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6827
6828 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6829
6830 * config/rs6000/predicates.md (indexed_address, update_address_mem
6831 update_indexed_address_mem): New predicates.
6832 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6833 attribute for load/store instructions.
6834 * config/rs6000/dfp.md (movsd_store): Likewise.
6835 (movsd_load): Likewise.
6836 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6837 (unnamed HI->DI extend define_insn): Likewise.
6838 (unnamed SI->DI extend define_insn): Likewise.
6839 (unnamed QI->SI extend define_insn): Likewise.
6840 (unnamed QI->HI extend define_insn): Likewise.
6841 (unnamed HI->SI extend define_insn): Likewise.
6842 (unnamed HI->SI extend define_insn): Likewise.
6843 (extendsfdf2_fpr): Likewise.
6844 (movsi_internal1): Likewise.
6845 (movsi_internal1_single): Likewise.
6846 (movhi_internal): Likewise.
6847 (movqi_internal): Likewise.
6848 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6849 attribute for load/store instructions.
6850 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6851 instructions.
6852 (mov<mode>_softfloat): Likewise.
6853 (mov<mode>_hardfloat32): Likewise.
6854 (mov<mode>_hardfloat64): Likewise.
6855 (mov<mode>_softfloat64): Likewise.
6856 (movdi_internal32): Likewise.
6857 (movdi_internal64): Likewise.
6858 (probe_stack_<mode>): Likewise.
6859
6860 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6861
6862 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6863 floating point, and decimal floating point to reload iterator.
6864
6865 * config/rs6000/constraints.md (wl constraint): New constraints to
6866 return FLOAT_REGS if certain options are used to reduce the number
6867 of separate patterns that exist in the file.
6868 (wx constraint): Likewise.
6869 (wz constraint): Likewise.
6870
6871 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6872 -mdebug=reg, print wg, wl, wx, and wz constraints.
6873 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6874 Initialize the reload functions for 64-bit binary/decimal floating
6875 point types.
6876 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6877 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6878 create the buffer on the stack to overcome not having a 32-bit
6879 load and store.
6880 (rs6000_emit_move): Likewise.
6881 (rs6000_secondary_memory_needed_rtx): Likewise.
6882 (rs6000_alloc_sdmode_stack_slot): Likewise.
6883 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6884 via xxlxor, just like DFmode 0.0.
6885
6886 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6887 define as 1 if we are running on a power7 or newer.
6888 (enum r6000_reg_class_enum): Add new constraints.
6889
6890 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6891 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6892 with other moves by using conditional constraits (wg). Use LFIWZX
6893 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
6894 (movsd splitter): Likewise.
6895 (movsd_hardfloat): Likewise.
6896 (movsd_softfloat): Likewise.
6897
6898 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6899 binary and decimal floating point moves.
6900 (fmove_ok): New attributes to combine binary and decimal floating
6901 point moves, and to combine power6x (mfpgpr) moves along normal
6902 floating moves.
6903 (real_value_to_target): Likewise.
6904 (f32_lr): Likewise.
6905 (f32_lm): Likewise.
6906 (f32_li): Likewise.
6907 (f32_sr): Likewise.
6908 (f32_sm): Likewise.
6909 (f32_si): Likewise.
6910 (movsf): Combine binary and decimal floating point moves. Combine
6911 power6x (mfpgpr) moves with other moves by using conditional
6912 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
6913 (mov<mode> for SFmode/SDmode); Likewise.
6914 (SFmode/SDmode splitters): Likewise.
6915 (movsf_hardfloat): Likewise.
6916 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6917 (movsf_softfloat): Likewise.
6918 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6919
6920 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6921 wx and wz constraints.
6922
6923 * config/rs6000/constraints.md (wg constraint): New constraint to
6924 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6925
6926 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6927 constraint.
6928
6929 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6930 -mdebug=reg, print wg, wl, wx, and wz constraints.
6931 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6932 Initialize the reload functions for 64-bit binary/decimal floating
6933 point types.
6934 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6935 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6936 create the buffer on the stack to overcome not having a 32-bit
6937 load and store.
6938 (rs6000_emit_move): Likewise.
6939 (rs6000_secondary_memory_needed_rtx): Likewise.
6940 (rs6000_alloc_sdmode_stack_slot): Likewise.
6941 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6942 via xxlxor, just like DFmode 0.0.
6943
6944 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6945 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6946 with other moves by using conditional constraits (wg). Use LFIWZX
6947 and STFIWX for loading SDmode on power7.
6948 (movdd splitters): Likewise.
6949 (movdd_hardfloat32): Likewise.
6950 (movdd_softfloat32): Likewise.
6951 (movdd_hardfloat64_mfpgpr): Likewise.
6952 (movdd_hardfloat64): Likewise.
6953 (movdd_softfloat64): Likewise.
6954
6955 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6956 64-bit binary and decimal floating point moves.
6957 (FMOVE64X): Likewise.
6958 (movdf): Combine 64-bit binary and decimal floating point moves.
6959 Combine power6x (mfpgpr) moves with other moves by using
6960 conditional constraits (wg).
6961 (mov<mode> for DFmode/DDmode): Likewise.
6962 (DFmode/DDmode splitters): Likewise.
6963 (movdf_hardfloat32): Likewise.
6964 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6965 (movdf_softfloat32): Likewise.
6966 (movdf_hardfloat64_mfpgpr): Likewise.
6967 (movdf_hardfloat64): Likewise.
6968 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6969 (movdf_softfloat64): Likewise.
6970 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6971 (reload_<mode>_load): Move to later in the file so they aren't in
6972 the middle of the floating point move insns.
6973 (reload_<mode>_store): Likewise.
6974
6975 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6976 constraint.
6977
6978 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6979 constraint if -mdebug=reg.
6980 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6981 Enable using dd reload support if needed.
6982
6983 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6984 binary and decimal floating point moves in rs6000.md.
6985 (movtd_internal): Likewise.
6986
6987 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6988 decimal floating point moves.
6989 (movtf): Likewise.
6990 (movtf_internal): Likewise.
6991 (mov<mode>_internal, TDmode/TFmode): Likewise.
6992 (movtf_softfloat): Likewise.
6993 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6994
6995 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6996 movdi_internal64, using wg constraint for move direct operations.
6997 (movdi_internal64): Likewise.
6998
6999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7000 MODES_TIEABLE_P for selected modes. Print the numerical value of
7001 the various virtual registers. Use GPR/FPR first/last values,
7002 instead of hard coding the register numbers. Print which modes
7003 have reload functions registered.
7004 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7005 settings before/after setting cpu, target and subtarget settings.
7006 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7007 and for secondary reload failures in rs6000_secondary_reload_inner.
7008 (rs6000_secondary_reload_fail): Likewise.
7009 (rs6000_secondary_reload_inner): Likewise.
7010
7011 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7012 macros for first/last GPR and FPR registers.
7013 (LAST_GPR_REGNO): Likewise.
7014 (FIRST_FPR_REGNO): Likewise.
7015 (LAST_FPR_REGNO): Likewise.
7016
7017 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7018 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7019 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7020 (vcond<mode><mode>): Likewise.
7021 (vcondu<mode><mode>): Likewise.
7022 (vector_gtu<mode>): Likewise.
7023 (vector_gte<mode>): Likewise.
7024 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7025 to prevent the compiler from converting DImode operations to TImode.
7026 (ior<mode>3): Likewise.
7027 (and<mode>3): Likewise.
7028 (one_cmpl<mode>2): Likewise.
7029 (nor<mode>3): Likewise.
7030 (andc<mode>3): Likewise.
7031
7032 * config/rs6000/constraints.md (wt constraint): New constraint
7033 that returns VSX_REGS if TImode is allowed in VSX registers.
7034
7035 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7036 constant under VSX.
7037
7038 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7039 similar to TImode, but it is restricted to being in the GPRs.
7040
7041 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7042 TImode to occupy a single VSX register.
7043
7044 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7045 -mvsx-timode for power7/power8.
7046 (power7 cpu): Likewise.
7047 (power8 cpu): Likewise.
7048
7049 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7050 sure that TFmode/TDmode take up two registers if they are ever
7051 allowed in the upper VSX registers.
7052 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7053 registers.
7054 (rs6000_init_hard_regno_mode_ok): Likewise.
7055 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7056 constraint. Print if LRA is turned on.
7057 (rs6000_option_override_internal): Give an error if -mvsx-timode
7058 and VSX is not enabled.
7059 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7060 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7061 to reg+offset addressing. Use PTImode when checking offset
7062 addresses for validity.
7063 (reg_offset_addressing_ok_p): Likewise.
7064 (rs6000_legitimate_offset_address_p): Likewise.
7065 (rs6000_legitimize_address): Likewise.
7066 (rs6000_legitimize_reload_address): Likewise.
7067 (rs6000_legitimate_address_p): Likewise.
7068 (rs6000_eliminate_indexed_memrefs): Likewise.
7069 (rs6000_emit_move): Likewise.
7070 (rs6000_secondary_reload): Likewise.
7071 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7072 reloads to fpr registers to continue to use reg+offset addressing,
7073 but 64-bit reloads to altivec registers need reg+reg addressing.
7074 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7075 it. Treat LO_SUM like a PLUS operation.
7076 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7077 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7078 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7079 registers to share a register with a smaller sized type, since VSX
7080 puts scalars in the upper 64-bits.
7081 (print_operand): Add support for PTImode.
7082 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7083 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7084 registers, but don't have arithmetic support.
7085 (rs6000_memory_move_cost): Add test for VSX.
7086 (rs6000_opt_masks): Add -mvsx-timode.
7087
7088 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7089 for TImode.
7090 (VSs): Likewise.
7091 (VSr): Use wt constraint for TImode.
7092 (VSv): Drop TImode support.
7093 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7094 (vsx_movti_64bit): Likewise.
7095 (vsx_movti_32bit): Likewise.
7096 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7097 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7098 one '?' on the appropriate output constraint. Do not allow TImode
7099 logical operations on 32-bit systems.
7100 (vsx_ior<mode>3): Likewise.
7101 (vsx_xor<mode>3): Likewise.
7102 (vsx_one_cmpl<mode>2): Likewise.
7103 (vsx_nor<mode>3): Likewise.
7104 (vsx_andc<mode>3): Likewise.
7105 (vsx_concat_<mode>): Likewise.
7106 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7107
7108 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7109 OPTION_MASK_VSX_TIMODE.
7110 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7111 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7112
7113 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7114 (TI2 iterator): New iterator for TImode, PTImode.
7115 (wd mode attribute): Add values for vector types.
7116 (movti_string): Replace TI move operations with operations for TImode
7117 and PTImode. Add support for TImode being allowed in VSX registers.
7118 (mov<mode>_string, TImode/PTImode): Likewise.
7119 (movti_ppc64): Likewise.
7120 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7121 (TI mode splitters): Likewise.
7122
7123 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7124 constraint.
7125
7126 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7127
7128 PR tree-optimization/56355
7129 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7130 Also handle integers with undefined overflow.
7131
7132 2013-03-20 Catherine Moore <clm@codesourcery.com>
7133 Maciej W. Rozycki <macro@codesourcery.com>
7134 Tom de Vries <tom@codesourcery.com>
7135 Nathan Sidwell <nathan@codesourcery.com>
7136 Iain Sandoe <iain@codesourcery.com>
7137 Nathan Froyd <froydnj@codesourcery.com>
7138 Chao-ying Fu <fu@mips.com>
7139
7140 * doc/extend.texi: (micromips, nomicromips, nocompression):
7141 Document new function attributes.
7142 * doc/invoke.texi (minterlink-compressed, mmicromips,
7143 m14k, m14ke, m14kec): Document new options.
7144 (minterlink-mips16): Update documentation.
7145 * doc/md.texi (ZC, ZD): Document new constraints.
7146 * configure.ac (gcc_cv_as_micromips): Check if linker
7147 supports the .set micromips directive.
7148 * configure: Regenerate.
7149 * config.in: Regenerate.
7150 * config/mips/mips-tables.opt: Regenerate.
7151 * config/mips/micromips.md: New file.
7152 * constraints.md (ZC, ZD): New constraints.
7153 * config/mips/predicates.md (movep_src_register): New predicate.
7154 (movep_src_operand): New predicate.
7155 (non_volatile_mem_operand): New predicate.
7156 * config/mips/mips.md (multimem): New type.
7157 (length): Differentiate between 17-bit and 18-bit branch offsets.
7158 (MOVEP1, MOVEP2): New mode iterator.
7159 (mov_<load>l): Use ZC constraint.
7160 (mov_<load>r): Likewise.
7161 (mov_<store>l): Likewise.
7162 (mov_<store>r): Likewise.
7163 (*branch_equality<mode>_inverted): Add microMIPS support.
7164 (*branch_equality<mode>): Likewise.
7165 (*jump_absolute): Likewise.
7166 (indirect_jump_<mode>): Likewise.
7167 (tablejump_<mode>): Likewise.
7168 (<optab>_internal): Likewise.
7169 (sibcall_internal): Likewise.
7170 (sibcall_value_internal): Likewise.
7171 (prefetch): Use constraint ZD.
7172 * config/mips/mips.opt (minterlink-compressed): New option.
7173 (minterlink-mips16): Now an alias for minterlink-compressed.
7174 (mmicromips): New option.
7175 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7176 (compare_and_swap_12): Likewise.
7177 (sync_add<mode>): Likewise.
7178 (sync_<optab>_12): Likewise.
7179 (sync_old_<optab>_12): Likewise.
7180 (sync_new_<optab>_12): Likewise.
7181 (sync_nand_12): Likewise.
7182 (sync_old_nand_12): Likewise.
7183 (sync_new_nand_12): Likewise.
7184 (sync_sub<mode>): Likewise.
7185 (sync_old_add<mode>): Likewise.
7186 (sync_old_sub<mode>): Likewise.
7187 (sync_new_add<mode>): Likewise.
7188 (sync_new_sub<mode>): Likewise.
7189 (sync_<optab><mode>): Likewise.
7190 (sync_old_<optab><mode>): Likewise.
7191 (sync_new_<optab><mode>): Likewise.
7192 (sync_nand<mode>): Likewise.
7193 (sync_old_nand<mode>): Likewise.
7194 (sync_new_nand<mode>): Likewise.
7195 (sync_lock_test_and_set<mode>): Likewise.
7196 (test_and_set_12): Likewise.
7197 (atomic_compare_and_swap<mode>): Likewise.
7198 (atomic_exchange<mode>_llsc): Likewise.
7199 (atomic_fetch_add<mode>_llsc): Likewise.
7200 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7201 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7202 (umips_save_restore_pattern_p): Likewise.
7203 (umips_load_store_pair_p): Likewise.
7204 (umips_output_load_store_pair): Likewise.
7205 (umips_movep_target_p): Likewise.
7206 (umips_12bit_offset_address_p): Likewise.
7207 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7208 (mips_base_mips16): Rename this...
7209 (mips_base_compression_flags): ...to this. Update all uses.
7210 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7211 (mips_mips16_decl_p): Delete.
7212 (mips_nomips16_decl_p): Delete.
7213 (mips_get_compress_on_flags): New function.
7214 (mips_get_compress_off_flags): New function.
7215 (mips_get_compress_mode): New function.
7216 (mips_get_compress_on_name): New function.
7217 (mips_get_compress_off_name): New function.
7218 (mips_insert_attributes): Support multiple compression types.
7219 (mips_merge_decl_attributes): Likewise.
7220 (umips_12bit_offset_address_p): New function.
7221 (mips_start_function_definition): Emit .set micromips directive.
7222 (mips_call_may_need_jalx_p): New function.
7223 (mips_function_ok_for_sibcall): Add microMIPS support.
7224 (mips_print_operand_punctuation): Support short delay slots and
7225 compact jumps.
7226 (umips_swm_mask, umips_swm_encoding): New.
7227 (umips_build_save_restore): New function.
7228 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7229 (was_mips16_p): Remove.
7230 (old_compression_mode): New.
7231 (mips_set_compression_mode): New function.
7232 (mips_set_current_function): Add microMIPS support.
7233 (mips_option_override): Likewise.
7234 (umips_save_restore_pattern_p): New function.
7235 (umips_output_save_restore): New function.
7236 (umips_load_store_pair_p_1): New function.
7237 (umips_load_store_pair_p): New function.
7238 (umips_output_load_store_pair_1): New function.
7239 (umips_output_load_store_pair): New function.
7240 (umips_movep_target_p) New function.
7241 (mips_prepare_pch_save): Add microMIPS support.
7242 * config/mips/mips.h (TARGET_COMPRESSION): New.
7243 (TARGET_CPU_CPP_BUILTINS): Update macro
7244 to use new compression flags and to support microMIPS.
7245 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7246 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7247 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7248 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7249 (ASM_SPEC): Support mmicromips and mno-micromips.
7250 (M16STORE_REG_P): New macro.
7251 (MIPS_CALL): Support TARGET_MICROMIPS.
7252 (MICROMIPS_J): New macro.
7253 (mips_base_mips16): Rename this...
7254 (mips_base_compression_flags): ...to this.
7255 (UMIPS_12BIT_OFFSET_P): New macro.
7256 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7257 (MULTILIB_DIRNAMES): Likewise.
7258 2013-03-20 Richard Biener <rguenther@suse.de>
7259
7260 PR tree-optimization/56661
7261 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7262 the result does not have to be distinct.
7263
7264 2013-03-20 Richard Biener <rguenther@suse.de>
7265
7266 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7267 remap_gimple_op_r.
7268
7269 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7270 Steven Bosscher <steven@gcc.gnu.org>
7271
7272 PR rtl-optimization/56605
7273 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7274
7275 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7276
7277 PR bootstrap/56656
7278 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7279 that require movd instead of movq.
7280
7281 2013-03-20 Richard Biener <rguenther@suse.de>
7282
7283 * tree-ssa-structalias.c (struct variable_info): Add pointer
7284 to the first field of an aggregate with sub-vars. Make
7285 this and the pointer to the next subfield its ID.
7286 (vi_next): New function.
7287 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7288 storedanything_id, integer_id): Increment by one.
7289 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7290 get_call_clobber_vi): Adjust.
7291 (solution_set_expand): Simplify and speedup.
7292 (solution_set_add): Inline into ...
7293 (set_union_with_increment): ... this. Adjust accordingly.
7294 (do_sd_constraint): Likewise.
7295 (do_ds_constraint): Likewise.
7296 (do_complex_constraint): Simplify.
7297 (build_pred_graph): Adjust.
7298 (solve_graph): Likewise. Simplify and speedup.
7299 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7300 get_constraint_for_component_ref, get_constraint_for_1,
7301 first_vi_for_offset, first_or_preceding_vi_for_offset,
7302 create_function_info_for, create_variable_info_for_1,
7303 create_variable_info_for, intra_create_variable_infos): Adjust.
7304 (init_base_vars): Push NULL for ID zero.
7305 (compute_points_to_sets): Adjust.
7306
7307 2013-03-20 Richard Biener <rguenther@suse.de>
7308
7309 * cfgloop.c (verify_loop_structure): Streamline and avoid
7310 ICEing on corrupt loop tree.
7311 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7312 loop tree.
7313
7314 2013-03-20 Richard Biener <rguenther@suse.de>
7315
7316 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7317 check whether an SSA update is needed.
7318
7319 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7320
7321 * config/mips/constraints.md (T): Rename to...
7322 (Yf): ...this.
7323 (U): Rename to...
7324 (Yd): ...this.
7325 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7326 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7327
7328 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7329
7330 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7331 (*subsi3_carryin_uxtw): Likewise.
7332
7333 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7334
7335 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7336 (*rorsi3_insn_uxtw): Likewise.
7337
7338 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7339
7340 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7341 (*extrsi5_insn_uxtw): Likewise.
7342
7343 2013-03-19 Richard Biener <rguenther@suse.de>
7344
7345 PR tree-optimization/56273
7346 * passes.c (init_optimization_passes): Move second VRP after DOM.
7347
7348 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7349
7350 * config/i386/i386.md (*movti_internal): Merge from
7351 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7352 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7353 nox64 isa attributes.
7354
7355 2013-03-18 Richard Biener <rguenther@suse.de>
7356
7357 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7358 (unite): Likewise.
7359 (merge_node_constraints): Likewise.
7360 (build_succ_graph): Likewise.
7361 (valid_graph_edge): Inline into single caller.
7362 (unify_nodes): Likewise. Use bitmap_set_bit return value
7363 and cache varinfo.
7364 (scc_visit): Fix formatting and variable use.
7365 (do_sd_constraint): Use gcc_checking_assert.
7366 (do_ds_constraint): Likewise.
7367 (do_complex_constraint): Likewise.
7368 (condense_visit): Likewise. Cleanup.
7369 (dump_pred_graph): New function.
7370 (perform_var_substitution): Dump the pred-graph before
7371 variable substitution.
7372 (find_equivalent_node): Use gcc_checking_assert.
7373 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7374
7375 2013-03-18 Richard Biener <rguenther@suse.de>
7376
7377 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7378 Remove cond_expr_stmt_list argument and do not gimplify the
7379 built expression.
7380 (vect_loop_versioning): Adjust.
7381 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7382 Cleanup to use less temporaries.
7383 (vect_create_data_ref_ptr): Cleanup.
7384
7385 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7386
7387 PR tree-optimization/56635
7388 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7389 require types_compatible_p types.
7390
7391 2013-03-18 Nick Clifton <nickc@redhat.com>
7392
7393 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7394 spurious backslash.
7395
7396 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7397 Add missing line to comment describing function.
7398
7399 2013-03-18 Richard Biener <rguenther@suse.de>
7400
7401 PR tree-optimization/56210
7402 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7403 Handle string / character search functions.
7404 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7405
7406 2013-03-18 Richard Biener <rguenther@suse.de>
7407
7408 PR middle-end/56483
7409 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7410 and implement properly.
7411 * gimple.h (gimple_cond_single_var_p): Remove.
7412
7413 2013-03-18 Richard Biener <rguenther@suse.de>
7414
7415 * tree-data-ref.h (find_data_references_in_loop): Declare.
7416 * tree-data-ref.c (get_references_in_stmt): Use a stack
7417 vector pre-allocated in the callers.
7418 (find_data_references_in_stmt): Adjust.
7419 (graphite_find_data_references_in_stmt): Likewise.
7420 (create_rdg_vertices): Likewise.
7421 (find_data_references_in_loop): Export.
7422 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7423 Compute dependences here...
7424 (vect_analyze_data_refs): ...not here. When we encounter
7425 a non-vectorizable data reference in basic-block vectorization
7426 truncate the data reference vector. Do not bother to
7427 fixup data-dependence information for gather loads.
7428 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7429 of data references, as reported.
7430
7431 2013-03-18 Richard Biener <rguenther@suse.de>
7432
7433 PR tree-optimization/3713
7434 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7435 has_constants and expr.
7436 (stmt_has_constants): Properly valueize SSA names when deciding
7437 whether the stmt has constants.
7438
7439 2013-03-18 Richard Biener <rguenther@suse.de>
7440
7441 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7442 whole function when there is nothing to do.
7443 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7444 * tree-vectorizer.c (vectorize_loops): Update virtual and
7445 loop-closed SSA once.
7446 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7447
7448 2013-03-18 Richard Biener <rguenther@suse.de>
7449
7450 PR middle-end/56113
7451 * domwalk.c (bb_postorder): New global static.
7452 (cmp_bb_postorder): New function.
7453 (walk_dominator_tree): Replace scheme imposing an order for
7454 visiting dominator sons by one sorting them at the time they
7455 are pushed on the stack.
7456
7457 2013-03-18 Richard Biener <rguenther@suse.de>
7458
7459 PR tree-optimization/39326
7460 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
7461 (struct mem_ref): Replace mem member with ao_ref typed member.
7462 (MEM_ANALYZABLE): Adjust.
7463 (memref_eq): Likewise.
7464 (mem_ref_alloc): Likewise.
7465 (gather_mem_refs_stmt): Likewise.
7466 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
7467 (execute_sm_if_changed_flag_set): Adjust.
7468 (execute_sm): Likewise.
7469 (ref_always_accessed_p): Likewise.
7470 (refs_independent_p): Likewise.
7471 (can_sm_ref_p): Likewise.
7472
7473 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7474
7475 PR c/56566
7476 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
7477 return 1 even for !unsignedp.
7478
7479 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7480
7481 * config/i386/i386.md (isa): Add x64 and nox64.
7482 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
7483 (*pushtf): Enable *roF alternative for x64 isa only.
7484 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
7485 mode attribute of integer alternatives to DImode for TARGET_64BIT.
7486 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
7487 (*movtf_internal): Merge from *movtf_internal_rex64 and
7488 *movtf_internal_sse. Use x64 and nox64 isa attributes.
7489 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
7490 nox64 isa attributes.
7491 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
7492 nox64 isa attributes.
7493 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
7494
7495 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7496
7497 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7498
7499 2013-03-17 Jakub Jelinek <jakub@redhat.com>
7500
7501 PR target/56640
7502 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
7503 class names. Remove trailing comma after "ALL_REGS".
7504
7505 2013-03-16 Jan Hubicka <jh@suse.cz>
7506
7507 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
7508 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
7509 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
7510 of cgraph_get_create_node.
7511 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7512
7513 2013-03-16 Jason Merrill <jason@redhat.com>
7514
7515 PR debug/49090
7516 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
7517 with DW_AT_default_value.
7518
7519 2013-03-16 Jakub Jelinek <jakub@redhat.com>
7520
7521 * BASE-VER: Set to 4.9.0.
7522
7523 2013-03-14 Andi Kleen <ak@linux.intel.com>
7524
7525 PR target/56619
7526 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
7527 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
7528 Document _x* TSX intrinsics.
7529
7530 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
7531 David Holsgrove <david.holsgrove@xilinx.com>
7532
7533 * configure.ac: Add MicroBlaze TLS support detection.
7534 * configure: Regenerate.
7535 * config/microblaze/microblaze-protos.h
7536 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
7537 symbol_mentioned_p, label_mentioned_p): Add prototypes.
7538 * config/microblaze/microblaze.c (microblaze_address_type): Add
7539 ADDRESS_TLS and tls_reloc address types.
7540 (microblaze_address_info): Add tls_reloc.
7541 (TARGET_HAVE_TLS): Define.
7542 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
7543 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
7544 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
7545 load_tls_operand, microblaze_call_tls_get_addr,
7546 microblaze_legitimize_tls_address): New functions.
7547 (microblaze_classify_unspec): Handle UNSPEC_TLS.
7548 (get_base_reg): Use microblaze_tls_symbol_p.
7549 (microblaze_classify_address): Handle TLS.
7550 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
7551 label_mentioned_p and microblaze_tls_referenced_p.
7552 (microblaze_legitimize_address): Handle TLS.
7553 (microblaze_address_insns): Handle ADDRESS_TLS.
7554 (pic_address_needs_scratch): Handle TLS.
7555 (print_operand_address): Handle TLS.
7556 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
7557 (microblaze_expand_move): Handle TLS.
7558 (microblaze_legitimate_constant_p): Check
7559 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
7560 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7561 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
7562 (PIC_OFFSET_TABLE_REGNUM): Set.
7563 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
7564 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
7565 (addsi3, movsi_internal2, movdf_internal): Update constraints
7566 * config/microblaze/predicates.md (arith_plus_operand): Define
7567 (move_operand): Redefine as move_src_operand,
7568 check microblaze_tls_referenced_p.
7569
7570 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7571
7572 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
7573 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
7574
7575 2013-03-14 Ian Bolton <ian.bolton@arm.com>
7576
7577 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
7578 CC mode for AND.
7579
7580 2013-03-14 Jakub Jelinek <jakub@redhat.com>
7581
7582 PR tree-optimization/53265
7583 * common.opt (Waggressive-loop-optimizations): New option.
7584 * tree-ssa-loop-niter.c: Include tree-pass.h.
7585 (do_warn_aggressive_loop_optimizations): New function.
7586 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
7587 if number_of_latch_executions returned constant.
7588 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
7589 early. If number_of_latch_executions returned constant, set
7590 nb_iterations_upper_bound back to it.
7591 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
7592 field.
7593 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
7594 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
7595
7596 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
7597 (MULTILIB_OSDIRNAMES): Set.
7598 * genmultilib: If defaultosdirname doesn't start with :: , set
7599 defaultosdirname2 instead, clear it and emit two . multilib_raw
7600 entries instead of just one.
7601
7602 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
7603
7604 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7605 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
7606 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
7607 (SUBTARGET_OVERRIDE_OPTIONS): New.
7608
7609 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
7610
7611 PR target/49880
7612 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
7613 (musermode): Convert to Var(TARGET_USERMODE).
7614 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
7615 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
7616 * config/sh/sh.c (sh_option_override): Use
7617 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
7618 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
7619 condition.
7620 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
7621 TARGET_SH4.
7622 (udivsi3_i4_single, divsi3_i4_single): Use
7623 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
7624
7625 2013-03-13 Dave Korn <dave.korn.cygwin@....>
7626
7627 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
7628 default setting.
7629
7630 2013-03-13 Richard Biener <rguenther@suse.de>
7631
7632 PR tree-optimization/56608
7633 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
7634 calls when vectorizing basic-blocks.
7635
7636 2013-03-13 Jakub Jelinek <jakub@redhat.com>
7637
7638 PR plugins/45078
7639 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
7640 tm_file.
7641
7642 2013-03-12 Jakub Jelinek <jakub@redhat.com>
7643
7644 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
7645
7646 2013-03-11 Jan Hubicka <jh@suse.cz>
7647
7648 PR lto/56557
7649 * lto-streamer-out.c (output_symbol_p): Skip references from
7650 constructors of external variables.
7651
7652 2013-03-11 Jan Hubicka <jh@suse.cz>
7653
7654 PR middle-end/56571
7655 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
7656 from pseudos.
7657 * emit-rtl.c (verify_rtx_sharing): Likewise.
7658 (copy_insn_1): Likewise.
7659 * rtl.c (copy_rtx): Likewise.
7660
7661 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
7662
7663 PR target/56591
7664 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
7665 output_operand_lossage message.
7666
7667 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
7668
7669 PR target/56470
7670 * arm.c (shift_op): Validate RTL pattern on the fly.
7671 (arm_print_operand, case 'S'): Don't use shift_operator to validate
7672 the RTL.
7673
7674 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7675
7676 PR target/56347
7677 * config/pa/pa.md (call_value): Check for calls to powf and direct to
7678 new call patterns that clobber %fr12.
7679 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
7680 split and postreload patterns.
7681 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
7682 registers %fr12 and %fr12R as call used.
7683
7684 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
7685
7686 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
7687 (canon_address, record_store, replace_read, check_mem_read_rtx,
7688 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
7689 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
7690 rest_of_handle_dse): Likewise.
7691
7692 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7693
7694 PR middle-end/56524
7695 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
7696 Add base_optabs.
7697 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
7698 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
7699 (save_optabs_if_changed): Replace with...
7700 (init_tree_optimization_optabs): ...this.
7701 * optabs.c (save_optabs_if_changed): Rename to...
7702 (init_tree_optimization_optabs): ...this. Take the optimization node
7703 as argument. Do nothing if the base optabs are already correct.
7704 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
7705 to recompute optabs.
7706 * function.h (function): Remove optabs field.
7707 * function.c (invoke_set_current_function_hook): Call
7708 init_tree_optimization_optabs. Use the result to initialize
7709 this_fn_optabs.
7710
7711 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
7712
7713 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
7714 if GTMA_HAS_NO_INSTRUMENTATION.
7715 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
7716 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
7717 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
7718 * gimple-pretty-print.c (dump_gimple_transaction): Handle
7719 GTMA_HAS_NO_INSTRUMENTATION.
7720
7721 2013-03-08 Jakub Jelinek <jakub@redhat.com>
7722
7723 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
7724 libasan_preinit.o.
7725
7726 2013-03-08 Marek Polacek <polacek@redhat.com>
7727 Jakub Jelinek <jakub@redhat.com>
7728
7729 PR tree-optimization/56478
7730 * predict.c (is_comparison_with_loop_invariant_p): Change the
7731 type of loop_step to tree.
7732 (predict_loops): Adjust.
7733 (predict_iv_comparison): Perform the computations on double_ints.
7734
7735 2013-03-08 Richard Biener <rguenther@suse.de>
7736
7737 PR tree-optimization/56570
7738 * tree-cfg.c (verify_expr_location_1): Verify locations for
7739 DECL_DEBUG_EXPR.
7740 * tree-sra.c (create_access_replacement): Strip locations
7741 from DECL_DEBUG_EXPRs.
7742
7743 2013-03-08 Richard Biener <rguenther@suse.de>
7744
7745 * tree-inline.c (expand_call_inline): Do not associate
7746 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
7747 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
7748
7749 2013-03-08 Richard Biener <rguenther@suse.de>
7750
7751 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
7752 or block changes with -Og. Fix for location / block encoding
7753 changes and PHI arguments with locations.
7754
7755 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
7756
7757 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
7758 for all counters.
7759 (struct output_info): Likewise.
7760 (register_overhead): Remove bad gcc_assert.
7761 (bitmap_find_bit): If there is only a single bitmap element, do not
7762 count a miss as a search.
7763 (print_statistics): Update for counter type changes.
7764 (dump_bitmap_statistics): Likewise. Print headers such that they
7765 are properly lined up with the printed counters.
7766
7767 2013-03-07 Jakub Jelinek <jakub@redhat.com>
7768
7769 PR tree-optimization/56559
7770 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
7771 check that it has only a single use.
7772
7773 2013-03-07 Richard Biener <rguenther@suse.de>
7774
7775 * doc/invoke.texi (fwhole-program): Discourage use in combination
7776 with -flto.
7777
7778 2013-03-06 Jakub Jelinek <jakub@redhat.com>
7779
7780 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7781
7782 PR tree-optimization/56539
7783 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7784 instead of GSI_CONTINUE_LINKING as last argument to
7785 force_gimple_operand_gsi. Adjust function comment.
7786
7787 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7788 aarch64-cores.def.
7789
7790 PR middle-end/56548
7791 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7792 promoted mode, convert the result back to the original mode.
7793
7794 2013-03-06 Richard Biener <rguenther@suse.de>
7795
7796 PR middle-end/56294
7797 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7798 (insert_updated_phi_nodes_compare_uids): New function.
7799 (update_ssa): Sort symbols_to_rename after UID before
7800 traversing it to insert PHI nodes.
7801
7802 2013-03-06 Richard Biener <rguenther@suse.de>
7803
7804 PR middle-end/50494
7805 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7806 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7807
7808 Revert
7809 2013-02-13 Richard Biener <rguenther@suse.de>
7810
7811 PR lto/50494
7812 * varasm.c (output_constant_def_1): Get the decl representing
7813 the constant as argument.
7814 (output_constant_def): Wrap output_constant_def_1.
7815 (make_decl_rtl): Use output_constant_def_1 with the decl
7816 representing the constant.
7817 (build_constant_desc): Optionally re-use a decl already
7818 representing the constant.
7819 (tree_output_constant_def): Adjust.
7820
7821 2013-03-06 Joey Ye <joey.ye@arm.com>
7822
7823 PR lto/50293
7824 * gcc.c (convert_white_space): New function.
7825 (main): Handles white space in function name.
7826
7827 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7828
7829 PR target/56529
7830 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7831 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7832 to SH_DIV_CALL_TABLE for TARGET_SH2.
7833 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7834 list.
7835 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7836 call-table options.
7837
7838 2013-03-05 Sterling Augustine <saugustine@google.com>
7839 Cary Coutant <ccoutant@google.com>
7840
7841 PR debug/55364
7842 * dwarf2out.c (resolve_addr): Don't call
7843 remove_loc_list_addr_table_entries a second time for the same
7844 expression.
7845
7846 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7847
7848 PR debug/56510
7849 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7850 (avoid_complex_debug_insns): New function.
7851 (expand_debug_locations): Call it.
7852
7853 PR rtl-optimization/56484
7854 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7855 lifetimes of hard registers on small register class machines.
7856
7857 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7858
7859 * config/microblaze/microblaze-protos.h: Rename
7860 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
7861 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
7862 fast_interrupt.
7863 (microblaze_fast_interrupt_function_p): New function.
7864 (microblaze_is_interrupt_handler): Rename to
7865 microblaze_is_interrupt_variant and add fast_interrupt check.
7866 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7867 (save_restore_insns): Likewise.
7868 (compute_frame_size): Likewise.
7869 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7870 (microblaze_globalize_label): Likewise.
7871 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7872 * config/microblaze/microblaze.md: Use wrapper
7873 microblaze_is_interrupt_variant.
7874
7875 2013-03-05 Kai Tietz <ktietz@redhat.com>
7876
7877 * sdbout.c (sdbout_one_type): Switch to current function's section
7878 supporting cold/hot.
7879
7880 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7881
7882 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7883 -mxl-reorder.
7884
7885 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7886
7887 PR middle-end/56461
7888 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7889 if VALGRIND_GET_VBITS is defined, temporarily make object
7890 memory all defined, and restore previous valgrind addressability
7891 and definability afterwards. Free this_object at the end.
7892
7893 PR middle-end/56461
7894 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7895 right before calling lra_create_live_ranges, also call it
7896 when clearing live_p. Only call lra_clear_live_ranges
7897 at the end if live_p.
7898
7899 PR middle-end/56461
7900 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7901
7902 2013-03-05 Richard Biener <rguenther@suse.de>
7903
7904 PR tree-optimization/56521
7905 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7906 value-id.
7907
7908 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7909
7910 PR c++/55135
7911 * except.h (remove_unreachable_eh_regions): New prototype.
7912 * except.c (remove_eh_handler_splicer): New function, split out
7913 of remove_eh_handler.
7914 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7915 warning about running it on many EH regions one at a time.
7916 (remove_unreachable_eh_regions_worker): New function, walk the
7917 EH tree in depth-first order and remove non-marked regions.
7918 (remove_unreachable_eh_regions): New function.
7919 * tree-eh.c (mark_reachable_handlers): New function, split out
7920 from remove_unreachable_handlers.
7921 (remove_unreachable_handlers): Use mark_reachable_handlers and
7922 remove_unreachable_eh_regions.
7923 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7924 and remove_unreachable_eh_regions.
7925
7926 2013-03-05 Richard Biener <rguenther@suse.de>
7927
7928 PR middle-end/56525
7929 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7930 not freeing them until the end.
7931
7932 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7933
7934 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7935
7936 2013-03-05 Richard Biener <rguenther@suse.de>
7937
7938 PR tree-optimization/56270
7939 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7940 of loads after scheduling an SLP instance.
7941
7942 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7943
7944 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7945 tic6x.exp.
7946 (check_gcc_parallelize): Run guality.exp as a separate job from
7947 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7948 struct-layout-1.exp with stackalign.exp.
7949
7950 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7951
7952 PR middle-end/56461
7953 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7954 load_index sbitmap even if some bit in it isn't set.
7955
7956 PR middle-end/56461
7957 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7958 (discover_iteration_bound_by_body_walk): Change queues to
7959 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7960 spelling in comment. Call safe_push on queues[bound_index] directly.
7961 Release queues[queue_index] in every iteration unconditionally.
7962 Release bounds vector.
7963
7964 PR middle-end/56461
7965 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7966 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7967 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7968 inner_phis vector.
7969
7970 2013-03-05 Richard Biener <rguenther@suse.de>
7971
7972 PR lto/56515
7973 * tree-inline.c (remap_blocks_to_null): New function.
7974 (expand_call_inline): When expanding a call stmt without
7975 an associated block inline remap all callee blocks to NULL.
7976
7977 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7978
7979 PR rtl-optimization/56494
7980 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7981 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7982 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7983
7984 PR middle-end/56461
7985 * sel-sched-ir.c (free_sched_pools): Release
7986 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7987 if succs_info_pool.max_top isn't -1.
7988
7989 PR bootstrap/56509
7990 * opts.c (opts_obstack, opts_concat): Moved to...
7991 * opts-common.c (opts_obstack, opts_concat): ... here.
7992
7993 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7994
7995 PR middle-end/56461
7996 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7997
7998 2013-03-04 Martin Jambor <mjambor@suse.cz>
7999
8000 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8001 all appropriate places.
8002
8003 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8004
8005 PR tree-optimization/56424
8006 * ipa-split.c (split_function): Do not set the RSO flag if result is
8007 not by reference and its type is a register type.
8008
8009 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8010
8011 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8012 (microblaze_legitimate_pic_operand): Likewise
8013 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8014 new function microblaze_legitimate_pic_operand
8015 * config/microblaze/microblaze-protos.h
8016 (microblaze_legitimate_pic_operand): Declare.
8017
8018 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8019
8020 * config/microblaze/predicates.md (call_insn_simple_operand):
8021 New predicate for supported rtx code types.
8022 * config/microblaze/microblaze.md (call_internal1): Use
8023 call_insn_simple_operand predicate.
8024
8025 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8026
8027 PR middle-end/56461
8028 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8029 partitions.ordered_remove.
8030
8031 PR middle-end/56461
8032 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8033 vec_oprnds0.create (1) for modifier == NONE.
8034
8035 PR middle-end/56461
8036 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8037 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8038 vec_oprnds1 right before pushing anything to it for
8039 scalar_shift_arg.
8040
8041 PR middle-end/56461
8042 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8043 set nbbs to 0 instead of having separate code path.
8044 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8045 instead of false as last argument if returning NULL.
8046
8047 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8048
8049 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8050 the attribute is now called "target" instead of "option".
8051 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8052 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8053 attribute/pragma name for TARGET_OPTION_VALID_P and
8054 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8055 * doc/tm.texi: Regenerated.
8056
8057 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8058
8059 * config/microblaze/microblaze.c:
8060 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8061 * config/microblaze/microblaze.h: Add -mxl-reorder to
8062 DRIVER_SELF_SPECS.
8063 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8064 instructions emitted if TARGET_REORDER.
8065 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8066 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8067 separately.
8068
8069 2013-03-01 Xinliang David Li <davidxl@google.com>
8070
8071 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8072 walk length.
8073
8074 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8075
8076 PR middle-end/56461
8077 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8078 vector even when returning true. Fix up function comment formatting.
8079
8080 PR middle-end/56461
8081 * ira-build.c (ira_loop_nodes_count): New variable.
8082 (create_loop_tree_nodes): Initialize it.
8083 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8084
8085 PR middle-end/56461
8086 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8087 method on dr_chain and result_chain.
8088 * tree-vect-stmts.c (vectorizable_store): Only call
8089 result_chain.create if j == 0.
8090
8091 PR middle-end/56461
8092 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8093 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8094 before overwriting it.
8095
8096 2013-03-01 Tobias Burnus <burnus@net-b.de>
8097
8098 * doc/extended.texi (C Extensions): Change order in @menu
8099 to match @node.
8100 (Other MIPS Built-in Functions): Move last MIPS entry before
8101 "picoChip Built-in Functions".
8102 (SH Built-in Functions): Move after RX Built-in Functions.
8103 * doc/gcc.texi (Introduction): Change order in @menu
8104 to match @node.
8105 * doc/md.texi (Constraints): Ditto.
8106 * gty.texi (Type Information): Ditto.
8107 (User-provided marking routines for template types): Make
8108 subsection.
8109 * doc/invoke.texi (AArch64 Options): Move before
8110 "Adapteva Epiphany Options".
8111
8112 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8113 Jakub Jelinek <jakub@redhat.com>
8114
8115 PR sanitizer/56454
8116 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8117 no_address_safety_analysis attribute.
8118 * doc/extend.texi (no_address_safety_attribute): Rename to
8119 no_sanitize_address attribute, mention no_address_safety_analysis
8120 attribute as deprecated alias.
8121
8122 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8123
8124 PR middle-end/56461
8125 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8126 type to vec<vec<tree> > *.
8127 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8128 to be vec<tree> instead of vec<tree> *, set vec_defs
8129 to vNULL and call vec_defs.create (number_of_vects), adjust other
8130 uses of vec_defs.
8131 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8132 vectorizable_condition): Adjust vect_get_slp_defs callers.
8133
8134 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8135
8136 * config/aarch64/aarch64.c
8137 (aarch64_float_const_representable): Remove unused variable.
8138
8139 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8140
8141 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8142
8143 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8144
8145 * config/aarch64/aarch64-builtins.c
8146 (aarch64_init_simd_builtins): Make static.
8147
8148 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8149
8150 * config/aarch64/aarch64.c
8151 (aarch64_simd_make_constant): Make static.
8152
8153 2013-02-28 Martin Jambor <mjambor@suse.cz>
8154
8155 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8156 with no initialization to the RHS of debug statements.
8157
8158 2013-02-28 Martin Jambor <mjambor@suse.cz>
8159
8160 PR tree-optimization/56294
8161 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8162 Adjust dumping.
8163 (get_access_replacement): Do not call create_access_replacement.
8164 Assert a replacement exists.
8165 (get_repl_default_def_ssa_name): Create the replacement declaration
8166 itself.
8167
8168 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8169
8170 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8171 final_end_function.
8172
8173 2013-02-28 Marek Polacek <polacek@redhat.com>
8174
8175 PR rtl-optimization/56466
8176 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8177 if we're changing a loop.
8178 (peel_loops_completely): Likewise.
8179
8180 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8181
8182 PR c++/55813
8183 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8184
8185 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8186
8187 PR target/56445
8188 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8189 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8190 INTX_FTYPE_FX, FX_FTYPE_INTX.
8191 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8192
8193 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8194
8195 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8196 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8197 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8198 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8199 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8200 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8201 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8202 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8203 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8204 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8205 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8206 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8207 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8208 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8209 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8210 (avrxmega6): Increase max flash segments from 5 to 6.
8211 * config/avr/t-multilib: Regenerate.
8212 * config/avr/avr-tables.opt: Regenerate.
8213 * doc/avr-mmcu.texi: Regenerate.
8214
8215 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8216
8217 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8218 (avr_device_to_arch): Rename to avr_device_to_ld.
8219 (avr_device_to_as): New prototype.
8220 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8221 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8222 * config/avr/driver-avr.c (avr_device_to_as): New.
8223 (avr_device_to_arch): Rename to avr_device_to_ld.
8224
8225 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8226
8227 PR middle-end/56461
8228 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8229 method on dr_chain and result_chain.
8230
8231 PR middle-end/56461
8232 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8233 pointer_set_destroy on not_executed_last_iteration.
8234
8235 PR middle-end/56461
8236 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8237
8238 PR middle-end/56461
8239 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8240 FOR_EACH_DEFINED_FUNCTION when freeing state.
8241
8242 PR middle-end/56461
8243 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8244 pool_free.
8245 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8246 overwriting it.
8247
8248 PR middle-end/56461
8249 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8250 known_aggs[i].items and release known_aggs vector.
8251
8252 PR middle-end/56461
8253 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8254
8255 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8256
8257 * config/microblaze/microblaze.c (microblaze_emit_compare):
8258 Use xor for EQ/NE comparisions.
8259 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8260 (cbranchsf4): Adjust operator to comparison_operator.
8261
8262 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8263
8264 PR middle-end/56461
8265 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8266 vector.
8267 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8268 vec_safe_push, always update *slot.
8269 (redirect_edge_var_map_clear): Use vec_free.
8270 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8271 (free_var_map_entry): Use vec_free.
8272 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8273 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8274
8275 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8276
8277 PR middle-end/45472
8278 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8279 when the may_trap_p bit of the exprs being merged differs.
8280 Reorder tests for speculativeness in the logical and operator.
8281
8282 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8283
8284 * incpath.c (add_standard_paths): Use reconcat instead of concat
8285 where appropriate and avoid leaking memory.
8286
8287 * opts.h: Include obstack.h.
8288 (opts_concat): New prototype.
8289 (opts_obstack): New declaration.
8290 * opts.c (opts_concat): New function.
8291 (opts_obstack): New variable.
8292 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8293 (finish_options): Use opts_concat instead of concat
8294 and XOBNEWVEC instead of XNEWVEC.
8295 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8296 generate_option): Likewise.
8297 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8298 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8299
8300 PR target/56455
8301 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8302 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8303
8304 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8305
8306 PR middle-end/56461
8307 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8308
8309 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8310
8311 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8312 (arm_block_move_unaligned_straight): Likewise.
8313 (arm_adjust_block_mem): Likewise.
8314
8315 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8316
8317 PR target/48901
8318 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8319 temp, cond and label.
8320 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8321
8322 PR target/52500
8323 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8324 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8325
8326 PR target/52501
8327 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8328 of prologue/epilogue functions.
8329
8330 PR target/52550
8331 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8332 Remove unused variable cfa_offset.
8333 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8334
8335 PR target/54639
8336 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8337 type promotion to unsigned.
8338
8339 PR target/54640
8340 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8341 for HOST_WIDE_INT of 32 bit / same size as int.
8342 (arm_block_move_unaligned_straight): Likewise.
8343 (arm_adjust_block_mem): Likewise.
8344
8345 PR target/54662
8346 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8347 ALL_CFLAGS.
8348
8349 2013-02-26 Marek Polacek <polacek@redhat.com>
8350
8351 PR tree-optimization/56426
8352 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8353
8354 2013-02-26 Richard Biener <rguenther@suse.de>
8355
8356 PR target/56444
8357 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8358 unused variable loops.
8359
8360 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8361
8362 PR tree-optimization/56448
8363 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8364 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8365 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8366 later operands of the references, or even first operand for
8367 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8368
8369 PR tree-optimization/56443
8370 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8371 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8372 to type_for_mode langhook.
8373
8374 2013-02-25 Matt Turner <mattst88@gmail.com>
8375
8376 * doc/invoke.texi: Document r4700.
8377
8378 2013-02-25 Richard Biener <rguenther@suse.de>
8379
8380 PR tree-optimization/56175
8381 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8382 split out from ...
8383 (simplify_bitwise_binary): ... here. Also guard the conversion
8384 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8385
8386 2013-02-25 Catherine Moore <clm@codesourcery.com>
8387
8388 Revert:
8389 2013-02-24 Catherine Moore <clm@codesourcery.com>
8390 Maciej W. Rozycki <macro@codesourcery.com>
8391 Tom de Vries <tom@codesourcery.com>
8392 Nathan Sidwell <nathan@codesourcery.com>
8393 Iain Sandoe <iain@codesourcery.com>
8394 Nathan Froyd <froydnj@codesourcery.com>
8395 Chao-ying Fu <fu@mips.com>
8396
8397 * doc/extend.texi: (micromips, nomicromips, nocompression):
8398 Document new function attributes.
8399 * doc/invoke.texi (minterlink-compressed, mmicromips,
8400 m14k, m14ke, m14kec): Document new options.
8401 (minterlink-mips16): Update documentation.
8402 * doc/md.texi (ZC, ZD): Document new constraints.
8403 * configure.ac (gcc_cv_as_micromips): Check if linker
8404 supports the .set micromips directive.
8405 * configure: Regenerate.
8406 * config.in: Regenerate.
8407 * config/mips/mips-tables.opt: Regenerate.
8408 * config/mips/micromips.md: New file.
8409 * constraints.md (ZC, AD): New constraints.
8410 * config/mips/predicates.md (movep_src_register): New predicate.
8411 (movep_src_operand): New predicate.
8412 (non_volatile_mem_operand): New predicate.
8413 * config/mips/mips.md (multimem): New type.
8414 (length): Differentiate between 17-bit and 18-bit branch offsets.
8415 (MOVEP1, MOVEP2): New mode iterator.
8416 (mov_<load>l): Use ZC constraint.
8417 (mov_<load>r): Likewise.
8418 (mov_<store>l): Likewise.
8419 (mov_<store>r): Likewise.
8420 (*branch_equality<mode>_inverted): Add microMIPS support.
8421 (*branch_equality<mode>): Likewise.
8422 (*jump_absolute): Likewise.
8423 (indirect_jump_<mode>): Likewise.
8424 (tablejump_<mode>): Likewise.
8425 (<optab>_internal): Likewise.
8426 (sibcall_internal): Likewise.
8427 (sibcall_value_internal): Likewise.
8428 (prefetch): Use constraint ZD.
8429 * config/mips/mips.opt (minterlink-compressed): New option.
8430 (minterlink-mips16): Now an alias for minterlink-compressed.
8431 (mmicromips): New option.
8432 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8433 (compare_and_swap_12): Likewise.
8434 (sync_add<mode>): Likewise.
8435 (sync_<optab>_12): Likewise.
8436 (sync_old_<optab>_12): Likewise.
8437 (sync_new_<optab>_12): Likewise.
8438 (sync_nand_12): Likewise.
8439 (sync_old_nand_12): Likewise.
8440 (sync_new_nand_12): Likewise.
8441 (sync_sub<mode>): Likewise.
8442 (sync_old_add<mode>): Likewise.
8443 (sync_old_sub<mode>): Likewise.
8444 (sync_new_add<mode>): Likewise.
8445 (sync_new_sub<mode>): Likewise.
8446 (sync_<optab><mode>): Likewise.
8447 (sync_old_<optab><mode>): Likewise.
8448 (sync_new_<optab><mode>): Likewise.
8449 (sync_nand<mode>): Likewise.
8450 (sync_old_nand<mode>): Likewise.
8451 (sync_new_nand<mode>): Likewise.
8452 (sync_lock_test_and_set<mode>): Likewise.
8453 (test_and_set_12): Likewise.
8454 (atomic_compare_and_swap<mode>): Likewise.
8455 (atomic_exchange<mode>_llsc): Likewise.
8456 (atomic_fetch_add<mode>_llsc): Likewise.
8457 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8458 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8459 (umips_save_restore_pattern_p): Likewise.
8460 (umips_load_store_pair_p): Likewise.
8461 (umips_output_load_store_pair): Likewise.
8462 (umips_movep_target_p): Likewise.
8463 (umips_12bit_offset_address_p): Likewise.
8464 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8465 (mips_base_mips16): Rename this...
8466 (mips_base_compression_flags): ...to this. Update all uses.
8467 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8468 (mips_mips16_decl_p): Delete.
8469 (mips_nomips16_decl_p): Delete.
8470 (mips_get_compress_on_flags): New function.
8471 (mips_get_compress_off_flags): New function.
8472 (mips_get_compress_mode): New function.
8473 (mips_get_compress_on_name): New function.
8474 (mips_get_compress_off_name): New function.
8475 (mips_insert_attributes): Support multiple compression types.
8476 (mips_merge_decl_attributes): Likewise.
8477 (umips_12bit_offset_address_p): New function.
8478 (mips_start_function_definition): Emit .set micromips directive.
8479 (mips_call_may_need_jalx_p): New function.
8480 (mips_function_ok_for_sibcall): Add microMIPS support.
8481 (mips_print_operand_punctuation): Support short delay slots and
8482 compact jumps.
8483 (umips_swm_mask, umips_swm_encoding): New.
8484 (umips_build_save_restore): New function.
8485 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8486 (was_mips16_p): Remove.
8487 (old_compression_mode): New.
8488 (mips_set_compression_mode): New function.
8489 (mips_set_current_function): Add microMIPS support.
8490 (mips_option_override): Likewise.
8491 (umips_save_restore_pattern_p): New function.
8492 (umips_output_save_restore): New function.
8493 (umips_load_store_pair_p_1): New function.
8494 (umips_load_store_pair_p): New function.
8495 (umips_output_load_store_pair_1): New function.
8496 (umips_output_load_store_pair): New function.
8497 (umips_movep_target_p) New function.
8498 (mips_prepare_pch_save): Add microMIPS support.
8499 * config/mips/mips.h (TARGET_COMPRESSION): New.
8500 (TARGET_CPU_CPP_BUILTINS): Update macro
8501 to use new compression flags and to support microMIPS.
8502 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8503 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8504 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8505 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8506 (ASM_SPEC): Support mmicromips and mno-micromips.
8507 (M16STORE_REG_P): New macro.
8508 (MIPS_CALL): Support TARGET_MICROMIPS.
8509 (MICROMIPS_J): New macro.
8510 (mips_base_mips16): Rename this...
8511 (mips_base_compression_flags): ...to this.
8512 (UMIPS_12BIT_OFFSET_P): New macro.
8513 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8514 (MULTILIB_DIRNAMES): Likewise.
8515
8516 2013-02-25 Tom de Vries <tom@codesourcery.com>
8517
8518 PR rtl-optimization/56131
8519 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
8520 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
8521 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
8522
8523 2013-02-25 Tobias Burnus <burnus@net-b.de>
8524
8525 * doc/invoke.texi (-fsanitize=): Move from optimization
8526 to debugging options.
8527
8528 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8529
8530 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
8531
8532 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
8533 Alexander Monakov <amonakov@ispras.ru>
8534
8535 PR middle-end/56077
8536 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
8537 flush pending lists also on non-jumps. Adjust comment.
8538
8539 2013-02-24 Catherine Moore <clm@codesourcery.com>
8540 Maciej W. Rozycki <macro@codesourcery.com>
8541 Tom de Vries <tom@codesourcery.com>
8542 Nathan Sidwell <nathan@codesourcery.com>
8543 Iain Sandoe <iain@codesourcery.com>
8544 Nathan Froyd <froydnj@codesourcery.com>
8545 Chao-ying Fu <fu@mips.com>
8546
8547 * doc/extend.texi: (micromips, nomicromips, nocompression):
8548 Document new function attributes.
8549 * doc/invoke.texi (minterlink-compressed, mmicromips,
8550 m14k, m14ke, m14kec): Document new options.
8551 (minterlink-mips16): Update documentation.
8552 * doc/md.texi (ZC, ZD): Document new constraints.
8553 * configure.ac (gcc_cv_as_micromips): Check if linker
8554 supports the .set micromips directive.
8555 * configure: Regenerate.
8556 * config.in: Regenerate.
8557 * config/mips/mips-tables.opt: Regenerate.
8558 * config/mips/micromips.md: New file.
8559 * constraints.md (ZC, AD): New constraints.
8560 * config/mips/predicates.md (movep_src_register): New predicate.
8561 (movep_src_operand): New predicate.
8562 (non_volatile_mem_operand): New predicate.
8563 * config/mips/mips.md (multimem): New type.
8564 (length): Differentiate between 17-bit and 18-bit branch offsets.
8565 (MOVEP1, MOVEP2): New mode iterator.
8566 (mov_<load>l): Use ZC constraint.
8567 (mov_<load>r): Likewise.
8568 (mov_<store>l): Likewise.
8569 (mov_<store>r): Likewise.
8570 (*branch_equality<mode>_inverted): Add microMIPS support.
8571 (*branch_equality<mode>): Likewise.
8572 (*jump_absolute): Likewise.
8573 (indirect_jump_<mode>): Likewise.
8574 (tablejump_<mode>): Likewise.
8575 (<optab>_internal): Likewise.
8576 (sibcall_internal): Likewise.
8577 (sibcall_value_internal): Likewise.
8578 (prefetch): Use constraint ZD.
8579 * config/mips/mips.opt (minterlink-compressed): New option.
8580 (minterlink-mips16): Now an alias for minterlink-compressed.
8581 (mmicromips): New option.
8582 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8583 (compare_and_swap_12): Likewise.
8584 (sync_add<mode>): Likewise.
8585 (sync_<optab>_12): Likewise.
8586 (sync_old_<optab>_12): Likewise.
8587 (sync_new_<optab>_12): Likewise.
8588 (sync_nand_12): Likewise.
8589 (sync_old_nand_12): Likewise.
8590 (sync_new_nand_12): Likewise.
8591 (sync_sub<mode>): Likewise.
8592 (sync_old_add<mode>): Likewise.
8593 (sync_old_sub<mode>): Likewise.
8594 (sync_new_add<mode>): Likewise.
8595 (sync_new_sub<mode>): Likewise.
8596 (sync_<optab><mode>): Likewise.
8597 (sync_old_<optab><mode>): Likewise.
8598 (sync_new_<optab><mode>): Likewise.
8599 (sync_nand<mode>): Likewise.
8600 (sync_old_nand<mode>): Likewise.
8601 (sync_new_nand<mode>): Likewise.
8602 (sync_lock_test_and_set<mode>): Likewise.
8603 (test_and_set_12): Likewise.
8604 (atomic_compare_and_swap<mode>): Likewise.
8605 (atomic_exchange<mode>_llsc): Likewise.
8606 (atomic_fetch_add<mode>_llsc): Likewise.
8607 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8608 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8609 (umips_save_restore_pattern_p): Likewise.
8610 (umips_load_store_pair_p): Likewise.
8611 (umips_output_load_store_pair): Likewise.
8612 (umips_movep_target_p): Likewise.
8613 (umips_12bit_offset_address_p): Likewise.
8614 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8615 (mips_base_mips16): Rename this...
8616 (mips_base_compression_flags): ...to this. Update all uses.
8617 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8618 (mips_mips16_decl_p): Delete.
8619 (mips_nomips16_decl_p): Delete.
8620 (mips_get_compress_on_flags): New function.
8621 (mips_get_compress_off_flags): New function.
8622 (mips_get_compress_mode): New function.
8623 (mips_get_compress_on_name): New function.
8624 (mips_get_compress_off_name): New function.
8625 (mips_insert_attributes): Support multiple compression types.
8626 (mips_merge_decl_attributes): Likewise.
8627 (umips_12bit_offset_address_p): New function.
8628 (mips_start_function_definition): Emit .set micromips directive.
8629 (mips_call_may_need_jalx_p): New function.
8630 (mips_function_ok_for_sibcall): Add microMIPS support.
8631 (mips_print_operand_punctuation): Support short delay slots and
8632 compact jumps.
8633 (umips_swm_mask, umips_swm_encoding): New.
8634 (umips_build_save_restore): New function.
8635 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8636 (was_mips16_p): Remove.
8637 (old_compression_mode): New.
8638 (mips_set_compression_mode): New function.
8639 (mips_set_current_function): Add microMIPS support.
8640 (mips_option_override): Likewise.
8641 (umips_save_restore_pattern_p): New function.
8642 (umips_output_save_restore): New function.
8643 (umips_load_store_pair_p_1): New function.
8644 (umips_load_store_pair_p): New function.
8645 (umips_output_load_store_pair_1): New function.
8646 (umips_output_load_store_pair): New function.
8647 (umips_movep_target_p) New function.
8648 (mips_prepare_pch_save): Add microMIPS support.
8649 * config/mips/mips.h (TARGET_COMPRESSION): New.
8650 (TARGET_CPU_CPP_BUILTINS): Update macro
8651 to use new compression flags and to support microMIPS.
8652 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8653 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8654 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8655 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8656 (ASM_SPEC): Support mmicromips and mno-micromips.
8657 (M16STORE_REG_P): New macro.
8658 (MIPS_CALL): Support TARGET_MICROMIPS.
8659 (MICROMIPS_J): New macro.
8660 (mips_base_mips16): Rename this...
8661 (mips_base_compression_flags): ...to this.
8662 (UMIPS_12BIT_OFFSET_P): New macro.
8663 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8664 (MULTILIB_DIRNAMES): Likewise.
8665
8666 2013-02-24 Jakub Jelinek <jakub@redhat.com>
8667
8668 PR target/52555
8669 * target-globals.c (save_target_globals): For init_reg_sets and
8670 target_reinit remporarily set this_fn_optabs to this_target_optabs.
8671
8672 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
8673
8674 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
8675 * config/aarch64/t-aarch64
8676 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
8677
8678 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
8679
8680 PR inline-asm/56148
8681 * lra-constraints.c (process_alt_operands): Reload operand
8682 conflicting with earlier clobber only if no more other conflicting
8683 operands.
8684
8685 2013-02-22 Jakub Jelinek <jakub@redhat.com>
8686
8687 PR sanitizer/56393
8688 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
8689 if not linking a shared library.
8690
8691 2013-02-22 Seth LaForge <sethml@google.com>
8692
8693 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
8694
8695 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
8696
8697 * config/arm/arm.md (split for extendsidi): Update condition.
8698 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
8699 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
8700 (qhs_zextenddi_cstr): Likewise.
8701
8702 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8703
8704 PR middle-end/56420
8705 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
8706 avoid signed wrapping.
8707 (expand_mult): Handle properly multiplication by
8708 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
8709 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
8710 in the compiler if coeff is HOST_WIDE_INT_MIN.
8711 (expand_divmod): Don't make ext_op1 static, change it's type to
8712 uhwi. Avoid undefined behavior in -INTVAL (op1).
8713
8714 PR rtl-optimization/50339
8715 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
8716 field.
8717 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
8718 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
8719 into splitting_ashiftrt field.
8720 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
8721 ASHIFTRT.
8722 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
8723 choices.
8724
8725 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
8726
8727 PR middle-end/56108
8728 * trans-mem.c (execute_tm_mark): Do not expand transactions that
8729 are sure to go irrevocable.
8730
8731 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
8732
8733 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
8734 scalars are valid operands.
8735
8736 2013-02-21 Martin Jambor <mjambor@suse.cz>
8737
8738 PR tree-optimization/56310
8739 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
8740 only matching indices and non-negative final offsets.
8741 (intersect_aggregates_with_edge): Pass src_idx to
8742 agg_replacements_to_vector. Pass src_idx insstead of index to
8743 intersect_with_agg_replacements.
8744
8745 2013-02-21 Martin Jambor <mjambor@suse.cz>
8746
8747 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
8748 instead of hard-wired defaults.
8749
8750 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
8751
8752 * doc/invoke.texi (MIPS Options): Update documentation of the
8753 floating-point multiply-accumulate instruction restrictions.
8754
8755 2013-02-21 Kostya Serebryany <kcc@google.com>
8756
8757 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
8758 asan_shadow_offset on x86_64 linux.
8759
8760 2013-02-21 Richard Biener <rguenther@suse.de>
8761
8762 PR tree-optimization/56415
8763 Revert
8764 2013-02-11 Richard Biener <rguenther@suse.de>
8765
8766 PR tree-optimization/56273
8767 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8768 first VRP run.
8769
8770 2013-02-21 Jakub Jelinek <jakub@redhat.com>
8771
8772 PR bootstrap/56258
8773 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
8774 instead of @itemx.
8775
8776 PR inline-asm/56405
8777 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
8778 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
8779
8780 2013-02-20 Jan Hubicka <jh@suse.cz>
8781
8782 PR tree-optimization/56265
8783 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8784 when target is referenced for first time.
8785
8786 2013-02-20 Richard Biener <rguenther@suse.de>
8787
8788 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8789 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8790 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8791 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8792 not return anything.
8793 (rename_ssa_copies): Do not remove unused locals.
8794 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
8795 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
8796 * passes.c (execute_function_todo): Do not schedule unused locals
8797 removal if cleanup_tree_cfg did something.
8798 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8799 about the number of removed locals.
8800
8801 2013-02-20 Richard Biener <rguenther@suse.de>
8802
8803 PR tree-optimization/56398
8804 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
8805
8806 2013-02-20 Martin Jambor <mjambor@suse.cz>
8807
8808 PR tree-optimization/55334
8809 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8810 restricted pointers to arrays.
8811
8812 2013-02-20 Richard Biener <rguenther@suse.de>
8813 Jakub Jelinek <jakub@redhat.com>
8814
8815 PR tree-optimization/56396
8816 * tree-ssa-ccp.c (n_const_val): New static variable.
8817 (get_value): Return NULL for SSA names we don't have a lattice
8818 entry for.
8819 (ccp_initialize): Initialize n_const_val.
8820 * tree-ssa-copy.c (n_copy_of): New static variable.
8821 (init_copy_prop): Initialize n_copy_of.
8822 (get_value): Return NULL_TREE for SSA names we don't have a
8823 lattice entry for.
8824
8825 2013-02-20 Martin Jambor <mjambor@suse.cz>
8826
8827 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8828
8829 2013-02-20 Richard Biener <rguenther@suse.de>
8830
8831 * genpreds.c (write_lookup_constraint): Do not compare first
8832 letter of the constraint again.
8833
8834 2013-02-20 Richard Biener <rguenther@suse.de>
8835
8836 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8837 and ceil_log2.
8838 (get_use_iv_cost): Terminate hashtable walk when coming across
8839 an empty entry.
8840
8841 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8842
8843 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8844 reassociation for avx2 targets.
8845
8846 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8847
8848 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8849 Add version check for v8.10.a to enable microblaze_has_clz
8850 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
8851 version and TARGET_PATTERN_COMPARE check
8852 * config/microblaze/microblaze.md: New clzsi2 instruction
8853
8854 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8855
8856 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
8857 function before branching.
8858
8859 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8860
8861 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8862 DUMP_INSN_RTX_UID.
8863 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8864
8865 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8866
8867 PR middle-end/55889
8868 * sel-sched.c: Include ira.h.
8869 (implicit_clobber_conflict_p): New function.
8870 (moveup_expr): Use it.
8871 * Makefile.in (sel-sched.o): Depend on ira.h.
8872
8873 2013-02-19 Richard Biener <rguenther@suse.de>
8874
8875 PR tree-optimization/56384
8876 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8877 (vn_hash_type): Split out from ...
8878 (vn_hash_constant_with_type): ... here.
8879 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8880 (vn_phi_eq): Compare types from vn_phi_s structure.
8881 (vn_phi_lookup): Populate vn_phi_s type.
8882 (vn_phi_insert): Likewise.
8883
8884 2013-02-19 Jakub Jelinek <jakub@redhat.com>
8885
8886 PR tree-optimization/56350
8887 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8888 if haven't found reduction or nested cycle operand, rather than
8889 asserting we must find it.
8890
8891 PR tree-optimization/56381
8892 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8893 to fold_build3.
8894
8895 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
8896 Jakub Jelinek <jakub@redhat.com>
8897
8898 PR target/52555
8899 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8900 (swap_optab_enable): Same.
8901 (init_all_optabs): Use argument instead of global.
8902 * tree.h (struct tree_optimization_option): New field target_optabs.
8903 * expr.h (init_all_optabs): Add argument to prototype.
8904 (TREE_OPTIMIZATION_OPTABS): New.
8905 (save_optabs_if_changed): Protoize.
8906 * optabs.h: Declare this_fn_optabs.
8907 * optabs.c (save_optabs_if_changed): New.
8908 Declare this_fn_optabs.
8909 (init_optabs): Add argument to init_all_optabs() call.
8910 * function.c (invoke_set_current_function_hook): Handle per
8911 function optabs.
8912 * function.h (struct function): New field optabs.
8913 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8914 optimization_current_node has changed.
8915 * target-globals.h (save_target_globals_default_opts): Protoize.
8916 * target-globals.c (save_target_globals_default_opts): New.
8917
8918 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8919
8920 PR target/56347
8921 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8922 registers %fr12 and %fr12R as call used.
8923
8924 PR target/56214
8925 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
8926 and HImode, require all displacements to be an integer multiple of
8927 their mode size.
8928 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8929 only allow QImode and HImode when reload is in progress and strict is
8930 true. Likewise for symbolic addresses. Use base14_operand to check
8931 displacements in REG+BASE addresses.
8932
8933 2013-02-18 Richard Biener <rguenther@suse.de>
8934
8935 PR tree-optimization/56366
8936 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8937 handle sign-conversion of outer-loop initial induction value.
8938
8939 2013-02-18 Richard Biener <rguenther@suse.de>
8940
8941 PR middle-end/56349
8942 * cfghooks.c (merge_blocks): If we merge a latch into another
8943 block adjust references to it.
8944 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8945 (verify_loop_structure): Verify that a recorded latch is in fact
8946 a latch.
8947
8948 2013-02-18 Richard Biener <rguenther@suse.de>
8949
8950 PR tree-optimization/56321
8951 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8952 order SSA name release and virtual operand unlinking.
8953
8954 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8955
8956 * config/microblaze/microblaze.md (save_stack_block): Define.
8957 (restore_stack_block): Likewise.
8958
8959 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8960
8961 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8962 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8963 * config/microblaze/microblaze.c (microblaze_option_override):
8964 Bail out early for PIC modes when target does not support PIC.
8965
8966 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8967
8968 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8969 Replace with a microblaze version.
8970 (microblaze_trampoline_init): Adapt for microblaze.
8971 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8972 microblaze.
8973
8974 2013-02-16 Jakub Jelinek <jakub@redhat.com>
8975 Dodji Seketeli <dodji@redhat.com>
8976
8977 PR asan/56330
8978 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
8979 (instrument_mem_region_access): Do not forget to always put
8980 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8981 0) statement, even for cases where either 'base' or 'base + len'
8982 are not instrumented -- because they have been previously
8983 instrumented. Simplify the logic by putting all the statements
8984 instrument 'base + len' inside a sequence, and then insert that
8985 sequence right before the current insertion point. Then, to
8986 instrument 'base + len', just get an iterator on that statement.
8987 And do not forget to update the pointer to iterator the function
8988 received as argument.
8989
8990 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8991
8992 PR rtl-optimization/56348
8993 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8994
8995 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8996
8997 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8998 (clean_graph_dump_file): Pass base to start_graph_dump.
8999
9000 2013-02-14 Richard Henderson <rth@redhat.com>
9001
9002 PR target/55941
9003 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9004
9005 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9006
9007 * collect2-aix.h: Define F_LOADONLY.
9008
9009 2013-02-14 Richard Biener <rguenther@suse.de>
9010
9011 PR lto/50494
9012 * varasm.c (output_constant_def_1): Get the decl representing
9013 the constant as argument.
9014 (output_constant_def): Wrap output_constant_def_1.
9015 (make_decl_rtl): Use output_constant_def_1 with the decl
9016 representing the constant.
9017 (build_constant_desc): Optionally re-use a decl already
9018 representing the constant.
9019 (tree_output_constant_def): Adjust.
9020
9021 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9022
9023 Fix an asan crash
9024 * asan.c (instrument_builtin_call): Really put the length of the
9025 second source argument into src1_len.
9026
9027 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9028
9029 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9030 argument. If it is false, don't create edge from then_bb to
9031 fallthru_bb.
9032 (insert_if_then_before_iter): Pass true to it.
9033 (build_check_stmt): Pass false to it.
9034 (transform_statements): Flush hash table only on extended basic
9035 block boundaries, rather than at the beginning of every bb.
9036 Don't flush hash table on nonfreeing_call_p calls.
9037 * tree-flow.h (nonfreeing_call_p): New prototype.
9038 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9039
9040 2013-02-13 David S. Miller <davem@davemloft.net>
9041
9042 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9043
9044 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9045
9046 PR target/56184
9047 * ira.c (max_regno_before_ira): Move from ...
9048 (ira): ... here.
9049 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9050 vec_safe_length.
9051
9052 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9053
9054 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9055
9056 2013-02-13 Richard Biener <rguenther@suse.de>
9057
9058 PR lto/56295
9059 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9060 globals in MEM_REFs.
9061
9062 2013-02-13 Richard Biener <rguenther@suse.de>
9063
9064 * loop-init.c (loop_optimizer_init): Clear loop state when
9065 re-initializing preserved loops.
9066 * loop-unswitch.c (unswitch_single_loop): Return whether
9067 we unswitched the loop. Do not verify loop state here.
9068 (unswitch_loops): When we unswitched a loop discover new loops.
9069
9070 2013-02-13 Kostya Serebryany <kcc@google.com>
9071
9072 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9073 on x86_64 linux.
9074 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9075
9076 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9077
9078 Avoid instrumenting duplicated memory access in the same basic block
9079 * Makefile.in (asan.o): Add new dependency on hash-table.h
9080 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9081 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9082 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9083 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9084 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9085 (get_mem_ref_of_assignment): New functions.
9086 (get_mem_refs_of_builtin_call): Extract from
9087 instrument_builtin_call and tweak a little bit to make it fit with
9088 the new signature.
9089 (instrument_builtin_call): Use the new
9090 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9091 of is_gimple_builtin_call.
9092 (instrument_derefs, instrument_mem_region_access): Insert the
9093 instrumented memory reference into the hash table.
9094 (maybe_instrument_assignment): Renamed instrument_assignment into
9095 this, and change it to advance the iterator when instrumentation
9096 actually happened and return true in that case. This makes it
9097 homogeneous with maybe_instrument_assignment, and thus give a
9098 chance to callers to be more 'regular'.
9099 (transform_statements): Clear the memory reference hash table
9100 whenever we enter a new BB, when we cross a function call, or when
9101 we are done transforming statements. Use
9102 maybe_instrument_assignment instead of instrumentation. No more
9103 need to special case maybe_instrument_assignment and advance the
9104 iterator after calling it; it's now handled just like
9105 maybe_instrument_call. Update comment.
9106
9107 2013-02-13 Richard Biener <rguenther@suse.de>
9108
9109 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9110 Fix loop discovery code.
9111
9112 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9113
9114 PR inline-asm/56148
9115 * lra-constraints.c (process_alt_operands): Match early clobber
9116 operand with itself. Check conflicts with earlyclobber only if
9117 the operand is not reloaded. Prefer to reload conflicting operand
9118 if earlyclobber and matching operands are the same.
9119
9120 2013-02-12 Richard Biener <rguenther@suse.de>
9121
9122 PR lto/56297
9123 * lto-streamer-out.c (write_symbol): Do not output symbols
9124 for hard register variables.
9125
9126 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9127
9128 PR target/54222
9129 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9130 (umulsidi3_insn, mulsidi3_insn): New insns.
9131
9132 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9133
9134 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9135 (struct tune_params): Add vec_costs field.
9136 * config/arm/arm.c (arm_builtin_vectorization_cost)
9137 (arm_add_stmt_cost): New functions.
9138 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9139 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9140 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9141 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9142 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9143 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9144 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9145
9146 2013-02-12 Richard Biener <rguenther@suse.de>
9147
9148 PR lto/56295
9149 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9150 decls again if possible.
9151
9152 2013-02-12 Richard Biener <rguenther@suse.de>
9153
9154 PR middle-end/56288
9155 * tree-ssa.c (verify_ssa_name): Fix check, move
9156 SSA_NAME_IN_FREE_LIST check up.
9157
9158 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9159 Steven Bosscher <steven@gcc.gnu.org>
9160
9161 PR rtl-optimization/56151
9162 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9163 equal to op0 or op1, and last_insn pattern is CODE operation
9164 with MEM dest and one of the operands matches that MEM.
9165
9166 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9167
9168 * doc/extend.texi: Document Function Multiversioning and "default"
9169 parameter string to target attribute.
9170 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9171 target attribute parameter is "default".
9172 (ix86_compare_version_priority): Remove checks for target attribute.
9173 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9174 Remove check for target attribute equal to NULL. Add assert.
9175 (ix86_generate_version_dispatcher_body): Change error to sorry.
9176
9177 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9178 Jack Howarth <howarth@bromo.med.uc.edu>
9179 Patrick Marlier <patrick.marlier@gmail.com>
9180
9181 PR libitm/55693
9182 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9183 define ENDFILE_SPEC as TM_DESTRUCTOR.
9184 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9185
9186 2013-02-11 Alexander Potapenko <glider@google.com>
9187 Jack Howarth <howarth@bromo.med.uc.edu>
9188 Jakub Jelinek <jakub@redhat.com>
9189
9190 PR sanitizer/55617
9191 * config/darwin.c (cdtor_record): Rename ctor_record.
9192 (sort_cdtor_records): Rename sort_ctor_records.
9193 (finalize_dtors): New routine to sort destructors by
9194 priority before use in assemble_integer.
9195 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9196
9197 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9198
9199 PR rtl-optimization/56275
9200 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9201 offset is non-negative and less than cmode size before
9202 calling simplify_subreg.
9203
9204 2013-02-11 Richard Biener <rguenther@suse.de>
9205
9206 PR tree-optimization/56264
9207 * cfgloop.h (fix_loop_structure): Adjust prototype.
9208 * loop-init.c (fix_loop_structure): Return the number of
9209 newly discovered loops.
9210 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9211 are discovered, do a full loop-closed SSA rewrite.
9212
9213 2013-02-11 Richard Biener <rguenther@suse.de>
9214
9215 PR tree-optimization/56273
9216 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9217 first VRP run.
9218 (check_array_ref): Fix missing newline in dumps.
9219 (search_for_addr_array): Likewise.
9220
9221 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9222
9223 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9224
9225 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9226
9227 PR target/56256
9228 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9229
9230 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9231
9232 PR rtl-optimization/56246
9233 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9234 reload pseudo.
9235 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9236 constraints are satisfied.
9237
9238 2013-02-08 Jeff Law <law@redhat.com>
9239
9240 PR debug/53948
9241 * emit-rtl.c (reg_is_parm_p): New function.
9242 * regs.h (reg_is_parm_p): New prototype.
9243 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9244 callee-clobbered registers.
9245
9246 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9247
9248 PR target/56043
9249 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9250 If there is no implicit builtin declaration, just return NULL.
9251
9252 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9253
9254 * config/i386/sse.md (FMAMODEM): New mode iterator.
9255 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9256 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9257
9258 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9259
9260 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9261 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9262 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9263
9264 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9265
9266 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9267 (microblaze*-*-elf): Likewise.
9268 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9269 LINK_SPEC.
9270 * config/microblaze/microblaze-c.c: Add builtin defines for
9271 _LITTLE_ENDIAN and _BIG_ENDIAN.
9272 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9273 add to TARGET_DEFAULT flags.
9274 Expand ASM_SPEC and LINK_SPEC.
9275 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9276 * config/microblaze/microblaze.md: Update extendsidi2 and
9277 movdi_internal instructions to use low-order / high-order reg
9278 print_operands.
9279 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9280 options and inversemask / mask of LITTLE_ENDIAN.
9281 * config/microblaze/t-microblaze: Expand multilib options to
9282 include mlittle-endian (le) and update exceptions patterns.
9283
9284 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9285
9286 PR rtl-optimization/56195
9287 * lra-constraints.c (get_reload_reg): Don't reuse regs
9288 if they have smaller mode than requested, if they have
9289 wider mode than requested, try to return a SUBREG.
9290
9291 PR tree-optimization/56250
9292 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9293 if type is unsigned and code isn't MULT_EXPR.
9294
9295 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9296
9297 PR tree-optimization/56064
9298 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9299 bits according to mode.
9300 * fixed-value.h (fixed_from_double_int)
9301 (const_fixed_from_double_int): Adjust comments.
9302
9303 2013-02-08 Richard Biener <rguenther@suse.de>
9304
9305 PR lto/56231
9306 * lto-streamer.h (struct data_in): Remove current_file, current_line
9307 and current_col members.
9308 * lto-streamer-out.c (lto_output_location): Stream changed bits
9309 en-block for efficiency.
9310 * lto-streamer-in.c (clear_line_info): Remove.
9311 (lto_input_location): Cache current file, line and column
9312 globally via local statics. Read changed bits en-block.
9313 (input_function): Do not call clear_line_info.
9314 (lto_read_body): Likewise.
9315 (lto_input_toplevel_asms): Likewise.
9316
9317 2013-02-08 Michael Matz <matz@suse.de>
9318
9319 PR tree-optimization/52448
9320 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9321 (nt_call_phase): New static.
9322 (add_or_mark_expr): Only mark accesses with newer phase than any
9323 call seen.
9324 (nonfreeing_call_p): New.
9325 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9326 (nt_fini_block): Keep blocks marked as visited.
9327 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9328
9329 2013-02-08 Richard Biener <rguenther@suse.de>
9330
9331 * ira.c (ira): Free broken dominator information.
9332
9333 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9334
9335 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9336
9337 2013-02-08 Marek Polacek <polacek@redhat.com>
9338
9339 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9340
9341 2013-02-08 Richard Biener <rguenther@suse.de>
9342
9343 PR middle-end/56181
9344 * cfgloop.h (flow_loops_find): Adjust.
9345 (bb_loop_header_p): Declare.
9346 * cfgloop.c (bb_loop_header_p): New function split out from ...
9347 (flow_loops_find): ... here. Adjust function signature,
9348 support incremental loop structure update.
9349 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9350 * cfgloopmanip.c (fix_loop_structure): Move ...
9351 * loop-init.c (fix_loop_structure): ... here.
9352 (apply_loop_flags): Split out from ...
9353 (loop_optimizer_init): ... here.
9354 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9355 in incremental mode, only remove dead loops here.
9356
9357 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9358
9359 PR target/54222
9360 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9361 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9362 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9363 (*round<mode>3.libgcc): New insns for fixed-modes.
9364 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9365 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9366 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9367 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9368 implementations. Define to __builtin_avr_absFX,
9369 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9370 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9371 __builtin_avr_countlsFX, respectively.
9372 * config/avr/avr-c.c (target.h): Include it.
9373 (enum avr_builtin_id): New enum.
9374 (avr_resolve_overloaded_builtin): New static function.
9375 (avr_register_target_pragmas): Use it to set
9376 targetm.resolve_overloaded_builtin.
9377 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9378 tree nodes used by DEF_BUILTIN.
9379 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9380 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9381 <AVR_BUILTIN_xxBITS>: Same.
9382
9383 2013-02-08 Richard Biener <rguenther@suse.de>
9384
9385 * cfgloop.c (verify_loop_structure): Properly handle
9386 a loop exiting to another loop header.
9387 * ira-int.h (ira_loops): Remove.
9388 * ira.c (ira_loops): Remove.
9389 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9390 (do_reload): Use loop_optimizer_finalize.
9391 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9392 number_of_loops to access the loop tree.
9393 (more_one_region_p): Likewise.
9394 (finish_loop_tree_nodes): Likewise.
9395 (rebuild_regno_allocno_maps): Likewise.
9396 (mark_loops_for_removal): Likewise.
9397 (mark_all_loops_for_removal): Likewise.
9398 (remove_unnecessary_regions): Likewise.
9399 (ira_build): Likewise.
9400 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9401
9402 2013-02-08 Richard Biener <rguenther@suse.de>
9403
9404 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9405 * ipa-pure-const.c (analyze_function): Avoid calling
9406 mark_irreducible_loops twice.
9407 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9408
9409 2013-02-07 David S. Miller <davem@davemloft.net>
9410
9411 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9412 on 'reg'.
9413 * var-tracking.c (vt_add_function_parameter): Test the presence of
9414 HAVE_window_save properly and do not remap argument registers when
9415 we have a leaf function.
9416
9417 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9418
9419 PR bootstrap/56227
9420 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9421 instead of "ll".
9422 * config/i386/i386.c (ix86_print_operand): Ditto.
9423
9424 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9425
9426 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9427
9428 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9429
9430 PR rtl-optimization/56225
9431 * lra-constraints.c (process_alt_operands): Check that reload hard
9432 reg can hold value for strict_low_part.
9433
9434 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9435
9436 PR debug/56154
9437 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9438 dwarf2out_end_function.
9439 (in_first_function_p, maybe_at_text_label_p,
9440 first_loclabel_num_not_at_text_label): New variables.
9441 (dwarf2out_var_location): In the first function find out
9442 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9443 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9444 functions.
9445
9446 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9447
9448 PR rtl-optimization/56178
9449 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9450 SUBREG of a register. Tidy up related block of code.
9451 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9452 note if the source is a register or a SUBREG of a register.
9453
9454 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9455
9456 PR target/56228
9457 * config/rs6000/rs6000.md (ptrm): New mode attr.
9458 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
9459 call_value_indirect_aix<pttrsize>,
9460 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
9461 m in constraints.
9462
9463 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9464
9465 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
9466 if -bnortl. Convert to strcmp and strncmp.
9467
9468 2013-02-07 Alan Modra <amodra@gmail.com>
9469
9470 PR target/54009
9471 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
9472 addresses won't wrap when offsetting.
9473 (rs6000_secondary_reload): Provide secondary reloads needed for
9474 wrapping LO_SUM addresses.
9475
9476 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
9477
9478 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
9479 MACH, just __MACH__.
9480
9481 2013-02-06 Richard Biener <rguenther@suse.de>
9482
9483 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
9484 instead of calling fix_loop_structure.
9485
9486 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9487
9488 PR middle-end/56217
9489 * omp-low.c (use_pointer_for_field): Return false if
9490 lower_send_shared_vars doesn't generate any copy-out code.
9491
9492 2013-02-06 Tom de Vries <tom@codesourcery.com>
9493
9494 PR rtl-optimization/56131
9495 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
9496 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
9497 of the label is NULL. Add comment.
9498
9499 2013-02-05 Jakub Jelinek <jakub@redhat.com>
9500
9501 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
9502
9503 PR sanitizer/55374
9504 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
9505 (STATIC_LIBTSAN_LIBS): Likewise.
9506 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
9507 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
9508 is defined, don't add anything else beyond that.
9509 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
9510 (LINK_COMMAND_SPEC): Use them.
9511
9512 PR tree-optimization/56205
9513 * tree-stdarg.c (check_all_va_list_escapes): Return true if
9514 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
9515 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
9516
9517 2013-02-05 Richard Biener <rguenther@suse.de>
9518
9519 PR tree-optimization/53342
9520 PR tree-optimization/53185
9521 * tree-vectorizer.h (vect_check_strided_load): Remove.
9522 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
9523 not disallow peeling for vectorized strided loads.
9524 (vect_check_strided_load): Make static and simplify.
9525 (vect_analyze_data_refs): Adjust.
9526 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
9527 correctly when vectorizing strided loads.
9528
9529 2013-02-05 Richard Biener <rguenther@suse.de>
9530
9531 * doc/install.texi: Refer to ISL, not PPL.
9532
9533 2013-02-05 Jan Hubicka <jh@suse.cz>
9534
9535 PR tree-optimization/55789
9536 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
9537
9538 2013-02-05 Jan Hubicka <jh@suse.cz>
9539
9540 PR tree-optimization/55789
9541 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
9542 the dead call anyway.
9543
9544 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
9545
9546 PR sanitizer/55374
9547 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
9548
9549 2013-02-04 Alexander Potapenko <glider@google.com>
9550 Jack Howarth <howarth@bromo.med.uc.edu>
9551 Jakub Jelinek <jakub@redhat.com>
9552
9553 PR sanitizer/55617
9554 * config/darwin.c (sort_ctor_records): Stabilized qsort
9555 on constructor priority by using original position.
9556 (finalize_ctors): New routine to sort constructors by
9557 priority before use in assemble_integer.
9558 (machopic_asm_out_constructor): Use finalize_ctors if needed.
9559
9560 2013-02-04 Jakub Jelinek <jakub@redhat.com>
9561
9562 PR libstdc++/54314
9563 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
9564 about visibility on artificial decls.
9565 * config/sol2.c (solaris_assemble_visibility): Likewise.
9566
9567 2013-02-04 Kai Tietz <ktietz@redhat.com>
9568
9569 PR target/56186
9570 * config/i386/i386.c (function_value_ms_64): Add additional valtype
9571 argument and improve checking of return-argument types for 16-byte
9572 modes.
9573 (ix86_function_value_1): Add additional valtype argument on call
9574 of function_value_64.
9575 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
9576 handling infunction_value_64 function.
9577
9578 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
9579
9580 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
9581
9582 2013-02-04 Richard Biener <rguenther@suse.de>
9583
9584 PR tree-optimization/56188
9585 * tree-ssa-structalias.c (label_visit): Consider case with
9586 initially non-empty points-to set.
9587 (perform_var_substitution): Dump node mapping and clean up.
9588
9589 2013-02-04 Richard Guenther <rguenther@suse.de>
9590
9591 PR lto/56168
9592 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
9593 node prevail as last resort.
9594 (lto_symtab_merge_decls): Remove guard on LTRANS here.
9595 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
9596
9597 2013-02-04 Richard Biener <rguenther@suse.de>
9598
9599 PR tree-optimization/56113
9600 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
9601 Merge into ...
9602 (equiv_class_lookup_or_add): ... this.
9603 (label_visit): Adjust and fix error in previous patch.
9604 (perform_var_substitution): Adjust.
9605
9606 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9607
9608 * config/sh/divtab.c: Fix formatting and comments throughout the file.
9609 * config/sh/sh4-300.md: Likewise.
9610 * config/sh/sh4a.md: Likewise.
9611 * config/sh/constraints.md: Likewise.
9612 * config/sh/sh.md: Likewise.
9613 * config/sh/netbsd-elf.h: Likewise.
9614 * config/sh/predicates.md: Likewise.
9615 * config/sh/sh-protos.h: Likewise.
9616 * config/sh/ushmedia.h: Likewise.
9617 * config/sh/linux.h: Likewise.
9618 * config/sh/sh.c: Likewise.
9619 * config/sh/superh.h: Likewise.
9620 * config/sh/elf.h: Likewise.
9621 * config/sh/sh4.md: Likewise.
9622 * config/sh/sh.h: Likewise.
9623
9624 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9625
9626 * config/pa/constraints.md: Adjust unused letters. Change "T"
9627 constraint to match_test floating_point_store_memory_operand().
9628 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
9629 (base14_operand): New.
9630 (floating_point_store_memory_operand): New.
9631 (integer_store_memory_operand): Revise to use base14_operand and
9632 reg_plus_base_memory_operand.
9633 (move_dest_operand): Allow symbolic_memory_operands.
9634 (symbolic_memory_operand): Check for LO_SOM.
9635 (symbolic_operand): Change default case to break.
9636 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
9637 CONST_DOUBLE values to be reloaded by putting them into memory when
9638 the destination is a floating point register.
9639 (movdf): Remove code to handle CONST_DOUBLE.
9640 (movsf): Likewise.
9641 (reload_indf_r1): New.
9642 (reload_insf_r1): New.
9643 Consistently use "Q" and "T" constraints with integer and floating
9644 point move instructions, respectively.
9645 (movdi): Remove FAIL.
9646 Change predicate for source operand unamed DImode move from
9647 general_operand to move_src_operand.
9648 (umulsidi3): Change predicate for destination operand to
9649 register_operand.
9650 Likewise for similar unamed patterns.
9651 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
9652 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
9653 (hppa_legitimize_address): Simplify mask calculation.
9654 (pa_emit_move_sequence): Revised handling of secondary reloads from
9655 REG+D addresses for floating point loads and stores. Directly handle
9656 loading CONST0_RTX (mode) to a floating point register.
9657 (pa_secondary_reload): Handle reloading DF and SFmode constant values
9658 to floating point registers. Don't restrict secondary reloads to
9659 floating point registers to integer modes. Revise some comments and
9660 cleanup some code.
9661 (TARGET_LEGITIMATE_ADDRESS_P): Define.
9662 (pa_legitimate_address_p): New.
9663 (pa_legitimize_reload_address): New.
9664 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
9665 (STRICT_REG_OK_FOR_BASE_P): New.
9666 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
9667 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
9668
9669 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
9670 Andrew Dixie <andrewd@gentrack.com>
9671
9672 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
9673 flag set.
9674
9675 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
9676
9677 * expmed.c (extract_bit_field_1): Pass the full width of the
9678 structure to get_best_reg_extraction_insn.
9679
9680 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9681
9682 PR target/54601
9683 * configure.ac (use_cxa_atexit): Add AIX.
9684 * configure: Regenerate.
9685
9686 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
9687
9688 2013-02-01 Jakub Jelinek <jakub@redhat.com>
9689
9690 PR debug/54793
9691 * final.c (need_profile_function): New variable.
9692 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
9693 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
9694 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
9695 notes, targetm.asm_out.function_prologue doesn't emit anything,
9696 HAVE_prologue and profiler should be emitted before prologue,
9697 set need_profile_function instead of emitting it.
9698 (final_scan_insn): If need_profile_function, emit
9699 profile_function on the first NOTE_INSN_BASIC_BLOCK or
9700 NOTE_INSN_FUNCTION_BEG note.
9701
9702 2013-02-01 Richard Henderson <rth@redhat.com>
9703
9704 * config/rs6000/rs6000.md (smulditi3): New.
9705 (umulditi3): New.
9706
9707 * config/alpha/alpha.md (umulditi3): New.
9708
9709 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
9710
9711 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
9712 (ASM_OUTPUT_ALIGNED_LOCAL): New.
9713
9714 2013-02-01 Richard Biener <rguenther@suse.de>
9715
9716 PR tree-optimization/56113
9717 * tree-ssa-structalias.c (label_visit): Reduce work for
9718 single-predecessor nodes.
9719
9720 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
9721
9722 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
9723 range isn't testing for zero.
9724
9725 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
9726
9727 PR middle-end/56113
9728 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
9729
9730 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
9731 Nick Clifton <nickc@redhat.com>
9732
9733 * config/v850/constraints.md (Q): Define as a memory constraint.
9734 * config/v850/predicates.md (label_ref_operand): New predicate.
9735 (e3v5_shift_operand): New predicate.
9736 (ior_operator): New predicate.
9737 * config/v850/t-v850: Add e3v5 multilib.
9738 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
9739 (v850_gen_movdi): Prototype.
9740 * config/v850/v850.c: Add support for e3v5 architecture.
9741 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
9742 TARGET_V850E_UP.
9743 (construct_save_jarl): Add e3v5 long JARL support.
9744 (v850_adjust_insn_length): New function. Adjust length of call
9745 insns when using e3v5 instructions.
9746 (v850_gen_movdi): New function: Generate instructions to move a
9747 DImode value.
9748 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
9749 (CPP_SPEC): Define __v850e3v5__ as appropriate.
9750 (TARGET_USE_FPU): Enable for e3v5.
9751 (CONST_OK_FOR_W): New macro.
9752 (ADJUST_INSN_LENGTH): Define.
9753 * config/v850/v850.md (UNSPEC_LOOP): Define.
9754 (attr cpu): Add v850e3v5.
9755 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
9756 (movdi): New pattern.
9757 (movdi_internal): New pattern.
9758 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
9759 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
9760 (cstoresf4): Likewise.
9761 (cstoredf4): Likewise.
9762 (insv): New pattern.
9763 (rotlso3_a): New pattern.
9764 (rotlsi3_b): New pattern
9765 (rotlsi3_v850e3v5): New pattern.
9766 (doloop_begin): New pattern.
9767 (fix_loop_counter): New pattern.
9768 (doloop_end): New pattern.
9769 (branch_normal): Add e3v5 long branch support.
9770 (branch_invert): Likewise.
9771 (branch_z_normal): Likewise.
9772 (branch_z_invert): Likewise.
9773 (branch_nz_normal): Likewise.
9774 (branch_nz_invert): Likewise.
9775 (call_internal_short): Add e3v5 register-indirect JARL support.
9776 (call_internal_long): Likewise.
9777 (call_value_internal_short): Likewise.
9778 (call_value_internal_long): Likewise.
9779 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
9780 (mloop): New option.
9781 * config.gcc: Add support for configuring v840e3v5 target.
9782 * doc/invoke.texi: Document new v850 specific command line options.
9783
9784 2013-01-31 Paul Koning <ni1d@arrl.net>
9785
9786 PR debug/55059
9787 PR debug/54508
9788 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9789 children if parent is a class.
9790 (prune_unused_types_prune): Don't add DW_AT_declaration.
9791
9792 2013-01-31 Richard Biener <rguenther@suse.de>
9793
9794 PR tree-optimization/56157
9795 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9796 match up operand with SLP child.
9797
9798 2013-01-31 Jason Merrill <jason@redhat.com>
9799
9800 PR debug/54410
9801 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9802 parameters the first time.
9803 (gen_scheduled_generic_parms_dies): Check completeness here.
9804
9805 2013-01-31 Richard Biener <rguenther@suse.de>
9806
9807 PR middle-end/53073
9808 * common.opt (faggressive-loop-optimizations): New flag,
9809 enabled by default.
9810 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9811 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9812 infer_loop_bounds_from_undefined by it.
9813
9814 2013-01-31 Richard Biener <rguenther@suse.de>
9815
9816 PR tree-optimization/56150
9817 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9818 visit virtual operands.
9819 (find_uses_to_rename_bb): Likewise.
9820
9821 2013-01-31 Richard Biener <rguenther@suse.de>
9822
9823 PR tree-optimization/56150
9824 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9825 mixed store non-store stmts.
9826
9827 2013-01-30 Jakub Jelinek <jakub@redhat.com>
9828
9829 PR sanitizer/55374
9830 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9831 LIBASAN_EARLY_SPEC is defined.
9832 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9833 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9834 before %o.
9835 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9836
9837 PR c++/55742
9838 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9839 invalid args instead of ICEing on it.
9840 (ix86_valid_target_attribute_tree): Return error_mark_node if
9841 ix86_valid_target_attribute_inner_p failed.
9842 (ix86_valid_target_attribute_p): Return false only if
9843 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9844 target("default") attribute.
9845 (sorted_attr_string): Change argument from const char * to tree,
9846 merge in all target attribute arguments rather than just one.
9847 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9848 instead of free. Avoid using strcat.
9849 (ix86_mangle_function_version_assembler_name): Mangle
9850 target("default") as if no target attribute is present. Adjust
9851 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9852 instead of xmalloc and XDELETEVEC instead of free.
9853 (ix86_function_versions): Don't return true if one of the decls
9854 doesn't have target attribute. If they don't and one of the decls
9855 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9856 sorted_attr_string caller. Use XDELETEVEC instead of free.
9857 (ix86_supports_function_versions): Remove.
9858 (make_name): Fix up formatting.
9859 (make_dispatcher_decl): Remove resolver_name and its initialization.
9860 Avoid leaking memory.
9861 (is_function_default_version): Return true if there is
9862 target("default") attribute rather than no target attribute at all.
9863 (make_resolver_func): Avoid leaking memory.
9864 (ix86_generate_version_dispatcher_body): Likewise.
9865 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9866 * target.def (supports_function_versions): Remove.
9867 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9868 * doc/tm.texi: Regenerated.
9869
9870 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9871
9872 PR rtl-optimization/56144
9873 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9874 for values with side effects.
9875
9876 2013-01-30 Richard Biener <rguenther@suse.de>
9877
9878 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9879 (sparseset_pop): Likewise.
9880 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9881 to be able to use quick_push in the worker loop.
9882
9883 2013-01-30 Marek Polacek <polacek@redhat.com>
9884
9885 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9886
9887 2013-01-30 Richard Biener <rguenther@suse.de>
9888
9889 PR lto/56147
9890 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
9891
9892 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
9893
9894 PR tree-optimization/56064
9895 * fixed-value.c (fixed_from_double_int): New function.
9896 * fixed-value.h (fixed_from_double_int): New prototype.
9897 (const_fixed_from_double_int): New static inline function.
9898 * fold-const.c (native_interpret_fixed): New static function.
9899 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9900 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9901 (native_encode_fixed): New static function.
9902 (native_encode_expr) <FIXED_CST>: Use it.
9903 (native_interpret_int): Move double_int worker code to...
9904 * double-int.c (double_int::from_buffer): ...this new static method.
9905 * double-int.h (double_int::from_buffer): Prototype it.
9906
9907 2013-01-30 Richard Biener <rguenther@suse.de>
9908
9909 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9910 New pointer-map and obstack.
9911 (init_alias_vars): Allocate pointer-map and obstack.
9912 (delete_points_to_sets): Free them.
9913 (find_what_var_points_to): Cache result.
9914 (find_what_p_points_to): Adjust for changed interface of
9915 find_what_var_points_to.
9916 (compute_points_to_sets): Likewise.
9917 (ipa_pta_execute): Likewise.
9918
9919 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9920
9921 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9922 * configure: Regenerate.
9923 * config.in: Regenerate.
9924 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9925 #nobits/#progbits if supported.
9926
9927 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9928
9929 PR target/56121
9930 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9931 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9932 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9933
9934 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9935
9936 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9937 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
9938
9939 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9940
9941 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9942 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
9943
9944 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9945
9946 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9947 declaration.
9948 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9949 * config/arm/cortex-a7.md: New bypasses using
9950 arm_mac_accumulator_is_result.
9951
9952 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9953
9954 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
9955 (cortex_a7_neon_mla): Likewise.
9956 (cortex_a7_fpfmad): New reservation.
9957 (cortex_a7_fpmacs): Use ffmas and update required units.
9958 (cortex_a7_fpmuld): Update required units and latency.
9959 (cortex_a7_fpmacd): Likewise.
9960 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9961 (cortex_a7_neon). Likewise.
9962 (bypass) Update participating units.
9963
9964 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9965
9966 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9967 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9968 from fmac to ffma.
9969 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9970 (vfp_fmul): Use ffmad.
9971 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9972 (cortex_r4_fmacd): Use ffmad.
9973 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9974 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9975 (cortex_a9_fmacd): Use ffmad.
9976 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9977 (cortex_a8_vfp_macd): Use ffmad.
9978 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9979 (cortex_a5_fpmacd): Use ffmad.
9980 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9981 (cortex_a15_vfp_macd): Use ffmad.
9982 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
9983
9984 2013-01-29 Jason Merrill <jason@redhat.com>
9985
9986 PR libstdc++/54314
9987 * varasm.c (default_assemble_visibility): Don't warn about
9988 visibility on artificial decls.
9989
9990 2013-01-29 Richard Biener <rguenther@suse.de>
9991
9992 PR tree-optimization/56113
9993 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9994 the bitmap leader.
9995 (label_visit): Free duplicate bitmaps and record the leader instead.
9996 (perform_var_substitution): Adjust.
9997
9998 2013-01-29 Richard Biener <rguenther@suse.de>
9999
10000 PR tree-optimization/55270
10001 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10002 the CFG, schedule loops for fixup.
10003
10004 2013-01-29 Nick Clifton <nickc@redhat.com>
10005
10006 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10007 SP_REG.
10008
10009 2013-01-28 Leif Ekblad <leif@rdos.net>
10010
10011 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10012 * config/i386/i386.h (TARGET_RDOS): New macro.
10013 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10014 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10015 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10016 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10017 DEFAULT_LARGE_SECTION_THRESHOLD.
10018 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10019 * config/i386/rdos.h: New file.
10020 * config/i386/rdos64.h: New file.
10021
10022 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10023
10024 PR other/54814
10025 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10026 TEST_HARD_REG_BIT.
10027
10028 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10029
10030 PR rtl-optimization/56117
10031 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10032 call cselib_lookup_from_insn on the MEM before calling
10033 add_insn_mem_dependence.
10034
10035 2013-01-28 Richard Biener <rguenther@suse.de>
10036
10037 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10038 to a stmt that didn't have one.
10039 (copy_phis_for_bb): Likewise for PHI arguments.
10040 (copy_debug_stmt): Likewise for debug stmts.
10041
10042 2013-01-28 Richard Biener <rguenther@suse.de>
10043
10044 PR tree-optimization/56034
10045 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10046 (partition_builtin_p): Adjust.
10047 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10048 it is the last partition.
10049 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10050 up the vertex for the definition.
10051 (classify_partition): Classify whether a partition is a
10052 PKIND_REDUCTION, thus has uses outside of the loop.
10053 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10054 Merge all PKIND_REDUCTION partitions into the last partition.
10055 (tree_loop_distribution): Seed partitions from reductions as well.
10056
10057 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10058
10059 PR tree-optimization/56125
10060 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10061 pow(x,c) into sqrt(x) * powi(x, n/2) or
10062 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10063 optimizing for size.
10064 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10065 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10066 integer.
10067
10068 PR tree-optimization/56094
10069 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10070 to UNKNOWN_LOCATION while gimplifying expr.
10071
10072 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10073
10074 PR target/56114
10075 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10076 operand 0 in movabs insn template for -masm=intel asm alternative.
10077 (*movabs<mode>_2): Ditto for operand 1.
10078
10079 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10080
10081 PR target/54663
10082 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10083 of microblaze-c.o
10084
10085 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10086
10087 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10088 tm_file.
10089
10090 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10091
10092 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10093 Undef to avoid warning.
10094
10095 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10096
10097 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10098 * configure: Regenerate.
10099
10100 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10101
10102 PR tree-optimization/56098
10103 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10104 for stmts with volatile ops.
10105 (cond_store_replacement): Don't optimize if assign has volatile ops.
10106 (cond_if_else_store_replacement_1): Don't optimize if either
10107 then_assign or else_assign have volatile ops.
10108 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10109 volatile ops.
10110
10111 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10112
10113 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10114
10115 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10116
10117 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10118 missing ':' in asm example.
10119
10120 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10121
10122 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10123 entries into lane and laneq entries.
10124 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10125 Remove AdvSIMD scalar modes.
10126 (aarch64_sq<r>dmulh_laneq<mode>): New.
10127 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10128 modes.
10129 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10130 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10131 * config/aarch64/iterators.md (VCOND): New.
10132 (VCONQ): New.
10133
10134 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10135
10136 PR target/54222
10137 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10138 Add NULL LIBNAME argument to existing definitions.
10139 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10140 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10141 * config/avr/avr.c (DEF_BUILTIN): Same.
10142 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10143 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10144 implementation is available (DECL_ASSEMBLER_NAME is set).
10145 (avr_fold_absfx): New static function.
10146 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10147 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10148 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10149 AVR_BUILTIN_ABSLLK.
10150 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10151 (abshk, absk, abslk, absllk): Provide as static inline functions.
10152
10153 2013-01-25 Marek Polacek <polacek@redhat.com>
10154
10155 PR tree-optimization/56035
10156 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10157
10158 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10159
10160 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10161 (*movtf_internal_rex64): Add (!o,C) alternative
10162 (*movxf_internal_rex64): Ditto.
10163 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10164
10165 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10166
10167 * doc/invoke.texi: fix typo.
10168 * doc/objc.texi: fix typo.
10169
10170 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10171
10172 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10173 for the first two alternatives.
10174
10175 2013-01-24 Diego Novillo <dnovillo@google.com>
10176
10177 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10178 (ggc-zone.o): Remove.
10179 * configure.ac: Remove option --with-gc.
10180 * configure: Re-generate.
10181 * doc/install.texi: Remove documentation for --with-gc.
10182 * gengtype.c (write_enum_defn): Remove. Update all users.
10183 (write_Types_process_field): Remove generation of gt_e_* argument.
10184 (output_type_enum): Remove. Update all users.
10185 (write_enum_defn): Remove. Update all users.
10186 (enum alloc_zone): Remove. Update all users.
10187 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10188 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10189 Update all callers.
10190 (struct ptr_data): Remove field TYPE. Update all users.
10191 (gt_pch_note_object): Remove argument TYPE. Update all users.
10192 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10193 Update all users.
10194 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10195 (struct alloc_zone): Remove.
10196 (ggc_internal_alloc_zone_stat): Remove.
10197 (ggc_internal_cleared_alloc_zone_stat): Remove.
10198 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10199 (ggc_pch_count_object): Remove last argument. Update all users.
10200 (ggc_pch_alloc_object): Remove last argument. Update all users.
10201 (struct alloc_zone): Remove.
10202 * ggc-zone.c: Remove.
10203 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10204 (struct alloc_zone): Remove.
10205 (ggc_alloc_typed_stat): Remove.
10206 (ggc_alloc_typed): Remove.
10207 (ggc_splay_alloc): Remove first argument.
10208 (rtl_zone): Remove. Update all users.
10209 (tree_zone): Remove. Update all users.
10210 (tree_id_zone): Remove. Update all users.
10211 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10212 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10213 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10214 * tree-ssanames.c: Remove references to zone allocator in comments.
10215
10216 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10217
10218 * config/avr/avr.c (avr_out_fract): Make register numbers that
10219 might be outside of source operand signed.
10220
10221 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10222
10223 * config/i386/constraints.md (Yf): New constraint.
10224 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10225 of f constraint to conditionaly disable x87 register preferences.
10226 (*movdf_internal): Ditto.
10227 (*movsf_internal): Ditto.
10228
10229 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10230
10231 PR inline-asm/55934
10232 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10233 that have operands with impossible constraints.
10234 Add a FIXME for a speed-up opportunity.
10235 * lra-constraints.c (process_alt_operands): Verify that a class
10236 selected from constraints on asms is valid for the operand mode.
10237 (curr_insn_transform): Remove incorrect comment.
10238
10239 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10240
10241 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10242 TOC operand is a valid symbol ref in the constant pool.
10243
10244 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10245
10246 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10247
10248 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10249
10250 PR target/54222
10251 * config/avr/stdfix.h: New file.
10252 * t-avr (stdfix-gcc.h): New rule to build it.
10253 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10254
10255 2013-01-23 Kostya Serebryany <kcc@google.com>
10256
10257 * config/darwin.h: remove dependency on
10258 CoreFoundation (asan on Mac OS).
10259
10260 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10261
10262 PR target/49069
10263 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10264 instead of cmpdi_operand for first comparison operand.
10265 Don't assert that comparison operands aren't both constants.
10266
10267 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10268
10269 * doc/install.texi (Downloading the Source): Update references to
10270 downloading separate components.
10271
10272 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10273
10274 * doc/extend.texi (__int128): Improve grammar.
10275
10276 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10277
10278 PR target/56028
10279 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10280 alternative to (o,r).
10281 (*movdi_internal_rex64): Remove (!o,n) alternative.
10282 (DImode immediate->memory splitter): Remove.
10283 (DImode immediate->memory peephole2): Remove.
10284 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10285 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10286 alternative to (!o,*r).
10287 (*movtf_internal_sse): New pattern.
10288 (*movxf_internal_rex64): New pattern.
10289 (*movxf_internal): Disable for TARGET_64BIT.
10290 (*movdf_internal_rex64): Remove (!o,F) alternative.
10291
10292 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10293
10294 PR middle-end/56074
10295 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10296 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10297 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10298 stmt locations where LOCATION_LOCUS of the stmt location is
10299 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10300
10301 PR target/55686
10302 * config/i386/i386.md (UNSPEC_STOS): New.
10303 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10304 *strsetqi_1): Add UNSPEC_STOS.
10305
10306 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10307
10308 PR c++/56067
10309 * doc/invoke.texi: Remove left over -Wsynth example.
10310
10311 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10312
10313 PR tree-optimization/56051
10314 * fold-const.c (fold_binary_loc): Don't fold
10315 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10316 a narrowing conversion, or widening conversion from signed
10317 to unsigned.
10318
10319 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10320
10321 PR rtl-optimization/56023
10322 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10323 dependent on debug instruction.
10324
10325 2013-01-21 Martin Jambor <mjambor@suse.cz>
10326
10327 PR middle-end/56022
10328 * function.c (allocate_struct_function): Call
10329 invoke_set_current_function_hook earlier.
10330
10331 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10332
10333 * reload1.c (init_reload): Only initialize reload_obstack
10334 during the first call.
10335
10336 2013-01-21 Marek Polacek <polacek@redhat.com>
10337
10338 * cfgloop.c (verify_loop_structure): Fix up grammar.
10339
10340 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10341
10342 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10343 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10344
10345 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10346
10347 PR target/56058
10348 * config/arm/marvell-pj4.md: Update copyright year.
10349 Fix up use of alu to alu_reg and simple_alu_imm.
10350
10351 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10352
10353 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10354
10355 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10356
10357 PR target/55433
10358 * lra-constraints.c (curr_insn_transform): Don't reuse original
10359 insn for secondary memory move when memory mode should be different.
10360
10361 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10362
10363 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10364 atomic_storedi_1): New patterns.
10365
10366 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10367
10368 btver2 pipeline descriptions.
10369 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10370 descriptions.
10371 * config/i386/i386.md (btver2_decode): New type attributes.
10372 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10373 type attributes.
10374 * config/i386/btver2.md: New file describing btver2 pipelines.
10375
10376 2013-01-19 Andrew Pinski <apinski@cavium.com>
10377
10378 PR tree-optimization/52631
10379 * tree-ssa-sccvn (visit_use): Before looking up the original
10380 statement, try looking up the simplified expression.
10381
10382 2013-01-19 Anthony Green <green@moxielogic.com>
10383
10384 * config/moxie/moxie.c (moxie_expand_prologue): Set
10385 current_function_static_stack_size.
10386
10387 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10388
10389 PR tree-optimization/56029
10390 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10391 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10392
10393 2013-01-18 Sharad Singhai <singhai@google.com>
10394
10395 PR tree-optimization/55995
10396 * dumpfile.c (dump_loc): Print location only if available.
10397 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10398
10399 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10400
10401 PR target/55433
10402 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10403 secondary memory move.
10404 (inherit_reload_reg): Use rclass instead of cl for
10405 check_secondary_memory_needed_p.
10406
10407 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10408
10409 PR middle-end/56015
10410 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10411 the case where writing real complex part of target modifies op1.
10412
10413 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10414
10415 * config/aarch64/aarch64-simd.md
10416 (aarch64_vcond_internal<mode>): Handle unordered cases.
10417 * config/aarch64/iterators.md (v_cmp_result): New.
10418
10419 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10420 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10421
10422 * config/arm/marvell-pj4.md: New file.
10423 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10424 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10425 (generic_vfp): Likewise.
10426 * config/arm/arm-cores.def: Add marvell-pj4.
10427 * config/arm/arm-tune.md: Regenerate.
10428 * config/arm/arm-tables.opt: Regenerate.
10429 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10430 * doc/invoke.texi: Document marvell-pj4.
10431
10432 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10433
10434 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10435
10436 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10437
10438 PR debug/54114
10439 PR debug/54402
10440 PR debug/49888
10441 * var-tracking.c (negative_power_of_two_p): New.
10442 (global_get_addr_cache, local_get_addr_cache): New.
10443 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10444 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10445 heading comment.
10446 (vt_stack_offset_p): Remove.
10447 (vt_canon_true_dep): Always canonicalize loc's address.
10448 (clobber_overlapping_mems): Make sure we have a MEM.
10449 (local_get_addr_clear_given_value): New.
10450 (val_reset): Clear local cached entries.
10451 (compute_bb_dataflow): Create and release the local cache.
10452 Disable duplicate MEMs clobbering.
10453 (emit_notes_in_bb): Clobber MEMs likewise.
10454 (vt_emit_notes): Create and release the local cache.
10455 (vt_initialize, vt_finalize): Create and release the global
10456 cache, respectively.
10457 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
10458
10459 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10460
10461 PR libmudflap/53359
10462 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
10463 not found in the symtab.
10464
10465 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10466
10467 PR debug/56006
10468 PR rtl-optimization/55547
10469 PR rtl-optimization/53827
10470 PR debug/53671
10471 PR debug/49888
10472 * alias.c (offset_overlap_p): New, factored out of...
10473 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
10474 the conservative special case for symbolic constants. Don't
10475 adjust zero sizes on alignment.
10476
10477 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
10478
10479 PR rtl-optimization/52573
10480 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
10481 REG_UNUSED for the same register.
10482
10483 2013-01-17 Richard Biener <rguenther@suse.de>
10484 Marek Polacek <polacek@redhat.com>
10485
10486 PR rtl-optimization/55833
10487 * loop-unswitch.c (unswitch_loops): Move loop verification...
10488 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
10489 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
10490 Set it to true when we're removing a loop from hierarchy tree in
10491 an irreducible region.
10492 (fix_bb_placements): Adjust caller.
10493 (fix_loop_placements): Likewise.
10494
10495 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
10496
10497 * config/avr/builtins.def (DEF_BUILTIN): Factor out
10498 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
10499 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
10500 Remove ID. Adjust comments.
10501 * config/avr/avr-c.c (avr_builtin_name): Remove.
10502 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
10503 * config/avr/avr.c (avr_tolower): New static function.
10504 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
10505 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
10506 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
10507 default expansion.
10508
10509 2013-01-17 Jan Hubicka <jh@suse.cz>
10510
10511 PR tree-optimization/55273
10512 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
10513
10514 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
10515
10516 PR target/55981
10517 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
10518 store through atomic_store<mode>_1.
10519 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
10520
10521 2013-01-17 Martin Jambor <mjambor@suse.cz>
10522
10523 PR tree-optimizations/55264
10524 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
10525 for virtual methods.
10526 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
10527 virtual methods before inlining is over.
10528 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
10529 virtual functions.
10530 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
10531 non-virtual.
10532
10533 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
10534
10535 PR rtl-optimization/56005
10536 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
10537 pending reads for prefetch.
10538
10539 2013-01-16 Ian Bolton <ian.bolton@arm.com>
10540
10541 * config/aarch64/aarch64.md
10542 (*cstoresi_neg_uxtw): New pattern.
10543 (*cmovsi_insn_uxtw): New pattern.
10544 (*<optab>si3_uxtw): New pattern.
10545 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
10546 (*<optab>si3_insn_uxtw): New pattern.
10547 (*bswapsi2_uxtw): New pattern.
10548
10549 2013-01-16 Richard Biener <rguenther@suse.de>
10550
10551 * tree-inline.c (tree_function_versioning): Remove set but
10552 never used variable.
10553
10554 2013-01-16 Richard Biener <rguenther@suse.de>
10555
10556 PR tree-optimization/55964
10557 * tree-flow.h (rename_variables_in_loop): Remove.
10558 (rename_variables_in_bb): Likewise.
10559 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
10560 (copy_loop_before): Adjust and delete update-ssa status.
10561 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
10562 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
10563 (rename_variables_in_loop): Remove.
10564 (slpeel_update_phis_for_duplicate_loop): Likewise.
10565 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
10566 use available cfg machinery instead of duplicating it.
10567 Update PHI nodes and perform poor-mans SSA update here.
10568 (slpeel_tree_peel_loop_to_edge): Adjust.
10569
10570 2013-01-16 Richard Biener <rguenther@suse.de>
10571
10572 PR tree-optimization/54767
10573 PR tree-optimization/53465
10574 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
10575 (vrp_visit_phi_node): For PHI arguments coming via backedges
10576 drop all symbolical range information.
10577 (execute_vrp): Compute backedges.
10578
10579 2013-01-16 Richard Biener <rguenther@suse.de>
10580
10581 * doc/install.texi: Update CLooG and ISL requirements to
10582 0.18.0 and 0.11.1.
10583
10584 2013-01-16 Christian Bruel <christian.bruel@st.com>
10585
10586 PR target/55301
10587 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
10588 (broken_move): Handle UNSPECV_SP_SWITCH_B.
10589 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
10590
10591 2013-01-16 DJ Delorie <dj@redhat.com>
10592
10593 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10594 (UNSPECV_SP_SWITCH_E): New.
10595 (sp_switch_1): Change to an unspec.
10596 (sp_switch_2): Change to an unspec. Don't use post-inc when we
10597 replace $r15.
10598
10599 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
10600
10601 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
10602 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
10603 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
10604 (expand_mem_thread_fence): Ditto.
10605 (expand_mem_signal_fence): Ditto.
10606 (expand_atomic_load): Ditto.
10607 (expand_atomic_store): Ditto.
10608
10609 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
10610
10611 PR rtl-optimization/55547
10612 PR rtl-optimization/53827
10613 PR debug/53671
10614 PR debug/49888
10615 * alias.c (memrefs_conflict_p): Set sizes to negative after
10616 AND adjustments.
10617
10618 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10619
10620 PR target/55940
10621 * function.c (thread_prologue_and_epilogue_insns): Always
10622 add crtl->drap_reg to set_up_by_prologue.set, even if
10623 stack_realign_drap is false.
10624
10625 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10626
10627 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
10628 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
10629 *call): Fix indention.
10630
10631 2013-01-15 Tom de Vries <tom@codesourcery.com>
10632
10633 PR target/55876
10634 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
10635 Update comment.
10636
10637 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
10638
10639 PR rtl-optimization/55153
10640 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
10641
10642 2013-01-15 Martin Jambor <mjambor@suse.cz>
10643
10644 PR tree-optimization/55920
10645 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
10646 accesses as grp_to_be_debug_replaced.
10647
10648 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10649
10650 PR tree-optimization/55920
10651 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
10652 there is non-useless type conversion needed from debug rhs to lhs,
10653 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
10654
10655 2013-01-15 Joseph Myers <joseph@codesourcery.com>
10656 Mikael Pettersson <mikpe@it.uu.se>
10657
10658 PR target/43961
10659 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
10660 Thumb.
10661 (ASM_OUTPUT_CASE_LABEL): Remove.
10662 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
10663 * final.c (shorten_branches): Update alignment of labels before
10664 jump tables if CASE_VECTOR_SHORTEN_MODE.
10665
10666 2013-01-15 Richard Biener <rguenther@suse.de>
10667
10668 PR bootstrap/55961
10669 * system.h: Do not include gmp.h for building host tools.
10670
10671 2013-01-15 Richard Biener <rguenther@suse.de>
10672
10673 PR middle-end/55882
10674 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
10675 account for bitpos when computing alignment.
10676
10677 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
10678
10679 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
10680 (ix86_target_macros_internal): Likewise.
10681
10682 * config/i386/i386.c (m_CORE2I7): Removed.
10683 (m_CORE_HASWELL): New macro.
10684 (m_CORE_ALL): Likewise.
10685 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
10686 (initial_ix86_arch_features): Likewise.
10687 (processor_target_table): Initializations for Core avx2.
10688 (cpu_names): New names "core-avx2".
10689 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
10690 PROCESSOR_CORE_HASWELL.
10691 (ix86_issue_rate): New case.
10692 (ia32_multipass_dfa_lookahead): Likewise.
10693 (ix86_sched_init_global): Likewise.
10694
10695 * config/i386/i386.h (TARGET_HASWELL): New macro.
10696 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
10697 (processor_type): New PROCESSOR_HASWELL.
10698
10699 2013-01-15 Jakub Jelinek <jakub@redhat.com>
10700
10701 PR tree-optimization/55955
10702 * tree-vect-loop.c (vectorizable_reduction): Give up early on
10703 *SHIFT_EXPR and *ROTATE_EXPR codes.
10704
10705 PR tree-optimization/48766
10706 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
10707 -ftrapv disable -fwrapv.
10708
10709 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10710
10711 PR target/55974
10712 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
10713 etc. to 1 and not to __flash.
10714 Use LL suffix for __INT24_MAX__ with -mint8.
10715 Use ULL suffix for __UINT24_MAX__ with -mint8.
10716
10717 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10718
10719 * config/avr/avr-arch.h
10720 (struct base_arch_s): Use typedef avr_arch_t instead.
10721 (struct arch_info_s): Use typedef avr_arch_info_t instead.
10722 (struct mcu_type_s): Use typedef avr_mcu_t instead.
10723 * config/avr/avr.c: Same.
10724 * config/avr/avr-devices.c: Same.
10725 * config/avr/driver-avr.c: Same.
10726 * config/avr/gen-avr-mmcu-texi.c: Same.
10727 * config/avr/avr-mcus.def: Adjust comment.
10728
10729 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
10730
10731 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
10732 * config/aarch64/iterators.md (VALLDI): New.
10733
10734 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
10735 Andi Kleen <ak@linux.intel.com>
10736
10737 PR target/55948
10738 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
10739 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
10740 memmodel flag.
10741
10742 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10743
10744 * config/avr/avr-stdint.h: Remove trailing blanks.
10745 * config/avr/avr-log.h: Same.
10746 * config/avr/avr-arch.h: Same.
10747 * config/avr/avr-devices.c: Same.
10748 * config/avr/avr-dimode.md: Same.
10749 * config/avr/predicates.md: Same.
10750 * config/avr/avr-c.c: Same. And fix typo.
10751
10752 * config/avr/avr-protos.h: Same. And:
10753 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
10754 (init_cumulative_args): Rename to avr_init_cumulative_args.
10755 (expand_prologue): Rename to avr_expand_prologue.
10756 (expand_epilogue): Rename to avr_expand_epilogue.
10757 (adjust_insn_length): Rename to avr_adjust_insn_length.
10758 (notice_update_cc): Rename to avr_notice_update_cc.
10759 (final_prescan_insn): Rename to avr_final_prescan_insn.
10760 * config/avr/avr.c: Same.
10761 * config/avr/avr.h: Same.
10762 * config/avr/avr.md: Remove trailing blanks.
10763 (prologue): Use avr_expand_prologue.
10764 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
10765
10766 2013-01-14 Richard Biener <rguenther@suse.de>
10767
10768 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
10769 verify_location, collect_subblocks): New functions.
10770 (verify_gimple_in_cfg): Verify that locations only reference
10771 BLOCKs in the functions BLOCK tree.
10772
10773 2013-01-14 Richard Biener <rguenther@suse.de>
10774
10775 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
10776 PHI argument.
10777 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
10778 unshare reference.
10779 (insert_out_of_ssa_copy_on_edge): Likewise.
10780 (rewrite_close_phi_out_of_ssa): Likewise.
10781 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10782 debug expressions.
10783 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10784 propagated constants.
10785 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10786 can not be shared.
10787
10788 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10789
10790 * config/avr/avr-modes.def: Add GPL copyright notice.
10791
10792 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
10793
10794 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10795 MEMMODEL_MASK to determine memory model.
10796 (atomic_store<mode>): Ditto from operands[2].
10797 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10798
10799 2013-01-13 Jakub Jelinek <jakub@redhat.com>
10800
10801 PR fortran/55935
10802 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
10803 (fold_gimple_assign): Don't call unshare_expr here.
10804 (fold_ctor_reference): Call unshare_expr.
10805
10806 2013-01-13 Terry Guo <terry.guo@arm.com>
10807
10808 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10809 * doc/fragments.texi: Document MULTILIB_REUSE.
10810 * gcc.c (multilib_reuse): New internal spec.
10811 (set_multilib_dir): Also search multilib from multilib_reuse.
10812 * genmultilib (tmpmultilib3): Refactor code.
10813 (tmpmultilib4): Ditto.
10814 (multilib_reuse): New multilib argument.
10815
10816 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10817
10818 * Makefile.in: Update copyright.
10819
10820 2013-01-12 Tom de Vries <tom@codesourcery.com>
10821
10822 PR middle-end/55890
10823 * calls.c (expand_call): Check if arg_nr is valid.
10824
10825 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10826
10827 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10828 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
10829 documentation. Add missing '__' in front of
10830 __builtin_ia32_packssdw256.
10831
10832 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10833
10834 PR target/55719
10835 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10836 NO_REGS for larl operands.
10837 (s390_reload_larl_operand): Use s390_load_address instead of
10838 emit_move_insn.
10839
10840 2013-01-11 Richard Biener <rguenther@suse.de>
10841
10842 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10843 (verify_node_sharing): ... here.
10844 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10845
10846 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10847
10848 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10849 Substitute TREECHECKING.
10850 * configure: Regenerate.
10851 * Makefile.in (TREECHECKING): New.
10852
10853 2013-01-11 Richard Guenther <rguenther@suse.de>
10854
10855 PR tree-optimization/44061
10856 * tree-vrp.c (extract_range_basic): Compute zero as
10857 value-range for __builtin_constant_p of function parameters.
10858
10859 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10860
10861 Update copyright years.
10862
10863 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10864
10865 PR rtl-optimization/55672
10866 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10867 const to be eliminable.
10868
10869 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
10870
10871 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10872 * configure: Regenerate.
10873
10874 2013-01-10 Richard Biener <rguenther@suse.de>
10875
10876 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
10877
10878 2013-01-10 Richard Biener <rguenther@suse.de>
10879
10880 PR bootstrap/55792
10881 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10882 locations for virtual PHI arguments.
10883 (rewrite_update_phi_arguments): Likewise.
10884
10885 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10886
10887 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10888 on to assembler.
10889
10890 2013-01-10 Jakub Jelinek <jakub@redhat.com>
10891
10892 PR tree-optimization/55921
10893 * tree-complex.c (expand_complex_asm): New function.
10894 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10895
10896 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10897
10898 PR target/55718
10899 * config/s390/s390.c (s390_symref_operand_p)
10900 (s390_loadrelative_operand_p): Merge the two functions.
10901 (s390_check_qrst_address, print_operand_address): Add parameters
10902 to s390_loadrelative_operand_p invokation.
10903 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10904 (s390_reload_larl_operand, s390_secondary_reload): Use
10905 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10906 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10907
10908 2013-01-09 Mike Stump <mikestump@comcast.net>
10909
10910 * dse.c (record_store): Remove unnecessary assert.
10911
10912 2013-01-09 Jan Hubicka <jh@suse.cz>
10913
10914 PR tree-optimization/55569
10915 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10916 * cfgloop.h (scale_loop_profile): Likewise.
10917
10918 2013-01-09 Jan Hubicka <jh@suse.cz>
10919
10920 PR lto/45375
10921 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10922 functions.
10923 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10924
10925 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10926
10927 PR middle-end/55114
10928 * expr.h (maybe_emit_group_store): Declare.
10929 * expr.c (maybe_emit_group_store): New function.
10930 * builtins.c (expand_builtin_int_roundingfn): Call it.
10931 (expand_builtin_int_roundingfn_2): Likewise.
10932
10933 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10934
10935 PR rtl-optimization/55829
10936 * lra-constraints.c (match_reload): Add code for absent output.
10937 (curr_insn_transform): Add code for reloads of matched inputs
10938 without output.
10939
10940 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
10941
10942 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10943 attribute of movddup insn to DF.
10944 (*vec_interleave_lowv2df): Ditto.
10945 (vec_dupv2df): Ditto.
10946
10947 2013-01-09 Jan Hubicka <jh@suse.cz>
10948
10949 PR tree-optimiation/55875
10950 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10951 EVERY_ITERATION parameter.
10952 (number_of_iterations_exit): Check if exit is executed every iteration.
10953 (idx_infer_loop_bounds): Similarly here.
10954 (n_of_executions_at_most): Simplify
10955 to only test for cases where statement is dominated by the
10956 particular bound; handle correctly the "postdominance" test.
10957 (scev_probably_wraps_p): Use max loop iterations info
10958 as a global bound first.
10959
10960 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
10961 Nick Clifton <nickc@redhat.com>
10962
10963 * config/v850/v850.md (cbranchsf4): New pattern.
10964 (cstoresf4): New pattern.
10965 (cbranchdf4): New pattern.
10966 (cstoredf4): New pattern.
10967 (movsicc): Disallow floating point comparisons.
10968 (cmpsf_le_insn): Fix order of operators.
10969 (cmpsf_lt_insn): Likewise.
10970 (cmpsf_eq_insn): Likewise.
10971 (cmpdf_le_insn): Likewise.
10972 (cmpdf_lt_insn): Likewise.
10973 (cmpdf_eq_insn): Likewise.
10974 (cmpsf_ge_insn): Use LE comparison.
10975 (cmpdf_ge_insn): Likewise.
10976 (cmpsf_gt_insn): Use LT comparison.
10977 (cmpdf_gt_insn): Likewise.
10978 (cmpsf_ne_insn): Delete pattern.
10979 (cmpdf_ne_insn): Delete pattern.
10980 * config/v850/v850.c (v850_gen_float_compare): Use
10981 gen_cmpdf_eq_insn for NE comparison.
10982 (v850_float_z_comparison_operator)
10983 (v850_float_nz_comparison_operator): Move from here ...
10984 * config/v850/predicates.md: ... to here. Move GT and GE
10985 comparisons into v850_float_z_comparison_operator.
10986 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10987 Delete prototype.
10988 (v850_float_nz_comparison_operator): Likewise.
10989
10990 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10991
10992 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10993 with calls to gen_insvsi/gen_insvdi.
10994
10995 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10996
10997 * config/i386/i386.c (initial_ix86_tune_features): Set up
10998 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10999
11000 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11001 Jakub Jelinek <jakub@redhat.com>
11002
11003 PR tree-optimization/48189
11004 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11005 If nitercst is 0, don't predict the exit edge.
11006
11007 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11008
11009 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11010 in asm_fprintf with reg_names.
11011 (aarch64_print_operand_address): Likewise.
11012 (aarch64_return_addr): Likewise.
11013 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11014
11015 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11016
11017 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11018 (INT_U6_BITS): Likewise.
11019 * config/pa/predicates.md (uint6_operand): New predicate.
11020 (shift5_operand, shift6_operand): Likewise.
11021 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11022 arith32_operand.
11023 (lshrdi3): Use shift6_operand.
11024 (shrpsi4, shrpdi4): New insn patterns.
11025 (extzv): Delete expander.
11026 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11027 predicates in unamed zero extract patterns. Tighten common constraint.
11028 (extv): Delete expander.
11029 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11030 predicates in unamed sign extract patterns. Tighten common constraint.
11031 (insv): Delete expander.
11032 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11033 predicates in unamed insert patterns. Tighten common constraint.
11034 Change uint32_operand predicate to uint6_operand predicate in unamed
11035 DImode pattern to insert constant values of type 1...1xxxx.
11036
11037 2013-01-04 Jan Hubicka <jh@suse.cz>
11038
11039 PR tree-optimization/55823
11040 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11041 issue.
11042
11043 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11044 Uros Bizjak <ubizjak@gmail.com>
11045
11046 PR rtl-optimization/55845
11047 * df-problems.c (can_move_insns_across): Stop scanning at
11048 volatile_insn_p source instruction or give up if
11049 across_from .. across_to range contains any volatile_insn_p
11050 instructions.
11051
11052 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11053
11054 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11055 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11056 Declare.
11057 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11058 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11059
11060 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11061
11062 PR fortran/55341
11063 * asan.c (asan_clear_shadow): New function.
11064 (asan_emit_stack_protection): Use it.
11065
11066 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11067
11068 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11069 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11070 with tab instead of space.
11071
11072 2013-01-08 Nick Clifton <nickc@redhat.com>
11073
11074 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11075 register bank 0 at the start of an interrupt handler.
11076 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11077 MDBH registers.
11078
11079 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11080
11081 * config/aarch64/aarch64-simd.md
11082 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11083 (aarch64_simd_bsl): Likewise.
11084 (aarch64_vcond_internal<mode>): Likewise.
11085 (vcond<mode><mode>): Likewise.
11086 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11087 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11088
11089 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11090
11091 * config/aarch64/aarch64-builtins.c
11092 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11093
11094 2013-01-08 Martin Jambor <mjambor@suse.cz>
11095
11096 PR debug/55579
11097 * tree-sra.c (analyze_access_subtree): Return true also after
11098 potentially creating a debug-only replacement.
11099
11100 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11101
11102 PR middle-end/55890
11103 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11104
11105 PR tree-optimization/54120
11106 * tree-vrp.c (range_fits_type_p): Don't allow
11107 src_precision < precision from signed vr to unsigned_p
11108 if vr->min or vr->max is negative.
11109 (simplify_float_conversion_using_ranges): Test can_float_p
11110 against CODE_FOR_nothing.
11111
11112 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11113 Richard Biener <rguenther@suse.de>
11114
11115 PR middle-end/55851
11116 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11117 types instead of just INTEGER_TYPE types.
11118
11119 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11120
11121 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11122 TF_SIZE): Define.
11123
11124 2013-01-07 Steve Ellcey <sellcey@mips.com>
11125
11126 PR target/42661
11127 * config/mips/mips.opt: Change mad to mmad to match documentation.
11128
11129 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11130
11131 PR target/55897
11132 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11133 .progmemx.data now.
11134
11135 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11136
11137 PR target/55897
11138 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11139 (avr_addrspace_t): Add .section_name field.
11140 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11141 array size.
11142 (avr_addrspace): Same. Initialize .section_name. Remove last
11143 NULL entry. Put __memx into .progmemx.data.
11144 (progmem_section_prefix): Remove.
11145 (avr_asm_init_sections): No need to initialize progmem_section.
11146 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11147 section name prefix.
11148 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11149 retrieve the progmem section.
11150 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11151 boundary to run over avr_addrspace[].
11152 (avr_register_target_pragmas): Ditto.
11153
11154 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11155
11156 * varasm.c (output_constant_def_contents): For asan_protect_global
11157 protected strings, adjust DECL_ALIGN if needed, before testing for
11158 anchored symbols.
11159 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11160 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11161 normal decls.
11162 (output_object_block): For asan protected decls, emit asan padding
11163 after their contents.
11164 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11165 (asan_finish_file): Test it here instead.
11166
11167 2013-01-07 Nick Clifton <nickc@redhat.com>
11168 Matthias Klose <doko@debian.org>
11169 Doug Kwan <dougkwan@google.com>
11170 H.J. Lu <hongjiu.lu@intel.com>
11171
11172 PR driver/55470
11173 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11174
11175 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11176
11177 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11178
11179 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11180
11181 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11182
11183 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11184
11185 PR target/54461
11186 * doc/install.texi (Cross-Compiler-Specific Options): Document
11187 --with-avrlibc.
11188
11189 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11190
11191 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11192 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11193 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11194 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11195 vqmovun_high_s64): Fix source operand number and update copyright.
11196
11197 2013-01-07 Richard Biener <rguenther@suse.de>
11198
11199 PR middle-end/55890
11200 * gimple.h (gimple_call_builtin_p): New overload.
11201 * gimple.c (validate_call): New function.
11202 (gimple_call_builtin_p): Likewise.
11203 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11204 Use gimple_call_builtin_p.
11205 (find_func_clobbers): Likewise.
11206 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11207 (strlen_optimize_stmt): Likewise.
11208
11209 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11210
11211 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11212 (vld1q_dup_*): Likewise.
11213 (vld1_*): Likewise.
11214 (vld1q_*): Likewise.
11215 (vld1_lane_*): Likewise.
11216 (vld1q_lane_*): Likewise.
11217
11218 2013-01-07 Richard Biener <rguenther@suse.de>
11219
11220 * lto-streamer.h (LTO_minor_version): Bump to 2.
11221
11222 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11223
11224 * config/aarch64/aarch64-protos.h
11225 (aarch64_const_double_zero_rtx_p): Rename to...
11226 (aarch64_float_const_zero_rtx_p): ...this.
11227 (aarch64_float_const_representable_p): New.
11228 (aarch64_output_simd_mov_immediate): Likewise.
11229 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11230 move immediate case.
11231 * config/aarch64/aarch64.c
11232 (aarch64_const_double_zero_rtx_p): Rename to...
11233 (aarch64_float_const_zero_rtx_p): ...this.
11234 (aarch64_print_operand): Allow printing of new constants.
11235 (aarch64_valid_floating_const): New.
11236 (aarch64_legitimate_constant_p): Check for valid floating-point
11237 constants.
11238 (aarch64_simd_valid_immediate): Likewise.
11239 (aarch64_vect_float_const_representable_p): New.
11240 (aarch64_float_const_representable_p): Likewise.
11241 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11242 (aarch64_output_simd_mov_immediate): New.
11243 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11244 (*movdf_aarch64): Likewise.
11245 * config/aarch64/constraints.md (Ufc): New.
11246 (Y): call aarch64_float_const_zero_rtx.
11247 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11248
11249 2013-01-07 Richard Biener <rguenther@suse.de>
11250
11251 PR tree-optimization/55888
11252 PR tree-optimization/55862
11253 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11254 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11255 not if it is contained therein.
11256
11257 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11258
11259 * config/avr/t-avr: Typo.
11260
11261 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11262
11263 PR55243
11264 * config/avr/t-avr: Don't automatically rebuild
11265 $(srcdir)/config/avr/t-multilib
11266 $(srcdir)/config/avr/avr-tables.opt
11267 $(srcdir)/doc/avr-mmcu.texi
11268 (avr-mcus): New phony target to build them on request.
11269 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11270 * avr/avr-mcus.def: Adjust comments.
11271
11272 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11273
11274 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11275
11276 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11277
11278 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11279
11280 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11281
11282 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11283
11284 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11285
11286 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11287 to generate profiling.
11288 * config/rs6000/aix64.h (LIB_SPEC): Same.
11289
11290 2013-01-04 Andrew Pinski <apinski@cavium.com>
11291
11292 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11293 New function.
11294 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11295
11296 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11297
11298 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11299 unconditionally.
11300 (ix86_expand_move): Ditto.
11301 (ix86_zero_extend_to_Pmode): Ditto.
11302 (ix86_expand_call): Ditto.
11303 (ix86_expand_special_args_builtin): Ditto.
11304 (ix86_expand_builtin): Ditto.
11305
11306 2013-01-04 Richard Biener <rguenther@suse.de>
11307
11308 PR tree-optimization/55862
11309 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11310 translating them through PHI nodes.
11311
11312 2013-01-04 Martin Jambor <mjambor@suse.cz>
11313
11314 PR tree-optimization/55755
11315 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11316 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11317
11318 2013-01-04 Marek Polacek <polacek@redhat.com>
11319
11320 PR middle-end/55859
11321 * opts.c (default_options_optimization): Clarify error message.
11322
11323 2013-01-04 Richard Biener <rguenther@suse.de>
11324
11325 PR middle-end/55863
11326 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11327 reassociation.
11328
11329 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11330
11331 PR target/53789
11332 * config/pa/pa.md (movsi): Revert previous change.
11333 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11334 references.
11335
11336 2013-01-03 Richard Henderson <rth@redhat.com>
11337
11338 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11339 after eliminating TLS symbols.
11340
11341 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11342
11343 PR bootstrap/50167
11344 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11345 * graphite-poly.c (debug_gmp_value): Likewise.
11346
11347 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11348
11349 PR target/55712
11350 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11351 selected code model, define __code_mode_small__, __code_model_medium__,
11352 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11353 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11354 xchg temporary register with %k. Declare temporary register as
11355 early clobbered.
11356 [__x86_64__]: For medium and large code models, preserve %rbx register.
11357
11358 2013-01-03 Richard Biener <rguenther@suse.de>
11359
11360 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11361 (dump_subscript): Adjust.
11362 (finalize_ddr_dependent): Do not dump redundant info.
11363 (analyze_siv_subscript): Adjust.
11364 (subscript_dependence_tester): Likewise.
11365 (compute_affine_dependence): Likewise.
11366
11367 2013-01-03 Richard Biener <rguenther@suse.de>
11368
11369 Revert
11370 2013-01-03 Richard Biener <rguenther@suse.de>
11371
11372 PR tree-optimization/55857
11373 * tree-vect-stmts.c (vectorizable_load): Do not setup
11374 re-alignment for invariant loads.
11375
11376 2013-01-02 Richard Biener <rguenther@suse.de>
11377
11378 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11379 invariant load do not generate a vector load from the scalar location.
11380
11381 2013-01-03 Richard Biener <rguenther@suse.de>
11382
11383 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11384 for not vectorizing.
11385 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11386 not build INDIRECT_REFs, call get_name once only.
11387 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11388 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11389
11390 2013-01-03 Richard Biener <rguenther@suse.de>
11391
11392 PR tree-optimization/55857
11393 * tree-vect-stmts.c (vectorizable_load): Do not setup
11394 re-alignment for invariant loads.
11395
11396 2013-01-03 Richard Biener <rguenther@suse.de>
11397
11398 PR lto/55848
11399 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11400 prefer a built-in decl.
11401
11402 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11403
11404 * gcc.c (process_command): Update copyright notice dates.
11405 * gcov.c (print_version): Likewise.
11406 * gcov-dump.c (print_version): Likewise.
11407
11408 PR rtl-optimization/55838
11409 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11410 iv0.step, iv1.step and step.
11411
11412 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11413 Marc Glisse <marc.glisse@inria.fr>
11414
11415 PR tree-optimization/55832
11416 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11417 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11418 integer_{one,zero}_node.
11419
11420 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11421
11422 PR debug/54402
11423 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11424 * var-tracking.c (reverse_op): Don't add reverse ops to
11425 VALUEs that have already
11426 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11427
11428 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11429
11430 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11431
11432 2013-01-02 Teresa Johnson <tejohnson@google.com>
11433
11434 * dumpfile.c (dump_loc): Print filename with location.
11435 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11436 new location_t parameter to emit complete unroll message with
11437 new dump framework.
11438 (canonicalize_loop_induction_variables): Compute loops location
11439 and pass to try_unroll_loop_completely.
11440 * loop-unroll.c (report_unroll_peel): New function.
11441 (peel_loops_completely): Use new dump format with location
11442 for main dumpfile message, and invoke report_unroll_peel on success.
11443 (decide_unrolling_and_peeling): Ditto.
11444 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11445 by report_unroll_peel.
11446 (decide_peel_completely): Ditto.
11447 (decide_unroll_constant_iterations): Ditto.
11448 (decide_unroll_runtime_iterations): Ditto.
11449 (decide_peel_simple): Ditto.
11450 (decide_unroll_stupid): Ditto.
11451 * cfgloop.c (get_loop_location): New function.
11452 * cfgloop.h (get_loop_location): Declare.
11453
11454 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11455
11456 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
11457 NULL.
11458
11459 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11460
11461 PR middle-end/55198
11462 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
11463 BLKmode objects when EXPAND_MEMORY is specified.
11464
11465 2013-01-02 Sriraman Tallam <tmsriram@google.com>
11466
11467 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
11468 in loop predicate.
11469 (fold_builtin_cpu): Do not share cpu model decls across statements.
11470
11471 2013-01-02 Jason Merrill <jason@redhat.com>
11472
11473 PR c++/55804
11474 * tree.c (build_array_type_1): Revert earlier change.
11475
11476 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
11477
11478 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
11479 "cortex-a57".
11480 * config/aarch64/aarch64-tune.md: Re-generate.
11481
11482 2013-01-02 Richard Biener <rguenther@suse.de>
11483
11484 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11485 invariant load do not generate a vector load from the scalar location.
11486
11487 2013-01-02 Richard Biener <rguenther@suse.de>
11488
11489 PR bootstrap/55784
11490 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
11491 * configure: Regenerate.
11492
11493 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11494
11495 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
11496 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
11497 (expand_builtin_int_roundingfn_2): Keep the original target around
11498 for the fallback case.
11499
11500 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11501
11502 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
11503 to be clear for sign changes.
11504
11505 2013-01-01 Jan Hubicka <jh@suse.cz>
11506
11507 * ipa-inline-analysis.c: Fix formatting.
11508
11509 2013-01-01 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR tree-optimization/55831
11512 * tree-vect-loop.c (get_initial_def_for_induction): Use
11513 gsi_after_labels instead of gsi_start_bb.
11514 \f
11515 Copyright (C) 2013 Free Software Foundation, Inc.
11516
11517 Copying and distribution of this file, with or without modification,
11518 are permitted in any medium without royalty provided the copyright
11519 notice and this notice are preserved.