1 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3 * config/s390/s390.opt (mlra): New option.
4 * config/s390/s390.c (s390_decompose_address): Check displacement
5 for all registers for LRA.
6 (s390_secondary_reload): Don't used secondary reloads for LRA.
7 (s390_lra_p): New function.
8 (TARGET_LRA_P): Define.
9 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
10 of attribute cpu_facility to zarch for the last alternative.
11 (*cmpmem_short): Ditto.
13 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
15 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
16 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
17 (arm_expand_prologue): Likewise.
19 2013-06-06 Teresa Johnson <tejohnson@google.com>
22 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
23 as this is now done by redirect_edge_and_branch_force.
24 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
25 barriers, and fix interaction with splitting.
26 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
27 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
28 reflect changes made in the routine.
29 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
30 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
31 since this is called in cfglayout mode, and replace partition fixup
32 with assert as that is now done by force_nonfallthru_and_redirect.
33 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
34 already be marked with region crossing note.
35 (insert_section_boundary_note): Make non-static, gate on flag
36 has_bb_partition, rewrite to also check for multiple partitions.
37 (rest_of_handle_reorder_blocks): Remove call to
38 insert_section_boundary_note, now done later during free_cfg.
39 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
40 * bb-reorder.h (insert_section_boundary_note): Declare.
41 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
42 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
43 invoke insert_section_boundary_note.
44 (try_redirect_by_replacing_jump): Remove unnecessary
45 check for region crossing note.
46 (fixup_partition_crossing): New function.
47 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
48 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
49 in non-cfglayout mode.
50 (force_nonfallthru_and_redirect): Fixup partition boundaries,
51 remove old code that tried to do this. Emit barrier correctly
52 when we are in cfglayout mode.
53 (last_bb_in_partition): New function.
54 (rtl_split_edge): Correctly fixup partition boundaries.
55 (commit_one_edge_insertion): Remove old code that tried to
56 fixup region crossing edge since this is now handled in
57 split_block, and set up insertion point correctly since
58 block may now end in a jump.
59 (verify_hot_cold_block_grouping): Guard against checking when not in
61 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
63 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
64 rtl_verify_flow_info, so not called in cfglayout mode.
65 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
66 (fixup_reorder_chain): Remove old code that attempted to fixup region
67 crossing note as this is now handled in force_nonfallthru_and_redirect.
68 (duplicate_insn_chain): Don't duplicate switch section notes.
69 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
71 * basic-block.h (emit_barrier_after_bb): Declare.
73 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
75 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
76 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
77 arm_usatsihi): Adjust alternatives for arm_restrict_it.
79 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
81 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
83 * config/arm/ldmstm.md: Regenerate.
85 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
87 * config/arm/sync.md (atomic_loaddi_1):
88 Disable predication for arm_restrict_it.
89 (arm_load_exclusive<mode>): Likewise.
90 (arm_load_exclusivesi): Likewise.
91 (arm_load_exclusivedi): Likewise.
92 (arm_load_acquire_exclusive<mode>): Likewise.
93 (arm_load_acquire_exclusivesi): Likewise.
94 (arm_load_acquire_exclusivedi): Likewise.
95 (arm_store_exclusive<mode>): Likewise.
96 (arm_store_exclusive<mode>): Likewise.
97 (arm_store_release_exclusivedi): Likewise.
98 (arm_store_release_exclusive<mode>): Likewise.
100 2013-06-06 Richard Biener <rguenther@suse.de>
102 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
104 (lto_tag_is_tree_code_p): Adjust.
105 (lto_tag_is_gimple_code_p): Likewise.
106 (lto_gimple_code_to_tag): Likewise.
107 (lto_tag_to_gimple_code): Likewise.
108 (lto_tree_code_to_tag): Likewise.
109 (lto_tag_to_tree_code): Likewise.
110 * data-streamer.h (streamer_write_hwi_in_range): Use
111 uhwi streaming to stream the normalized range.
112 (streamer_read_hwi_in_range): Likewise.
114 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
116 * config/arm/arm.md (enabled_for_depr_it): New attribute.
117 (predicable_short_it): Likewise.
118 (predicated): Likewise.
119 (enabled): Handle above.
120 (define_cond_exec): Set predicated attribute to yes.
122 2013-06-05 Mike Stump <mikestump@comcast.net>
124 * gdbinit.in (__FUNCTION__): Add.
126 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
128 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
129 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
131 2013-06-05 Jan Hubicka <jh@suse.cz>
133 * varasm.c (mark_decl_referenced): Revert the removal until targets
136 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
138 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
139 instead of mark_decl_referenced.
141 2013-06-05 Jan Hubicka <jh@suse.cz>
143 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
144 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
145 and symtab_used_from_object_file_p.
146 (cgraph_make_node_local_1): Clear forced_by_abi.
147 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
148 * cgraph.h (symtab_node_base): Add forced_by_abi.
149 (decide_is_variable_needed): Remove.
150 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
151 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
152 (decide_is_symbol_needed): ... this one; handle symbols in general;
153 always analyze virtuals; honnor forced_by_abi.
154 (cgraph_finalize_function): Update.
155 (varpool_finalize_decl): Update.
156 (symbol_defined_and_needed): Remove.
157 (analyze_functions): Update.
158 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
159 output_refs, input_overwrite_node): Handle forced_by_abi.
160 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
161 (address_taken_from_non_vtable_p): ... this one.
162 (comdat_can_be_unshared_p_1): New function.
163 (cgraph_comdat_can_be_unshared_p): Rename to ...
164 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
165 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
166 (function_and_variable_visibility): Clear forced_by_abi as needed.
167 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
168 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
169 * symtab.c (dump_symtab_base): Dump forced_by_abi.
170 * varpool.c (decide_is_variable_needed): Remove.
172 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
174 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
175 (arm_option_override): Override arm_restrict_it where appropriate.
176 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
177 * config/arm/arm.opt (mrestrict-it): New command-line option.
178 * doc/invoke.texi: Document -mrestrict-it.
180 2013-06-05 David Malcolm <dmalcolm@redhat.com>
182 * tsan.c (tsan_atomic_table): Make const.
184 2013-06-05 Richard Biener <rguenther@suse.de>
186 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
187 index associated with the tree we are supposed to replace.
188 * tree-streamer-out.c (pack_ts_base_value_fields): Output
189 TREE_ASM_WRITTEN as zero for everything but SSA names.
191 2013-06-05 David Malcolm <dmalcolm@redhat.com>
193 * tree-ssa-structalias.c (call_stmt_vars): Make static.
195 2013-06-04 Jan Hubicka <jh@suse.cz>
197 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
198 (input_node, input_varpool_node): Handle correctly external same
200 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
201 nodes at ltrans stage.
203 2013-06-04 Jan Hubicka <jh@suse.cz>
205 * ipa-inline.c (update_caller_keys): Fix availability test.
206 (update_callee_keys): Likewise.
207 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
208 to follow ELF standard.
210 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
212 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
213 (mips64r5900el-*-elf*): New configurations.
214 * config/mips/mips-cpus.def (r5900): New processor.
215 * config/mips/mips-tables.opt: Regenerate.
216 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
217 (mips_issue_rate): Handle PROCESSOR_R5900.
218 (mips_reorg_process_insns): Force reorder mode for the R5900.
219 * config/mips/mips.h (TARGET_MIPS5900): Define.
220 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
222 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
224 * config/mips/mips.md (processor): Add r5900.
225 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
227 2013-06-04 Ian Bolton <ian.bolton@arm.com>
229 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
230 into function to generate MOVI instruction.
231 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
232 (aarch64_preferred_simd_mode): Turn into wrapper.
233 (aarch64_output_scalar_simd_mov_immediate): New function.
234 * config/aarch64/aarch64-protos.h: Add prototype for above.
236 2013-06-04 Ian Bolton <ian.bolton@arm.com>
238 * config/aarch64/aarch64.c (simd_immediate_info): Remove
240 (sizetochar): Return signed char.
241 (aarch64_simd_valid_immediate): Remove elchar and other
242 unnecessary variables.
243 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
244 Calculate element_char as required.
245 * config/aarch64/aarch64-protos.h: Update and move prototype
246 for aarch64_output_simd_mov_immediate.
247 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
250 2013-06-04 Ian Bolton <ian.bolton@arm.com>
252 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
253 information completed by aarch64_simd_valid_immediate.
254 (aarch64_legitimate_constant_p): Update arguments.
255 (aarch64_simd_valid_immediate): Work with struct rather than many
257 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
258 (aarch64_simd_make_constant): Update arguments.
259 (aarch64_output_simd_mov_immediate): Work with struct rather than
260 many pointers. Output immediate directly rather than as operand.
261 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
263 * config/aarch64/constraints.md (Dn): Update arguments.
265 2013-06-04 Ian Bolton <ian.bolton@arm.com>
267 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
269 (aarch64_simd_immediate_valid_for_move): Remove.
270 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
271 (aarch64_simd_make_constant): Update call.
272 (aarch64_output_simd_mov_immediate): Update call.
273 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
275 * config/aarch64/constraints.md (Dn): Update call.
277 2013-06-04 Ian Bolton <ian.bolton@arm.com>
279 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
280 return type to bool for prototype.
281 (aarch64_legitimate_constant_p): Check for true instead of not -1.
282 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
283 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
285 2013-06-04 Catherine Moore <clm@codesourcery.com>
287 * config/mips/mips.opt (meva): New.
288 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
289 (ASM_SPEC): Handle -meva.
290 * doc/invoke.texi (meva): Document.
292 2013-06-04 Alan Modra <amodra@gmail.com>
294 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
297 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
299 * rtl.def: Add extra fourth optional field to define_cond_exec.
300 * gensupport.c (process_one_cond_exec): Process attributes from
302 * doc/md.texi: Document fourth field in define_cond_exec.
304 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
306 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
307 out the processing order as in store_bit_field_1.
309 2013-06-04 Jan Hubicka <jh@suse.cz>
312 * cgraphunit.c (cgraph_process_same_body_aliases): Create
313 non-VAR_DECL node if it does not exist yet.
315 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
317 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
318 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
319 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
320 target_cpu_default setting.
322 2013-06-03 Teresa Johnson <tejohnson@google.com>
324 * dumpfile.c (opt_info_switch_p): Change -fopt-info
325 default to -fopt-info=optimized instead of all.
326 * doc/invoke.texi: Ditto.
327 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
328 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
329 (execute_vect_slp): Emit BB vectorization success under
330 MSG_OPTIMIZED_LOCATIONS.
331 * tree-vect-slp.c (vect_slp_transform_bb): Change
332 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
333 * tree-vect-loop.c (vect_transform_loop): Ditto.
335 2013-06-03 Jason Merrill <jason@redhat.com>
338 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
339 Use TARGET_EXPR for C++.
341 2013-06-03 Jakub Jelinek <jakub@redhat.com>
343 PR rtl-optimization/57268
344 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
345 if DEBUG_INSN_P (insn).
348 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
350 PR rtl-optimization/57268
351 * sched-deps.c (sched_analyze_2): Flush dependence lists if
352 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
354 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
356 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
357 (ix86_avoid_lea_for_addr): Likewise.
358 (exact_dependency_1): Likewise.
359 (ix86_adjust_cost): Likewise.
360 (swap_top_of_ready_list): Fix formatting and !reload_completed check
362 (do_reorder_for_imul): Fix typo, formatting and
363 !reload_completed check removed.
364 (ix86_sched_reorder): Fix typo and formatting.
365 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
368 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
370 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
372 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
374 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
375 <STRING_CST>: Likewise.
376 <VECTOR_CST>: Likewise.
378 2013-06-01 Janus Weil <janus@gcc.gnu.org>
379 Mikael Morin <mikael@gcc.gnu.org>
381 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
382 * config.in: Regenerated.
383 * configure: Regenerated.
385 2013-06-01 Jan Hubicka <jh@suse.cz>
388 * cgraphunit.c (compile): When weakref is not supported,
389 set up transparent aliases before final output pass.
390 * varasm.c (assemble_alias): Do not try to do it here.
392 2013-06-01 Jan Hubicka <jh@suse.cz>
395 * passes.c (for_per_function): Skip unanalyzed functions.
397 2013-06-01 Jan Hubicka <jh@suse.cz>
399 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
400 (lto_symtab_merge_symbols_1): ... this one.
401 (lto_symtab_merge_cgraph_nodes): Rename to ...
402 (lto_symtab_merge_symbols): ... this one; simplify.
403 * cgraph.c (same_body_aliases_done): Rename to ...
404 (cpp_implicit_aliases_done): ... this one.
405 (cgraph_create_function_alias): Update.
406 (cgraph_same_body_alias): Update.
407 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
408 (verify_edge_corresponds_to_fndecl): Simplify.
409 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
410 (cgraph_node): Remove same_body_alias.
411 (varpool_node): Remove alias_of and extra_name_alias.
412 (same_body_aliases_done): Rename to ..
413 (cpp_implicit_aliases_done): ... this one.
414 (symtab_alias_ultimate_target): Add default parameter.
415 (symtab_resolve_alias): New function.
416 (fixup_same_cpp_alias_visibility): Declare.
417 (cgraph_function_node): Add default parameter.
418 (cgraph_node_asm_name): Likewise.
419 (cgraph_function_or_thunk_node): Add default parameter; do
420 not ICE when it is NULL.
421 (varpool_variable_node): Likewise.
422 * tree-emutls.c (create_emultls_var): Update.
423 (ipa_lower_emutls): Update.
424 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
425 (cgraph_reset_node): Reset alias info.
426 (cgraph_finalize_function): Update.
427 (fixup_same_cpp_alias_visibility): Move to symtab.c.
428 (analyze_function): Simplify.
429 (cgraph_process_same_body_aliases): Simplify.
430 (analyze_functions): Fixup same body aliases.
431 (handle_alias_pairs): Simplify.
432 (assemble_thunk): Update.
433 (assemble_thunks_and_aliases): Update.
434 (output_weakrefs): Rewrite.
435 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
436 (lto_output_varpool_node): Likewise.
437 (compute_ltrans_boundary): Remve assert.
438 (get_alias_symbol): New functoin.
439 (input_node): Rewrite alias handling.
440 (input_varpool_node): Likewise.
441 * ipa-pure-const.c (propagate_pure_const): Fix formating.
442 * ipa.c (process_references): Handle weakrefs correctly.
443 (symtab_remove_unreachable_nodes): Likewise.
444 * trans-mem.c (get_cg_data): Update.
445 (ipa_tm_create_version_alias): Update.
446 (ipa_tm_execute): Update.
447 * symtab.c (dump_symtab_base): Dump aliases.
448 (verify_symtab_base): Verify aliases.
449 (symtab_node_availability): New function.
450 (symtab_alias_ultimate_target): Simplify.
451 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
452 handle all the fixup cases.
453 (symtab_resolve_alias): New function.
454 * passes.c (ipa_write_summaries): Handle weakrefs.
455 * varpool.c (varpool_analyze_node): Simplify.
456 (assemble_aliases): Update.
457 (varpool_create_variable_alias): Simplify.
458 (varpool_extra_name_alias): Simplify.
459 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
460 (lto_symtab_merge_symbols): ... this one.
462 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
465 PR rtl-optimization/57268
466 * sched-deps.c (sched_analyze_2): Flush dependence lists if
467 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
469 2013-06-01 Tobias Burnus <burnus@net-b.de>
472 2013-05-31 Tobias Burnus <burnus@net-b.de>
475 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
478 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
480 PR rtl-optimization/57268
481 * sched-deps.c (sched_analyze_2): Flush dependence lists if
482 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
484 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
486 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
487 unordered comparison operators when -fno-trapping-math is in effect
489 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
490 and implement unordered comparison operators properly on the e500.
492 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
494 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
495 for constant scalar integers.
496 (simplify_relational_operation_1): Likewise.
498 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
500 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
501 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
504 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
505 Igor Zamyatin <igor.zamyatin@intel.com>
507 Silvermont (SLM) architecture performance tuning.
508 * config/i386/i386.h (enum ix86_tune_indices): Add
509 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
510 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
512 * config/i386/i386.c (initial_ix86_tune_features)
513 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
514 (ix86_lea_outperforms): Handle Silvermont tuning.
515 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
517 (ix86_use_lea_for_mov): Likewise.
518 (ix86_avoid_lea_for_addr): Likewise.
519 (ix86_lea_for_add_ok): Likewise.
520 (exact_dependency_1): New function.
521 (exact_store_load_dependency): Likewise.
522 (ix86_adjust_cost): Handle Silvermont tuning.
523 (do_reoder_for_imul): Likewise.
524 (swap_top_of_ready_list): New function.
525 (ix86_sched_reorder): Changed to handle Silvermont tuning.
527 * config/i386/i386.md (peepholes that split memory operand in fp
530 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
532 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
533 Remove un-necessary braces.
535 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
537 * config/aarch64/aarch64.c (aarch64_classify_symbol):
538 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
540 2013-05-31 Tobias Burnus <burnus@net-b.de>
543 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
545 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
548 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
549 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
550 * config/arm/neon.md (iordi3_neon): Remove.
551 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
552 * config/arm/predicates.md (imm_for_neon_logic_operand):
553 Move to earlier in the file.
554 (neon_logic_op2): Likewise.
555 (arm_iordi_operand_neon): New predicate.
557 2013-05-31 Richard Biener <rguenther@suse.de>
559 PR tree-optimization/57478
560 PR tree-optimization/57453
561 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
564 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
566 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
567 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
569 2013-05-30 Tobias Burnus <burnus@net-b.de>
570 Thomas Koenig <tkoenig@gcc.gnu.org>
573 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
574 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
576 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
578 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
580 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
582 * target.def (register_usage_leveling_p): New hook.
583 * targhooks.c (default_register_usage_leveling_p): New.
584 * targhooks.h (default_register_usage_leveling_p): New prototype.
585 * lra-assigns.c (register_usage_leveling_p): Use the hook.
586 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
587 * doc/tm.texi: Update.
588 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
590 2013-05-30 Ian Bolton <ian.bolton@arm.com>
592 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
593 (*insv_reg<mode>): New define_insn.
595 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
597 PR rtl-optimization/57439
598 * postreload.c (move2add_valid_value_p): Check that we have
599 a zero subreg_regno_offset when accessing the register in
602 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
603 Igor Zamyatin <igor.zamyatin@intel.com>
605 Silvermont (SLM) architecture pipeline model, tuning and
607 * config.gcc: Add slm config options and target.
609 * config/i386/slm.md: New.
611 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
613 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
615 (ix86_target_macros_internal): Likewise.
617 * gcc/config/i386/i386.c (slm_cost): New cost.
618 (m_SLM): New macro flag.
619 (initial_ix86_tune_features): Set m_SLM.
620 (x86_accumulate_outgoing_args): Likewise.
621 (x86_arch_always_fancy_math_387): Likewise.
622 (processor_target_table): Add slm cost.
623 (cpu_names): Add slm cpu name.
624 (x86_option_override_internal): Set SLM ISA.
625 (ix86_issue_rate): New case PROCESSOR_SLM.
626 (ia32_multipass_dfa_lookahead): Likewise.
627 (fold_builtin_cpu): Add slm.
629 * config/i386/i386.h (TARGET_SLM): New target macro.
630 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
631 (processor_type): Add PROCESSOR_SLM.
633 * config/i386/i386.md (cpu): Add new value "slm".
634 (slm.md): Include slm.md.
636 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
637 Zhenqiang Chen <zhenqiang.chen@linaro.org>
639 * config/arm/arm-protos.h: Add and update function protos.
640 * config/arm/arm.c (use_simple_return_p): New added.
641 (thumb2_expand_return): Check simple_return flag.
642 * config/arm/arm.md: Add simple_return and conditional simple_return.
643 * config/arm/iterators.md: Add iterator for return and simple_return.
645 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
647 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
648 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
649 (arm_emit_vfp_multi_reg_pop): Likewise.
650 (thumb2_emit_ldrd_pop): Likewise.
651 (arm_expand_epilogue): Add misc REG_CFA notes.
652 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
654 2013-05-29 Lawrence Crowl <crowl@google.com>
656 * config/arm/t-arm: Update for below.
658 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
659 Change type to hash_table. Update dependent calls and types.
661 * config/i386/t-cygming: Update for below.
663 * config/i386/t-interix: Update for below.
665 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
666 Change type to hash_table. Update dependent calls and types.
667 (i386_find_on_wrapper_list::wrappers): Likewise.
669 * config/ia64/t-ia64: Update for below.
671 * config/ia64/ia64.c (bundle_state_table):
672 Change type to hash_table. Update dependent calls and types.
674 * config/mips/mips.c (mips_reorg_process_insns::htab):
675 Change type to hash_table. Update dependent calls and types.
677 * config/sol2.c (solaris_comdat_htab):
678 Change type to hash_table. Update dependent calls and types.
680 * config/t-sol2: Update for above.
682 2013-05-29 Teresa Johnson <tejohnson@google.com>
684 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
685 functions are not yet marked as defined.
687 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
688 Pat Haugen <pthaugen@us.ibm.com>
689 Peter Bergner <bergner@vnet.ibm.com>
691 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
695 (vrotl<mode>3): Likewise.
696 (vashl<mode>3): Likewise.
697 (vlshr<mode>3): Likewise.
698 (vashr<mode>3): Likewise.
700 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
701 support for power8 V2DI builtins.
703 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
704 power8 V2DI builtins.
721 (vcmpequd): Likewise.
722 (vcmpgtsd): Likewise.
723 (vcmpgtud): Likewise.
724 (vcmpequd_p): Likewise.
725 (vcmpgtsd_p): Likewise.
726 (vcmpgtud_p): Likewise.
744 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
745 support for power8 V2DI instructions.
747 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
748 power8 V2DI instructions. Combine pack and unpack insns to use an
749 iterator for each mode. Check whether a particular mode supports
750 Altivec instructions instead of just checking TARGET_ALTIVEC.
751 (UNSPEC_VPKUWUM): Likewise.
752 (UNSPEC_VPKSHSS): Likewise.
753 (UNSPEC_VPKSWSS): Likewise.
754 (UNSPEC_VPKUHUS): Likewise.
755 (UNSPEC_VPKSHUS): Likewise.
756 (UNSPEC_VPKUWUS): Likewise.
757 (UNSPEC_VPKSWUS): Likewise.
758 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
759 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
760 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
761 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
762 (UNSPEC_VUPKHSB): Likewise.
763 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
764 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
765 (UNSPEC_VUPKHSH): Likewise.
766 (UNSPEC_VUPKLSB): Likewise.
767 (UNSPEC_VUPKLSH): Likewise.
770 (VI_scalar): Likewise.
773 (VP_small): Likewise.
774 (VP_small_lc): Likewise.
776 (add<mode>3): Likewise.
777 (altivec_vaddcuw): Likewise.
778 (altivec_vaddu<VI_char>s): Likewise.
779 (altivec_vadds<VI_char>s): Likewise.
780 (sub<mode>3): Likewise.
781 (altivec_vsubcuw): Likewise.
782 (altivec_vsubu<VI_char>s): Likewise.
783 (altivec_vsubs<VI_char>s): Likewise.
784 (altivec_vavgs<VI_char>): Likewise.
785 (altivec_vcmpbfp): Likewise.
786 (altivec_eq<mode>): Likewise.
787 (altivec_gt<mode>): Likewise.
788 (altivec_gtu<mode>): Likewise.
789 (umax<mode>3): Likewise.
790 (smax<mode>3): Likewise.
791 (umin<mode>3): Likewise.
792 (smin<mode>3): Likewise.
793 (altivec_vpkuhum): Likewise.
794 (altivec_vpkuwum): Likewise.
795 (altivec_vpkshss): Likewise.
796 (altivec_vpkswss): Likewise.
797 (altivec_vpkuhus): Likewise.
798 (altivec_vpkshus): Likewise.
799 (altivec_vpkuwus): Likewise.
800 (altivec_vpkswus): Likewise.
801 (altivec_vpks<VI_char>ss): Likewise.
802 (altivec_vpks<VI_char>us): Likewise.
803 (altivec_vpku<VI_char>us): Likewise.
804 (altivec_vpku<VI_char>um): Likewise.
805 (altivec_vrl<VI_char>): Likewise.
806 (altivec_vsl<VI_char>): Likewise.
807 (altivec_vsr<VI_char>): Likewise.
808 (altivec_vsra<VI_char>): Likewise.
809 (altivec_vsldoi_<mode>): Likewise.
810 (altivec_vupkhsb): Likewise.
811 (altivec_vupkhs<VU_char>): Likewise.
812 (altivec_vupkls<VU_char>): Likewise.
813 (altivec_vupkhsh): Likewise.
814 (altivec_vupklsb): Likewise.
815 (altivec_vupklsh): Likewise.
816 (altivec_vcmpequ<VI_char>_p): Likewise.
817 (altivec_vcmpgts<VI_char>_p): Likewise.
818 (altivec_vcmpgtu<VI_char>_p): Likewise.
819 (abs<mode>2): Likewise.
820 (vec_unpacks_hi_v16qi): Likewise.
821 (vec_unpacks_hi_v8hi): Likewise.
822 (vec_unpacks_lo_v16qi): Likewise.
823 (vec_unpacks_hi_<VP_small_lc>): Likewise.
824 (vec_unpacks_lo_v8hi): Likewise.
825 (vec_unpacks_lo_<VP_small_lc>): Likewise.
826 (vec_pack_trunc_v8h): Likewise.
827 (vec_pack_trunc_v4si): Likewise.
828 (vec_pack_trunc_<mode>): Likewise.
830 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
832 (vec_vmaxsd): Likewise.
833 (vec_vmaxud): Likewise.
834 (vec_vminsd): Likewise.
835 (vec_vminud): Likewise.
836 (vec_vpksdss): Likewise.
837 (vec_vpksdus): Likewise.
838 (vec_vpkudum): Likewise.
839 (vec_vpkudus): Likewise.
840 (vec_vrld): Likewise.
841 (vec_vsld): Likewise.
842 (vec_vsrad): Likewise.
843 (vec_vsrd): Likewise.
844 (vec_vsubudm): Likewise.
845 (vec_vupkhsw): Likewise.
846 (vec_vupklsw): Likewise.
848 2013-05-29 Jan Hubicka <jh@suse.cz>
850 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
851 flags; reorder rest of fields in more consistent way.
852 (varpool_node): Remove analyzed, finalized and alias.
853 (cgraph_ndoe): Likewise.
854 (symtab_alias_ultimate_target): New function.
855 (cgraph_function_node): Move offline.
856 (cgraph_reset_node): Declare.
857 (cgraph_comdat_can_be_unshared_p): Remove.
858 (varpool_remove_initializer): Declare.
859 (varpool_first_defined_variable, varpool_next_defined_variable
860 cgraph_first_defined_function, cgraph_next_defined_function): Update.
861 (cgraph_function_with_gimple_body_p): Update.
862 (varpool_all_refs_explicit_p): Update.
863 (symtab_alias_target): New function.
864 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
865 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
866 (cgraph_function_or_thunk_node): Simplify using
867 symtab_alias_ultimate_target.
868 (varpool_variable_node): Likewise.
869 * cgraph.c (cgraph_create_function_alias): Update.
870 (cgraph_add_thunk): Update.
871 (cgraph_remove_node): Update.
872 (dump_cgraph_node): Do not dump removed flags.
873 (cgraph_function_body_availability): Update.
874 (cgraph_propagate_frequency): Update.
875 (verify_cgraph_node): Check sanity of local flag.
876 (cgraph_function_node): Move here from cgraph.h; revamp for
877 cgraph_function_or_thunk_node.
878 * lto-symtab.c (lto_varpool_replace_node): Update.
879 (lto_symtab_resolve_can_prevail_p): Update.
880 (lto_symtab_merge_cgraph_nodes): Update.
881 * ipa-cp.c (determine_versionability, initialize_node_lattices,
882 propagate_constants_accross_call, devirtualization_time_bonus,
883 ipcp_propagate_stage): Update.
884 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
885 * ipa-inline-transform.c (clone_inlined_nodes,
886 preserve_function_body_p): Update.
887 * ipa-reference.c (propagate): Update.
888 (write_node_summary_p): Update.
889 * toplev.c (wrapup_global_declaration_2): Update.
890 * cgraphunit.c (cgraph_analyze_function): Rename to ...
891 (analyze_function) ... this one.
892 (cgraph_process_new_functions): Update.
893 (cgraph_reset_node): Export.
894 (cgraph_finalize_function): Update.
895 (cgraph_add_new_function): Update.
896 (process_function_and_variable_attributes): Update.
897 (varpool_finalize_decl): Update.
898 (symbol_finalized): Remove.
899 (symbol_finalized_and_needed): Rename to ...
900 (symbol_defined_and_needed): ... update.
901 (cgraph_analyze_functions): Update.
902 (handle_alias_pairs): Update.
903 (mark_functions_to_output): Update.
904 (assemble_thunk): Update.
905 (output_in_order): Update.
906 (output_weakrefs): Update.
907 (finalize_compilation_unit): Update.
908 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
909 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
910 input_node, input_varpool_node): Update.
911 * dbxout.c (dbxout_expand_expr): Update.
912 * cgraphclones.c (cgraph_clone_node): Update.
913 (cgraph_copy_node_for_versioning): Update.
914 (cgraph_materialize_clone): Update.
915 (cgraph_materialize_all_clones): Update.
916 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
917 propagate_pure_const, propagate_nothrow): Update.
918 * lto-streamer-out.c (lto_output, write_symbol): Update.
919 * ipa-utils.c (ipa_reverse_postorder): Update.
920 * ipa-inline.c (can_inline_edge_p): Update.
921 (update_caller_keys, ipa_inline): Update.
922 * dwarf2out.c (reference_to_unused,
923 premark_types_used_by_global_vars_helper): Update.
924 * tree-eh.c (tree_could_trap_p): Update.
925 * ipa-split.c (consider_split, execute_split_functions): Update.
926 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
927 has_addr_references_p): Update; move ahead in file for better
929 (process_references): Simplify.
930 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
932 (cgraph_comdat_can_be_unshared_p): Make static.
933 (cgraph_externally_visible_p): Update.
934 (varpool_externally_visible_p): Update.
935 (function_and_variable_visibility): Update.
936 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
937 ipa_tm_mark_force_output_node): Update.
938 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
939 estimate_edge_devirt_benefit, inline_generate_summary,
940 inline_write_summary): Update.
941 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
942 * ipa-prop.c (ipa_compute_jump_functions): Update.
943 (ipa_print_node_params, ipa_prop_read_section,
944 ipa_update_after_lto_read, read_replacements_section): Update.
945 * varasm.c (mark_decl_referenced): Update.
946 (assemble_alias, dump_tm_clone_pairs): Update.
947 * tree-inline.c (copy_bb): Update.
948 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
950 * symtab.c (dump_symtab_base): Print new flags.
951 (verify_symtab_base): Verify new flags.
952 (symtab_alias_ultimate_target): New function.
953 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
954 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
956 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
958 * i386.c (ix86_get_function_versions_dispatcher,
959 ix86_generate_version_dispatcher_body): Update.
960 (fold_builtin_cpu): Use varpool_add_new_variable.
961 * varpool.c (varpool_remove_initializer): Break out from ...
962 (varpool_remove_node): ... this one.
963 (dump_varpool_node, varpool_node_for_asm,
964 cgraph_variable_initializer_availability, varpool_analyze_node,
965 varpool_assemble_decl, varpool_remove_unreferenced_decls,
966 varpool_finalize_named_section_flags, varpool_create_variable_alias):
969 2013-05-29 Jan Hubicka <jh@suse.cz>
971 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
973 2013-05-29 Easwaran Raman <eraman@google.com>
975 PR tree-optimization/57442
976 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
977 when control exits the main loop.
979 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
981 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
983 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
984 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
985 * rx/t-rx: Add rx100 under multi library matches option for nofpu
988 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
990 PR tree-optimization/57441
991 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
992 Don't limit size of incr_vec to number of candidates.
994 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
996 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
997 and mips16 directories.
998 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
999 (MULTILIB_DIRNAMES): Ditto.
1000 (MULTILIB_EXCEPTIONS): Add new exceptions.
1001 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1002 (MULTILIB_DIRNAMES): Ditto.
1003 (MULTILIB_EXCEPTIONS): Add new exceptions.
1005 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1006 Marcus Shawcroft <marcus.shawcroft@arm.com>
1008 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1009 SYMBOL_TINY_ABSOLUTE.
1010 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1011 SYMBOL_TINY_ABSOLUTE.
1012 (aarch64_expand_mov_immediate): Likewise.
1013 (aarch64_classify_symbol): Likewise.
1014 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1015 Permit SYMBOL_TINY_ABSOLUTE.
1016 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1018 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1019 Marcus Shawcroft <marcus.shawcroft@arm.com>
1021 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1022 Refactor if/switch. Replace gcc_assert with if.
1024 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1026 * config/i386/i386.c (initial_ix86_tune_features): Enable
1027 FP Reassociation for AMD bdver1 and bdver2.
1029 2013-05-29 Martin Jambor <mjambor@suse.cz>
1031 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1032 and IMAGPART_EXPR do not occur within other handled_components.
1034 2013-05-29 Richard Biener <rguenther@suse.de>
1036 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1037 access on whether the use is in the BB we currently try to
1039 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1040 vectorize to vect_bb_slp_scalar_cost.
1042 2013-05-29 Richard Biener <rguenther@suse.de>
1044 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1045 computing scalar cost offsetted by stmts that are kept live
1047 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1048 for computation of scalar cost.
1050 2013-05-28 Steve Ellcey <sellcey@mips.com>
1052 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1054 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1056 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1057 array notation built-in reduction functions.
1058 * doc/passes.texi (Passes): Added documentation about changes done
1060 * doc/invoke.texi (C Dialect Options): Added documentation about
1061 the -fcilkplus flag.
1062 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1063 (BUILTINS_DEF): Depend on cilkplus.def.
1064 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1065 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1066 * cilkplus.def: New file.
1068 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1070 PR rtl-optimization/57439
1071 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1073 2013-05-28 Easwaran Raman <eraman@google.com>
1075 PR tree-optimization/57337
1076 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1077 (find_insert_point): Correctly identify the insertion point
1078 when two statements with the same UID is compared.
1080 2013-05-28 Richard Biener <rguenther@suse.de>
1082 PR tree-optimization/56787
1083 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1084 from the list of data references.
1085 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1087 (vect_analyze_loop_operations): Likewise.
1088 (vect_transform_loop): Remove clobbers.
1090 2013-05-28 Martin Jambor <mjambor@suse.cz>
1092 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1093 and REALPART_EXPRs have scalar type.
1095 2013-05-28 Richard Biener <rguenther@suse.de>
1097 PR tree-optimization/57411
1098 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1100 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1101 virtual operand propagation.
1103 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1105 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1106 destination register for bmasksi_vis.
1107 (vector_init_bshuffle): Likewise.
1108 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1110 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1112 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1113 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1114 mode if the instruction isn't available in the original mode.
1115 * config/sparc/sparc.opt (mfix-ut699): New option.
1116 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1117 (divdf3): Turn into expander.
1118 (divdf3_nofix): New insn.
1119 (divdf3_fix): Likewise.
1120 (divsf3): Disable if -mfix-ut699.
1121 (sqrtdf2): Turn into expander.
1122 (sqrtdf2_nofix): New insn.
1123 (sqrtdf2_fix): Likewise.
1124 (sqrtsf2): Disable if -mfix-ut699.
1126 2013-05-27 Richard Biener <rguenther@suse.de>
1129 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1130 block for the new loop.
1132 2013-05-27 Richard Biener <rguenther@suse.de>
1134 PR tree-optimization/57343
1135 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1136 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1137 (number_of_iterations_cond): Do not build the folded tree.
1139 2013-05-27 Richard Biener <rguenther@suse.de>
1143 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1144 OEP_CONSTANT_ADDRESS_OF retained.
1146 PR tree-optimization/57417
1147 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1149 (set_ssa_val_to): Compare addresses using
1150 get_addr_base_and_unit_offset.
1152 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1154 PR rtl-optimization/56833
1155 * postreload.c (move2add_record_mode): New function.
1156 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1157 (move2add_use_add2_insn): Use move2add_record_sym_value.
1158 (move2add_use_add3_insn): Likewise.
1159 (reload_cse_move2add): Use move2add_valid_value_p and
1160 move2add_record_mode. Invalidate call-clobbered and REG_INC
1161 affected regs by setting reg_mode to VOIDmode.
1162 (move2add_note_store): Don't pretend the inside of a SUBREG is
1163 the actual destination. Invalidate single/leading registers by
1164 setting reg_mode to VOIDmode.
1165 Use move2add_record_sym_value, move2add_valid_value_p and
1166 move2add_record_mode.
1168 2013-05-27 Richard Biener <rguenther@suse.de>
1170 PR tree-optimization/57396
1171 * tree-affine.c (double_int_constant_multiple_p): Properly
1172 return false for val == 0 and div != 0.
1174 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1176 * config/mips/mips.h: Use #elif in preprocessor conditions.
1178 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1181 * config/mips/constraints.md (kl): New constraint.
1182 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1183 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1184 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1186 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1188 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1191 * config/mips/mips.c (mips_can_inline_p): New function.
1192 (TARGET_CAN_INLINE_P): Define.
1194 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1196 * sched-int.h (ds_t, dw_t): Make unsigned int.
1197 Fix documentation that describes how all the ds_t bits are used.
1198 Reserve the last bit for delayed-branch scheduling.
1199 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1200 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1201 (gen_dep_weak_1): Remove prototype.
1202 * sched-deps.c (get_dep_weak_1): Make static.
1203 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1204 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1205 * doc/tm.texi: Regenerate.
1206 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1208 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1211 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1213 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1214 Sandra Loosemore <sandra@codesourcery.com>
1216 * config.gcc (powerpc-*): Allow native for with-cpu.
1218 2013-05-24 Jeff Law <law@redhat.com>
1220 PR tree-optimization/57124
1221 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1222 conversion feeding a condition if the range has an overflow
1223 if -fstrict-overflow. Add warnings for when we do make the
1226 2013-05-24 Dehao Chen <dehao@google.com>
1228 * tree-cfg.c (locus_discrim_map): Fix the typo.
1229 (locus_discrim_hasher): Likewise.
1230 (locus_discrim_hasher::hash): Likewise.
1231 (locus_discrim_hasher::equal): Likewise.
1233 2013-05-24 Martin Jambor <mjambor@suse.cz>
1235 PR tree-optimization/57294
1236 * cgraph.h (ipa_record_stmt_references): Declare.
1237 * cgraphbuild.c (ipa_record_stmt_references): New function.
1238 (build_cgraph_edges): Use ipa_record_stmt_references.
1239 (rebuild_cgraph_edges): Likewise.
1240 (cgraph_rebuild_references): Likewise.
1241 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1242 associated with the old statement and build references from the
1243 newly built statements.
1244 * ipa-ref.c (ipa_remove_stmt_references): New function.
1245 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1247 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1249 * lra-constraints.c (emit_spill_move): Use smaller mode for
1251 (check_and_process_move): Consider mem-reg moves for secondary
1253 (curr_insn_transform): Don't lose insns emitted before for
1254 secondary memory moves.
1255 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1256 reg set up in the current insn.
1258 2013-05-24 Dehao Chen <dehao@google.com>
1260 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1262 (locus_descrim_hasher::equal): Likewise.
1263 (build_gimple_cfg): New discriminator assignment algorithm.
1264 (make_edges): Likewise.
1265 (next_discriminator_for_locus): Likewise.
1266 (same_line_p): Likewise.
1267 (assign_discriminators): Likewise.
1268 (make_cond_expr_edges): Likewise.
1269 (make_gimple_switch_edges): Likewise.
1270 (make_goto_expr_edges): Likewise.
1271 (make_gimple_asm_edges): Likewise.
1273 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1275 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1276 X format specifier to only display bottom 16 bits.
1277 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1278 immediate to match for operand 2, since it will be masked.
1280 2013-05-24 Richard Biener <rguenther@suse.de>
1282 PR tree-optimization/57287
1283 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1284 all SSA names that occur in abnormal PHIs.
1286 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1289 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1290 that index is not negative.
1292 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1294 PR rtl-optimization/55177
1295 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1296 (simplify_byte_swapping_operation): New.
1297 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1298 (simplify_relational_operation_1): Deal with BSWAP.
1300 2013-05-23 Richard Henderson <rth@redhat.com>
1303 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1304 (ix86_reorg): Call it.
1306 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1309 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1310 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1311 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1313 2013-05-23 Christian Bruel <christian.bruel@st.com>
1316 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1318 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1319 Marcus Shawcroft <marcus.shawcroft@arm.com>
1321 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1322 * config/aarch64/constraints.md (Usa): Remove.
1323 * doc/md.texi (AArch64 Usa): Remove.
1325 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1326 Marcus Shawcroft <marcus.shawcroft@arm.com>
1328 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1329 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1330 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1331 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1333 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1335 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1336 instruction (AdvSIMD).
1337 * config/aarch64/aarch64-builtins.c
1338 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1339 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1341 2013-05-23 Martin Jambor <mjambor@suse.cz>
1344 * tree.h (contains_bitfld_component_ref_p): Declare.
1345 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1346 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1348 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1349 not access a bit-field. Assert all final offsets are byte-aligned.
1351 2013-05-23 Richard Biener <rguenther@suse.de>
1353 PR tree-optimization/57380
1354 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1355 least one invariant or re-used load.
1356 * passes.c (init_optimization_passes): Move pass_phiprop before
1359 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1361 * config/aarch64/aarch64-simd.md
1362 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1364 2013-05-23 Richard Biener <rguenther@suse.de>
1367 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1368 OEP_CONSTANT_ADDRESS_OF retained.
1370 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1373 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1374 don't lower unit. Handle unit not being always BITS_PER_WORD.
1376 2013-05-23 Richard Biener <rguenther@suse.de>
1378 PR rtl-optimization/57341
1379 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1380 instead of true_dependence.
1382 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1384 * bb-reorder.c (branch_threshold): Make const.
1385 (exec_threshold): Ditto.
1387 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1388 Pat Haugen <pthaugen@us.ibm.com>
1389 Peter Bergner <bergner@vnet.ibm.com>
1391 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1392 documentation for the power8 crypto builtins.
1394 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1396 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1397 macros for defining power8 builtin functions.
1398 (BU_P8V_AV_2): Likewise.
1399 (BU_P8V_AV_P): Likewise.
1400 (BU_P8V_VSX_1): Likewise.
1401 (BU_P8V_OVERLOAD_1): Likewise.
1402 (BU_P8V_OVERLOAD_2): Likewise.
1403 (BU_CRYPTO_1): Likewise.
1404 (BU_CRYPTO_2): Likewise.
1405 (BU_CRYPTO_3): Likewise.
1406 (BU_CRYPTO_OVERLOAD_1): Likewise.
1407 (BU_CRYPTO_OVERLOAD_2): Likewise.
1408 (XSCVSPDP): Fix typo, point to the correct instruction.
1409 (VCIPHER): Add power8 crypto builtins.
1410 (VCIPHERLAST): Likewise.
1411 (VNCIPHER): Likewise.
1412 (VNCIPHERLAST): Likewise.
1413 (VPMSUMB): Likewise.
1414 (VPMSUMH): Likewise.
1415 (VPMSUMW): Likewise.
1416 (VPERMXOR_V2DI): Likewise.
1417 (VPERMXOR_V4SI: Likewise.
1418 (VPERMXOR_V8HI: Likewise.
1419 (VPERMXOR_V16QI: Likewise.
1420 (VSHASIGMAW): Likewise.
1421 (VSHASIGMAD): Likewise.
1423 (VPERMXOR): Likewise.
1424 (VSHASIGMA): Likewise.
1426 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1427 __CRYPTO__ if the crypto instructions are available.
1428 (altivec_overloaded_builtins): Add support for overloaded power8
1431 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1432 support for power8 crypto builtins.
1433 (builtin_function_type): Likewise.
1434 (altivec_init_builtins): Add support for builtins that take vector
1435 long long (V2DI) arguments.
1437 * config/rs6000/crypto.md: New file, define power8 crypto
1440 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1441 Pat Haugen <pthaugen@us.ibm.com>
1442 Peter Bergner <bergner@vnet.ibm.com>
1444 * doc/invoke.texi (Option Summary): Add power8 options.
1445 (RS/6000 and PowerPC Options): Likewise.
1447 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1448 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1449 wm, wn, wr documentation.
1451 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1452 registers if direct move instructions are enabled.
1453 (wn): New constraint for no registers.
1454 (wq): New constraint for quad word even GPR registers.
1455 (wr): New constraint if 64-bit instructions are enabled.
1456 (wv): New constraint if power8 vector instructions are enabled.
1457 (wQ): New constraint for quad word memory locations.
1459 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1460 constraint for 0..15 for crypto instructions.
1461 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1462 as GPR and floating point registers.
1463 (int_reg_operand): New predicate to match only GPR registers.
1464 (base_reg_operand): New predicate to match base registers.
1465 (quad_int_reg_operand): New predicate to match even GPR registers
1466 for quad memory operations.
1467 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1468 operations in both GPR and VSX registers.
1469 (quad_memory_operand): New predicate for quad memory operations.
1470 (reg_or_indexed_operand): New predicate for direct move support.
1472 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1473 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1474 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1475 (POWERPC_MASKS): Add power8 options.
1476 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1479 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1480 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1482 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1483 (-mpower8-fusion): New power8 options.
1484 (-mpower8-fusion-sign): Likewise.
1485 (-mpower8-vector): Likewise.
1486 (-mcrypto): Likewise.
1487 (-mdirect-move): Likewise.
1488 (-mquad-memory): Likewise.
1490 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1492 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1494 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1495 (rs6000_debug_vector_unit): Add p8_vector.
1496 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1497 definitions. Also print fusion state.
1498 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1499 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1500 (rs6000_option_override_internal): Add support for power8.
1501 (rs6000_common_init_builtins): Add debugging for skipped builtins
1503 (rs6000_adjust_cost): Add power8 support.
1504 (rs6000_issue_rate): Likewise.
1505 (insn_must_be_first_in_group): Likewise.
1506 (insn_must_be_last_in_group): Likewise.
1507 (force_new_group): Likewise.
1508 (rs6000_register_move_cost): Likewise.
1509 (rs6000_opt_masks): Likewise.
1511 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1512 power8 capable assembler, default to power7 options.
1513 (TARGET_DIRECT_MOVE): Likewise.
1514 (TARGET_CRYPTO): Likewise.
1515 (TARGET_P8_VECTOR): Likewise.
1516 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1517 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1518 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1519 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1520 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1521 (TARGET_XSCVDPSPN): Likewise.
1522 (TARGET_XSCVSPDPN): Likewsie.
1523 (TARGET_SYNC_HI_QI): Likewise.
1524 (TARGET_SYNC_TI): Likewise.
1525 (MASK_CRYPTO): Likewise.
1526 (MASK_DIRECT_MOVE): Likewise.
1527 (MASK_P8_FUSION): Likewise.
1528 (MASK_P8_VECTOR): Likewise.
1529 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1530 temporary used by some of the direct move instructions to get two FP
1531 temporary registers does not force creation of a stack frame.
1532 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1533 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1534 that any VSX registers are tieable, even if they are also an
1535 Altivec vector mode.
1536 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1537 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1538 (RS6000_BTM_CRYPTO): Likewise.
1539 (RS6000_BTM_COMMON): Likewise.
1541 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1542 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1543 (enum rs6000_vector): Add power8 vector support.
1545 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1549 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1550 (any_sibcall_could_use_r3): this and handle indirect calls.
1551 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1553 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1555 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1557 2013-05-22 Richard Biener <rguenther@suse.de>
1560 * profile.c (branch_prob): Do not split blocks that are
1561 abnormally receiving from ECF_RETURNS_TWICE functions.
1563 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1565 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1566 address mode. Move pointer mode initialization to the same place.
1568 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1570 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1571 while it has any effect.
1573 2013-05-21 Easwaran Raman <eraman@google.com>
1575 PR tree-optimization/57322
1576 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1577 UID of the statement added to the BB to be 1.
1579 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1581 PR tree-optimization/57331
1582 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1583 of conversion from pointer type to integral type with integer.
1585 2013-05-21 Martin Jambor <mjambor@suse.cz>
1588 * ipa-prop.c (ipa_read_node_info): Process param_used and
1589 controlled_uses in the same order as when writing.
1591 2013-05-21 Magnus Granberg <baldrick@free.fr>
1594 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1596 2013-05-21 Richard Biener <rguenther@suse.de>
1598 PR tree-optimization/57318
1599 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1600 estimate stmts with side-effects as likely eliminated.
1602 2013-05-21 Richard Biener <rguenther@suse.de>
1604 PR tree-optimization/57330
1605 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1606 preserve the call stmts fntype.
1608 2013-05-21 Richard Biener <rguenther@suse.de>
1610 PR tree-optimization/57303
1611 * tree-ssa-sink.c (statement_sink_location): Improve killing
1612 stmt detection and properly handle self-assignments.
1614 2013-05-21 Christian Bruel <christian.bruel@st.com>
1616 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1617 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1618 registers. Set register size out of the PARALLEL loop.
1620 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1623 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1624 (*fmasf4, *fmasf4_media): New insns.
1626 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1628 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1629 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1630 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1631 (mips_idiv_insns): Update the comments to say that the returned
1632 instruction counts are in units of BASE_INSN_LENGTH.
1633 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1634 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1635 using 2 rather than 4 as the length of indirect MIPS16 and
1636 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1637 length of a NOP. Don't divide MIPS16 lengths by 2.
1638 (mips16_split_long_branches): Assume a branch is long if the
1639 length is greater than 4 rather than 8.
1640 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1641 rather than multiplying them by 2. Multiply instruction counts
1642 by BASE_INSN_LENGTH rather than 4.
1643 (*jump_mips16, tls_get_tp_mips16_<mode>)
1644 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1646 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1648 * config/mips/mips.md (extended_mips16): Remove branch case.
1649 (length): Remove duplicated extended_mips16 test.
1651 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1653 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1655 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1657 * recog.h (Recog_data): Rename to...
1658 (recog_data_d): ...this.
1659 (recog_data): Update accordingly.
1660 * recog.c (recog_data): Likewise.
1661 * reload.c (save_recog_data): Likewise.
1662 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1663 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1665 2013-05-17 Julian Brown <julian@codesourcery.com>
1667 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1668 found in a REG_EQUAL note, invalidate it.
1670 2013-05-17 Easwaran Raman <eraman@google.com>
1672 * tree-ssa-reassoc.c (find_insert_point): New function.
1673 (insert_stmt_after): Likewise.
1674 (get_def_stmt): Likewise.
1675 (ensure_ops_are_available): Likewise.
1676 (not_dominated_by): Likewise.
1677 (rewrite_expr_tree): Do not move statements beyond what is
1678 necessary. Remove call to swap_ops_for_binary_stmt...
1679 (reassociate_bb): ... and move it here.
1680 (build_and_add_sum): Assign UIDs for new statements.
1681 (linearize_expr): Likewise.
1682 (do_reassoc): Renumber gimple statement UIDs.
1684 2013-05-17 Jan Hubicka <jh@suse.cz>
1686 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1688 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1689 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1691 (output_weakrefs): Update.
1693 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1694 Martin Jambor <mjambor@suse.cz>
1697 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1698 value that corresponds to the given aggval is found in values vector.
1700 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1702 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1703 sse, sse2, sse3, ssse3 and sse4a flags to options.
1705 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1707 * gengtype-state.c: (s_expr_writer): New class, to handle
1708 prettifying of output layout of s-expressions.
1709 (state_writer): New class, to write out gtype.state.
1710 (state_written_type_count): Move this variable into member data of
1712 (s_expr_writer::s_expr_writer): New code: constructor for new class
1713 (state_writer::state_writer(): ditto
1714 (s_expr_writer::write_new_line): New function
1715 (s_expr_writer::write_any_indent): ditto
1716 (s_expr_writer::begin_s_expr): ditto
1717 (s_expr_writer::end_s_expr): ditto
1718 (write_state_fileloc): convert to method of state_writer...
1719 (state_writer:: write_state_fileloc): ...and use methods of
1720 s_expr_writer to write indentation into the gtype.state output file
1721 to visually represent the hierarchical structure of the list
1723 (write_state_fields): ditto, renaming to...
1724 (state_writer::write_state_fields)
1725 (write_state_a_string): ditto, renaming to...
1726 (state_writer::write_state_a_string)
1727 (write_state_string_option): ditto, renaming to...
1728 (state_writer::write_state_string_option)
1729 (write_state_type_option): ditto, renaming to...
1730 (state_writer::write_state_type_option)
1731 (write_state_nested_option): ditto, renaming to...
1732 (state_writer::write_state_nested_option)
1733 (write_state_option): ditto, renaming to...
1734 (state_writer::write_state_option)
1735 (write_state_options): ditto, renaming to...
1736 (state_writer::write_state_options)
1737 (write_state_lang_bitmap): ditto, renaming to...
1738 (state_writer::write_state_lang_bitmap)
1739 (write_state_version): ditto, renaming to...
1740 (state_writer::write_state_version)
1741 (write_state_scalar_type): ditto, renaming to...
1742 (state_writer::write_state_scalar_type)
1743 (write_state_string_type): ditto, renaming to...
1744 (state_writer::write_state_string_type)
1745 (write_state_undefined_type): ditto, renaming to...
1746 (state_writer::write_state_undefined_type)
1747 (write_state_struct_union_type): ditto, renaming to...
1748 (state_writer::write_state_struct_union_type)
1749 (write_state_struct_type): ditto, renaming to...
1750 (state_writer::write_state_struct_type)
1751 (write_state_user_struct_type): ditto, renaming to...
1752 (state_writer::write_state_user_struct_type)
1753 (write_state_lang_struct_type): ditto, renaming to...
1754 (state_writer::write_state_lang_struct_type)
1755 (write_state_param_struct_type): ditto, renaming to...
1756 (state_writer::write_state_param_struct_type)
1757 (write_state_pointer_type): ditto, renaming to...
1758 (state_writer::write_state_pointer_type)
1759 (write_state_array_type): ditto, renaming to...
1760 (state_writer::write_state_array_type)
1761 (write_state_gc_used): ditto, renaming to...
1762 (state_writer::write_state_gc_used)
1763 (write_state_common_type_content): ditto, renaming to...
1764 (state_writer::write_state_common_type_content)
1765 (write_state_type): ditto, renaming to...
1766 (state_writer::write_state_type)
1767 (write_state_pair_list): ditto, renaming to...
1768 (state_writer::write_state_pair_list)
1769 (write_state_pair): ditto, renaming to...
1770 (state_writer::write_state_pair)
1771 (write_state_typedefs): ditto, renaming to...
1772 (state_writer::write_state_typedefs)
1773 (write_state_structures): ditto, renaming to...
1774 (state_writer::write_state_structures)
1775 (write_state_param_structs): ditto, renaming to...
1776 (state_writer::write_state_param_structs)
1777 (write_state_variables): ditto, renaming to...
1778 (state_writer::write_state_variables)
1779 (write_state_srcdir): ditto, renaming to...
1780 (state_writer::write_state_srcdir)
1781 (write_state_files_list): ditto, renaming to...
1782 (state_writer::write_state_files_list)
1783 (write_state_languages): ditto, renaming to...
1784 (state_writer::write_state_languages)
1785 (write_state): create a state_writer instance and use it when
1786 writing out the state file
1788 2013-05-17 Mike Stump <mikestump@comcast.net>
1790 PR rtl-optimization/57304
1791 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1792 accessing DF_REF_REAL_LOC.
1794 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1796 PR rtl-optimization/57281
1797 PR rtl-optimization/57300
1798 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1799 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1800 what the other splitter did if the registers are dead.
1802 2013-05-17 Richard Biener <rguenther@suse.de>
1804 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1807 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1809 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1812 2013-05-17 Marek Polacek <polacek@redhat.com>
1814 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1815 length when doing non-zero store of storing '\0' to '\0'.
1817 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1819 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1820 vect_external_def oprnd1 with loop_vinfo, try to emit
1821 optional cast, negation and and stmts on the loop preheader
1822 edge instead of into the pattern def seq.
1824 PR tree-optimization/57051
1825 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1826 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1828 2013-05-16 Nick Clifton <nickc@redhat.com>
1830 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1831 (rl78_is_naked_func): New function.
1832 (rl78_expand_prologue): Skip prologue generation for naked
1834 (rl78_expand_epilogue): Skip epilogue generation for naked
1836 * doc/extend.texi (naked): Add RL78 to the list of processors
1837 that supports this attribute.
1839 2013-05-16 Jeff Law <law@redhat.com>
1841 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1843 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1845 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1846 cache parameters using detect_caches_amd also for CYRIX,
1847 NSC and TM2 signatures.
1849 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
1850 Dzianis Kahanovich <mahatma@eu.by>
1854 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1855 VIA/Centaur processors and determine their cache parameters
1856 using detect_caches_amd.
1858 2013-05-16 Teresa Johnson <tejohnson@google.com>
1860 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1861 (rtl_verify_edges): New function.
1862 (rtl_verify_bb_insns): Ditto.
1863 (rtl_verify_bb_pointers): Ditto.
1864 (rtl_verify_bb_insn_chain): Ditto.
1865 (rtl_verify_fallthru): Ditto.
1866 (rtl_verify_bb_layout): Ditto.
1867 (rtl_verify_flow_info_1): Outline checks into new functions.
1868 (rtl_verify_flow_info): Ditto.
1870 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
1872 * cfghooks.c (copy_bbs): Add update_dominance argument.
1873 * cfghooks.h (copy_bbs): Update prototype.
1874 * tree-cfg.c (gimple_duplicate_sese_region):
1875 Add update_dominance argument.
1876 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1877 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1878 gimple_duplicate_sese_region call.
1879 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1880 Update copy_bbs call.
1881 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1882 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1884 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1886 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1887 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1888 vect_recog_rotate_pattern.
1889 (vect_recog_rotate_pattern): New function.
1891 2013-05-16 Jason Merrill <jason@redhat.com>
1893 * Makefile.in (LLINKER): New variable.
1894 (mostlyclean): Remove link mutex.
1895 * configure.ac: Handle --enable-link-mutex.
1896 * lock-and-run.sh: New script.
1898 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1901 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1904 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1906 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1908 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1910 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1911 * config/arm/arm.c (next_consecutive_mem): New function.
1912 (gen_movmem_ldrd_strd): Likewise.
1913 * config/arm/arm.md (movmemqi): Update condition and code.
1914 (unaligned_loaddi, unaligned_storedi): New patterns.
1916 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1918 * config.gcc: Obsolete *-*-solaris2.9*.
1919 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1921 2013-05-16 Richard Biener <rguenther@suse.de>
1923 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1924 earlier, after GRAPHITE transforms and IV canonicalization.
1926 2013-05-16 Jakub Jelinek <jakub@redhat.com>
1928 * omp-low.c (extract_omp_for_data): For collapsed loops,
1929 if at least one of the loops is known at compile time to
1930 iterate zero times, set count to 0.
1931 (expand_omp_regimplify_p): New function.
1932 (expand_omp_for_generic): For collapsed loops, if at least
1933 one of the loops isn't known to iterate at least once,
1934 add runtime check with setting count to 0.
1935 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1936 For unsigned types if it isn't known at compile time that
1937 the loop will iterate at least once, add runtime check to bypass
1938 the whole loop if initial condition isn't true.
1940 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1942 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1944 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
1947 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1948 transformations to avoid an infinite loop.
1950 2013-05-16 Marek Polacek <polacek@redhat.com>
1952 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1954 2013-05-15 Leif Ekblad <leif@rdos.net>
1956 * config/i386/i386.c (ix86_decompose_address): Use
1957 DEFAULT_TLS_SEG_REG to access TLS segment register.
1958 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1959 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1960 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1962 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1965 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1966 sibling calls to functions that would normally be lazily bound,
1967 unless $gp is call-clobbered.
1969 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
1971 * config/i386/i386.c (ix86_option_override_internal): Update
1972 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
1973 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1974 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
1975 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1977 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1979 2013-05-15 Andreas Schwab <schwab@suse.de>
1981 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1982 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1985 2013-05-15 Teresa Johnson <tejohnson@google.com>
1987 * loop-unroll.c (report_unroll_peel): Check decision before
1988 emitting unroll/peel message.
1990 2013-05-15 Teresa Johnson <tejohnson@google.com>
1992 * function.h (has_bb_partition): New rtl_data flag.
1993 (bb_reorder_complete): Ditto.
1994 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1995 instead of flag_reorder_blocks_and_partition.
1996 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1997 with some enhancements.
1998 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1999 * bb-reorder.c (connect_traces): Check for has_bb_partition
2000 instead of flag_reorder_blocks_and_partition.
2001 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2002 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2003 verify_hot_cold_block_grouping.
2004 (partition_hot_cold_basic_blocks): Set has_bb_partition.
2006 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2009 * config/arm/predicates.md (call_insn_operand): New predicate.
2010 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
2011 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2012 if insn is not a tail call.
2013 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2015 * config/arm/arm.h (enum reg_class): New caller save register class.
2016 (REG_CLASS_NAMES): Likewise.
2017 (REG_CLASS_CONTENTS): Likewise.
2018 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2021 2013-05-15 Richard Biener <rguenther@suse.de>
2023 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2024 of MSG_OPTIMIZED_LOCATIONS.
2025 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2026 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2028 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2029 of MSG_OPTIMIZED_LOCATIONS.
2030 (execute_vect_slp): Likewise.
2031 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2032 (vect_create_cond_for_alias_checks): Likewise.
2033 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2034 (vect_recog_widen_mult_pattern): Likewise.
2035 (vect_recog_widen_sum_pattern): Likewise.
2036 (vect_recog_over_widening_pattern): Likewise.
2037 (vect_recog_widen_shift_pattern): Likewise.
2038 (vect_recog_vector_vector_shift_pattern): Likewise.
2039 (vect_recog_divmod_pattern): Likewise.
2040 (vect_recog_mixed_size_cond_pattern): Likewise.
2041 (vect_recog_bool_pattern): Likewise.
2042 (vect_pattern_recog_1): Likewise.
2044 2013-05-15 Martin Jambor <mjambor@suse.cz>
2046 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2047 non-functions to builtin_unreachable.
2048 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2049 correct when new direct edges were discovered.
2051 2013-05-15 Martin Jambor <mjambor@suse.cz>
2053 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2054 header, print symbol order instead of node uid, print more information
2055 about indirect edge targets.
2056 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2058 (ipa_make_edge_direct_to_target): Likewise.
2059 (remove_described_reference): Likewise.
2060 (propagate_controlled_uses): Likewise.
2061 (ipa_print_node_params): Also print symbol order.
2062 (ipcp_transform_function): Print symbol order instead of node uids.
2063 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2064 (cgraph_get_create_real_symbol_node): Likewise.
2065 * ipa-cp.c (print_lattice): Likewise.
2066 (print_all_lattices): Likewise.
2067 (determine_versionability): Likewise.
2068 (initialize_node_lattices): Likewise.
2069 (estimate_local_effects): Likewise.
2070 (update_profiling_info): Likewise.
2071 (create_specialized_node): Likewise.
2072 (perhaps_add_new_callers): Likewise.
2073 (decide_about_value): Likewise.
2074 (decide_whether_version_node): Likewise.
2075 (identify_dead_nodes): Likewise.
2076 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2077 (dump_inline_summary): Likewise.
2078 (estimate_node_size_and_time): Likewise.
2079 (inline_analyze_function): Likewise.
2080 * ipa-inline.c (report_inline_failed_reason): Likewise.
2081 (want_early_inline_function_p): Likewise.
2082 (edge_badness): Likewise.
2083 (update_edge_key): Likewise.
2084 (inline_small_functions): Likewise. Add dumping of order to two other
2086 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2087 instead of node uids.
2088 (propagate_pure_const): Likewise.
2089 (propagate_pure_const): Likewise.
2090 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2091 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2092 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2094 * tree-pretty-print.c (dump_function_header): Likewise.
2095 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2096 Print symbol order instead of node uids.
2098 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2100 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2101 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2103 2013-05-15 Richard Biener <rguenther@suse.de>
2105 PR tree-optimization/57275
2106 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2107 return value for fail to do runtime alias checks for gather loads.
2109 2013-05-15 Jan Hubicka <jh@suse.cz>
2113 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2114 weakrefs are not external.
2115 (lto_symtab_merge_decls): Fix thinko when dealing with
2116 non-lto_symtab decls.
2117 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2118 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2119 * varpool.c (dump_varpool_node): Dump more flags.
2121 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2123 * config/i386/i386.c (processor_alias_table): Add instruction
2124 FSGSBASE for AMD bdver3 architecture.
2126 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2128 * tree.c (warn_deprecated_use): Print file:line using locus color.
2129 * diagnostic.c (diagnostic_report_current_module): Print file:line
2130 and file:line:column using locus color.
2132 2013-05-14 Mike Stump <mikestump@comcast.net>
2134 * gdbinit.in: Add __null.
2136 2013-05-14 Mike Stump <mikestump@comcast.net>
2138 * recog.h: Rename struct recog_data to Recog_data.
2139 * recog.c: Likewise.
2140 * reload.c (can_reload_into): Likewise.
2141 * config/picochip/picochip.c: Likewise.
2143 2013-05-14 Mike Stump <mikestump@comcast.net>
2145 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2147 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2149 * resource.h (struct resources): Remove unch_memory member.
2150 (CLEAR_RESOURCE): Don't clear unch_memory.
2151 * resource.c (mark_referenced_resources): Don't set it.
2152 (mark_set_resources): Likewise.
2153 (mark_target_live_regs): Don't clear it.
2154 (init_resource_info): Likewise.
2155 * reorg.c (resource_conflicts_p): Don't compare it.
2156 (redundant_insn): Don't set it.
2158 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2160 * emit-rtl.c (next_label): Remove unused function.
2161 (skip_consecutive_labels, link_cc0_insns): Move to ...
2162 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2163 only place where these functions are used, and make them static.
2165 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2167 * fold-const.c (fold_negate_expr): Handle vectors.
2168 (fold_truth_not_expr): Make it static.
2169 (fold_invert_truthvalue): New static function.
2170 (invert_truthvalue_loc): Handle vectors. Do not call
2171 fold_truth_not_expr directly.
2172 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2173 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2174 (fold_comparison): Handle vector constants.
2175 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2176 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2177 * tree.h (fold_truth_not_expr): Remove declaration.
2179 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2181 * config/aarch64/aarch64-simd.md
2182 (aarch64_vcond_internal<mode>): Rename to...
2183 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2184 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2185 float modes. Clarify all iterator modes.
2186 (vcond<mode><mode>): Use new name for vcond expanders.
2187 (vcond<v_cmp_result><mode>): Likewise.
2188 (vcondu<mode><mode>: Likewise.
2189 * config/aarch64/iterators.md (VDQF_COND): New.
2191 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2194 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2195 variable for the shift amount. Check that we shift by non-negative
2198 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2201 * config/arm/arm.h (EPILOGUE_USES): Only return true
2202 for LR_REGNUM after epilogue_completed.
2204 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2206 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2209 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2212 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2213 and Solaris 11+/x86 with gld.
2214 * configure: Regenerate.
2216 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2218 * expmed.c (expand_shift_1): Canonicalize rotates by
2219 constant bitsize / 2 to bitsize - 1.
2220 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2221 case ROTATERT>: Likewise.
2224 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2226 * config/i386/i386.md (rotateinv): New code attr.
2227 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2228 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2229 roll $31, %eax, etc.
2231 2013-05-14 Richard Biener <rguenther@suse.de>
2234 * tree-eh.c (sink_clobbers): Give up for successors with
2235 multiple predecessors and no virtual uses.
2237 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2239 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2240 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2242 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2245 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2246 the case when both op0 and op1 have VOIDmode.
2248 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2250 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2251 in multiply-accumulate mode.
2253 2013-05-13 Guozhi Wei <carrot@google.com>
2255 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2257 2013-05-13 Kai Tietz <ktietz@redhat.com>
2260 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2261 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2262 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2263 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2264 (ix86_expand_prologue): Likewise.
2265 (ix86_expand_split_stack_prologue): Likewise.
2266 (legitimate_pic_address_disp_p): Likewise.
2267 (legitimize_pic_address): Likewise.
2268 (legitimize_tls_address): Likewise.
2269 (legitimize_pe_coff_symbol): Likewise.
2270 (output_pic_addr_const): Likewise.
2271 (construct_plt_address): Likewise.
2272 (ix86_expand_call): Likewise.
2273 (x86_output_mi_thunk): Likewise.
2274 (x86_function_profiler): Likewise.
2276 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2278 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2279 similar switch cases.
2280 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2281 (aarch64_simd_mov_to_<mode>low): Delete.
2282 (aarch64_simd_mov_to_<mode>high): Delete.
2283 (move_lo_quad_<mode>): Add w<-r alternative.
2284 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2285 (aarch64_simd_mov_from_*): Update type attribute.
2286 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2289 2013-05-13 Jan Hubicka <jh@suse.cz>
2291 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2292 * config/i386/i386.c (ix86_compute_frame_layout,
2293 ix86_expand_epilogue, emit_i387_cw_initialization,
2294 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2295 ix86_local_alignment): Fix use of size/speed predicates.
2297 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2299 PR tree-optimization/45216
2300 PR tree-optimization/57157
2301 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2302 the (-Y) & (B - 1) variant if OP is |.
2303 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2304 return shifted. Use (-op1) & (prec - 1) as other_amount
2305 instead of prec - op1.
2307 2013-05-13 Martin Jambor <mjambor@suse.cz>
2310 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2311 (ipa_constant_data): New type.
2312 (ipa_jump_func): Use ipa_constant_data to hold information about
2313 constant jump functions.
2314 (ipa_get_jf_constant): Adjust to jump function type changes.
2315 (ipa_get_jf_constant_rdesc): New function.
2316 (ipa_param_descriptor): New field controlled_uses.
2317 (ipa_get_controlled_uses): New function.
2318 (ipa_set_controlled_uses): Likewise.
2319 * ipa-ref.h (ipa_find_reference): Declare.
2320 * ipa-prop.c (ipa_cst_ref_desc): New type.
2321 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2323 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2324 New parameter cs. Adjust all callers.
2325 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2326 (remove_described_reference): New function.
2327 (jfunc_rdesc_usable): Likewise.
2328 (try_make_edge_direct_simple_call): Decrement controlled use count,
2329 attempt to remove reference if it hits zero.
2330 (combine_controlled_uses_counters): New function.
2331 (propagate_controlled_uses): Likewise.
2332 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2333 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2334 (ipa_print_node_params): Print described use counter.
2335 (ipa_write_jump_function): Adjust to jump function type changes.
2336 (ipa_read_jump_function): New parameter CS, pass it to
2337 ipa_set_jf_constant. Adjust caller.
2338 (ipa_write_node_info): Stream controlled use count
2339 (ipa_read_node_info): Likewise.
2340 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2342 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2343 count. Remove cloning-added reference if it reaches zero.
2344 * ipa-ref.c (ipa_find_reference): New function.
2346 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2348 * config/i386/i386.c (processor_target_table): Modified default
2349 alignment values for AMD BD and BT architectures.
2351 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2353 * tree-vect-generic.c (uniform_vector_p): Move ...
2354 * tree.c (uniform_vector_p): ... here.
2355 * tree.h (uniform_vector_p): Declare it.
2356 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2359 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2361 PR tree-optimization/57230
2362 * tree-ssa-strlen.c (handle_char_store): Record length for
2363 array store from STRING_CST.
2365 PR tree-optimization/57230
2366 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2369 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2371 * config/epiphany/epiphany.c (epiphany_init): Check size of
2372 NUM_MODES_FOR_MODE_SWITCHING.
2373 (epiphany_expand_prologue):
2374 Remove CONFIG_REGNUM initial value handling code.
2375 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2376 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2377 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2378 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2379 Don't return 1 for FP_MODE_NONE.
2380 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2381 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2382 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2383 * config/epiphany/epiphany.md (save_config): New pattern.
2385 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2387 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2389 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2391 * config/i386/i386.md (memory): Handle sseishft1.
2392 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2393 (*vec_extractv2di_1): Ditto.
2395 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2397 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2400 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2402 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2403 Add mthumb/march=armv7-a multilib.
2404 Add mthumb/march=armv7-r multilib.
2405 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2407 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2409 * config/v850/t-rtems: Add more multilibs.
2411 2013-05-10 Richard Biener <rguenther@suse.de>
2413 PR tree-optimization/57214
2414 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2415 not propagate from SSA names that occur in abnormal PHI nodes.
2417 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2419 * stor-layout.c (element_precision): New function.
2420 * machmode.h (element_precision): Declare it.
2421 * tree.c (build_minus_one_cst): New function.
2422 (element_precision): Likewise.
2423 * tree.h (build_minus_one_cst): Declare new function.
2424 (element_precision): Likewise.
2425 * fold-const.c (operand_equal_p): Use element_precision.
2426 (fold_binary_loc): Handle vector types.
2427 * convert.c (convert_to_integer): Use element_precision.
2428 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2431 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2433 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2434 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2435 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2436 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2437 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2438 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2439 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2440 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2441 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2442 (Uuw8): New constraints.
2443 (Usb4): Move into alphabetical order.
2444 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2445 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2446 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2447 previously unnamed patterns.
2448 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2449 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2450 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2451 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2452 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2453 of specific lengths.
2455 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2457 * config/i386/i386.md (rotateinv): New code attr.
2458 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2459 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2460 roll $31, %eax, etc.
2462 PR tree-optimization/45216
2463 PR tree-optimization/57157
2464 * tree-ssa-forwprop.c (simplify_rotate): New function.
2465 (ssa_forward_propagate_and_combine): Call it.
2467 2013-05-10 Richard Biener <rguenther@suse.de>
2469 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2470 disable peeling when we version for aliasing.
2471 (vector_alignment_reachable_p): Honor explicit user alignment.
2472 (vect_supportable_dr_alignment): Likewise.
2473 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2474 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2475 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2476 then peeling to arrange for the cost-model check to come first.
2478 2013-05-10 Alan Modra <amodra@gmail.com>
2480 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2481 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2482 * configure: Regenerate.
2484 2013-05-10 Alan Modra <amodra@gmail.com>
2487 * varasm.c (default_elf_select_section): Move !DECL_P check..
2488 (get_named_section): ..to here before calling get_section_name.
2490 (default_section_type_flags): Add DECL_P check.
2491 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2492 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2494 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2496 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2497 When using gen_stack_adjust_str with a register offset, add a
2498 REG_FRAME_RELATED_EXPR note.
2500 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2502 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2503 (*vec_extractv4si_zext_mem): Ditto.
2504 (*vec_extractv2di): Add 0->x and x->x alternatives.
2505 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2506 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2508 2013-05-09 Jason Merrill <jason@redhat.com>
2510 N3639 C++1y VLA support
2511 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2514 * tree.c (build_constructor_va): New.
2515 * tree.h: Declare it.
2517 2013-05-09 Martin Jambor <mjambor@suse.cz>
2520 * gimple-fold.c (canonicalize_constructor_val): Call
2521 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2523 2013-05-09 Jan Hubicka <jh@suse.cz>
2524 Richard Biener <rguenther@suse.de>
2527 * symtab.c (symtab_make_decl_local): Do not add private names.
2529 2013-05-09 Jan Hubicka <jh@suse.cz>
2532 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2533 (unlink_from_assembler_name_hash): Likewise.
2534 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2535 symtab_unregister_node, symtab_initialize_asm_name_hash,
2536 change_decl_assembler_name): Update.
2538 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2540 * config/aarch64/aarch64.md: New movtf split.
2541 (*movtf_aarch64): Update.
2542 (aarch64_movdi_tilow): Handle TF modes and rename to
2543 aarch64_movdi_<mode>low.
2544 (aarch64_movdi_tihigh): Handle TF modes and rename to
2545 aarch64_movdi_<mode>high
2546 (aarch64_movtihigh_di): Handle TF modes and rename to
2547 aarch64_mov<mode>high_di
2548 (aarch64_movtilow_di): Handle TF modes and rename to
2549 aarch64_mov<mode>low_di
2550 (aarch64_movtilow_tilow): Remove spurious whitespace.
2551 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2553 (aarch64_print_operand): Update.
2555 2013-05-09 Alan Modra <amodra@gmail.com>
2557 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2559 * configure: Regenerate.
2561 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2563 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2564 splitter preparation statements.
2565 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2566 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2569 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2571 * gimple-ssa-strength-reduction.c (count_candidates): Change
2572 return value to int.
2573 (analyze_candidates_and_replace): Change type of length to int.
2575 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2577 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2578 (*vec_extract<mode>): Use VI12_128 mode iterator.
2579 (*vec_extract<mode>_mem): Ditto.
2580 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2583 2013-05-08 Diego Novillo <dnovillo@google.com>
2588 2012-08-17 Diego Novillo <dnovillo@google.com>
2591 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2592 * config.in: Regenerate.
2593 * configure: Regenerate.
2594 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2596 2013-05-08 Jan Hubicka <jh@suse.cz>
2599 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2600 * cgraph.h (symtab_node_base): Add unique_name.
2601 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2602 input_overwrite_node, input_varpool_node): Stream unique_name.
2603 * cgraphclones.c (cgraph_create_virtual_clone,
2604 cgraph_function_versioning): Set unique_name.
2605 * ipa.c (function_and_variable_visibility): Set unique_name.
2607 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2609 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2610 (alloc_cand_and_find_basis): Restrict conditional candidate
2611 processing to CAND_MULTs.
2613 2013-05-08 Jan Hubicka <jh@suse.cz>
2616 lto-symtab.c (lto_symtab_symbol_p): New function.
2617 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2618 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2619 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2620 Skip static symbols.
2622 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2624 PR tree-optimization/57200
2625 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2626 Only call inform if the preceding warning_at returns true.
2628 2013-05-07 Han Shen <shenhan@google.com>
2630 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2631 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2632 * common.opt (fstack-protector-strong): New option.
2633 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2634 * doc/invoke.texi (Optimization Options): Document
2635 "-fstack-protector-strong".
2636 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2638 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2640 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2642 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2644 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2645 it is not lhs of the insn.
2646 (setup_reg_equiv): Remove insn having equiv memory which it is not
2648 * lra-constraints.c (process_address): Try to improve generation
2649 code for address base + disp.
2650 (lra_constraints): Make correct the code for checking insn setting
2651 up backward equivalence. Remove insn only if it is in the init
2653 * lra-eliminations.c (update_reg_eliminate): Change return value.
2654 (lra_eliminate): Use the result.
2656 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2658 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2659 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2660 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2661 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2662 register target operands.
2663 (*vec_extractv8hi_sse2): New pattern.
2664 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2665 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2666 (*vec_extract<mode>_mem): New insn and split pattern.
2668 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2670 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2671 (TARGET_ASAN_SHADOW_OFFSET): Define.
2672 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2673 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2675 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2677 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2678 (incr_vec_index): Return -1 if increment not found.
2679 (create_add_on_incoming_edge): Assert if increment not found.
2680 (record_increment): Limit number of increments recorded.
2681 (all_phi_incrs_profitable): Return false if an increment not found.
2682 (replace_profitable_candidates): Don't process increments that were
2684 (analyze_candidates_and_replace): Limit size of incr_vec.
2686 2013-05-07 Richard Biener <rguenther@suse.de>
2688 * calls.c (special_function_p): setjmp-like functions are leaf.
2689 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2690 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2692 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2694 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2695 (aarch64_simd_mov<mode>): New expander.
2696 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2697 (aarch64_simd_mov_to_<mode>high): Likewise.
2698 (aarch64_simd_mov_from_<mode>low): Likewise.
2699 (aarch64_simd_mov_from_<mode>high): Likewise.
2700 (aarch64_dup_lane<mode>): Update.
2701 (aarch64_dup_lanedi): New instruction pattern.
2702 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2703 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2705 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2707 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2708 (replace_mult_candidate): Remove unnecessary argument; remove
2709 unnecessary parameter from call to introduce_cast_before_cand.
2710 (replace_unconditional_candidate): Remove unnecessary parameter
2711 from call to replace_mult_candidate.
2712 (replace_conditional_candidate): Likewise.
2713 (insert_initializers): Use make_temp_ssa_name.
2714 (introduce_cast_before_cand): Remove unnecessary argument; use
2716 (replace_one_candidate): Remove unnecessary argument; remove
2717 unnecessary parameter from calls to introduce_cast_before_cand.
2718 (replace_profitable_candidates): Remove unnecessary parameters
2719 from calls to replace_one_candidate.
2721 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2723 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2724 phi def as possibly hiding a basis for a CAND_ADD whose operands
2725 have been commuted in the analysis.
2726 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2728 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2730 * config/aarch64/aarch64.md
2731 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2732 shift value between 0-4.
2734 2013-05-07 Richard Biener <rguenther@suse.de>
2736 * double-int.h (rshift): New overload.
2737 * double-int.c (rshift): New function.
2738 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2739 (create_reference_ops_from_ref): Remove.
2740 (vn_reference_insert): Use shared ops for constructing the
2741 reference and copy it.
2743 2013-05-07 Richard Biener <rguenther@suse.de>
2746 * tree-eh.c (sink_clobbers): Properly propagate
2747 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2749 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2751 PR tree-optimization/57149
2752 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2753 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2754 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2755 uninit_undefined_value_p instead of ssa_undefined_value_p.
2758 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2759 for modifier == EXPAND_INITIALIZER.
2761 2013-05-07 Anton Blanchard <anton@samba.org>
2763 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2764 for powerpc64 little endian.
2765 * configure: Regenerate.
2767 2013-05-06 Graham Stott <grahams@btinternet.com>
2769 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2770 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2771 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2772 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2774 2013-05-06 Graham Stott <grahams@btinternet.com>
2776 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2777 codes which allow non-lvalues.
2779 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2781 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2782 components are all 1s.
2783 (integer_minus_onep): New function.
2784 * tree.h (integer_minus_onep): Declare it.
2785 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2786 integer_minus_onep instead of integer_all_onesp.
2788 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2791 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2792 variations of these patterns.
2794 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2796 * config/i386/i386.md (isa): Add x64_sse4 member.
2797 (enabled): Handle x64_sse4.
2798 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2799 instruction for 64bit SSE4_1 targets. Update insn attributes.
2800 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2801 instruction for SSE4_1 targets. Update insn attributes.
2802 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2803 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2804 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2806 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2807 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2808 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2810 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2813 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2815 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2817 * final.c (do_assembler_dialects): Don't handle curly braces and
2818 vertical bar escaped by % as dialect delimiters.
2819 (output_asm_insn): Print curly braces and vertical bar if escaped
2820 by % and ASSEMBLER_DIALECT defined.
2821 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2822 * doc/tm.texi: Regenerated.
2824 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2826 * config/mips/mips.c: Include tree-pass.h.
2827 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2828 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2829 (pass_mips_machine_reorg2): New machine specific pass.
2830 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2831 (mips_option_override): Register the new pass.
2832 * rtl.h (cleanup_barriers): Remove prototype.
2833 (dbr_schedule): Likewise.
2834 * jump.c (cleanup_barriers): Make static.
2835 * reorg.c (dbr_schedule): Likewise.
2837 2013-05-06 Richard Biener <rguenther@suse.de>
2839 PR tree-optimization/57185
2840 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2843 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2846 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2847 between "first_arg" and "insn", not "last" and "insn".
2849 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2851 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2852 (find_candidates_in_block): Re-enable slsr_process_phi.
2853 (create_phi_basis): Fix double counting of candidate adjustment.
2855 2013-05-06 Richard Biener <rguenther@suse.de>
2858 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2859 the edge is also fallthru, preserve it and just clear the
2861 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2862 also complex, preserve that and just clear the fallthru flag.
2863 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2864 update virtual operands.
2866 2013-05-06 Alan Modra <amodra@gmail.com>
2868 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2869 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2870 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2871 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2872 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2873 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2875 2013-05-06 Alan Modra <amodra@gmail.com>
2877 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2878 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2879 (DEFAULT_ASM_ENDIAN): Define.
2880 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2881 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2882 Update -K PIC clause from sysv4.h.
2883 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2884 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2886 2013-05-06 Alan Modra <amodra@gmail.com>
2888 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2889 twice for little-endian.
2890 (ashrdi3_no_power, ashrdi3): Support little-endian.
2892 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2895 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2896 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2898 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2899 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2900 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2903 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2904 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2906 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2907 * config/pa/pa.opt: Make mbig-switch a no-op.
2908 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2909 (CASE_VECTOR_MODE): Always return SImode.
2910 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2911 for the !TARGET_BIG_SWITCH case.
2912 * config/pa/pa-linux.h: Likewise.
2913 * config/pa/pa-openbsd.h: Likewise.
2914 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2915 * config/pa/pa.md (short_jump): Remove define_insn.
2916 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2917 (casesi0): Remove define_insn.
2918 (type): Remove btable_branch.
2919 (pa_combine_type): Likewise.
2920 (in_nullified_branch_delay): Likewise.
2921 (in_call_delay): Likewise.
2922 (define_delay): Likewise.
2923 (define_insn_reservation "Z3"): Likewise.
2924 (define_insn_reservation "Z4"): Likewise.
2925 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2926 (pa_adjust_insn_length): Remove adjustment for btable branches.
2927 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2930 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
2932 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2933 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2934 Add m->r,x alternatives.
2935 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2936 splitters using SWI48x mode iterator.
2937 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2938 TARGET_64BIT. Add m->x alternative.
2939 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2940 Add o->x alternative. Enable for TARGET_SSE.
2941 (sse_storeq): Remove expander.
2942 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2943 with memory input operand.
2944 (*vec_extractv2di_1 splitter): New.
2945 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2946 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2948 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2950 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2951 (INT_LOWPART): Delete.
2952 (extract_MB): Adjust.
2953 (extract_ME): Adjust.
2954 (print_operand): Adjust.
2956 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2958 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2959 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2960 (reg_or_logical_cint_operand, easy_fp_constant,
2961 logical_const_operand): Delete "CONST_DOUBLE" case.
2962 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2963 "HOST_BITS_PER_WIDE_INT == 64" test.
2964 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
2965 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2966 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2967 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2969 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2970 CONST_DOUBLE DImode/VOIDmode case.
2971 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2972 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2973 CONST_DOUBLE VOIDmode case.
2974 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2975 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2976 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2977 Delete CONST_DOUBLE case.
2978 (splitters for mov FMOVE64 const_double): Delete
2979 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2980 "HOST_BITS_PER_WIDE_INT >= 64" test.
2981 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2983 (mov DI const_double): Delete.
2985 2013-05-04 Jakub Jelinek <jakub@redhat.com>
2987 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2988 on op shows all bits zero in mode of a lowpart subreg, return zero.
2990 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2993 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2994 to save TFmode registers and DImode to save TImode registers for
2995 caller save operations.
2996 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2997 mark being partially clobbered since they only use the first
3000 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3001 and TDmode only use the upper 64-bits of each VSX register.
3003 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3005 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3006 (find_candidates_in_block): Disable slsr_process_phi.
3008 2013-05-03 Guozhi Wei <carrot@google.com>
3010 * coverage.c (coverage_obj_init): Move the construction of gcov
3012 (build_init_ctor): ... here.
3014 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3016 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3017 (slsr_cand_d): Redefine def_phi.
3018 (stride_status, phi_adjust_status, count_phis_status): New enums.
3019 (find_phi_def): New.
3020 (find_basis_for_base_expr): New.
3021 (find_basis_for_candidate): Handle hidden bases.
3022 (alloc_cand_and_find_basis): Handle phi candidates.
3023 (slsr_process_phi): New.
3024 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3025 (create_mul_imm_cand): Likewise.
3026 (create_add_ssa_cand): Exclude phi base candidates.
3027 (create_add_imm_cand): Likewise.
3028 (slsr_process_cast): Likewise.
3029 (slsr_process_copy): Likewise.
3030 (find_candidates_in_block): Handle phi candidates.
3031 (dump_candidate): Likewise.
3032 (unconditional_cands): Delete.
3033 (unconditional_cands_with_known_stride_p): Delete.
3034 (phi_dependent_cand_p): New.
3035 (cand_increment): Handle phi-dependent candidates.
3036 (replace_dependent): Delete.
3037 (replace_mult_candidate): New.
3038 (replace_unconditional_candidate): New.
3039 (incr_vec_index): Move to avoid forward reference.
3040 (create_add_on_incoming_edge): New.
3041 (create_phi_basis): New.
3042 (replace_dependents): Delete.
3043 (replace_conditional_candidate): New.
3044 (phi_add_costs): New.
3045 (replace_uncond_cands_and_profitable_phis): New.
3046 (record_increment): Handle phi adjustments.
3047 (record_phi_increments): New.
3048 (record_increments): Handle phi adjustments.
3049 (phi_incr_cost): New.
3050 (lowest_cost_path): Handle phis.
3051 (total_savings): Likewise.
3052 (analyze_increments): Likewise.
3053 (ncd_with_phi): New.
3054 (ncd_of_cand_and_phis): New.
3055 (nearest_common_dominator_for_cands): Handle phi increments.
3056 (all_phi_incrs_profitable): New.
3057 (replace_profitable_candidates): Handle phi-dependent candidates.
3058 (analyze_candidates_and_replace): Likewise.
3060 2013-05-03 Teresa Johnson <tejohnson@google.com>
3063 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3064 do not exceed REG_BR_PROB_BASE.
3066 2013-05-03 Jeff Law <law@redhat.com>
3068 PR tree-optimization/57144
3069 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3070 operand of the condition will bit into the new type when eliminating
3071 a cast feeding a condition.
3073 2013-05-03 Jakub Jelinek <jakub@redhat.com>
3075 PR rtl-optimization/57130
3076 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3077 of COMPARE as in_code to the recursive call if needed.
3079 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
3081 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3082 (enabled): Handle new members.
3083 * config/i386/sse.md (*vec_concatv2si): Merge from
3084 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3085 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3087 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3089 PR tree-optimization/57027
3090 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3091 for fnms opportunity, check we got the prerequisite kind
3092 of tree / gimple before using accessor functions.
3094 2013-05-03 Richard Biener <rguenther@suse.de>
3096 * double-int.h (lshift): New overload without precision
3098 (operator *=, operator +=, operator -=): Move ...
3099 * double-int.c (operator *=, operator +=, operator -=): ... here
3100 and implement more efficiently.
3101 (mul_double_with_sign): Remove.
3102 (lshift_double): Adjust to take unsinged shift argument, push
3103 dispatching code to callers.
3104 (mul_double_wide_with_sign): Add early out for callers that
3105 are not interested in high parts or overflow.
3106 (lshift): New function.
3107 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3109 (lrotate, rrotate): Use logical shifts.
3110 * expr.c (get_inner_reference): Use lshift.
3111 * fixed-value.c (do_fixed_divide): Likewise.
3112 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3113 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3114 (indirect_refs_may_alias_p): Likewise.
3115 (stmt_kills_ref_p_1): Likewise.
3117 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3119 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3121 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3123 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3124 scalar form of FABD instruction.
3126 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3128 * lra-constraints.c (process_alt_operands): Add checking alt
3129 number to choose the best alternative.
3131 2013-05-02 Richard Biener <rguenther@suse.de>
3133 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3134 bitmap and its handling.
3135 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3137 2013-05-02 Richard Biener <rguenther@suse.de>
3140 * tree-inline.c (copy_loops): Properly handle removed loops.
3141 (copy_cfg_body): Mark destination loops for fixup if source
3144 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3147 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3148 generating simple_return for naked functions.
3150 2013-05-02 Martin Jambor <mjambor@suse.cz>
3153 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3154 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3156 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3157 ipa_agg_replacement_value structures.
3158 (known_aggs_to_agg_replacement_list): Likewise.
3159 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3160 (read_agg_replacement_chain): Likewise.
3161 (ipcp_transform_function): Also check that by_ref flags match.
3163 2013-05-02 Richard Biener <rguenther@suse.de>
3165 * graphds.h (struct graph): Add obstack member.
3166 * graphds.c (new_graph): Initialize obstack and allocate
3168 (add_edge): Allocate edge from the obstack.
3169 (free_graph): Free the obstack instead of all edges and vertices.
3171 2013-05-02 Teresa Johnson <tejohnson@google.com>
3173 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3175 * cfg.c (update_bb_profile_for_threading): Ditto.
3176 * tree-inline.c (copy_bb): Ditto.
3177 (copy_edges_for_bb): Ditto.
3178 (initialize_cfun): Ditto.
3179 (copy_cfg_body): Ditto.
3180 (expand_call_inline): Ditto.
3181 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3182 (estimate_node_size_and_time): Ditto.
3183 (inline_merge_summary): Ditto.
3184 * cgraphclones.c (cgraph_clone_edge): Ditto.
3185 (cgraph_clone_node): Ditto.
3186 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3187 (compute_trg_info): Ditto.
3189 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3191 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3192 S reg when fp attribute set.
3193 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3195 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3197 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3199 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3200 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3201 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3203 2013-05-02 Richard Biener <rguenther@suse.de>
3205 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3206 (struct instantiate_cache_entry): New type.
3207 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3208 (struct instantiate_cache_type): New type.
3209 (set_instantiated_value, get_instantiated_value): Remove.
3210 (get_instantiated_value_entry): New function.
3211 (instantiate_scev_name): Use the new cache and adjust.
3212 (instantiate_scev_poly): Adjust.
3213 (instantiate_scev_binary): Likewise.
3214 (instantiate_array_ref): Likewise.
3215 (instantiate_scev_convert): Likewise.
3216 (instantiate_scev_not): Likewise.
3217 (instantiate_scev_3): Likewise.
3218 (instantiate_scev_2): Likewise.
3219 (instantiate_scev_r): Likewise.
3220 (instantiate_scev): Likewise.
3221 (resolve_mixers): Likewise.
3223 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3226 * lra-constraints.c (best_small_class_operands_num): Remove.
3227 (process_alt_operands): Remove small_class_operands_num. Take
3228 small classes operands into losers and only if the operand is not
3229 matched. Modify debugging output.
3230 (curr_insn_transform): Remove best_small_class_operands_num.
3233 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3235 * config/aarch64/aarch64-builtins.c
3236 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3237 * config/aarch64/aarch64-simd-builtins.def
3238 (reduc_splus_): Add new modes.
3239 (reduc_uplus_): New.
3240 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3241 (reduc_uplus_v4sf): Likewise.
3242 (reduc_splus_v4sf): Likewise.
3243 (aarch64_addv<mode>): Likewise.
3244 (reduc_uplus_<mode>): Likewise.
3245 (reduc_splus_<mode>): Likewise.
3246 (aarch64_addvv2di): Likewise.
3247 (reduc_uplus_v2di): Likewise.
3248 (reduc_splus_v2di): Likewise.
3249 (aarch64_addvv2si): Likewise.
3250 (reduc_uplus_v2si): Likewise.
3251 (reduc_splus_v2si): Likewise.
3252 (reduc_<sur>plus_<mode>): New.
3253 (reduc_<sur>plus_v2di): Likewise.
3254 (reduc_<sur>plus_v2si): Likewise.
3255 (reduc_<sur>plus_v4sf): Likewise.
3256 (aarch64_addpv4sf): Likewise.
3257 * config/aarch64/arm_neon.h
3258 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3259 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3260 add UNSPEC_SADDV, UNSPEC_UADDV.
3262 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3264 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3266 * config/aarch64/arm_neon.h
3267 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3269 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3271 * config/aarch64/aarch64-builtins
3272 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3274 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3276 * config/aarch64/aarch64-simd-builtins.def
3278 (reduc_smin_): Likewise.
3279 (reduc_umax_): Likewise.
3280 (reduc_umin_): Likewise.
3281 (reduc_smax_nan_): Likewise.
3282 (reduc_smin_nan_): Likewise.
3285 (smax): Update for V2SF, V4SF and V2DF modes.
3288 (smin_nan): Likewise.
3289 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3290 (<su><maxmin><mode>3): ...This, refactor.
3291 (s<maxmin><mode>3): New.
3292 (<maxmin_uns><mode>3): Likewise.
3293 (reduc_<maxmin_uns>_<mode>): Refactor.
3294 (reduc_<maxmin_uns>_v4sf): Likewise.
3295 (reduc_<maxmin_uns>_v2si): Likewise.
3296 (aarch64_<fmaxmin><mode>: Remove.
3297 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3299 (vmin<q>_f<32,64>): Likewise.
3300 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3302 (su): Add mappings for smax, smin, umax, umin.
3304 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3305 (FMAXMIN): Rename as...
3306 (FMAXMIN_UNS): ...This.
3308 (fmaxminv): Likewise.
3309 (fmaxmin): Likewise.
3311 (maxmin_uns_op): Likewise.
3313 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3315 * config/aarch64/arm_neon.h
3316 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3317 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3318 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3320 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3322 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3323 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3325 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3327 * config/aarch64/aarch64-simd.md
3328 (vcond<mode>_internal): Handle special cases for constant masks.
3329 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3330 (vcondu<mode><mode>): Likewise.
3331 (vcond<v_cmp_result><mode>): New.
3333 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3335 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3336 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3337 * config/aarch64/aarch64-simd-builtins.def
3338 (cmeq): Update to BUILTIN_VALLDI.
3343 * config/aarch64/arm_neon.h
3344 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3345 to builtins or C as appropriate.
3347 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3349 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3351 (cmhi): Rename to...
3353 * config/aarch64/aarch64-simd.md
3354 (simd_mode): Add SF.
3355 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3356 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3357 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3358 (cstore<mode>_neg): ...This.
3359 * config/aarch64/iterators.md
3361 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3363 (UCOMPARISONS): Likewise.
3364 (optab): Add missing comparisons.
3372 (V_cmp_result): Add DF, SF modes.
3373 (v_cmp_result): Likewise.
3376 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3378 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3380 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3381 define_insn to define_insn_and_split.
3382 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3383 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3384 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3385 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3386 (thumb2_negscc): Likewise.
3388 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3390 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3392 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3394 * config/arm/thumb2.md: Remove trailing whitespaces.
3396 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3398 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3399 Use gen_int_mode rather than GEN_INT.
3401 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3403 * value-prof.c (stream_in_histogram_value): Remove the strayed
3406 2013-04-30 Richard Biener <rguenther@suse.de>
3409 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3411 2013-04-30 Richard Biener <rguenther@suse.de>
3414 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3416 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3418 PR rtl-optimization/56957
3419 PR rtl-optimization/57105
3420 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3421 variable. Use just INSN_UID for determining whether an insn
3422 should be only disconnected from the insn stream.
3423 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3425 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3427 PR tree-optimization/57104
3428 * tsan.c (instrument_expr): Don't instrument accesses to
3429 DECL_HARD_REGISTER VAR_DECLs.
3431 2013-04-30 Richard Biener <rguenther@suse.de>
3433 * function.h (loops_for_fn): New inline function.
3434 (set_loops_for_fn): Likewise.
3435 * cfgloop.h (place_new_loop): Add struct function parameter.
3436 (get_loop): Likewise.
3437 (get_loops): Likewise.
3438 (number_of_loops): Likewise.
3440 (fel_init): Likewise.
3441 * cfg.c (get_loop_copy): Adjust.
3442 * cfgloop.c (flow_loops_dump): Likewise.
3443 (record_loop_exits): Likewise.
3444 (verify_loop_structure): Likewise.
3445 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3446 (estimate_reg_pressure_cost): Likewise.
3447 (mark_loop_exit_edges): Likewise.
3448 * cfgloopmanip.c (place_new_loop): Likewise.
3449 (add_loop): Likewise.
3450 (duplicate_loop): Likewise.
3451 * graph.c (draw_cfg_nodes): Likewise.
3452 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3453 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3454 (extract_affine_chrec): Likewise.
3455 (build_scop_iteration_domain): Likewise.
3456 * graphite.c (graphite_initialize): Likewise.
3457 * ira-build.c (create_loop_tree_nodes): Likewise.
3458 (more_one_region_p): Likewise.
3459 (rebuild_regno_allocno_maps): Likewise.
3460 (mark_loops_for_removal): Likewise.
3461 (mark_all_loops_for_removal): Likewise.
3462 (remove_unnecessary_regions): Likewise.
3463 (ira_build): Likewise.
3464 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3465 * loop-init.c (fix_loop_structure): Likewise.
3466 (gate_rtl_move_loop_invariants): Likewise.
3467 (gate_rtl_unswitch): Likewise.
3468 (gate_rtl_unroll_and_peel_loops): Likewise.
3469 (rtl_doloop): Likewise.
3470 * lto-streamer-in.c (input_cfg): Likewise.
3471 * lto-streamer-out.c (output_cfg): Likewise.
3472 * modulo-sched.c (sms_schedule): Likewise.
3473 * predict.c (tree_estimate_probability): Likewise.
3474 (tree_estimate_probability_driver): Likewise.
3475 (estimate_loops): Likewise.
3476 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3477 (move_sese_region_to_fn): Likewise.
3478 (debug_loop_num): Likewise.
3479 * tree-chrec.c (chrec_evaluate): Likewise.
3480 (hide_evolution_in_other_loops_than_loop): Likewise.
3481 (chrec_component_in_loop_num): Likewise.
3482 (reset_evolution_in_loop): Likewise.
3483 (evolution_function_is_invariant_rec_p): Likewise.
3484 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3485 * tree-inline.c (copy_loops): Likewise.
3486 (copy_cfg_body): Likewise.
3487 (tree_function_versioning): Likewise.
3488 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3489 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3491 (add_to_evolution_1): Likewise.
3492 (scev_const_prop): Likewise.
3493 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3494 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3495 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3496 (tree_ssa_lim_initialize): Likewise.
3497 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3498 (verify_loop_closed_ssa): Likewise.
3499 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3500 (tree_ssa_loop_im): Likewise.
3501 (tree_ssa_loop_unswitch): Likewise.
3502 (tree_vectorize): Likewise.
3503 (check_data_deps): Likewise.
3504 (tree_ssa_loop_ivcanon): Likewise.
3505 (tree_ssa_loop_bounds): Likewise.
3506 (tree_complete_unroll): Likewise.
3507 (tree_complete_unroll_inner): Likewise.
3508 (tree_parallelize_loops): Likewise.
3509 (tree_ssa_loop_prefetch): Likewise.
3510 (tree_ssa_loop_ivopts): Likewise.
3511 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3512 * tree-vectorizer.c (vectorize_loops): Likewise.
3514 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3516 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3517 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3518 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3519 with EABI_LINK_SPEC.
3521 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3524 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3527 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3530 * lra-constraints.c (process_alt_operands): Discourage a bit more
3531 using memory for pseudos. Print cost dump for alternatives.
3532 Modify cost values for conflicts with early clobbers.
3533 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3535 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3538 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3540 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3542 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3544 (movdi_aarch64): Support LDR/STR from/to D register.
3546 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3548 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3549 or higher by default.
3551 2013-04-29 Richard Biener <rguenther@suse.de>
3554 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3555 even if not adding abnormal edges for calls that can make
3558 2013-04-29 Richard Biener <rguenther@suse.de>
3561 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3563 (move_stmt_r): Remove redundant checking.
3565 2013-04-29 Teresa Johnson <tejohnson@google.com>
3568 * basic-block.h (apply_scale): New function.
3569 (apply_probability): Use apply_scale.
3570 * gimple-streamer-in.c (input_bb): Ditto.
3571 * lto-streamer-in.c (input_cfg): Ditto.
3572 * lto-cgraph.c (merge_profile_summaries): Ditto.
3573 * tree-optimize.c (execute_fixup_cfg): Ditto.
3574 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3575 (copy_edges_for_bb): Ditto.
3576 (copy_cfg_body): Ditto.
3578 2013-04-29 Tom de Vries <tom@codesourcery.com>
3580 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3581 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3582 (tail_merge_optimize): Handle current_loops == NULL.
3584 2013-04-26 Jeff Law <law@redhat.com>
3586 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3587 (simplify_cond_using_ranges): Generalize code to simplify
3588 COND_EXPRs where one argument is a constant and the other
3589 is an SSA_NAME created by an integral type conversion.
3591 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3593 * config/arm/arm.md (store_minmaxsi): Use only when
3594 optimize_insn_for_size_p.
3596 2013-04-29 Christian Bruel <christian.bruel@st.com>
3599 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3601 2013-04-29 Richard Biener <rguenther@suse.de>
3604 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3605 loop tree make sure to schedule a fixup for the child as well.
3606 (expand_omp_for_generic): Properly add loops.
3607 (expand_omp_for_static_nochunk): Likewise.
3608 (expand_omp_for_static_chunk): Likewise.
3609 (expand_omp_for): For the degenerate case fixup loops.
3610 (expand_omp_sections): Fix default bb placement in loops.
3611 (expand_omp_atomic_pipeline): Properly add loops.
3613 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3615 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3617 2013-04-29 Tom de Vries <tom@codesourcery.com>
3619 * tree-ssa-tail-merge.c: Update header comment.
3621 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3623 * config/aarch64/arm_neon.h
3624 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3625 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3626 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3627 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3628 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3629 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3630 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3631 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3633 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3635 * config/aarch64/aarch64-simd.md
3636 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3637 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3638 fix_trunc, fixuns_trunc.
3639 (ftrunc<VDQF:mode>2): New.
3640 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3641 (fix_trunc_optab): New.
3643 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3645 * config/aarch64/aarch64-builtins.c
3646 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3647 iceilf, lround, iroundf.
3649 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3652 * config/i386/i386.h (enum ix86_tune_indices)
3653 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3654 New, split from X86_TUNE_INTER_UNIT_MOVES.
3655 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3656 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3657 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3658 (TARGET_INTER_UNIT_MOVES): Remove.
3659 * config/i386/i386.c (initial_ix86_tune_features): Update.
3660 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3661 (ix86_expand_convert_uns_didf_sse): Use
3662 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3663 (ix86_expand_vector_init_one_nonzero): Ditto.
3664 (ix86_expand_vector_init_interleave): Ditto.
3665 (inline_secondary_memory_needed): Return true for moves from SSE class
3666 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3667 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3668 * config/i386/constraints.md (Yi, Ym): Depend on
3669 TARGET_INTER_UNIT_MOVES_TO_VEC.
3670 (Yj, Yn): New constraints.
3671 * config/i386/i386.md (*movdi_internal): Change constraints of
3672 operand 1 from Yi to Yj and from Ym to Yn.
3673 (*movsi_internal): Ditto.
3674 (*movdf_internal): Ditto.
3675 (*movsf_internal): Ditto.
3676 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3677 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3678 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3679 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3680 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3681 * config/i386/sse.md (movdi_to_sse): Ditto.
3682 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3683 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3684 TARGET_INTER_UNIT_MOVES.
3685 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3686 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3687 instead of TARGET_INTER_UNIT_MOVES.
3688 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3689 operand 1 from Yi to Yj and from Ym to Yn.
3691 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3693 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3694 (float_truncate_hi_): Likewise.
3695 (float_extend_lo_): Likewise.
3696 (float_truncate_lo_): Likewise.
3697 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3698 (aarch64_float_extend_lo_v2df): Likewise.
3699 (vec_unpacks_hi_v4sf): Likewise.
3700 (aarch64_float_truncate_lo_v2sf): Likewise.
3701 (aarch64_float_truncate_hi_v4sf): Likewise.
3702 (vec_pack_trunc_v2df): Likewise.
3703 (vec_pack_trunc_df): Likewise.
3705 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3707 * config/aarch64/aarch64-builtins.c
3708 (aarch64_fold_builtin): Fold float conversions.
3709 * config/aarch64/aarch64-simd-builtins.def
3710 (floatv2si, floatv4si, floatv2di): New.
3711 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3712 * config/aarch64/aarch64-simd.md
3713 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3714 * config/aarch64/iterators.md (FLOATUORS): New.
3715 (optab): Add float, floatuns.
3716 (su_optab): Likewise.
3718 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3720 * config/aarch64/aarch64-builtins.c
3721 (aarch64_builtin_vectorized_function): Use new names for
3723 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3724 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3725 (fcvtzu): Split as...
3726 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3727 (fcvtas): Split as...
3728 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3729 (fcvtau): Split as...
3730 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3731 (fcvtps): Split as...
3732 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3733 (fcvtpu): Split as...
3734 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3735 (fcvtms): Split as...
3736 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3737 (fcvtmu): Split as...
3738 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3739 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3740 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3741 (lfrintnusf, lfrintnudf): Likewise.
3742 * config/aarch64/aarch64-simd.md
3743 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3745 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3746 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3747 (fcvt_pattern): Likewise.
3749 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3751 * config/aarch64/aarch64-simd.md
3752 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3753 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3755 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3757 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3758 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3759 (vrnd<a,m,n,p>_f32): Implement using builtins.
3760 (vrnd<i,x><q>_f<32, 64>): New.
3762 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3764 * config/aarch64/aarch64-builtins.c
3765 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3766 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3767 (frintz): Rename to...
3769 (frintp): Rename to...
3771 (frintm): Rename to...
3773 (frinti): Rename to...
3774 (nearbyint): ...this.
3775 (frintx): Rename to...
3777 (frinta): Rename to...
3779 * config/aarch64/aarch64-simd.md
3780 (aarch64_frint<frint_suffix><mode>): Delete.
3781 (<frint_pattern><mode>2): Convert to insn.
3782 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3783 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3784 (frint_pattern): Likewise.
3785 (frint_suffix): Likewise.
3787 2013-04-29 Richard Biener <rguenther@suse.de>
3789 PR tree-optimization/57081
3790 * loop-init.c: Include tree-flow.h.
3791 (loop_optimizer_finalize): Free number of iteration estimates.
3792 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3794 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3796 PR tree-optimization/57083
3797 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3798 non-singleton shift count range, zero extend low_bound for uns case.
3800 * config/i386/predicates.md (general_vector_operand): New predicate.
3801 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3802 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3803 if they aren't nonimmediate operands. If their original values
3804 satisfy const_vector_equal_evenodd_p, don't shift them.
3805 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3806 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3807 if not nonimmediate_operand.
3808 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3809 instead of register_operand.
3810 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3812 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3814 * stor-layout.c (finalize_size_functions): Allocate a structure and
3815 reset cfun before dumping the functions.
3817 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3819 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3822 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3823 use xop_pmacsdqh if uns_p.
3824 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3825 the immediate rotate count.
3827 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3829 * rtl.h (struct rtx_def): Add comment for field jump.
3830 (LRA_SUBREG_P): New macro.
3831 * recog.c (register_operand): Check LRA_SUBREG_P.
3832 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3834 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3835 (lra_final_code_change): Skip subreg change for operators.
3836 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3837 if there are no operand changes.
3838 * lra-constraints.c (curr_insn_set): New.
3839 (match_reload): Set LRA_SUBREG_P.
3840 (emit_spill_move): Ditto.
3841 (check_and_process_move): Use curr_insn_set. Process only single
3842 set insns. Don't initialize sec_mem_p and change_p.
3843 (simplify_operand_subreg): Use LRA_SUBREG_P.
3844 (reg_in_class_p): New function.
3845 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3846 of #ifdef. Add code to remove cycling.
3847 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3848 non-null disp. Reload inner instead of disp when base and index
3849 are null. Try to put lo_sum into register.
3850 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3851 (check_and_process_move): Move code for move cost check to
3852 simple_move_p. Remove equiv_substitution.
3853 (simple_move_p): New function.
3854 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3855 curr_insn_set. Call check_and_process_move only for single set
3856 insns. Use the new function. Move call of check_and_process_move
3857 after operand equiv substitution and address process.
3859 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3862 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3863 with nonlocal goto receivers or returns twice calls, ignore
3864 unininitialized values from abnormal edges to nl goto receiver
3865 or returns twice call.
3867 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3869 PR tree-optimization/57051
3870 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3871 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3874 2013-04-26 Richard Biener <rguenther@suse.de>
3876 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3877 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3878 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3879 (fixup_loop_arrays_after_move): New function.
3880 (move_sese_region_to_fn): Properly outline the loop tree parts
3883 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
3885 * config/i386/i386.md (type, unit): Fix long lines.
3887 2013-04-26 Richard Biener <rguenther@suse.de>
3889 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3890 (lto-streamer-out.o): Likewise.
3891 * cfgloop.c (init_loops_structure): Export, add struct function
3892 argument and adjust.
3893 (flow_loops_find): Adjust.
3894 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3895 (init_loops_structure): Declare.
3896 * lto-streamer-in.c: Include cfgloop.h.
3897 (input_cfg): Input the loop tree.
3898 * lto-streamer-out.c: Include cfgloop.h.
3899 (output_cfg): Output the loop tree.
3900 (output_struct_function_base): Do not drop PROP_loops.
3902 2013-03-26 Richard Biener <rguenther@suse.de>
3904 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3905 (pass_build_cfg): Provide PROP_loops.
3906 (move_sese_region_to_fn): Remove loops that are outlined into fn
3908 * tree-inline.c: Include cfgloop.h.
3909 (initialize_cfun): Do not drop PROP_loops.
3910 (copy_loops): New function.
3911 (copy_cfg_body): Copy loop structure.
3912 (tree_function_versioning): Initialize destination loop tree.
3913 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3914 (pass_parallelize_loops): Do IL verification.
3915 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3916 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3917 the CFG make sure we fixup loops as well.
3918 * tree-ssa-tail-merge.c: Include cfgloop.h.
3919 (replace_block_by): When merging loop latches mark loops for fixup.
3920 * lto-streamer-out.c (output_struct_function_base): Drop
3922 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3923 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3924 * ipa-split.c: Include cfgloop.h.
3925 (split_function): Add the new return block to the loop tree root.
3926 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3927 whether we have removed the forwarder block.
3928 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3929 * cfgloop.h (place_new_loop): Declare.
3930 * cfgloopmanip.c (place_new_loop): Export.
3931 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3932 (tree-switch-conversion.o): Likewise.
3933 (tree-complex.o): Likewise.
3934 (tree-inline.o): Likewise.
3935 (tree-ssa-tailmerge.o): Likewise.
3936 (ipa-split.o): Likewise.
3937 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3938 (tree-ssa-copy.o): Likewise.
3939 * tree-switch-conversion.c: Include cfgloop.h
3940 (process_switch): If we emit a bit-test cascade, schedule loops
3942 * tree-complex.c: Include cfgloop.h.
3943 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3944 * asan.c: Include cfgloop.h.
3945 (create_cond_insert_point): Properly add new basic-blocks to
3946 loops, schedule loop fixup.
3947 * cfgloop.c (verify_loop_structure): Check that looks are not
3949 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3951 (expand_omp_for_generic): Likewise.
3952 (expand_omp_sections): Likewise.
3953 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3954 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3955 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3956 is initialized, not when loops are present.
3957 * tree-parloops.c (parallelize_loops): Remove checking here.
3958 * passes.c (init_optimization_passes): Schedule a copy-propagation
3959 pass before complete unrolling of inner loops.
3961 2013-04-26 Jakub Jelinek <jakub@redhat.com>
3963 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3964 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3965 (colorize_init): Add argument to _WIN32 version.
3966 * toplev.c: Include diagnostic-color.h.
3967 (process_options): Default to -fdiagnostics-color=auto if
3968 GCC_COLORS env var is in the environment.
3969 * common.opt (fdiagnostics-color=): Add Var and Init.
3970 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3971 env var is in the environment, the default is auto rather than never.
3973 * diagnostic.h (file_name_as_prefix): Add context argument.
3974 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3975 the string as locus.
3976 * langhooks.c (lhd_print_error_function): Adjust caller.
3978 2013-04-25 Lawrence Crowl <crowl@google.com>
3980 * var-tracking.c (shared_hash_def::htab):
3981 Change type to hash_table. Update dependent calls and types.
3983 2013-04-25 Lawrence Crowl <crowl@google.com>
3985 * Makefile.in: Update as needed below.
3987 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3988 Move declaration to after the type's method definitons.
3990 * attribs.c (htab_t scoped_attributes::attribute_hash):
3991 Change type to hash_table. Update dependent calls and types.
3993 * bitmap.c (htab_t bitmap_desc_hash):
3994 Change type to hash_table. Update dependent calls and types.
3996 * cselib.c (htab_t cselib_hash_table):
3997 Change type to hash_table. Update dependent calls and types.
3999 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4000 (hash_string_slot_node): Move implementation into lto-streamer.h
4001 struct string_slot_hasher.
4002 (eq_string_slot_node): Likewise.
4004 * data-streamer-out.c: Update output_block::string_hash_table
4005 dependent calls and types.
4007 * dwarf2cfi.c (htab_t trace_index):
4008 Change type to hash_table. Update dependent calls and types.
4010 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4011 Change type to hash_table. Update dependent calls and types.
4012 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4013 (htab_t optimize_external_refs::map): Likewise.
4014 (htab_t output_comp_unit::extern_map): Likewise.
4015 (htab_t output_comdat_type_unit::extern_map): Likewise.
4016 (htab_t output_macinfo::macinfo_htab): Likewise.
4017 (htab_t optimize_location_lists::htab): Likewise.
4018 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4020 * except.c (htab_t ehspec_hash_type):
4021 Change type to hash_table. Update dependent calls and types.
4022 (assign_filter_values::ttypes): Likewise.
4023 (assign_filter_values::ehspec): Likewise.
4024 (sjlj_assign_call_site_values::ar_hash): Likewise.
4025 (convert_to_eh_region_ranges::ar_hash): Likewise.
4027 * gcse.c (htab_t pre_ldst_table):
4028 Change type to hash_table. Update dependent calls and types.
4030 * ggc-common.c (htab_t saving_htab):
4031 Change type to hash_table. Update dependent calls and types.
4032 (htab_t loc_hash): Likewise.
4033 (htab_t ptr_hash): Likewise.
4034 (call_count): Rename ggc_call_count.
4035 (call_alloc): Rename ggc_call_alloc.
4036 (loc_descriptor): Rename make_loc_descriptor.
4037 (add_statistics): Rename ggc_add_statistics.
4039 * ggc-common.c (saving_htab):
4040 Change type to hash_table. Update dependent calls and types.
4042 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4043 (push_gimplify_context): Likewise.
4044 (pop_gimplify_context): Likewise.
4045 (struct gimple_temp_hash_elt): Added.
4046 (struct gimplify_hasher): Likewise.
4047 (struct gimplify_ctx.temp_htab):
4048 Change type to hash_table. Update dependent calls and types.
4050 * gimple-fold.c: Include gimplify-ctx.h.
4052 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4053 Change type to hash_table. Update dependent calls and types.
4054 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4055 avoid potential global name collision.
4057 * gimplify.c: Include gimplify-ctx.h.
4058 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4059 (htab_t gimplify_ctx::temp_htab):
4060 Update dependent calls and types for new type hash_table.
4061 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4062 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4064 * gimplify-ctx.h: New.
4065 (struct gimple_temp_hash_elt): Move from gimplify.c.
4066 (class gimplify_hasher): New.
4067 (struct gimplify_ctx): Move from gimple.h.
4068 (htab_t gimplify_ctx::temp_htab):
4069 Change type to hash_table. Update dependent calls and types.
4071 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4072 (htab_t ivs_params::newivs_index):
4073 Change type to hash_table. Update dependent calls and types.
4074 (htab_t ivs_params::params_index): Likewise.
4075 (htab_t print_generated_program::params_index): Likewise.
4076 (htab_t gloog::newivs_index): Likewise.
4077 (htab_t gloog::params_index): Likewise.
4079 * graphite.c: Include graphite-htab.h.
4080 4htab_t graphite_transform_loops::bb_pbb_mapping):
4081 Change type to hash_table. Update dependent calls and types.
4083 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4084 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4085 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4087 * graphite-dependences.c: Include graphite-htab.h.
4088 (loop_is_parallel_p): Change hash table type of parameter.
4090 * graphite-htab.h: New.
4091 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4092 (extern find_pbb_via_hash): Move from graphite-poly.h.
4093 (extern loop_is_parallel_p): Move from graphite-poly.h.
4094 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4096 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4097 (extern loop_is_parallel_p): Move to graphite-htab.h.
4098 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4100 * haifa-sched.c (htab_t delay_htab):
4101 Change type to hash_table. Update dependent calls and types.
4102 (htab_t delay_htab_i2): Likewise.
4104 * ira-color.c (htab_t allocno_hard_regs_htab):
4105 Change type to hash_table. Update dependent calls and types.
4107 * ira-costs.c (htab_t cost_classes_htab):
4108 Change type to hash_table. Update dependent calls and types.
4110 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4111 Change type to hash_table. Update dependent calls and types.
4113 * loop-iv.c (htab_t bivs):
4114 Change type to hash_table. Update dependent calls and types.
4116 * loop-unroll.c (htab_t opt_info::insns_to_split):
4117 Change type to hash_table. Update dependent calls and types.
4118 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4120 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4121 (struct string_slot_hasher): New.
4122 (htab_t output_block::string_hash_table):
4123 Change type to hash_table. Update dependent calls and types.
4125 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4126 (htab_t file_name_hash_table):
4127 Change type to hash_table. Update dependent calls and types.
4129 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4132 * lto-streamer.c (htab_t tree_htab):
4133 Change type to hash_table. Update dependent calls and types.
4135 * omp-low.c: Include gimplify-ctx.h.
4137 * passes.c (htab_t name_to_pass_map):
4138 Change type to hash_table. Update dependent calls and types.
4139 (pass_traverse): Rename to passes_pass_traverse.
4141 * plugin.c (htab_t event_tab):
4142 Change type to hash_table. Update dependent calls and types.
4144 * postreload-gcse.c (htab_t expr_table):
4145 Change type to hash_table. Update dependent calls and types.
4146 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4148 * sese.c (debug_rename_map_1): Make extern.
4149 (htab_t copy_bb_and_scalar_dependences::rename_map):
4150 Change type to hash_table. Update dependent calls and types.
4152 * sese.h (extern debug_rename_map): Move to .c file.
4154 * store-motion.c (htab_t store_motion_mems_table):
4155 Change type to hash_table. Update dependent calls and types.
4157 * trans-mem.c (htab_t tm_new_mem_hash):
4158 Change type to hash_table. Update dependent calls and types.
4160 * tree-browser.c (htab_t TB_up_ht):
4161 Change type to hash_table. Update dependent calls and types.
4163 * tree-cfg.c (htab_t discriminator_per_locus):
4164 Change type to hash_table. Update dependent calls and types.
4166 * tree-complex.c: Include tree-hasher.h
4167 (htab_t complex_variable_components):
4168 Change type to hash_table. Update dependent calls and types.
4170 * tree-eh.c (htab_t finally_tree):
4171 Change type to hash_table. Update dependent calls and types.
4173 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4174 struct int_tree_hasher.
4175 (extern int_tree_map_eq): Likewise.
4176 (uid_decl_map_hash): Removed.
4177 (extern decl_tree_map_eq): Likewise.
4179 * tree-hasher.h: New.
4180 (struct int_tree_hasher): New.
4181 (typedef int_tree_htab_type): New.
4183 * tree-inline.c: Include gimplify-ctx.h.
4185 * tree-mudflap.c: Include gimplify-ctx.h.
4187 * tree-parloops.c: Include tree-hasher.h.
4188 (htab_t eliminate_local_variables_stmt::decl_address):
4189 Change type to hash_table. Update dependent calls and types.
4190 (htab_t separate_decls_in_region::decl_copies): Likewise.
4192 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4193 Change type to hash_table. Update dependent calls and types.
4195 * tree-sra.c (candidates):
4196 Change type to hash_table. Update dependent calls and types.
4198 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4200 (int_tree_map_hash): Likewise.
4202 * tree-ssa-dom.c (htab_t avail_exprs):
4203 Change type to hash_table. Update dependent calls and types.
4205 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4206 Change type to hash_table. Update dependent calls and types.
4208 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4209 Change type to hash_table. Update dependent calls and types.
4211 * tree-ssa-phiopt.c (seen_ssa_names):
4212 Change type to hash_table. Update dependent calls and types.
4214 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4215 Change type to hash_table. Update dependent calls and types.
4217 * tree-ssa-uncprop.c (equiv):
4218 Change type to hash_table. Update dependent calls and types.
4220 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4222 PR rtl-optimization/57003
4223 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4224 call note_stores with kill_clobbered_value callback again after
4225 killing regs_invalidated_by_call.
4227 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4229 * config/aarch64/aarch64-simd.md
4230 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4231 (aarch64_simd_bsl<mode>): Likewise.
4232 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4234 2013-04-25 Marek Polacek <polacek@redhat.com>
4236 PR tree-optimization/57066
4237 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4239 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4241 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4243 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4245 * config/aarch64/aarch64-builtins.c
4246 (aarch64_fold_builtin): New.
4247 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4248 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4249 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4250 * config/aarch64/arm_neon.h
4251 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4253 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4254 Tejas Belagod <tejas.belagod@arm.com>
4256 * config/aarch64/aarch64-builtins.c
4257 (aarch64_gimple_fold_builtin): New.
4258 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4259 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4260 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4262 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4264 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4266 * config/aarch64/aarch64.md
4267 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4269 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4271 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4272 (*ngcsi_uxtw): New pattern.
4274 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4275 Julian Brown <julian@codesourcery.com>
4277 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4278 (TB_DREG): Add T_V4HF.
4279 (v4hf_UP): New macro.
4280 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4281 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4282 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4284 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4285 (arm_vector_mode_supported_p): Handle V4HF.
4286 (arm_mangle_map): Handle V4HFmode.
4287 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4288 * config/arm/arm_neon_builtins.def: Add entries for
4289 vcvtv4hfv4sf, vcvtv4sfv4hf.
4290 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4291 (neon_vcvtv4hfv4sf): Likewise.
4292 * config/arm/neon-gen.ml: Handle half-precision floating point
4294 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4295 * config/arm/arm_neon.h: Regenerate.
4296 * config/arm/neon.ml (type elts): Add F16.
4297 (type vectype): Add T_float16x4, T_floatHF.
4298 (type vecmode): Add V4HF.
4299 (type features): Add Requires_FP_bit feature.
4300 (elt_width): Handle F16.
4301 (elt_class): Likewise.
4302 (elt_of_class_width): Likewise.
4303 (mode_of_elt): Refactor.
4304 (type_for_elt): Handle F16, fix error messages.
4305 (vectype_size): Handle T_float16x4.
4306 (vcvt_sh): New function.
4307 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4308 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4309 (string_of_mode): Handle V4HF.
4310 * doc/arm-neon-intrinsics.texi: Regenerate.
4312 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4314 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4315 format specifier in 'X' case.
4317 2013-04-25 Alan Modra <amodra@gmail.com>
4320 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4321 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4322 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4323 Repeat for many other rotate/shift and mask patterns using subregs.
4324 Name lshiftrt insns.
4325 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4326 on WORDS_BIG_ENDIAN.
4328 2013-04-25 Alan Modra <amodra@gmail.com>
4330 * config.gcc: Support little-endian powerpc-linux targets.
4331 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4332 (LINK_OS_LINUX_SPEC): Define.
4333 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4334 Preserve MASK_LITTLE_ENDIAN.
4335 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4336 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4337 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4338 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4339 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4340 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4341 Correct fp word order for little-endian. Don't shift toc entries
4342 smaller than a word for little-endian.
4343 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4344 (bswapdi2 splits): Correct low-part subreg for little-endian.
4345 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4346 low/high where such is correct only for be.
4347 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4348 little-endian for -mcall-aixdesc.
4350 2013-04-25 Alan Modra <amodra@gmail.com>
4352 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4353 replace_equiv_address_nv.
4355 2013-04-25 Alan Modra <amodra@gmail.com>
4357 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4359 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4362 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4363 * rtl.h (struct rtx_def): ...
4365 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4367 PR rtl-optimizations/57046
4368 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4369 for multi-reg splits.
4371 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4373 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4375 2013-04-24 Sterling Augustine <saugustine@google.com>
4377 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4378 (comp_dir_string, debug_str_dwo_section): New.
4379 (DEBUG_STR_DWO_SECTION): Rename to ...
4380 (DEBUG_DWO_STR_SECTION): ... this.
4381 (DEBUG_NORM_STR_SECTION): Delete.
4382 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4383 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4384 (find_AT_string): Move most logic to ...
4385 (find_AT_string_in_table): ... here. New.
4386 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4387 add_skeleton_AT_string. Delete logic.
4388 (output_skeleton_debug_sections): Remove call to
4389 add_top_level_skeleton_die_attrs.
4390 (add_comp_dir_attribute): Move logic to comp_dir_string.
4391 (dwarf2out_init): Initialize debug_str_dwo_section.
4392 (output_indirect_string): Call find_string_form.
4393 (output_indirect_strings): Rewrite.
4394 (prune_unused_types): Empty skeleton_debug_str_hash.
4395 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4396 (dwarf2out_finish): Call output_indirect_strings.
4398 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4400 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4402 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4404 * rtl.h (struct rtx_def): Add comment for field jump.
4405 (LRA_SUBREG_P): New macro.
4406 * recog.c (register_operand): Check LRA_SUBREG_P.
4407 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4409 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4410 (lra_final_code_change): Skip subreg change for operators.
4411 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4412 if there are no operand changes.
4413 * lra-constraints.c (curr_insn_set): New.
4414 (match_reload): Set LRA_SUBREG_P.
4415 (emit_spill_move): Ditto.
4416 (check_and_process_move): Use curr_insn_set. Process only single
4417 set insns. Don't initialize sec_mem_p and change_p.
4418 (simplify_operand_subreg): Use LRA_SUBREG_P.
4419 (reg_in_class_p): New function.
4420 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4421 of #ifdef. Add code to remove cycling.
4422 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4423 non-null disp. Reload inner instead of disp when base and index
4424 are null. Try to put lo_sum into register.
4425 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4426 (check_and_process_move): Move code for move cost check to
4427 simple_move_p. Remove equiv_substitution.
4428 (simple_move_p): New function.
4429 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4430 curr_insn_set. Call check_and_process_move only for single set
4431 insns. Use the new function. Move call of check_and_process_move
4432 after operand equiv substitution and address process.
4434 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4436 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4437 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4438 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4440 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4442 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4444 2013-04-24 Marek Polacek <polacek@redhat.com>
4446 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4447 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4448 (select_loops_exit_conditions): Likewise.
4449 (number_of_iterations_for_all_loops): Likewise.
4450 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4451 (scev_analysis): Likewise.
4453 2013-04-02 Catherine Moore <clm@codesourcery.com>
4454 Chao-ying Fu <fu@mips.com>
4456 * config/mips/micromips.md (jraddiusp): New pattern.
4457 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4458 instruction if possible.
4460 2013-04-24 Alan Modra <amodra@gmail.com>
4462 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4464 2013-04-24 Julian Brown <julian@codesourcery.com>
4465 Chung-Lin Tang <cltang@codesourcery.com>
4467 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4468 dependency behavior in enumeration type DIE generation. Add TODO note
4469 to comments about future DW_FORM_sdata/udata re-work of related code.
4471 2013-04-23 Lawrence Crowl <crowl@google.com>
4473 * Makefile.in: Update as needed below.
4475 * hash-table.h (class hash_table):
4476 Correct many methods with parameter types compare_type to the correct
4477 value_type. (Correct code was unlikely to notice the change.)
4478 (hash_table::elements_with_deleted) New.
4479 (class hashtable::iterator): New.
4480 (hashtable::begin()): New.
4481 (hashtable::end()): New.
4482 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4484 * statistics.c (statistics_hashes):
4485 Change type to hash_table. Update dependent calls and types.
4487 * tree-into-ssa.c (var_infos):
4488 Change type to hash_table. Update dependent calls and types.
4490 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4491 Change type to hash_table. Update dependent calls and types.
4493 * tree-ssa-loop-im.c (struct mem_ref.refs):
4494 Change type to hash_table. Update dependent calls and types.
4496 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4497 Change type to hash_table. Update dependent calls and types.
4499 * tree-ssa-sccvn.c (vn_tables_s::nary):
4500 Change type to hash_table. Update dependent calls and types.
4501 (vn_tables_s::phis): Likewise.
4502 (vn_tables_s::references): Likewise.
4504 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4505 (vn_reference_eq): Update parameter and return types.
4507 * tree-ssa-structalias.c (pointer_equiv_class_table):
4508 Change type to hash_table. Update dependent calls and types.
4509 (location_equiv_class_table): Likewise.
4511 * tree-vect-data-refs.c: Consequential changes for making
4512 peeling a hash_table.
4514 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4515 (destroy_loop_vec_info): Dependent hash_table update.
4517 * tree-vectorizer.h (peeling_htab):
4518 Change type to hash_table. Update dependent calls and types.
4520 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4522 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4523 to check the register content is equal or not.
4524 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4525 to assign register content record.
4526 * lra-eliminations.c (update_reg_eliminate): Use
4527 lra_update_reg_val_offset to update register content offset.
4528 * lra-int.h (struct lra_reg): Add offset member.
4529 (lra_reg_val_equal_p): New static inline function.
4530 (lra_update_reg_val_offset): New static inline function.
4531 (lra_assign_reg_val): New static inline function.
4532 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4533 to assign register content record.
4534 (initialize_lra_reg_info_element): Initial offset to zero.
4536 2013-04-23 Catherine Moore <clm@codesourcery.com>
4538 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4539 operands. Record compression.
4541 2013-04-23 Xinliang David Li <davidxl@google.com>
4543 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4545 2013-04-23 Richard Biener <rguenther@suse.de>
4548 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4549 parameter, only add abnormal goto edges from the copied body
4550 if the call could perform abnormal gotos.
4551 (copy_cfg_body): Adjust.
4553 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4555 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4557 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4559 * coretypes.h (gimple_stmt_iterator): Add struct to make
4562 2013-04-23 Richard Biener <rguenther@suse.de>
4564 PR tree-optimization/57026
4565 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4566 from SSA names occuring in abnormal PHI nodes.
4568 2013-04-22 Andi Kleen <ak@linux.intel.com>
4570 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4572 2013-04-22 Andi Kleen <ak@linux.intel.com>
4574 * lto/lto.c (print_lto_report_1): Declare early.
4575 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4577 2013-04-22 Andi Kleen <ak@linux.intel.com>
4579 * common.opt (-flto-report-wpa): Add.
4580 * doc/invoke.texi (-flto-report-wpa): Add.
4581 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4584 2013-04-22 Xinliang David Li <davidxl@google.com>
4586 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4587 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4588 * Makefile.in: New dependency
4590 David Daney <ddaney.cavm@gmail.com>
4592 * configure.ac (gcc_cv_as_micromips_support): Use the
4593 --fatal-warnings option.
4594 * configure: Regenerate.
4596 2013-04-22 Marek Polacek <polacek@redhat.com>
4599 * tsan.c (instrument_expr): Don't instrument expression
4600 in case its size is zero.
4602 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4606 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4608 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4610 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4612 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4613 (gimple_stmt_iterator): New typedef.
4614 * gimple.h (gimple_stmt_iterator): Rename to...
4615 (gimple_stmt_iterator_d): ... This.
4616 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4617 trees be valid for GIMPLE and GENERIC.
4618 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4619 * gimple-fold.c (gimple_fold_call): Call target hook
4620 gimple_fold_builtin.
4621 * hooks.c (hook_bool_gsiptr_false): New.
4622 * hooks.h (hook_bool_gsiptr_false): New.
4623 * target.def (fold_stmt): New.
4624 * doc/tm.texi: Regenerate.
4626 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4629 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4630 a set sp if no stack realignment.
4632 2013-04-22 Nick Clifton <nickc@redhat.com>
4634 * config.gcc (tilegx-linux): Extend extra_objs rather than
4636 (tilepro-linux): Likewise.
4638 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4640 * config/aarch64/aarch64-builtins.c
4642 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4643 (VAR<1-12>): Add MAP parameter.
4644 (BUILTIN_*): Likewise.
4645 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4646 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4647 (aarch64_ushl_n<mode>): Likewise.
4648 (aarch64_sshr_n<mode>): Likewise.
4649 (aarch64_ushr_n<mode>): Likewise.
4650 (aarch64_<maxmin><mode>): Likewise.
4651 (aarch64_sqrt<mode>): Likewise.
4652 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4653 (vshr<q>_n_*): Likewise.
4655 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4657 * config/aarch64/aarch64-builtins.c
4658 (aarch64_simd_builtin_type_mode): Handle SF types.
4660 (BUILTIN_GPF): Define.
4661 (aarch64_init_simd_builtins): Handle SF types.
4662 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4665 * config/aarch64/aarch64-simd.md
4666 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4667 (aarch64_frecpe<mode>): New.
4668 (aarch64_frecps<mode>): Likewise.
4669 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4670 (v8type): Add frecp<esx>.
4671 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4672 (aarch64_frecps<mode>): Likewise.
4673 * config/aarch64/iterators.md (FRECP): New.
4674 (frecp_suffix): Likewise.
4675 * config/aarch64/arm_neon.h
4676 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4678 2013-04-22 Christian Bruel <christian.bruel@st.com>
4681 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4682 (REG_CLASS_NAMES): Idem.
4683 (REG_CLASS_CONTENTS): Idem.
4684 (REGCLASS_HAS_FP_REG): Idem.
4685 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4686 (sh_conditional_register_usage): Idem.
4688 2013-04-21 Jeff Law <law@redhat.com>
4690 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4691 (ssa_forward_propagate_and_combine): Use it.
4693 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4695 * lra.c: Update the flow chart diagram.
4697 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4699 PR rtl-optimization/56847
4700 * lra-constraints.c (process_alt_operands): Discourage alternative
4701 with non-matche doffsettable memory constraint fro memory with
4704 2013-04-19 Richard Biener <rguenther@suse.de>
4706 PR tree-optimization/56982
4707 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4709 * gimplify.c (gimplify_call_expr): Notice special calls.
4710 (gimplify_modify_expr): Likewise.
4711 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4712 abnormal control flow receivers.
4713 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4714 in the same way as cfun->has_nonlocal_labels.
4715 (gimple_purge_dead_abnormal_call_edges): Likewise.
4716 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4717 receivers start a basic-block.
4719 2013-04-19 Richard Biener <rguenther@suse.de>
4721 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4723 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4724 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4725 (SLP_TREE_LOAD_PERMUTATION): Add.
4726 (vect_transform_slp_perm_load): Adjust prototype.
4727 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4728 (vect_free_slp_instance): Likewise.
4729 (vect_create_new_slp_node): Likewise.
4730 (vect_supported_slp_permutation_p): Remove.
4731 (vect_slp_rearrange_stmts): Adjust.
4732 (vect_supported_load_permutation_p): Likewise. Inline
4733 vect_supported_slp_permutation_p here.
4734 (vect_analyze_slp_instance): Compute load permutations per
4735 slp node instead of per instance.
4736 (vect_get_slp_defs): Adjust.
4737 (vect_transform_slp_perm_load): Likewise.
4738 (vect_schedule_slp_instance): Remove redundant code.
4739 (vect_schedule_slp): Remove hack for PR56270, add it ...
4740 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4741 CSE loads for SLP. Adjust.
4743 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4745 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4746 spelling in two comments.
4748 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4751 * config/arm/arm.c (load_multiple_sequence): Require SP
4752 as base register for loads if SP is in the register list.
4754 2013-04-19 Martin Jambor <mjambor@suse.cz>
4756 PR tree-optimization/56718
4757 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4758 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4759 and made public. Adjusted all callers.
4760 (ipa_intraprocedural_devirtualization): New function.
4761 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4762 (ipa_intraprocedural_devirtualization): Likewise.
4763 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4765 2013-04-19 Richard Biener <rguenther@suse.de>
4767 PR tree-optimization/57000
4768 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4770 2013-04-19 Terry Guo <terry.guo@arm.com>
4772 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4774 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4775 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4776 (cortex_m4_fmacs): Use new reservations.
4777 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4779 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4781 PR rtl-optimization/56999
4782 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4784 (lra_coalesce): Remove split_origin_bitmap and related code.
4785 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4786 ranges if necessary.
4788 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4790 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4792 (ix86_expand_call): Remove clobbered_registers array and use
4793 x86_64_ms_sysv_extra_clobbered_registers instead.
4794 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4796 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4798 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4799 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4800 (*call_value_rex64_ms_sysv): Ditto.
4802 2013-04-18 Cary Coutant <ccoutant@google.com>
4804 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4805 parent instead of die_mark.
4807 2013-04-18 Diego Novillo <dnovillo@google.com>
4809 * gimple.c (create_gimple_tmp): New.
4810 (get_expr_type): New.
4811 (build_assign): New.
4812 (build_type_cast): New.
4813 * gimple.h (enum ssa_mode): Define.
4814 (gimple_seq_set_location): New.
4815 * asan.c (build_check_stmt): Change some gimple_build_* calls
4816 to use build_assign and build_type_cast.
4818 2013-04-18 Richard Biener <rguenther@suse.de>
4820 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4821 handle negative step. Remove redundant checks.
4822 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4823 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4824 for negative step and grouped loads fail to vectorize.
4826 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4828 * emit-rtl.c (reset_insn_used_flags): New function.
4829 (reset_all_used_flags): Use it.
4830 (verify_insn_sharing): New function.
4831 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4833 2013-04-18 Jakub Jelinek <jakub@redhat.com>
4835 PR tree-optimization/56984
4836 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4837 and (x >> M) >= N don't register any assertion if N << M is the
4840 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4842 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4843 do not delete_insn insns that have not yet been emitted, only
4844 unlink them with remove_insn.
4845 * df-scan.c (df_insn_delete): Revert r197492.
4847 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4849 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4850 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4852 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4854 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4855 define_insn_and_split.
4856 (and_scc,ior_scc,negscc): Likewise.
4857 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4859 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
4861 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4862 can benefit from using a sequence of LDRD instructions in epilogue
4863 instead of a single LDM instruction.
4865 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4868 * doc/extend.texi: Fix typo.
4870 2013-04-17 Richard Biener <rguenther@suse.de>
4872 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4873 (vect_build_slp_tree): ... here.
4874 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4875 match. Remove special-casing of mismatched complex loads.
4876 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4877 re-try the match with swapped commutative operands.
4878 (vect_supported_load_permutation_p): Remove special-casing of
4879 mismatched complex loads.
4880 (vect_analyze_slp_instance): Adjust.
4882 2013-04-17 Richard Biener <rguenther@suse.de>
4884 PR rtl-optimization/56921
4885 * cfgloop.h (struct loop): Add simple_loop_desc member.
4886 (struct niter_desc): Mark with GTY(()).
4887 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4888 * loop-iv.c (get_simple_loop_desc): Likewise.
4889 (free_simple_loop_desc): Likewise.
4892 2013-04-16 Richard Biener <rguenther@suse.de>
4894 PR rtl-optimization/56921
4895 * loop-init.c (pass_rtl_move_loop_invariants): Add
4896 TODO_do_not_ggc_collect to todo_flags_finish.
4897 (pass_rtl_unswitch): Same.
4898 (pass_rtl_unroll_and_peel_loops): Same.
4899 (pass_rtl_doloop): Same.
4901 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4903 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4904 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4905 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4907 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4908 * tree-streamer.c (record_common_node): Adjust reference in comment.
4910 2013-04-17 Terry Guo <terry.guo@arm.com>
4912 * config/arm/cortex-m4.md: Add a new bypass.
4914 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4916 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4918 (*subs_<optab><mode>_multp2): New pattern.
4919 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4920 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4922 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4924 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4925 (*subs_mul_imm_<mode>): New pattern.
4927 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
4930 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4931 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4932 (vsx_movti_32bit): Change j->wa to O->wa.
4934 2013-04-16 Richard Biener <rguenther@suse.de>
4936 PR rtl-optimization/56921
4937 * loop-init.c (pass_rtl_move_loop_invariants): Add
4938 TODO_do_not_ggc_collect to todo_flags_finish.
4939 (pass_rtl_unswitch): Same.
4940 (pass_rtl_unroll_and_peel_loops): Same.
4941 (pass_rtl_doloop): Same.
4943 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
4945 * config/arm/arm.c (emit_multi_reg_push): New declaration
4946 for an existing function.
4947 (arm_emit_strd_push): New function.
4948 (arm_expand_prologue): Used here.
4949 (arm_emit_ldrd_pop): New function.
4950 (arm_expand_epilogue): Used here.
4951 (arm_get_frame_offsets): Update condition.
4952 (arm_emit_multi_reg_pop): Add a special case for load of a single
4953 register with writeback.
4955 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
4957 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4960 2013-04-16 Richard Biener <rguenther@suse.de>
4962 PR tree-optimization/56756
4963 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4964 (first_mem_ref_loc): New.
4965 (execute_sm): Place the load temporarily before a previous
4966 access instead of in the latch edge to ensure its SSA dependencies
4967 are defined at points dominating the load.
4969 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4971 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4972 correct fix by moving header and footer insn to the footer of
4973 the merged basic block. Clear BB_END of the merged-away block.
4976 * emit-rtl.c (make_note_raw): New function.
4977 (link_insn_into_chain): New static inline function.
4979 (add_insn_before, add_insn_after): Factor insn chain linking code...
4980 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4981 using link_insn_into_chain.
4982 (note_outside_basic_block_p): New helper function for emit_note_after
4983 and emit_note_before.
4984 (emit_note_after): Use nobb variant of add_insn_after if the note
4985 should not be contained in a basic block.
4986 (emit_note_before): Use nobb variant of add_insn_before if the note
4987 should not be contained in a basic block.
4988 (emit_note_copy): Use make_note_raw.
4989 (emit_note): Likewise.
4990 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4991 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4992 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4993 the moved barrier the tail of the basic block it follows.
4994 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4996 2013-04-15 Jakub Jelinek <jakub@redhat.com>
4998 PR tree-optimization/56962
4999 * gimple-ssa-strength-reduction.c (record_increment): Only set
5000 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5001 either rhs1 or rhs2 is equal to c->base_expr.
5003 2013-04-15 Richard Biener <rguenther@suse.de>
5005 PR tree-optimization/56933
5006 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5008 (GROUP_READ_WRITE_DEPENDENCE): Remove.
5009 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5010 * tree-vect-data-refs.c (vect_analyze_group_access): Move
5011 dependence check ...
5012 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5014 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5015 GROUP_READ_WRITE_DEPENDENCE.
5017 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5019 * emit-rtl.c (reset_all_used_flags): New function.
5020 (verify_rtl_sharing): Call reset_all_used_flags before and after
5021 performing the checks.
5023 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5025 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5026 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5027 * config/arm/constraints.md (De): New constraint.
5028 * config/arm/neon.md (anddi3_neon): Delete.
5029 (neon_vand<mode>): Expand to standard anddi3 pattern.
5030 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5031 Move earlier in the file.
5032 (neon_inv_logic_op2): Likewise.
5033 (arm_anddi_operand_neon): New predicate.
5035 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5037 * configure.ac (gcc_cv_ld_as_needed): Set
5038 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5039 Use -z ignore, -z record on *-*-solaris2*.
5040 (HAVE_LD_AS_NEEDED): Update comment.
5041 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5042 * configure: Regenerate.
5043 * config.in: Regenerate.
5044 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5045 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5046 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5047 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5048 equivalents. Fix markup.
5049 * doc/tm.texi: Regenerate.
5051 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5053 * config/i386/i386.opt: New option mstack-protector-guard=.
5054 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5055 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5056 TARGET_SSP_TLS_GUARD.
5057 * config/i386/i386.c (ix86_option_override_internal): Set
5058 ix86_stack_protector_guard.
5059 * config/i386/i386.md (stack_protect_set): Enable for
5060 TARGET_SSP_TLS_GUARD only.
5061 (stack_protect_set_<mode>): Ditto.
5062 (stack_protect_test): Ditto.
5063 (stack_protect_test_<mode>): Ditto.
5064 * doc/invoke.texi (i386 Option): Document.
5066 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5069 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5070 (S_MODES): Set H_MODE bit.
5071 (SF_MODES): Set only S_MODE and SF_MODE bits.
5072 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5073 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5074 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5075 <MODE_FLOAT>: Likewise.
5077 2013-04-15 Joey Ye <joey.ye@arm.com>
5079 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5081 2013-04-15 Joey Ye <joey.ye@arm.com>
5083 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5085 (thumb_far_jump_used_p): Count instruction size and set
5088 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5090 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5091 * resource.c (mark_target_live_regs): Reformat conditional block.
5093 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5095 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5096 notes, they are emitted only just before final.
5097 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5099 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5101 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5102 * cfgrtl.c (delete_insn): Call it here instead.
5103 * lra-spills.c (lra_final_code_change): Use delete_insn.
5104 * haifa-sched.c (sched_remove_insn): Likewise.
5105 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5106 returning to the nop pool.
5107 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5108 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5110 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5112 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5113 * doc/tm.texi: Regenerated.
5115 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
5117 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5120 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5122 * df-core.c (df_find_def): Compare register numbers.
5123 (df_find_use): Likewise.
5125 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5128 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5129 lra_in_progress for return.
5131 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5133 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5134 define_insn into define_insn_and_split and emit movsicc patterns.
5136 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5138 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5140 2013-04-12 Richard Biener <rguenther@suse.de>
5142 * tree-pass.h (TODO_do_not_ggc_collect): New.
5143 * passes.c (execute_one_ipa_transform_pass): Honor
5144 TODO_do_not_ggc_collect.
5145 (execute_one_pass): Likewise.
5148 2013-04-10 Richard Biener <rguenther@suse.de>
5150 * passes.c (init_optimization_passes): Remove reload pass.
5151 * ira.c (do_reload): Merge into ...
5153 (rest_of_handle_reload): Remove.
5154 (pass_reload): Likewise.
5155 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5156 of reload for vzeroupper pass placement.
5158 2013-04-12 Jakub Jelinek <jakub@redhat.com>
5160 PR tree-optimization/56918
5161 PR tree-optimization/56920
5162 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5163 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5164 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5165 use wide_mul_with_sign method.
5167 2013-04-12 Richard Biener <rguenther@suse.de>
5169 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5170 not be considered a gimple constant.
5172 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
5174 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5175 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5178 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5179 Jakub Jelinek <jakub@redhat.com>
5181 * opts.c: Include diagnostic-color.h.
5182 (common_handle_option): Handle OPT_fdiagnostics_color_.
5183 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5184 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5185 (diagnostic-color.o): New.
5186 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5187 (diagnostic_color_rule): New enum.
5188 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5189 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5190 the location string.
5191 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5192 either NULL, or color kind.
5193 * diagnostic-color.c: New file.
5194 * diagnostic-color.h: New file.
5195 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5197 * doc/invoke.texi (-fdiagnostics-color): Document.
5198 * pretty-print.h (pp_show_color): Define.
5199 (struct pretty_print_info): Add show_color field.
5200 * diagnostic.c: Include diagnostic-color.h.
5201 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5202 macros. Colorize error:, warning: etc. strings and also the location
5204 (diagnostic_show_locus): Colorize the caret line.
5205 * pretty-print.c: Include diagnostic-color.h.
5206 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5207 inside of %< %> quotes or quoted through q format modifier.
5209 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5211 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5213 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5215 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5217 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5220 2013-04-11 Marek Polacek <polacek@redhat.com>
5222 PR tree-optimization/48184
5223 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5225 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5227 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5228 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5229 (skip_simple_arithmetic): Tidy up.
5230 * tree.h (skip_simple_constant_arithmetic): Declare.
5232 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5234 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5236 2013-04-11 Richard Biener <rguenther@suse.de>
5238 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5239 generate vector constants.
5241 2013-04-11 Richard Biener <rguenther@suse.de>
5243 PR tree-optimization/56878
5244 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5245 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5247 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5248 Prefer to align the DR with the most invariant base address.
5250 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5252 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5255 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5257 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5258 floating-point vector comparisons against 0.
5260 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5262 PR tree-optimization/56899
5263 * fold-const.c (extract_muldiv_1): Apply distributive law
5264 only if TYPE_OVERFLOW_WRAPS (ctype).
5266 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5269 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5270 loading has side effect.
5272 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5274 * config/sparc/sparc.c: Include tree-pass.h.
5275 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5276 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5277 head of file. Change return type. Split off gate function.
5278 (sparc_gate_work_around_errata): New function.
5279 (pass_work_around_errata): New pass definition.
5280 (insert_pass_work_around_errata) New pass insert definition to
5281 insert pass_work_around_errata just after delayed-branch scheduling.
5282 (sparc_option_override): Insert the pass.
5283 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5285 2013-04-10 David S. Miller <davem@davemloft.net>
5287 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5288 or -mcpu=hypersparc.
5290 * target.def (cstore_mode): New hook.
5291 * target.h: Include insn-codes.h
5292 * targhooks.c: Likewise.
5293 (default_cstore_mode): New function.
5294 * targhooks.h: Declare it.
5295 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5296 * doc/tm.texi: Rebuild.
5297 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5298 target hook, rather than inspecting the insn_data.
5299 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5300 (TARGET_CSTORE_MODE): Redefine.
5301 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5303 * config/sparc/predicates.md (cstore_result_operand): New special
5305 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5306 Use it for operand 0.
5307 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5308 (*snesi_special): Likewise.
5309 (*snesi_zero): Likewise.
5310 (*seqsi_zero): Likewise.
5311 (*sltu_insn): Likewise.
5312 (*sgeu_insn): Likewise.
5313 (*seqdi_special): Make operand 0 and comparison operation be of
5315 (*snedi_special): Likewise.
5316 (*snedi_special_vis3): Likewise.
5317 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5318 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5319 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5320 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5321 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5322 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5323 (*sltu_extend_sp64): Likewise.
5324 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5325 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5326 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5327 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5328 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5330 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5332 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5333 (aarch64_start_file): Use the new function.
5335 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5336 Jason Merrill <jason@redhat.com>
5338 * common.opt: Add -gdwarf.
5339 * opts.c (common_handle_option): Handle it.
5340 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5342 2013-04-10 Richard Biener <rguenther@suse.de>
5344 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5345 (execute_one_ipa_transform_pass): But unconditionally here.
5346 (execute_one_pass): And here.
5347 (init_optimization_passes): Remove reload pass.
5348 * tree-pass.h (TODO_ggc_collect): Remove.
5349 (pass_reload): Likewise.
5350 * ira.c (do_reload): Merge into ...
5352 (rest_of_handle_reload): Remove.
5353 (pass_reload): Likewise.
5354 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5355 of reload for vzeroupper pass placement.
5356 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5357 and todo_flags_finish of all passes.
5359 2013-04-10 Richard Biener <rguenther@suse.de>
5361 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5362 first_const_oprnd field, rename first_def_type to first_op_type.
5363 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5364 (vect_get_and_check_slp_defs): Always use the type of the
5365 operand. Allow mixed vect_external_def, vect_constant_def types.
5366 (vect_get_constant_vectors): Handle mixed vect_external_def,
5367 vect_constant_def types.
5369 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5371 PR tree-optimization/55524
5372 * tree-ssa-math-opts.c
5373 (convert_mult_to_fma): Don't use an fms construct
5374 when we don't have an fms operation, but fnma, and it looks
5375 likely that we'll be able to use the latter.
5377 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5379 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5381 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5382 inline fail caused by overwritable functions.
5384 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5386 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5387 unnecessary bits in the constant power of two case.
5389 2013-04-10 Richard Biener <rguenther@suse.de>
5391 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5392 broken code swapping operands.
5393 (vect_build_slp_tree): Do not compute load permutations here.
5394 (vect_analyze_slp_instance): Compute load permutations here,
5395 after building the SLP tree.
5397 2013-04-09 Christian Bruel <christian.bruel@st.com>
5399 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5400 of next/prev_real_insn.
5402 2013-04-09 Jan Hubicka <jh@suse.cz>
5404 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5405 Drop aliased parameter.
5406 (function_and_variable_visibility): Do not handle alias pairs.
5407 * cgraph.c (varpool_externally_visible_p): Update prototype.
5408 * varpool.c (varpool_add_new_variable): Update.
5410 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5412 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5414 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5416 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5418 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5420 2013-04-09 Marek Polacek <polacek@redhat.com>
5422 PR tree-optimization/48762
5423 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5425 2013-04-09 Richard Biener <rguenther@suse.de>
5427 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5429 (vect_build_slp_tree): Likewise.
5430 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5431 calculating the cost of a SLP instance.
5432 (vect_analyze_slp_instance): Use it from here, after building
5435 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5438 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5439 expand_omp_for_static_chunk): Use simple_p = true in
5440 force_gimple_operand_gsi calls when assigning to addressable decls.
5442 2013-04-09 Jeff Law <law@redhat.com>
5444 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5445 when the boolean was created by converting a wider object which
5446 had a boolean range.
5448 2013-04-09 Richard Biener <rguenther@suse.de>
5450 * tree-vectorizer.h (slp_void_p): Remove.
5451 (slp_tree): Typedef before _slp_tree declaration.
5452 (struct _slp_tree): Use a vector of slp_tree as children.
5453 (vect_get_place_in_interleaving_chain): Remove.
5454 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5456 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5458 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5459 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5460 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5461 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5462 Use slp_node instead of slp_void_p and adjust.
5464 2013-04-09 Richard Biener <rguenther@suse.de>
5466 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5467 work that is not necessary.
5469 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5471 PR tree-optimization/56854
5472 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5473 forward into clobber stmts if it would change MEM_REF lhs into
5476 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5478 * tree.c (type_hash_lookup, type_hash_add): Make static.
5479 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5481 2013-04-09 Richard Biener <rguenther@suse.de>
5483 * tree.h (unsave_expr_now): Remove.
5484 * tree-inline.c (mark_local_for_remap_r): Remove.
5485 (unsave_expr_1): Likewise.
5486 (unsave_r): Likewise.
5487 (unsave_expr_now): Likewise.
5488 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5489 (propagate_tree_value): Likewise.
5491 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5493 * doc/rtl.texi (sequence): Rewrite documentation to match the
5494 current use of SEQUENCE rtl objects.
5495 * rtl.def (SEQUENCE): Likewise.
5497 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5498 Update documentation.
5499 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5500 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5502 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5504 2013-04-08 Teresa Johnson <tejohnson@google.com>
5506 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5507 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5509 (estimate_edge_size_and_time): Add comment to suggest using rounding
5511 (estimate_node_size_and_time): Ditto.
5512 (remap_edge_change_prob): Use helper rounding divide methods.
5513 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5514 (gimple_mod_pow2_value_transform): Ditto.
5515 (gimple_mod_subtract_transform): Ditto.
5516 (gimple_ic_transform): Ditto.
5517 (gimple_stringops_transform): Ditto.
5518 * stmt.c (conditional_probability): Ditto.
5519 (emit_case_dispatch_table): Ditto.
5520 * lto-cgraph.c (merge_profile_summaries): Ditto.
5521 * tree-optimize.c (execute_fixup_cfg): Ditto.
5522 * cfgcleanup.c (try_forward_edges): Ditto.
5523 * cfgloopmanip.c (scale_loop_profile): Ditto.
5525 (duplicate_loop_to_header_edge): Ditto.
5526 (lv_adjust_loop_entry_edge): Ditto.
5527 * tree-vect-loop.c (vect_transform_loop): Ditto.
5528 * profile.c (compute_branch_probabilities): Ditto.
5529 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5530 * lto-streamer-in.c (input_cfg): Ditto.
5531 * gimple-streamer-in.c (input_bb): Ditto.
5532 * ipa-cp.c (update_profiling_info): Ditto.
5533 (update_specialized_profile): Ditto.
5534 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5535 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5537 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5538 (compute_trg_info): Ditto.
5539 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5540 (purge_dead_edges): Ditto.
5541 * loop-unswitch.c (unswitch_loop): Ditto.
5542 * cgraphclones.c (cgraph_clone_edge): Ditto.
5543 (cgraph_clone_node): Ditto.
5544 * tree-inline.c (copy_bb): Ditto.
5545 (copy_edges_for_bb): Ditto.
5546 (initialize_cfun): Ditto.
5547 (copy_cfg_body): Ditto.
5548 (expand_call_inline): Ditto.
5550 2013-04-08 Kai Tietz <ktietz@redhat.com>
5552 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5553 TARGET_CYGWIN64 by TARGET_64BIT.
5555 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5557 * config/epiphany/epiphany.md (GPR_1): New constant.
5558 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5559 * config/epiphany/epiphany.c (gen_compare_reg):
5560 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5561 is already in place.
5562 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5563 Don't require being called during rtl expansion; If y operlaps r0,
5565 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5566 (epiphany_expand_epilogue): Likewise.
5568 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5569 Don't use CC_FPmode for ORDERED / UNORDERED.
5570 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5572 * config/epiphany/constraints.md (CnL): New constraint.
5573 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5574 * config/epiphany/predicates.md (add_operand): Allow 1024.
5576 * config/epiphany/epiphany.md (logical_op): New code iterator.
5577 (op_mnc): New code attribute.
5578 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5579 (mov_f+1, mov_f+2): New peephole2 patterns.
5581 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5582 (cstoresi4): Also allow re-use of zero result when doing a NE
5583 comparison to a non-zero operand.
5584 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5586 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5587 Use gen_addsi3_i / gen_subsi3_i.
5589 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5593 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5594 contain anything but clobbers, at most one __builtin_stack_restore,
5595 optionally debug stmts and final resx, and if it has at least one
5596 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5597 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5598 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5599 which isn't defaut definition, remove them.
5600 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5601 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5602 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5603 with MEM_REF LHS with SSA_NAME address.
5605 2013-04-08 Jeff Law <law@redhat.com>
5607 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5609 2013-04-08 Richard Biener <rguenther@suse.de>
5611 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5613 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5614 determined vector type.
5615 (vect_analyze_data_refs): Likewise.
5616 (vect_get_new_vect_var): Adjust.
5617 (vect_create_destination_var): Preserve SSA name versions.
5618 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5619 not dump anything here.
5621 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5623 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5624 Add member lr_slot_known.
5625 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5627 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5628 Remove code that sets lr_slot_offset according to what a previous
5629 version of epiphany_emit_save_restore used to do.
5630 (epiphany_emit_save_restore): When doing an lr save or restore,
5631 set/verify lr_slot_known and lr_slot_offset.
5633 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5636 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5639 2013-04-08 Richard Biener <rguenther@suse.de>
5641 * alias.c (find_base_term): Fix thinko in previous change.
5643 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5645 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5646 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5647 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5648 if possible to compute val.
5649 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5650 For QImode integers don't require anything about precision. Use
5651 const_with_all_bytes_same to find out if the constant doesn't have
5652 repeated bytes in it.
5654 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5656 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5659 2013-04-08 Marek Polacek <polacek@redhat.com>
5661 PR rtl-optimization/48182
5662 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5665 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5668 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5669 nuses, make sure we have a label.
5671 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5674 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5675 (rs6000_emit_swdiv_low_precision): Remove.
5676 (rs6000_emit_swdiv): Rewrite to handle between one and four
5677 iterations of Newton-Raphson generally; modify required number of
5678 iterations for some cases.
5679 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5681 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5683 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5684 set-but-unused variable.
5686 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5687 basic blocks of released function bodies garbage-collectable.
5689 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5690 (struct rtl_opt_pass): Add TODO_df_finish.
5692 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5694 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5696 * config/arm/constraints.md (q): New constraint.
5697 * config/arm/ldrdstrd.md: New file.
5698 * config/arm/arm.md (ldrdstrd.md) New include.
5699 (arm_movdi): Use "q" instead of "r" constraint
5700 for double-word memory access.
5701 (movdf_soft_insn): Likewise.
5702 * config/arm/vfp.md (movdi_vfp): Likewise.
5703 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5704 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5705 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5706 (mem_ok_for_ldrd_strd): Likewise.
5707 (output_move_double): Update assertion.
5709 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5711 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5713 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5715 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5716 define_insn_and_split.
5717 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5719 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5721 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5722 define_insn_and_split.
5723 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5724 (shiftsi3_compare): New pattern.
5726 * config/arm/unspecs.md (UNSPEC_RRX): New.
5728 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5730 * config/arm/arm.md (negdi_extendsidi): New pattern.
5731 (negdi_zero_extendsidi): Likewise.
5733 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5735 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5736 define_insn_and_split.
5737 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5738 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5740 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5742 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5743 define_insn_and_split.
5744 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5745 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5747 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5749 * config/arm/arm.md (subsi3_carryin): New pattern.
5750 (subsi3_carryin_const): Likewise.
5751 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5752 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5754 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5756 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5758 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5760 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5761 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5763 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5765 * config/arm/arm.c (arm_expand_builtin): Change fcode
5766 type to unsigned int.
5768 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5770 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5772 2013-04-04 Ian Lance Taylor <iant@google.com>
5774 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5777 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5780 * df-scan.c (df_insn_delete): Disable failing assert.
5782 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5784 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5785 New function prototype.
5786 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5787 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5788 (arm_builtin_vectorized_function): New function.
5790 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5792 * config/arm/arm_neon_builtins.def: New file.
5793 * config/arm/arm.c (neon_builtin_data): Move contents to
5794 arm_neon_builtins.def.
5795 (enum arm_builtins): Include neon builtin definitions.
5796 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5797 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5799 2013-04-04 Marek Polacek <polacek@redhat.com>
5801 PR tree-optimization/48186
5802 * predict.c (maybe_hot_frequency_p): Return false if
5803 HOT_BB_FREQUENCY_FRACTION is 0.
5804 (cgraph_maybe_hot_edge_p): Likewise.
5806 2013-04-04 Richard Biener <rguenther@suse.de>
5808 PR tree-optimization/56826
5809 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5812 2013-04-04 Richard Biener <rguenther@suse.de>
5814 PR tree-optimization/56213
5815 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5816 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5818 2013-04-04 Richard Biener <rguenther@suse.de>
5820 PR tree-optimization/56837
5821 * tree-loop-distribution.c (classify_partition): For non-zero
5822 values require that the value has the same precision as its
5823 mode to be useful as memset value.
5825 2013-04-03 Nick Clifton <nickc@redhat.com>
5827 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
5828 (fmssf4): Use fmsf.s on E3V5 architectures.
5829 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5830 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5832 2013-04-03 Jeff Law <law@redhat.com>
5834 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5835 (lra-eliminations.o): Likewise.
5837 2013-04-03 Teresa Johnson <tejohnson@google.com>
5839 * gcov-io.c (compute_working_sets): Moved most of body of old
5840 compute_working_sets here from profile.c.
5841 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
5842 (gcov_working_set_t): Moved typedef here from basic-block.h
5843 (compute_working_set): Declare.
5844 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5845 (get_working_sets): Renamed from compute_working_set,
5846 replace most of body with call to new compute_working_sets.
5847 (get_exec_counts): Replace call to compute_working_sets
5848 to get_working_sets.
5849 * profile.h (get_working_sets): Renamed from compute_working_set.
5850 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
5851 to get_working_sets.
5852 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5853 * gcov-dump.c (dump_working_sets): New function.
5855 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5857 * hwint.c (sext_hwi, zext_hwi): New functions.
5858 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5859 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5860 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5861 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5862 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5863 (sext_hwi, zext_hwi): New functions.
5865 2013-04-03 Jeff Law <law@redhat.com>
5867 PR tree-optimization/56799
5868 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5869 back test for widening conversion erroneously dropped in prior change.
5871 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5874 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5875 instead of next_real_insn.
5877 2013-04-03 Marek Polacek <polacek@redhat.com>
5880 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
5882 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5885 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5887 (thumb1_output_casesi): Likewise.
5888 (thumb2_output_casesi): Likewise.
5890 2013-04-03 Richard Biener <rguenther@suse.de>
5892 PR tree-optimization/56817
5893 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5895 (tree_unroll_loops_completely_1): ... new function to manually
5896 walk the loop tree, properly defering outer loops of unrolled
5897 loops to later iterations.
5899 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5901 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5902 (vectorizable_load): Likewise.
5903 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5904 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5906 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5908 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5911 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5913 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5915 2013-04-03 Bin Cheng <bin.cheng@arm.com>
5917 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5919 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5921 PR tree-optimization/56790
5922 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5925 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
5927 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5929 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5930 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5933 2013-04-03 Jakub Jelinek <jakub@redhat.com>
5936 * tree.h (force_folding_builtin_constant_p): New decl.
5937 * builtins.c (force_folding_builtin_constant_p): New variable.
5938 (fold_builtin_constant_p): Fold immediately also if
5939 force_folding_builtin_constant_p.
5941 2013-04-03 Richard Biener <rguenther@suse.de>
5943 PR tree-optimization/56812
5944 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5945 DRs of the same interleaving chain are independent.
5947 2013-04-02 Jason Merrill <jason@redhat.com>
5949 * gdbinit.in (pbb): Use debug fn.
5951 2013-04-02 Lawrence Crowl <crowl@google.com>
5953 * sese.h (struct ivtype_map_elt_s): Remove unused.
5954 (extern debug_ivtype_map): Remove unused.
5955 (extern eq_ivtype_map_elts): Remove unused.
5956 * sese.c (debug_ivtype_map): Removed unused.
5957 (debug_ivtype_map_1): Removed unused.
5958 (debug_ivtype_elt): Remove unused.
5959 (eq_ivtype_map_elts): Remove unused.
5962 2013-04-02 Kai Tietz <ktietz@redhat.com>
5965 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5966 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
5967 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5969 (legitimize_pe_coff_symbol): Likewise.
5970 (is_imported_p): New helper-function.
5971 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5972 for Windows x64 targets.
5973 (ix86_expand_prologue): Optimize for pe-coff targets.
5974 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5975 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5976 medium/large code-model.
5977 (legitimize_pic_address): Likewise.
5978 (legitimize_tls_address): Likewise.
5979 (ix86_expand_call): Likewise.
5980 (x86_output_mi_thunk): Likewise.
5981 (get_dllimport_decl): Add new beimport argument.
5982 (construct_plt_address): Don't assert for x64 pe-coff targets.
5983 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5985 (SYMBOL_FLAG_STUBVAR): New macro.
5986 (SYMBOL_REF_STUBVAR_P): Likewise.
5987 * config/i386/winnt.c (stub_list): New structure.
5988 (stub_head): New local variable.
5989 (i386_pe_record_stub): New function.
5990 (i386_pe_file_end): Emit refptr-stubs.
5992 2013-04-02 Jakub Jelinek <jakub@redhat.com>
5994 PR rtl-optimization/56745
5995 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5996 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5999 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6000 and both of them are MEM_REFs, just compare first argument for
6001 equality and attempt to deal even with differing offsets.
6004 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6005 of gimple_clobber_p to be MEM_REF.
6006 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6007 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
6008 after gimplification.
6009 * asan.c (get_mem_ref_of_assignment): Don't instrument
6010 gimple_clobber_p stmts.
6011 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6012 gimple_clobber_p stmt if they have MEM_REF lhs and
6013 are dead because of another gimple_clobber_p stmt.
6014 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6015 gimple_clobber_p stmts like debug stmts.
6016 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6017 that refer to unused VAR_DECLs or uninitialized values.
6018 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6019 gimple_clobber_p stmts if they refer to removed parameters.
6020 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6023 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
6025 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6026 using SWI48 mode attribute.
6028 2013-04-02 Wei Mi <wmi@google.com>
6030 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6031 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6032 *<rotate_insn><mode>3_mask in i386.md.
6034 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6036 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6038 2013-04-02 Richard Biener <rguenther@suse.de>
6040 PR tree-optimization/56778
6041 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6042 Runtime alias tests are not supported for gather loads.
6043 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6044 stmts referenced from SSA operands before updating SSA form.
6046 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6047 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6049 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6050 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6051 * config/arm/cortex-a53.md: New file.
6052 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6053 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6054 * config/arm/arm.c (arm_issue_rate): Likewise.
6055 * config/arm/arm-tune.md: Regenerate
6056 * config/arm/arm-tables.opt: Regenerate.
6057 * config/arm/arm-cores.def: Add cortex-a53.
6059 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6061 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6064 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6066 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6067 scalar load/store operations using B/H registers.
6068 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6070 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6072 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6074 * config/aarch64/aarch64.c
6075 (aarch64_simd_scalar_immediate_valid_for_move): New.
6076 * config/aarch64/aarch64-protos.h
6077 (aarch64_simd_scalar_immediate_valid_for_move): New.
6078 * config/aarch64/constraints.md (Dh, Dq): New.
6079 * config/aarch64/iterators.md (hq): New.
6081 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6083 * reorg.c (get_branch_condition): Deal with conditional returns.
6084 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6086 2013-04-01 Wei Mi <wmi@google.com>
6088 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6089 Truncate operand 2 using %b asm operand modifier.
6090 (*<shift_insn><mode>3_mask): Ditto.
6091 (*<rotate_insn><mode>3_mask): Ditto.
6093 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6096 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6098 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6100 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6102 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6104 2013-03-30 Lawrence Crowl <crowl@google.com>
6106 * dse.c (clear_alias_sets): Remove never set.
6107 (disqualified_clear_alias_sets): Remove never set.
6108 (clear_alias_mode_pool): Remove never set.
6109 (dse_step0): Remove condition that is never true.
6110 (canon_address): Remove condition that is never true.
6111 (dse_step7): Remove condition that is never true.
6112 (rest_of_handle_dse): Remove condition that is never true.
6113 (rest_of_handle_dse::did_global): Remove never read from above.
6114 (dse_step2_spill): Remove never called from above.
6115 (dse_step5_spill): Remove never called from above.
6117 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6119 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6120 JUMP_TABLE_DATA changes.
6121 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6122 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6123 (Insns) <jump_table_data>: New entry.
6124 * doc/tm.texi: Regenerate.
6126 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6128 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6129 for table jump at the end of a basic block using tablejump_p.
6130 * targhooks.c (default_invalid_within_doloop): Likewise.
6131 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6132 target hook implementation that is identical to the default hook.
6133 (rs6000_invalid_within_doloop): Remove.
6135 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6136 unused variable from tablejump_p call.
6138 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6139 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6140 (INSN_DELETED_P): Likewise.
6141 (emit_jump_table_data): New prototype.
6142 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6143 after 4th as unused.
6144 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6145 * sched-vis.c (print_insn): Likewise.
6146 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6147 insn for compatibility with back ends that use next_active_insn to
6148 identify jump table data.
6149 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6150 (remove_insn): Likewise.
6151 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6153 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6154 (emit_jump_table_data): New function.
6156 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6157 basic block, a JUMP_TABLE_DATA never is.
6158 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6159 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6160 off from code handling real insns.
6161 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6162 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6163 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6164 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6165 is not a NONDEBUG_INSN_P.
6166 * ira-costs.c (scan_one_insn): Likewise.
6167 * jump.c (mark_all_labels): Likewise.
6168 (mark_jump_label_1): Likewise.
6169 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6170 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6172 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6173 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6174 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6175 JUMP_TABLE_DATA_P insns.
6176 (calculate_elim_costs_all_insns): Likewise.
6177 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6178 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6179 (delete_output_reload): Code style fixups.
6180 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6181 insn flags on this non-insn.
6182 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6183 as scheduling barriers, for pre-change compatibility.
6184 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6185 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6187 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6188 redundant JUMP_TABLE_DATA_P test.
6189 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6190 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6191 (frv_for_each_packet): Likewise.
6192 * config/i386/i386.c (min_insn_size): Likewise.
6193 (ix86_avoid_jump_mispredicts): Likewise.
6194 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6195 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6196 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6197 (mips16_insn_length): Robustify.
6198 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6199 (mips16_split_long_branches): Likewise.
6200 * config/pa/pa.c (pa_combine_instructions): Likewise.
6201 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6202 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6203 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6204 as contributing to pool range lengths.
6205 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6206 Remove redundant JUMP_TABLE_DATA_P test.
6207 (sh_loop_align): Likewise.
6208 (split_branches): Likewise.
6209 (sh_insn_length_adjustment): Likewise.
6210 * config/spu/spu.c (get_branch_target): Likewise.
6212 2013-03-29 Jan Hubicka <jh@suse.cz>
6214 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6215 gcov streaming; stream hot bb threshold to ltrans.
6216 * predict.c (get_hot_bb_threshold): Break out from ....
6217 (maybe_hot_count_p): ... here.
6218 (set_hot_bb_threshold): New function.
6219 * lto-section-in.c (lto_section_name): Add profile.
6220 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6221 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6223 (histogram_entry): New structure.
6224 (histogram, histogram_pool): New global vars.
6225 (histogram_hash): New structure.
6226 (histogram_hash::hash): New method.
6227 (histogram_hash::equal): Likewise.
6228 (account_time_size): New function.
6229 (cmp_counts): New function.
6230 (dump_histogram): New function.
6231 (ipa_profile_generate_summary): New function.
6232 (ipa_profile_write_summary): New function.
6233 (ipa_profile_read_summary): New function.
6234 (ipa_profile): Decide on threshold.
6235 (pass_ipa_profile): Add ipa_profile_write_summary and
6236 ipa_profile_read_summary.
6237 * Makefile.in (ipa.o): Update dependencies.
6238 * lto-streamer.h (LTO_section_ipa_profile): New section.
6240 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6242 * tree.h (VAR_P): New.
6244 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6247 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6249 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6251 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6252 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6253 (control_flow_insn_p): Likewise.
6254 * cfgrtl.c (duplicate_insn_chain): Likewise.
6255 * final.c (get_attr_length_1): Likewise.
6256 (shorten_branches): Likewise.
6257 (final_scan_insn): Likewise.
6258 * function.c (instantiate_virtual_regs): Likewise.
6259 * gcse.c (insert_insn_end_basic_block): Likewise.
6260 * ira-costs.c (scan_one_insn): Likewise.
6261 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6262 * lra.c (check_rtl): Likewise.
6263 * reload1.c (elimination_costs_in_insn): Likewise.
6264 * reorg.c (follow_jumps): Likewise.
6266 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6267 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6268 (thumb_far_jump_used_p): Likewise.
6269 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6270 (workaround_speculation): Likewise.
6271 (add_sched_insns_for_speculation): Likewise.
6272 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6273 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6274 (frv_for_each_packet): Likewise.
6275 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6276 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6277 (final_emit_insn_group_barriers): Likewise.
6278 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6279 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6280 (mips16_insn_length): Likewise.
6281 * config/pa/pa.c (pa_reorg): Likewise.
6282 (pa_combine_instructions): Likewise.
6283 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6284 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6285 (sh_reorg): Likewise.
6286 (split_branches): Likewise.
6287 * config/spu/spu.c (get_branch_target): Likewise.
6289 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6292 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6294 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6295 Fix declaration name.
6297 2013-03-28 Lawrence Crowl <crowl@google.com>
6299 * graphds.h (struct graph.indicies): Remove unused.
6300 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6301 (SCOP_ORIGINAL_PDDRS): Remove unused.
6302 * sese.h (extern insert_loop_close_phis): Removed unused.
6303 (extern insert_guard_phis): Removed unused.
6304 (extern ivtype_map_elt_info): Removed unused.
6305 (new_ivtype_map_elt): Removed unused.
6306 * sese.c (ivtype_map_elt_info): Removed unused.
6308 2013-03-28 Lawrence Crowl <crowl@google.com>
6310 * Makefile.in: Add several missing include dependences.
6312 (test-dump.o): New. This object is not added to any executable,
6313 but is present for ad-hoc testing.
6315 (debug (const bitmap_head_def &)): New.
6316 (debug (const bitmap_head_def *)): New.
6318 (extern debug (const bitmap_head_def &)): New.
6319 (extern debug (const bitmap_head_def *)): New.
6321 (debug (edge_def &)): New.
6322 (debug (edge_def *)): New.
6324 (debug (basic_block_def &)): New.
6325 (debug (basic_block_def *)): New.
6327 (dump_node (const_tree, int, FILE *)): Correct source file.
6329 (debug (die_struct &)): New.
6330 (debug (die_struct *)): New.
6332 (extern debug (die_struct &)): New.
6333 (extern debug (die_struct *)): New.
6334 * gimple-pretty-print.c
6335 (debug (gimple_statement_d &)): New.
6336 (debug (gimple_statement_d *)): New.
6337 * gimple-pretty-print.h
6338 (extern debug (gimple_statement_d &)): New.
6339 (extern debug (gimple_statement_d *)): New.
6341 (debug (ira_allocno_copy &)): New.
6342 (debug (ira_allocno_copy *)): New.
6343 (debug (ira_allocno &)): New.
6344 (debug (ira_allocno *)): New.
6346 (extern debug (ira_allocno_copy &)): New.
6347 (extern debug (ira_allocno_copy *)): New.
6348 (extern debug (ira_allocno &)): New.
6349 (extern debug (ira_allocno *)): New.
6351 (debug (live_range &)): New.
6352 (debug (live_range *)): New.
6354 (debug (lra_live_range &)): New.
6355 (debug (lra_live_range *)): New.
6357 (debug (lra_live_range &)): New.
6358 (debug (lra_live_range *)): New.
6360 (debug (omega_pb_d &)): New.
6361 (debug (omega_pb_d *)): New.
6363 (extern debug (omega_pb_d &)): New.
6364 (extern debug (omega_pb_d *)): New.
6366 (debug (const rtx_def &)): New.
6367 (debug (const rtx_def *)): New.
6369 (debug_tree (tree): Move within file.
6370 (debug_raw (const tree_node &)): New.
6371 (debug_raw (const tree_node *)): New.
6372 (dump_tree_via_hooks (const tree_node *, int)): New.
6373 (debug (const tree_node &)): New.
6374 (debug (const tree_node *)): New.
6375 (debug_verbose (const tree_node &)): New.
6376 (debug_verbose (const tree_node *)): New.
6377 (debug_head (const tree_node &)): New.
6378 (debug_head (const tree_node *)): New.
6379 (debug_body (const tree_node &)): New.
6380 (debug_body (const tree_node *)): New.
6381 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6382 (debug (vec<tree, va_gc> &)): New.
6383 (debug (vec<tree, va_gc> *)): New.
6385 (extern debug (const rtx_def &)): New.
6386 (extern debug (const rtx_def *)): New.
6388 (debug_raw (simple_bitmap_def &)): New.
6389 (debug_raw (simple_bitmap_def *)): New.
6390 (debug (simple_bitmap_def &)): New.
6391 (debug (simple_bitmap_def *)): New.
6393 (extern debug (simple_bitmap_def &)): New.
6394 (extern debug (simple_bitmap_def *)): New.
6395 (extern debug_raw (simple_bitmap_def &)): New.
6396 (extern debug_raw (simple_bitmap_def *)): New.
6398 (debug (vinsn_def &)): New.
6399 (debug (vinsn_def *)): New.
6400 (debug_verbose (vinsn_def &)): New.
6401 (debug_verbose (vinsn_def *)): New.
6402 (debug (expr_def &)): New.
6403 (debug (expr_def *)): New.
6404 (debug_verbose (expr_def &)): New.
6405 (debug_verbose (expr_def *)): New.
6406 (debug (vec<rtx> &)): New.
6407 (debug (vec<rtx> *)): New.
6409 (extern debug (vinsn_def &)): New.
6410 (extern debug (vinsn_def *)): New.
6411 (extern debug_verbose (vinsn_def &)): New.
6412 (extern debug_verbose (vinsn_def *)): New.
6413 (extern debug (expr_def &)): New.
6414 (extern debug (expr_def *)): New.
6415 (extern debug_verbose (expr_def &)): New.
6416 (extern debug_verbose (expr_def *)): New.
6417 (extern debug (vec<rtx> &)): New.
6418 (extern debug (vec<rtx> *)): New.
6420 (_list_iter_cond_expr): Make inline instead of static.
6422 (debug (sreal &)): New.
6423 (debug (sreal *)): New.
6425 (extern debug (sreal &)): New.
6426 (extern debug (sreal *)): New.
6428 (extern debug_raw (const tree_node &)): New.
6429 (extern debug_raw (const tree_node *)): New.
6430 (extern debug (const tree_node &)): New.
6431 (extern debug (const tree_node *)): New.
6432 (extern debug_verbose (const tree_node &)): New.
6433 (extern debug_verbose (const tree_node *)): New.
6434 (extern debug_head (const tree_node &)): New.
6435 (extern debug_head (const tree_node *)): New.
6436 (extern debug_body (const tree_node &)): New.
6437 (extern debug_body (const tree_node *)): New.
6438 (extern debug (vec<tree, va_gc> &)): New.
6439 (extern debug (vec<tree, va_gc> *)): New.
6441 (debug (struct loop &)): New.
6442 (debug (struct loop *)): New.
6443 (debug_verbose (struct loop &)): New.
6444 (debug_verbose (struct loop *)): New.
6445 * tree-dump.c: Add header dependence.
6447 (extern debug (struct loop &)): New.
6448 (extern debug (struct loop *)): New.
6449 (extern debug_verbose (struct loop &)): New.
6450 (extern debug_verbose (struct loop *)): New.
6452 (debug (data_reference &)): New.
6453 (debug (data_reference *)): New.
6454 (debug (vec<data_reference_p> &)): New.
6455 (debug (vec<data_reference_p> *)): New.
6456 (debug (vec<ddr_p> &)): New.
6457 (debug (vec<ddr_p> *)): New.
6459 (extern debug (data_reference &)): New.
6460 (extern debug (data_reference *)): New.
6461 (extern debug (vec<data_reference_p> &)): New.
6462 (extern debug (vec<data_reference_p> *)): New.
6463 (extern debug (vec<ddr_p> &)): New.
6464 (extern debug (vec<ddr_p> *)): New.
6466 (debug (pt_solution &)): New.
6467 (debug (pt_solution *)): New.
6469 (extern debug (pt_solution &)): New.
6470 (extern debug (pt_solution *)): New.
6472 (debug (_var_map &)): New.
6473 (debug (_var_map *)): New.
6474 (debug (tree_live_info_d &)): New.
6475 (debug (tree_live_info_d *)): New.
6477 (extern debug (_var_map &)): New.
6478 (extern debug (_var_map *)): New.
6479 (extern debug (tree_live_info_d &)): New.
6480 (extern debug (tree_live_info_d *)): New.
6482 2013-03-28 Jan Hubicka <jh@suse.cz>
6484 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6486 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6488 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6489 record only when desired or required.
6491 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6493 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6494 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6496 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6498 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6499 (*andsi3_compare0_uxtw): New pattern.
6500 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6501 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6503 2013-03-28 Jan Hubicka <jh@suse.cz>
6505 * data-streamer-in.c (streamer_read_gcov_count): New function.
6506 * gimple-streamer-out.c: Include value-prof.h.
6507 (output_gimple_stmt): Output histogram.
6508 (output_bb): Use streamer_write_gcov_count.
6509 * value-prof.c: Include data-streamer.h
6510 (dump_histogram_value): Add HIST_TYPE_MAX.
6511 (stream_out_histogram_value): New function.
6512 (stream_in_histogram_value): New function.
6513 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6514 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6515 * data-streamer-out.c (streamer_write_gcov_count): New function.
6516 (streamer_write_gcov_count_stream): New function.
6517 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6518 (lto_output_node): Likewise.
6519 (input_node, input_edge): Likewise.
6520 * lto-streamer-out.c (output_cfg): Update streaming.
6521 * lto-streamer-in.c (input_cfg): Likewise.
6522 * data-streamer.h (streamer_write_gcov_count,
6523 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6524 * gimple-streamer-in.c: Include value-prof.h
6525 (input_gimple_stmt): Input histograms.
6526 (input_bb): Update profile streaming.
6528 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6530 * genmodes.c (emit_max_int): New function.
6531 (emit_insn_modes_h): Added call to emit_max_function.
6532 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6534 * machmode.def: Fixed comment.
6536 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6538 * combine.c (try_combine): Removed useless assert.
6539 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6541 2013-03-28 Marek Polacek <polacek@redhat.com>
6542 Richard Biener <rguenther@suse.de>
6544 PR tree-optimization/56695
6545 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6546 build signed result of a vector comparison.
6547 * tree-cfg.c (verify_gimple_comparison): Check that a result
6548 of a vector comparison has signed type.
6550 2013-03-28 Richard Biener <rguenther@suse.de>
6552 PR tree-optimization/37021
6553 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6554 do not restrict gaps between groups.
6555 * tree-vect-stmts.c (vectorizable_load): Properly account for
6556 a gap between groups.
6558 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6560 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6561 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6564 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6566 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6567 * doc/extend.texi (Named Address Spaces): Ditto.
6568 (Variable Attributes): Ditto.
6570 2013-03-27 Kai Tietz <ktietz@redhat.com>
6572 * config.build: Add support for cygwin x64 target.
6573 * config.gcc: Likewise.
6574 * config.host: Likewise.
6575 * configure.ac: Likewise
6576 * configure: Regenerated.
6578 2013-03-27 Kai Tietz <ktietz@redhat.com>
6580 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6581 * config/i386/t-cygwin-w64: New file.
6582 * config/i386/cygwin-w64.h: New file.
6583 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6584 and add support for x64-cygwin target.
6585 (CPP_SPEC): Likewise.
6586 (CXX_WRAP_SPEC_LIST): Undefine before define.
6587 (LIBGCJ_SONAME): Use 15 as version.
6589 2013-03-27 Richard Biener <rguenther@suse.de>
6591 PR tree-optimization/56716
6592 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6593 dumping for ref nodes.
6595 2013-03-27 Martin Jambor <mjambor@suse.cz>
6597 PR tree-optimization/55334
6598 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6599 restricted pointers to arrays.
6601 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6603 * Makefile.in (.SUFFIXES): Add .cc.
6604 (.c.o): Apply same recipe for implicit rule .cc.o.
6606 2013-03-27 Richard Biener <rguenther@suse.de>
6608 PR tree-optimization/37021
6609 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6610 REALPART/IMAGPART_EXPRs around the supported refs.
6611 * tree-ssa-structalias.c (find_func_aliases): Assume that
6612 floating-point values are not used to transfer pointers.
6614 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6616 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6617 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6618 * doc/tm.texi: Regenerate.
6619 * targhooks.h (default_has_ifunc_p): New.
6620 * targhooks.c (default_has_ifunc_p): Ditto.
6621 * config/linux-protos.h: New file.
6622 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6623 this hook for linux which disables support of indirect functions in
6625 * config/linux-android.c: New file.
6626 * config/t-linux-android.c: Ditto.
6627 * config.gcc: Added new object file linux-android.o.
6628 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6629 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6630 * varasm.c (do_assemble_alias): Likewise.
6631 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6632 doesn't support indirect functions.
6633 * configure: Regenerate.
6635 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6638 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6639 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6642 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6644 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6646 2013-03-27 Terry Guo <terry.guo@arm.com>
6648 * config/arm/arm-cores.def: Added core cortex-r7.
6649 * config/arm/arm-tune.md: Regenerated.
6650 * config/arm/arm-tables.opt: Regenerated.
6651 * doc/invoke.texi: Added entry for core cortex-r7.
6653 2013-03-27 Walter Lee <walt@tilera.com>
6655 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6656 double-decrement of next_scratch_regno.
6658 2013-03-27 Walter Lee <walt@tilera.com>
6660 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6662 (insn_v1mulus): Ditto.
6663 (insn_v2muls): Ditto.
6665 2013-03-27 Walter Lee <walt@tilera.com>
6667 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6668 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6670 2013-03-27 Walter Lee <walt@tilera.com>
6672 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6673 (*sibcall_value): Ditto.
6675 2013-03-27 Walter Lee <walt@tilera.com>
6677 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6678 (insn_mnz_v8qi): ... this ...
6679 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6681 (insn_v<n>mnz): Replaced by ...
6682 (insn_v1mnz): ... this ...
6683 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6685 (insn_mz_<mode>): Replaced by ...
6686 (insn_mz_v8qi): ... this ...
6687 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6689 (insn_v<n>mz): Replaced by ...
6690 (insn_v1mz): ... this ...
6691 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6694 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6696 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6698 2013-03-26 Roland McGrath <mcgrathr@google.com>
6700 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6701 than fprintf with a non-constant, non-format string.
6703 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6705 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6706 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6707 operand 0 predicate.
6708 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6709 attribute. Use general_x64nomem_operand as operand 1 predicate.
6710 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6711 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6712 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6713 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6714 (mov<mode>_insv_1): Remove expander. Merge insn with
6715 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6716 Use general_x64nomem_operand as operand 1 predicate.
6717 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6718 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6719 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6720 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6721 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6722 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6723 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6724 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6725 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6726 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6727 (general_x64nomem_operand): Ditto.
6729 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6731 * config/rtems.opt: Add -pthread option.
6733 2013-03-26 Richard Biener <rguenther@suse.de>
6735 * alias.c (find_base_term): Avoid redundant and not used recursion.
6736 (base_alias_check): Get the initial base term from the caller.
6737 (true_dependence_1): Compute and pass base terms to base_alias_check.
6738 (write_dependence_p): Likewise.
6739 (may_alias_p): Likewise.
6741 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6743 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6744 PC-relative load in SI modes and above only.
6746 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6748 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6749 * config/arm/iwmmxt.md (WCGR0): Update.
6750 (WCGR1, WCGR2, WCGR3): Likewise.
6752 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6754 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6755 Use x64 and nox64 isa attributes.
6757 2013-03-26 Richard Biener <rguenther@suse.de>
6759 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6760 alignment computations and rely on get_object_alignment_1
6761 for the !TYPE_P case.
6762 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6764 2013-03-26 Walter Lee <walt@tilera.com>
6766 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6767 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6769 2013-03-25 Jeff Law <law@redhat.com>
6771 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6772 check for INTEGRAL_TYPE_P that was missing due to checking in
6773 wrong version of prior patch.
6775 2013-03-25 Walter Lee <walt@tilera.com>
6777 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6778 TILEGX_INSN_SHUFFLEBYTES1.
6779 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6781 (tilegx_builtins): Ditto.
6782 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6784 2013-03-25 Walter Lee <walt@tilera.com>
6786 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6787 (floatunssisf2): New pattern.
6788 (floatsidf2): New pattern.
6789 (floatunssidf2): New pattern.
6791 2013-03-25 Walter Lee <walt@tilera.com>
6793 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6794 tests for constraint J, K, N, P.
6796 2013-03-25 Walter Lee <walt@tilera.com>
6798 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6799 Use indirect/pcrel encoding.
6800 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6803 2013-03-25 Steve Ellcey <sellcey@mips.com>
6805 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6806 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6807 * config/mips/mips.c (mips_option_override): Set IMADD default.
6808 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6809 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6810 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6811 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6812 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6814 2013-03-25 Jeff Law <law@redhat.com>
6816 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6817 slightly to avoid creating and folding useless trees. Simplify
6818 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6820 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
6822 * config/i386/i386.md (*zero_extendsidi2): Merge with
6823 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6824 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6825 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6826 targets. Clarify comment.
6828 2013-03-25 Martin Jambor <mjambor@suse.cz>
6830 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6831 pass-through jump functions differently.
6832 (ipa_read_jump_function): Likewise. Also use setter functions to set
6835 2013-03-25 Martin Jambor <mjambor@suse.cz>
6837 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6838 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6840 (ipa_get_indirect_edge_target): New function.
6841 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6842 ipa_get_indirect_edge_target. Update all callers.
6843 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6844 ipa_get_indirect_edge_target_1 instead of calling
6845 ipa_get_indirect_edge_target.
6846 (create_specialized_node): Pass aggvlas to
6847 ipcp_discover_new_direct_edges.
6849 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6851 * config/arm/arm.md (f_sels, f_seld): New types.
6852 (*cmov<mode>): New pattern.
6853 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6856 2013-03-25 Kai Tietz <ktietz@redhat.com>
6858 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6859 POSIX-printf for mingw-hosted builds.
6861 2013-03-25 Richard Biener <rguenther@suse.de>
6864 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6865 must-not-throw stmt location.
6867 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6869 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6870 Emit load-acquire versions when acq is true.
6871 (arm_emit_store_exclusive): Add rel parameter.
6872 Emit store-release versions when rel is true.
6873 (arm_split_compare_and_swap): Use acquire-release instructions
6875 of barriers when appropriate.
6876 (arm_split_atomic_op): Likewise.
6877 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6878 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6879 (VUNSPEC_SLX): Likewise.
6880 (VUNSPEC_LDA): Likewise.
6881 (VUNSPEC_STL): Likewise.
6882 * config/arm/sync.md (atomic_load<mode>): New pattern.
6883 (atomic_store<mode>): Likewise.
6884 (arm_load_acquire_exclusive<mode>): Likewise.
6885 (arm_load_acquire_exclusivesi): Likewise.
6886 (arm_load_acquire_exclusivedi): Likewise.
6887 (arm_store_release_exclusive<mode>): Likewise.
6889 2013-03-25 Catherine Moore <clm@codesourcery.com>
6891 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6892 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6893 * config/mip/predicates.md (lwsp_swsp_operand,
6894 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6895 sb16_operand, db4_operand, db7_operand, ib3_operand,
6896 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6897 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6898 andi16_operand): New predicates.
6899 * config/mips/mips.md (compression): New attribute.
6900 (enabled): New attribute.
6901 (length): Consider compression in computing length.
6902 (shift_compression): New code attribute.
6903 (*add<mode>3): New operands. Record compression.
6904 (sub<mode>3): Likewise.
6905 (one_cmpl<mode>2): Likewise.
6906 (*and<mode>3): Likewise.
6907 (*ior<mode>3): Likewise.
6908 (unnamed pattern for xor): Likewise.
6909 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6910 (*<optab><mode>3): Likewise.
6911 (*mov<mode>_internal: Likewise.
6912 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6913 (mips_unsigned_immediate_p): New.
6914 (umips_lwsp_swsp_address_p): New.
6915 (m16_based_address_p): New.
6916 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6917 (mips_unsigned_immediate_p): New prototype.
6918 (lwsp_swsp_address_p): New prototype.
6919 (m16_based_address_p): New prototype.
6920 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6921 (mips_signed_immediate_p): New function.
6922 (m16_based_address_p): New function.
6923 (lwsp_swsp_address_p): New function.
6924 (mips_print_operand_punctuation): Recognize short delay slot insns
6925 for microMIPS.add<mode>3"
6927 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6930 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6931 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6933 2013-03-25 Richard Biener <rguenther@suse.de>
6935 PR tree-optimization/56689
6936 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6939 2013-03-25 Richard Biener <rguenther@suse.de>
6941 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6943 (memory_references): Likewise.
6944 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6945 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6946 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6947 (gather_mem_refs_in_loops): Fold into ...
6948 (analyze_memory_references): ... this. Move initialization
6949 to tree_ssa_lim_initialize.
6950 (fill_always_executed_in): Rename to ...
6951 (fill_always_executed_in_1): ... this.
6952 (fill_always_executed_in): Move contains_call computation to
6953 this new function from ...
6954 (tree_ssa_lim_initialize): ... here.
6955 (tree_ssa_lim): Call fill_always_executed_in.
6957 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6959 * postreload.c (reload_combine): Fix code detecting returns.
6961 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6963 * function.c (emit_use_return_register_into_block): On cc0 targets,
6964 do not emit the sequence between cc0 setter and user.
6966 2013-03-25 Kai Tietz <ktietz@redhat.com>
6968 * config/i386/predicates.md (local_symbolic_operand): Interpret
6969 dll-imported symbols as none-local.
6971 2013-03-25 Richard Biener <rguenther@suse.de>
6973 * tree-ssa-loop-im.c (struct depend): Remove.
6974 (struct lim_aux_data): Make depends a vec of gimples.
6975 (free_lim_aux_data): Adjust.
6976 (add_dependency): Likewise.
6977 (set_level): Likewise.
6979 2013-03-25 Richard Biener <rguenther@suse.de>
6982 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6983 the pointer returned by calls with ECF_MALLOC set.
6985 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6987 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6989 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
6991 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
6992 using MMXMODE mode iterator.
6993 (*move<mode>_internal): Merge with *movv2sf_internal and
6994 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6996 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6998 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6999 (record_last_mem_set_info): Likewise.
7001 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7002 of XNEWVEC followed by memset.
7003 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7005 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7007 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7008 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7009 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7010 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7011 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7012 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7013 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7014 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7015 BARRIER_P instead of GET_CODE.
7017 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7019 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7020 inaccuracy in the probing code.
7022 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7023 (ctrapdi4): Likewise.
7025 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7027 * calls.c (expand_call): Add missing guard to code handling return
7028 of non-BLKmode structures in MSB.
7029 * function.c (expand_function_end): Likewise.
7031 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7033 * combine.c (try_combine): Adjust comment. Do not add the set of
7034 insn #0 if the destination indirectly is set or dies in insn #2.
7035 Tidy up code to distribute a new note.
7037 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7039 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7040 also for alternatives 16 and 17.
7042 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7044 * config/i386/sse.md (*mov<mode>_internal): Merge with
7045 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7046 Emit insn template depending on type attribute. Use
7047 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7048 movd instead of movq mnemonic for interunit moves. Rewrite mode
7049 attribute calculation. Remove unit attribute calculation.
7050 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7051 Set prefix_data16 attribute for DImode ssemov types.
7052 Use Ym instead of y for SSE-MMX conversion alternatives.
7053 Reorder operand constraints.
7055 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7057 * df.h (df_insn_delete): Adjust prototype.
7058 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7059 and let it decide whether mark the basic block dirty.
7060 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7061 * df-scan.c (df_insn_info_delete): New helper function, split
7062 off from df_insn_delete.
7063 (df_scan_free_bb_info): Use it.
7064 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7066 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7067 that the insn is actually an insn and it has a non-NULL basic block.
7068 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7070 2013-03-22 Richard Biener <rguenther@suse.de>
7072 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7074 (mem_ref_alloc): Do not allocate them.
7075 (refs_independent_p): Do not query or maintain a cache.
7077 2013-03-22 Richard Biener <rguenther@suse.de>
7079 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7080 (gather_mem_refs_in_loops): Do not compute it.
7081 (analyze_memory_references): Do not allocate it.
7082 (tree_ssa_lim_finalize): Do not free it.
7083 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7085 2013-03-22 Richard Biener <rguenther@suse.de>
7087 * is-a.h (as_a): Use gcc_checking_assert.
7089 2013-03-22 Ian Bolton <ian.bolton@arm.com>
7091 * config/aarch64/aarch64.c (aarch64_print_operand): New
7092 format specifier for printing a constant in hex.
7093 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7094 format specifier for printing second operand.
7096 2013-03-22 Richard Biener <rguenther@suse.de>
7098 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7100 (gather_mem_refs_in_loops): Perform store accumulation here.
7101 (create_vop_ref_mapping_loop): Remove.
7102 (create_vop_ref_mapping): Likewise.
7103 (analyze_memory_references): Initialize refs_stored_in_loop.
7104 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7105 (record_indep_loop): Remove.
7106 (record_dep_loop): New function.
7107 (ref_indep_loop_p_1): Adjust to only walk over references
7108 in the loop, not its subloops.
7109 (ref_indep_loop_p): Rename to ...
7110 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7111 maintaining a more fine-grained cache.
7112 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7113 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7115 2013-03-22 Richard Biener <rguenther@suse.de>
7117 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7118 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7119 aggregate mem_ref_loc.
7120 (free_mem_ref_locs): Inline into ...
7121 (memref_free): ... this and adjust.
7122 (mem_ref_alloc): Adjust.
7123 (mem_ref_locs_alloc): Remove.
7124 (record_mem_ref_loc): Adjust.
7125 (get_all_locs_in_loop): Rewrite into ...
7126 (for_all_locs_in_loop): ... this iterator.
7127 (rewrite_mem_ref_loc): New functor.
7128 (rewrite_mem_refs): Use for_all_locs_in_loop.
7129 (sm_set_flag_if_changed): New functor.
7130 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7131 (ref_always_accessed): New functor.
7132 (ref_always_accessed_p): Use for_all_locs_in_loop.
7134 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7136 * tree-pass.h (PROP_gimple_lvec): New.
7137 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7138 (init_optimization_passes): Move pass_lower_vector.
7139 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7141 (pass_lower_vector): Provide PROP_gimple_lvec.
7142 (pass_lower_vector_ssa): Likewise.
7143 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7145 2013-03-21 Mark Wielaard <mjw@redhat.com>
7147 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7149 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7151 * config/i386/i386.md (*movdi_internal): Disparage slightly
7152 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7153 conversion alternatives.
7155 2013-03-21 Jakub Jelinek <jakub@redhat.com>
7158 * diagnostic.def (DK_WERROR): New kind.
7159 * diagnostic.h (werrorcount): Define.
7160 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7161 promoted to DK_ERROR, increment DK_WERROR counter instead of
7163 * toplev.c (toplev_main): Call print_ignored_options even if
7164 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7165 even if just werrorcount is non-zero.
7168 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7170 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7171 (string_cst_pool_decl): New function.
7172 (optimize_one_addr_into_implicit_ptr): New function.
7173 (resolve_addr_in_expr): Optimize DWARF location expression
7174 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7175 which doesn't live in memory, but has DW_AT_location or
7176 DW_AT_const_value, or refers to a string literal, into
7177 DW_OP_GNU_implicit_pointer.
7178 (optimize_location_into_implicit_ptr): New function.
7179 (resolve_addr): If removing DW_AT_location of a variable because
7180 it was DW_OP_addr of address of the variable, but the variable doesn't
7181 live in memory, try to emit const value attribute for the initializer.
7183 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7185 * tree.h (VECTOR_TYPE_P): New macro.
7186 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7188 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7189 VEC_COND_EXPR cannot be lvalues.
7190 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7192 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7194 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7195 Restrict the transformation to equal modes.
7197 2013-03-21 Richard Biener <rguenther@suse.de>
7199 PR tree-optimization/39326
7200 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7201 (MEM_ANALYZABLE): Adjust.
7202 (record_mem_ref_loc): Move bitmap ops ...
7203 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7204 unanalyzable refs, do not record locations for it.
7205 (analyze_memory_references): Allocate ref zero as shared
7207 (refs_independent_p): Do not test for unanalyzed mems here.
7208 (ref_indep_loop_p_1): Special-case disambiguation against
7210 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7212 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7214 * config/arm/arm-protos.h (tune_params): Add
7215 prefer_neon_for_64bits field.
7216 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7217 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7218 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7219 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7220 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7221 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7222 (arm_option_override): Handle -mneon-for-64bits new option.
7223 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7224 (prefer_neon_for_64bits): Declare new variable.
7225 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7226 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7227 (arch_enabled): Handle new arch types. Remove support for onlya8
7229 (one_cmpldi2): Use new arch names.
7230 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7231 * config/arm/arm.opt (mneon-for-64bits): Add option.
7232 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7233 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7234 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7236 * doc/invoke.texi (-mneon-for-64bits): Document.
7238 2013-03-21 Richard Biener <rguenther@suse.de>
7240 PR tree-optimization/39326
7241 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7242 (sort_bbs_in_loop_postorder_cmp): New function.
7243 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7245 2013-03-21 Richard Biener <rguenther@suse.de>
7247 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7248 (vect_insert_into_interleaving_chain): Likewise.
7249 (vect_drs_dependent_in_basic_block): Inline ...
7250 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7252 (vect_analyze_data_ref_dependence): ... here. Simplify.
7253 (vect_check_interleaving): Simplify.
7254 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7255 (vect_slp_analyze_data_ref_dependences): ... this new function.
7256 (dr_group_sort_cmp): New function.
7257 (vect_analyze_data_ref_accesses): Compute data-reference groups
7258 here instead of in vect_analyze_data_ref_dependence. Use
7259 a more efficient algorithm.
7260 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7261 vect_slp_analyze_data_ref_dependences. Call
7262 vect_analyze_data_ref_accesses earlier.
7263 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7264 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7265 (vect_slp_analyze_data_ref_dependences): New prototype.
7267 2013-03-21 Richard Biener <rguenther@suse.de>
7269 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7270 ref is stored in the loop.
7271 (find_refs_for_sm): Walk only over all stores.
7272 (store_motion_loop): Allocate from lim_bitmap_obstack.
7273 (store_motion): Likewise.
7275 2013-03-21 Richard Biener <rguenther@suse.de>
7277 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7278 Update virtual SSA form.
7280 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7282 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7283 * configure: Regenerate.
7284 * config.in: Regenerate.
7285 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7286 if !HAVE_LD_EH_FRAME_CIEV3.
7288 2013-03-21 Richard Biener <rguenther@suse.de>
7290 * tree-cfg.c (verify_expr_no_block): New function.
7291 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7292 nor DECL_VALUE_EXPR have locations with associated blocks.
7293 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7294 (clear_unused_block_pointer): Remove code dealing with
7295 blocks in DECL_DEBUG_EXPR locations.
7297 2013-03-21 Richard Biener <rguenther@suse.de>
7299 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7300 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7301 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7302 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7303 instead of DECL_DEBUG_EXPR_IS_FROM.
7304 * gimplify.c (gimplify_modify_expr): Likewise.
7305 * tree-cfg.c (verify_expr_location_1): Likewise.
7306 * tree-complex.c (create_one_component_var): Likewise.
7307 * tree-sra.c (create_access_replacement): Likewise.
7308 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7309 (clear_unused_block_pointer): Likewise.
7310 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7311 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7312 * var-tracking.c (var_debug_decl): Likewise.
7313 (track_expr_p): Likewise.
7314 * tree-inline.c (add_local_variables): Likewise. Set
7315 DECL_HAS_DEBUG_EXPR_P after copying it.
7316 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7317 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7319 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7322 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7323 * configure: Regenerate.
7324 * config.in: Regenerate.
7325 * config/i386/i386.md (*movdf_internal): Use
7326 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7327 movd instead of movq mnemonic for interunit moves.
7328 (*movdi_internal): Ditto.
7330 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7332 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7333 (abd<mode>_3): New pattern.
7334 (aba<mode>_3): New pattern.
7335 (fabd<mode>_3): New pattern.
7337 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7339 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7340 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7341 occurrence of REGISTER_PREFIX as its empty string.
7343 2013-03-20 Jeff Law <law@redhat.com>
7345 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7346 addititional equivalences for equality comparisons between an SSA_NAME
7347 and a constant where the SSA_NAME was set from a widening conversion.
7349 2013-03-20 Walter Lee <walt@tilera.com>
7351 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7353 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7355 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7356 depending on type attribute.
7357 (*movti_internal): Ditto.
7358 (*movtf_internal): Ditto.
7359 (*movxf_internal): Ditto.
7360 (*movdf_internal): Ditto.
7361 (*movsf_internal): Ditto.
7363 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7365 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7366 maybe_vex for sselog1 and ssemov types.
7367 (*movdi_internal): Reorder operand constraints.
7368 (*movsi_internal): Ditto. Set prefix attribute to
7369 maybe_vex for sselog1 and ssemov types.
7370 (*movtf_internal): Set prefix attribute to maybe_vex
7371 for sselog1 and ssemov types.
7372 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7373 DImode ssemov types. Reorder operand constraints.
7374 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7375 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7376 attribute for SImode ssemov types. Reorder operand constraints.
7378 2013-03-20 Martin Jambor <mjambor@suse.cz>
7380 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7381 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7383 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7385 * config/rs6000/predicates.md (indexed_address, update_address_mem
7386 update_indexed_address_mem): New predicates.
7387 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7388 attribute for load/store instructions.
7389 * config/rs6000/dfp.md (movsd_store): Likewise.
7390 (movsd_load): Likewise.
7391 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7392 (unnamed HI->DI extend define_insn): Likewise.
7393 (unnamed SI->DI extend define_insn): Likewise.
7394 (unnamed QI->SI extend define_insn): Likewise.
7395 (unnamed QI->HI extend define_insn): Likewise.
7396 (unnamed HI->SI extend define_insn): Likewise.
7397 (unnamed HI->SI extend define_insn): Likewise.
7398 (extendsfdf2_fpr): Likewise.
7399 (movsi_internal1): Likewise.
7400 (movsi_internal1_single): Likewise.
7401 (movhi_internal): Likewise.
7402 (movqi_internal): Likewise.
7403 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7404 attribute for load/store instructions.
7405 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7407 (mov<mode>_softfloat): Likewise.
7408 (mov<mode>_hardfloat32): Likewise.
7409 (mov<mode>_hardfloat64): Likewise.
7410 (mov<mode>_softfloat64): Likewise.
7411 (movdi_internal32): Likewise.
7412 (movdi_internal64): Likewise.
7413 (probe_stack_<mode>): Likewise.
7415 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7417 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7418 floating point, and decimal floating point to reload iterator.
7420 * config/rs6000/constraints.md (wl constraint): New constraints to
7421 return FLOAT_REGS if certain options are used to reduce the number
7422 of separate patterns that exist in the file.
7423 (wx constraint): Likewise.
7424 (wz constraint): Likewise.
7426 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7427 -mdebug=reg, print wg, wl, wx, and wz constraints.
7428 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7429 Initialize the reload functions for 64-bit binary/decimal floating
7431 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7432 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7433 create the buffer on the stack to overcome not having a 32-bit
7435 (rs6000_emit_move): Likewise.
7436 (rs6000_secondary_memory_needed_rtx): Likewise.
7437 (rs6000_alloc_sdmode_stack_slot): Likewise.
7438 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7439 via xxlxor, just like DFmode 0.0.
7441 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7442 define as 1 if we are running on a power7 or newer.
7443 (enum r6000_reg_class_enum): Add new constraints.
7445 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7446 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7447 with other moves by using conditional constraits (wg). Use LFIWZX
7448 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7449 (movsd splitter): Likewise.
7450 (movsd_hardfloat): Likewise.
7451 (movsd_softfloat): Likewise.
7453 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7454 binary and decimal floating point moves.
7455 (fmove_ok): New attributes to combine binary and decimal floating
7456 point moves, and to combine power6x (mfpgpr) moves along normal
7458 (real_value_to_target): Likewise.
7465 (movsf): Combine binary and decimal floating point moves. Combine
7466 power6x (mfpgpr) moves with other moves by using conditional
7467 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7468 (mov<mode> for SFmode/SDmode); Likewise.
7469 (SFmode/SDmode splitters): Likewise.
7470 (movsf_hardfloat): Likewise.
7471 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7472 (movsf_softfloat): Likewise.
7473 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7475 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7476 wx and wz constraints.
7478 * config/rs6000/constraints.md (wg constraint): New constraint to
7479 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7481 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7484 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7485 -mdebug=reg, print wg, wl, wx, and wz constraints.
7486 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7487 Initialize the reload functions for 64-bit binary/decimal floating
7489 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7490 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7491 create the buffer on the stack to overcome not having a 32-bit
7493 (rs6000_emit_move): Likewise.
7494 (rs6000_secondary_memory_needed_rtx): Likewise.
7495 (rs6000_alloc_sdmode_stack_slot): Likewise.
7496 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7497 via xxlxor, just like DFmode 0.0.
7499 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7500 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7501 with other moves by using conditional constraits (wg). Use LFIWZX
7502 and STFIWX for loading SDmode on power7.
7503 (movdd splitters): Likewise.
7504 (movdd_hardfloat32): Likewise.
7505 (movdd_softfloat32): Likewise.
7506 (movdd_hardfloat64_mfpgpr): Likewise.
7507 (movdd_hardfloat64): Likewise.
7508 (movdd_softfloat64): Likewise.
7510 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7511 64-bit binary and decimal floating point moves.
7512 (FMOVE64X): Likewise.
7513 (movdf): Combine 64-bit binary and decimal floating point moves.
7514 Combine power6x (mfpgpr) moves with other moves by using
7515 conditional constraits (wg).
7516 (mov<mode> for DFmode/DDmode): Likewise.
7517 (DFmode/DDmode splitters): Likewise.
7518 (movdf_hardfloat32): Likewise.
7519 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7520 (movdf_softfloat32): Likewise.
7521 (movdf_hardfloat64_mfpgpr): Likewise.
7522 (movdf_hardfloat64): Likewise.
7523 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7524 (movdf_softfloat64): Likewise.
7525 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7526 (reload_<mode>_load): Move to later in the file so they aren't in
7527 the middle of the floating point move insns.
7528 (reload_<mode>_store): Likewise.
7530 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7533 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7534 constraint if -mdebug=reg.
7535 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7536 Enable using dd reload support if needed.
7538 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7539 binary and decimal floating point moves in rs6000.md.
7540 (movtd_internal): Likewise.
7542 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7543 decimal floating point moves.
7545 (movtf_internal): Likewise.
7546 (mov<mode>_internal, TDmode/TFmode): Likewise.
7547 (movtf_softfloat): Likewise.
7548 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7550 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7551 movdi_internal64, using wg constraint for move direct operations.
7552 (movdi_internal64): Likewise.
7554 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7555 MODES_TIEABLE_P for selected modes. Print the numerical value of
7556 the various virtual registers. Use GPR/FPR first/last values,
7557 instead of hard coding the register numbers. Print which modes
7558 have reload functions registered.
7559 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7560 settings before/after setting cpu, target and subtarget settings.
7561 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7562 and for secondary reload failures in rs6000_secondary_reload_inner.
7563 (rs6000_secondary_reload_fail): Likewise.
7564 (rs6000_secondary_reload_inner): Likewise.
7566 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7567 macros for first/last GPR and FPR registers.
7568 (LAST_GPR_REGNO): Likewise.
7569 (FIRST_FPR_REGNO): Likewise.
7570 (LAST_FPR_REGNO): Likewise.
7572 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7573 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7574 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7575 (vcond<mode><mode>): Likewise.
7576 (vcondu<mode><mode>): Likewise.
7577 (vector_gtu<mode>): Likewise.
7578 (vector_gte<mode>): Likewise.
7579 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7580 to prevent the compiler from converting DImode operations to TImode.
7581 (ior<mode>3): Likewise.
7582 (and<mode>3): Likewise.
7583 (one_cmpl<mode>2): Likewise.
7584 (nor<mode>3): Likewise.
7585 (andc<mode>3): Likewise.
7587 * config/rs6000/constraints.md (wt constraint): New constraint
7588 that returns VSX_REGS if TImode is allowed in VSX registers.
7590 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7593 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7594 similar to TImode, but it is restricted to being in the GPRs.
7596 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7597 TImode to occupy a single VSX register.
7599 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7600 -mvsx-timode for power7/power8.
7601 (power7 cpu): Likewise.
7602 (power8 cpu): Likewise.
7604 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7605 sure that TFmode/TDmode take up two registers if they are ever
7606 allowed in the upper VSX registers.
7607 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7609 (rs6000_init_hard_regno_mode_ok): Likewise.
7610 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7611 constraint. Print if LRA is turned on.
7612 (rs6000_option_override_internal): Give an error if -mvsx-timode
7613 and VSX is not enabled.
7614 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7615 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7616 to reg+offset addressing. Use PTImode when checking offset
7617 addresses for validity.
7618 (reg_offset_addressing_ok_p): Likewise.
7619 (rs6000_legitimate_offset_address_p): Likewise.
7620 (rs6000_legitimize_address): Likewise.
7621 (rs6000_legitimize_reload_address): Likewise.
7622 (rs6000_legitimate_address_p): Likewise.
7623 (rs6000_eliminate_indexed_memrefs): Likewise.
7624 (rs6000_emit_move): Likewise.
7625 (rs6000_secondary_reload): Likewise.
7626 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7627 reloads to fpr registers to continue to use reg+offset addressing,
7628 but 64-bit reloads to altivec registers need reg+reg addressing.
7629 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7630 it. Treat LO_SUM like a PLUS operation.
7631 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7632 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7633 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7634 registers to share a register with a smaller sized type, since VSX
7635 puts scalars in the upper 64-bits.
7636 (print_operand): Add support for PTImode.
7637 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7638 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7639 registers, but don't have arithmetic support.
7640 (rs6000_memory_move_cost): Add test for VSX.
7641 (rs6000_opt_masks): Add -mvsx-timode.
7643 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7646 (VSr): Use wt constraint for TImode.
7647 (VSv): Drop TImode support.
7648 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7649 (vsx_movti_64bit): Likewise.
7650 (vsx_movti_32bit): Likewise.
7651 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7652 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7653 one '?' on the appropriate output constraint. Do not allow TImode
7654 logical operations on 32-bit systems.
7655 (vsx_ior<mode>3): Likewise.
7656 (vsx_xor<mode>3): Likewise.
7657 (vsx_one_cmpl<mode>2): Likewise.
7658 (vsx_nor<mode>3): Likewise.
7659 (vsx_andc<mode>3): Likewise.
7660 (vsx_concat_<mode>): Likewise.
7661 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7663 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7664 OPTION_MASK_VSX_TIMODE.
7665 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7666 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7668 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7669 (TI2 iterator): New iterator for TImode, PTImode.
7670 (wd mode attribute): Add values for vector types.
7671 (movti_string): Replace TI move operations with operations for TImode
7672 and PTImode. Add support for TImode being allowed in VSX registers.
7673 (mov<mode>_string, TImode/PTImode): Likewise.
7674 (movti_ppc64): Likewise.
7675 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7676 (TI mode splitters): Likewise.
7678 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7681 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7683 PR tree-optimization/56355
7684 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7685 Also handle integers with undefined overflow.
7687 2013-03-20 Catherine Moore <clm@codesourcery.com>
7688 Maciej W. Rozycki <macro@codesourcery.com>
7689 Tom de Vries <tom@codesourcery.com>
7690 Nathan Sidwell <nathan@codesourcery.com>
7691 Iain Sandoe <iain@codesourcery.com>
7692 Nathan Froyd <froydnj@codesourcery.com>
7693 Chao-ying Fu <fu@mips.com>
7695 * doc/extend.texi: (micromips, nomicromips, nocompression):
7696 Document new function attributes.
7697 * doc/invoke.texi (minterlink-compressed, mmicromips,
7698 m14k, m14ke, m14kec): Document new options.
7699 (minterlink-mips16): Update documentation.
7700 * doc/md.texi (ZC, ZD): Document new constraints.
7701 * configure.ac (gcc_cv_as_micromips): Check if linker
7702 supports the .set micromips directive.
7703 * configure: Regenerate.
7704 * config.in: Regenerate.
7705 * config/mips/mips-tables.opt: Regenerate.
7706 * config/mips/micromips.md: New file.
7707 * constraints.md (ZC, ZD): New constraints.
7708 * config/mips/predicates.md (movep_src_register): New predicate.
7709 (movep_src_operand): New predicate.
7710 (non_volatile_mem_operand): New predicate.
7711 * config/mips/mips.md (multimem): New type.
7712 (length): Differentiate between 17-bit and 18-bit branch offsets.
7713 (MOVEP1, MOVEP2): New mode iterator.
7714 (mov_<load>l): Use ZC constraint.
7715 (mov_<load>r): Likewise.
7716 (mov_<store>l): Likewise.
7717 (mov_<store>r): Likewise.
7718 (*branch_equality<mode>_inverted): Add microMIPS support.
7719 (*branch_equality<mode>): Likewise.
7720 (*jump_absolute): Likewise.
7721 (indirect_jump_<mode>): Likewise.
7722 (tablejump_<mode>): Likewise.
7723 (<optab>_internal): Likewise.
7724 (sibcall_internal): Likewise.
7725 (sibcall_value_internal): Likewise.
7726 (prefetch): Use constraint ZD.
7727 * config/mips/mips.opt (minterlink-compressed): New option.
7728 (minterlink-mips16): Now an alias for minterlink-compressed.
7729 (mmicromips): New option.
7730 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7731 (compare_and_swap_12): Likewise.
7732 (sync_add<mode>): Likewise.
7733 (sync_<optab>_12): Likewise.
7734 (sync_old_<optab>_12): Likewise.
7735 (sync_new_<optab>_12): Likewise.
7736 (sync_nand_12): Likewise.
7737 (sync_old_nand_12): Likewise.
7738 (sync_new_nand_12): Likewise.
7739 (sync_sub<mode>): Likewise.
7740 (sync_old_add<mode>): Likewise.
7741 (sync_old_sub<mode>): Likewise.
7742 (sync_new_add<mode>): Likewise.
7743 (sync_new_sub<mode>): Likewise.
7744 (sync_<optab><mode>): Likewise.
7745 (sync_old_<optab><mode>): Likewise.
7746 (sync_new_<optab><mode>): Likewise.
7747 (sync_nand<mode>): Likewise.
7748 (sync_old_nand<mode>): Likewise.
7749 (sync_new_nand<mode>): Likewise.
7750 (sync_lock_test_and_set<mode>): Likewise.
7751 (test_and_set_12): Likewise.
7752 (atomic_compare_and_swap<mode>): Likewise.
7753 (atomic_exchange<mode>_llsc): Likewise.
7754 (atomic_fetch_add<mode>_llsc): Likewise.
7755 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7756 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7757 (umips_save_restore_pattern_p): Likewise.
7758 (umips_load_store_pair_p): Likewise.
7759 (umips_output_load_store_pair): Likewise.
7760 (umips_movep_target_p): Likewise.
7761 (umips_12bit_offset_address_p): Likewise.
7762 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7763 (mips_base_mips16): Rename this...
7764 (mips_base_compression_flags): ...to this. Update all uses.
7765 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7766 (mips_mips16_decl_p): Delete.
7767 (mips_nomips16_decl_p): Delete.
7768 (mips_get_compress_on_flags): New function.
7769 (mips_get_compress_off_flags): New function.
7770 (mips_get_compress_mode): New function.
7771 (mips_get_compress_on_name): New function.
7772 (mips_get_compress_off_name): New function.
7773 (mips_insert_attributes): Support multiple compression types.
7774 (mips_merge_decl_attributes): Likewise.
7775 (umips_12bit_offset_address_p): New function.
7776 (mips_start_function_definition): Emit .set micromips directive.
7777 (mips_call_may_need_jalx_p): New function.
7778 (mips_function_ok_for_sibcall): Add microMIPS support.
7779 (mips_print_operand_punctuation): Support short delay slots and
7781 (umips_swm_mask, umips_swm_encoding): New.
7782 (umips_build_save_restore): New function.
7783 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7784 (was_mips16_p): Remove.
7785 (old_compression_mode): New.
7786 (mips_set_compression_mode): New function.
7787 (mips_set_current_function): Add microMIPS support.
7788 (mips_option_override): Likewise.
7789 (umips_save_restore_pattern_p): New function.
7790 (umips_output_save_restore): New function.
7791 (umips_load_store_pair_p_1): New function.
7792 (umips_load_store_pair_p): New function.
7793 (umips_output_load_store_pair_1): New function.
7794 (umips_output_load_store_pair): New function.
7795 (umips_movep_target_p) New function.
7796 (mips_prepare_pch_save): Add microMIPS support.
7797 * config/mips/mips.h (TARGET_COMPRESSION): New.
7798 (TARGET_CPU_CPP_BUILTINS): Update macro
7799 to use new compression flags and to support microMIPS.
7800 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7801 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7802 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7803 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7804 (ASM_SPEC): Support mmicromips and mno-micromips.
7805 (M16STORE_REG_P): New macro.
7806 (MIPS_CALL): Support TARGET_MICROMIPS.
7807 (MICROMIPS_J): New macro.
7808 (mips_base_mips16): Rename this...
7809 (mips_base_compression_flags): ...to this.
7810 (UMIPS_12BIT_OFFSET_P): New macro.
7811 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7812 (MULTILIB_DIRNAMES): Likewise.
7813 2013-03-20 Richard Biener <rguenther@suse.de>
7815 PR tree-optimization/56661
7816 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7817 the result does not have to be distinct.
7819 2013-03-20 Richard Biener <rguenther@suse.de>
7821 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7824 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7825 Steven Bosscher <steven@gcc.gnu.org>
7827 PR rtl-optimization/56605
7828 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7830 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7833 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7834 that require movd instead of movq.
7836 2013-03-20 Richard Biener <rguenther@suse.de>
7838 * tree-ssa-structalias.c (struct variable_info): Add pointer
7839 to the first field of an aggregate with sub-vars. Make
7840 this and the pointer to the next subfield its ID.
7841 (vi_next): New function.
7842 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7843 storedanything_id, integer_id): Increment by one.
7844 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7845 get_call_clobber_vi): Adjust.
7846 (solution_set_expand): Simplify and speedup.
7847 (solution_set_add): Inline into ...
7848 (set_union_with_increment): ... this. Adjust accordingly.
7849 (do_sd_constraint): Likewise.
7850 (do_ds_constraint): Likewise.
7851 (do_complex_constraint): Simplify.
7852 (build_pred_graph): Adjust.
7853 (solve_graph): Likewise. Simplify and speedup.
7854 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7855 get_constraint_for_component_ref, get_constraint_for_1,
7856 first_vi_for_offset, first_or_preceding_vi_for_offset,
7857 create_function_info_for, create_variable_info_for_1,
7858 create_variable_info_for, intra_create_variable_infos): Adjust.
7859 (init_base_vars): Push NULL for ID zero.
7860 (compute_points_to_sets): Adjust.
7862 2013-03-20 Richard Biener <rguenther@suse.de>
7864 * cfgloop.c (verify_loop_structure): Streamline and avoid
7865 ICEing on corrupt loop tree.
7866 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7869 2013-03-20 Richard Biener <rguenther@suse.de>
7871 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7872 check whether an SSA update is needed.
7874 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7876 * config/mips/constraints.md (T): Rename to...
7880 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7881 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7883 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7885 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7886 (*subsi3_carryin_uxtw): Likewise.
7888 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7890 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7891 (*rorsi3_insn_uxtw): Likewise.
7893 2013-03-19 Ian Bolton <ian.bolton@arm.com>
7895 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7896 (*extrsi5_insn_uxtw): Likewise.
7898 2013-03-19 Richard Biener <rguenther@suse.de>
7900 PR tree-optimization/56273
7901 * passes.c (init_optimization_passes): Move second VRP after DOM.
7903 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
7905 * config/i386/i386.md (*movti_internal): Merge from
7906 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7907 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7908 nox64 isa attributes.
7910 2013-03-18 Richard Biener <rguenther@suse.de>
7912 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7914 (merge_node_constraints): Likewise.
7915 (build_succ_graph): Likewise.
7916 (valid_graph_edge): Inline into single caller.
7917 (unify_nodes): Likewise. Use bitmap_set_bit return value
7919 (scc_visit): Fix formatting and variable use.
7920 (do_sd_constraint): Use gcc_checking_assert.
7921 (do_ds_constraint): Likewise.
7922 (do_complex_constraint): Likewise.
7923 (condense_visit): Likewise. Cleanup.
7924 (dump_pred_graph): New function.
7925 (perform_var_substitution): Dump the pred-graph before
7926 variable substitution.
7927 (find_equivalent_node): Use gcc_checking_assert.
7928 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7930 2013-03-18 Richard Biener <rguenther@suse.de>
7932 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7933 Remove cond_expr_stmt_list argument and do not gimplify the
7935 (vect_loop_versioning): Adjust.
7936 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7937 Cleanup to use less temporaries.
7938 (vect_create_data_ref_ptr): Cleanup.
7940 2013-03-18 Jakub Jelinek <jakub@redhat.com>
7942 PR tree-optimization/56635
7943 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7944 require types_compatible_p types.
7946 2013-03-18 Nick Clifton <nickc@redhat.com>
7948 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7951 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7952 Add missing line to comment describing function.
7954 2013-03-18 Richard Biener <rguenther@suse.de>
7956 PR tree-optimization/56210
7957 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7958 Handle string / character search functions.
7959 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7961 2013-03-18 Richard Biener <rguenther@suse.de>
7964 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7965 and implement properly.
7966 * gimple.h (gimple_cond_single_var_p): Remove.
7968 2013-03-18 Richard Biener <rguenther@suse.de>
7970 * tree-data-ref.h (find_data_references_in_loop): Declare.
7971 * tree-data-ref.c (get_references_in_stmt): Use a stack
7972 vector pre-allocated in the callers.
7973 (find_data_references_in_stmt): Adjust.
7974 (graphite_find_data_references_in_stmt): Likewise.
7975 (create_rdg_vertices): Likewise.
7976 (find_data_references_in_loop): Export.
7977 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7978 Compute dependences here...
7979 (vect_analyze_data_refs): ...not here. When we encounter
7980 a non-vectorizable data reference in basic-block vectorization
7981 truncate the data reference vector. Do not bother to
7982 fixup data-dependence information for gather loads.
7983 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7984 of data references, as reported.
7986 2013-03-18 Richard Biener <rguenther@suse.de>
7988 PR tree-optimization/3713
7989 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7990 has_constants and expr.
7991 (stmt_has_constants): Properly valueize SSA names when deciding
7992 whether the stmt has constants.
7994 2013-03-18 Richard Biener <rguenther@suse.de>
7996 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7997 whole function when there is nothing to do.
7998 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7999 * tree-vectorizer.c (vectorize_loops): Update virtual and
8000 loop-closed SSA once.
8001 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8003 2013-03-18 Richard Biener <rguenther@suse.de>
8006 * domwalk.c (bb_postorder): New global static.
8007 (cmp_bb_postorder): New function.
8008 (walk_dominator_tree): Replace scheme imposing an order for
8009 visiting dominator sons by one sorting them at the time they
8010 are pushed on the stack.
8012 2013-03-18 Richard Biener <rguenther@suse.de>
8014 PR tree-optimization/39326
8015 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8016 (struct mem_ref): Replace mem member with ao_ref typed member.
8017 (MEM_ANALYZABLE): Adjust.
8018 (memref_eq): Likewise.
8019 (mem_ref_alloc): Likewise.
8020 (gather_mem_refs_stmt): Likewise.
8021 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8022 (execute_sm_if_changed_flag_set): Adjust.
8023 (execute_sm): Likewise.
8024 (ref_always_accessed_p): Likewise.
8025 (refs_independent_p): Likewise.
8026 (can_sm_ref_p): Likewise.
8028 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8031 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8032 return 1 even for !unsignedp.
8034 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8036 * config/i386/i386.md (isa): Add x64 and nox64.
8037 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8038 (*pushtf): Enable *roF alternative for x64 isa only.
8039 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8040 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8041 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8042 (*movtf_internal): Merge from *movtf_internal_rex64 and
8043 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8044 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8045 nox64 isa attributes.
8046 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8047 nox64 isa attributes.
8048 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8050 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8052 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8054 2013-03-17 Jakub Jelinek <jakub@redhat.com>
8057 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8058 class names. Remove trailing comma after "ALL_REGS".
8060 2013-03-16 Jan Hubicka <jh@suse.cz>
8062 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8063 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8064 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8065 of cgraph_get_create_node.
8066 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8068 2013-03-16 Jason Merrill <jason@redhat.com>
8071 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8072 with DW_AT_default_value.
8074 2013-03-16 Jakub Jelinek <jakub@redhat.com>
8076 * BASE-VER: Set to 4.9.0.
8078 2013-03-14 Andi Kleen <ak@linux.intel.com>
8081 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8082 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8083 Document _x* TSX intrinsics.
8085 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8086 David Holsgrove <david.holsgrove@xilinx.com>
8088 * configure.ac: Add MicroBlaze TLS support detection.
8089 * configure: Regenerate.
8090 * config/microblaze/microblaze-protos.h
8091 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8092 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8093 * config/microblaze/microblaze.c (microblaze_address_type): Add
8094 ADDRESS_TLS and tls_reloc address types.
8095 (microblaze_address_info): Add tls_reloc.
8096 (TARGET_HAVE_TLS): Define.
8097 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8098 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8099 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8100 load_tls_operand, microblaze_call_tls_get_addr,
8101 microblaze_legitimize_tls_address): New functions.
8102 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8103 (get_base_reg): Use microblaze_tls_symbol_p.
8104 (microblaze_classify_address): Handle TLS.
8105 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8106 label_mentioned_p and microblaze_tls_referenced_p.
8107 (microblaze_legitimize_address): Handle TLS.
8108 (microblaze_address_insns): Handle ADDRESS_TLS.
8109 (pic_address_needs_scratch): Handle TLS.
8110 (print_operand_address): Handle TLS.
8111 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8112 (microblaze_expand_move): Handle TLS.
8113 (microblaze_legitimate_constant_p): Check
8114 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8115 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8116 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8117 (PIC_OFFSET_TABLE_REGNUM): Set.
8118 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8119 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8120 (addsi3, movsi_internal2, movdf_internal): Update constraints
8121 * config/microblaze/predicates.md (arith_plus_operand): Define
8122 (move_operand): Redefine as move_src_operand,
8123 check microblaze_tls_referenced_p.
8125 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8127 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8128 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8130 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8132 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8135 2013-03-14 Jakub Jelinek <jakub@redhat.com>
8137 PR tree-optimization/53265
8138 * common.opt (Waggressive-loop-optimizations): New option.
8139 * tree-ssa-loop-niter.c: Include tree-pass.h.
8140 (do_warn_aggressive_loop_optimizations): New function.
8141 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8142 if number_of_latch_executions returned constant.
8143 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8144 early. If number_of_latch_executions returned constant, set
8145 nb_iterations_upper_bound back to it.
8146 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8148 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8149 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8151 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8152 (MULTILIB_OSDIRNAMES): Set.
8153 * genmultilib: If defaultosdirname doesn't start with :: , set
8154 defaultosdirname2 instead, clear it and emit two . multilib_raw
8155 entries instead of just one.
8157 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8159 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8160 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8161 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8162 (SUBTARGET_OVERRIDE_OPTIONS): New.
8164 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8167 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8168 (musermode): Convert to Var(TARGET_USERMODE).
8169 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8170 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8171 * config/sh/sh.c (sh_option_override): Use
8172 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8173 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8175 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8177 (udivsi3_i4_single, divsi3_i4_single): Use
8178 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8180 2013-03-13 Dave Korn <dave.korn.cygwin@....>
8182 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8185 2013-03-13 Richard Biener <rguenther@suse.de>
8187 PR tree-optimization/56608
8188 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8189 calls when vectorizing basic-blocks.
8191 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8194 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8197 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8199 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8201 2013-03-11 Jan Hubicka <jh@suse.cz>
8204 * lto-streamer-out.c (output_symbol_p): Skip references from
8205 constructors of external variables.
8207 2013-03-11 Jan Hubicka <jh@suse.cz>
8210 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8212 * emit-rtl.c (verify_rtx_sharing): Likewise.
8213 (copy_insn_1): Likewise.
8214 * rtl.c (copy_rtx): Likewise.
8216 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8219 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8220 output_operand_lossage message.
8222 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8225 * arm.c (shift_op): Validate RTL pattern on the fly.
8226 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8229 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8232 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8233 new call patterns that clobber %fr12.
8234 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8235 split and postreload patterns.
8236 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8237 registers %fr12 and %fr12R as call used.
8239 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8241 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8242 (canon_address, record_store, replace_read, check_mem_read_rtx,
8243 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8244 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8245 rest_of_handle_dse): Likewise.
8247 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8250 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8252 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8253 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8254 (save_optabs_if_changed): Replace with...
8255 (init_tree_optimization_optabs): ...this.
8256 * optabs.c (save_optabs_if_changed): Rename to...
8257 (init_tree_optimization_optabs): ...this. Take the optimization node
8258 as argument. Do nothing if the base optabs are already correct.
8259 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8260 to recompute optabs.
8261 * function.h (function): Remove optabs field.
8262 * function.c (invoke_set_current_function_hook): Call
8263 init_tree_optimization_optabs. Use the result to initialize
8266 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8268 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8269 if GTMA_HAS_NO_INSTRUMENTATION.
8270 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8271 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8272 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8273 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8274 GTMA_HAS_NO_INSTRUMENTATION.
8276 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8278 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8281 2013-03-08 Marek Polacek <polacek@redhat.com>
8282 Jakub Jelinek <jakub@redhat.com>
8284 PR tree-optimization/56478
8285 * predict.c (is_comparison_with_loop_invariant_p): Change the
8286 type of loop_step to tree.
8287 (predict_loops): Adjust.
8288 (predict_iv_comparison): Perform the computations on double_ints.
8290 2013-03-08 Richard Biener <rguenther@suse.de>
8292 PR tree-optimization/56570
8293 * tree-cfg.c (verify_expr_location_1): Verify locations for
8295 * tree-sra.c (create_access_replacement): Strip locations
8296 from DECL_DEBUG_EXPRs.
8298 2013-03-08 Richard Biener <rguenther@suse.de>
8300 * tree-inline.c (expand_call_inline): Do not associate
8301 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8302 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8304 2013-03-08 Richard Biener <rguenther@suse.de>
8306 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8307 or block changes with -Og. Fix for location / block encoding
8308 changes and PHI arguments with locations.
8310 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8312 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8314 (struct output_info): Likewise.
8315 (register_overhead): Remove bad gcc_assert.
8316 (bitmap_find_bit): If there is only a single bitmap element, do not
8317 count a miss as a search.
8318 (print_statistics): Update for counter type changes.
8319 (dump_bitmap_statistics): Likewise. Print headers such that they
8320 are properly lined up with the printed counters.
8322 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8324 PR tree-optimization/56559
8325 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8326 check that it has only a single use.
8328 2013-03-07 Richard Biener <rguenther@suse.de>
8330 * doc/invoke.texi (fwhole-program): Discourage use in combination
8333 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8335 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8337 PR tree-optimization/56539
8338 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8339 instead of GSI_CONTINUE_LINKING as last argument to
8340 force_gimple_operand_gsi. Adjust function comment.
8342 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8346 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8347 promoted mode, convert the result back to the original mode.
8349 2013-03-06 Richard Biener <rguenther@suse.de>
8352 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8353 (insert_updated_phi_nodes_compare_uids): New function.
8354 (update_ssa): Sort symbols_to_rename after UID before
8355 traversing it to insert PHI nodes.
8357 2013-03-06 Richard Biener <rguenther@suse.de>
8360 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8361 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8364 2013-02-13 Richard Biener <rguenther@suse.de>
8367 * varasm.c (output_constant_def_1): Get the decl representing
8368 the constant as argument.
8369 (output_constant_def): Wrap output_constant_def_1.
8370 (make_decl_rtl): Use output_constant_def_1 with the decl
8371 representing the constant.
8372 (build_constant_desc): Optionally re-use a decl already
8373 representing the constant.
8374 (tree_output_constant_def): Adjust.
8376 2013-03-06 Joey Ye <joey.ye@arm.com>
8379 * gcc.c (convert_white_space): New function.
8380 (main): Handles white space in function name.
8382 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8385 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8386 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8387 to SH_DIV_CALL_TABLE for TARGET_SH2.
8388 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8390 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8393 2013-03-05 Sterling Augustine <saugustine@google.com>
8394 Cary Coutant <ccoutant@google.com>
8397 * dwarf2out.c (resolve_addr): Don't call
8398 remove_loc_list_addr_table_entries a second time for the same
8401 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8404 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8405 (avoid_complex_debug_insns): New function.
8406 (expand_debug_locations): Call it.
8408 PR rtl-optimization/56484
8409 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8410 lifetimes of hard registers on small register class machines.
8412 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8414 * config/microblaze/microblaze-protos.h: Rename
8415 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8416 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8418 (microblaze_fast_interrupt_function_p): New function.
8419 (microblaze_is_interrupt_handler): Rename to
8420 microblaze_is_interrupt_variant and add fast_interrupt check.
8421 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8422 (save_restore_insns): Likewise.
8423 (compute_frame_size): Likewise.
8424 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8425 (microblaze_globalize_label): Likewise.
8426 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8427 * config/microblaze/microblaze.md: Use wrapper
8428 microblaze_is_interrupt_variant.
8430 2013-03-05 Kai Tietz <ktietz@redhat.com>
8432 * sdbout.c (sdbout_one_type): Switch to current function's section
8433 supporting cold/hot.
8435 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8437 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8440 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8443 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8444 if VALGRIND_GET_VBITS is defined, temporarily make object
8445 memory all defined, and restore previous valgrind addressability
8446 and definability afterwards. Free this_object at the end.
8449 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8450 right before calling lra_create_live_ranges, also call it
8451 when clearing live_p. Only call lra_clear_live_ranges
8452 at the end if live_p.
8455 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8457 2013-03-05 Richard Biener <rguenther@suse.de>
8459 PR tree-optimization/56521
8460 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8463 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8466 * except.h (remove_unreachable_eh_regions): New prototype.
8467 * except.c (remove_eh_handler_splicer): New function, split out
8468 of remove_eh_handler.
8469 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8470 warning about running it on many EH regions one at a time.
8471 (remove_unreachable_eh_regions_worker): New function, walk the
8472 EH tree in depth-first order and remove non-marked regions.
8473 (remove_unreachable_eh_regions): New function.
8474 * tree-eh.c (mark_reachable_handlers): New function, split out
8475 from remove_unreachable_handlers.
8476 (remove_unreachable_handlers): Use mark_reachable_handlers and
8477 remove_unreachable_eh_regions.
8478 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8479 and remove_unreachable_eh_regions.
8481 2013-03-05 Richard Biener <rguenther@suse.de>
8484 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8485 not freeing them until the end.
8487 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8489 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8491 2013-03-05 Richard Biener <rguenther@suse.de>
8493 PR tree-optimization/56270
8494 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8495 of loads after scheduling an SLP instance.
8497 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8499 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8501 (check_gcc_parallelize): Run guality.exp as a separate job from
8502 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8503 struct-layout-1.exp with stackalign.exp.
8505 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8508 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8509 load_index sbitmap even if some bit in it isn't set.
8512 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8513 (discover_iteration_bound_by_body_walk): Change queues to
8514 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8515 spelling in comment. Call safe_push on queues[bound_index] directly.
8516 Release queues[queue_index] in every iteration unconditionally.
8517 Release bounds vector.
8520 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8521 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8522 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8525 2013-03-05 Richard Biener <rguenther@suse.de>
8528 * tree-inline.c (remap_blocks_to_null): New function.
8529 (expand_call_inline): When expanding a call stmt without
8530 an associated block inline remap all callee blocks to NULL.
8532 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8534 PR rtl-optimization/56494
8535 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8536 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8537 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8540 * sel-sched-ir.c (free_sched_pools): Release
8541 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8542 if succs_info_pool.max_top isn't -1.
8545 * opts.c (opts_obstack, opts_concat): Moved to...
8546 * opts-common.c (opts_obstack, opts_concat): ... here.
8548 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8551 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8553 2013-03-04 Martin Jambor <mjambor@suse.cz>
8555 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8556 all appropriate places.
8558 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8560 PR tree-optimization/56424
8561 * ipa-split.c (split_function): Do not set the RSO flag if result is
8562 not by reference and its type is a register type.
8564 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8566 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8567 (microblaze_legitimate_pic_operand): Likewise
8568 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8569 new function microblaze_legitimate_pic_operand
8570 * config/microblaze/microblaze-protos.h
8571 (microblaze_legitimate_pic_operand): Declare.
8573 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8575 * config/microblaze/predicates.md (call_insn_simple_operand):
8576 New predicate for supported rtx code types.
8577 * config/microblaze/microblaze.md (call_internal1): Use
8578 call_insn_simple_operand predicate.
8580 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8583 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8584 partitions.ordered_remove.
8587 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8588 vec_oprnds0.create (1) for modifier == NONE.
8591 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8592 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8593 vec_oprnds1 right before pushing anything to it for
8597 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8598 set nbbs to 0 instead of having separate code path.
8599 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8600 instead of false as last argument if returning NULL.
8602 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8604 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8605 the attribute is now called "target" instead of "option".
8606 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8607 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8608 attribute/pragma name for TARGET_OPTION_VALID_P and
8609 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8610 * doc/tm.texi: Regenerated.
8612 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8614 * config/microblaze/microblaze.c:
8615 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8616 * config/microblaze/microblaze.h: Add -mxl-reorder to
8618 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8619 instructions emitted if TARGET_REORDER.
8620 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8621 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8624 2013-03-01 Xinliang David Li <davidxl@google.com>
8626 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8629 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8632 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8633 vector even when returning true. Fix up function comment formatting.
8636 * ira-build.c (ira_loop_nodes_count): New variable.
8637 (create_loop_tree_nodes): Initialize it.
8638 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8641 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8642 method on dr_chain and result_chain.
8643 * tree-vect-stmts.c (vectorizable_store): Only call
8644 result_chain.create if j == 0.
8647 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8648 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8649 before overwriting it.
8651 2013-03-01 Tobias Burnus <burnus@net-b.de>
8653 * doc/extended.texi (C Extensions): Change order in @menu
8655 (Other MIPS Built-in Functions): Move last MIPS entry before
8656 "picoChip Built-in Functions".
8657 (SH Built-in Functions): Move after RX Built-in Functions.
8658 * doc/gcc.texi (Introduction): Change order in @menu
8660 * doc/md.texi (Constraints): Ditto.
8661 * gty.texi (Type Information): Ditto.
8662 (User-provided marking routines for template types): Make
8664 * doc/invoke.texi (AArch64 Options): Move before
8665 "Adapteva Epiphany Options".
8667 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8668 Jakub Jelinek <jakub@redhat.com>
8671 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8672 no_address_safety_analysis attribute.
8673 * doc/extend.texi (no_address_safety_attribute): Rename to
8674 no_sanitize_address attribute, mention no_address_safety_analysis
8675 attribute as deprecated alias.
8677 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8680 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8681 type to vec<vec<tree> > *.
8682 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8683 to be vec<tree> instead of vec<tree> *, set vec_defs
8684 to vNULL and call vec_defs.create (number_of_vects), adjust other
8686 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8687 vectorizable_condition): Adjust vect_get_slp_defs callers.
8689 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8691 * config/aarch64/aarch64.c
8692 (aarch64_float_const_representable): Remove unused variable.
8694 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8696 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8698 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8700 * config/aarch64/aarch64-builtins.c
8701 (aarch64_init_simd_builtins): Make static.
8703 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8705 * config/aarch64/aarch64.c
8706 (aarch64_simd_make_constant): Make static.
8708 2013-02-28 Martin Jambor <mjambor@suse.cz>
8710 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8711 with no initialization to the RHS of debug statements.
8713 2013-02-28 Martin Jambor <mjambor@suse.cz>
8715 PR tree-optimization/56294
8716 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8718 (get_access_replacement): Do not call create_access_replacement.
8719 Assert a replacement exists.
8720 (get_repl_default_def_ssa_name): Create the replacement declaration
8723 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8725 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8728 2013-02-28 Marek Polacek <polacek@redhat.com>
8730 PR rtl-optimization/56466
8731 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8732 if we're changing a loop.
8733 (peel_loops_completely): Likewise.
8735 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8738 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8740 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8743 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8744 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8745 INTX_FTYPE_FX, FX_FTYPE_INTX.
8746 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8748 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8750 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8751 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8752 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8753 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8754 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8755 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8756 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8757 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8758 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8759 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8760 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8761 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8762 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8763 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8764 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8765 (avrxmega6): Increase max flash segments from 5 to 6.
8766 * config/avr/t-multilib: Regenerate.
8767 * config/avr/avr-tables.opt: Regenerate.
8768 * doc/avr-mmcu.texi: Regenerate.
8770 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8772 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8773 (avr_device_to_arch): Rename to avr_device_to_ld.
8774 (avr_device_to_as): New prototype.
8775 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8776 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8777 * config/avr/driver-avr.c (avr_device_to_as): New.
8778 (avr_device_to_arch): Rename to avr_device_to_ld.
8780 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8783 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8784 method on dr_chain and result_chain.
8787 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8788 pointer_set_destroy on not_executed_last_iteration.
8791 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8794 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8795 FOR_EACH_DEFINED_FUNCTION when freeing state.
8798 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8800 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8804 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8805 known_aggs[i].items and release known_aggs vector.
8808 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8810 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8812 * config/microblaze/microblaze.c (microblaze_emit_compare):
8813 Use xor for EQ/NE comparisions.
8814 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8815 (cbranchsf4): Adjust operator to comparison_operator.
8817 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8820 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8822 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8823 vec_safe_push, always update *slot.
8824 (redirect_edge_var_map_clear): Use vec_free.
8825 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8826 (free_var_map_entry): Use vec_free.
8827 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8828 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8830 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
8833 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8834 when the may_trap_p bit of the exprs being merged differs.
8835 Reorder tests for speculativeness in the logical and operator.
8837 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8839 * incpath.c (add_standard_paths): Use reconcat instead of concat
8840 where appropriate and avoid leaking memory.
8842 * opts.h: Include obstack.h.
8843 (opts_concat): New prototype.
8844 (opts_obstack): New declaration.
8845 * opts.c (opts_concat): New function.
8846 (opts_obstack): New variable.
8847 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8848 (finish_options): Use opts_concat instead of concat
8849 and XOBNEWVEC instead of XNEWVEC.
8850 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8851 generate_option): Likewise.
8852 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8853 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8856 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8857 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8859 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8862 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8864 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8866 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8867 (arm_block_move_unaligned_straight): Likewise.
8868 (arm_adjust_block_mem): Likewise.
8870 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8873 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8874 temp, cond and label.
8875 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8878 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8879 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8882 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8883 of prologue/epilogue functions.
8886 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8887 Remove unused variable cfa_offset.
8888 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8891 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8892 type promotion to unsigned.
8895 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8896 for HOST_WIDE_INT of 32 bit / same size as int.
8897 (arm_block_move_unaligned_straight): Likewise.
8898 (arm_adjust_block_mem): Likewise.
8901 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8904 2013-02-26 Marek Polacek <polacek@redhat.com>
8906 PR tree-optimization/56426
8907 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
8909 2013-02-26 Richard Biener <rguenther@suse.de>
8912 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8913 unused variable loops.
8915 2013-02-26 Jakub Jelinek <jakub@redhat.com>
8917 PR tree-optimization/56448
8918 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8919 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8920 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8921 later operands of the references, or even first operand for
8922 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8924 PR tree-optimization/56443
8925 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8926 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8927 to type_for_mode langhook.
8929 2013-02-25 Matt Turner <mattst88@gmail.com>
8931 * doc/invoke.texi: Document r4700.
8933 2013-02-25 Richard Biener <rguenther@suse.de>
8935 PR tree-optimization/56175
8936 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8938 (simplify_bitwise_binary): ... here. Also guard the conversion
8939 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8941 2013-02-25 Catherine Moore <clm@codesourcery.com>
8944 2013-02-24 Catherine Moore <clm@codesourcery.com>
8945 Maciej W. Rozycki <macro@codesourcery.com>
8946 Tom de Vries <tom@codesourcery.com>
8947 Nathan Sidwell <nathan@codesourcery.com>
8948 Iain Sandoe <iain@codesourcery.com>
8949 Nathan Froyd <froydnj@codesourcery.com>
8950 Chao-ying Fu <fu@mips.com>
8952 * doc/extend.texi: (micromips, nomicromips, nocompression):
8953 Document new function attributes.
8954 * doc/invoke.texi (minterlink-compressed, mmicromips,
8955 m14k, m14ke, m14kec): Document new options.
8956 (minterlink-mips16): Update documentation.
8957 * doc/md.texi (ZC, ZD): Document new constraints.
8958 * configure.ac (gcc_cv_as_micromips): Check if linker
8959 supports the .set micromips directive.
8960 * configure: Regenerate.
8961 * config.in: Regenerate.
8962 * config/mips/mips-tables.opt: Regenerate.
8963 * config/mips/micromips.md: New file.
8964 * constraints.md (ZC, AD): New constraints.
8965 * config/mips/predicates.md (movep_src_register): New predicate.
8966 (movep_src_operand): New predicate.
8967 (non_volatile_mem_operand): New predicate.
8968 * config/mips/mips.md (multimem): New type.
8969 (length): Differentiate between 17-bit and 18-bit branch offsets.
8970 (MOVEP1, MOVEP2): New mode iterator.
8971 (mov_<load>l): Use ZC constraint.
8972 (mov_<load>r): Likewise.
8973 (mov_<store>l): Likewise.
8974 (mov_<store>r): Likewise.
8975 (*branch_equality<mode>_inverted): Add microMIPS support.
8976 (*branch_equality<mode>): Likewise.
8977 (*jump_absolute): Likewise.
8978 (indirect_jump_<mode>): Likewise.
8979 (tablejump_<mode>): Likewise.
8980 (<optab>_internal): Likewise.
8981 (sibcall_internal): Likewise.
8982 (sibcall_value_internal): Likewise.
8983 (prefetch): Use constraint ZD.
8984 * config/mips/mips.opt (minterlink-compressed): New option.
8985 (minterlink-mips16): Now an alias for minterlink-compressed.
8986 (mmicromips): New option.
8987 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8988 (compare_and_swap_12): Likewise.
8989 (sync_add<mode>): Likewise.
8990 (sync_<optab>_12): Likewise.
8991 (sync_old_<optab>_12): Likewise.
8992 (sync_new_<optab>_12): Likewise.
8993 (sync_nand_12): Likewise.
8994 (sync_old_nand_12): Likewise.
8995 (sync_new_nand_12): Likewise.
8996 (sync_sub<mode>): Likewise.
8997 (sync_old_add<mode>): Likewise.
8998 (sync_old_sub<mode>): Likewise.
8999 (sync_new_add<mode>): Likewise.
9000 (sync_new_sub<mode>): Likewise.
9001 (sync_<optab><mode>): Likewise.
9002 (sync_old_<optab><mode>): Likewise.
9003 (sync_new_<optab><mode>): Likewise.
9004 (sync_nand<mode>): Likewise.
9005 (sync_old_nand<mode>): Likewise.
9006 (sync_new_nand<mode>): Likewise.
9007 (sync_lock_test_and_set<mode>): Likewise.
9008 (test_and_set_12): Likewise.
9009 (atomic_compare_and_swap<mode>): Likewise.
9010 (atomic_exchange<mode>_llsc): Likewise.
9011 (atomic_fetch_add<mode>_llsc): Likewise.
9012 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9013 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9014 (umips_save_restore_pattern_p): Likewise.
9015 (umips_load_store_pair_p): Likewise.
9016 (umips_output_load_store_pair): Likewise.
9017 (umips_movep_target_p): Likewise.
9018 (umips_12bit_offset_address_p): Likewise.
9019 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9020 (mips_base_mips16): Rename this...
9021 (mips_base_compression_flags): ...to this. Update all uses.
9022 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9023 (mips_mips16_decl_p): Delete.
9024 (mips_nomips16_decl_p): Delete.
9025 (mips_get_compress_on_flags): New function.
9026 (mips_get_compress_off_flags): New function.
9027 (mips_get_compress_mode): New function.
9028 (mips_get_compress_on_name): New function.
9029 (mips_get_compress_off_name): New function.
9030 (mips_insert_attributes): Support multiple compression types.
9031 (mips_merge_decl_attributes): Likewise.
9032 (umips_12bit_offset_address_p): New function.
9033 (mips_start_function_definition): Emit .set micromips directive.
9034 (mips_call_may_need_jalx_p): New function.
9035 (mips_function_ok_for_sibcall): Add microMIPS support.
9036 (mips_print_operand_punctuation): Support short delay slots and
9038 (umips_swm_mask, umips_swm_encoding): New.
9039 (umips_build_save_restore): New function.
9040 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9041 (was_mips16_p): Remove.
9042 (old_compression_mode): New.
9043 (mips_set_compression_mode): New function.
9044 (mips_set_current_function): Add microMIPS support.
9045 (mips_option_override): Likewise.
9046 (umips_save_restore_pattern_p): New function.
9047 (umips_output_save_restore): New function.
9048 (umips_load_store_pair_p_1): New function.
9049 (umips_load_store_pair_p): New function.
9050 (umips_output_load_store_pair_1): New function.
9051 (umips_output_load_store_pair): New function.
9052 (umips_movep_target_p) New function.
9053 (mips_prepare_pch_save): Add microMIPS support.
9054 * config/mips/mips.h (TARGET_COMPRESSION): New.
9055 (TARGET_CPU_CPP_BUILTINS): Update macro
9056 to use new compression flags and to support microMIPS.
9057 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9058 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9059 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9060 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9061 (ASM_SPEC): Support mmicromips and mno-micromips.
9062 (M16STORE_REG_P): New macro.
9063 (MIPS_CALL): Support TARGET_MICROMIPS.
9064 (MICROMIPS_J): New macro.
9065 (mips_base_mips16): Rename this...
9066 (mips_base_compression_flags): ...to this.
9067 (UMIPS_12BIT_OFFSET_P): New macro.
9068 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9069 (MULTILIB_DIRNAMES): Likewise.
9071 2013-02-25 Tom de Vries <tom@codesourcery.com>
9073 PR rtl-optimization/56131
9074 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9075 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9076 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9078 2013-02-25 Tobias Burnus <burnus@net-b.de>
9080 * doc/invoke.texi (-fsanitize=): Move from optimization
9081 to debugging options.
9083 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9085 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9087 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9088 Alexander Monakov <amonakov@ispras.ru>
9091 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9092 flush pending lists also on non-jumps. Adjust comment.
9094 2013-02-24 Catherine Moore <clm@codesourcery.com>
9095 Maciej W. Rozycki <macro@codesourcery.com>
9096 Tom de Vries <tom@codesourcery.com>
9097 Nathan Sidwell <nathan@codesourcery.com>
9098 Iain Sandoe <iain@codesourcery.com>
9099 Nathan Froyd <froydnj@codesourcery.com>
9100 Chao-ying Fu <fu@mips.com>
9102 * doc/extend.texi: (micromips, nomicromips, nocompression):
9103 Document new function attributes.
9104 * doc/invoke.texi (minterlink-compressed, mmicromips,
9105 m14k, m14ke, m14kec): Document new options.
9106 (minterlink-mips16): Update documentation.
9107 * doc/md.texi (ZC, ZD): Document new constraints.
9108 * configure.ac (gcc_cv_as_micromips): Check if linker
9109 supports the .set micromips directive.
9110 * configure: Regenerate.
9111 * config.in: Regenerate.
9112 * config/mips/mips-tables.opt: Regenerate.
9113 * config/mips/micromips.md: New file.
9114 * constraints.md (ZC, AD): New constraints.
9115 * config/mips/predicates.md (movep_src_register): New predicate.
9116 (movep_src_operand): New predicate.
9117 (non_volatile_mem_operand): New predicate.
9118 * config/mips/mips.md (multimem): New type.
9119 (length): Differentiate between 17-bit and 18-bit branch offsets.
9120 (MOVEP1, MOVEP2): New mode iterator.
9121 (mov_<load>l): Use ZC constraint.
9122 (mov_<load>r): Likewise.
9123 (mov_<store>l): Likewise.
9124 (mov_<store>r): Likewise.
9125 (*branch_equality<mode>_inverted): Add microMIPS support.
9126 (*branch_equality<mode>): Likewise.
9127 (*jump_absolute): Likewise.
9128 (indirect_jump_<mode>): Likewise.
9129 (tablejump_<mode>): Likewise.
9130 (<optab>_internal): Likewise.
9131 (sibcall_internal): Likewise.
9132 (sibcall_value_internal): Likewise.
9133 (prefetch): Use constraint ZD.
9134 * config/mips/mips.opt (minterlink-compressed): New option.
9135 (minterlink-mips16): Now an alias for minterlink-compressed.
9136 (mmicromips): New option.
9137 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9138 (compare_and_swap_12): Likewise.
9139 (sync_add<mode>): Likewise.
9140 (sync_<optab>_12): Likewise.
9141 (sync_old_<optab>_12): Likewise.
9142 (sync_new_<optab>_12): Likewise.
9143 (sync_nand_12): Likewise.
9144 (sync_old_nand_12): Likewise.
9145 (sync_new_nand_12): Likewise.
9146 (sync_sub<mode>): Likewise.
9147 (sync_old_add<mode>): Likewise.
9148 (sync_old_sub<mode>): Likewise.
9149 (sync_new_add<mode>): Likewise.
9150 (sync_new_sub<mode>): Likewise.
9151 (sync_<optab><mode>): Likewise.
9152 (sync_old_<optab><mode>): Likewise.
9153 (sync_new_<optab><mode>): Likewise.
9154 (sync_nand<mode>): Likewise.
9155 (sync_old_nand<mode>): Likewise.
9156 (sync_new_nand<mode>): Likewise.
9157 (sync_lock_test_and_set<mode>): Likewise.
9158 (test_and_set_12): Likewise.
9159 (atomic_compare_and_swap<mode>): Likewise.
9160 (atomic_exchange<mode>_llsc): Likewise.
9161 (atomic_fetch_add<mode>_llsc): Likewise.
9162 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9163 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9164 (umips_save_restore_pattern_p): Likewise.
9165 (umips_load_store_pair_p): Likewise.
9166 (umips_output_load_store_pair): Likewise.
9167 (umips_movep_target_p): Likewise.
9168 (umips_12bit_offset_address_p): Likewise.
9169 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9170 (mips_base_mips16): Rename this...
9171 (mips_base_compression_flags): ...to this. Update all uses.
9172 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9173 (mips_mips16_decl_p): Delete.
9174 (mips_nomips16_decl_p): Delete.
9175 (mips_get_compress_on_flags): New function.
9176 (mips_get_compress_off_flags): New function.
9177 (mips_get_compress_mode): New function.
9178 (mips_get_compress_on_name): New function.
9179 (mips_get_compress_off_name): New function.
9180 (mips_insert_attributes): Support multiple compression types.
9181 (mips_merge_decl_attributes): Likewise.
9182 (umips_12bit_offset_address_p): New function.
9183 (mips_start_function_definition): Emit .set micromips directive.
9184 (mips_call_may_need_jalx_p): New function.
9185 (mips_function_ok_for_sibcall): Add microMIPS support.
9186 (mips_print_operand_punctuation): Support short delay slots and
9188 (umips_swm_mask, umips_swm_encoding): New.
9189 (umips_build_save_restore): New function.
9190 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9191 (was_mips16_p): Remove.
9192 (old_compression_mode): New.
9193 (mips_set_compression_mode): New function.
9194 (mips_set_current_function): Add microMIPS support.
9195 (mips_option_override): Likewise.
9196 (umips_save_restore_pattern_p): New function.
9197 (umips_output_save_restore): New function.
9198 (umips_load_store_pair_p_1): New function.
9199 (umips_load_store_pair_p): New function.
9200 (umips_output_load_store_pair_1): New function.
9201 (umips_output_load_store_pair): New function.
9202 (umips_movep_target_p) New function.
9203 (mips_prepare_pch_save): Add microMIPS support.
9204 * config/mips/mips.h (TARGET_COMPRESSION): New.
9205 (TARGET_CPU_CPP_BUILTINS): Update macro
9206 to use new compression flags and to support microMIPS.
9207 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9208 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9209 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9210 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9211 (ASM_SPEC): Support mmicromips and mno-micromips.
9212 (M16STORE_REG_P): New macro.
9213 (MIPS_CALL): Support TARGET_MICROMIPS.
9214 (MICROMIPS_J): New macro.
9215 (mips_base_mips16): Rename this...
9216 (mips_base_compression_flags): ...to this.
9217 (UMIPS_12BIT_OFFSET_P): New macro.
9218 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9219 (MULTILIB_DIRNAMES): Likewise.
9221 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9224 * target-globals.c (save_target_globals): For init_reg_sets and
9225 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9227 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9229 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9230 * config/aarch64/t-aarch64
9231 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9233 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9236 * lra-constraints.c (process_alt_operands): Reload operand
9237 conflicting with earlier clobber only if no more other conflicting
9240 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9243 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9244 if not linking a shared library.
9246 2013-02-22 Seth LaForge <sethml@google.com>
9248 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9250 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9252 * config/arm/arm.md (split for extendsidi): Update condition.
9253 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9254 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9255 (qhs_zextenddi_cstr): Likewise.
9257 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9260 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9261 avoid signed wrapping.
9262 (expand_mult): Handle properly multiplication by
9263 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9264 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9265 in the compiler if coeff is HOST_WIDE_INT_MIN.
9266 (expand_divmod): Don't make ext_op1 static, change it's type to
9267 uhwi. Avoid undefined behavior in -INTVAL (op1).
9269 PR rtl-optimization/50339
9270 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9272 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9273 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9274 into splitting_ashiftrt field.
9275 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9277 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9280 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9283 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9284 are sure to go irrevocable.
9286 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9288 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9289 scalars are valid operands.
9291 2013-02-21 Martin Jambor <mjambor@suse.cz>
9293 PR tree-optimization/56310
9294 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9295 only matching indices and non-negative final offsets.
9296 (intersect_aggregates_with_edge): Pass src_idx to
9297 agg_replacements_to_vector. Pass src_idx insstead of index to
9298 intersect_with_agg_replacements.
9300 2013-02-21 Martin Jambor <mjambor@suse.cz>
9302 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9303 instead of hard-wired defaults.
9305 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9307 * doc/invoke.texi (MIPS Options): Update documentation of the
9308 floating-point multiply-accumulate instruction restrictions.
9310 2013-02-21 Kostya Serebryany <kcc@google.com>
9312 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9313 asan_shadow_offset on x86_64 linux.
9315 2013-02-21 Richard Biener <rguenther@suse.de>
9317 PR tree-optimization/56415
9319 2013-02-11 Richard Biener <rguenther@suse.de>
9321 PR tree-optimization/56273
9322 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9325 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9328 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9332 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9333 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9335 2013-02-20 Jan Hubicka <jh@suse.cz>
9337 PR tree-optimization/56265
9338 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9339 when target is referenced for first time.
9341 2013-02-20 Richard Biener <rguenther@suse.de>
9343 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9344 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9345 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9346 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9347 not return anything.
9348 (rename_ssa_copies): Do not remove unused locals.
9349 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9350 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9351 * passes.c (execute_function_todo): Do not schedule unused locals
9352 removal if cleanup_tree_cfg did something.
9353 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9354 about the number of removed locals.
9356 2013-02-20 Richard Biener <rguenther@suse.de>
9358 PR tree-optimization/56398
9359 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9361 2013-02-20 Martin Jambor <mjambor@suse.cz>
9363 PR tree-optimization/55334
9364 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9365 restricted pointers to arrays.
9367 2013-02-20 Richard Biener <rguenther@suse.de>
9368 Jakub Jelinek <jakub@redhat.com>
9370 PR tree-optimization/56396
9371 * tree-ssa-ccp.c (n_const_val): New static variable.
9372 (get_value): Return NULL for SSA names we don't have a lattice
9374 (ccp_initialize): Initialize n_const_val.
9375 * tree-ssa-copy.c (n_copy_of): New static variable.
9376 (init_copy_prop): Initialize n_copy_of.
9377 (get_value): Return NULL_TREE for SSA names we don't have a
9380 2013-02-20 Martin Jambor <mjambor@suse.cz>
9382 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9384 2013-02-20 Richard Biener <rguenther@suse.de>
9386 * genpreds.c (write_lookup_constraint): Do not compare first
9387 letter of the constraint again.
9389 2013-02-20 Richard Biener <rguenther@suse.de>
9391 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9393 (get_use_iv_cost): Terminate hashtable walk when coming across
9396 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9398 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9399 reassociation for avx2 targets.
9401 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9403 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9404 Add version check for v8.10.a to enable microblaze_has_clz
9405 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9406 version and TARGET_PATTERN_COMPARE check
9407 * config/microblaze/microblaze.md: New clzsi2 instruction
9409 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9411 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9412 function before branching.
9414 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9416 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9418 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9420 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9423 * sel-sched.c: Include ira.h.
9424 (implicit_clobber_conflict_p): New function.
9425 (moveup_expr): Use it.
9426 * Makefile.in (sel-sched.o): Depend on ira.h.
9428 2013-02-19 Richard Biener <rguenther@suse.de>
9430 PR tree-optimization/56384
9431 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9432 (vn_hash_type): Split out from ...
9433 (vn_hash_constant_with_type): ... here.
9434 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9435 (vn_phi_eq): Compare types from vn_phi_s structure.
9436 (vn_phi_lookup): Populate vn_phi_s type.
9437 (vn_phi_insert): Likewise.
9439 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9441 PR tree-optimization/56350
9442 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9443 if haven't found reduction or nested cycle operand, rather than
9444 asserting we must find it.
9446 PR tree-optimization/56381
9447 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9450 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9451 Jakub Jelinek <jakub@redhat.com>
9454 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9455 (swap_optab_enable): Same.
9456 (init_all_optabs): Use argument instead of global.
9457 * tree.h (struct tree_optimization_option): New field target_optabs.
9458 * expr.h (init_all_optabs): Add argument to prototype.
9459 (TREE_OPTIMIZATION_OPTABS): New.
9460 (save_optabs_if_changed): Protoize.
9461 * optabs.h: Declare this_fn_optabs.
9462 * optabs.c (save_optabs_if_changed): New.
9463 Declare this_fn_optabs.
9464 (init_optabs): Add argument to init_all_optabs() call.
9465 * function.c (invoke_set_current_function_hook): Handle per
9467 * function.h (struct function): New field optabs.
9468 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9469 optimization_current_node has changed.
9470 * target-globals.h (save_target_globals_default_opts): Protoize.
9471 * target-globals.c (save_target_globals_default_opts): New.
9473 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9476 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9477 registers %fr12 and %fr12R as call used.
9480 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9481 and HImode, require all displacements to be an integer multiple of
9483 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9484 only allow QImode and HImode when reload is in progress and strict is
9485 true. Likewise for symbolic addresses. Use base14_operand to check
9486 displacements in REG+BASE addresses.
9488 2013-02-18 Richard Biener <rguenther@suse.de>
9490 PR tree-optimization/56366
9491 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9492 handle sign-conversion of outer-loop initial induction value.
9494 2013-02-18 Richard Biener <rguenther@suse.de>
9497 * cfghooks.c (merge_blocks): If we merge a latch into another
9498 block adjust references to it.
9499 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9500 (verify_loop_structure): Verify that a recorded latch is in fact
9503 2013-02-18 Richard Biener <rguenther@suse.de>
9505 PR tree-optimization/56321
9506 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9507 order SSA name release and virtual operand unlinking.
9509 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9511 * config/microblaze/microblaze.md (save_stack_block): Define.
9512 (restore_stack_block): Likewise.
9514 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9516 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9517 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9518 * config/microblaze/microblaze.c (microblaze_option_override):
9519 Bail out early for PIC modes when target does not support PIC.
9521 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9523 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9524 Replace with a microblaze version.
9525 (microblaze_trampoline_init): Adapt for microblaze.
9526 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9529 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9530 Dodji Seketeli <dodji@redhat.com>
9533 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9534 (instrument_mem_region_access): Do not forget to always put
9535 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9536 0) statement, even for cases where either 'base' or 'base + len'
9537 are not instrumented -- because they have been previously
9538 instrumented. Simplify the logic by putting all the statements
9539 instrument 'base + len' inside a sequence, and then insert that
9540 sequence right before the current insertion point. Then, to
9541 instrument 'base + len', just get an iterator on that statement.
9542 And do not forget to update the pointer to iterator the function
9543 received as argument.
9545 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9547 PR rtl-optimization/56348
9548 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9550 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9552 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9553 (clean_graph_dump_file): Pass base to start_graph_dump.
9555 2013-02-14 Richard Henderson <rth@redhat.com>
9558 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9560 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9562 * collect2-aix.h: Define F_LOADONLY.
9564 2013-02-14 Richard Biener <rguenther@suse.de>
9567 * varasm.c (output_constant_def_1): Get the decl representing
9568 the constant as argument.
9569 (output_constant_def): Wrap output_constant_def_1.
9570 (make_decl_rtl): Use output_constant_def_1 with the decl
9571 representing the constant.
9572 (build_constant_desc): Optionally re-use a decl already
9573 representing the constant.
9574 (tree_output_constant_def): Adjust.
9576 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9579 * asan.c (instrument_builtin_call): Really put the length of the
9580 second source argument into src1_len.
9582 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9584 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9585 argument. If it is false, don't create edge from then_bb to
9587 (insert_if_then_before_iter): Pass true to it.
9588 (build_check_stmt): Pass false to it.
9589 (transform_statements): Flush hash table only on extended basic
9590 block boundaries, rather than at the beginning of every bb.
9591 Don't flush hash table on nonfreeing_call_p calls.
9592 * tree-flow.h (nonfreeing_call_p): New prototype.
9593 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9595 2013-02-13 David S. Miller <davem@davemloft.net>
9597 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9599 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9602 * ira.c (max_regno_before_ira): Move from ...
9604 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9607 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9609 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9611 2013-02-13 Richard Biener <rguenther@suse.de>
9614 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9615 globals in MEM_REFs.
9617 2013-02-13 Richard Biener <rguenther@suse.de>
9619 * loop-init.c (loop_optimizer_init): Clear loop state when
9620 re-initializing preserved loops.
9621 * loop-unswitch.c (unswitch_single_loop): Return whether
9622 we unswitched the loop. Do not verify loop state here.
9623 (unswitch_loops): When we unswitched a loop discover new loops.
9625 2013-02-13 Kostya Serebryany <kcc@google.com>
9627 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9629 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9631 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9633 Avoid instrumenting duplicated memory access in the same basic block
9634 * Makefile.in (asan.o): Add new dependency on hash-table.h
9635 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9636 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9637 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9638 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9639 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9640 (get_mem_ref_of_assignment): New functions.
9641 (get_mem_refs_of_builtin_call): Extract from
9642 instrument_builtin_call and tweak a little bit to make it fit with
9644 (instrument_builtin_call): Use the new
9645 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9646 of is_gimple_builtin_call.
9647 (instrument_derefs, instrument_mem_region_access): Insert the
9648 instrumented memory reference into the hash table.
9649 (maybe_instrument_assignment): Renamed instrument_assignment into
9650 this, and change it to advance the iterator when instrumentation
9651 actually happened and return true in that case. This makes it
9652 homogeneous with maybe_instrument_assignment, and thus give a
9653 chance to callers to be more 'regular'.
9654 (transform_statements): Clear the memory reference hash table
9655 whenever we enter a new BB, when we cross a function call, or when
9656 we are done transforming statements. Use
9657 maybe_instrument_assignment instead of instrumentation. No more
9658 need to special case maybe_instrument_assignment and advance the
9659 iterator after calling it; it's now handled just like
9660 maybe_instrument_call. Update comment.
9662 2013-02-13 Richard Biener <rguenther@suse.de>
9664 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9665 Fix loop discovery code.
9667 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9670 * lra-constraints.c (process_alt_operands): Match early clobber
9671 operand with itself. Check conflicts with earlyclobber only if
9672 the operand is not reloaded. Prefer to reload conflicting operand
9673 if earlyclobber and matching operands are the same.
9675 2013-02-12 Richard Biener <rguenther@suse.de>
9678 * lto-streamer-out.c (write_symbol): Do not output symbols
9679 for hard register variables.
9681 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9684 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9685 (umulsidi3_insn, mulsidi3_insn): New insns.
9687 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9689 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9690 (struct tune_params): Add vec_costs field.
9691 * config/arm/arm.c (arm_builtin_vectorization_cost)
9692 (arm_add_stmt_cost): New functions.
9693 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9694 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9695 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9696 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9697 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9698 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9699 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9701 2013-02-12 Richard Biener <rguenther@suse.de>
9704 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9705 decls again if possible.
9707 2013-02-12 Richard Biener <rguenther@suse.de>
9710 * tree-ssa.c (verify_ssa_name): Fix check, move
9711 SSA_NAME_IN_FREE_LIST check up.
9713 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9714 Steven Bosscher <steven@gcc.gnu.org>
9716 PR rtl-optimization/56151
9717 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9718 equal to op0 or op1, and last_insn pattern is CODE operation
9719 with MEM dest and one of the operands matches that MEM.
9721 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9723 * doc/extend.texi: Document Function Multiversioning and "default"
9724 parameter string to target attribute.
9725 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9726 target attribute parameter is "default".
9727 (ix86_compare_version_priority): Remove checks for target attribute.
9728 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9729 Remove check for target attribute equal to NULL. Add assert.
9730 (ix86_generate_version_dispatcher_body): Change error to sorry.
9732 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9733 Jack Howarth <howarth@bromo.med.uc.edu>
9734 Patrick Marlier <patrick.marlier@gmail.com>
9737 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9738 define ENDFILE_SPEC as TM_DESTRUCTOR.
9739 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9741 2013-02-11 Alexander Potapenko <glider@google.com>
9742 Jack Howarth <howarth@bromo.med.uc.edu>
9743 Jakub Jelinek <jakub@redhat.com>
9746 * config/darwin.c (cdtor_record): Rename ctor_record.
9747 (sort_cdtor_records): Rename sort_ctor_records.
9748 (finalize_dtors): New routine to sort destructors by
9749 priority before use in assemble_integer.
9750 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9752 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9754 PR rtl-optimization/56275
9755 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9756 offset is non-negative and less than cmode size before
9757 calling simplify_subreg.
9759 2013-02-11 Richard Biener <rguenther@suse.de>
9761 PR tree-optimization/56264
9762 * cfgloop.h (fix_loop_structure): Adjust prototype.
9763 * loop-init.c (fix_loop_structure): Return the number of
9764 newly discovered loops.
9765 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9766 are discovered, do a full loop-closed SSA rewrite.
9768 2013-02-11 Richard Biener <rguenther@suse.de>
9770 PR tree-optimization/56273
9771 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9773 (check_array_ref): Fix missing newline in dumps.
9774 (search_for_addr_array): Likewise.
9776 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9778 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9780 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9783 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9785 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9787 PR rtl-optimization/56246
9788 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9790 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9791 constraints are satisfied.
9793 2013-02-08 Jeff Law <law@redhat.com>
9796 * emit-rtl.c (reg_is_parm_p): New function.
9797 * regs.h (reg_is_parm_p): New prototype.
9798 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9799 callee-clobbered registers.
9801 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9804 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9805 If there is no implicit builtin declaration, just return NULL.
9807 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9809 * config/i386/sse.md (FMAMODEM): New mode iterator.
9810 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9811 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9813 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9815 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9816 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9817 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9819 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9821 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9822 (microblaze*-*-elf): Likewise.
9823 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9825 * config/microblaze/microblaze-c.c: Add builtin defines for
9826 _LITTLE_ENDIAN and _BIG_ENDIAN.
9827 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9828 add to TARGET_DEFAULT flags.
9829 Expand ASM_SPEC and LINK_SPEC.
9830 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9831 * config/microblaze/microblaze.md: Update extendsidi2 and
9832 movdi_internal instructions to use low-order / high-order reg
9834 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9835 options and inversemask / mask of LITTLE_ENDIAN.
9836 * config/microblaze/t-microblaze: Expand multilib options to
9837 include mlittle-endian (le) and update exceptions patterns.
9839 2013-02-08 Jakub Jelinek <jakub@redhat.com>
9841 PR rtl-optimization/56195
9842 * lra-constraints.c (get_reload_reg): Don't reuse regs
9843 if they have smaller mode than requested, if they have
9844 wider mode than requested, try to return a SUBREG.
9846 PR tree-optimization/56250
9847 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9848 if type is unsigned and code isn't MULT_EXPR.
9850 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9852 PR tree-optimization/56064
9853 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9854 bits according to mode.
9855 * fixed-value.h (fixed_from_double_int)
9856 (const_fixed_from_double_int): Adjust comments.
9858 2013-02-08 Richard Biener <rguenther@suse.de>
9861 * lto-streamer.h (struct data_in): Remove current_file, current_line
9862 and current_col members.
9863 * lto-streamer-out.c (lto_output_location): Stream changed bits
9864 en-block for efficiency.
9865 * lto-streamer-in.c (clear_line_info): Remove.
9866 (lto_input_location): Cache current file, line and column
9867 globally via local statics. Read changed bits en-block.
9868 (input_function): Do not call clear_line_info.
9869 (lto_read_body): Likewise.
9870 (lto_input_toplevel_asms): Likewise.
9872 2013-02-08 Michael Matz <matz@suse.de>
9874 PR tree-optimization/52448
9875 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9876 (nt_call_phase): New static.
9877 (add_or_mark_expr): Only mark accesses with newer phase than any
9879 (nonfreeing_call_p): New.
9880 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9881 (nt_fini_block): Keep blocks marked as visited.
9882 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9884 2013-02-08 Richard Biener <rguenther@suse.de>
9886 * ira.c (ira): Free broken dominator information.
9888 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9890 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9892 2013-02-08 Marek Polacek <polacek@redhat.com>
9894 * cfgloop.c (verify_loop_structure): Add more checking of headers.
9896 2013-02-08 Richard Biener <rguenther@suse.de>
9899 * cfgloop.h (flow_loops_find): Adjust.
9900 (bb_loop_header_p): Declare.
9901 * cfgloop.c (bb_loop_header_p): New function split out from ...
9902 (flow_loops_find): ... here. Adjust function signature,
9903 support incremental loop structure update.
9904 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9905 * cfgloopmanip.c (fix_loop_structure): Move ...
9906 * loop-init.c (fix_loop_structure): ... here.
9907 (apply_loop_flags): Split out from ...
9908 (loop_optimizer_init): ... here.
9909 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9910 in incremental mode, only remove dead loops here.
9912 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
9915 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9916 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9917 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9918 (*round<mode>3.libgcc): New insns for fixed-modes.
9919 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9920 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9921 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9922 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9923 implementations. Define to __builtin_avr_absFX,
9924 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9925 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9926 __builtin_avr_countlsFX, respectively.
9927 * config/avr/avr-c.c (target.h): Include it.
9928 (enum avr_builtin_id): New enum.
9929 (avr_resolve_overloaded_builtin): New static function.
9930 (avr_register_target_pragmas): Use it to set
9931 targetm.resolve_overloaded_builtin.
9932 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9933 tree nodes used by DEF_BUILTIN.
9934 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9935 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9936 <AVR_BUILTIN_xxBITS>: Same.
9938 2013-02-08 Richard Biener <rguenther@suse.de>
9940 * cfgloop.c (verify_loop_structure): Properly handle
9941 a loop exiting to another loop header.
9942 * ira-int.h (ira_loops): Remove.
9943 * ira.c (ira_loops): Remove.
9944 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9945 (do_reload): Use loop_optimizer_finalize.
9946 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9947 number_of_loops to access the loop tree.
9948 (more_one_region_p): Likewise.
9949 (finish_loop_tree_nodes): Likewise.
9950 (rebuild_regno_allocno_maps): Likewise.
9951 (mark_loops_for_removal): Likewise.
9952 (mark_all_loops_for_removal): Likewise.
9953 (remove_unnecessary_regions): Likewise.
9954 (ira_build): Likewise.
9955 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9957 2013-02-08 Richard Biener <rguenther@suse.de>
9959 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9960 * ipa-pure-const.c (analyze_function): Avoid calling
9961 mark_irreducible_loops twice.
9962 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
9964 2013-02-07 David S. Miller <davem@davemloft.net>
9966 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9968 * var-tracking.c (vt_add_function_parameter): Test the presence of
9969 HAVE_window_save properly and do not remap argument registers when
9970 we have a leaf function.
9972 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
9975 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9977 * config/i386/i386.c (ix86_print_operand): Ditto.
9979 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9981 * lra-constraints.c (process_alt_operands): Fix recently added comment.
9983 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9985 PR rtl-optimization/56225
9986 * lra-constraints.c (process_alt_operands): Check that reload hard
9987 reg can hold value for strict_low_part.
9989 2013-02-07 Jakub Jelinek <jakub@redhat.com>
9992 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9993 dwarf2out_end_function.
9994 (in_first_function_p, maybe_at_text_label_p,
9995 first_loclabel_num_not_at_text_label): New variables.
9996 (dwarf2out_var_location): In the first function find out
9997 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
9998 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10001 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
10003 PR rtl-optimization/56178
10004 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10005 SUBREG of a register. Tidy up related block of code.
10006 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10007 note if the source is a register or a SUBREG of a register.
10009 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10012 * config/rs6000/rs6000.md (ptrm): New mode attr.
10013 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10014 call_value_indirect_aix<pttrsize>,
10015 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10018 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10020 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10021 if -bnortl. Convert to strcmp and strncmp.
10023 2013-02-07 Alan Modra <amodra@gmail.com>
10026 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10027 addresses won't wrap when offsetting.
10028 (rs6000_secondary_reload): Provide secondary reloads needed for
10029 wrapping LO_SUM addresses.
10031 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10033 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10034 MACH, just __MACH__.
10036 2013-02-06 Richard Biener <rguenther@suse.de>
10038 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10039 instead of calling fix_loop_structure.
10041 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10043 PR middle-end/56217
10044 * omp-low.c (use_pointer_for_field): Return false if
10045 lower_send_shared_vars doesn't generate any copy-out code.
10047 2013-02-06 Tom de Vries <tom@codesourcery.com>
10049 PR rtl-optimization/56131
10050 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10051 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10052 of the label is NULL. Add comment.
10054 2013-02-05 Jakub Jelinek <jakub@redhat.com>
10056 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10059 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10060 (STATIC_LIBTSAN_LIBS): Likewise.
10061 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10062 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10063 is defined, don't add anything else beyond that.
10064 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10065 (LINK_COMMAND_SPEC): Use them.
10067 PR tree-optimization/56205
10068 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10069 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10070 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10072 2013-02-05 Richard Biener <rguenther@suse.de>
10074 PR tree-optimization/53342
10075 PR tree-optimization/53185
10076 * tree-vectorizer.h (vect_check_strided_load): Remove.
10077 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10078 not disallow peeling for vectorized strided loads.
10079 (vect_check_strided_load): Make static and simplify.
10080 (vect_analyze_data_refs): Adjust.
10081 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10082 correctly when vectorizing strided loads.
10084 2013-02-05 Richard Biener <rguenther@suse.de>
10086 * doc/install.texi: Refer to ISL, not PPL.
10088 2013-02-05 Jan Hubicka <jh@suse.cz>
10090 PR tree-optimization/55789
10091 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10093 2013-02-05 Jan Hubicka <jh@suse.cz>
10095 PR tree-optimization/55789
10096 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10097 the dead call anyway.
10099 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10102 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10104 2013-02-04 Alexander Potapenko <glider@google.com>
10105 Jack Howarth <howarth@bromo.med.uc.edu>
10106 Jakub Jelinek <jakub@redhat.com>
10109 * config/darwin.c (sort_ctor_records): Stabilized qsort
10110 on constructor priority by using original position.
10111 (finalize_ctors): New routine to sort constructors by
10112 priority before use in assemble_integer.
10113 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10115 2013-02-04 Jakub Jelinek <jakub@redhat.com>
10118 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10119 about visibility on artificial decls.
10120 * config/sol2.c (solaris_assemble_visibility): Likewise.
10122 2013-02-04 Kai Tietz <ktietz@redhat.com>
10125 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10126 argument and improve checking of return-argument types for 16-byte
10128 (ix86_function_value_1): Add additional valtype argument on call
10129 of function_value_64.
10130 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10131 handling infunction_value_64 function.
10133 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10135 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10137 2013-02-04 Richard Biener <rguenther@suse.de>
10139 PR tree-optimization/56188
10140 * tree-ssa-structalias.c (label_visit): Consider case with
10141 initially non-empty points-to set.
10142 (perform_var_substitution): Dump node mapping and clean up.
10144 2013-02-04 Richard Guenther <rguenther@suse.de>
10147 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10148 node prevail as last resort.
10149 (lto_symtab_merge_decls): Remove guard on LTRANS here.
10150 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10152 2013-02-04 Richard Biener <rguenther@suse.de>
10154 PR tree-optimization/56113
10155 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10157 (equiv_class_lookup_or_add): ... this.
10158 (label_visit): Adjust and fix error in previous patch.
10159 (perform_var_substitution): Adjust.
10161 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10163 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10164 * config/sh/sh4-300.md: Likewise.
10165 * config/sh/sh4a.md: Likewise.
10166 * config/sh/constraints.md: Likewise.
10167 * config/sh/sh.md: Likewise.
10168 * config/sh/netbsd-elf.h: Likewise.
10169 * config/sh/predicates.md: Likewise.
10170 * config/sh/sh-protos.h: Likewise.
10171 * config/sh/ushmedia.h: Likewise.
10172 * config/sh/linux.h: Likewise.
10173 * config/sh/sh.c: Likewise.
10174 * config/sh/superh.h: Likewise.
10175 * config/sh/elf.h: Likewise.
10176 * config/sh/sh4.md: Likewise.
10177 * config/sh/sh.h: Likewise.
10179 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10181 * config/pa/constraints.md: Adjust unused letters. Change "T"
10182 constraint to match_test floating_point_store_memory_operand().
10183 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10184 (base14_operand): New.
10185 (floating_point_store_memory_operand): New.
10186 (integer_store_memory_operand): Revise to use base14_operand and
10187 reg_plus_base_memory_operand.
10188 (move_dest_operand): Allow symbolic_memory_operands.
10189 (symbolic_memory_operand): Check for LO_SOM.
10190 (symbolic_operand): Change default case to break.
10191 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10192 CONST_DOUBLE values to be reloaded by putting them into memory when
10193 the destination is a floating point register.
10194 (movdf): Remove code to handle CONST_DOUBLE.
10196 (reload_indf_r1): New.
10197 (reload_insf_r1): New.
10198 Consistently use "Q" and "T" constraints with integer and floating
10199 point move instructions, respectively.
10200 (movdi): Remove FAIL.
10201 Change predicate for source operand unamed DImode move from
10202 general_operand to move_src_operand.
10203 (umulsidi3): Change predicate for destination operand to
10205 Likewise for similar unamed patterns.
10206 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10207 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10208 (hppa_legitimize_address): Simplify mask calculation.
10209 (pa_emit_move_sequence): Revised handling of secondary reloads from
10210 REG+D addresses for floating point loads and stores. Directly handle
10211 loading CONST0_RTX (mode) to a floating point register.
10212 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10213 to floating point registers. Don't restrict secondary reloads to
10214 floating point registers to integer modes. Revise some comments and
10216 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10217 (pa_legitimate_address_p): New.
10218 (pa_legitimize_reload_address): New.
10219 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10220 (STRICT_REG_OK_FOR_BASE_P): New.
10221 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10222 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10224 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10225 Andrew Dixie <andrewd@gentrack.com>
10227 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10230 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10232 * expmed.c (extract_bit_field_1): Pass the full width of the
10233 structure to get_best_reg_extraction_insn.
10235 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10238 * configure.ac (use_cxa_atexit): Add AIX.
10239 * configure: Regenerate.
10241 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10243 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10246 * final.c (need_profile_function): New variable.
10247 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10248 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10249 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10250 notes, targetm.asm_out.function_prologue doesn't emit anything,
10251 HAVE_prologue and profiler should be emitted before prologue,
10252 set need_profile_function instead of emitting it.
10253 (final_scan_insn): If need_profile_function, emit
10254 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10255 NOTE_INSN_FUNCTION_BEG note.
10257 2013-02-01 Richard Henderson <rth@redhat.com>
10259 * config/rs6000/rs6000.md (smulditi3): New.
10262 * config/alpha/alpha.md (umulditi3): New.
10264 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10266 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10267 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10269 2013-02-01 Richard Biener <rguenther@suse.de>
10271 PR tree-optimization/56113
10272 * tree-ssa-structalias.c (label_visit): Reduce work for
10273 single-predecessor nodes.
10275 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10277 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10278 range isn't testing for zero.
10280 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10282 PR middle-end/56113
10283 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10285 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10286 Nick Clifton <nickc@redhat.com>
10288 * config/v850/constraints.md (Q): Define as a memory constraint.
10289 * config/v850/predicates.md (label_ref_operand): New predicate.
10290 (e3v5_shift_operand): New predicate.
10291 (ior_operator): New predicate.
10292 * config/v850/t-v850: Add e3v5 multilib.
10293 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10294 (v850_gen_movdi): Prototype.
10295 * config/v850/v850.c: Add support for e3v5 architecture.
10296 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10298 (construct_save_jarl): Add e3v5 long JARL support.
10299 (v850_adjust_insn_length): New function. Adjust length of call
10300 insns when using e3v5 instructions.
10301 (v850_gen_movdi): New function: Generate instructions to move a
10303 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10304 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10305 (TARGET_USE_FPU): Enable for e3v5.
10306 (CONST_OK_FOR_W): New macro.
10307 (ADJUST_INSN_LENGTH): Define.
10308 * config/v850/v850.md (UNSPEC_LOOP): Define.
10309 (attr cpu): Add v850e3v5.
10310 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10311 (movdi): New pattern.
10312 (movdi_internal): New pattern.
10313 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10314 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10315 (cstoresf4): Likewise.
10316 (cstoredf4): Likewise.
10317 (insv): New pattern.
10318 (rotlso3_a): New pattern.
10319 (rotlsi3_b): New pattern
10320 (rotlsi3_v850e3v5): New pattern.
10321 (doloop_begin): New pattern.
10322 (fix_loop_counter): New pattern.
10323 (doloop_end): New pattern.
10324 (branch_normal): Add e3v5 long branch support.
10325 (branch_invert): Likewise.
10326 (branch_z_normal): Likewise.
10327 (branch_z_invert): Likewise.
10328 (branch_nz_normal): Likewise.
10329 (branch_nz_invert): Likewise.
10330 (call_internal_short): Add e3v5 register-indirect JARL support.
10331 (call_internal_long): Likewise.
10332 (call_value_internal_short): Likewise.
10333 (call_value_internal_long): Likewise.
10334 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10335 (mloop): New option.
10336 * config.gcc: Add support for configuring v840e3v5 target.
10337 * doc/invoke.texi: Document new v850 specific command line options.
10339 2013-01-31 Paul Koning <ni1d@arrl.net>
10343 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10344 children if parent is a class.
10345 (prune_unused_types_prune): Don't add DW_AT_declaration.
10347 2013-01-31 Richard Biener <rguenther@suse.de>
10349 PR tree-optimization/56157
10350 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10351 match up operand with SLP child.
10353 2013-01-31 Jason Merrill <jason@redhat.com>
10356 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10357 parameters the first time.
10358 (gen_scheduled_generic_parms_dies): Check completeness here.
10360 2013-01-31 Richard Biener <rguenther@suse.de>
10362 PR middle-end/53073
10363 * common.opt (faggressive-loop-optimizations): New flag,
10364 enabled by default.
10365 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10366 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10367 infer_loop_bounds_from_undefined by it.
10369 2013-01-31 Richard Biener <rguenther@suse.de>
10371 PR tree-optimization/56150
10372 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10373 visit virtual operands.
10374 (find_uses_to_rename_bb): Likewise.
10376 2013-01-31 Richard Biener <rguenther@suse.de>
10378 PR tree-optimization/56150
10379 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10380 mixed store non-store stmts.
10382 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10385 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10386 LIBASAN_EARLY_SPEC is defined.
10387 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10388 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10390 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10393 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10394 invalid args instead of ICEing on it.
10395 (ix86_valid_target_attribute_tree): Return error_mark_node if
10396 ix86_valid_target_attribute_inner_p failed.
10397 (ix86_valid_target_attribute_p): Return false only if
10398 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10399 target("default") attribute.
10400 (sorted_attr_string): Change argument from const char * to tree,
10401 merge in all target attribute arguments rather than just one.
10402 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10403 instead of free. Avoid using strcat.
10404 (ix86_mangle_function_version_assembler_name): Mangle
10405 target("default") as if no target attribute is present. Adjust
10406 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10407 instead of xmalloc and XDELETEVEC instead of free.
10408 (ix86_function_versions): Don't return true if one of the decls
10409 doesn't have target attribute. If they don't and one of the decls
10410 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10411 sorted_attr_string caller. Use XDELETEVEC instead of free.
10412 (ix86_supports_function_versions): Remove.
10413 (make_name): Fix up formatting.
10414 (make_dispatcher_decl): Remove resolver_name and its initialization.
10415 Avoid leaking memory.
10416 (is_function_default_version): Return true if there is
10417 target("default") attribute rather than no target attribute at all.
10418 (make_resolver_func): Avoid leaking memory.
10419 (ix86_generate_version_dispatcher_body): Likewise.
10420 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10421 * target.def (supports_function_versions): Remove.
10422 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10423 * doc/tm.texi: Regenerated.
10425 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10427 PR rtl-optimization/56144
10428 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10429 for values with side effects.
10431 2013-01-30 Richard Biener <rguenther@suse.de>
10433 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10434 (sparseset_pop): Likewise.
10435 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10436 to be able to use quick_push in the worker loop.
10438 2013-01-30 Marek Polacek <polacek@redhat.com>
10440 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10442 2013-01-30 Richard Biener <rguenther@suse.de>
10445 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10447 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10449 PR tree-optimization/56064
10450 * fixed-value.c (fixed_from_double_int): New function.
10451 * fixed-value.h (fixed_from_double_int): New prototype.
10452 (const_fixed_from_double_int): New static inline function.
10453 * fold-const.c (native_interpret_fixed): New static function.
10454 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10455 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10456 (native_encode_fixed): New static function.
10457 (native_encode_expr) <FIXED_CST>: Use it.
10458 (native_interpret_int): Move double_int worker code to...
10459 * double-int.c (double_int::from_buffer): ...this new static method.
10460 * double-int.h (double_int::from_buffer): Prototype it.
10462 2013-01-30 Richard Biener <rguenther@suse.de>
10464 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10465 New pointer-map and obstack.
10466 (init_alias_vars): Allocate pointer-map and obstack.
10467 (delete_points_to_sets): Free them.
10468 (find_what_var_points_to): Cache result.
10469 (find_what_p_points_to): Adjust for changed interface of
10470 find_what_var_points_to.
10471 (compute_points_to_sets): Likewise.
10472 (ipa_pta_execute): Likewise.
10474 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10476 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10477 * configure: Regenerate.
10478 * config.in: Regenerate.
10479 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10480 #nobits/#progbits if supported.
10482 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10485 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10486 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10487 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10489 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10491 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10492 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10494 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10496 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10497 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10499 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10501 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10503 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10504 * config/arm/cortex-a7.md: New bypasses using
10505 arm_mac_accumulator_is_result.
10507 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10509 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10510 (cortex_a7_neon_mla): Likewise.
10511 (cortex_a7_fpfmad): New reservation.
10512 (cortex_a7_fpmacs): Use ffmas and update required units.
10513 (cortex_a7_fpmuld): Update required units and latency.
10514 (cortex_a7_fpmacd): Likewise.
10515 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10516 (cortex_a7_neon). Likewise.
10517 (bypass) Update participating units.
10519 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10521 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10522 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10524 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10525 (vfp_fmul): Use ffmad.
10526 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10527 (cortex_r4_fmacd): Use ffmad.
10528 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10529 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10530 (cortex_a9_fmacd): Use ffmad.
10531 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10532 (cortex_a8_vfp_macd): Use ffmad.
10533 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10534 (cortex_a5_fpmacd): Use ffmad.
10535 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10536 (cortex_a15_vfp_macd): Use ffmad.
10537 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10539 2013-01-29 Jason Merrill <jason@redhat.com>
10542 * varasm.c (default_assemble_visibility): Don't warn about
10543 visibility on artificial decls.
10545 2013-01-29 Richard Biener <rguenther@suse.de>
10547 PR tree-optimization/56113
10548 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10550 (label_visit): Free duplicate bitmaps and record the leader instead.
10551 (perform_var_substitution): Adjust.
10553 2013-01-29 Richard Biener <rguenther@suse.de>
10555 PR tree-optimization/55270
10556 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10557 the CFG, schedule loops for fixup.
10559 2013-01-29 Nick Clifton <nickc@redhat.com>
10561 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10564 2013-01-28 Leif Ekblad <leif@rdos.net>
10566 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10567 * config/i386/i386.h (TARGET_RDOS): New macro.
10568 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10569 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10570 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10571 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10572 DEFAULT_LARGE_SECTION_THRESHOLD.
10573 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10574 * config/i386/rdos.h: New file.
10575 * config/i386/rdos64.h: New file.
10577 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10580 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10583 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10585 PR rtl-optimization/56117
10586 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10587 call cselib_lookup_from_insn on the MEM before calling
10588 add_insn_mem_dependence.
10590 2013-01-28 Richard Biener <rguenther@suse.de>
10592 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10593 to a stmt that didn't have one.
10594 (copy_phis_for_bb): Likewise for PHI arguments.
10595 (copy_debug_stmt): Likewise for debug stmts.
10597 2013-01-28 Richard Biener <rguenther@suse.de>
10599 PR tree-optimization/56034
10600 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10601 (partition_builtin_p): Adjust.
10602 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10603 it is the last partition.
10604 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10605 up the vertex for the definition.
10606 (classify_partition): Classify whether a partition is a
10607 PKIND_REDUCTION, thus has uses outside of the loop.
10608 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10609 Merge all PKIND_REDUCTION partitions into the last partition.
10610 (tree_loop_distribution): Seed partitions from reductions as well.
10612 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10614 PR tree-optimization/56125
10615 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10616 pow(x,c) into sqrt(x) * powi(x, n/2) or
10617 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10618 optimizing for size.
10619 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10620 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10623 PR tree-optimization/56094
10624 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10625 to UNKNOWN_LOCATION while gimplifying expr.
10627 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10630 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10631 operand 0 in movabs insn template for -masm=intel asm alternative.
10632 (*movabs<mode>_2): Ditto for operand 1.
10634 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10637 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10640 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10642 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10645 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10647 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10648 Undef to avoid warning.
10650 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10652 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10653 * configure: Regenerate.
10655 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10657 PR tree-optimization/56098
10658 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10659 for stmts with volatile ops.
10660 (cond_store_replacement): Don't optimize if assign has volatile ops.
10661 (cond_if_else_store_replacement_1): Don't optimize if either
10662 then_assign or else_assign have volatile ops.
10663 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10666 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10668 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10670 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10672 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10673 missing ':' in asm example.
10675 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10677 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10678 entries into lane and laneq entries.
10679 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10680 Remove AdvSIMD scalar modes.
10681 (aarch64_sq<r>dmulh_laneq<mode>): New.
10682 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10684 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10685 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10686 * config/aarch64/iterators.md (VCOND): New.
10689 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10692 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10693 Add NULL LIBNAME argument to existing definitions.
10694 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10695 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10696 * config/avr/avr.c (DEF_BUILTIN): Same.
10697 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10698 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10699 implementation is available (DECL_ASSEMBLER_NAME is set).
10700 (avr_fold_absfx): New static function.
10701 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10702 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10703 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10704 AVR_BUILTIN_ABSLLK.
10705 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10706 (abshk, absk, abslk, absllk): Provide as static inline functions.
10708 2013-01-25 Marek Polacek <polacek@redhat.com>
10710 PR tree-optimization/56035
10711 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10713 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10715 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10716 (*movtf_internal_rex64): Add (!o,C) alternative
10717 (*movxf_internal_rex64): Ditto.
10718 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10720 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10722 * doc/invoke.texi: fix typo.
10723 * doc/objc.texi: fix typo.
10725 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10727 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10728 for the first two alternatives.
10730 2013-01-24 Diego Novillo <dnovillo@google.com>
10732 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10733 (ggc-zone.o): Remove.
10734 * configure.ac: Remove option --with-gc.
10735 * configure: Re-generate.
10736 * doc/install.texi: Remove documentation for --with-gc.
10737 * gengtype.c (write_enum_defn): Remove. Update all users.
10738 (write_Types_process_field): Remove generation of gt_e_* argument.
10739 (output_type_enum): Remove. Update all users.
10740 (write_enum_defn): Remove. Update all users.
10741 (enum alloc_zone): Remove. Update all users.
10742 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10743 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10744 Update all callers.
10745 (struct ptr_data): Remove field TYPE. Update all users.
10746 (gt_pch_note_object): Remove argument TYPE. Update all users.
10747 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10749 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10750 (struct alloc_zone): Remove.
10751 (ggc_internal_alloc_zone_stat): Remove.
10752 (ggc_internal_cleared_alloc_zone_stat): Remove.
10753 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10754 (ggc_pch_count_object): Remove last argument. Update all users.
10755 (ggc_pch_alloc_object): Remove last argument. Update all users.
10756 (struct alloc_zone): Remove.
10757 * ggc-zone.c: Remove.
10758 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10759 (struct alloc_zone): Remove.
10760 (ggc_alloc_typed_stat): Remove.
10761 (ggc_alloc_typed): Remove.
10762 (ggc_splay_alloc): Remove first argument.
10763 (rtl_zone): Remove. Update all users.
10764 (tree_zone): Remove. Update all users.
10765 (tree_id_zone): Remove. Update all users.
10766 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10767 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10768 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10769 * tree-ssanames.c: Remove references to zone allocator in comments.
10771 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10773 * config/avr/avr.c (avr_out_fract): Make register numbers that
10774 might be outside of source operand signed.
10776 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10778 * config/i386/constraints.md (Yf): New constraint.
10779 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10780 of f constraint to conditionaly disable x87 register preferences.
10781 (*movdf_internal): Ditto.
10782 (*movsf_internal): Ditto.
10784 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10786 PR inline-asm/55934
10787 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10788 that have operands with impossible constraints.
10789 Add a FIXME for a speed-up opportunity.
10790 * lra-constraints.c (process_alt_operands): Verify that a class
10791 selected from constraints on asms is valid for the operand mode.
10792 (curr_insn_transform): Remove incorrect comment.
10794 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10796 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10797 TOC operand is a valid symbol ref in the constant pool.
10799 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10801 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10803 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10806 * config/avr/stdfix.h: New file.
10807 * t-avr (stdfix-gcc.h): New rule to build it.
10808 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10810 2013-01-23 Kostya Serebryany <kcc@google.com>
10812 * config/darwin.h: remove dependency on
10813 CoreFoundation (asan on Mac OS).
10815 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10818 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10819 instead of cmpdi_operand for first comparison operand.
10820 Don't assert that comparison operands aren't both constants.
10822 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10824 * doc/install.texi (Downloading the Source): Update references to
10825 downloading separate components.
10827 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10829 * doc/extend.texi (__int128): Improve grammar.
10831 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
10834 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10835 alternative to (o,r).
10836 (*movdi_internal_rex64): Remove (!o,n) alternative.
10837 (DImode immediate->memory splitter): Remove.
10838 (DImode immediate->memory peephole2): Remove.
10839 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10840 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10841 alternative to (!o,*r).
10842 (*movtf_internal_sse): New pattern.
10843 (*movxf_internal_rex64): New pattern.
10844 (*movxf_internal): Disable for TARGET_64BIT.
10845 (*movdf_internal_rex64): Remove (!o,F) alternative.
10847 2013-01-22 Jakub Jelinek <jakub@redhat.com>
10849 PR middle-end/56074
10850 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10851 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10852 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10853 stmt locations where LOCATION_LOCUS of the stmt location is
10854 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10857 * config/i386/i386.md (UNSPEC_STOS): New.
10858 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10859 *strsetqi_1): Add UNSPEC_STOS.
10861 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10864 * doc/invoke.texi: Remove left over -Wsynth example.
10866 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10868 PR tree-optimization/56051
10869 * fold-const.c (fold_binary_loc): Don't fold
10870 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10871 a narrowing conversion, or widening conversion from signed
10874 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10876 PR rtl-optimization/56023
10877 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10878 dependent on debug instruction.
10880 2013-01-21 Martin Jambor <mjambor@suse.cz>
10882 PR middle-end/56022
10883 * function.c (allocate_struct_function): Call
10884 invoke_set_current_function_hook earlier.
10886 2013-01-21 Jakub Jelinek <jakub@redhat.com>
10888 * reload1.c (init_reload): Only initialize reload_obstack
10889 during the first call.
10891 2013-01-21 Marek Polacek <polacek@redhat.com>
10893 * cfgloop.c (verify_loop_structure): Fix up grammar.
10895 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10897 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10898 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10900 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10903 * config/arm/marvell-pj4.md: Update copyright year.
10904 Fix up use of alu to alu_reg and simple_alu_imm.
10906 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
10908 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10910 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10913 * lra-constraints.c (curr_insn_transform): Don't reuse original
10914 insn for secondary memory move when memory mode should be different.
10916 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10918 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10919 atomic_storedi_1): New patterns.
10921 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10923 btver2 pipeline descriptions.
10924 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10926 * config/i386/i386.md (btver2_decode): New type attributes.
10927 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
10929 * config/i386/btver2.md: New file describing btver2 pipelines.
10931 2013-01-19 Andrew Pinski <apinski@cavium.com>
10933 PR tree-optimization/52631
10934 * tree-ssa-sccvn (visit_use): Before looking up the original
10935 statement, try looking up the simplified expression.
10937 2013-01-19 Anthony Green <green@moxielogic.com>
10939 * config/moxie/moxie.c (moxie_expand_prologue): Set
10940 current_function_static_stack_size.
10942 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10944 PR tree-optimization/56029
10945 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10946 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10948 2013-01-18 Sharad Singhai <singhai@google.com>
10950 PR tree-optimization/55995
10951 * dumpfile.c (dump_loc): Print location only if available.
10952 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10954 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10957 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10958 secondary memory move.
10959 (inherit_reload_reg): Use rclass instead of cl for
10960 check_secondary_memory_needed_p.
10962 2013-01-18 Jakub Jelinek <jakub@redhat.com>
10964 PR middle-end/56015
10965 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
10966 the case where writing real complex part of target modifies op1.
10968 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10970 * config/aarch64/aarch64-simd.md
10971 (aarch64_vcond_internal<mode>): Handle unordered cases.
10972 * config/aarch64/iterators.md (v_cmp_result): New.
10974 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10975 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10977 * config/arm/marvell-pj4.md: New file.
10978 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10979 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10980 (generic_vfp): Likewise.
10981 * config/arm/arm-cores.def: Add marvell-pj4.
10982 * config/arm/arm-tune.md: Regenerate.
10983 * config/arm/arm-tables.opt: Regenerate.
10984 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10985 * doc/invoke.texi: Document marvell-pj4.
10987 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10989 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10991 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
10996 * var-tracking.c (negative_power_of_two_p): New.
10997 (global_get_addr_cache, local_get_addr_cache): New.
10998 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10999 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11001 (vt_stack_offset_p): Remove.
11002 (vt_canon_true_dep): Always canonicalize loc's address.
11003 (clobber_overlapping_mems): Make sure we have a MEM.
11004 (local_get_addr_clear_given_value): New.
11005 (val_reset): Clear local cached entries.
11006 (compute_bb_dataflow): Create and release the local cache.
11007 Disable duplicate MEMs clobbering.
11008 (emit_notes_in_bb): Clobber MEMs likewise.
11009 (vt_emit_notes): Create and release the local cache.
11010 (vt_initialize, vt_finalize): Create and release the global
11011 cache, respectively.
11012 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11014 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11016 PR libmudflap/53359
11017 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11018 not found in the symtab.
11020 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11023 PR rtl-optimization/55547
11024 PR rtl-optimization/53827
11027 * alias.c (offset_overlap_p): New, factored out of...
11028 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11029 the conservative special case for symbolic constants. Don't
11030 adjust zero sizes on alignment.
11032 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11034 PR rtl-optimization/52573
11035 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11036 REG_UNUSED for the same register.
11038 2013-01-17 Richard Biener <rguenther@suse.de>
11039 Marek Polacek <polacek@redhat.com>
11041 PR rtl-optimization/55833
11042 * loop-unswitch.c (unswitch_loops): Move loop verification...
11043 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11044 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11045 Set it to true when we're removing a loop from hierarchy tree in
11046 an irreducible region.
11047 (fix_bb_placements): Adjust caller.
11048 (fix_loop_placements): Likewise.
11050 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
11052 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11053 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11054 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11055 Remove ID. Adjust comments.
11056 * config/avr/avr-c.c (avr_builtin_name): Remove.
11057 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11058 * config/avr/avr.c (avr_tolower): New static function.
11059 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11060 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11061 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11064 2013-01-17 Jan Hubicka <jh@suse.cz>
11066 PR tree-optimization/55273
11067 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11069 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
11072 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11073 store through atomic_store<mode>_1.
11074 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11076 2013-01-17 Martin Jambor <mjambor@suse.cz>
11078 PR tree-optimizations/55264
11079 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11080 for virtual methods.
11081 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11082 virtual methods before inlining is over.
11083 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11085 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11088 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11090 PR rtl-optimization/56005
11091 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11092 pending reads for prefetch.
11094 2013-01-16 Ian Bolton <ian.bolton@arm.com>
11096 * config/aarch64/aarch64.md
11097 (*cstoresi_neg_uxtw): New pattern.
11098 (*cmovsi_insn_uxtw): New pattern.
11099 (*<optab>si3_uxtw): New pattern.
11100 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11101 (*<optab>si3_insn_uxtw): New pattern.
11102 (*bswapsi2_uxtw): New pattern.
11104 2013-01-16 Richard Biener <rguenther@suse.de>
11106 * tree-inline.c (tree_function_versioning): Remove set but
11107 never used variable.
11109 2013-01-16 Richard Biener <rguenther@suse.de>
11111 PR tree-optimization/55964
11112 * tree-flow.h (rename_variables_in_loop): Remove.
11113 (rename_variables_in_bb): Likewise.
11114 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11115 (copy_loop_before): Adjust and delete update-ssa status.
11116 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11117 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
11118 (rename_variables_in_loop): Remove.
11119 (slpeel_update_phis_for_duplicate_loop): Likewise.
11120 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11121 use available cfg machinery instead of duplicating it.
11122 Update PHI nodes and perform poor-mans SSA update here.
11123 (slpeel_tree_peel_loop_to_edge): Adjust.
11125 2013-01-16 Richard Biener <rguenther@suse.de>
11127 PR tree-optimization/54767
11128 PR tree-optimization/53465
11129 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11130 (vrp_visit_phi_node): For PHI arguments coming via backedges
11131 drop all symbolical range information.
11132 (execute_vrp): Compute backedges.
11134 2013-01-16 Richard Biener <rguenther@suse.de>
11136 * doc/install.texi: Update CLooG and ISL requirements to
11139 2013-01-16 Christian Bruel <christian.bruel@st.com>
11142 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11143 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11144 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11146 2013-01-16 DJ Delorie <dj@redhat.com>
11148 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11149 (UNSPECV_SP_SWITCH_E): New.
11150 (sp_switch_1): Change to an unspec.
11151 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11154 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
11156 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11157 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11158 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11159 (expand_mem_thread_fence): Ditto.
11160 (expand_mem_signal_fence): Ditto.
11161 (expand_atomic_load): Ditto.
11162 (expand_atomic_store): Ditto.
11164 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
11166 PR rtl-optimization/55547
11167 PR rtl-optimization/53827
11170 * alias.c (memrefs_conflict_p): Set sizes to negative after
11173 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11176 * function.c (thread_prologue_and_epilogue_insns): Always
11177 add crtl->drap_reg to set_up_by_prologue.set, even if
11178 stack_realign_drap is false.
11180 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11182 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11183 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11184 *call): Fix indention.
11186 2013-01-15 Tom de Vries <tom@codesourcery.com>
11189 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11192 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11194 PR rtl-optimization/55153
11195 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11197 2013-01-15 Martin Jambor <mjambor@suse.cz>
11199 PR tree-optimization/55920
11200 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11201 accesses as grp_to_be_debug_replaced.
11203 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11205 PR tree-optimization/55920
11206 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11207 there is non-useless type conversion needed from debug rhs to lhs,
11208 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11210 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11211 Mikael Pettersson <mikpe@it.uu.se>
11214 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11216 (ASM_OUTPUT_CASE_LABEL): Remove.
11217 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11218 * final.c (shorten_branches): Update alignment of labels before
11219 jump tables if CASE_VECTOR_SHORTEN_MODE.
11221 2013-01-15 Richard Biener <rguenther@suse.de>
11224 * system.h: Do not include gmp.h for building host tools.
11226 2013-01-15 Richard Biener <rguenther@suse.de>
11228 PR middle-end/55882
11229 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11230 account for bitpos when computing alignment.
11232 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11234 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11235 (ix86_target_macros_internal): Likewise.
11237 * config/i386/i386.c (m_CORE2I7): Removed.
11238 (m_CORE_HASWELL): New macro.
11239 (m_CORE_ALL): Likewise.
11240 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11241 (initial_ix86_arch_features): Likewise.
11242 (processor_target_table): Initializations for Core avx2.
11243 (cpu_names): New names "core-avx2".
11244 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11245 PROCESSOR_CORE_HASWELL.
11246 (ix86_issue_rate): New case.
11247 (ia32_multipass_dfa_lookahead): Likewise.
11248 (ix86_sched_init_global): Likewise.
11250 * config/i386/i386.h (TARGET_HASWELL): New macro.
11251 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11252 (processor_type): New PROCESSOR_HASWELL.
11254 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11256 PR tree-optimization/55955
11257 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11258 *SHIFT_EXPR and *ROTATE_EXPR codes.
11260 PR tree-optimization/48766
11261 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11262 -ftrapv disable -fwrapv.
11264 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11267 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11268 etc. to 1 and not to __flash.
11269 Use LL suffix for __INT24_MAX__ with -mint8.
11270 Use ULL suffix for __UINT24_MAX__ with -mint8.
11272 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11274 * config/avr/avr-arch.h
11275 (struct base_arch_s): Use typedef avr_arch_t instead.
11276 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11277 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11278 * config/avr/avr.c: Same.
11279 * config/avr/avr-devices.c: Same.
11280 * config/avr/driver-avr.c: Same.
11281 * config/avr/gen-avr-mmcu-texi.c: Same.
11282 * config/avr/avr-mcus.def: Adjust comment.
11284 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11286 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11287 * config/aarch64/iterators.md (VALLDI): New.
11289 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11290 Andi Kleen <ak@linux.intel.com>
11293 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11294 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11297 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11299 * config/avr/avr-stdint.h: Remove trailing blanks.
11300 * config/avr/avr-log.h: Same.
11301 * config/avr/avr-arch.h: Same.
11302 * config/avr/avr-devices.c: Same.
11303 * config/avr/avr-dimode.md: Same.
11304 * config/avr/predicates.md: Same.
11305 * config/avr/avr-c.c: Same. And fix typo.
11307 * config/avr/avr-protos.h: Same. And:
11308 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11309 (init_cumulative_args): Rename to avr_init_cumulative_args.
11310 (expand_prologue): Rename to avr_expand_prologue.
11311 (expand_epilogue): Rename to avr_expand_epilogue.
11312 (adjust_insn_length): Rename to avr_adjust_insn_length.
11313 (notice_update_cc): Rename to avr_notice_update_cc.
11314 (final_prescan_insn): Rename to avr_final_prescan_insn.
11315 * config/avr/avr.c: Same.
11316 * config/avr/avr.h: Same.
11317 * config/avr/avr.md: Remove trailing blanks.
11318 (prologue): Use avr_expand_prologue.
11319 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11321 2013-01-14 Richard Biener <rguenther@suse.de>
11323 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11324 verify_location, collect_subblocks): New functions.
11325 (verify_gimple_in_cfg): Verify that locations only reference
11326 BLOCKs in the functions BLOCK tree.
11328 2013-01-14 Richard Biener <rguenther@suse.de>
11330 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11332 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11334 (insert_out_of_ssa_copy_on_edge): Likewise.
11335 (rewrite_close_phi_out_of_ssa): Likewise.
11336 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11338 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11339 propagated constants.
11340 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11343 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11345 * config/avr/avr-modes.def: Add GPL copyright notice.
11347 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11349 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11350 MEMMODEL_MASK to determine memory model.
11351 (atomic_store<mode>): Ditto from operands[2].
11352 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11354 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11357 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11358 (fold_gimple_assign): Don't call unshare_expr here.
11359 (fold_ctor_reference): Call unshare_expr.
11361 2013-01-13 Terry Guo <terry.guo@arm.com>
11363 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11364 * doc/fragments.texi: Document MULTILIB_REUSE.
11365 * gcc.c (multilib_reuse): New internal spec.
11366 (set_multilib_dir): Also search multilib from multilib_reuse.
11367 * genmultilib (tmpmultilib3): Refactor code.
11368 (tmpmultilib4): Ditto.
11369 (multilib_reuse): New multilib argument.
11371 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11373 * Makefile.in: Update copyright.
11375 2013-01-12 Tom de Vries <tom@codesourcery.com>
11377 PR middle-end/55890
11378 * calls.c (expand_call): Check if arg_nr is valid.
11380 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11382 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11383 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11384 documentation. Add missing '__' in front of
11385 __builtin_ia32_packssdw256.
11387 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11390 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11391 NO_REGS for larl operands.
11392 (s390_reload_larl_operand): Use s390_load_address instead of
11395 2013-01-11 Richard Biener <rguenther@suse.de>
11397 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11398 (verify_node_sharing): ... here.
11399 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11401 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11403 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11404 Substitute TREECHECKING.
11405 * configure: Regenerate.
11406 * Makefile.in (TREECHECKING): New.
11408 2013-01-11 Richard Guenther <rguenther@suse.de>
11410 PR tree-optimization/44061
11411 * tree-vrp.c (extract_range_basic): Compute zero as
11412 value-range for __builtin_constant_p of function parameters.
11414 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11416 Update copyright years.
11418 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11420 PR rtl-optimization/55672
11421 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11422 const to be eliminable.
11424 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11426 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11427 * configure: Regenerate.
11429 2013-01-10 Richard Biener <rguenther@suse.de>
11431 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11433 2013-01-10 Richard Biener <rguenther@suse.de>
11436 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11437 locations for virtual PHI arguments.
11438 (rewrite_update_phi_arguments): Likewise.
11440 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11442 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11445 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11447 PR tree-optimization/55921
11448 * tree-complex.c (expand_complex_asm): New function.
11449 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11451 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11454 * config/s390/s390.c (s390_symref_operand_p)
11455 (s390_loadrelative_operand_p): Merge the two functions.
11456 (s390_check_qrst_address, print_operand_address): Add parameters
11457 to s390_loadrelative_operand_p invokation.
11458 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11459 (s390_reload_larl_operand, s390_secondary_reload): Use
11460 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11461 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11463 2013-01-09 Mike Stump <mikestump@comcast.net>
11465 * dse.c (record_store): Remove unnecessary assert.
11467 2013-01-09 Jan Hubicka <jh@suse.cz>
11469 PR tree-optimization/55569
11470 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11471 * cfgloop.h (scale_loop_profile): Likewise.
11473 2013-01-09 Jan Hubicka <jh@suse.cz>
11476 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11478 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11480 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11482 PR middle-end/55114
11483 * expr.h (maybe_emit_group_store): Declare.
11484 * expr.c (maybe_emit_group_store): New function.
11485 * builtins.c (expand_builtin_int_roundingfn): Call it.
11486 (expand_builtin_int_roundingfn_2): Likewise.
11488 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11490 PR rtl-optimization/55829
11491 * lra-constraints.c (match_reload): Add code for absent output.
11492 (curr_insn_transform): Add code for reloads of matched inputs
11495 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11497 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11498 attribute of movddup insn to DF.
11499 (*vec_interleave_lowv2df): Ditto.
11500 (vec_dupv2df): Ditto.
11502 2013-01-09 Jan Hubicka <jh@suse.cz>
11504 PR tree-optimiation/55875
11505 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11506 EVERY_ITERATION parameter.
11507 (number_of_iterations_exit): Check if exit is executed every iteration.
11508 (idx_infer_loop_bounds): Similarly here.
11509 (n_of_executions_at_most): Simplify
11510 to only test for cases where statement is dominated by the
11511 particular bound; handle correctly the "postdominance" test.
11512 (scev_probably_wraps_p): Use max loop iterations info
11513 as a global bound first.
11515 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11516 Nick Clifton <nickc@redhat.com>
11518 * config/v850/v850.md (cbranchsf4): New pattern.
11519 (cstoresf4): New pattern.
11520 (cbranchdf4): New pattern.
11521 (cstoredf4): New pattern.
11522 (movsicc): Disallow floating point comparisons.
11523 (cmpsf_le_insn): Fix order of operators.
11524 (cmpsf_lt_insn): Likewise.
11525 (cmpsf_eq_insn): Likewise.
11526 (cmpdf_le_insn): Likewise.
11527 (cmpdf_lt_insn): Likewise.
11528 (cmpdf_eq_insn): Likewise.
11529 (cmpsf_ge_insn): Use LE comparison.
11530 (cmpdf_ge_insn): Likewise.
11531 (cmpsf_gt_insn): Use LT comparison.
11532 (cmpdf_gt_insn): Likewise.
11533 (cmpsf_ne_insn): Delete pattern.
11534 (cmpdf_ne_insn): Delete pattern.
11535 * config/v850/v850.c (v850_gen_float_compare): Use
11536 gen_cmpdf_eq_insn for NE comparison.
11537 (v850_float_z_comparison_operator)
11538 (v850_float_nz_comparison_operator): Move from here ...
11539 * config/v850/predicates.md: ... to here. Move GT and GE
11540 comparisons into v850_float_z_comparison_operator.
11541 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11543 (v850_float_nz_comparison_operator): Likewise.
11545 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11547 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11548 with calls to gen_insvsi/gen_insvdi.
11550 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11552 * config/i386/i386.c (initial_ix86_tune_features): Set up
11553 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11555 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11556 Jakub Jelinek <jakub@redhat.com>
11558 PR tree-optimization/48189
11559 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11560 If nitercst is 0, don't predict the exit edge.
11562 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11564 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11565 in asm_fprintf with reg_names.
11566 (aarch64_print_operand_address): Likewise.
11567 (aarch64_return_addr): Likewise.
11568 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11570 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11572 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11573 (INT_U6_BITS): Likewise.
11574 * config/pa/predicates.md (uint6_operand): New predicate.
11575 (shift5_operand, shift6_operand): Likewise.
11576 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11578 (lshrdi3): Use shift6_operand.
11579 (shrpsi4, shrpdi4): New insn patterns.
11580 (extzv): Delete expander.
11581 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11582 predicates in unamed zero extract patterns. Tighten common constraint.
11583 (extv): Delete expander.
11584 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11585 predicates in unamed sign extract patterns. Tighten common constraint.
11586 (insv): Delete expander.
11587 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11588 predicates in unamed insert patterns. Tighten common constraint.
11589 Change uint32_operand predicate to uint6_operand predicate in unamed
11590 DImode pattern to insert constant values of type 1...1xxxx.
11592 2013-01-04 Jan Hubicka <jh@suse.cz>
11594 PR tree-optimization/55823
11595 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11598 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11599 Uros Bizjak <ubizjak@gmail.com>
11601 PR rtl-optimization/55845
11602 * df-problems.c (can_move_insns_across): Stop scanning at
11603 volatile_insn_p source instruction or give up if
11604 across_from .. across_to range contains any volatile_insn_p
11607 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11609 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11610 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11612 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11613 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11615 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11618 * asan.c (asan_clear_shadow): New function.
11619 (asan_emit_stack_protection): Use it.
11621 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11623 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11624 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11625 with tab instead of space.
11627 2013-01-08 Nick Clifton <nickc@redhat.com>
11629 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11630 register bank 0 at the start of an interrupt handler.
11631 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11634 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11636 * config/aarch64/aarch64-simd.md
11637 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11638 (aarch64_simd_bsl): Likewise.
11639 (aarch64_vcond_internal<mode>): Likewise.
11640 (vcond<mode><mode>): Likewise.
11641 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11642 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11644 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11646 * config/aarch64/aarch64-builtins.c
11647 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11649 2013-01-08 Martin Jambor <mjambor@suse.cz>
11652 * tree-sra.c (analyze_access_subtree): Return true also after
11653 potentially creating a debug-only replacement.
11655 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11657 PR middle-end/55890
11658 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11660 PR tree-optimization/54120
11661 * tree-vrp.c (range_fits_type_p): Don't allow
11662 src_precision < precision from signed vr to unsigned_p
11663 if vr->min or vr->max is negative.
11664 (simplify_float_conversion_using_ranges): Test can_float_p
11665 against CODE_FOR_nothing.
11667 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11668 Richard Biener <rguenther@suse.de>
11670 PR middle-end/55851
11671 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11672 types instead of just INTEGER_TYPE types.
11674 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11676 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11679 2013-01-07 Steve Ellcey <sellcey@mips.com>
11682 * config/mips/mips.opt: Change mad to mmad to match documentation.
11684 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11687 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11688 .progmemx.data now.
11690 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11693 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11694 (avr_addrspace_t): Add .section_name field.
11695 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11697 (avr_addrspace): Same. Initialize .section_name. Remove last
11698 NULL entry. Put __memx into .progmemx.data.
11699 (progmem_section_prefix): Remove.
11700 (avr_asm_init_sections): No need to initialize progmem_section.
11701 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11702 section name prefix.
11703 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11704 retrieve the progmem section.
11705 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11706 boundary to run over avr_addrspace[].
11707 (avr_register_target_pragmas): Ditto.
11709 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11711 * varasm.c (output_constant_def_contents): For asan_protect_global
11712 protected strings, adjust DECL_ALIGN if needed, before testing for
11714 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11715 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11717 (output_object_block): For asan protected decls, emit asan padding
11718 after their contents.
11719 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11720 (asan_finish_file): Test it here instead.
11722 2013-01-07 Nick Clifton <nickc@redhat.com>
11723 Matthias Klose <doko@debian.org>
11724 Doug Kwan <dougkwan@google.com>
11725 H.J. Lu <hongjiu.lu@intel.com>
11728 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11730 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11732 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11734 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11736 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11738 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11741 * doc/install.texi (Cross-Compiler-Specific Options): Document
11744 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11746 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11747 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11748 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11749 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11750 vqmovun_high_s64): Fix source operand number and update copyright.
11752 2013-01-07 Richard Biener <rguenther@suse.de>
11754 PR middle-end/55890
11755 * gimple.h (gimple_call_builtin_p): New overload.
11756 * gimple.c (validate_call): New function.
11757 (gimple_call_builtin_p): Likewise.
11758 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11759 Use gimple_call_builtin_p.
11760 (find_func_clobbers): Likewise.
11761 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11762 (strlen_optimize_stmt): Likewise.
11764 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11766 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11767 (vld1q_dup_*): Likewise.
11768 (vld1_*): Likewise.
11769 (vld1q_*): Likewise.
11770 (vld1_lane_*): Likewise.
11771 (vld1q_lane_*): Likewise.
11773 2013-01-07 Richard Biener <rguenther@suse.de>
11775 * lto-streamer.h (LTO_minor_version): Bump to 2.
11777 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11779 * config/aarch64/aarch64-protos.h
11780 (aarch64_const_double_zero_rtx_p): Rename to...
11781 (aarch64_float_const_zero_rtx_p): ...this.
11782 (aarch64_float_const_representable_p): New.
11783 (aarch64_output_simd_mov_immediate): Likewise.
11784 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11785 move immediate case.
11786 * config/aarch64/aarch64.c
11787 (aarch64_const_double_zero_rtx_p): Rename to...
11788 (aarch64_float_const_zero_rtx_p): ...this.
11789 (aarch64_print_operand): Allow printing of new constants.
11790 (aarch64_valid_floating_const): New.
11791 (aarch64_legitimate_constant_p): Check for valid floating-point
11793 (aarch64_simd_valid_immediate): Likewise.
11794 (aarch64_vect_float_const_representable_p): New.
11795 (aarch64_float_const_representable_p): Likewise.
11796 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11797 (aarch64_output_simd_mov_immediate): New.
11798 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11799 (*movdf_aarch64): Likewise.
11800 * config/aarch64/constraints.md (Ufc): New.
11801 (Y): call aarch64_float_const_zero_rtx.
11802 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11804 2013-01-07 Richard Biener <rguenther@suse.de>
11806 PR tree-optimization/55888
11807 PR tree-optimization/55862
11808 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11809 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11810 not if it is contained therein.
11812 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11814 * config/avr/t-avr: Typo.
11816 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11819 * config/avr/t-avr: Don't automatically rebuild
11820 $(srcdir)/config/avr/t-multilib
11821 $(srcdir)/config/avr/avr-tables.opt
11822 $(srcdir)/doc/avr-mmcu.texi
11823 (avr-mcus): New phony target to build them on request.
11824 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11825 * avr/avr-mcus.def: Adjust comments.
11827 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
11829 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11831 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11833 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11835 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11837 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11839 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
11841 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11842 to generate profiling.
11843 * config/rs6000/aix64.h (LIB_SPEC): Same.
11845 2013-01-04 Andrew Pinski <apinski@cavium.com>
11847 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11849 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11851 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
11853 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11855 (ix86_expand_move): Ditto.
11856 (ix86_zero_extend_to_Pmode): Ditto.
11857 (ix86_expand_call): Ditto.
11858 (ix86_expand_special_args_builtin): Ditto.
11859 (ix86_expand_builtin): Ditto.
11861 2013-01-04 Richard Biener <rguenther@suse.de>
11863 PR tree-optimization/55862
11864 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11865 translating them through PHI nodes.
11867 2013-01-04 Martin Jambor <mjambor@suse.cz>
11869 PR tree-optimization/55755
11870 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11871 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11873 2013-01-04 Marek Polacek <polacek@redhat.com>
11875 PR middle-end/55859
11876 * opts.c (default_options_optimization): Clarify error message.
11878 2013-01-04 Richard Biener <rguenther@suse.de>
11880 PR middle-end/55863
11881 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11884 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11887 * config/pa/pa.md (movsi): Revert previous change.
11888 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11891 2013-01-03 Richard Henderson <rth@redhat.com>
11893 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11894 after eliminating TLS symbols.
11896 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
11899 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11900 * graphite-poly.c (debug_gmp_value): Likewise.
11902 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
11905 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11906 selected code model, define __code_mode_small__, __code_model_medium__,
11907 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11908 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11909 xchg temporary register with %k. Declare temporary register as
11911 [__x86_64__]: For medium and large code models, preserve %rbx register.
11913 2013-01-03 Richard Biener <rguenther@suse.de>
11915 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
11916 (dump_subscript): Adjust.
11917 (finalize_ddr_dependent): Do not dump redundant info.
11918 (analyze_siv_subscript): Adjust.
11919 (subscript_dependence_tester): Likewise.
11920 (compute_affine_dependence): Likewise.
11922 2013-01-03 Richard Biener <rguenther@suse.de>
11925 2013-01-03 Richard Biener <rguenther@suse.de>
11927 PR tree-optimization/55857
11928 * tree-vect-stmts.c (vectorizable_load): Do not setup
11929 re-alignment for invariant loads.
11931 2013-01-02 Richard Biener <rguenther@suse.de>
11933 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
11934 invariant load do not generate a vector load from the scalar location.
11936 2013-01-03 Richard Biener <rguenther@suse.de>
11938 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11939 for not vectorizing.
11940 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11941 not build INDIRECT_REFs, call get_name once only.
11942 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11943 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11945 2013-01-03 Richard Biener <rguenther@suse.de>
11947 PR tree-optimization/55857
11948 * tree-vect-stmts.c (vectorizable_load): Do not setup
11949 re-alignment for invariant loads.
11951 2013-01-03 Richard Biener <rguenther@suse.de>
11954 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11955 prefer a built-in decl.
11957 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11959 * gcc.c (process_command): Update copyright notice dates.
11960 * gcov.c (print_version): Likewise.
11961 * gcov-dump.c (print_version): Likewise.
11963 PR rtl-optimization/55838
11964 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11965 iv0.step, iv1.step and step.
11967 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11968 Marc Glisse <marc.glisse@inria.fr>
11970 PR tree-optimization/55832
11971 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11972 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11973 integer_{one,zero}_node.
11975 2013-01-03 Jakub Jelinek <jakub@redhat.com>
11978 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11979 * var-tracking.c (reverse_op): Don't add reverse ops to
11980 VALUEs that have already
11981 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
11983 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11985 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11987 2013-01-02 Teresa Johnson <tejohnson@google.com>
11989 * dumpfile.c (dump_loc): Print filename with location.
11990 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11991 new location_t parameter to emit complete unroll message with
11992 new dump framework.
11993 (canonicalize_loop_induction_variables): Compute loops location
11994 and pass to try_unroll_loop_completely.
11995 * loop-unroll.c (report_unroll_peel): New function.
11996 (peel_loops_completely): Use new dump format with location
11997 for main dumpfile message, and invoke report_unroll_peel on success.
11998 (decide_unrolling_and_peeling): Ditto.
11999 (decide_peel_once_rolling): Remove old dumpfile message subsumed
12000 by report_unroll_peel.
12001 (decide_peel_completely): Ditto.
12002 (decide_unroll_constant_iterations): Ditto.
12003 (decide_unroll_runtime_iterations): Ditto.
12004 (decide_peel_simple): Ditto.
12005 (decide_unroll_stupid): Ditto.
12006 * cfgloop.c (get_loop_location): New function.
12007 * cfgloop.h (get_loop_location): Declare.
12009 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12011 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12014 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12016 PR middle-end/55198
12017 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12018 BLKmode objects when EXPAND_MEMORY is specified.
12020 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12022 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12024 (fold_builtin_cpu): Do not share cpu model decls across statements.
12026 2013-01-02 Jason Merrill <jason@redhat.com>
12029 * tree.c (build_array_type_1): Revert earlier change.
12031 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12033 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12035 * config/aarch64/aarch64-tune.md: Re-generate.
12037 2013-01-02 Richard Biener <rguenther@suse.de>
12039 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12040 invariant load do not generate a vector load from the scalar location.
12042 2013-01-02 Richard Biener <rguenther@suse.de>
12045 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12046 * configure: Regenerate.
12048 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12050 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12051 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12052 (expand_builtin_int_roundingfn_2): Keep the original target around
12053 for the fallback case.
12055 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12057 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12058 to be clear for sign changes.
12060 2013-01-01 Jan Hubicka <jh@suse.cz>
12062 * ipa-inline-analysis.c: Fix formatting.
12064 2013-01-01 Jakub Jelinek <jakub@redhat.com>
12066 PR tree-optimization/55831
12067 * tree-vect-loop.c (get_initial_def_for_induction): Use
12068 gsi_after_labels instead of gsi_start_bb.
12070 Copyright (C) 2013 Free Software Foundation, Inc.
12072 Copying and distribution of this file, with or without modification,
12073 are permitted in any medium without royalty provided the copyright
12074 notice and this notice are preserved.