1 2012-11-07 Kaz Kojima <kkojima@gcc.gnu.org>
4 * mode-switching.c (create_pre_exit): Set short_block if there
7 2012-11-07 Martin Jambor <mjambor@suse.cz>
9 * lto-cgraph.c: Include tree-pass.h.
10 (lto_output_node): Stream node->ipa_transforms_to_apply.
11 (input_node): Likewise.
12 * tree-pass.h (passes_by_id): Declare.
13 (passes_by_id_size): Likewise.
14 * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies.
16 2012-11-07 Jan Hubicka <jh@suse.cz>
18 * ipa-inline-analysis.c (true_predicate, single_cond_predicate,
19 reset_inline_edge_summary): Fix
21 (account_size_time): Bump up the limit on number of size/time entries to
23 (estimate_function_body_sizes): Work in reverse postorder.
25 2012-11-07 David S. Miller <davem@davemloft.net>
29 * config/sparc/constraints.md ("U"): Delete.
30 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
31 * config/sparc/sync.md: Likewise.
33 * doc/md.texi: Sync sparc constraint documentation with reality.
35 2012-11-07 Jakub Jelinek <jakub@redhat.com>
37 * config/i386/i386.c (ix86_avx_u128_mode_after): Don't
38 look for reg in CALL operand.
41 * tree-flow.h (propagate_threaded_block_debug_into): New prototype.
42 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No
44 * tree-ssa-loop-ch.c (copy_loop_headers): Use it.
46 2012-11-06 Sterling Augustine <saugustine@google.com>
48 * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
50 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
51 Richard Henderson <rth@redhat.com>
53 * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New.
54 * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New.
55 (struct tm_region): Add tm_state, restart_block,
56 original_transaction_was_outer.
57 (tm_region_init_0): Initialize them.
58 (collect_bb2reg, get_bb_regions_instrumented): New.
59 (tm_log_emit_save_or_restores): Merge into ...
60 (expand_transaction): ... here.
61 (generate_tm_state, propagate_tm_flags_out): New.
62 (execute_tm_mark): Avoid processing blocks more than once.
63 (split_bb_make_tm_edge): Split out from ...
64 (make_tm_edge): ... here. And merge the rest into ...
65 (expand_block_edges): ... here.
66 (execute_tm_edges): Avoid processing blocks more than once.
67 (ipa_uninstrument_transaction): New.
68 (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa.
69 (ipa_tm_execute): Init and free original_copy_tables.
70 * trans-mem.h (PR_MULTIWAYCODE): New.
71 * tree-cfg.c (make_edges): Use EDGE_TM_ABORT.
73 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
75 * cfghooks.c (copy_bbs): Handle a null loop_father.
77 * cgraph.c (cgraph_debug_gimple_stmt): Handle a null
78 current_function_decl.
80 2012-11-06 Richard Henderson <rth@redhat.com>
82 * tree-ssa-tail-merge.c (find_duplicate): Do not consider
83 is_tm_ending_fndecl calls as mergable.
85 2012-11-06 Sterling Augustine <saugustine@google.com>
86 Cary Coutant <ccoutant@google.com>
88 * common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
89 * doc/invoke.texi (Debugging Options): Document them.
90 * gcc.c (replace_extension_spec_func): New function.
91 (ASM_FINAL_SPEC): Adjust.
92 (static_spec_functions): Add new field for replace-extension.
93 (check_live_switch): Adjust comment. Add case for 'g'.
94 * opts.c (finish_options): Set x_debug_generate_pub_sections based on
95 x_dwarf_split_debug_info.
96 (common_handle_option): Add case for OPT_gsplit_dwarf.
97 * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
98 (dw_val_struct): Add val_entry pointer.
99 * dwarf2out.c (debug_skeleton_info_section,
100 debug_skeleton_abbrev_section, debug_addr_section,
101 debug_skeleton_line_section, debug_str_offsets_section): New globals.
102 (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
103 (indirect_string_node): New field index.
104 (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
106 (addr_table_entry): New structure and type.
107 (dw_loc_list_struct): Add field begin_entry.
108 (new_loc_desc): Initialize val_entry.
109 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
110 Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
111 (build_cfa_loc): Initialize val_entry.
112 (AT_index, add_addr_table_entry, remove_addr_table_entry,
113 add_AT_lbl_id): New functions.
114 (add_AT_addr, add_AT_range_list): New parameter force_direct.
115 (output_die_abbrevs): New function.
116 (add_ranges_by_labels): New parameter force_direct.
117 (output_line_info): New parameter prologue_only.
118 (dtprel_bool): New enum with dtprel_false and dtprel_true.
119 (dw_addr_op, new_addr_loc_descr): New functions.
120 (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
121 DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
122 DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
123 DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
124 DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
125 DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
126 DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
127 DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
128 DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
129 DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
130 DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
131 (DEBUG_STR_SECTION_FLAGS): Adjust.
132 (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
133 DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
134 DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
135 DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
136 DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
138 (debug_skeleton_abbrev_section_label, debug_addr_section_label,
139 debug_skeleton_line_section_label, debug_skeleton_info_section_label):
140 New global variables.
141 (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
142 add_AT_data8): Initialize val_entry.
143 (add_AT_low_high_pc): New parameter force_direct. Handle
144 dwarf_split_debug_info.
145 (set_indirect_string, find_AT_string_form): New functions.
146 (AT_string_form): Adjust to call find_AT_string_from.
147 (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
148 Initialize val_entry.
149 (addr_index_table): New global variable.
150 (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
151 init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
152 remove_loc_list_addr_table_entries): New functions.
153 (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
154 force_direct. Handle dwarf_split_debug_info.
155 (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
156 add_AT_offset): Initialize val_entry.
157 (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
158 (size_of_die): Handle dwarf_split_debug_info.
159 (size_of_aranges, value_format): Call AT_class. Check AT_index.
160 (output_die_abbrevs): New function.
161 (output_abbrev_section): Call output_die_abbrevs.
162 (new_loc_list): Initialize begin_entry.
163 (output_loc_list): Handle dwarf_split_debug_info.
164 (output_range_list_offset, output_loc_list_offset,
165 output_attr_index_or_value, ): New functions.
166 (output_die): Fix call to dw2_asm_output_data. Call
167 output_attr_index_or_value and output_range_list_offset.
168 Adjust logic around dw_val_class_str.
169 (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
170 output_skeleton_debug_sections): New functions.
171 (output_comdat_type_unit, output_pubname, output_aranges): Handle
172 dwarf_split_debug_info.
173 (add_ranges_by_labels): New parameter force_direct.
174 (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
175 (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
176 place of generic integer.
177 (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
178 gen_call_site_die, gen_subprogram_die, gen_variable_die,
179 add_high_low_attributes): Adjust calls to add_AT_lbl_id.
180 (output_macinfo_op): Adjust indirect_string_logic.
181 (save_macinfo_strings): New function.
182 (output_macinfo): Adjust.
183 (dwarf2out_init): Handle dwarf_split_debug_info.
184 (index_string, output_index_string_offset, output_index_string): New
186 (output_indirect_string): Adjust.
187 (output_indirect_strings, output_addr_table_entry, output_addr_table):
189 (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
190 and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call
191 remove_loc_list_addr_table_entries and remove_addr_table_entry.
192 (index_location_lists): New function.
193 (dwarf2out_finish): Handle dwarf_split_debug_info. New variable
194 main_comp_unit_die. Adjust calls to add_AT_low_high_pc,
195 add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
196 save_macinfo_strings and output_indirect_strings.
198 2012-11-06 Gerald Pfeifer <gerald@pfeifer.com>
200 * config/i386/i386.c (make_dispatcher_decl): Guard with
201 ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
203 2012-11-06 Jan Hubicka <jh@suse.cz>
205 * ipa-inline-analysis.c (estimate_function_body_sizes,
206 inline_update_overall_summary): Cap time calculations.
208 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
210 * config/i386/i386.c (ix86_init_machine_status): Do not
211 explicitly clear tls_descriptor_call_expanded_p again.
213 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
216 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
217 as read and written by the instruction.
219 2012-11-06 Alexandre Oliva <aoliva@redhat.com>
222 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
223 Use a stack vector before allocating a pointer set.
225 2012-11-06 Martin Jambor <mjambor@suse.cz>
227 * ipa-prop.c (ipa_get_param_decl_index_1): New function.
228 (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1.
229 (ipa_populate_param_decls): Accept descriptors parameter rather
231 (load_from_unmodified_param): Likewise.
232 (ipa_load_from_parm_agg_1): Likewise.
233 (ipa_load_from_parm_agg): Extract descriptors from info.
234 (compute_complex_assign_jump_func): Likewise.
235 (ipa_analyze_indirect_call_uses): Likewise.
237 2012-11-06 Jan Hubicka <jh@suse.cz>
239 * ipa-inline.c (compute_uninlined_call_time): Return gcov_type.
240 (compute_inlined_call_time): Watch overflows.
241 (relative_time_benefit): Compute in gcov_type.
243 2012-11-06 Jan Hubicka <jh@suse.cz>
245 * cfgloopanal.c (get_loop_hot_path): New function.
246 * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
247 NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
248 NUM_BRANCHES_ON_HOT_PATH.
249 (tree_estimate_loop_size): Compute the new values.
250 (try_unroll_loop_completely): Disable unrolling of loops with only
251 calls or too many branches.
252 (tree_unroll_loops_completely): Deal also with outer loops of hot loops.
253 * cfgloop.h (get_loop_hot_path): Declare.
254 * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
255 * invoke.texi (max-peel-branches): Document.
257 2012-11-06 Jan Hubicka <jh@suse.cz>
259 * ipa-pure-const.c (check_stmt): Fix debug info formatting.
261 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
263 * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
264 (ix86_instantiate_decls): New function.
265 (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
266 stack slot instead of SLOT_VIRTUAL.
267 <case IX86_BUILTIN_STMXCSR>: Ditto.
268 (assign_386_stack_local): Do not assert when virtual slot is valid.
269 * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
270 * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
271 (truncxf<mode>2): Ditto.
272 (floatunssi<mode>2): Ditto.
273 (isinf<mode>2): Ditto.
274 * config/i386/sync.md (atomic_load<mode>): Ditto.
275 (atomic_store<mode>): Ditto.
277 2012-11-06 Jan Hubicka <jh@suse.cz>
279 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound,
280 vect_do_peeling_for_alignment): Fix loop bound computation.
281 * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds.
283 2012-11-06 Oleg Endo <olegendo@gcc.gnu.org>
286 * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for
287 ops larger than SImode.
288 * config/sh/sh.md (rotcl, *rotcl): New insns and splits.
289 (ashldi3_k): Convert to insn_and_split and use new rotcl insn.
291 2012-11-06 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
294 * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete.
295 (emit_vzero): Add prototype.
296 (ix86_mode_entry): Likewise.
297 (ix86_mode_exit): Likewise.
298 (ix86_emit_mode_set): Likewise.
300 * config/i386/i386.c (typedef struct block_info_def): Delete.
301 (define BLOCK_INFO): Delete.
302 (check_avx256_stores): Add checking for MEM_P.
303 (move_or_delete_vzeroupper_2): Delete.
304 (move_or_delete_vzeroupper_1): Delete.
305 (move_or_delete_vzeroupper): Delete.
306 (ix86_maybe_emit_epilogue_vzeroupper): Delete.
307 (function_pass_avx256_p): Delete.
308 (ix86_function_ok_for_sibcall): Remove sibcall disabling.
309 (nit_cumulative_args): Remove initialization of of avx256 fields of
311 (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation.
312 (ix86_expand_epilogue): Likewise.
313 (ix86_avx_u128_mode_needed): New.
314 (ix86_i387_mode_needed): Rename from ix86_mode_needed.
315 (ix86_mode_needed): New.
316 (ix86_avx_u128_mode_after): New.
317 (ix86_mode_after): New.
318 (ix86_avx_u128_mode_entry): New.
319 (ix86_mode_entry): New.
320 (ix86_avx_u128_mode_exit): New.
321 (ix86_mode_exit): New.
322 (ix86_emit_mode_set): New.
323 (ix86_expand_call): Delete vzeroupper generation.
324 (ix86_split_call_vzeroupper): Delete.
325 (ix86_init_machine_status): Initialize optimize_mode_switching.
326 (ix86_expand_special_args_builtin): Change.
327 (ix86_reorg): Delete a call of move_or_delete_vzeroupper.
329 * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New.
331 (avx_u128_state): New.
332 (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY.
336 (EMIT_MODE_SET): Change.
337 (machine_function): Delete avx256 fields.
339 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete.
340 (define_insn_and_split "*call_vzeroupper"): Delete.
341 (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete.
342 (define_insn_and_split "*sibcall_vzeroupper"): Delete.
343 (define_insn_and_split "*call_pop_vzeroupper"): Delete.
344 (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete.
345 (define_insn_and_split "*call_value_vzeroupper"): Delete.
346 (define_insn_and_split "*sibcall_value_vzeroupper"): Delete.
347 (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete.
348 (define_insn_and_split "*call_value_pop_vzeroupper"): Delete.
349 (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete.
350 (define_expand "return"): Remove vzeroupper emitting.
351 (define_expand "simple_return"): Delete.
353 * config/i386/predicates.md (vzeroupper_operation): New.
355 * config/i386/sse.md (avx_vzeroupper): Change.
357 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
358 Kaz Kojima <kkojima@gcc.gnu.org>
361 * mode-switching.c (create_pre_exit): Set return_copy to
362 last_insn when copy_start is a pseudo reg.
364 2012-11-06 Andrey Turetskiy <andrey.turetskiy@gmail.com>
366 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3
367 to CODE_FOR_avx2_pmulhrswv16hi3.
368 * config/i386/predicates.md (const1_operand): Extend for vectors.
369 * config/i386/sse.md (ssse3_avx2): Extend.
370 (ssedoublemode): Ditto.
371 (<sse2_avx2>_uavg<mode>3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3,
372 avx2_uavgv16hi3 and sse2_uavgv8hi3 into one.
373 (*<sse2_avx2>_uavg<mode>3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3,
374 *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one.
376 (<ssse3_avx2>_pmulhrsw<mode>3): Merge avx2_umulhrswv16hi3,
377 ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one.
378 (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand
380 (*ssse3_pmulhrswv8hi3): Ditto.
381 (*ssse3_pmulhrswv4hi3): Ditto.
383 2012-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
385 * config/epiphany/epiphany.c (epiphany_address_cost):
388 2012-11-05 Sriraman Tallam <tmsriram@google.com>
390 * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook
392 * (TARGET_COMPARE_VERSION_PRIORITY): New hook description.
393 * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description.
394 * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description.
395 * doc/tm.texi: Regenerate.
396 * target.def (compare_version_priority): New target hook.
397 * (generate_version_dispatcher_body): New target hook.
398 * (get_function_versions_dispatcher): New target hook.
399 * (function_versions): New target hook.
400 * cgraph.c (cgraph_fnver_htab): New htab.
401 (cgraph_fn_ver_htab_hash): New function.
402 (cgraph_fn_ver_htab_eq): New function.
403 (version_info_node): New pointer.
404 (insert_new_cgraph_node_version): New function.
405 (get_cgraph_node_version): New function.
406 (delete_function_version): New function.
407 (record_function_versions): New function.
408 * cgraph.h (cgraph_node): New bitfield dispatcher_function.
409 (cgraph_function_version_info): New struct.
410 (get_cgraph_node_version): New function.
411 (insert_new_cgraph_node_version): New function.
412 (record_function_versions): New function.
413 (delete_function_version): New function.
414 (init_lowered_empty_function): Expose function.
415 * tree.h (DECL_FUNCTION_VERSIONED): New macro.
416 (tree_function_decl): New bit-field versioned_function.
417 * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion
419 (cgraph_analyze_functions): Analyze dispatcher function.
420 (init_lowered_empty_function): Make non-static. New parameter in_ssa.
421 (assemble_thunk): Add parameter to call to init_lowered_empty_function.
422 * config/i386/i386.c (add_condition_to_bb): New function.
423 (get_builtin_code_for_version): New function.
424 (ix86_compare_version_priority): New function.
425 (feature_compare): New function.
426 (dispatch_function_versions): New function.
427 (ix86_function_versions): New function.
428 (attr_strcmp): New function.
429 (ix86_mangle_function_version_assembler_name): New function.
430 (ix86_mangle_decl_assembler_name): New function.
431 (make_name): New function.
432 (make_dispatcher_decl): New function.
433 (is_function_default_version): New function.
434 (ix86_get_function_versions_dispatcher): New function.
435 (make_attribute): New function.
436 (make_resolver_func): New function.
437 (ix86_generate_version_dispatcher_body): New function.
438 (fold_builtin_cpu): Return integer for cpu builtins.
439 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro.
440 (TARGET_COMPARE_VERSION_PRIORITY): New macro.
441 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro.
442 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro.
443 (TARGET_OPTION_FUNCTION_VERSIONS): New macro.
445 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
447 * recog.c (extract_insn): Enabled alternative defaults to 1.
449 2012-11-05 H.J. Lu <hongjiu.lu@intel.com>
451 * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
454 2012-11-05 Eric Botcazou <ebotcazou@adacore.com>
456 PR tree-optimization/54986
457 * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
458 conversions on entry but add them back on exit if needed.
460 2012-11-05 Andreas Schwab <schwab@linux-m68k.org>
462 * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison
463 codes in non-jump and cmove insn.
465 2012-11-05 Uros Bizjak <ubizjak@gmail.com>
466 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
468 * mode-switching.c (create_pre_exit): Force late switching if
469 __builtin_{apply,return} emitted a load that require mode,
470 other than MODE_EXIT.
472 2012-11-05 Richard Sandiford <rdsandiford@googlemail.com>
475 * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
477 (print_reg): Use true_regnum rather than REGNO.
478 (ix86_print_operand_address): Remove SUBREG handling.
480 2012-11-05 Jan Hubicka <jh@suse.cz>
482 * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
485 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
487 * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
488 with a return instruction.
490 2012-11-05 Vladimir Makarov <vmakarov@redhat.com>
492 PR rtl-optimization/55151
493 * lra-constraints.c (process_alt_operands): Permit putting reg
494 value into memory. Increase reject for this case.
496 2012-11-05 Dehao Chen <dehao@google.com>
498 * final.c (reemit_insn_block_notes): Do not change scope if insn
499 location is UNKNOWN_LOCATION.
501 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
503 * doc/md.texi (Defining Attributes): Document that we are defining
504 HAVE_ATTR_name macros as 1 for defined attributes, and as 0
505 for undefined special attributes.
506 * final.c (asm_insn_count, align_fuzz): Always define.
507 (insn_current_reference_address): Likewise.
508 (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
509 #ifdef HAVE_ATTR_length.
510 (get_attr_length_1, shorten_branches, final): Likewise.
511 (final_scan_insn, output_asm_name): Likewise.
512 * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
513 defined attributes as 1.
514 Remove ancient get_attr_alternative compatibility code.
515 For special purpose attributes not provided, define HAVE_ATTR_name
517 In case no length attribute is given, provide stub definitions
518 for insn_*_length* functions, and also include insn-addr.h.
519 In case no enabled attribute is given, provide stub definition.
520 * genattrtab.c (write_length_unit_log): Always write a definition.
521 * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
522 * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
523 * lra-int.h (struct lra_insn_recog_data): Make member
524 alternative_enabled_p unconditional.
525 * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
526 #ifdef HAVE_ATTR_length.
527 (lra_set_insn_recog_data): Likewise. Make initialization of
528 alternative_enabled_p unconditional.
529 (lra_update_insn_recog_data): Use #if instead of #ifdef for
531 * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
532 (extract_insn): Check HAVE_ATTR_enabled.
533 (gate_handle_split_before_regstack): Use #if instead of
534 #if defined for HAVE_ATTR_length.
536 2012-11-05 Jan Hubicka <jh@suse.cz>
538 * ipa-inline.c (compute_uninlined_call_time,
539 compute_inlined_call_time): New functions.
540 (RELATIVE_TIME_BENEFIT_RANGE): New macro.
541 (relative_time_benefit): Rewrite.
542 (edge_badness): Rewrite path with guessed profile and estimated profile.
543 * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
545 (struct inline_summary): Add GROWTH filed.
546 * ipa-inline-analysis.c (dump_inline_hints): Update.
547 (reset_inline_summary): Update.
548 (dump_inline_summary): Update.
549 (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
550 gimple_assign_load_p predicates.
551 (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
552 (simple_edge_hints): New function.
553 (do_estimate_edge_time): Return time of invocation of callee rather
554 than the time scaled by edge frequency; update hints code.
555 (do_estimate_edge_hints): Update.
556 (do_estimate_growth): Cleanup.
558 2012-11-05 Jakub Jelinek <jakub@redhat.com>
561 * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
562 also DWARF2_ADDR_SIZE 1 and 2.
564 2012-11-05 Jan Hubicka <jh@suse.cz>
566 * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
567 (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL
568 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
569 just_once_each_iteration_p; record estimated bound when loop has only one
570 likely exit; test just_once_each_iteration_p before IV canon itself.
572 2012-11-05 Jan Hubicka <jh@suse.cz>
574 * ipa-inline.c (leaf_node_p): Rename to ...
575 (num_calls) ... this one.
576 (want_early_inline_function_p): Allow smal growth on non-leafs.
578 2012-11-05 Jakub Jelinek <jakub@redhat.com>
581 * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
583 (vt_initialize): Look for fp_setter in any bb, not just successor of
586 2012-11-05 Oleg Endo <olegendo@gcc.gnu.org>
588 * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
589 (TARGET_SUPERSCALAR): Add TARGET_SH2A.
590 (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
592 (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
594 * config/sh/sh.c (sh_trampoline_init): Likewise.
596 2012-11-05 David Edelsohn <dje.gcc@gmail.com>
598 * system.h (loc_t): Poison.
600 2012-11-05 Marc Glisse <marc.glisse@inria.fr>
602 * fold-const.c (fold_unary_loc): Disable conversion optimization
605 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
607 * configure: Regenerate.
609 2012-11-04 Eric Botcazou <ebotcazou@adacore.com>
611 * combine.c: Adjust toplevel comment.
612 (make_extraction): Adjust head comment and move up canonicalization.
614 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
615 Jakub Jelinek <jakub@redhat.com>
618 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
621 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
624 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
625 New, rewritten from debug stmt copying code...
626 (thread_around_empty_block): ... removed from here.
627 (thread_across_edge): Call propagate_threaded_block_debug_into.
629 2012-11-04 Dehao Chen <dehao@google.com>
631 * expr.c (expand_expr_real_1): Change to not using input_location.
633 2012-11-03 Jan Hubicka <jh@suse.cz>
635 * invoke.texi (profile-use): update documentation.
636 * opts.c (common_handle_option): Enable tree-vectorize
637 and tree-loop-distribute-patterns.
638 * tree-loop-distribution.c (tree_loop_distribution): Skip loops
640 * config/i386/i386.c (ix86_option_override_internal): Enabe
641 prefetch_lop_arrays for profile-use.
643 2012-11-03 Robert Mason <rbmj@verizon.net>
645 * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
647 2012-11-03 Sandra Loosemore <sandra@codesourcery.com>
649 * doc/extend.texi: Copy-edit to use present tense except when
650 explicitly describing future or past behavior.
652 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
654 * config/sh/sh.c (output_movedouble, output_far_jump,
655 output_ieee_ccmpeq): Use multi-line strings for asm.
656 (find_regmode_weight): Wrap lines.
657 (sh_optimize_target_register_callee_saved): Remove commented out
659 (emit_load_ptr): Remove prototype.
661 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
664 * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
665 Allow going beyond current basic block before reload when looking for
667 * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
669 2012-11-02 Jan Hubicka <jh@suse.cz>
671 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
672 missing sign to unsigned.
674 2012-11-02 Andrew Pinski <apinski@cavium.com>
677 * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
678 (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
681 2012-11-02 Jan Hubicka <jh@suse.cz>
683 * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
684 discover_iteration_bound_by_body_walk): New functions.
685 (discover_iteration_bound_by_body_walk): Use it.
687 2012-11-02 Jan Hubicka <jh@suse.cz>
689 * predict.c (predict_loops): Predict also exits not dominating latch.
691 2012-11-02 Jan Hubicka <jh@suse.cz>
693 * predict.c (predict_loops): Do not predict infinite loops.
695 2012-11-02 Jan Hubicka <jh@suse.cz>
698 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
699 MAX field if NITER was folded to contant.
700 (record_estimate): Sanity check.
701 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
703 (remove_redundant_iv_test): New function.
704 (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
705 (unloop_loops): Break out from ...
706 (try_unroll_loop_completely): ... here; Pass in MAXITER; use
707 remove_exits_and_undefined_stmts; do not unloop.
708 (canonicalize_loop_induction_variables): Compute MAXITER;
709 use remove_redundant_iv_test; remove loop_close_ssa_invalidated
710 and irred_invalidated arguments.
711 (canonicalize_induction_variables): Compute fresh bound estimates;
712 unloop; walk from innermost.
713 (tree_unroll_loops_completely): Likewise.
715 2012-11-02 Vladimir Makarov <vmakarov@redhat.com>
718 * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
719 loc_equivalence_change_p.
720 (lra_constraints): Check equiv_insn_bitmap for debug insn. Call
721 loc_equivalence_change_p for non-transformed insn.
723 2012-11-02 Eric Botcazou <ebotcazou@adacore.com>
725 * cfg-flags.def (ABNORMAL_CALL): Fix comment.
728 * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
729 Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
731 2012-11-02 Jakub Jelinek <jakub@redhat.com>
734 * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
735 (*bswapdi2_doubleword): Removed.
737 2012-11-02 Gerald Pfeifer <gerald@pfeifer.com>
739 * doc/install.texi (Specific): Remove moxie web reference.
741 2012-11-01 Marc Glisse <marc.glisse@inria.fr>
744 * tree-vect-generic.c (expand_vector_condition): New function.
745 (expand_vector_operations_1): Call it.
747 2012-11-01 Steve Ellcey <sellcey@mips.com>
749 * target-globals.c (save_target_globals): Save lra_int struct.
751 2012-11-01 Gerald Pfeifer <gerald@pfeifer.com>
753 * doc/standards.texi (Standards): Adjust reference to Go specification.
755 2012-11-01 Lawrence Crowl <crowl@google.com>
757 * ebitmap.h: Remove unused.
758 * ebitmap.c: Remove unused.
759 * Makefile.in: Remove ebitmap.h and ebitmap.c.
760 * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
761 (SET_BIT_WITH_POPCOUNT): Remove unused.
762 (RESET_BIT_WITH_POPCOUNT): Remove unused.
763 (bitmap_copy_n): Remove unused.
764 (bitmap_range_empty_p): Remove unused.
765 (sbitmap_popcount): Remove unused.
766 (sbitmap_verify_popcount): Make private to source file.
767 * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
768 (bitmap_copy_n): Remove unused.
769 (bitmap_range_empty_p): Remove unused.
770 (sbitmap_popcount): Remove unused.
771 (sbitmap_verify_popcount): Make private to source file.
773 2012-11-01 Lawrence Crowl <crowl@google.com>
775 * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
776 unused parameter to match bitmap iterator. Update callers.
777 (sbitmap_iter_cond): Rename bmp_iter_set. Update callers.
778 (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
779 match bitmap iterator. Update callers.
780 (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
781 (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
782 adjust to be identical to the definition in bitmap.h. Conditionalize
783 the definition based on not having been defined. Update callers.
784 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
785 based on not having been defined. (To match the above.)
787 2012-11-01 Lawrence Crowl <crowl@google.com>
789 * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
790 type. Update callers to match.
791 (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
793 (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
794 normalizing parameter type. Update callers to match.
795 (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
796 Update callers to match.
797 (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
798 normalizing parameter type. Update callers to match.
799 * basic-block.h (sbitmap_intersection_of_succs): Rename
800 bitmap_intersection_of_succs. Update callers to match.
801 * basic-block.h (sbitmap_intersection_of_preds): Rename
802 bitmap_intersection_of_preds. Update callers to match.
803 * basic-block.h (sbitmap_union_of_succs): Rename
804 bitmap_union_of_succs. Update callers to match.
805 * basic-block.h (sbitmap_union_of_preds): Rename
806 bitmap_union_of_preds. Update callers to match.
808 2012-11-01 Vladimir Makarov <vmakarov@redhat.com>
811 * lra-constraints.c (lra_constraints): Check only pseudos with
812 equivalences. Add insns with equivalence pseudos.
814 2012-11-01 Sharad Singhai <singhai@google.com>
817 * dumpfile.h (struct dump_file_info): Fix order of flags.
819 2012-11-01 Jan Hubicka <jh@suse.cz>
822 * ipa-inline-transform.c (inline_call): Silence an sanity check until
823 ipa-cp issue if fixed.
825 2012-11-01 Sharad Singhai <singhai@google.com>
827 * doc/invoke.texi: Update -fopt-info documentation.
828 * dumpfile.c: Move dump_flags here from passes.c.
829 Rename opt_info_options to optinfo_verbosity_options.
830 Add optgroup_options.
831 (dump_files): Add field for optinfo_flags in the static initializer.
832 (dump_register): Handle additional parameter for optgroup_flags.
833 (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
834 optgroup_flags. Fix documentation.
835 (opt_info_switch_p_1): Handle optgroup options.
836 (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
837 * dumpfile.h (dump_register): Additional argument for optgroup_flags.
839 (struct dump_file_info): Add field for optgroup_flags.
840 Define OPTGROUP_* flags.
841 * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
842 All opt_pass static initializers updated.
843 * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
845 (handle_common_deferred_options): Fix typo in error message.
846 * passes.c (register_one_dump_file): Add argument for optgroup_flags.
847 Turn on OPTGROUP_IPA for IPA passes.
848 Move dump_flags from here to dumpfile.c.
849 * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
852 2012-11-01 Joern Rennecke <joern.rennecke@embecosm.com>
855 * config/sh/sh.md (doloop_end): Use emit_jump_insn.
857 2012-10-31 Jakub Jelinek <jakub@redhat.com>
859 PR tree-optimization/53708
860 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
861 user-supplied alignment when used with an explicit section name.
863 2012-10-31 Dehao Chen <dehao@google.com>
865 * tree-eh.c (do_return_redirection): Set location for jump statement.
866 (do_goto_redirection): Likewise.
867 (frob_into_branch_around): Likewise.
868 (lower_try_finally_nofallthru): Likewise.
869 (lower_try_finally_copy): Likewise.
870 (lower_try_finally_switch): Likewise.
871 * expr.c (store_expr): Use current insn location instead of expr
873 (expand_expr_real): Likewise.
874 (expand_expr_real_1): Likewise.
876 2012-10-31 Easwaran Raman <eraman@google.com>
880 * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
881 only if it doesn't already exist.
882 * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
883 (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
884 (expand_sjlj_dispatch_table): Pass BB containing before_case
885 to emit_case_dispatch_table.
887 2012-10-31 Lawrence Crowl <crowl@google.com>
890 (is_a <T> (U*)): New. Test for is-a relationship.
891 (as_a <T> (U*)): New. Treat as a derived type.
892 (dyn_cast <T> (U*)): New. Conditionally cast based on is_a.
893 * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
894 Adjust callers to match.
895 (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
896 (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
897 (symtab_node_def::try_function): New. Change most calls to
898 symtab_function_p with calls to dyn_cast <cgraph_node> (p).
899 (symtab_node_def::try_variable): New. Change most calls to
900 symtab_variable_p with calls to dyn_cast <varpool_node> (p).
901 (symtab_function_p): Remove. Change callers to use
902 is_a <cgraph_node> (p) instead.
903 (symtab_variable_p): Remove. Change callers to use
904 is_a <varpool_node> (p) instead.
905 * cgraph.c (cgraph_node_for_asm): Remove redundant call to
907 * cgraphunit.c (symbol_finalized_and_needed): New.
908 (symbol_finalized): New.
909 (cgraph_analyze_functions): Split complicated conditionals out into
911 * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
913 2012-10-31 Steven Bosscher <steven@gcc.gnu.org>
914 Jakub Jelinek <jakub@redhat.com>
916 PR tree-optimization/55018
917 * basic-block.h (dfs_find_deadend): New prototype.
918 * cfganal.c (dfs_find_deadend): No longer static. Use bitmap
919 instead of sbitmap for visited.
920 (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
921 * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
922 dfs_find_deadend of unconnected b instead of b directly.
924 2012-10-31 Eric Botcazou <ebotcazou@adacore.com>
926 * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
927 special register pushes before frame probing and allocation.
929 2012-10-31 Vladimir Makarov <vmakarov@redhat.com>
932 * lra-constraints.c (lra_constraints): Update debug insn info
933 after equivalence change.
935 2012-10-31 Jan Hubicka <jh@suse.cz>
937 * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
938 empty virtual functions calling themselves.
940 2012-10-31 Tom Tromey <tromey@redhat.com>
943 * doc/gcc.texi: Add @direntry for gcov.
945 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
947 * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
949 2012-10-31 Jakub Jelinek <jakub@redhat.com>
951 PR tree-optimization/19105
952 PR tree-optimization/21643
953 PR tree-optimization/46309
954 * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
955 and use it if EXP is NULL.
956 (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
957 (optimize_range_tests): Likewise.
958 (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
959 maybe_optimize_range_tests): New functions.
960 (reassociate_bb): Call maybe_optimize_range_tests if last
961 stmt of bb is GIMPLE_COND that hasn't been visited yet.
963 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
965 * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
967 (insvsi_internal, insvdi_internal, extvsi_internal)
968 (extvdi_internal): ...this.
969 (insv, extv): Update accordingly.
971 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
973 * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
974 that zero_extracts of const_ints are doing word-sized extractions.
976 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
978 * combine.c (make_extraction): Remove dead wanted_inner_mode-
979 and pos_rtx-related code.
981 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
983 * expmed.c (store_bit_field_1): Move generation of MEM insvs
985 (extract_bit_field_1): Likewise extvs and extzvs.
987 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
989 * expmed.c (store_bit_field_using_insv): New function,
991 (store_bit_field_1): ...here.
992 (extract_bit_field_using_extv): New function, split out from...
993 (extract_bit_field_1): ...here.
995 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
997 * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
998 insv pattern is available. Remove redundant checks for OP_MODE
999 being MAX_MACHINE_MODE.
1000 (extract_bit_field_1): Remove redundant checks for EXT_MODE being
1003 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
1005 * expmed.c (store_bit_field_1): Remove test for BLKmode values.
1007 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>,
1008 Joel Sherrill <joel.sherrill@oarcorp.com>
1010 * config/sparc/t-rtems: New (Custom multilibs).
1011 * config/sparc/t-rtems-64: New (Custom multilibs).
1012 * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
1013 (sparc-*-rtems*): Add sparc/t-rtems.
1015 2012-10-31 Alan Modra <amodra@gmail.com>
1017 * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
1018 handling non-aligned ld/std.
1019 * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
1020 * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
1021 * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
1022 * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
1024 2012-10-31 Alan Modra <amodra@gmail.com>
1026 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
1028 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
1030 * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
1034 * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
1035 last two parameters.
1037 2012-10-30 Alexandre Oliva <aoliva@redhat.com>
1041 * valtrack.c (dead_debug_promote_uses): Assert-check that
1042 global used bit was clear and initialize entry unconditionally.
1044 2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
1046 * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
1048 (hash_rtx): Likewise.
1050 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
1052 PR rtl-optimization/55093
1053 * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
1054 check for ARG_POINTER_REGNUM.
1056 2012-10-30 Steve Ellcey <sellcey@mips.com>
1058 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
1060 (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
1061 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
1062 (MULTILIB_DIRNAMES): Ditto.
1063 (MULTILIB_EXCEPTIONS): New.
1065 2012-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
1067 * lra-constraints.c (check_secondary_memory_needed_p):
1068 Add ATTRIBUTE_UNUSED to parameters.
1070 2012-10-30 Richard Sandiford <rdsandiford@googlemail.com>
1072 * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
1073 * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
1074 * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
1075 * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
1076 (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
1078 2012-10-30 Jan Hubicka <jh@suse.cz>
1080 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
1082 2012-10-30 Jan Hubicka <jh@suse.cz>
1084 * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
1085 EVERY_ITERATION with implicit value of true.
1086 (record_estimate): Check dominance relationship of the basic block
1087 we are estimating on instead of relying on UPPER to be false.
1088 (struct ilb_data): Drop RELIABLE.
1089 (idx_infer_loop_bounds): Update.
1090 (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
1091 (infer_loop_bounds_from_array): Drop parameter RELIABLE.
1092 (infer_loop_bounds_from_undefined): Update comments and handling
1094 (estimate_numbers_of_iterations_loop): Record all bounds.
1096 2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com>
1098 * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
1099 rather than gen_rtx_SUBREG.
1101 2012-10-30 Richard Biener <rguenther@suse.de>
1103 * gimple.h (gimple_store_p): New predicate.
1104 (gimple_assign_load_p): Likewise.
1105 * tree-inline.c (estimate_num_insns): Use it.
1107 2012-10-30 Marc Glisse <marc.glisse@inria.fr>
1109 * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
1110 (fold_binary_loc): Call it for VEC_COND_EXPR.
1112 2012-10-30 James Greenhalgh <james.greenhalgh@arm.com>
1113 Tejas Belagod <tejas.belagod@arm.com>
1115 * config/aarch64/aarch64-simd.md
1116 (aarch64_simd_bsl<mode>_internal): New pattern.
1117 (aarch64_simd_bsl<mode>): Likewise.
1118 (aarch64_vcond_internal<mode>): Likewise.
1119 (vcondu<mode><mode>): Likewise.
1120 (vcond<mode><mode>): Likewise.
1121 * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
1123 2012-10-30 Richard Biener <rguenther@suse.de>
1125 PR tree-optimization/55111
1126 * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
1128 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
1131 * config/sh/iterators.md (SIDI): New mode iterator.
1132 * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
1133 clobber in expander.
1134 (*negdi2): Mark output operand as early clobbered. Add T_REG clobber.
1135 Split after reload. Simplify split code.
1136 (abssi2, absdi2): Fold expanders into abs<mode>2.
1137 (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split. Split insns
1139 (*negabssi2, *negabsdi2): Fold into *negabs<mode>2. Add T_REG clobber.
1140 Split insns before reload.
1141 (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi.
1142 (negdi_cond): Reformat. Use emit_move_insn instead of a pair
1143 of gen_movsi. Split insn before reload.
1145 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
1148 * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
1149 (*tst<mode>_t_zero): New insns.
1150 * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
1152 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
1154 * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
1156 2012-10-30 Jakub Jelinek <jakub@redhat.com>
1159 * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
1160 * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
1161 even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
1162 * dce.c (word_dce_process_block, dce_process_block): Pass
1163 DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
1164 not going to be eliminated.
1166 2012-10-29 Lawrence Crowl <crowl@google.com>
1168 * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
1169 (sbitmap_copy_n): Rename bitmap_copy_n.
1170 (sbitmap_equal): Rename bitmap_equal_p.
1171 (sbitmap_empty_p): Rename bitmap_empty_p.
1172 (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
1173 (sbitmap_zero): Rename bitmap_clear.
1174 (sbitmap_ones): Rename bitmap_ones.
1175 (sbitmap_vector_zero): Rename bitmap_vector_clear.
1176 (sbitmap_vector_ones): Rename bitmap_vector_ones.
1177 (sbitmap_not): Rename bitmap_not.
1178 (sbitmap_a_and_b_cg): Commented out.
1179 (sbitmap_a_and_b): Rename bitmap_and. Add bool return.
1180 (sbitmap_difference): Rename bitmap_and_compl.
1181 (sbitmap_a_or_b_cg): Commented out.
1182 (sbitmap_a_or_b): Rename bitmap_xor. Add bool return.
1183 (sbitmap_a_xor_b_cg): Commented out.
1184 (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return.
1185 (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
1186 (sbitmap_a_and_b_or_c): Commented out.
1187 (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
1188 (sbitmap_a_or_b_and_c): Commented out.
1189 (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
1190 (sbitmap_union_of_diff): Commented out.
1191 (dump_sbitmap): Rename dump_bitmap.
1192 (dump_sbitmap_file): Rename dump_bitmap_file.
1193 (debug_sbitmap): Rename debug_bitmap.
1194 (dump_sbitmap_vector): Rename dump_bitmap_vector.
1195 (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
1196 (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
1197 (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
1198 (sbitmap_any_common_bits): Rename bitmap_intersect_p.
1199 (#define sbitmap_free): Reimplement as inline function.
1200 (#define sbitmap_vector_free): Reimplement as inline function.
1201 * bitmap.h (#define bitmap_zero): Remove as redundant.
1202 (#define bitmap_empty_p): Reimplement as inline function.
1203 (#define dump_bitmap): Reimplement as inline function.
1205 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1208 * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
1210 2012-10-29 H.J. Lu <hongjiu.lu@intel.com>
1212 * lra-assigns.c: Remove trailing white spaces.
1213 * lra-coalesce.c: Likewise.
1214 * lra-constraints.c: Likewise.
1215 * lra-eliminations.c: Likewise.
1216 * lra-int.h: Likewise.
1217 * lra-spills.c: Likewise.
1220 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1223 * tree.h (FUNCTION_POINTER_TYPE_P): New.
1225 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
1228 * valtrack.c (dead_debug_insert_temp): Defer rescan of
1229 newly-emitted debug insn.
1231 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
1234 * tree-ssa-threadedge.c (thread_around_empty_block): Copy
1235 debug temps from predecessor before threading.
1237 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
1241 * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
1242 (dead_debug_global_insert): Return new entry.
1243 (dead_debug_global_replace_temp): Return early if REG is no
1244 longer in place, or if dtemp was already substituted.
1245 (dead_debug_promote_uses): Insert for all defs and replace all
1247 (dead_debug_local_finish): Release used after promotion.
1248 (dead_debug_insert_temp): Stop if dtemp is NULL.
1250 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
1253 * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
1255 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
1258 * config/i386/i386.c (add_parameter_dependencies): Stop
1259 backward scan at the insn before the incoming head.
1260 (ix86_dependencies_evaluation_hook): Skip debug insns. Stop
1261 if first_arg is head.
1263 2012-10-29 Andrew Pinski <apinski@cavium.com>
1265 * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
1266 * config/aarch64/aarch64.c (aarch64_load_tp): Export.
1267 (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
1268 * config/aarch64/aarch64.h (aarch64_builtins): Delete
1269 AARCH64_BUILTIN_THREAD_POINTER.
1270 * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
1272 2012-10-29 Marc Glisse <marc.glisse@inria.fr>
1275 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
1278 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
1280 * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
1282 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
1284 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
1285 for all addresses, zero-extended with AND.
1287 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
1290 * rtlanal.c (strip_address_mutation): Add SUBREG case.
1292 2012-10-29 Jan Hubicka <jh@suse.cz>
1294 * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
1295 (want_inline_function_to_all_callers_p): check also functions with
1297 (ipa_inline): Handle inlining for size into multiple callers.
1299 2012-10-29 Richard Guenther <rguenther@suse.de>
1302 * tracer.c (tracer): Fixup loop structure.
1303 * cfgloopmanip.c (force_single_succ_latches): Add assert.
1304 (fix_loop_structure): Re-compute loop latches and disambiguate
1305 loops with multiple latches if required.
1307 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
1309 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
1310 to check SImode equivalent of address, zero-extended with AND RTX.
1311 * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
1312 (simple lea to add/shift peephole2s): Remove peephole2s that operate
1313 on subregs of DImode operations.
1315 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
1317 PR rtl-optimization/55106
1318 * lra-constraints.c (skip_usage_debug_insns): New function.
1319 (check_secondary_memory_needed_p): Ditto.
1320 (inherit_reload_reg): Use the new functions. Improve debug output.
1322 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1324 * doc/cpp.texi (Search Path): Fix outdated C++ path.
1326 2012-10-28 Jan Hubicka <jh@suse.cz>
1328 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
1329 &this->field expressions.
1331 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
1333 * rtl.h (struct rtx_def): Add a comment for member unchanging.
1334 * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
1335 (lra_hard_reg_substitution): Rename to lra_final_code_change.
1336 * lra-constraints.c (match_reload): Mark temporary clobbers.
1337 * lra-spill.c (lra_hard_reg_substitution): Rename to
1338 lra_final_code_change. Remove temporary clobbers.
1339 * lra.c (lra): Rename to lra_final_code_change.
1341 2012-10-28 Jan Hubicka <jh@suse.cz>
1343 * ipa-inline.c (edge_badness): Fix overflow.
1344 (inline_small_functions): Initialize SCCs correctly.
1345 (do_estimate_edge_time, do_estimate_edge_hints): Skip self
1346 recursive functions in SCC hints.
1348 2012-10-28 Steven Bosscher <steven@gcc.gnu.org>
1350 PR rtl-optimization/38711
1351 * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
1352 (do_reload): Add it back at the end for -O2 and higher.
1354 * function.c (thread_prologue_and_epilogue_insns): Use
1355 REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
1356 reg_set_to_hard_reg_set.
1358 2012-10-28 Jan Hubicka <jh@suse.cz>
1360 * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
1361 (inline_small_functions): Fix dumps; update all callees after inlining.
1362 * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
1364 (inline summary): Add SCC_NO.
1365 * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
1366 (reset_inline_summary): Reset scc_no.
1367 (estimate_node_size_and_time): Set in_scc hint.
1368 (do_estimate_edge_time): Add same_scc hint.
1369 (do_estimate_edge_hints): Likewise.
1371 2012-10-28 Andreas Schwab <schwab@linux-m68k.org>
1373 * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
1374 * doc/extend.texi: Likewise.
1375 * doc/generic.texi: Likewise.
1376 * doc/invoke.texi: Likewise.
1377 * doc/md.texi: Likewise.
1378 * doc/sourcebuild.texi: Likewise.
1380 * doc/tm.texi.in (Misc): Add newline before @end.
1381 * doc/tm.texi: Update.
1383 2012-10-27 Joern Rennecke <joern.rennecke@embecosm.com>
1385 * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
1387 2012-10-27 Georg-Johann Lay <avr@gjlay.de>
1390 * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
1392 2012-10-27 Oleg Endo <olegendo@gcc.gnu.org>
1395 * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
1397 2012-10-27 Uros Bizjak <ubizjak@gmail.com>
1399 * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
1401 2012-10-26 David S. Miller <davem@davemloft.net>
1403 * config/sparc/constraints.md: Update unused letter list, move
1404 "w" near other memory constraints. Remove no longer relevant
1406 * doc/md.texi: Sync sparc constraint documentation with reality.
1408 2012-10-26 DJ Delorie <dj@redhat.com>
1410 * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
1411 reg+addend addresses for the _far namespace.
1413 2012-10-26 Segher Boessenkool <segher@kernel.crashing.org>
1415 * config/rs6000/sync.md (ATOMIC): Correct DI condition.
1417 2012-10-26 Jakub Jelinek <jakub@redhat.com>
1420 * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
1421 as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
1422 * tree-sra.c (create_access_replacement): Allow also MEM_REFs
1423 with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
1424 * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
1426 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1428 2012-10-26 Jeff Law <law@redhat.com>
1430 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
1432 2012-10-26 Gunther Nikl <gnikl@users.sourceforge.net>
1434 * common/config/m68k/m68k-common.c (m68k_handle_option): Set
1435 gcc_options fields of opts_set for -m68020-40 and -m68020-60.
1437 2012-10-26 Teresa Johnson <tejohnson@google.com>
1439 * ree.c (add_removable_extension): Remove unnecessary
1440 mode check with other extension.
1441 * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
1442 * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
1444 2012-10-26 Jan Hubicka <jh@suse.cz>
1446 * ipa-inline-transform.c (inline_call): Only account size changes
1449 2012-10-26 Martin Jambor <mjambor@suse.cz>
1452 * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
1453 (dump_access): Dump the new flag.
1454 (analyze_access_subtree): Set the new flag when appropriate.
1455 (create_access_replacement): Handle debug replacements differently.
1456 (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
1457 (init_subtree_with_zero): Likewise.
1458 (sra_modify_expr): Likewise.
1459 (load_assign_lhs_subreplacements): Likewise.
1460 (sra_modify_assign): Likewise.
1462 2012-10-23 Yuri Rumyantsev <ysrumyan@gmail.com>
1464 * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
1466 (ix86_dependencies_evaluation_hook): Insert dependencies in all
1467 predecessors of call block for non-trivial region avoiding creation
1468 of loop-carried dependency to avoid cross-block motion of HW registers.
1470 2012-10-26 Richard Biener <rguenther@suse.de>
1473 * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
1474 at the end of blocks with no successors.
1476 2012-10-26 Alexander Ivchenko <alexander.ivchenko@intel.com>
1477 Uros Bizjak <ubizjak@gmail.com>
1479 * common/config/i386/i386-common.c
1480 (OPTION_MASK_ISA_FXSR_SET): New.
1481 (OPTION_MASK_ISA_XSAVE_SET): Likewise.
1482 (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
1483 (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
1484 * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
1485 xsaveintrin.h, xsaveoptintrin.h.
1486 (x86_64-*-*): Likewise.
1487 * config/i386/fxsrintrin.h: New header.
1488 * config/i386/xsaveintrin.h: Likewise.
1489 * config/i386/xsaveoptintrin.h: Likewise.
1490 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1491 FXSR/XSAVE/XSAVEOPT support.
1492 * config/i386/i386-builtin-types.def
1493 (VOID_FTYPE_PVOID_INT64): New function type.
1494 * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
1495 and __XSAVEOPT__ if needed.
1496 * config/i386/i386.c (ix86_target_string): Define -mfxsr,
1497 -mxsave and -mxsaveopt options.
1499 (PTA_XSAVE): Likewise.
1500 (PTA_XSAVEOPT): Likewise.
1501 (ix86_option_override_internal): Handle new option.
1502 (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
1503 (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
1504 OPT_mxsave, OPT_mxsaveopt.
1505 (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
1506 IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
1507 IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
1508 IX86_BUILTIN_XSAVEOPT64.
1509 (ix86_expand_builtin): Handle these built-ins.
1510 * config/i386/i386.h (TARGET_FXSR): New.
1511 (TARGET_XSAVE): Likewise.
1512 (TARGET_XSAVEOPT): Likewise.
1513 * config/i386/i386.md (ANY_XSAVE): New int iterator.
1514 (ANY_XSAVE64): Likewise.
1515 (xsave): New int attribute.
1516 (fxsave): New instruction.
1517 (fxsave64): Likewise.
1518 (fxrstor): Likewise.
1519 (fxrstor64): Likewise.
1520 (<xsave>): Likewise.
1521 (<xsave>_rex64): Likewise.
1523 (xrstor_rex64): Likewise.
1524 (xrstor64): Likewise.
1525 * config/i386/i386.opt (mfxsr): New.
1527 (mxsaveopt): Likewise.
1528 * config/i386/x86intrin.h: Include
1529 xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
1531 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
1533 * config/avr/t-rtems: Revert previous commit.
1535 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
1538 * Makefile.in (rtlanal.o): Add dependency on addresses.h.
1539 * rtl.h (address_info): New structure.
1540 (strip_address_mutations, decompose_address, decompose_lea_address)
1541 (decompose_mem_address, update_address, get_index_scale)
1542 (get_index_code): Declare.
1543 * rtlanal.c: Include addresses.h.
1544 (strip_address_mutations, must_be_base_p, must_be_index_p)
1545 (set_address_segment, set_address_base, set_address_index)
1546 (set_address_disp, decompose_incdec_address, decompose_automod_address)
1547 (extract_plus_operands, baseness, decompose_normal_address)
1548 (decompose_address, decompose_lea_address, decompose_mem_address)
1549 (update_address, get_index_scale, get_index_code): New functions.
1550 * lra-constraints.c (strip_subreg): New function.
1551 (address, extract_loc_address_regs, extract_address_regs)
1552 (get_index_scale): Delete.
1553 (process_addr_reg): Apply strip_subreg to the location.
1554 (uses_hard_regs_p): Use decompose_mem_address.
1555 (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
1556 (equiv_address_substitution): Take an address_info rather
1557 than an address. Remove other arguments. Avoid using Pmode.
1558 (process_address): Use decompose_mem_address and decompose_lea_address.
1559 Update calls to above functions.
1561 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
1563 * lra-constraints.c (process_address): Tighten arguments to
1564 base_reg_class. Use simplify_gen_binary to generate PLUS rtxes.
1566 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
1568 * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
1569 (equiv_address_substitution): Use them.
1571 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
1573 * lra-constraints.c (valid_address_p): New function, split out from...
1574 (process_address): ...here.
1576 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
1578 * lra-constraints.c (process_address): Describe the kinds of address
1581 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
1583 * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
1584 * lra-constraints.c (check_and_process_move): Remove #if
1585 ENABLE_ASSERT_CHECKING.
1587 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
1589 * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
1591 * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
1593 2012-10-25 David S. Miller <davem@davemloft.net>
1595 * config/sparc/constraints.md ("U"): Delete.
1596 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
1597 * config/sparc/sync.md: Likewise.
1599 2012-10-25 Lawrence Crowl <crowl@google.com>
1601 * hash-table.h: Add usage documentation.
1602 (template struct typed_free_remove): Clarify documentation.
1603 Rename template parameter.
1604 (struct typed_noop_remove): Likewise.
1605 (descriptor concept): Change typedef T to value_type.
1606 Add typedef compare_type. Use more precise template parameter name,
1607 Descriptor instead of Descr. Update users to match.
1608 (struct hash_table): Change 'find' parameters to use compare_type
1609 instead of the value type.
1611 2012-10-25 Jan Hubicka <jh@suse.cz>
1613 * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
1614 to direct call update the summary.
1615 * ipa-inline-transform.c (inline_call): Sanity check that summaries
1616 match the predicted effect; fix updating of summary after edge
1618 * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
1619 to update the summary and recompute it instead.
1620 (estimate_function_body_sizes): Fix self size estimation; double
1621 check that it agrees with inline_update_overall_summary.
1622 (estimate_edge_size_and_time): Handle devirtualizaiton costs.
1623 (estimate_edge_devirt_benefit): Update to be called from
1624 estimate_edge_size_and_time.
1625 (estimate_calls_size_and_time): Update.
1626 (estimate_node_size_and_time): Watch overflows.
1627 (inline_merge_summary): Likewise.
1628 * ipa-prob.c: Include ipa-inline.h
1629 (ipa_make_edge_direct_to_target): After redirection update the summary.
1631 2012-10-25 Cary Coutant <ccoutant@google.com>
1634 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
1635 already a declaration.
1637 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
1639 * lra-assigns.c (assign_by_spills): Add non-reload pseudos
1640 assigned to hard register to changed_pseudo_bitmap.
1642 2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1644 * config.gcc (microblaze*-*-rtems*): New target.
1645 * config/microblaze/rtems.h: New.
1646 * config/microblaze/t-rtems: New.
1648 2012-10-25 Jan Hubicka <jh@suse.cz>
1650 PR tree-optimize/54980
1651 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
1652 (loop_edge_to_cancel): Be sure that the edge is from an conditional
1653 so we can cancel it.
1655 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1658 * tree.c (signed_or_unsigned_type_for): Handle vectors.
1660 2012-10-25 Jan Hubicka <jh@suse.cz>
1662 * ipa-inline.c (recursive_inlining): Redirect to master
1663 clone before testing profitability.
1665 2012-10-25 Richard Biener <rguenther@suse.de>
1667 PR tree-optimization/54902
1668 * tree-ssa-pre.c (fini_eliminate): Return TODO.
1670 (execute_fre): Likewise.
1671 * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
1672 blocks before computing dominators.
1674 2012-10-25 Richard Sandiford <rdsandiford@googlemail.com>
1676 * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
1677 rather than gen_rtx_PLUS.
1679 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
1683 * ira.c (setup_reg_renumber): Fix assert.
1684 * ira-emit.c (emit_move_list): Update equivalences only for LRA.
1686 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
1689 * lra.c: Rename loc to sloc and loc_t to sloc_t.
1691 2012-10-24 Sharad Singhai <singhai@google.com>
1693 * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
1694 instead of dump_kind_p.
1696 2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1699 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
1700 Use diagnostic_append_note.
1701 * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
1702 (default_diagnostic_finalizer): Do not destroy prefix here.
1703 (diagnostic_report_diagnostic): Destroy it here.
1704 (diagnostic_append_note): New.
1705 * diagnostic.h (diagnostic_append_note): Declare.
1707 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
1709 PR rtl-optimization/55055
1710 * lra-spills.c (alter_subregs): New function.
1711 (lra_hard_reg_substitution): Use it.
1713 2012-10-24 Sharad Singhai <singhai@google.com>
1715 * dumpfile.c (dump_enabled_p): Make it inline and move the definition
1717 (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
1718 Make alt_dump_file extern.
1719 * dumpfile.h (dump_enabled_p): Move inline definition here.
1720 (dump_kind_p): Delete declaration.
1721 Add extern declaration of alt_dump_file.
1722 * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
1723 * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
1725 * tree-vectorizer.c: Likewise.
1726 * tree-vect-loop.c: Likewise.
1727 * tree-vect-data-refs.c: Likewise.
1728 * tree-vect-patterns.c: Likewise.
1729 * tree-vect-stmts.c: Likewise.
1730 * tree-vect-slp.c: Likewise.
1732 2012-10-24 Richard Sandiford <rdsandiford@googlemail.com>
1734 * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
1736 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
1739 * lra-constraints.c (extract_loc_address_regs): Pass top_p for
1740 ZERO_EXTEND operand.
1742 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
1745 * lra-constraints.c (update_ebb_live_info): Skip
1746 non-NOTE_INSN_BASIC_BLOCK notes.
1748 2012-10-24 Jakub Jelinek <jakub@redhat.com>
1750 PR rtl-optimization/55010
1751 * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
1752 before passing it to simplify_relational_operation.
1755 * gimple.h (is_gimple_sizepos): New inline function.
1756 * gimplify.c (gimplify_one_sizepos): Use it. Remove useless
1757 final assignment to expr variable.
1758 * tree.c (RETURN_TRUE_IF_VAR): Return true also if
1759 !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
1760 into a local temporary.
1762 2012-10-23 David S. Miller <davem@davemloft.net>
1764 * config/sparc/constraints.md ("T", "W"): Change
1765 definitions to use define_memory_constraint. Do not match 'reg'.
1766 * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
1767 handling code, update comment.
1769 2012-10-23 Ian Lance Taylor <iant@google.com>
1771 * doc/extend.texi (Extended Asm): The '+' constraint does not
1774 2012-10-23 Jeff Law <law@redhat.com>
1776 * tree-ssa-threadedge.c (thread_across_edge): Remove unused
1777 parameter in call to cond_arg_set_in_bb.
1779 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
1782 PR tree-optimization/54985
1783 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
1784 from thread_across_edge.
1785 (thread_across_edge): Use it in all cases where we might thread
1788 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
1790 * lra-constraints.c (update_ebb_live_info): Process empty blocks.
1792 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
1794 * expmed.c (store_split_bit_field): Update the calls to
1795 extract_fixed_bit_field. In the big-endian case, always
1796 use the mode of OP0 to count the number of significant bits.
1797 (extract_bit_field_1): Remove unit, offset, bitpos and
1798 byte_offset from the outermost scope. Express conditions in terms
1799 of bitnum rather than offset, bitpos and byte_offset. Move the
1800 computation of MODE1 to the block that needs it. Use MODE unless
1801 the TMODE-based mode_for_size calculation succeeds. Split the
1802 plain move cases into two, one for memory accesses and one for
1803 register accesses. Generalize the memory case, freeing it from
1804 the old register-based endian checks. Move the INT_MODE calculation
1805 above the code that needs it. Use simplify_gen_subreg to handle
1806 multiword OP0s. If the field still spans several words, pass it
1807 directly to extract_split_bit_field. Assume after that point
1808 that both targets and register sources fit within a word.
1809 Replace x-prefixed variables with non-prefixed forms.
1810 Compute the bitpos for ext(z)v register operands directly in the
1811 chosen unit size, rather than going through an intermediate
1812 BITS_PER_WORD unit size. Simplify the containment check
1813 used when forcing OP0 into a register. Update the call to
1814 extract_fixed_bit_field.
1815 (extract_fixed_bit_field): Replace the bitpos and offset parameters
1816 with a single bitnum parameter, of the same form as extract_bit_field.
1817 Assume that OP0 contains the full field. Simplify the memory offset
1818 calculation and containment check for volatile bitfields. Make the
1819 offset explicit when volatile bitfields force a misaligned access.
1820 Remove WARNED and fix long lines. Assert that the processed OP0
1821 has an integral mode.
1822 (store_split_bit_field): Update the call to store_fixed_bit_field.
1824 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
1826 * expmed.c (lowpart_bit_field_p): New function.
1827 (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
1828 from the outermost scope. Express conditions in terms of bitnum
1829 rather than offset, bitpos and byte_offset. Split the plain move
1830 cases into two, one for memory accesses and one for register accesses.
1831 Allow simplify_gen_subreg to fail rather than calling validate_subreg.
1832 Move the handling of multiword OP0s after the code that coerces VALUE
1833 to an integer mode. Use simplify_gen_subreg for this case and assert
1834 that it succeeds. If the field still spans several words, pass it
1835 directly to store_split_bit_field. Assume after that point that
1836 both sources and register targets fit within a word. Replace
1837 x-prefixed variables with non-prefixed forms. Compute the bitpos
1838 for insv register operands directly in the chosen unit size, rather
1839 than going through an intermediate BITS_PER_WORD unit size.
1840 Update the call to store_fixed_bit_field.
1841 (store_fixed_bit_field): Replace the bitpos and offset parameters
1842 with a single bitnum parameter, of the same form as store_bit_field.
1843 Assume that OP0 contains the full field. Simplify the memory offset
1844 calculation. Assert that the processed OP0 has an integral mode.
1845 (store_split_bit_field): Update the call to store_fixed_bit_field.
1847 2012-10-23 Paul Koning <ni1d@arrl.net>
1850 * dwarf2out.c (prune_unused_types_prune): If pruning a class and
1851 not all its children were marked, add DW_AT_declaration flag.
1853 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1854 James Greenhalgh <james.greenhalgh@arm.com>
1855 Jim MacArthur <jim.macarthur@arm.com>
1856 Marcus Shawcroft <marcus.shawcroft@arm.com>
1857 Nigel Stephens <nigel.stephens@arm.com>
1858 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1859 Richard Earnshaw <rearnsha@arm.com>
1860 Sofiane Naci <sofiane.naci@arm.com>
1861 Stephen Thomas <stephen.thomas@arm.com>
1862 Tejas Belagod <tejas.belagod@arm.com>
1863 Yufeng Zhang <yufeng.zhang@arm.com>
1865 * config.gcc: Add AArch64.
1866 * configure.ac: Add AArch64 TLS support detection.
1867 * configure: Regenerate.
1869 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1870 James Greenhalgh <james.greenhalgh@arm.com>
1871 Jim MacArthur <jim.macarthur@arm.com>
1872 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1873 Marcus Shawcroft <marcus.shawcroft@arm.com>
1874 Nigel Stephens <nigel.stephens@arm.com>
1875 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1876 Richard Earnshaw <rearnsha@arm.com>
1877 Sofiane Naci <sofiane.naci@arm.com>
1878 Stephen Thomas <stephen.thomas@arm.com>
1879 Tejas Belagod <tejas.belagod@arm.com>
1880 Yufeng Zhang <yufeng.zhang@arm.com>
1882 * doc/invoke.texi (AArch64 Options): New.
1883 * doc/md.texi (Machine Constraints): Add AArch64.
1885 2012-10-23 Ian Bolton <ian.bolton@arm.com>
1886 James Greenhalgh <james.greenhalgh@arm.com>
1887 Jim MacArthur <jim.macarthur@arm.com>
1888 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1889 Marcus Shawcroft <marcus.shawcroft@arm.com>
1890 Nigel Stephens <nigel.stephens@arm.com>
1891 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1892 Richard Earnshaw <rearnsha@arm.com>
1893 Sofiane Naci <sofiane.naci@arm.com>
1894 Stephen Thomas <stephen.thomas@arm.com>
1895 Tejas Belagod <tejas.belagod@arm.com>
1896 Yufeng Zhang <yufeng.zhang@arm.com>
1898 * common/config/aarch64/aarch64-common.c: New file.
1899 * config/aarch64/aarch64-arches.def: New file.
1900 * config/aarch64/aarch64-builtins.c: New file.
1901 * config/aarch64/aarch64-cores.def: New file.
1902 * config/aarch64/aarch64-elf-raw.h: New file.
1903 * config/aarch64/aarch64-elf.h: New file.
1904 * config/aarch64/aarch64-generic.md: New file.
1905 * config/aarch64/aarch64-linux.h: New file.
1906 * config/aarch64/aarch64-modes.def: New file.
1907 * config/aarch64/aarch64-option-extensions.def: New file.
1908 * config/aarch64/aarch64-opts.h: New file.
1909 * config/aarch64/aarch64-protos.h: New file.
1910 * config/aarch64/aarch64-simd.md: New file.
1911 * config/aarch64/aarch64-tune.md: New file.
1912 * config/aarch64/aarch64.c: New file.
1913 * config/aarch64/aarch64.h: New file.
1914 * config/aarch64/aarch64.md: New file.
1915 * config/aarch64/aarch64.opt: New file.
1916 * config/aarch64/arm_neon.h: New file.
1917 * config/aarch64/constraints.md: New file.
1918 * config/aarch64/gentune.sh: New file.
1919 * config/aarch64/iterators.md: New file.
1920 * config/aarch64/large.md: New file.
1921 * config/aarch64/predicates.md: New file.
1922 * config/aarch64/small.md: New file.
1923 * config/aarch64/sync.md: New file.
1924 * config/aarch64/t-aarch64-linux: New file.
1925 * config/aarch64/t-aarch64: New file.
1927 2012-10-23 Michael Matz <matz@suse.de>
1929 * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
1930 (ssa_operands.free_defs): Remove.
1931 (DEF_OP_PTR, DEF_OP): Remove.
1932 (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
1933 rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
1934 * gimple.h (gimple_statement_with_ops.def_ops): Remove.
1935 (gimple_def_ops, gimple_set_def_ops): Remove.
1936 (gimple_vdef_op): Don't take const gimple, adjust.
1937 (gimple_asm_input_op, gimple_asm_input_op_ptr,
1938 gimple_asm_set_input_op, gimple_asm_output_op,
1939 gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
1940 and rewrite to move def operands to front.
1941 (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
1942 gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
1943 * tree-ssa-operands.c (build_defs): Remove.
1944 (init_ssa_operands): Don't initialize it.
1945 (fini_ssa_operands): Don't free it.
1946 (cleanup_build_arrays): Don't truncate it.
1947 (finalize_ssa_stmt_operands): Don't assert on it.
1948 (alloc_def, add_def_op, append_def): Remove.
1949 (finalize_ssa_defs): Remove building of def_ops list.
1950 (finalize_ssa_uses): Don't mark for SSA renaming here, ...
1951 (add_stmt_operand): ... but here, don't call append_def.
1952 (get_indirect_ref_operands): Remove recurse_on_base argument.
1953 (get_expr_operands): Adjust call to get_indirect_ref_operands.
1954 (verify_ssa_operands): Don't check def operands.
1955 (free_stmt_operands): Don't free def operands.
1956 * gimple.c (gimple_copy): Don't clear def operands.
1957 * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
1959 (op_iter_next_tree, op_iter_next_def): Ditto.
1960 (clear_and_done_ssa_iter): Clear new fields.
1961 (op_iter_init): Adjust to setup new iterator structure.
1962 (op_iter_init_phiuse): Adjust.
1964 2012-10-23 Greta Yorsh <Greta.Yorsh@arm.com>
1966 * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
1968 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
1970 * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
1971 * dwarf2out.c: Include ira.h and lra.h.
1972 (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
1973 lra_eliminate_regs for LRA instead of eliminate_regs.
1974 * expr.c (emit_move_insn_1): Pass an additional argument to
1975 emit_move_via_integer. Use emit_move_via_integer for LRA only if
1976 the insn is recognized.
1977 * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
1978 (validate_subreg): Don't check offset for LRA and floating point modes.
1979 * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
1980 argument to alter_subreg.
1981 (walk_alter_subreg, output_operand): Ditto.
1982 (alter_subreg): Add new argument.
1983 * gcse.c (calculate_bb_reg_pressure): Add parameter to
1984 ira_setup_eliminable_regset call.
1985 * ira.c: Include lra.h.
1986 (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
1987 lra_init, lra_finish_once in anyway.
1988 (ira_setup_eliminable_regset): Add parameter. Remove need_fp.
1989 Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
1990 living forever if frame_pointer_needed.
1991 (setup_reg_class_relations): Set up ira_reg_class_subset.
1992 (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
1993 (find_reg_equiv_invariant_const): Ditto.
1994 (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
1995 ira_reg_equiv_invariant_p. Skip caps for LRA.
1996 (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
1998 (ira_reg_equiv_len, ira_reg_equiv): New externals.
1999 (ira_reg_equiv): New.
2000 (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
2002 (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
2004 (setup_reg_equiv): New function.
2005 (ira_use_lra_p): New global.
2006 (ira): Set up lra_simple_p and ira_conflicts_p. Set up and
2007 restore flag_caller_saves and flag_ira_region. Move
2008 initialization of ira_obstack and ira_bitmap_obstack upper. Call
2009 init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
2010 of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
2011 and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a
2012 new argument. Don't flatten IRA IRA for LRA. Don't reassign
2013 conflict allocnos for LRA. Call finish_reg_equiv.
2014 (do_reload): Prepare code for LRA call. Call LRA.
2015 * ira.h (ira_use_lra_p): New external.
2016 (struct target_ira): Add members x_ira_class_subset_p
2017 x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
2018 (ira_class_subset_p, ira_reg_class_subset): New macros.
2019 (ira_reg_classes_intersect_p): New macro.
2020 (struct ira_reg_equiv): New.
2021 (ira_setup_eliminable_regset): Add an argument.
2022 (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
2024 * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
2025 Use ira_equiv_no_lvalue_p.
2026 (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
2027 * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
2028 (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
2029 (emit_move_list): Simplify code. Call
2030 ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead
2031 of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert.
2032 * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
2033 and x_ira_reg_classes_intersect_p.
2034 (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
2035 (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
2036 (ira_reg_equiv_const): Ditto.
2037 (ira_equiv_no_lvalue_p): New function.
2038 * jump.c (true_regnum): Always use hard_regno for subreg_get_info
2039 when lra is in progress.
2040 * haifa-sched.c (sched_init): Pass new argument to
2041 ira_setup_eliminable_regset.
2042 * loop-invariant.c (calculate_loop_reg_pressure): Pass new
2043 argument to ira_setup_eliminable_regset.
2047 * lra-assigns.c: Ditto.
2048 * lra-constraints.c: Ditto.
2049 * lra-coalesce.c: Ditto.
2050 * lra-eliminations.c: Ditto.
2051 * lra-lives.c: Ditto.
2052 * lra-spills.c: Ditto.
2053 * Makefile.in (LRA_INT_H): New.
2054 (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
2055 lra-eliminations.o, lra-lives.o, and lra-spills.o.
2056 (dwarf2out.o): Add dependence on ira.h and lra.h.
2057 (ira.o): Add dependence on lra.h.
2058 (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
2059 (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
2060 * output.h (alter_subreg): Add new argument.
2061 * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
2062 Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
2063 * recog.c (general_operand, register_operand): Accept paradoxical
2064 FLOAT_MODE subregs for LRA.
2065 (scratch_operand): Accept pseudos for LRA.
2066 * rtl.h (lra_in_progress): New external.
2067 (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
2068 (debug_rtl_slim, debug_insn_slim): Ditto.
2069 * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
2070 * sched-vis.c (print_value_slim): New.
2071 * target.def (lra_p): New hook.
2072 (register_priority): Ditto.
2073 (different_addr_displacement_p): Ditto.
2074 (spill_class): Ditto.
2075 * target-globals.h (this_target_lra_int): New external.
2076 (target_globals): New member lra_int.
2077 (restore_target_globals): Restore this_target_lra_int.
2078 * target-globals.c: Include lra-int.h.
2079 (default_target_globals): Add &default_target_lra_int.
2080 * targhooks.c (default_lra_p): New function.
2081 (default_register_priority): Ditto.
2082 (default_different_addr_displacement_p): Ditto.
2083 * targhooks.h (default_lra_p): Declare.
2084 (default_register_priority): Ditto.
2085 (default_different_addr_displacement_p): Ditto.
2086 * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
2087 (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
2088 * config/arm/arm.c (load_multiple_sequence): Pass new argument to
2090 (store_multiple_sequence): Ditto.
2091 * config/i386/i386.h (enum ix86_tune_indices): Add
2092 X86_TUNE_GENERAL_REGS_SSE_SPILL.
2093 (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
2094 * config/i386/i386.c (initial_ix86_tune_features): Set up
2095 X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
2096 (ix86_lra_p, ix86_register_priority): New functions.
2097 (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
2098 (inline_secondary_memory_needed): Change assert.
2099 (ix86_spill_class): New function.
2100 (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
2101 * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
2103 * config/m32r/m32r.c (gen_split_move_double): Ditto.
2104 * config/pa/pa.c (pa_emit_move_sequence): Ditto.
2105 * config/sh/sh.md: Ditto.
2106 * config/v850/v850.c (v850_reorg): Ditto.
2107 * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
2108 * doc/md.texi: Add new interpretation of hint * for LRA.
2109 * doc/passes.texi: Describe LRA pass.
2110 * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
2111 TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
2112 * doc/tm.texi: Update.
2114 2012-10-23 Jan Hubicka <jh@suse.cz>
2116 * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
2117 with simple loops; bound number of branches only when FDO is not
2119 (decide_unroll_stupid): Mention that num_loop_branches heuristics
2122 2012-10-23 Nick Clifton <nickc@redhat.com>
2125 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
2126 compile time warning about pointer printing.
2128 2012-10-23 Joseph Myers <joseph@codesourcery.com>
2130 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
2131 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
2132 glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in
2133 tmake_file. Set target_has_targetcm.
2134 (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
2135 cxx_target_objs rather than overriding previous value.
2136 * config/glibc-c.c, config/t-glibc: New.
2137 * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
2138 * doc/tm.texi: Regenerate.
2139 * hooks.c (hook_constcharptr_void_null): New.
2140 * hooks.h (hook_constcharptr_void_null): Declare.
2142 2012-10-23 Eric Botcazou <ebotcazou@adacore.com>
2144 * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
2145 (STACK_CHECK_PROTECT): Likewise.
2146 * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
2147 (MIPS_PROLOGUE_TEMP2): Likewise.
2148 * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
2149 * config/mips/mips.c: Include common/common-target.h.
2150 (mips_emit_probe_stack_range): New function.
2151 (mips_output_probe_stack_range): Likewise.
2152 (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
2153 builtin stack checking is enabled.
2154 * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
2155 (probe_stack_range_<P:mode>): New insn.
2157 2012-10-23 Marc Glisse <marc.glisse@inria.fr>
2159 * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
2160 * fold-const.c (fold_relational_const): Handle VECTOR_CST.
2161 * doc/generic.texi (VEC_COND_EXPR): Document current policy.
2163 2012-10-23 Jan Hubicka <jh@suse.cz>
2166 * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
2167 the bound of non-is_exit statements.
2168 (maybe_lower_iteration_bound): Do it here.
2169 (estimate_numbers_of_iterations_loop): Call it.
2171 2012-10-23 Jan Hubicka <jh@suse.cz>
2174 * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
2175 track basic blocks that moved out of their loops.
2177 (remove_path): Update.
2178 (fix_loop_placements): Update.
2179 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
2180 loop_closed_ssa_invalidated parameter; pass it around.
2181 (canonicalize_loop_induction_variables): Update loop closed
2183 (tree_unroll_loops_completely): Likewise; do irred update out of
2184 the outer loop; verify that SSA form is closed.
2185 * cfgloop.h (unrloop): Update.
2187 2012-10-23 Terry Guo <terry.guo@arm.com>
2190 * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
2193 2012-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2197 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
2198 expand_builtin_setjmp_receiver.
2199 (expand_label): Adjust, call expand_builtin_setjmp_receiver
2200 with NULL for the label parameter.
2201 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
2202 the frame-pointer. Adjust comments.
2203 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
2204 only if LABEL is non-NULL.
2206 2012-10-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2208 PR tree-optimization/55008
2209 * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
2210 Don't allow a candidate to be a basis for itself under another
2213 2012-10-22 Sharad Singhai <singhai@google.com>
2215 * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
2217 (dump_enabled_p): A new function to check if any of the dump files
2219 (dump_kind_p): Remove check for current_function_decl. Add check for
2220 dumpfile and alt_dump_file.
2221 * dumpfile.h: Add declaration of dump_enabled_p.
2223 2012-10-22 Richard Biener <rguenther@suse.de>
2226 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
2229 2012-10-22 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/i386.c (memory_address_length): Assert that non-null
2232 base or index RTXes are registers. Do not check for REG RTXes.
2233 Determine addr32 prefix using SImode_address_operand or
2234 from original base and index RTXes. Simplify code.
2236 2012-10-22 Richard Biener <rguenther@suse.de>
2238 PR tree-optimization/55011
2239 * tree-vrp.c (update_value_range): For invalid lattice transitions
2242 2012-10-22 Julian Brown <julian@codesourcery.com>
2244 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
2245 VFP D registers in big-endian mode.
2247 2012-10-22 Georg-Johann Lay <avr@gjlay.de>
2249 * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
2250 Note __AVR_<device>__ is not defined for cores.
2251 Don't point to --help=target.
2253 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
2254 Greta Yorsh <Greta.Yorsh@arm.com>
2256 * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
2257 (arm_expand_epilogue): Use the new function.
2259 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
2260 Greta Yorsh <Greta.Yorsh@arm.com>
2262 * config/arm/arm.c (thumb2_emit_strd_push): New function.
2263 (arm_expand_prologue): Use the new function.
2265 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
2266 Greta Yorsh <Greta.Yorsh@arm.com>
2268 * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
2269 (operands_ok_ldrd_strd): Likewise.
2270 * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
2271 (operands_ok_ldrd_strd): Likewise.
2272 * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
2273 (thumb2_ldrd_base_neg): Likewise.
2274 (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
2275 * predicates.md (ldrd_strd_offset_operand): New predicate.
2276 * config/arm/constraints.md (Do): New constraint.
2278 2012-10-22 Hans-Peter Nilsson <hp@bitrange.com>
2280 * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
2281 frame-pointer as an operand.
2282 ("*nonlocal_goto_receiver_expanded"): Ditto. Use
2283 mmix_output_register_setting instead of naked output_asm_insn for
2284 the offset from the frame-pointer to the saved rO.
2285 * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
2287 * config/mmix/predicates.md ("frame_pointer_operand"): New.
2288 * config/mmix/constraints.md ("Yf"): New.
2290 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
2291 expand_builtin_setjmp_receiver.
2292 (expand_label): Adjust, call expand_builtin_setjmp_receiver
2293 with NULL for the label parameter.
2294 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
2295 the frame-pointer. Adjust comments.
2296 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
2297 only if LABEL is non-NULL.
2299 2012-10-21 Uros Bizjak <ubizjak@gmail.com>
2301 * config/i386/i386-protos.h (memory_address_length): Add new bool
2302 argument. Update all uses.
2303 * config/i386/i386.c (memory_address_length): If not LEA insn, then
2304 add length of addr32 prefix based on mode of base or index register.
2305 (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
2306 addresses here. Update call to memory_address_length.
2307 (ix86_print_address_operand): Use SImode_address_operand predicate.
2308 * config/i386/predicates.md (SImode_address_operand): New.
2309 * config/i386/i386.md (lea<mode>): Use SImode_address_operand
2310 to calculate "mode" attribute. Use SImode_address_operand predicate
2311 instead of open-coding accepted RTX codes.
2313 2012-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
2315 * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
2317 2012-10-21 Eric Botcazou <ebotcazou@adacore.com>
2319 PR rtl-optimization/44194
2320 * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
2322 2012-10-21 Tobias Burnus <burnus@net-b.de>
2325 * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
2327 2012-10-21 Chung-Lin Tang <cltang@codesourcery.com>
2329 * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
2332 2012-10-20 Eric Botcazou <ebotcazou@adacore.com>
2334 PR rtl-optimization/54315
2335 * calls.c (expand_call): Don't deal specifically with BLKmode values
2336 returned in naked registers.
2337 * expr.h (copy_blkmode_from_reg): Adjust prototype.
2338 * expr.c (copy_blkmode_from_reg): Rename first parameter into
2339 TARGET and make it required. Assert that SRCREG hasn't BLKmode.
2340 Add a couple of short-circuits for common cases and be prepared
2341 for sub-word registers.
2342 (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
2343 returned in naked registers.
2344 (store_expr): Likewise.
2345 (store_field): Likewise.
2347 2012-10-20 Jan Hubicka <jh@suse.cz>
2349 * loop-unroll.c (decide_unroll_constant_iterations): Don't
2350 perform unrolling for loops with low iterations bounds or estimates.
2352 2012-10-20 Jan Hubicka <jh@suse.cz>
2354 * loop-iv.c (iv_number_of_iterations): Record the upper bound
2355 only if there are no further conditions on it.
2357 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2361 * opts.c (finish_options): Remove explicit handling from here.
2363 2012-10-20 Joern Rennecke <joern.rennecke@embecosm.com>
2364 Richard Sandiford <rdsandiford@googlemail.com>
2366 * emit-rtl.c (copy_delay_slot_insn): New function.
2367 * emit-rtl.h (copy_delay_slot_insn): Declare.
2368 * reorg.c: Include "emit-rtl.h".
2369 (steal_delay_list_from_target): Use copy_delay_slot_insn.
2370 (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
2372 * final.c (shorten_branches): When optimizing, start with small
2373 length and increase from there, and don't decrease lengths.
2375 2012-10-19 Jan Hubicka <jh@suse.cz>
2377 * builtins.def (BUILT_IN_UNREACHABLE): Make
2378 ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
2379 * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
2381 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2382 Dominique Dhumieres <dominiq@lps.ens.fr>
2384 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
2385 OPTION_MASK_STRICT_ALIGN is defined.
2386 (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
2387 define this to 0 for the 3 ports that use it.
2389 * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
2390 check for ports not having -mstrict-align here, move test to
2392 (MASK_STRICT_ALIGN): Likewise.
2393 (rs6000_debug_reg_global): Print out correct target flag words if
2396 2012-10-19 Marek Polacek <polacek@redhat.com>
2399 * fold-const.c (fold_sign_changed_comparison): Punt if folding
2400 pointer/non-pointer comparison.
2402 2012-10-19 Greta Yorsh <Greta.Yorsh@arm.com>
2404 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2405 new effective target keyword arm_prefer_ldrd_strd.
2407 2012-10-19 Richard Guenther <rguenther@suse.de>
2409 PR tree-optimization/54981
2410 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
2411 Do not consider debug stmts as uses.
2413 2012-10-19 Richard Biener <rguenther@suse.de>
2415 PR tree-optimization/54976
2416 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
2417 Robustify against odd inner_mode inputs.
2419 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2422 * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
2423 sure the mode is correct when falling through from above cases.
2425 2012-10-19 Bin Cheng <bin.cheng@arm.com>
2427 * common.opt (flag_ira_hoist_pressure): New.
2428 * doc/invoke.texi (-fira-hoist-pressure): Describe.
2429 * ira-costs.c (ira_set_pseudo_classes): New parameter.
2430 * ira.h: Update copyright dates.
2431 (ira_set_pseudo_classes): Update prototype.
2432 * haifa-sched.c (sched_init): Update call.
2433 * ira.c (ira): Update call.
2434 * regmove.c: Update copyright dates.
2435 (regmove_optimize): Update call.
2436 * loop-invariant.c: Update copyright dates.
2437 (move_loop_invariants): Update call.
2438 * gcse.c: (struct bb_data): New structure.
2439 (BB_DATA): New macro.
2440 (curr_bb, curr_reg_pressure): New static variables.
2441 (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
2442 Change parameter expr_index to expr.
2443 New parameters pressure_class, nregs and hoisted_bbs.
2444 Use reg pressure to determine the distance expr can be hoisted.
2445 (hoist_code): Use reg pressure to direct the hoist process.
2446 (get_regno_pressure_class, get_pressure_class_and_nregs)
2447 (change_pressure, calculate_bb_reg_pressure): New.
2448 (one_code_hoisting_pass): Calculate register pressure. Allocate
2451 2012-10-19 Bin Cheng <bin.cheng@arm.com>
2453 * gcse.c: Update copyright dates.
2454 (hoist_expr_reaches_here_p): Change parameter type from char *
2457 2012-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
2460 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
2461 "arm*-*-rtemseabi*" to "arm*-*-rtems*".
2463 2012-10-19 Alan Modra <amodra@gmail.com>
2465 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
2466 (HAVE_LD_LARGE_TOC): Likewise.
2467 * configure: Regenerate.
2469 2012-10-19 Alan Modra <amodra@gmail.com>
2471 * config/rs6000/predicates.md (splat_input_operand): Don't call
2472 input_operand for MEMs. Instead check for volatile and call
2473 memory_address_addr_space_p with modified mode.
2475 2012-10-18 Uros Bizjak <ubizjak@gmail.com>
2477 * config/i386/i386.md (rdpmc): Remove expander.
2480 (rdpmc): Rename from *rdpmc.
2481 (rdpmc_rex64): Rename from *rdpmc_rex64.
2482 (rdtsc): Rename from *rdtsc.
2483 (rdtsc_rex64): Rename from *rdtsc_rex64.
2484 (rdtscp): Rename from *rdtscp.
2485 (rdtscp_rex64): Rename from *rdtscp_rex64.
2487 * config/i386/i386.c (struct builtin_description bdesc_special_args)
2488 <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
2489 <IX86_BUILTIN_RDTSCP>: Ditto.
2490 (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
2491 (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
2493 2012-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2495 * config/sh/sh.c: Fix comment to silence warning.
2497 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2498 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2499 Sameera Deshpande <sameera.deshpande@arm.com>
2501 * config/arm/cortex-a15-neon.md: New file.
2502 * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
2503 (cortex_a15_load1): Likewise.
2504 (cortex_a15_load3): Likewise.
2505 (cortex_a15_store1): Likewise.
2506 (cortex_a15_store3): Likewise.
2507 (cortex-a15-neon.md): Include.
2509 2012-10-18 Segher Boessenkool <segher@kernel.crashing.org>
2511 * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
2512 (altivec_vsumsws_nomode): Delete.
2513 (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
2514 instead of gen_altivec_vsumsws_nomode.
2515 (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
2516 * config/rs6000/rs6000.md (probe_stack): Rename to...
2517 (probe_stack_<mode>): ... this. Add mode. Change pattern to
2518 use std instead of stw when appropriate.
2519 (probe_stack): New expander.
2520 (move_from_CR_ov_bit): Add mode.
2521 (splitter for compare_plus_ne0_<mode>, splitter for
2522 compare_plus_ne0_<mode>_1): Remove constraints.
2523 * config/rs6000/sync.md (loadsync): Rename to...
2524 (loadsync_<mode>): ... this. Add mode.
2525 (atomic_load<mode>): Adjust.
2527 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2529 * loop-invariant.c: Include target.h.
2530 (check_dependency): Return false for an uninitialized argument register
2531 that is likely to be spilled.
2532 * Makefile.in (loop-invariant.o): Add $(TARGET_H).
2534 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2536 * except.c (sjlj_emit_function_enter): Remove unused variable.
2538 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2539 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2541 * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
2542 * config/arm/neon-docgen.ml (intrinsic_groups): Add
2543 fused-multiply-* groups.
2544 * config/neon-gen.ml (print_feature_test_start): New function.
2545 (print_feature_test_end): Likewise.
2546 (print_variant): Print feature test macros.
2547 * config/arm/neon-testgen.ml (emit_prologue): Allow different
2548 tests to require different effective targets.
2549 (effective_target): New function.
2550 (test_intrinsic): Specify correct effective targets.
2551 * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
2552 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
2553 (neon_vfma<VCVFT:mode>): New expand.
2554 (neon_vfms<VCVFT:mode>): Likewise.
2555 * config/neon.ml (opcode): Add Vfma and Vfms.
2556 (features): Add Requires_feature.
2557 (ops): Add VFMA and VFMS intrinsics.
2558 * config/arm/arm_neon.h: Regenerate.
2559 * doc/arm-neon-intrinsics.texi: Likewise.
2561 2012-10-18 Richard Guenther <rguenther@suse.de>
2563 * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
2564 * lto-streamer-in.c (lto_input_tree): Use it.
2565 * lto-streamer-out.c (lto_output_tree): Likewise, for
2566 !TREE_OVERFLOW integer constants only.
2567 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
2568 (unpack_value_fields): Call it.
2569 (streamer_read_integer_cst): Simplify.
2570 * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
2571 (streamer_pack_tree_bitfields): Call it.
2572 (streamer_write_integer_cst): Adjust.
2574 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2575 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2577 * config.gcc: Add support for ARMv8 for arm*-*-* targets.
2578 * config/arm/arm-arches.def: Add armv8-a
2579 * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
2580 crypto-neon-fp-armv8. Add crypto field.
2581 * config/arm/arm-tables.opt: Regenerate.
2582 * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
2583 (arm_arch8): New global variable.
2584 (ARM_FPU): Add crypto parameter.
2585 (arm_option_override): Set arm_arch8, update comments.
2586 * config/arm/arm.h (TARGET_CRYPTO): New macro.
2587 (arm_fpu_desc): Add crypto field.
2588 (base_architecture): Add ARMv8 entry.
2589 (arm_arch8): New variable declaration.
2590 * config/arm/bpabi.h: ARMv8 supports BE8.
2591 * doc/invoke.texi: Document ARMv8 options.
2593 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
2596 * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
2599 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
2601 PR rtl-optimization/54900
2602 * ifcvt.c (noce_can_store_speculate_p): Call
2603 memory_must_be_modified_in_insn_p.
2604 * alias.c (memory_must_be_modified_in_insn_p): New.
2605 (set_dest_equal_p): New.
2606 * rtl.h (memory_must_be_modified_in_p): Protoize.
2608 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
2610 * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
2611 replace target_flags that gives us 63 possible switches.
2612 (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
2613 (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
2614 (rs6000_target_flags_explicit): Delete in favor of
2615 x_rs6000_isa_flags_explicit.
2616 (-mpowerpc64): Change all switches that used to be in target_flags
2617 to now be in rs6000_isa_flags. In using rs6000_isa_flags, the
2618 options machinary will generate names of the form OPITON_<xxx>
2619 instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
2620 (-mpowerpc-gpopt): Likewise.
2621 (-mpowerpc-gfxopt): Likewise.
2622 (-mmfcrf): Likewise.
2623 (-mpopcntb): Likewise.
2624 (-mfprnd): Likewise.
2626 (-mmfpgpr): Likewise.
2627 (-maltivec): Likewise.
2628 (-mhard-dfp): Likewise.
2629 (-mmulhw): Likewise.
2630 (-mdlmzb): Likewise.
2631 (-mmultiple): Likewise.
2632 (-mstring): Likewise.
2633 (-msoft-float): Likewise.
2634 (-mhard-float): Likewise.
2635 (-mpopcntd): Likewise.
2637 (-mno-update): Likewise.
2638 (-mupdate): Likewise.
2639 (-mrecip-precision): Likewise.
2640 (-mminimal-toc): Likewise.
2642 * config/rs6000/aix64.opt (-maix64): Likewise.
2643 (-maix32): Likewise.
2644 * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
2645 (-mrelocatable): Likewise.
2646 (-mlittle-endian): Likewise.
2647 (-mlittle): Likewise.
2648 (-mbig-endian): LIkewise.
2653 * config/rs6000/darwin.opt (-m64): Likewise.
2656 * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
2657 masks used in rs6000.c here, since they are more logically in this
2658 file. Convert from being enums to just #defines, since the types
2659 of these masks is now HOST_WIDE_INT instead of int. For
2660 POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
2661 in the mask. Change the use in rs6000.c not to do the OR of
2663 (ISA_2_1_MASKS): Likewise.
2664 (ISA_2_2_MASKS): Likewise.
2665 (ISA_2_4_MASKS): Likewise.
2666 (ISA_2_5_MASKS_EMBEDDED): Likewise.
2667 (ISA_2_5_MASKS_SERVER): Likewise.
2668 (POWERPC_7400_MASK): Likewise.
2669 (POWERPC_MASKS): Likewise.
2670 * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
2671 (ISA_2_1_MASKS): Likewise.
2672 (ISA_2_2_MASKS): Likewise.
2673 (ISA_2_4_MASKS): Likewise.
2674 (ISA_2_5_MASKS_EMBEDDED): Likewise.
2675 (ISA_2_5_MASKS_SERVER): Likewise.
2676 (POWERPC_7400_MASK): Likewise.
2677 (POWERPC_MASKS): Likewise.
2678 (rs6000_option_override_internal): Likewise.
2680 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
2681 all uses of target_flags to rs6000_isa_flags. Change all uses of
2682 target_flags_explicit to rs6000_isa_flags_explicit. Change the
2683 use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
2684 we use a secondary flags word. Save/restore/print the new flags
2685 word when switching contexts with different target attributes.
2686 (rs6000_option_override_internal): Likewise.
2687 (rs6000_darwin_file_start): Likewise.
2688 (rs6000_opt_masks): Likewise.
2689 (rs6000_inner_target_options): Likewise.
2690 (rs6000_pragma_target_parse): Likewise.
2691 (rs6000_set_current_function): Likewise.
2692 (rs6000_function_specific_save): Likewise.
2693 (rs6000_function_specific_restore): Likewise.
2694 (rs6000_function_specific_print): Likewise.
2695 (rs6000_can_inline_p): Likewise.
2696 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
2697 (rs6000_cpu_cpp_builtins): Likewise.
2698 * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
2701 * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
2702 Var(...) for all of the isa switches, the options machinery now
2703 uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
2704 Use #define to map the old name into the new name. For switches
2705 that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
2706 the definition if those switches were defined.
2707 (MASK_ALTIVEC): Likewise.
2708 (MASK_CMPB): Likewise.
2709 (MASK_DFP): Likewise.
2710 (MASK_DLMZB): Likewise.
2711 (MASK_EABI): Likewise.
2712 (MASK_FPRND): Likewise.
2713 (MASK_HARD_FLOAT): Likewise.
2714 (MASK_ISEL): Likewise.
2715 (MASK_MFCRF): Likewise.
2716 (MASK_MFPGPR): Likewise.
2717 (MASK_MULHW): Likewise.
2718 (MASK_MULTIPLE): Likewise.
2719 (MASK_NO_UPDATE): Likewise.
2720 (MASK_POPCNTB): Likewise.
2721 (MASK_POPCNTD): Likewise.
2722 (MASK_PPC_GFXOPT): Likewise.
2723 (MASK_PPC_GPOPT): Likewise.
2724 (MASK_RECIP_PRECISION): Likewise.
2725 (MASK_SOFT_FLOAT): Likewise.
2726 (MASK_STRICT_ALIGN): Likewise.
2727 (MASK_STRING): Likewise.
2728 (MASK_UPDATE): Likewise.
2729 (MASK_VSX): Likewise.
2730 (MASK_POWERPC64): Likewise.
2731 (MASK_64BIT): Likewise.
2732 (MASK_RELOCATABLE): Likewise.
2733 (MASK_LITTLE_ENDIAN): Likewise.
2734 (MASK_MINIMAL_TOC): Likewise.
2735 (MASK_REGNAMES): Likewise.
2736 (MASK_PROTOTYPE): Likewise.
2737 (rs6000_isa_flags_explicit): Define in terms of the
2738 global_options_set structure.
2740 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
2741 Change use of target_flags to rs6000_isa_flags, target_flags_explicit
2742 to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
2743 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2744 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2745 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2746 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2747 * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2748 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2749 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2750 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2751 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2752 (OPTION_LITTLE_ENDIAN): Likewise.
2753 (OPTION_RELOCATABLE): Likewise.
2754 (OPTION_EABI): Likewise.
2755 (OPTION_PROTOTYPE): Likewise.
2756 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2757 * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
2758 (OPT_ARCH32): Likewise.
2759 (OPT_ARCH64): Likewise.
2760 * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
2761 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2762 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2763 (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
2765 * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
2768 2012-10-17 Jan Hubicka <jh@suse.cz>
2770 * cfgloopmanip.c (copy_loop_info): New function.
2771 (duplicate_loop): Use it.
2772 (loop_version): Use it.
2773 * loop-unswitch.c (unswitch_loop): Use it.
2774 * cfgloop.h (copy_loop_info): Declare.
2776 2012-10-17 Jan Hubicka <jh@suse.cz>
2778 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
2779 parameter and use it to estimate code optimized out in the final
2781 (loop_edge_to_cancel): New function.
2782 (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
2783 handle unrolling loops with bounds given via max_loop_iteratins;
2784 handle unrolling non-inner loops when code size shrinks;
2785 tidy dump output; when the last iteration loop still stays
2786 as loop in the CFG forcongly redirect the latch to
2787 __builtin_unreachable.
2788 (canonicalize_loop_induction_variables): Add irred_invlaidated
2789 parameter; record niter bound derrived; dump
2790 max_loop_iterations bounds; call try_unroll_loop_completely
2791 even if no niter bound is given.
2792 (canonicalize_induction_variables): Handle irred_invalidated.
2793 (tree_unroll_loops_completely): Handle non-innermost loops;
2794 handle irred_invalidated.
2795 * cfgloop.h (unlop): Declare.
2796 * cfgloopmanip.c (unloop): Export.
2797 * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
2799 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
2801 * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
2802 for Mask options, whether they use Var(...) or not.
2804 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
2805 TARGET_<xxx> instead of OPTION_<xxx>.
2806 * config/i386/i386.h (TARGET_64BIT): Likewise.
2807 (TARGET_MMX): Likewise.
2808 (TARGET_3DNOW): Likewise.
2809 (TARGET_3DNOW_A): Likewise.
2810 (TARGET_SSE): Likewise.
2811 (TARGET_SSE2): Likewise.
2812 (TARGET_SSE3): Likewise.
2813 (TARGET_SSSE3): Likewise.
2814 (TARGET_SSE4_1): Likewise.
2815 (TARGET_SSE4_2): Likewise.
2816 (TARGET_AVX): Likewise.
2817 (TARGET_AVX2): Likewise.
2818 (TARGET_FMA): Likewise.
2819 (TARGET_SSE4A): Likewise.
2820 (TARGET_FMA4): Likewise.
2821 (TARGET_XOP): Likewise.
2822 (TARGET_LWP): Likewise.
2823 (TARGET_ROUND): Likewise.
2824 (TARGET_ABM): Likewise.
2825 (TARGET_BMI): Likewise.
2826 (TARGET_BMI2): Likewise.
2827 (TARGET_LZCNT): Likewise.
2828 (TARGET_TBM): Likewise.
2829 (TARGET_POPCNT): Likewise.
2830 (TARGET_SAHF): Likewise.
2831 (TARGET_MOVBE): Likewise.
2832 (TARGET_CRC32): Likewise.
2833 (TARGET_AES): Likewise.
2834 (TARGET_PCLMUL): Likewise.
2835 (TARGET_CMPXCHG16B): Likewise.
2836 (TARGET_FSGSBASE): Likewise.
2837 (TARGET_RDRND): Likewise.
2838 (TARGET_F16C): Likewise.
2839 (TARGET_RTM ): Likewise.
2840 (TARGET_HLE): Likewise.
2841 (TARGET_RDSEED): Likewise.
2842 (TARGET_PRFCHW): Likewise.
2843 (TARGET_ADX): Likewise.
2844 (TARGET_64BIT): Likewise.
2845 (TARGET_MMX): Likewise.
2846 (TARGET_3DNOW): Likewise.
2847 (TARGET_3DNOW_A): Likewise.
2848 (TARGET_SSE): Likewise.
2849 (TARGET_SSE2): Likewise.
2850 (TARGET_SSE3): Likewise.
2851 (TARGET_SSSE3): Likewise.
2852 (TARGET_SSE4_1): Likewise.
2853 (TARGET_SSE4_2): Likewise.
2854 (TARGET_AVX): Likewise.
2855 (TARGET_AVX2): Likewise.
2856 (TARGET_FMA): Likewise.
2857 (TARGET_SSE4A): Likewise.
2858 (TARGET_FMA4): Likewise.
2859 (TARGET_XOP): Likewise.
2860 (TARGET_LWP): Likewise.
2861 (TARGET_ROUND): Likewise.
2862 (TARGET_ABM): Likewise.
2863 (TARGET_BMI): Likewise.
2864 (TARGET_BMI2): Likewise.
2865 (TARGET_LZCNT): Likewise.
2866 (TARGET_TBM): Likewise.
2867 (TARGET_POPCNT): Likewise.
2868 (TARGET_SAHF): Likewise.
2869 (TARGET_MOVBE): Likewise.
2870 (TARGET_CRC32): Likewise.
2871 (TARGET_AES): Likewise.
2872 (TARGET_PCLMUL): Likewise.
2873 (TARGET_CMPXCHG16B): Likewise.
2874 (TARGET_FSGSBASE): Likewise.
2875 (TARGET_RDRND): Likewise.
2876 (TARGET_F16C): Likewise.
2877 (TARGET_RTM): Likewise.
2878 (TARGET_HLE): Likewise.
2879 (TARGET_RDSEED): Likewise.
2880 (TARGET_PRFCHW): Likewise.
2881 (TARGET_ADX): Likewise.
2882 (TARGET_LP64): Likewise.
2883 (TARGET_X32): Likewise.
2884 (TARGET_ISA_ROUND): Likewise.
2885 * config/i386/darwin.h (TARGET_64BIT): Likewise.
2887 * doc/options.texi (Mask): Update documentation to specify only
2888 TARGET_<xxx> is generated.
2890 2012-10-17 Greta Yorsh <Greta.Yorsh@arm.com>
2892 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
2893 (UNSPEC_REGISTER_USE): ... to this.
2894 (prologue_use): Rename this...
2895 (force_register_use): ... to this and update output assembly.
2896 (epilogue) Rename gen_prologue_use to gen_force_register_use.
2897 * config/arm/arm.c (arm_expand_prologue): Likewise.
2898 (thumb1_expand_epilogue): Likewise.
2899 (arm_expand_epilogue): Likewise.
2900 (arm_expand_epilogue): Likewise.
2902 2012-10-17 Georg-Johann Lay <avr@gjlay.de>
2904 * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
2905 * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
2906 (avr_option_override): Remove setting of avr_extra_arch_macro.
2907 * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
2908 avr_current_device->macro.
2910 2012-10-17 Richard Biener <rguenther@suse.de>
2912 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
2913 Do not write TREE_CHAIN of PARM_DECLs.
2914 (write_ts_decl_non_common_tree_pointers): Instead stream
2915 the DECL_ARGUMENTS chain.
2916 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2917 Do not read TREE_CHAIN of PARM_DECLs.
2918 (lto_input_ts_decl_non_common_tree_pointes): Instead read
2919 the DECL_ARGUMENTS as chain.
2921 2012-10-17 Steven Bosscher <steven@gcc.gnu.org>
2923 * config/iq2000/iq2000.h (call_used_regs): Remove definition.
2925 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2927 PR rtl-optimization/54870
2928 * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
2929 * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
2930 SSA_NAME pointer that points to a partition if there is at least
2931 one variable with it set in the partition.
2932 * dse.c (local_variable_can_escape): New predicate.
2933 (can_escape): Call it.
2934 * gimplify.c (mark_addressable): If this is a partitioned decl, also
2935 mark the SSA_NAME pointer that points to a partition.
2937 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
2939 * df-problems.c (df_kill_notes): Split up in two functions.
2940 (df_remove_dead_and_unused_notes): New function, first half of
2941 df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
2942 (df_remove_dead_eq_notes): New function, second half of df_kill_notes
2943 to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
2944 (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
2945 of df_kill_notes. Call df_remove_dead_eq_notes after processing insn.
2947 * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
2949 2012-10-16 Ian Lance Taylor <iant@google.com>
2951 * doc/extend.texi (Return Address): Change
2952 __builtin_extract_return_address to
2953 __builtin_extract_return_addr.
2955 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
2957 * rtl.h (get_call_rtx_from): New prototype.
2958 * rtlanal.c (get_call_rtx_from): New function.
2959 * calls.c (emit_call_1): Use it.
2960 * dse.c (scan_insn): Likewise
2961 * dwarf2out.c (dwarf2out_var_location): Likewise.
2962 * sched-deps.c (call_may_noreturn_p): Likewise.
2963 * var-tracking.c (prepare_call_arguments): Likewise.
2964 * config/sh/sh.c (sh_adjust_cost): Likewise.
2966 2012-10-16 Tom de Vries <tom@codesourcery.com>
2968 * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
2969 (store_by_pieces_1): Don't enter loop when no more data is left.
2971 2012-10-16 Joern Rennecke <joern.rennecke@embecosm.com>
2973 * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
2975 (doloop_optimize): Pass flag to indicate if loop is entered at top
2977 * config/arm/thumb2.md (doloop_end): Accept extra operand.
2978 * config/bfin/bfin.md (doloop_end): Likewise.
2979 * config/c6x/c6x.md (doloop_end): Likewise.
2980 * config/ia64/ia64.md (doloop_end): Likewise.
2981 * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
2982 * config/rs6000/rs6000.md (doloop_end): Likewise.
2983 * config/s390/s390.md (doloop_end): Likewise.
2984 * config/sh/sh.md (doloop_end): Likewise.
2985 * config/spu/spu.md (doloop_end): Likewise.
2986 * config/tilegx/tilegx.md (doloop_end): Likewise.
2987 * config/tilepro/tilepro.md (doloop_end): Likewise.
2988 * doc/md.texi (doloop_end): Document new operand.
2989 * basic-block.h (contains_no_active_insn_p): Declare.
2990 * cfgrtl.c (contains_no_active_insn_p): New function, factored
2992 (forwarder_block_p): ... here.
2994 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2998 * doc/options.texi (EnabledBy): Document new form.
2999 * optc-gen.awk: Handle new form of EnabledBy.
3000 * common.opt (Wunused-but-set-parameter): Use EnabledBy.
3001 (Wunused-parameter): Likewise.
3002 * opts.c (finish_options): Do not handle them explicitly.
3003 * opt-functions.awk (search_var_name): New.
3005 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3009 * optc-gen.awk: Handle new form of LangEnabledBy.
3010 * opts.c (set_Wstrict_aliasing): Declare here. Make static.
3011 * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
3012 * doc/options.texi (LangEnabledBy): Document new form.
3013 * flags.h (set_Wstrict_aliasing): Do not declare.
3015 2012-10-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3017 * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
3018 parameter. Always replace normal subreg with memory reference
3019 whenever possible. Return NULL otherwise.
3020 (find_reloads_toplev): Always call find_reloads_subreg_address
3021 for subregs of registers equivalent to a memory location.
3022 Only recurse further if find_reloads_subreg_address fails.
3023 (find_reloads_address_1): Only call find_reloads_subreg_address
3024 for subregs of registers equivalent to a memory location.
3025 Properly handle failure of find_reloads_subreg_address.
3027 2012-10-16 Jakub Jelinek <jakub@redhat.com>
3030 * rtl.h: Document jump flag on VALUE.
3031 * cselib.h (cselib_set_value_sp_based,
3032 cselib_sp_based_value_p): New prototypes.
3033 * alias.c (find_base_term): For cselib_sp_based_value_p
3034 return static_reg_base_value[STACK_POINTER_REGNUM].
3035 * cselib.c (SP_BASED_VALUE_P): Define.
3036 (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
3037 * var-tracking.c (add_stores): Call cselib_set_value_sp_based
3038 for not yet preserved VALUEs of sp on sp assignments if
3039 hard_frame_pointer_adjustment != -1.
3040 (vt_initialize): When setting hard_frame_pointer_adjustment,
3041 disassociate sp from its previous value and call
3042 cselib_set_value_sp_based on a new VALUE created for sp.
3044 PR tree-optimization/54889
3045 * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
3046 ARRAY_REF newref doesn't have compatible type with vectype element
3047 type, use vectype element type for MEM_REF.
3049 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
3051 * combine.c (record_dead_and_set_regs): Iterate over hard register set
3052 with a hard_reg_set_iterator.
3053 * cse.c (invalidate_for_call): Likewise.
3054 * gcse.c (compute_hash_table_work): Likewise.
3055 * loop-iv.c (simplify_using_initial_values): Likewise.
3056 * postreload-gcse.c (record_opr_changes): Likewise.
3057 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
3058 * var-tracking.c (dataflow_set_clear_at_call): Likewise.
3060 2012-10-15 Easwaran Raman <eraman@google.com>
3062 * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
3063 specificy the probability of taking the jump.
3064 (emit_cmp_and_jump_insns): Likewise.
3065 (expand_compare_and_swap_loop): Make the jump predicted not taken.
3066 * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
3067 REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
3068 * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
3069 probabilities for branches with more than two successors.
3070 * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
3072 (try_casesi): Pass the probability of jumping to the default label.
3073 (try_tablejump): Likewise.
3074 (do_tablejump): Likewise.
3075 * expr.h (try_tablejump): Add a new parameter.
3076 (try_casesi): Likewise.
3077 (emit_cmp_and_jump_insns): Add probability as default parameter with a
3078 default value of -1.
3079 * except.c (sjlj_emit_function_enter): Pass probability to
3080 emit_cmp_and_jump_insns.
3081 * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
3082 (do_jump_if_equal): Pass probability for REG_BR_PROB note.
3083 (add_case_node): Pass estimated probability of jumping to the case
3085 (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
3086 (get_outgoing_edge_probs): New function.
3087 (conditional_probability): Likewise.
3088 (reset_out_edges_aux): Likewise.
3089 (compute_cases_per_edge): Likewise.
3090 (emit_case_dispatch_table): Update probabilities of edges coming out
3091 of the switch statement.
3092 (expand_case): Compute and propagate default edge probability to
3093 emit_case_dispatch_table.
3094 (expand_sjlj_dispatch_table): Update calls to add_case_node and
3095 emit_case_dispatch_table.
3096 (balance_case_nodes): Update subtree_prob values.
3097 (emit_case_nodes): Compute edge probabilities and add pass them to
3098 emit_cmp_and_jump_insns.
3100 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
3103 * config/sh/sh-protos.h (set_of_reg): New struct.
3104 (sh_find_set_of_reg, sh_is_logical_t_store_expr,
3105 sh_try_omit_signzero_extend): Declare...
3106 * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
3107 sh_try_omit_signzero_extend): ...these new functions.
3108 * config/sh/sh.md (*logical_op_t): New insn_and_split.
3109 (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
3111 (*extend<mode>si2_compact_reg): Convert to insn_and_split.
3112 Use sh_try_omit_signzero_extend in splitter.
3113 (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
3114 (*cbranch_t): Rewrite combine part in splitter using new
3115 sh_find_set_of_reg function.
3117 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
3120 * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
3121 hitting a call insn if GBR is marked as call used.
3122 * config/sh/iterators.md (QIHISIDI): New mode iterator.
3123 * config/sh/predicates.md (gbr_address_mem): New predicate.
3124 * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
3125 insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR
3128 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
3130 * config/sh/sh.c: Update function attribute comments.
3131 * doc/extend.texi (function_vector): Rephrase SH2A specific part.
3132 (nosave_low_regs, renesas, trapa_handler): Document SH specific
3134 (sp_switch, trap_exit): Add to index.
3136 2012-10-15 Matthias Klose <doko@ubuntu.com>
3138 * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
3139 * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
3141 2012-10-15 Uros Bizjak <ubizjak@gmail.com>
3143 * config/i386/sse.md (UNSPEC_MOVU): Remove.
3144 (UNSPEC_LOADU): New.
3145 (UNSPEC_STOREU): Ditto.
3146 (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
3147 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
3148 (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
3149 (<sse2>_movdqu<avxsizesuffix>): Split to ...
3150 (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
3151 (<sse2>_storedqu<avxsizesuffix>): ... this.
3152 (*sse4_2_pcmpestr_unaligned): Update.
3153 (*sse4_2_pcmpistr_unaligned): Ditto.
3155 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
3156 gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
3157 gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
3158 (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
3159 gen_sse2_load{dqu,upd} to load from unaligned memory and
3160 gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
3162 (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
3163 Use CODE_FOR_sse_loadups.
3164 <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
3165 <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
3166 <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
3167 <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
3168 <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
3169 <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
3170 <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
3171 <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
3172 <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
3173 <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
3174 <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
3176 2012-10-15 Dodji Seketeli <dodji@redhat.com>
3178 * alias.c: Cleanup comments.
3180 2012-10-15 Marc Glisse <marc.glisse@inria.fr>
3182 PR tree-optimization/54915
3183 * tree-ssa-forwprop.c (simplify_vector_constructor): Check
3186 2012-10-15 Richard Biener <rguenther@suse.de>
3188 * data-streamer.h (bp_pack_string_with_length): New function.
3189 (bp_pack_string): Likewise.
3190 (bp_unpack_indexed_string): Likewise.
3191 (bp_unpack_string): Likewise.
3192 * data-streamer-out.c (bp_pack_string_with_length): Likewise.
3193 (bp_pack_string): Likewise.
3194 * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
3195 (bp_unpack_string): Likewise.
3196 * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
3197 Pack TRANSLATION_UNIT_LANGUAGE here, not ...
3198 (write_ts_translation_unit_decl_tree_pointers): ... here. Remove.
3199 (streamer_pack_tree_bitfields): Adjust.
3200 (streamer_write_tree_body): Likewise.
3201 * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
3202 Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
3203 (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove.
3204 (unpack_value_fields): Adjust.
3205 (streamer_read_tree_body): Likewise.
3207 2012-10-15 J"orn Rennecke <joern.rennecke@arc.com>
3209 * genoutput.c (process_template): Process '*' in '@' alternatives.
3210 * doc/md.texi (node Output Statement): Provide example for the above.
3212 2012-10-15 Richard Guenther <rguenther@suse.de>
3214 PR tree-optimization/54920
3215 * tree-ssa-pre.c (create_expression_by_pieces): Properly
3216 allocate temporary storage for all NARY elements.
3218 2012-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
3220 * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
3222 2012-10-15 Eric Botcazou <ebotcazou@adacore.com>
3224 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
3225 copy the object in the MEM_P case.
3227 2012-10-15 Richard Guenther <rguenther@suse.de>
3229 * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
3230 BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
3231 (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
3232 (write_ts_exp_tree_pointers): Adjust.
3233 (write_ts_binfo_tree_pointers): Likewise.
3234 (write_ts_constructor_tree_pointers): Likewise.
3235 * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
3236 null-terminated list.
3237 (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
3238 CONSTRUCTOR lengths and materialize the arrays.
3239 (lto_input_ts_exp_tree_pointers): Adjust.
3240 (lto_input_ts_binfo_tree_pointers): Likewise.
3241 (lto_input_ts_constructor_tree_pointers): Likewise.
3243 2012-10-14 Hans-Peter Nilsson <hp@bitrange.com>
3245 * config/mmix/mmix.c (mmix_opposite_regno): Handle the
3246 return-value register too.
3248 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
3250 PR rtl-optimization/38711
3251 * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
3252 * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
3253 * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
3255 * ira-build.c (create_bb_allocnos): Likewise.
3256 (create_loop_allocnos): Likewise, and use df_get_live_in instead of
3258 * ira-emit.c (generate_edge_moves): Likewise.
3259 (add_ranges_and_copies): Likewise.
3260 * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
3261 DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
3262 * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
3263 (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
3264 (do_reload): Remove the DF_LIVE problem for -O1.
3266 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
3268 PR rtl-optimization/54919
3269 * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
3270 (analyze_insn_to_expand_var): Do not record accum_pos.
3271 (expand_var_during_unrolling): Use validate_replace_rtx_group to
3272 perform replacement of all references to SET_DEST (set) with the
3273 new register, including references in REG_EQUAL notes.
3274 (insert_var_expansion_initialization): Insert initializatio insns
3275 at the bottom of the pre-header of the loop.
3277 2012-10-14 Jan Hubicka <jh@suse.cz>
3279 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
3280 predict loops with multiple exits realistically.
3281 * cfgloopanal.c (single_likely_exit): New function.
3283 2012-10-14 Uros Bizjak <ubizjak@gmail.com>
3285 * config/alpha/alpha.md: Remove empty predicates and/or constraints.
3286 * config/alpha/sync.md: Ditto.
3288 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
3290 * config/alpha/alpha.md (I24MODE): New mode iterator.
3291 (any_divmod): New code iterator.
3292 (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
3293 any_divmod code iterator.
3294 (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
3295 any_divmod code iterator.
3296 (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
3297 I24MODE mode iterator.
3298 (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
3299 using I12MODE mode iterator.
3300 (mov<mode>): Macroize expander from mov{qi,hi} using
3301 I12MODE mode iterator.
3303 2012-10-13 Eric Botcazou <ebotcazou@adacore.com>
3305 PR rtl-optimization/54871
3306 * loop-iv.c (simplify_using_initial_values): When scanning previous
3307 basic blocks, prune the recorded conditions if the current insn was
3308 not used to make a replacement.
3310 * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
3311 (unroll_loop_constant_iterations): Clarify head comment.
3312 (decide_unroll_runtime_iterations): Clean up message.
3313 (unroll_loop_runtime_iterations): Clarify head comment.
3314 (decide_peel_simple): Clean up message.
3315 (peel_loop_simple): Clarify head comment.
3316 (decide_unroll_stupid): Clean up message.
3317 (unroll_loop_stupid): Clarify head comment.
3319 2012-10-13 Andreas Schwab <schwab@linux-m68k.org>
3321 PR gcov-profile/44728
3322 * gcov.c (create_file_names): When stripping extension only look
3325 2012-10-13 Jan Hubicka <jh@suse.cz>
3327 * loop-iv.c (determine_max_iter): Fix handling of AND.
3328 (iv_number_of_iterations): Record upper bounds as unsigned
3331 2012-10-13 Steven Bosscher <steven@gcc.gnu.org>
3333 * ira.c (ira): Set current_loops to &ira_loops before recording
3334 loop exits. Release recorded exits and loops early.
3336 2012-10-13 Chung-Lin Tang <cltang@codesourcery.com>
3338 * builtins.c (expand_builtin_set_thread_pointer): Use
3339 create_input_operand() instead of create_fixed_operand().
3341 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
3343 * config/alpha/alpha.md (FMODE): New mode iterator.
3344 (modesuffix): Handle SF and DF modes.
3345 (opmode): New mode attribute.
3346 (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
3347 (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
3348 FMODE mode iterator.
3349 (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
3350 (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
3351 FMODE mode iterator.
3352 (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
3353 FMODE mode iterator.
3354 (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
3355 FMODE mode iterator.
3356 (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
3357 (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
3358 FMODE mode iterator.
3359 (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
3360 (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
3361 FMODE mode iterator.
3362 (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
3363 (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
3364 FMODE mode iterator.
3365 (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
3366 (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
3367 FMODE mode iterator.
3368 (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
3369 using FMODE mode iterator.
3370 (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
3371 using FMODE mode iterator.
3372 (mov<mode>cc): Macroize expander from mov{sf,df}cc
3373 using FMODE mode iterator.
3375 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
3378 * config/sh/sh.md: Correct define_delay for return insns.
3379 (*movsi_pop): Delete.
3381 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
3384 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
3386 * config/sh/predicates.md (fpul_operand): Add comment.
3387 (fpul_fsca_operand, fsca_scale_factor): New predicates.
3388 * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to
3389 insn_and_split. Use fpul_fsca_operand and fsca_scale_factor
3390 predicates. Simplify fpul operand in splitter.
3392 2012-10-12 Jan Hubicka <jh@suse.cz>
3394 * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
3397 2012-10-12 Jan Hubicka <jh@suse.cz>
3399 * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
3401 2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
3402 Diego Novillo <dnovillo@google.com>
3404 * gengtype-lex.l: Support for C++ single line comments.
3405 Support for classes.
3406 (CXX_KEYWORD): New. Support C++ keywords inline, public,
3407 protected, private, template, operator, friend, &, ~.
3408 (TYPEDEF): New. Support typedef.
3409 * gengtype-parser.c: updated 'token_names[]'
3410 (direct_declarator): Add support for parsing functions and ctors.
3412 2012-10-12 Diego Novillo <dnovillo@google.com>
3414 * doc/gty.texi: Document C++ limitations in gengtype.
3415 * gengtype-lex.l (CID): Rename from ID.
3416 (ID): Include scoping '::' as part of the identifier name.
3417 * gengtype-parse.c (token_names): Update.
3418 (token_value_format): Update.
3419 (consume_until_eos): Rename from consume_until_semi.
3420 Remove unused argument IMMEDIATE. Update all callers.
3421 Also consider '}' as a finalizer.
3422 (consume_until_comma_or_eos): Rename from
3423 consume_until_comma_or_semi.
3424 Remove unused argument IMMEDIATE. Update all callers.
3425 Also consider '}' as a finalizer.
3426 (direct_declarator): Add documentation on ctor support.
3427 Add argument IN_STRUCT.
3428 If the token following ID is a '(', consider ID a
3429 function and return NULL.
3430 If the token following '(' is not a '*', and IN_STRUCT is true,
3431 conclude that this is a ctor and return NULL.
3432 If the token is IGNORABLE_CXX_KEYWORD, return NULL.
3433 (inner_declarator): Add argument IN_STRUCT.
3435 (declarator): Add argument IN_STRUCT with default value false.
3437 (type): Document argument NESTED.
3438 Skip over C++ inheritance specifiers.
3439 If a token TYPEDEF is found, emit an error.
3440 If an enum is found inside a class/structure, emit an error.
3441 (typedefs, structures, param_structs, variables): Initialize.
3442 (new_structure): Do not complain about duplicate
3443 structures if S has a line location set.
3444 * gengtype-state.c (write_state_type): Remove default handler.
3445 Add handler for TYPE_NONE.
3446 (read_state_scalar_char_type):
3447 * gengtype.c: Fix spacing.
3448 * gengtype.h (enum gty_token): Add name. Add token
3449 IGNORABLE_CXX_KEYWORD.
3451 2012-10-12 Chung-Lin Tang <cltang@codesourcery.com>
3453 * config/arm/arm.md (get_thread_pointersi): Moved to place with
3454 other TLS related patterns.
3456 2012-10-12 Richard Biener <rguenther@suse.de>
3458 * tree-streamer-out.c (pack_ts_target_option): Rename from ...
3459 (write_ts_target_option): ... this.
3460 (pack_ts_optimization): Rename from ...
3461 (write_ts_optimization): ... this.
3462 (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
3463 (streamer_write_tree_body): ... not here.
3464 * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
3465 (lto_input_ts_target_option): ... this.
3466 (unpack_ts_optimization): Rename from ...
3467 (lto_input_ts_optimization): ... this.
3468 (unpack_value_fields): Unpack them from the bitfield section ...
3469 (streamer_read_tree_body): ... not from here.
3471 2012-10-12 Uros Bizjak <ubizjak@gmail.com>
3473 * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
3474 (modesuffix): Handle V8QI and V4HI modes.
3475 (any_maxmin): New code iterator.
3476 (maxmin): New code attribute.
3477 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
3478 using any_maxmin code iterator and I12MODE mode iterator.
3479 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
3480 using any_maxmin code iterator and VEC12 mode iterator.
3482 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3484 * optabs.c (vector_compare_rtx): Change prototype.
3485 (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
3486 is not a comparison.
3487 * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
3489 2012-10-12 Richard Biener <rguenther@suse.de>
3491 PR tree-optimization/54894
3492 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3493 Handle over-aligned scalar types properly.
3495 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
3498 * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
3499 * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
3502 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
3505 * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
3506 get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
3507 (*zero_extend<mode>si2_compact): Convert to insn_and_split. Convert
3508 zero extensions of T bit stores to reg moves in splitter. Remove
3509 obsolete unnamed peephole2 that caught zero extensions after negc T bit
3511 (*branch_true_eq, *branch_false_ne): Delete.
3512 (branch_true, branch_false): Convert insn to expander. Move actual
3514 (*cbranch_t): ...this new insn_and_split. Try to find preceding
3515 redundant T bit stores and tests and combine them with the conditional
3516 branch if possible in the splitter.
3517 (movrt_xor, *movt_movrt): New insn_and_split.
3518 * config/sh/predicates.md (cbranch_treg_value): New predicate.
3519 * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
3520 * config/sh/sh.c (sh_eval_treg_value): ...this new function.
3521 (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
3522 when invoking gen_branch_true or gen_branch_false.
3524 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
3526 * config/alpha/alpha.md (IMODE): New mode iterator.
3529 (modesuffix): Handle QI and HI modes.
3530 (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
3531 using I248MODE mode iterator.
3532 (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
3533 using I48MODE mode iterator.
3534 (andnot<mode>3): Macroize insn from andnot{si,di}3 using
3535 I48MODE mode iterator.
3536 (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
3537 using I248MODE mode iterator.
3538 (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
3539 using I248MODE mode iterator.
3540 (*mov<mode>cc_internal): Macroize insn from
3541 *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
3542 (*mov<mode>cc_lbc): Macroize insn from
3543 *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
3544 (*mov<mode>cc_lbs): Macroize insn from
3545 *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
3546 (mov<mode>cc): Macroize expander from mov{si,di}cc
3547 using I48MODE mode iterator.
3549 2012-10-11 Steven Bosscher <steven@gcc.gnu.org>
3551 * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
3552 (ira_traverse_loop_tree): Traverse a loop's basic blocks in
3553 reverse post-order of the reversed control-flow direction.
3554 * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
3555 the pre-order function to ira_traverse_loop_tree to preserve
3556 the existing semantics.
3558 * ira-lives.c (remove_some_program_points_and_update_live_ranges):
3559 Squeeze out live range chain elements if their program points are
3562 2012-10-11 Jakub Jelinek <jakub@redhat.com>
3564 * tree.def (REDUC_PLUS_EXPR): Fix up comment.
3566 * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
3567 REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
3569 2012-10-11 James Lemke <jwlemke@codesourcery.com>
3571 * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
3572 * config/rs6000/rs6000.md (return_pred): Fix null return.
3573 * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
3574 (print_operand): Make FALLTHRU obvious.
3575 (output_cbranch): Correct comment.
3577 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
3579 * config/alpha/alpha.md (DWI): New mode attribute.
3580 (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
3581 I48MODE mode iterator.
3582 (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
3583 I48MODE mode iterator.
3584 (neg<mode>2): Macroize insn from negsi2 and negdi2 using
3585 I48MODE mode iterator.
3586 (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
3587 I48MODE mode iterator.
3588 (sub<mode>3): Macroize insn from subsi3 and subdi3 using
3589 I48MODE mode iterator.
3590 (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
3591 I48MODE mode iterator.
3592 (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
3593 I48MODE mode iterator.
3594 (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
3595 I48MODE mode iterator.
3596 (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
3597 I48MODE mode iterator.
3598 (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
3599 I48MODE mode iterator.
3600 (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
3601 I48MODE mode iterator.
3603 2012-10-11 Jason Merrill <jason@redhat.com>
3605 * configure.ac (gcc_cv_as_aix_ref): Fix typo.
3606 * configure: Regenerate.
3608 2012-10-11 Chung-Lin Tang <cltang@codesourcery.com>
3610 * builtins.c (expand_builtin_thread_pointer): New.
3611 (expand_builtin_set_thread_pointer): New.
3612 (expand_builtin): Add BUILT_IN_THREAD_POINTER,
3613 BUILT_IN_SET_THREAD_POINTER expand cases.
3614 * builtins.def (BUILT_IN_THREAD_POINTER):
3615 New __builtin_thread_pointer builtin.
3616 (BUILT_IN_SET_THREAD_POINTER):
3617 New __builtin_set_thread_pointer builtin.
3618 * optabs.def (get_thread_pointer,set_thread_pointer):
3620 * doc/md.texi (Standard Names): Document get_thread_pointer and
3621 set_thread_pointer patterns.
3622 * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
3623 (set_thread_pointerdi): Rename from set_tp.
3624 * config/alpha/alpha.c (alpha_legitimize_address_1): Change
3625 gen_load_tp calls to gen_get_thread_pointerdi.
3626 (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
3627 ALPHA_BUILTIN_SET_THREAD_POINTER.
3628 (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
3629 (alpha_init_builtins): Remove __builtin_thread_pointer,
3630 __builtin_set_thread_pointer machine-specific builtins.
3631 (alpha_expand_builtin_thread_pointer): Add hook function for
3632 TARGET_EXPAND_BUILTIN_THREAD_POINTER.
3633 (alpha_expand_builtin_set_thread_pointer): Add hook function for
3634 TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
3635 (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
3636 ALPHA_BUILTIN_SET_THREAD_POINTER cases.
3637 * config/arm/arm.md (get_thread_pointersi): New pattern.
3638 * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
3639 * config/arm/arm.c (arm_load_tp): Remove static.
3640 (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
3641 (arm_init_tls_builtins): Remove function.
3642 (arm_init_builtins): Remove call to arm_init_tls_builtins().
3643 (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
3644 * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
3645 * config/mips/mips-protos.h (mips_expand_thread_pointer):
3646 Add extern declaration.
3647 * config/mips/mips.c (mips_expand_thread_pointer):
3648 Renamed from mips_get_tp.
3649 (mips_get_tp): New stub calling mips_expand_thread_pointer.
3650 * config/s390/s390.c (s390_builtin,code_for_builtin_64,
3651 code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
3652 * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
3654 (get_thread_pointer<mode>,set_thread_pointer<mode>):
3655 New, adapted from removed patterns.
3656 * config/xtensa/xtensa.md (get_thread_pointersi):
3657 Renamed from load_tp.
3658 (set_thread_pointersi): Renamed from set_tp.
3659 * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
3660 Change gen_load_tp calls to gen_get_thread_pointersi.
3661 (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
3662 XTENSA_BUILTIN_SET_THREAD_POINTER.
3663 (xtensa_init_builtins): Remove __builtin_thread_pointer,
3664 __builtin_set_thread_pointer machine-specific builtins.
3665 (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
3666 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
3667 (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
3668 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
3670 2012-10-11 Marc Glisse <marc.glisse@inria.fr>
3672 * doc/extend.texi (Vector Extensions): C++ improvements.
3673 * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
3674 (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
3676 (VEC_COND_EXPR): Document it.
3678 2012-10-11 Terry Guo <terry.guo@arm.com>
3680 * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
3682 * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
3685 2012-10-11 Hans-Peter Nilsson <hp@bitrange.com>
3688 * configure.ac (out-of-tree linker .hidden support) Set to "no"
3689 for mmix-knuth-mmixware.
3690 * configure: Regenerate.
3692 * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
3693 * configure: Regenerate.
3695 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
3696 character to quote the VERSION= contents. Sanity-check contents.
3697 * configure.ac ("what linker to use" ld version extraction): Ditto.
3698 * configure: Regenerate.
3700 2012-10-10 Segher Boessenkool <segher@kernel.crashing.org>
3702 * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
3704 2012-10-10 Jakub Jelinek <jakub@redhat.com>
3706 PR tree-optimization/54877
3707 * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
3708 use make_ssa_name instead of copy_ssa_name.
3710 2012-10-10 Richard Biener <rguenther@suse.de>
3712 * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
3713 (lto_input_location): ... this. Kill original.
3714 (input_eh_region): Adjust.
3715 (input_struct_function_base): Likewise.
3716 (lto_read_tree): Likewise.
3717 * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
3718 (lto_output_location): ... this. Kill original.
3719 (lto_write_tree): Adjust.
3720 (output_eh_region): Likewise.
3721 (output_struct_function_base): Likewise.
3722 * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
3723 * lto-streamer.h (lto_input_location): Adjust prototype.
3724 (lto_output_location): Likewise.
3725 * streamer-hooks.h (struct streamer_hooks): Adjust prototype
3726 of input_location and output_location hooks.
3727 (stream_input_location): New define.
3728 (stream_output_location): Likewise.
3729 * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
3730 (unpack_value_fields): Likewise.
3731 (streamer_read_tree_bitfields): Likewise.
3732 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3733 (lto_input_ts_exp_tree_pointers): Likewise.
3734 (lto_input_ts_block_tree_pointers): Likewise.
3735 * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
3736 (streamer_pack_tree_bitfields): Likewise.
3737 (write_ts_decl_minimal_tree_pointers): Likewise.
3738 (write_ts_exp_tree_pointers): Likewise.
3739 (write_ts_block_tree_pointers): Likewise.
3740 * gimple-streamer-in.c (input_phi): Adjust.
3741 (input_gimple_stmt): Likewise.
3742 * gimple-streamer-out.c (output_phi): Adjust.
3743 (output_gimple_stmt): Likewise.
3744 * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
3745 (streamer_pack_tree_bitfields): Likewise.
3747 2012-10-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3749 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
3750 vs. unsigned warnings by using enum type for function code.
3751 (paired_expand_builtin): Likewise.
3752 (spe_expand_builtin): Likewise.
3754 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
3755 builtin mask, target flags masks type to HOST_WIDE_INT in
3756 preparation for growing the number of ISA switches from 31 to 63.
3758 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
3761 * config/rs6000/rs6000.c (struct builtin_description): Make
3762 builtin mask field HOST_WIDE_INT. Make target flags field
3763 HOST_WIDE_INT in preparation for growing the # of ISA switches.
3764 (struct rs6000_builtin_info_type): Likewise.
3765 (struct rs6000_ptt): Likewise.
3766 (rs6000_builtin_mask_calculate): Likewise.
3767 (rs6000_invalid_builtin): Likewise.
3768 (rs6000_builtin_decl): Likewise.
3769 (rs6000_common_init_builtins): Likewise.
3770 (rs6000_darwin_file_start): Likewise.
3771 (rs6000_final_prescan_insn): Likewise.
3772 (rs6000_inner_target_options): Likewise.
3773 (build_target_option_node): Likewise.
3774 (rs6000_function_specific_print): Likewise.
3775 (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
3777 * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
3778 Make target flags, builtin masks arguments/return values
3779 HOST_WIDE_INT in preparation for growing the number of ISA from 31
3781 (rs6000_target_modify_macros): Likewise.
3782 (rs6000_target_modify_macros_ptr): Likewise.
3784 * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
3785 define and change DEBUG_FMT_<x> to use it.
3786 (DEBUG_FMT_D): Likewise.
3787 (DEBUG_FMT_S): Likewise.
3788 (DEBUG_FMT_X): Delete, no longer used.
3789 (DEBUG_FMT_W): Likewise.
3790 (DEBUG_FMT_WX): New debug format for printing options in a
3792 (rs6000_debug_reg_global): If -mdebug=reg, print all of the
3793 options in target_flags and target_flags_explicit. Print the
3794 default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
3795 options. Adjust printing out the builtin options.
3796 (rs6000_option_override_internal): Change printing the builtin
3797 options to use rs6000_print_builtin_options.
3798 (rs6000_function_specific_print): Change to use
3799 rs6000_print_isa_options to print ISA flags.
3800 (rs6000_print_options_internal): New function for expanded
3801 -mdebug=reg option printing to print both the ISA options, and the
3802 builtins that are enabled.
3803 (rs6000_print_isa_options): New function to print the ISA options.
3804 (rs6000_print_builtin_options): New function to print the builtin
3807 2012-10-10 Jakub Jelinek <jakub@redhat.com>
3810 * config/i386/bdver1.md (bdver1-mult): Remove.
3813 * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
3814 instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
3817 * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
3818 INTVAL of second argument with precision resp. op_precision.
3820 2012-10-10 Dodji Seketeli <dodji@redhat.com>
3822 PR middle-end/54860 - Make sure attributes hash table is created
3823 * attribs.c (register_scoped_attributes): Ensure the attribute
3824 hash table is created.
3826 2012-10-10 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3829 * config/i386/bdver1.md (bdver1_int): Automaton has been
3830 split to reduce state transitions.
3832 2012-10-10 Richard Biener <rguenther@suse.de>
3835 * ipa-prop.c (prune_expression_for_jf_1): New function.
3836 (prune_expression_for_jf): Clear EXPR_LOCATION for all
3837 sub-expressions as well.
3839 2012-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3841 * config.gcc: Enable zEC12 for with-arch and with-tune
3843 * common/config/s390/s390-common.c (processor_flags_table): Add
3845 * config/s390/2827.md: New file.
3846 * config/s390/s390-opts.h (enum processor_type): Add
3847 PROCESSOR_2827_ZEC12.
3848 * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
3849 (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
3850 * config/s390/s390.c (zEC12_cost): New definition.
3851 (s390_option_override): Set costs for zEC12.
3852 Set parameter defaults for zEC12.
3853 (legitimate_reload_fp_constant_p): Adjust comment.
3854 (preferred_la_operand_p): Adjust comment.
3855 (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
3856 (s390_adjust_priority): Add zEC12 check.
3857 (s390_issue_rate): Return 2 for zEC12.
3858 (s390_reorg): Enable code optimizations for zEC12.
3859 (s390_sched_reorder): Reorder insns according to OOO attributes.
3860 (s390_get_sched_attrmask): New function.
3861 (s390_sched_score): New function.
3862 (s390_sched_variable_issue): Update s390_sched_state.
3863 (s390_sched_init): Reset s390_sched_state.
3864 (s390_loop_unroll_adjust): Enable for zEC12.
3865 * config/s390/s390.opt: Add zEC12 processor type value.
3866 * config/s390/s390.md: Enable mnemonic attribute.
3867 (attr cpu, cpu_facility): Add zEC12.
3869 ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
3870 ("*load_and_trap<mode>"): New insn definition.
3871 ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
3873 2012-10-09 David S. Miller <davem@davemloft.net>
3875 * config/sparc/sparc.md (type attribute): Add new types 'visl'
3876 (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename
3877 'fgm_pdist' to 'pdist'.
3878 (*movsi_insn): Use vismv and visl.
3879 (*movdi_insn_sp64): Likewise.
3880 (*movsf_insn): Likewise.
3881 (*movdf_insn_sp64): Likewise.
3882 (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
3883 (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
3884 instead of 'fsrc1s'.
3885 (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
3886 instead of 'fsrc1s'.
3887 (VIS logical instructions): Mark as visl.
3888 (pdist_vis): Use 'pdist'.
3889 (pditsn<mode>_vis): Use 'pdistn'.
3890 * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
3891 * config/sparc/ultra3.md: Likewise.
3892 * config/sparc/niagara.md: Likewise.
3893 * config/sparc/niagara2.md: Likewise.
3894 * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
3895 "n4_load_store" for special store scheduling. Use them in load
3896 and store reservations. Integer divide and multiply can only
3897 issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS
3900 2012-10-10 Dehao Chen <dehao@google.com>
3902 * tree-eh.c (lower_try_finally_onedest): Set correct location for
3904 * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
3906 2012-10-10 Oleg Endo <olegendo@gcc.gnu.org>
3909 * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
3910 regardless of the endianness.
3912 2012-10-09 Lawrence Crowl <crowl@google.com>
3914 * Makefile.in (fold-const.o): Add depencence on hash-table.h.
3917 * fold-const.c (fold_checksum_tree): Change to new
3918 type-safe hash table.
3919 * (print_fold_checksum): Likewise.
3920 * cfg.c (var bb_original): Likewise.
3921 * (var bb_copy): Likewise.
3922 * (var loop_copy): Likewise.
3923 * hash-table.h (template hash_table): Constify parameters for find...
3924 and remove_elt... member functions.
3925 (hash_table::empty) Correct size expression.
3926 (hash_table::clear_slot) Correct deleted entry assignment.
3927 * dse.c (var rtx_group_table): Change to new type-safe hash table.
3929 2012-10-09 Steven Bosscher <steven@gcc.gnu.org>
3931 * basic-block. (profile_record): New struct, moved from passes.c.
3932 * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
3933 (account_profile_record): New prototype.
3934 * cfghooks.c (account_profile_record): New function.
3935 * tree-cfg.c (gimple_account_profile_record): New function
3936 (gimple_cfg_hooks): Add it.
3937 * cfgrtl.c (rtl_account_profile_record): New function
3938 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
3939 * passes.c (check_profile_consistency): Simplify. Move IR-dependent
3940 code around using cfghooks machinery.
3942 2012-10-09 Oleg Endo <olegendo@gcc.gnu.org>
3945 * doc/extend.texi (Target Builtins): Add SH built-in section.
3946 Document __builtin_thread_pointer and __builtin_set_thread_pointer.
3948 2012-10-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3951 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
3952 Perform non constant step prefetching in inner loop, only
3953 when it is invariant in the entire loop nest.
3954 * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
3955 base, step and delta values of memeory reference analysed for
3957 * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
3958 to print base, step and delta values of memory reference.
3959 * cfgloop.h (loop_outermost): New function that returns outermost
3960 loop for a given loop in a loop nest.
3962 2012-10-09 Richard Guenther <rguenther@suse.de>
3965 * cfgexpand.c (expand_debug_source_expr): Move checking
3966 code conditional on a found decl_debug_args vector.
3968 2012-10-09 Richard Guenther <rguenther@suse.de>
3970 * tree-streamer.c (streamer_tree_cache_get): Move ...
3971 * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
3973 2012-10-09 Jan Hubicka <jh@suse.cz>
3975 * loop-unroll.c (unroll_loop_constant_iterations): Add
3976 update of loop->nb_iterations_upper_bound I missed in my previous
3977 commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
3979 (decide_unroll_runtime_iterations): Avoid overflow.
3980 (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
3981 FLOOR_DIV_EXPR to update iteration bounds.
3982 (decide_peel_simple): Avoid integer overflow when deciding
3983 on number of peelings.
3984 (decide_unroll_stupid): Likewise.
3986 2012-10-09 Tobias Burnus <burnus@net-b.de>
3988 * lto-cgraph.c (input_node_opt_summary): Remove unused code.
3989 * lto-opts.c (append_to_collect_gcc_options): Fix condition.
3990 * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
3991 which is passed to fprintf.
3993 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3996 * tree.h: Add EXPR_LOC_OR_LOC.
3998 2012-10-09 Nick Clifton <nickc@redhat.com>
4000 PR rtl-optimization/54739
4001 * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
4004 * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
4006 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4009 * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
4010 build_int_cst for a potential vector.
4012 2012-10-08 Uros Bizjak <ubizjak@gmail.com>
4014 * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
4015 (atom_sse_5): Ditto.
4017 2012-10-08 Marc Glisse <marc.glisse@inria.fr>
4020 * config/i386/i386.md (type attribute): Add sseadd1.
4021 (unit attribute): Add support for sseadd1.
4022 (memory attribute): Likewise.
4023 * config/i386/athlon.md: Likewise.
4024 * config/i386/core2.md: Likewise.
4025 * config/i386/atom.md: Likewise.
4026 * config/i386/ppro.md: Likewise.
4027 * config/i386/bdver1.md: Likewise.
4028 * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
4029 (sse3_haddv2df3): ... expander.
4030 (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
4031 (sse3_hsubv2df3): ... define_insn.
4032 (*sse3_haddv2df3_low): New define_insn.
4033 (*sse3_hsubv2df3_low): New define_insn.
4035 2012-10-08 Jan Hubicka <jh@suse.cz>
4037 * loop-unswitch.c (unswitch_single_loop): Use
4038 estimated_loop_iterations_int to prevent unswitching when loop
4039 is known to not roll.
4040 * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
4041 when SCEV is not initialized.
4042 (max_loop_iterations): Likewise.
4043 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
4044 estimated_loop_iterations_int to prevent unswithcing when
4045 loop is known to not roll.
4046 * tree-scalar-evolution.c (scev_initialized_p): New function.
4047 * tree-scalar-evolution.h (scev_initialized_p): Likewise.
4048 * loop-unroll.c (decide_peel_once_rolling): Use
4049 max_loop_iterations_int.
4050 (unroll_loop_constant_iterations): Update
4051 nb_iterations_upper_bound and nb_iterations_estimate.
4052 (decide_unroll_runtime_iterations): Use
4053 estimated_loop_iterations or max_loop_iterations;
4054 (unroll_loop_runtime_iterations): fix profile updating.
4055 (decide_peel_simple): Use estimated_loop_iterations
4056 and max_loop_iterations.
4057 (decide_unroll_stupid): Use estimated_loop_iterations
4058 ad max_loop_iterations.
4059 * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
4060 (doloop_optimize): Likewise.
4061 * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
4062 (find_simple_exit): Likewise.
4063 * cfgloop.h (struct niter_desc): Remove niter_max.
4065 2012-10-08 Marek Polacek <polacek@redhat.com>
4068 * var-tracking.c (vt_add_function_parameter): Use condition instead
4071 2012-10-08 Dehao Chen <dehao@google.com>
4073 * predict.c (predict_loops): Predict for short-circuit conditions.
4074 (predict_extra_loop_exits): New Function.
4076 2012-10-08 Steven Bosscher <steven@gcc.gnu.org>
4078 * bitmap.h (bitmap_and_into): Update prototype.
4079 * bitmap.c (bitmap_and_into): Return true if the target bitmap
4080 changed, false otherwise.
4082 * df.h (df_dump_insn_problem_function): New function type.
4083 (struct df_problem): Add two functions, to dump just before and
4085 (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
4086 (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
4087 * df-core (df_dump_region): Use dump_bb.
4088 (df_dump_bb_problem_data): New function.
4089 (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
4090 (df_dump_insn_problem_data): New function.
4091 (df_dump_insn_top, df_dump_insn_bottom): New functions.
4092 * df-scan.c (problem_SCAN): Add NULL fields for new members.
4093 * df-problems.c (df_rd_local_compute): Ignore hard registers if
4094 DF_NO_HARD_REGS is in effect.
4095 (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
4096 prune reaching defs using the LR problem.
4097 (df_rd_start_dump): Fix dumping of DEFs map.
4098 (df_rd_dump_defs_set): New function.
4099 (df_rd_top_dump, df_rd_bottom_dump): Use it.
4100 (problem_RD): Add NULL fields for new members.
4101 (problem_LR, problem_LIVE): Likewise.
4102 (df_chain_bb_dump): New function.
4103 (df_chain_top_dump): Dump only for artificial DEFs and USEs,
4104 using df_chain_bb_dump.
4105 (df_chain_bottom_dump): Likewise.
4106 (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
4107 (problem_CHAIN): Add them as new members.
4108 (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
4109 (problem_MD): Likewise.
4110 * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
4111 (print_rtl_with_bb): Likewise.
4113 * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
4114 * loop-invariant.c (find_defs): Likewise.
4115 * loop-iv.c (iv_analysis_loop_init): Likewise.
4116 * ree.c (find_and_remove_re): Likewise.
4117 * web.c (web_main): Likewise.
4119 2012-10-08 Jason Merrill <jason@redhat.com>
4121 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
4122 ASM_WEAKEN_DECL with #if RS6000_WEAK.
4124 2012-10-08 Richard Guenther <rguenther@suse.de>
4126 PR tree-optimization/54825
4127 * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
4128 (init_vn_nary_op_from_stmt): Likewise.
4129 * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
4130 * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
4132 2012-10-08 Richard Guenther <rguenther@suse.de>
4134 * tree-ssa-pre.c (postorder_num): New global.
4135 (compute_antic): Initialize all blocks and adjust for
4137 (my_rev_post_order_compute): Remove.
4138 (init_pre): Use inverted_post_order_compute.
4140 2012-10-08 Bernd Schmidt <bernds@codesourcery.com>
4142 * sched-int.h (schedule_block): Adjust declaration.
4143 * sched-rgn.c (bb_state_array, bb_state): New static variables.
4144 (sched_rgn_init): Initialize them.
4145 (sched_rgn_free): Free them.
4146 (schedule_region): Save scheduling state for future blocks, and
4147 pass such state to schedule_block.
4148 * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
4149 * doc/invoke.texi (--param): Document it.
4150 * haifa-sched.c (schedule_block): New arg init_state. Use it to
4151 initialize state if nonnull. All callers changed.
4152 Call advance_one_cycle after scheduling.
4154 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
4157 * doc/invoke.texi (AVR Options): Remove -mshort-calls.
4158 * config/avr/avr.opt (-mshort-calls): Remove option.
4159 * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
4162 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
4165 * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual
4166 combine matching for an insn sequence where a ge:SI pattern
4169 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4171 PR c++/53528 C++11 attribute support
4172 * plugin.h (register_scoped_attributes): Declare new function.
4173 * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
4174 (lookup_scoped_attribute_spec, cxx_11_attribute_p)
4175 (get_attribute_name, get_attribute_namespace): Declare new functions.
4176 (struct attribute_spec): Remove const qualifier from the members.
4177 * tree.c (comp_type_attributes, private_lookup_attribute)
4178 (lookup_ident_attribute, remove_attribute, merge_attribute)
4179 (attribute_hash_list, attribute_list_contained): Use
4181 * attribs.c (decl_attributes): Don't crash on error_mark_node.
4182 Forbid c++11 attributes appertaining to type-specifiers.
4183 (attribute_hash): Remove global variable.
4184 (attributes_table): New global variable.
4185 (find_attribute_namespace, register_scoped_attribute): New static
4187 (register_scoped_attributes, lookup_scoped_attribute_spec)
4188 (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
4189 New public functions.
4190 (init_attributes): Register all the GNU attributes into the "gnu"
4192 (register_attribute): Use register_scoped_attribute to register
4193 the attribute into the "gnu" namespace.
4194 (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
4195 lookup the attribute in the "gnu" namespace.
4196 (decl_attributes): Use new get_attribute_namespace and
4197 lookup_scoped_attribute_spec to consider attribute namespaces when
4198 looking up attributes. When operating in c++-11 mode, pass flag
4199 ATTR_FLAG_CXX11 to the spec handler.
4201 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
4204 * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
4205 constraint alternative "r,0,r" slighly more expensive.
4206 (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
4207 (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
4208 (xorhi3, xorpsi3, xorsi3): Ditto.
4210 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
4213 * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
4214 insns and accompanying unnamed splits.
4215 * config/sh/predicates.md (general_movsrc_operand,
4216 general_movdst_operand): Reject GBR addresses.
4217 * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
4218 * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
4219 sh_secondary_reload): Handle GBR addresses.
4220 (base_reg_disp): New class.
4221 (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
4223 2012-10-08 Hans-Peter Nilsson <hp@bitrange.com>
4225 * config/mmix/mmix.c (mmix_output_octa): Don't assume
4226 HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use
4227 HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
4228 HOST_WIDEST_INT_PRINT_UNSIGNED.
4230 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
4232 * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
4233 * simplify-rtx.c (simplify_truncation): New function,
4234 extracted from simplify_subreg and (in small part) from
4235 simplify_unary_operation_1.
4236 (simplify_unary_operation_1) <TRUNCATE>: Use it. Remove sign bit
4237 test for !TRULY_NOOP_TRUNCATION_MODES_P.
4238 (simplify_subreg): Use simplify_truncate for lowpart subregs
4239 where both the inner and outer modes are scalar integers.
4240 * config/mips/mips.c (mips_truncated_op_cost): New function.
4241 (mips_rtx_costs): Adjust test for BADDU.
4242 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
4244 2012-10-07 Jan Hubicka <jh@suse.cz>
4246 * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
4247 time spent by the inlined sequence.
4248 (do_estimate_edge_growth): Rename to ...
4249 (do_estimate_edge_time): ... this one; return size of inlined sequence.
4250 * ipa-inline.h (do_estimate_edge_size): New.
4251 (do_estimate_edge_growth): Remove.
4252 (estimate_edge_size): New function.
4253 (estimate_edge_growth): Use it.
4255 2012-10-07 Jan Hubicka <jh@suse.cz>
4257 * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
4258 (lto_symtab_encoder_delete): Update.
4259 (lto_symtab_encoder_encode): Update.
4260 (compute_ltrans_boundary): Update.
4261 (input_symtab): Update.
4262 * lto-streamer.h (lto_symtab_encoder_new): Update.
4264 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
4266 * config/mips/mips-protos.h (mips_split_type): New enum.
4267 (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
4268 (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
4269 (mips_split_move_insn): Declare.
4270 * config/mips/mips.c (mips_tuning_info): New variable.
4271 (mips_load_store_insns): Use mips_split_move_insn_p instead of
4272 mips_split_64bit_move_p.
4273 (mips_emit_move_or_split, mips_mult_move_p): New functions.
4274 (mips_split_64bit_move_p): Rename to...
4275 (mips_split_move_p): ...this and take a mips_split_type argument.
4276 Generalize to all moves. Call mips_mult_move_p.
4277 (mips_split_doubleword_move): Rename to...
4278 (mips_split_move): ...this and take a mips_split_type argument.
4279 Assert that mips_split_move_p holds.
4280 (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
4282 (mips_output_move): Use mips_split_move_p instead of
4283 mips_split_64bit_move_p. Handle MULT $0, $0 moves.
4284 (mips_save_reg): Use mips_emit_move_or_split.
4285 (mips_sim_reset): Assign to curr_state. Call targetm.sched.init
4287 (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
4288 targetm.sched.init_dfa_post_cycle_insn, if defined.
4289 (mips_sim_next_cycle): Assign to curr_state. Use advance_state
4290 instead of state_transition.
4291 (mips_sim_issue_insn): Assign to curr_state. Use
4292 targetm.sched.variable_issue to see how many more insns can be issued.
4293 (mips_seq_time, mips_mult_zero_zero_cost)
4294 (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
4295 (mips_expand_to_rtl_hook): New functions.
4296 (TARGET_EXPAND_TO_RTL_HOOK): Define.
4297 * config/mips/mips.md (move_type): Add imul.
4298 (type): Map imul move_types to imul.
4299 (*movdi_32bit, *movti): Add imul alternatives.
4300 Use mips_split_move_insn_p and mips_split_move_insn instead of
4301 mips_split_64bit_move_p and mips_split_doubleword_move in move
4304 2012-10-06 Segher Boessenkool <segher@kernel.crashing.org>
4306 * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
4308 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
4311 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
4312 __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
4313 * ginclude/stdint-gcc.h: In C++11 unconditionally define
4314 limit and constant macros.
4316 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
4319 * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
4322 2012-10-06 Jan Hubicka <jh@suse.cz>
4326 * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
4328 2012-10-06 Dehao Chen <dehao@google.com>
4331 * gimple-low.c (lower_stmt): Set the block for call args.
4333 2012-10-06 Jan Hubicka <jh@suse.cz>
4335 * doc/invoke.texi (-fprofile-report): Document.
4336 * common.opt (-fprofile-report): New option.
4337 * toplev.c (finalize): Call dump_profile_report.
4338 * toplev.h (profile_report): Declare.
4339 * passes.c (profile_record): New static var.
4340 (check_profile_consistency): New function.
4341 (dump_profile_record): New function.
4342 (execute_one_ipa_transform_pass): Call check_profile_consistency.
4343 (execute_one_pass): Likewise.
4345 2012-10-06 Jan Hubicka <jh@suse.cz>
4348 * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
4349 lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
4350 * lto-symtab.c (lto_symtab_register_decl): Remove.
4352 2012-10-06 Andreas Schwab <schwab@linux-m68k.org>
4354 PR rtl-optimization/54739
4355 * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
4357 2012-10-06 Oleg Endo <olegendo@gcc.gnu.org>
4360 * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
4361 (get_thread_pointer, set_thread_pointer): New expanders.
4362 (load_gbr): Rename to store_gbr. Remove GBR_REG use.
4363 (store_gbr): New insn.
4364 * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
4365 gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
4366 (sh1_builtin_p): New function.
4367 (signature_args): Add SH_BLTIN_VP.
4368 (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
4370 2012-10-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4372 PR rtl-optimization/54739
4373 * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
4374 for 32-bit targets. Adjust expanders.
4376 * config/pa/pa.md: Adjust unamed HImode add insn pattern.
4378 2012-10-05 Oleg Endo <olegendo@gcc.gnu.org>
4380 * config/sh/sh.c (builtin_description): Add is_enabled member.
4381 (shmedia_builtin_p): New function.
4382 (bdesc): Use shmedia_builtin_p for existing built-ins.
4383 (sh_media_init_builtins, sh_init_builtins): Merge into single function
4384 sh_init_builtins. Add is_enabled checking. Move variable declarations
4385 to where they are actually used.
4386 (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
4387 sh_builtin_decl. Add is_enabled checking.
4388 (sh_expand_builtin): Move variable declarations to where they are
4391 2012-10-05 Jakub Jelinek <jakub@redhat.com>
4393 * tree-inline.c (expand_call_inline): Move VAR_DECLs with
4394 PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
4395 into id->block's BLOCK_VARS.
4398 * ipa-split.c (split_function): Add debug args and debug source
4399 and normal stmts for args_to_skip which are gimple regs.
4400 * tree-inline.c (copy_debug_stmt): When inlining, adjust source
4401 debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
4403 2012-10-05 Georg-Johann Lay <avr@gjlay.de>
4405 * config/avr/avr.md: Fix indentations of insn C snippets.
4407 2012-10-05 Richard Guenther <rguenther@suse.de>
4410 * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
4411 DECL_DEBUG_EXPR again.
4413 2012-10-05 Jan Hubicka <jh@suse.cz>
4414 Jakub Jelinek <jakub@redhat.com>
4416 PR tree-optimization/33763
4417 * tree-inline.c (expand_call_inline): Silently ignore always_inline
4418 attribute for redefined extern inline functions.
4420 2012-10-04 Jan Hubicka <jh@suse.cz>
4422 * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
4423 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
4424 (vect_analyze_loop_operations): Use loop count estimate to rule out
4425 unprofitable vectorization.
4426 (vect_estimate_min_profitable_iters): Return
4427 ret_min_profitable_estimate.
4429 2012-10-05 Jakub Jelinek <jakub@redhat.com>
4431 PR tree-optimization/54810
4432 * tree-vrp.c (register_edge_assert_for_2): Handle
4433 NAME = (unsigned) NAME2; if (NAME cmp CST) for
4434 narrowing casts to unsigned integral type like
4435 NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
4436 is the max value of the unsigned integral type.
4438 2012-10-04 Jeff Law <law@redhat.com>
4441 * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
4443 2012-10-04 Jason Merrill <jason@redhat.com>
4445 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
4446 ASM_WEAKEN_DECL with #if RS6000_WEAK.
4448 2012-10-04 Basile Starynkevitch <basile@starynkevitch.net>
4450 * gengtype.c (walk_type): Emit mark_hook when inside a
4451 struct of a union member.
4453 2012-10-04 Georg-Johann Lay <avr@gjlay.de>
4455 * config/avr/predicates.md (flash_operand): New predicate.
4456 * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
4459 2012-10-04 Tobias Burnus <burnus@net-b.de>
4461 * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
4462 do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
4463 (do_spec_1): Ditto, fix out-of-bound access.
4464 * opts.c (common_handle_option): Plug memleak.
4466 2012-10-04 Jason Merrill <jason@redhat.com>
4468 * config/darwin.c (darwin_assemble_visibility): Treat
4469 VISIBILITY_INTERNAL as hidden.
4471 * config/darwin-c.c (find_subframework_file): Add missing const.
4472 (framework_construct_pathname): Likewise.
4474 2012-10-04 Florian Weimer <fweimer@redhat.com>
4476 * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
4479 2012-10-04 Richard Guenther <rguenther@suse.de>
4482 * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
4483 cleaning up the CFG.
4485 2012-10-04 Richard Guenther <rguenther@suse.de>
4488 * tree-streamer-out.c (write_ts_block_tree_pointers): For
4489 inlined functions outer scopes write the ultimate origin
4490 as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
4491 Do not stream the fragment chains.
4492 * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
4493 * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
4494 (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
4496 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4498 * dumpfile.h, dumpfile.c: Remove TDI_ada.
4500 2012-10-04 Yuri Rumyantsev <ysrumyan@gmail.com>
4502 * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
4503 check on reload_completed since it can be invoked before
4504 register allocation phase in pre-reload schedule.
4505 (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
4506 pre-reload schedule to save compile time.
4507 (ix86_sched_reorder) : Do not perform ready list reordering for
4508 pre-reload schedule to save compile time.
4509 (insn_is_function_arg) : New function. Returns true if lhs of insn is
4510 HW function argument register.
4511 (add_parameter_dependencies) : New function. Add output dependencies
4512 for chain of function adjacent arguments if only there is a move to
4513 likely spilled HW registers. Return first argument if at least one
4514 dependence was added or NULL otherwise.
4515 (avoid_func_arg_motion) : New function. Add output or anti dependency
4516 from insn to first_arg to restrict code motion.
4517 (add_dependee_for_func_arg) : New function. Avoid cross block motion of
4518 function argument through adding dependency from the first non-jump
4520 (ix86_dependencies_evaluation_hook) : New function. Hook for
4521 pre-reload schedule: avoid motion of function arguments passed in
4522 likely spilled HW registers.
4523 (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
4524 set priority of moves from likely spilled HW registers to maximum to
4525 schedule them as soon as possible.
4526 (ix86_sched_init_global): Do not perform multipass scheduling for
4527 pre-reload schedule to save compile time.
4529 2012-10-04 Uros Bizjak <ubizjak@gmail.com>
4531 * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
4532 * configure: Regenerate.
4534 2012-10-04 Kaz Kojima <kkojima@gcc.gnu.org>
4536 * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
4537 SHmedia and SHcompact using call cookie.
4538 * config/sh/sh.md (epilogue): Emit non-inlined return insns for
4539 SHmedia and SHcompact using call cookie.
4541 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
4544 * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
4545 unnamed split patterns.
4547 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
4550 * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
4551 strings in sh_atomic_model.
4552 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
4554 * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
4555 Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define.
4556 * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
4558 (sh_cpu_cpp_builtins): Declare new function.
4560 2012-10-03 Dehao Chen <dehao@google.com>
4563 * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
4565 2012-10-03 Vladimir Makarov <vmakarov@redhat.com>
4567 * reginfo.c (max_regno_since_last_resize): New.
4568 (reg_preferred_class, reg_alternate_class): Add assert.
4569 (allocate_reg_info): Initialize allocated reg info.
4570 (resize_reg_info): Make bigger reg_info and initialize new memory.
4571 (reginfo_init): Initialize max_regno_since_last_resize.
4572 (setup_reg_classes): Change assert.
4574 2012-10-03 Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
4576 * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
4577 in SSE and YMM state support check for -march=native.
4579 2012-10-03 Nick Clifton <nickc@redhat.com>
4581 * config/rx/rx.c (struct decl_chain): New local structure.
4582 (warned_decls): New local variable. Contains a stack of decls for
4583 which warnings have been issued.
4584 (add_warned_decl): Adds a decl to the stack.
4585 (already_warned): Returns true if a given decl is on the stack.
4586 (rx_set_current_function): Issue a warning if multiple fast
4587 interrupt handlers are defined.
4588 * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
4589 * doc/invoke.texi: Document the option.
4591 2012-10-03 Mark Kettenis <kettenis@openbsd.org>
4593 * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
4594 default_use_cxa_atexit to yes.
4596 2012-10-03 Jakub Jelinek <jakub@redhat.com>
4598 PR rtl-optimization/54792
4599 * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
4601 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
4604 * doc/invoke.texi: Document -mprefer-avx128.
4606 2012-10-02 Andrew Pinski <apinski@cavium.com>
4608 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
4609 Don't optimize a truncate of a mem if it is a vector mode.
4611 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
4614 * Makefile.in (VALTRACK_H): Add hash-table.h.
4615 * valtrack.h: Include hash-table.h.
4616 (struct dead_debug_global_entry): New.
4617 (struct dead_debug_hash_descr): New.
4618 (struct dead_debug_global): New.
4619 (struct dead_debug): Rename to...
4620 (struct dead_debug_local): ... this. Adjust all uses.
4621 (dead_debug_global_init, dead_debug_global_finish): New.
4622 (dead_debug_init): Rename to...
4623 (dead_debug_local_init): ... this. Adjust all callers.
4624 (dead_debug_finish): Rename to...
4625 (dead_debug_local_finish): ... this. Adjust all callers.
4626 * valtrack.c (dead_debug_global_init): New.
4627 (dead_debug_init): Rename to...
4628 (dead_debug_local_init): ... this. Take global parameter.
4629 Save it and initialize used bitmap from it.
4630 (dead_debug_global_find, dead_debug_global_insert): New.
4631 (dead_debug_global_replace_temp): New.
4632 (dead_debug_promote_uses): New.
4633 (dead_debug_finish): Rename to...
4634 (dead_debug_local_finish): ... this. Promote remaining uses.
4635 (dead_debug_global_finish): New.
4636 (dead_debug_add): Try to replace global temps first.
4637 (dead_debug_insert_temp): Support global replacements.
4638 * dce.c (word_dce_process_block, dce_process_block): Add
4639 global_debug parameter. Pass it on.
4640 (fast_dce): Initialize, pass on and finalize global_debug.
4641 * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
4642 (df_create_unused_notes, df_note_bb_compute): Likewise.
4643 (df_note_compute): Justify local-only dead debug analysis.
4645 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
4648 * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
4651 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
4654 * var-tracking.c (vt_add_function_parameter): Bail if
4657 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
4660 * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
4661 (XSTATE_FP): Likewise.
4662 (XSTATE_SSE): Likewise.
4663 (XSTATE_YMM): Likewise.
4664 (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
4665 SSE and YMM states aren't supported.
4667 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
4669 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
4670 (*baddu_si): ...this new pattern.
4672 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
4674 * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
4675 (ira_useful_class_mode_regs): New macro.
4676 * ira.c (clarify_prohibited_class_mode_regs): Set up
4677 ira_useful_class_mode_regs.
4678 * ira-color.c (setup_profitable_hard_regs): Use it to initialise
4679 profitable_hard_regs.
4681 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
4683 * ira.h (target_ira): Add x_ira_class_singleton.
4684 (ira_class_singleton): New macro.
4685 * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
4686 * ira-build.c (update_conflict_hard_reg_costs): Use
4687 ira_class_singleton to check for classes with a single
4688 allocatable register.
4689 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
4690 (single_reg_class): Likewise. When more than one class is specified,
4691 check whether they have the same singleton register.
4692 (process_single_reg_class_operands): Require single_reg_class
4693 to return NO_REGS or a class with a single allocatable register.
4694 Obtain that register from ira_class_singleton.
4696 2012-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4698 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4699 -mcpu=<xxx> is not specified and the compiler is not configured
4700 using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
4701 set the initial options.
4703 2012-10-02 Sharad Singhai <singhai@google.com>
4706 * tree-vect-stmts.c (vectorizable_operation): Add missing return.
4708 2012-10-02 David Edelsohn <dje.gcc@gmail.com>
4710 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
4711 set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
4712 (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
4714 2012-10-02 Jakub Jelinek <jakub@redhat.com>
4716 PR tree-optimization/54713
4717 * expr.c (categorize_ctor_elements_1): Don't assume purpose is
4719 * tree-cfg.c (verify_gimple_assign_single): Add verification of
4720 vector CONSTRUCTORs.
4721 * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
4722 CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
4723 and don't check index.
4724 * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
4725 elements first if their type isn't compatible with vector element type.
4727 2012-10-02 Eric Botcazou <ebotcazou@adacore.com>
4729 * tree.h (DECL_NONLOCAL_FRAME): New macro.
4730 * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
4731 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
4732 DECL_NONLOCAL_FRAME flag.
4733 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
4734 DECL_NONLOCAL_FRAME flag.
4736 2012-10-02 Marc Glisse <marc.glisse@inria.fr>
4738 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
4739 boolean_type_node for vectors.
4741 2012-10-01 Michael Meissner <meissner@linux.vnet.ibm.com>
4743 * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
4744 (rs6000_density_test): Rework to accommodate 09-30 change by
4747 * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
4749 2012-10-01 Dehao Chen <dehao@google.com>
4752 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
4753 LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
4754 (slpeel_tree_peel_loop_to_edge): Likewise.
4755 * tree-vectorizer.c (vectorize_loops): Likewise.
4757 2012-10-01 Andrew MacLeod <amacleod@redhat.com>
4760 * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code
4761 from expand_atomic_fetch_op.
4762 (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of
4763 the other one if direct opcode fails.
4765 2012-10-01 Uros Bizjak <ubizjak@gmail.com>
4767 PR rtl-optimization/54457
4768 * simplify-rtx.c (simplify_subreg):
4769 Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
4770 to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
4771 the outer subreg is effectively a truncation to the original mode M.
4773 2012-10-01 Richard Guenther <rguenther@suse.de>
4775 * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
4776 with -frounding-math.
4777 * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
4778 (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
4780 2012-10-01 Eric Botcazou <ebotcazou@adacore.com>
4782 * tree.h (copy_mem_ref_info): Delete.
4783 * tree-ssa-address.c (copy_mem_ref_info): Likewise.
4784 (maybe_fold_tmr): Copy flags manually.
4785 * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
4787 2012-10-01 Marc Glisse <marc.glisse@inria.fr>
4789 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4790 Detect the identity.
4791 <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
4793 2012-10-01 Oleg Endo <olegendo@gcc.gnu.org>
4796 * config/sh/sh.opt (matomic-model): New option.
4797 (msoft-atomic): Mark as deprecated and alias to
4798 matomic-model=soft-gusa.
4799 (mhard-atomic): Delete.
4800 * config/sh/predicates.md (gbr_displacement): New predicate.
4801 * config/sh/sh-protos.h (sh_atomic_model): New struct.
4802 (selected_atomic_model): New declaration.
4803 (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
4804 TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
4805 TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
4807 * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
4808 default atomic model.
4809 * config/sh/sh.c (selected_atomic_model_): New global variable.
4810 (selected_atomic_model, parse_validate_atomic_model_option): New
4812 (sh_option_override): Replace atomic selection checks with call to
4813 parse_validate_atomic_model_option.
4814 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
4815 UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
4816 (DRIVER_SELF_SPECS): Remove atomic checks.
4817 config/sh/sync.md: Update documentation comments.
4818 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
4819 atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
4820 atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
4821 TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for
4822 SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and
4823 TARGET_ATOMIC_SOFT_IMASK cases.
4824 (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
4825 TARGET_ATOMIC_SOFT_IMASK cases.
4826 (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
4827 atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
4828 atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
4829 Add TARGET_ATOMIC_STRICT check.
4830 (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
4831 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
4832 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
4833 atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
4834 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
4835 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
4836 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
4837 atomic_test_and_set_soft): Append _gusa to the insn names and use
4838 TARGET_ATOMIC_SOFT_GUSA as condition.
4839 (atomic_compare_and_swap<mode>_soft_tcb,
4840 atomic_exchange<mode>_soft_tcb,
4841 atomic_fetch_<fetchop_name><mode>_soft_tcb,
4842 atomic_fetch_nand<mode>_soft_tcb,
4843 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
4844 atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
4846 (atomic_compare_and_swap<mode>_soft_imask,
4847 atomic_exchange<mode>_soft_imask,
4848 atomic_fetch_<fetchop_name><mode>_soft_imask,
4849 atomic_fetch_nand<mode>_soft_imask,
4850 atomic_<fetchop_name>_fetch<mode>_soft_imask,
4851 atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
4853 * doc/invoke.texi (SH Options): Document new matomic-model option.
4854 Remove msoft-atomic and mhard-atomic options.
4856 2012-10-01 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4859 * config/s390/s390.c (s390_option_override): Add missing break.
4861 2012-09-30 Sharad Singhai <singhai@google.com>
4863 * dumpfile.c: New file with parts moved from tree-dump.c.
4864 (pflags): New variable.
4866 (alt_dump_file): Ditto.
4867 (dump_files): Update to include additional fields.
4868 (struct dump_option_value_info): Add additional entries.
4869 (get_dump_file_name): Use command line filename if available.
4870 (dump_open_alternate_stream): New function.
4872 (dump_gimple_stmt): Ditto.
4873 (dump_gimple_stmt_loc): Ditto.
4874 (dump_generic_expr): Ditto.
4875 (dump_generic_expr_loc): Ditto.
4876 (dump_printf): Ditto.
4877 (dump_printf_loc): Ditto.
4878 (dump_start): Ditto.
4879 (dump_finish): Ditto.
4880 (dump_begin): Ditto.
4881 (dump_enabled_p): Return true if either of the dump types is enabled.
4882 (dump_initialized_p): Return true if either type of dump is
4884 (dump_end): Do not close standard streams.
4885 (dump_enable_all): Handle filenames for regular dumps.
4886 (dump_switch_p_1): Handle command-line dump filenames.
4887 (opt_info_enable_all): New function.
4888 (opt_info_switch_p_1): Ditto.
4889 (opt_info_switch_p): Ditto.
4890 (dump_kind_p): Ditto.
4891 (dump_basic_block): Ditto.
4892 (dump_combine_total_stats): Ditto.
4893 (dump_remap_tree_vectorizer_verbose): Ditto.
4894 * gimple-pretty-print.h: Rename dump_gimple_stmt to
4895 pp_gimple_stmt_1. All callers updated.
4897 2012-09-30 Sharad Singhai <singhai@google.com>
4899 * doc/invoke.texi: Add documentation for the new -fopt-info option.
4900 * tree-dump.c: Move general dump file related functionality into
4901 dumpfile.c. Remove unneeded headers.
4902 * tree-dump.h: Move function declarations into dumpfile.h.
4903 * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
4904 (struct dump_file_info): Move here from tree-dump.c. Rename flags
4905 to pflags, state to pstate, stream to pstream, filename to
4906 pfilename. All callers updated. Add alt_flags, alt_state,
4907 alt_filenmae, alt_stream.
4908 * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
4909 (vect_set_dump_settings): Remove.
4910 (vect_print_dump_info): Ditto.
4911 * tree-vectorizer.h: Remove declaration of vect_dump and
4912 vect_print_dump_info.
4913 * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
4914 * tree-vect-data-refs.c: Ditto.
4915 * tree-vect-stmts.c: Ditto.
4916 * tree-vect-slp.c: Ditto.
4917 * tree-vect-patterns.c: Ditto.
4918 * tree-vect-loop-manip.c: Ditto.
4919 * opts.c (vect_set_verbosity_level): Remove.
4920 (common_handle_option): Handle -fopt-info flag. Deprecate
4921 -ftree-vectorizer-verbose.
4922 * tree-parloops.c (gather_scalar_reductions): Remove reference to
4924 * flag-types.h: Remove vect_verbosity_levels.
4925 * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
4926 * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
4927 (handle_common_deferred_options): Handle -fopt-info and
4928 -ftree-vectorizer-verbose.
4929 * Makefile.in: Add dumpfile.o.
4930 (tree-dump.o): Update dependencies.
4931 (tree-vect-loop.o): Ditto.
4932 (tree-vect-loop-manip.o): Ditto.
4933 (tree-vect-slp.o): Ditto.
4934 (tree-vect-stmts.o): Ditto.
4935 (tree-vectorizer.o): Ditto.
4937 * passes.c (finish_optimization_passes): Instead of using
4938 dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
4939 (pass_init_dump_file): Ditto.
4941 2012-09-30 Joern Rennecke <joern.rennecke@embecosm.com>
4943 PR rtl-optimization/38449:
4944 * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
4945 * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
4946 * target.def: Merge in definitions and documentation for
4947 TARGET_CAN_FOLLOW_JUMP.
4948 * doc/tm.texi.in: Add documentation locations for the above.
4949 * doc/tm.texi: Regenerate.
4950 * reorg.c (follow_jumps): New parameters jump and crossing.
4951 Changed all callers.
4953 2012-09-30 Eric Botcazou <ebotcazou@adacore.com>
4955 * reorg.c (relax_delay_slots): Use delay_insn consistently.
4957 * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
4958 (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
4959 (sparc_flat_expand_epilogue): Likewise.
4960 (emit_and_preserve): Likewise.
4961 (sparc_fold_builtin): Fix thinko in latest change.
4963 2012-09-30 Andreas Schwab <schwab@linux-m68k.org>
4965 * config/m68k/m68k.md: Add names to bitfield insert and extract
4967 (*insv_8_16_reg): Remove constraints and conditions that assume
4968 that operand 0 could be a MEM.
4969 (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
4971 2012-09-30 Jan Hubicka <jh@suse.cz>
4973 * cfgloop.c (scale_loop_profile): Move to...
4974 * cfgloopmanip.c (scale_loop_profile): .. here; use
4975 scale_loop_frequencies.
4976 (loopify): Use RDIV.
4978 2012-09-28 Jan Hubicka <jh@suse.cz>
4980 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
4982 2012-09-28 Jan Hubicka <jh@suse.cz>
4984 * function.c (dup_block_and_redirect): Update profile.
4986 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
4988 * config.gcc: Replace 'host' with 'target' when configuring for
4989 powerpc64*-*-freebsd.
4991 2012-09-29 Marc Glisse <marc.glisse@inria.fr>
4993 * tree.c (truth_type_for): New function.
4994 * tree.h (truth_type_for): Declare.
4995 * gimple-fold.c (and_comparisons_1): Call it.
4996 (or_comparisons_1): Likewise.
4997 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
4998 boolean_type_node for vectors.
5000 2012-09-28 Jan Hubicka <jh@suse.cz>
5002 * basic-block.h (RDIV): Define.
5003 (EDGE_FREQUENCY): Simplify.
5004 (check_probability, combine_probabilities, apply_probability,
5005 inverse_probability): New.
5006 * cfgloop.c (scale_loop_profile): New function.
5007 * cfgloop.h (scale_loop_profile): Declare.
5008 (slpeel_add_loop_guard): Add probability parameter.
5009 (set_prologue_iterations): Add probability parameter.
5010 (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
5011 update probabilities correctly.
5012 (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
5014 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
5017 * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take
5018 STACK_GROWS_DOWNWARD into account.
5020 2012-09-28 Jakub Jelinek <jakub@redhat.com>
5023 * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
5025 * config/i386/i386.c (ix86_expand_vector_logical_operator): New
5027 * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
5029 * config/i386/sse.md (<code><mode>3 VI logic): Use it.
5031 PR tree-optimization/54713
5032 * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
5033 has vector elements.
5034 (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
5035 * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
5036 indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
5037 (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
5039 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
5041 * config/avr/avr.md (adjust_len): Add lpm.
5042 (reload_in<mode>): Use avr_out_lpm for output. Use "lpm" for
5044 * config/avr/avr-protos.h (avr_out_lpm): New prototype.
5045 * config/avr/avr.c (avr_out_lpm): Make global.
5046 (adjust_insn_length): Handle ADJUST_LEN_LPM.
5048 2012-09-28 Richard Guenther <rguenther@suse.de>
5051 * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
5052 (lto_output_tree_ref): Handle references to them.
5053 (output_function): Do not output function arguments again.
5054 * lto-streamer-in.c (input_function): Do not input arguments
5055 again, nor overwrite them.
5057 2012-09-28 Richard Guenther <rguenther@suse.de>
5059 * cgraph.h (symtab_node_base): Re-order and pack fields.
5061 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
5063 * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
5065 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
5067 PR rtl-optimization/52543
5068 * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
5069 all non-generic address spaces.
5070 (TARGET_SECONDARY_RELOAD): New hook define to...
5071 (avr_secondary_reload): ...this new static function.
5072 * config/avr/avr.md (reload_in<mode>): New insns.
5074 Undo r185605 (mostly):
5075 * config/avr/avr-protos.h (avr_load_lpm): Remove.
5076 * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
5078 (avr_out_lpm): Also handle loads > 1 byte.
5079 (avr_load_lpm): Remove.
5080 (avr_find_unused_d_reg): New static function.
5081 (avr_out_lpm_no_lpmx): New static function.
5082 (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
5083 * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
5084 (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
5085 (load_<mode>, load_<mode>_clobber): Remove.
5086 (mov<mode>): For multi-byte move from non-generic
5087 16-bit address spaces: Expand to *mov<mode> again.
5088 (load<mode>_libgcc): New expander.
5089 (split-lpmx): Remove split.
5091 2012-09-27 Dehao Chen <dehao@google.com>
5093 * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
5094 (extern void protected_set_expr_location): Likewise.
5095 (function_args_iter_next): Likewise.
5096 (inlined_function_outer_scope_p): Likewise.
5097 * input.h (IS_UNKNOWN_LOCATION): Likewise.
5098 * fold-const.c (expr_location_or): Likewise.
5099 * lto-cgraph.c (output_node_opt_summary): Likewise.
5100 * dwarf2out.c (add_src_coords_attributes): Likewise.
5101 * tree-eh.c (lower_try_finally_dup_block): Likewise.
5102 * profile.c (branch_prob):
5103 * cfgexpand.c (expand_gimple_cond): Likewise.
5104 (expand_gimple_basic_block): Likewise.
5105 (construct_exit_block): Likewise.
5106 (gimple_expand_cfg): Likewise.
5107 * cfgcleanup.c (try_forward_edges): Likewise.
5108 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5109 (dump_scope_block): Likewise.
5110 * ipa-prop.c (ipa_write_jump_function): Likewise.
5111 * rtl.h (extern void rtl_check_failed_flag): Likewise.
5112 * gimple.h (gimple_set_location): Likewise.
5113 (gimple_has_location): Likewise.
5114 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
5115 (force_nonfallthru_and_redirect): Likewise.
5116 (fixup_reorder_chain): Likewise.
5117 (cfg_layout_merge_blocks): Likewise.
5119 2012-09-27 Meador Inge <meadori@codesourcery.com>
5121 * gcc-ar.c (main): Handle the returning of the sub-process error
5124 2012-09-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5126 * lower-subreg.c (enum classify_move_insn): Rename
5127 SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
5128 (find_decomposable_subregs): Update.
5129 (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
5130 Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
5131 if that parameter is true.
5132 (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
5133 with DECOMPOSE_COPIES false.
5134 (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
5135 with DECOMPOSE_COPIES true.
5137 2012-09-27 Marek Polacek <polacek@redhat.com>
5139 * doc/gcov.texi (Gcov Data Files): Fix a typo.
5141 2012-09-27 Jakub Jelinek <jakub@redhat.com>
5144 * simplify-rtx.c (simplify_binary_operation_1): Perform
5145 (x - (x & y)) -> (x & ~y) optimization only for integral modes.
5147 2012-09-27 Marc Glisse <marc.glisse@inria.fr>
5151 * doc/extend.texi (Vector Extensions): C++ improvements.
5152 Power of 2 size requirement.
5154 2012-09-27 Richard Guenther <rguenther@suse.de>
5157 * lto-symtab.c (resolution_guessed_p): Remove.
5158 (set_resolution_guessed): Likewise.
5159 (lto_symtab_register_decl): Remove assert.
5160 (lto_symtab_resolve_symbols): Do not alter symbol resolutions
5161 and return the prevailing symbol, checking for multiple prevailing
5163 (lto_symtab_merge_decls_1): Use the result from
5164 lto_symtab_resolve_symbols. Do not alter symbol resolutions.
5166 2012-09-26 Steve Ellcey <sellcey@mips.com>
5169 * doc/install.texi: Fix example.
5171 2012-09-26 Dehao Chen <dehao@google.com>
5173 * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
5174 for function parameter.
5175 (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
5177 2012-09-26 Oleg Endo <olegendo@gcc.gnu.org>
5179 * doc/extend.texi (bswap Builtins): Change signed types to unsigned
5182 2012-09-26 Ian Lance Taylor <iant@google.com>
5184 * diagnostic.c (bt_callback): Cast pc when calling fprintf.
5186 2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5188 PR tree-optimization/54674
5189 * gimple-ssa-strength-reduction.c (analyze_increments): Don't
5190 introduce a multiplication with a pointer operand.
5192 2012-09-26 Georg-Johann Lay <avr@gjlay.de>
5195 * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
5196 parameter addrspace.
5197 * doc/tm.texi: Regenerate.
5198 * target.def (mode_dependent_address_p): Add addr_space_t parameter.
5199 * targhooks.h (default_mode_dependent_address_p): Ditto.
5200 * targhooks.c (default_mode_dependent_address_p): Ditto.
5201 * expr.c (convert_move): Pass address space to
5202 mode_dependent_address_p.
5203 * combine.c (combine_simplify_rtx): Ditto.
5204 (make_extraction): Ditto.
5205 (simplify_shift_const_1): Ditto.
5206 (gen_lowpart_for_combine): Ditto.
5207 * lower-subreg.c (simple_move_operand): Ditto.
5208 * recog.c (simplify_while_replacing): Ditto.
5209 (offsettable_address_addr_space_p): Ditto.
5210 (mode_dependent_address_p): Ditto.
5211 * simplify-rtx.c (simplify_unary_operation_1): Ditto.
5212 (simplify_subreg): Ditto.
5213 * config/m68k/m68k.md: Ditto.
5214 * config/vax/vax.md: Ditto.
5215 * config/vax/constraints.md (Q): Ditto.
5216 * config/vax/predicates.md (indexed_memory_operand): Ditto.
5217 * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
5218 unused addr_space_t parameter.
5219 * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
5220 * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
5221 * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
5222 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
5223 * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
5224 * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
5225 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5227 * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
5228 * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
5230 2012-09-26 Christophe Lyon <christophe.lyon@linaro.org>
5232 * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
5233 (execute_optimize_bswap): Add support for builtin_bswap16.
5235 2012-09-26 Richard Guenther <rguenther@suse.de>
5237 * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
5239 2012-09-26 Ian Lance Taylor <iant@google.com>
5241 * diagnostic.c: Include "demangle.h" and "backtrace.h".
5242 (bt_stop): New static array.
5243 (bt_callback, bt_err_callback): New static functions.
5244 (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
5245 * Makefile.in (BACKTRACE): New variable.
5246 (BACKTRACEINC, LIBBACKTRACE): New variables.
5247 (BACKTRACE_H): New variable.
5248 (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
5249 (INCLUDES): Add $(BACKTRACEINC).
5250 (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
5252 2012-09-25 Segher Boessenkool <segher@kernel.crashing.org>
5256 * config/rs6000/rs6000.md (ne0si): Remove unnecessary
5257 earlyclobber. Merge with...
5260 (plus_ne0si): Merge with...
5261 (plus_ne0di): ... to...
5262 (plus_ne0_<mode>): New.
5263 (compare_plus_ne0si): Merge with...
5264 (compare_plus_ne0di)... to...
5265 (compare_plus_ne0_<mode>): New.
5266 (compare_plus_ne0_<mode>_1): New.
5267 (plus_ne0si_compare): Merge with...
5268 (plus_ne0di_compare)... to...
5269 (plus_ne0_<mode>_compare): New.
5271 2012-09-25 Oleg Endo <olegendo@gcc.gnu.org>
5274 * config/sh/constraints.md (Jhb): New constraint.
5275 * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
5276 * config/sh/sh.md (rotrsi3): New expander.
5277 (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
5278 (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
5279 immediate_operand and remove CONST_INT_P checks in expansion code.
5280 (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add
5281 split with swapped operands.
5282 (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
5284 2012-09-25 Aldy Hernandez <aldyh@redhat.com>
5287 * trans-mem.c (expand_call_tm): Handle late built built-ins.
5289 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
5292 * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
5293 double_int::udivmod.
5295 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
5297 * config/avr/avr.c (avr_set_current_function): Check cfun->machine
5300 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
5303 * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
5304 for sources compiled with COMPILER.
5306 2012-09-25 Richard Guenther <rguenther@suse.de>
5309 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
5310 cgraph nodes for builtins.
5312 2012-09-25 Jakub Jelinek <jakub@redhat.com>
5314 PR tree-optimization/54676
5315 * tree-vrp.c (set_and_canonicalize_value_range): Handle
5316 one bit precision properly.
5319 * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
5320 * configure: Regenerated.
5322 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
5325 * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
5326 instead of uhwi_to_double_int.
5328 2012-09-25 Richard Guenther <rguenther@suse.de>
5330 * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
5333 2012-09-25 Richard Guenther <rguenther@suse.de>
5335 PR tree-optimization/53663
5336 * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
5337 native encode/interpret translation on VN_WALKREWRITE.
5339 2012-09-24 Dehao Chen <dehao@google.com>
5341 * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
5342 (move_block_to_fn): Reset the edge's goto block even
5343 when the goto locus is unknown.
5345 2012-09-24 Lawrence Crowl <crowl@google.com>
5347 * double-int.h (double_int::from_pair): New.
5348 (double_int::wide_mul_with_sign): New.
5349 (double_int::sub_with_overflow): New.
5350 (double_int::neg_with_overflow): New.
5351 (double_int::divmod_with_overflow): New.
5352 (shwi_to_double_int): Remove.
5353 (uhwi_to_double_int): Remove.
5354 (double_int_to_shwi): Remove.
5355 (double_int_to_uhwi): Remove.
5356 (double_int_fits_in_uhwi_p): Remove.
5357 (double_int_fits_in_shwi_p): Remove.
5358 (double_int_fits_in_hwi_p): Remove.
5359 (double_int_mul): Remove.
5360 (double_int_mul_with_sign): Remove.
5361 (double_int_add): Remove.
5362 (double_int_sub): Remove.
5363 (double_int_neg): Remove.
5364 (double_int_div): Remove.
5365 (double_int_sdiv): Remove.
5366 (double_int_udiv): Remove.
5367 (double_int_mod): Remove.
5368 (double_int_smod): Remove.
5369 (double_int_umod): Remove.
5370 (double_int_divmod): Remove.
5371 (double_int_sdivmod): Remove.
5372 (double_int_udivmod): Remove.
5373 (double_int_multiple_of): Remove.
5374 (double_int_setbit): Remove.
5375 (double_int_ctz): Remove.
5376 (double_int_not): Remove.
5377 (double_int_ior): Remove.
5378 (double_int_and): Remove.
5379 (double_int_and_not): Remove.
5380 (double_int_xor): Remove.
5381 (double_int_lshift): Remove.
5382 (double_int_rshift): Remove.
5383 (double_int_lrotate): Remove.
5384 (double_int_rrotate): Remove.
5385 (double_int_negative_p): Remove.
5386 (double_int_cmp): Remove.
5387 (double_int_scmp): Remove.
5388 (double_int_ucmp): Remove.
5389 (double_int_max): Remove.
5390 (double_int_smax): Remove.
5391 (double_int_umax): Remove.
5392 (double_int_min): Remove.
5393 (double_int_smin): Remove.
5394 (double_int_umin): Remove.
5395 (double_int_ext): Remove.
5396 (double_int_sext): Remove.
5397 (double_int_zext): Remove.
5398 (double_int_mask): Remove.
5399 (double_int_max_value): Remove.
5400 (double_int_min_value): Remove.
5401 (double_int_zero_p): Remove.
5402 (double_int_one_p): Remove.
5403 (double_int_minus_one_p): Remove.
5404 (double_int_equal_p): Remove.
5405 (double_int_popcount): Remove.
5406 (extern add_double_with_sign): Remove.
5407 (#define add_double): Remove.
5408 (extern neg_double): Remove.
5409 (extern mul_double_with_sign): Remove.
5410 (extern mul_double_wide_with_sign): Remove.
5411 (#define mul_double): Remove.
5412 (extern lshift_double): Remove.
5413 (extern div_and_round_double): Remove.
5414 * double-int.c (add_double_with_sign): Make static.
5415 (#defined add_double): Localized from header.
5416 (neg_double): Make static.
5417 (mul_double_with_sign): Make static.
5418 (mul_double_wide_with_sign): Make static.
5419 (#defined mul_double): Localized from header.
5420 (lshift_double): Make static.
5421 (div_and_round_double): Make static.
5422 (double_int::wide_mul_with_sign): New.
5423 (double_int::sub_with_overflow): New.
5424 (double_int::neg_with_overflow): New.
5425 (double_int::divmod_with_overflow): New.
5426 * emit-rtl.c (init_emit_once): Change to new double_int API.
5427 * explow.c (plus_constant): Likewise.
5428 * expmed.c (choose_multiplier): Likewise.
5429 * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
5430 (int_const_binop_1): Change to new double_int API.
5431 (fold_div_compare): Likewise.
5432 (maybe_canonicalize_comparison): Likewise.
5433 (pointer_may_wrap_p): Likewise.
5434 (fold_negate_const): Likewise.
5435 (fold_abs_const): Likewise.
5436 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5437 (simplify_const_binary_operation): Likewise.
5438 * tree-chrec.c (tree_fold_binomial): Likewise.
5439 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
5440 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5441 * config/avr/avr.c (avr_double_int_push_digit): Likewise.
5442 (avr_map): Likewise.
5443 (avr_map_decompose): Likewise.
5444 (avr_out_insert_bits): Likewise.
5446 2012-09-24 Janis Johnson <janisjo@codesourcery.com>
5448 * doc/sourcebuild.texi (Selectors): Document the use of target
5449 and xfail used together.
5451 2012-09-24 Richard Guenther <rguenther@suse.de>
5454 * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
5455 handle DECL_DEBUG_EXPR_IS_FROM here...
5456 (clear_unused_block_pointer): ... but here when walking all
5459 2012-09-24 Richard Guenther <rguenther@suse.de>
5461 PR tree-optimization/54684
5462 * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
5464 2012-09-24 Marc Glisse <marc.glisse@inria.fr>
5466 * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
5467 (simplify_bitfield_ref): Handle constructors.
5468 * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
5470 2012-09-24 Richard Guenther <rguenther@suse.de>
5472 * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
5473 find_or_generate_expression): Remove dominating stmt argument.
5474 (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
5475 create_component_ref_by_pieces_1, create_component_ref_by_pieces,
5476 do_regular_insertion, do_partial_partial_insertion): Adjust.
5477 (compute_avail): Do not set uids.
5479 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
5481 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
5482 TYPE_NONALIASED_COMPONENT flag.
5483 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
5484 TYPE_NONALIASED_COMPONENT flag.
5486 2012-09-24 Jia Liu <proljc@gmail.com>
5488 * doc/lto.texi: Separate sections.
5489 * doc/plugins.texi: Likewise.
5491 2012-09-24 Richard Guenther <rguenther@suse.de>
5494 * gimple.c (gimple_copy): Properly mark the copy modified
5495 if SSA operands are present.
5497 2012-09-23 Eric Botcazou <ebotcazou@adacore.com>
5499 PR tree-optimization/54669
5500 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
5501 maybe_clean_or_replace_eh_stmt on the modified use statements.
5503 2012-09-23 Marc Glisse <marc.glisse@inria.fr>
5505 * expr.c (do_store_flag): Remove duplicated code.
5507 2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
5509 * config/rs6000/predicates.md (altivec_register_operand,
5510 vsx_register_operand, vfloat_operand, vint_operand,
5511 vlogical_operand, gpc_reg_operand, cc_reg_operand,
5512 cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
5513 If op is a SUBREG, consider its SUBREG_REG instead.
5515 2012-09-22 Uros Bizjak <ubizjak@gmail.com>
5517 * optabs.c (prepare_cmp_insn): Expand comparison of the result
5518 of memcmp through generic comparison expansion code.
5520 2012-09-21 Anthony Green <green@moxielogic.com>
5522 * config/moxie/moxie.opt: Add -mno-crt0 option.
5523 * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
5524 * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
5526 2012-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
5529 * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
5531 2012-09-21 Dehao Chen <dehao@google.com>
5534 * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
5535 stmts in the duplicated EH block.
5537 2012-09-21 Richard Guenther <rguenther@suse.de>
5539 PR tree-optimization/54647
5540 * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
5541 or VEC_COND_EXPR into EXP_GEN again.
5543 2012-09-21 Jakub Jelinek <jakub@redhat.com>
5545 PR tree-optimization/54629
5546 * tree-loop-distribution.c (classify_partition): Free loop nest only
5547 after freeing ddr. Free ddr and loop nest also if successful.
5549 2012-09-21 Matthias Klose <doko@ubuntu.com>
5551 * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
5552 4.4 has changed the `va_list' mangling.
5554 2012-09-21 Eric Botcazou <ebotcazou@adacore.com>
5556 PR rtl-optimization/54290
5557 PR rtl-optimization/54644
5558 * reload1.c (choose_reload_regs): Fix thinko in previous change.
5560 2012-09-20 Segher Boessenkool <segher@kernel.crashing.org>
5562 * config/rs6000/rs6000.md (define_split for plus_eqsi):
5565 2012-09-20 Eric Botcazou <ebotcazou@adacore.com>
5567 * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
5569 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
5572 * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
5573 SCHED_PRESSURE_MODEL.
5575 2012-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
5577 * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
5579 2012-09-20 Marek Polacek <polacek@redhat.com>
5581 * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
5583 2012-09-20 Marek Polacek <polacek@redhat.com>
5585 * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
5587 (create_edge_and_update_destination_phis): Likewise.
5589 2012-09-20 Martin Jambor <mjambor@suse.cz>
5591 * function.c (push_cfun): Check old current_function_decl matches
5592 old cfun, set new current_function_decl to the decl of the new cfun.
5593 (push_struct_function): Likewise.
5594 (pop_cfun): Likewise.
5595 (allocate_struct_function): Move call to
5596 invoke_set_current_function_hook to the end of the function.
5597 * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
5598 current_function_decl.
5599 * cgraph.c (cgraph_release_function_body): Likewise.
5600 * cgraphunit.c (cgraph_process_new_functions): Likewise.
5601 (cgraph_add_new_function): Likewise.
5602 (cgraph_analyze_function): Likewise.
5603 (assemble_thunk): Set cfun to NULL at the end.
5604 (expand_function): Move call to set_cfun downwards.
5605 * gimple-low.c (record_vars_into): Only check current_function_decl
5606 before possibly doing push_cfun.
5607 * gimplify.c (gimplify_function_tree): Do not set and restore
5608 current_function_decl.
5609 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
5610 (inline_analyze_function): Likewise.
5611 * ipa-prop.c (ipa_analyze_node): Likewise.
5612 * ipa-pure-const.c (analyze_function): Likewise.
5613 * lto-streamer-in.c (lto_input_function_body): Do not set
5614 current_function_decl.
5615 * lto-streamer-out.c (output_function): Do not set and restore
5616 current_function_decl.
5617 * omp-low.c (finalize_task_copyfn): Likewise.
5618 (expand_omp_taskreg): Likewise.
5619 (create_task_copyfn): Likewise, move push_cfun up quite a bit.
5620 * passes.c (dump_passes): Do not set and restore current_function_decl.
5621 (do_per_function): Likewise.
5622 (do_per_function_toporder): Likewise.
5623 * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
5624 (ipa_tm_transform_transaction): Likewise.
5625 (ipa_tm_transform_clone): Likewise.
5626 (ipa_tm_execute): Likewise.
5627 * tree-emutls.c (lower_emutls_function_body): Likewise.
5628 * tree-inline.c (initialize_cfun): Do not call pop_cfun.
5629 (tree_function_versioning): Do not call push_cfun, do not set and
5630 restore current_function_decl. Remove assert checking consistency of
5631 cfun and current_function_decl.
5632 * tree-profile.c (tree_profiling): Do not set and restore
5633 current_function_decl.
5634 * tree-sra.c (convert_callers_for_node): Do not set
5635 current_function_decl.
5636 (convert_callers): Do not restore current_function_decl.
5637 (modify_function): Do not set current_function_decl.
5638 * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
5639 current_function_decl.
5641 2012-09-20 Diego Novillo <dnovillo@google.com>
5644 * config/vxworks.c (vxworks_emutls_var_init): Update for new
5645 VEC_quick_push interface.
5647 2012-09-20 Richard Guenther <rguenther@suse.de>
5649 PR tree-optimization/54634
5650 * tree-data-ref.c (get_references_in_stmt): For now give
5651 up for pure functions.
5653 2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
5655 * doc/lto.texi: Correct typo.
5657 2012-09-19 Dehao Chen <dehao@google.com>
5659 * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
5660 * config/spu/spu.c (emit_nop_for_insn): Likewise.
5662 (spu_emit_branch_hint): Likewise.
5663 (insert_hbrp_for_ilb_runout): Likewise.
5664 * config/mep/mep.c (mep_make_bundle): Likewise.
5665 (mep_bundle_insns): Likewise.
5666 * config/sh/sh.c (gen_block_redirect): Likewise.
5667 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5668 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
5669 * config/picochip/picochip.c (picochip_reorg): Likewise.
5670 * config/arm/arm.c (require_pic_register): Likewise.
5671 * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
5672 * config/bfin/bfin.c (gen_one_bundle): Likewise.
5674 2012-09-19 Mark Kettenis <kettenis@openbsd.org>
5676 * config.gcc (hppa*-*-openbsd*): New target.
5677 * config/pa/pa-openbsd.h: New file.
5678 * config/pa/pa32-openbsd.h: New file.
5679 * config/host-openbsd.c: Update copyright year.
5680 (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
5682 2012-09-19 Martin Jambor <mjambor@suse.cz>
5684 * ipa-prop.c (prune_expression_for_jf): New function.
5685 (ipa_set_jf_constant): Use it.
5686 (ipa_set_jf_arith_pass_through): Likewise.
5687 (determine_known_aggregate_parts): Likewise.
5689 2012-09-19 Steve Ellcey <sellcey@mips.com>
5691 * config.gcc (mips*-mti-elf*): New target.
5692 * config/mips/mti-elf.h: New file.
5693 * config/mips/t-mti-elf: New file.
5695 2012-09-19 Dehao Chen <dehao@google.com>
5697 * toplev.c (general_init): Init block_locations.
5698 * tree.c (tree_set_block): New.
5699 (tree_block): Change to use LOCATION_BLOCK.
5700 * tree.h (TREE_SET_BLOCK): New.
5701 * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
5702 (final_start_function): Likewise.
5703 * input.c (expand_location_1): Likewise.
5704 * input.h (LOCATION_LOCUS): New.
5705 (LOCATION_BLOCK): New.
5706 (IS_UNKNOWN_LOCATION): New.
5707 * fold-const.c (expr_location_or): Change to use new location.
5708 * reorg.c (emit_delay_sequence): Likewise.
5709 (try_merge_delay_insns): Likewise.
5710 * modulo-sched.c (dump_insn_location): Likewise.
5711 * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
5712 * lto-cgraph.c (output_node_opt_summary): Likewise.
5713 * jump.c (rtx_renumbered_equal_p): Likewise.
5714 * ifcvt.c (noce_try_move): Likewise.
5715 (noce_try_store_flag): Likewise.
5716 (noce_try_store_flag_constants): Likewise.
5717 (noce_try_addcc): Likewise.
5718 (noce_try_store_flag_mask): Likewise.
5719 (noce_try_cmove): Likewise.
5720 (noce_try_cmove_arith): Likewise.
5721 (noce_try_minmax): Likewise.
5722 (noce_try_abs): Likewise.
5723 (noce_try_sign_mask): Likewise.
5724 (noce_try_bitop): Likewise.
5725 (noce_process_if_block): Likewise.
5726 (cond_move_process_if_block): Likewise.
5727 (find_cond_trap): Likewise.
5728 * ipa-prop.c (ipa_set_jf_constant): Likewise.
5729 (ipa_write_jump_function): Likewise.
5730 * dwarf2out.c (add_src_coords_attributes): Likewise.
5731 * expr.c (expand_expr_real): Likewise.
5732 * tree-parloops.c (create_loop_fn): Likewise.
5733 * recog.c (peep2_attempt): Likewise.
5734 * function.c (free_after_compilation): Likewise.
5735 (expand_function_end): Likewise.
5736 (set_insn_locations): Likewise.
5737 (thread_prologue_and_epilogue_insns): Likewise.
5738 * print-rtl.c (print_rtx): Likewise.
5739 * profile.c (branch_prob): Likewise.
5740 * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
5741 * gimplify.c (gimplify_call_expr): Likewise.
5742 * except.c (duplicate_eh_regions_1): Likewise.
5743 * emit-rtl.c (try_split): Likewise.
5744 (make_insn_raw): Likewise.
5745 (make_debug_insn_raw): Likewise.
5746 (make_jump_insn_raw): Likewise.
5747 (make_call_insn_raw): Likewise.
5748 (emit_pattern_after_setloc): Likewise.
5749 (emit_pattern_after): Likewise.
5750 (emit_debug_insn_after): Likewise.
5751 (emit_pattern_before): Likewise.
5752 (emit_insn_before_setloc): Likewise.
5753 (emit_jump_insn_before): Likewise.
5754 (emit_call_insn_before_setloc): Likewise.
5755 (emit_call_insn_before): Likeise.
5756 (emit_debug_insn_before_setloc): Likewise.
5757 (emit_copy_of_insn_after): Likewise.
5758 (insn_locators_alloc): Remove.
5759 (insn_locators_finalize): Remove.
5760 (insn_locators_free): Remove.
5761 (set_curr_insn_source_location): Remove.
5762 (get_curr_insn_source_location): Remove.
5763 (set_curr_insn_block): Remove.
5764 (get_curr_insn_block): Remove.
5765 (locator_scope): Remove.
5766 (insn_scope): Change to use new location.
5767 (locator_location): Remove.
5768 (insn_line): Change to use new location.
5769 (locator_file): Remove.
5770 (insn_file): Change to use new location.
5771 (locator_eq): Remove.
5772 (insn_locations_init): New.
5773 (insn_locations_finalize): New.
5774 (set_curr_insn_location): New.
5775 (curr_insn_location): New.
5776 * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
5777 (expand_gimple_cond): Likewise.
5778 (expand_call_stmt): Likewise.
5779 (expand_gimple_stmt_1): Likewise.
5780 (expand_gimple_basic_block): Likewise.
5781 (construct_exit_block): Likewise.
5782 (gimple_expand_cfg): Likewise.
5783 * cfgcleanup.c (try_forward_edges): Likewise.
5784 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5785 (dump_scope_block): Likewise.
5786 (remove_unused_locals): Likewise.
5787 * rtl.c (rtx_equal_p_cb): Likewise.
5788 (rtx_equal_p): Likewise.
5789 * rtl.h (XUINT): New.
5790 (INSN_LOCATOR): Remove.
5791 (CURR_INSN_LOCATION): Remove.
5792 (INSN_LOCATION): New.
5793 (INSN_HAS_LOCATION): New.
5794 * tree-inline.c (remap_gimple_op_r): Change to use new location.
5795 (copy_tree_body_r): Likewise.
5796 (copy_phis_for_bb): Likewise.
5797 (expand_call_inline): Likewise.
5798 * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
5799 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5800 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5801 * combine.c (try_combine): Likewise.
5802 * tree-outof-ssa.c (set_location_for_edge): Likewise.
5803 (insert_partition_copy_on_edge): Likewise.
5804 (insert_value_copy_on_edge): Likewise.
5805 (insert_rtx_to_part_on_edge): Likewise.
5806 (insert_part_to_rtx_on_edge): Likewise.
5807 * basic-block.h (edge_def): Remove field.
5808 * gimple.h (gimple_statement_base): Remove field.
5809 (gimple_bb): Change to use new location.
5810 (gimple_set_block): Likewise.
5811 (gimple_has_location): Likewise.
5812 * tree-cfg.c (make_cond_expr_edges): Likewise.
5813 (make_goto_expr_edges): Likewise.
5814 (gimple_can_merge_blocks_p): Likewise.
5815 (move_stmt_op): Likewise.
5816 (move_block_to_fn): Likewise.
5817 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
5818 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5819 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
5820 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
5821 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5822 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5823 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5824 * config/score/score.c (score_output_mi_thunk): Likewise.
5825 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
5826 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5827 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
5828 (unique_locus_on_edge_between_p): Likewise.
5829 (emit_nop_for_unique_locus_between): Likewise.
5830 (force_nonfallthru_and_redirect): Likewise.
5831 (fixup_reorder_chain): Likewise.
5832 (cfg_layout_merge_blocks): Likewise.
5833 * stmt.c (emit_case_nodes): Likewise.
5835 2012-09-19 Bernd Schmidt <bernds@codesourcery.com>
5837 * dbgcnt.def (sched_breakdep): New counter.
5838 * haifa-sched.c (update_insn_after_change): New static function,
5839 broken out of haifa_change_pattern.
5840 (haifa_change_pattern): Call it.
5841 (dep_t heap vecs): Declare.
5842 (INSN_COST): Define earlier.
5843 (next_cycle_replace_deps, next_cycle_apply): New static variables.
5844 (apply_replacement): New static function.
5845 (recompute_todo_spec): New argument FOR_BACKTRACK. All callers
5846 changed. Handle DEP_REPLACE deps.
5847 (contributes_to_priority_p): False for replaceable deps.
5848 (must_restore_pattern_p, restore_pattern): New static functions.
5849 (schedule_insn): Use them. Apply replacements for broken deps.
5850 (struct haifa_saved_data): Add new fields to keep track of
5852 (save_backtrack_point): Initialize them.
5853 (undo_replacements_for_backtrack): New static function.
5854 (restore_last_backtrack_point, free_topmost_backtrack_point):
5855 Use it and keep track of replacements.
5856 (perform_replacements_new_cycle, undo_all_replacements): New static
5858 (schedule_block): Call these two as necessary. Call
5859 find_modifiable_mems.
5860 (try_ready): Tweak the assert. Check for DEP_POSTPONED.
5861 * sched-deps.c: Include "emit-rtl.h".
5862 (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
5863 (dep_spec_p): True for DEP_REPLACE deps.
5864 (mark_as_hard): New static variable.
5865 (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
5866 (add_dependence_list): New argument hard. All callers changed. Set
5867 and clear mark_as_hard around function body.
5868 (add_dependence_list_and_free): Likewise.
5869 (haifa_note_mem_dep): Set DEP_NONREG.
5870 (haifa_note_dep): Likewise if mark_as_hard is true.
5871 (sched_analyze_insn): Switch loop with if statement testing for
5873 (struct mem_inc_info): New.
5874 (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
5876 (find_modifiable_mems): New function.
5877 * sched-int.h (struct dep_replacement): New.
5878 (struct _dep): Add replace, nonreg and multiple fields. Make type and
5880 (UNKNOWN_DEP_COST): Change to match the bitfield.
5881 (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
5882 (DEP_POSTPONED): New macro.
5883 (DEP_CANCELLED): Renumber.
5884 (find_modifiable_mems): Declare.
5885 (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
5886 * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
5887 (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
5888 (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
5889 * Makefile.in (sched-deps.o): Update dependencies.
5890 * config/c6x/c6x.c (in_hwloop): New static variable.
5891 (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
5892 (hwloop_optimize): Set and clear it around preliminary scheduling pass.
5894 2012-09-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5896 * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
5897 and __builtin_ppc_mftb.
5898 * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
5899 to expand an expression that calls a built-in without arguments.
5900 (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
5902 (rs6000_init_builtins): Likewise.
5903 * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
5904 (rs6000_get_timebase_ppc32): New pattern.
5905 (rs6000_mftb_<mode>): New pattern.
5907 * doc/extend.texi (PowerPC Built-in Functions): New section.
5908 (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
5909 unrelated to Altivec/VSX to the new section.
5911 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
5913 * rs6000.md (mac*): Remove extra spaces.
5916 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
5919 * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
5920 * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
5921 Handle the case where one of the operands is T_REG.
5922 Add new pattern to handle MSB extraction.
5924 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
5927 * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
5929 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
5931 * config/sh/sh.md (prologue, epilogue): Use braced strings.
5933 2012-09-19 Eric Botcazou <ebotcazou@adacore.com>
5935 PR rtl-optimization/54290
5936 * reload1.c (choose_reload_regs): Also take into account secondary MEMs
5937 to remove address replacements for inherited reloads.
5938 (replaced_subreg): Move around.
5940 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
5942 * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
5943 MASK_PPC_GFXOPT, and MASK_MFCRF.
5945 2012-09-19 Richard Guenther <rguenther@suse.de>
5947 * passes.c (init_optimization_passes): For -Og move
5948 pass_object_sizes inbetween CCP and copyprop.
5950 2012-09-19 Richard Guenther <rguenther@suse.de>
5952 * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
5954 2012-09-19 Jan Hubicka <jh@suse.cz>
5956 * symtab.c (insert_to_assembler_name_hash): Do not insert
5958 (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
5959 (symtab_prevail_in_asm_name_hash): New.
5960 (symtab_initialize_asm_name_hash): Break out from ...
5961 (symtab_node_for_asm): ... here.
5962 (dump_symtab_base): Dump LTO file data.
5963 (verify_symtab_base): Register vars are not in symtab.
5964 * cgraph.h (symtab_initialize_asm_name_hash,
5965 symtab_prevail_in_asm_name_hash): New functions.
5966 (symtab_real_symbol_p): New inline.
5967 * lto-symtab.c: Do not include gt-lto-symtab.h.
5968 (lto_symtab_entry_def): Remove.
5969 (lto_symtab_entry_t): Remove.
5970 (lto_symtab_identifiers): Remove.
5971 (lto_symtab_free): Remove.
5972 (lto_symtab_entry_hash): Remove.
5973 (lto_symtab_entry_eq): Remove.
5974 (lto_symtab_entry_marked_p): Remove.
5975 (lto_symtab_maybe_init_hash_table): Remove.
5976 (resolution_guessed_p, set_resolution_guessed): New functions.
5977 (lto_symtab_register_decl): Only set resolution info.
5978 (lto_symtab_get, lto_symtab_get_resolution): Remove.
5979 (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
5981 (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
5982 (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
5984 (lto_symtab_resolve_symbols): Reorg to work on symtab.
5985 (lto_symtab_merge_decls_2): Likewise.
5986 (lto_symtab_merge_decls_1): Likewise; add debug dumps.
5987 (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
5988 (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
5989 (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
5991 (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
5992 * lto-streaer.h (lto_symtab_free): Remove.
5993 * lto-cgraph.c (add_references): Cleanup.
5994 * varpool.c (varpool_assemble_decl): Skip hard regs.
5996 2012-09-19 Richard Guenther <rguenther@suse.de>
5999 * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
6001 2012-09-19 Richard Guenther <rguenther@suse.de>
6004 * common.opt (optimize_debug): New variable.
6005 (Og): New optimization level.
6006 * doc/invoke.texi (Og): Document.
6007 * opts.c (maybe_default_option): Add debug parameter.
6008 (maybe_default_options): Likewise.
6009 (default_options_optimization): Handle -Og.
6010 (common_handle_option): Likewise.
6011 * passes.c (gate_all_optimizations): Do not run with -Og.
6012 (gate_all_optimizations_g): New gate, run with -Og.
6013 (pass_all_optimizations_g): New container pass, run with -Og.
6014 (init_optimization_passes): Schedule pass_all_optimizations_g
6015 alongside pass_all_optimizations.
6017 2012-09-19 Richard Guenther <rguenther@suse.de>
6019 PR tree-optimization/54132
6020 * tree-loop-distribution.c (classify_partition): Properly
6021 check dependences for memmove.
6022 * tree-data-ref.h (compute_affine_dependence): Declare.
6023 * tree-data-ref.c (compute_affine_dependence): Export.
6025 2012-09-19 Zhenqiang Chen <zhenqiang.chen@arm.com>
6028 * bb-reorder.c (connect_better_edge_p): New added.
6029 (find_traces_1_round): When optimizing for size, ignore edge frequency
6030 and probability, and handle all in one round.
6031 (bb_to_key): Use bb->index as key when optimizing for size.
6032 (better_edge_p): The bb with smaller index is better when optimizing
6034 (connect_traces): When optimizing for size, connect block n with
6035 block n + 1; connect trace m with trace m + 1 if falling through.
6036 (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
6038 2012-09-19 Bin Cheng <bin.cheng@arm.com>
6040 * fold-const.c (fold_truth_andor): Remove duplicated check on
6043 2012-09-18 Eric Botcazou <ebotcazou@adacore.com>
6046 * expr.c (store_field): Handle a PARALLEL in more cases.
6048 2012-09-18 Segher Boessenkool <segher@kernel.crashing.org>
6050 * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
6051 (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
6052 nabs_nopower): Delete.
6053 (absdi2, absdi2_internal, nabsdi2): Delete.
6054 (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
6056 2012-09-18 Georg-Johann Lay <avr@gjlay.de>
6058 * config/avr/avr.md: Tidy up empty "". Fix C code indentation.
6059 * config/avr/avr-fixed.md: Ditto.
6061 2012-09-18 Maciej W. Rozycki <macro@codesourcery.com>
6063 * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
6064 * config/rs6000/spe.md: Remove a leftover comment.
6066 2012-09-18 Jakub Jelinek <jakub@redhat.com>
6069 * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
6070 AND/IOR/XOR cost calculation to MODE_INT class modes.
6072 2012-09-18 Thomas Quinot <quinot@adacore.com>
6074 * doc/invoke.texi: Document -fada-spec-parent.
6076 2012-09-18 Jakub Jelinek <jakub@redhat.com>
6078 PR tree-optimization/54610
6079 * tree-ssa-forwprop.c: Include optabs.h. Don't include
6081 (simplify_vector_constructor): Don't use vect_gen_perm_mask,
6082 instead create the mask constant here.
6083 * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
6084 Don't depend on $(TREE_VECTORIZER_H).
6086 2012-09-18 Florian Weimer <fweimer@redhat.com>
6088 * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
6090 2012-09-18 Richard Guenther <rguenther@suse.de>
6092 * statistics.h (CXX_MEM_STAT_INFO): New define.
6093 * gimple.h (gimple_build_assign_with_ops_stat,
6094 gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
6095 Turn into an overload of the function gimple_build_assign_with_ops.
6096 * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
6097 (gimple_build_assign_with_ops): ... this.
6098 * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
6099 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
6100 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
6101 (vect_permute_load_chain): Likewise.
6102 * tree-vect-generic.c (expand_vector_divmod): Likewise.
6103 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
6104 (vect_recog_divmod_pattern): Likewise.
6105 (vect_recog_mixed_size_cond_pattern): Likewise.
6106 (adjust_bool_pattern): Likewise.
6107 * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
6108 * tree-vect-stmts.c (vectorizable_operation): Likewise.
6109 (permute_vec_elements): Likewise.
6110 (vectorizable_load): Likewise.
6112 2012-09-17 Paul Koning <ni1d@arrl.net>
6114 * doc/invoke.text (-feliminate-unused-debug-types): Update to
6115 reflect that this is enabled by default.
6117 2012-09-17 Ben Cheng <bccheng@google.com
6119 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
6120 dynamic linker commands for statically linked programs.
6122 2012-09-17 Ulrich Weigand <ulrich.weigand@linaro.org>
6124 * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
6126 * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
6127 operands, implemented via vld1 instruction.
6128 ("vec_extract<mode>"): Support memory destination operands, implemented
6129 via vst1 instruction.
6130 ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
6131 * config/arm/predicates.md ("neon_lane_number"): Remove.
6133 2012-09-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6134 Ulrich Weigand <ulrich.weigand@linaro.org>
6136 * config/arm/arm.c (output_move_neon): Update comment.
6137 Use vld1.64/vst1.64 instead of vldm/vstm where possible.
6138 (neon_vector_mem_operand): Support double-word modes.
6139 * config/arm/neon.md (*neon_mov VD): Call output_move_neon
6140 instead of output_move_vfp. Change constraint from Uv to Un.
6142 2012-09-17 Richard Guenther <rguenther@suse.de>
6145 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
6146 FIXED_VALUE_TYPE instead of struct fixed_value.
6148 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
6150 * config/avr/avr.c (CONST_FIXED_P): Remove define.
6151 * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
6153 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
6156 * config.gcc (tm_file,avr): Add avr/avr-arch.h.
6157 * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
6158 compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD.
6159 * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
6161 * config/avr/avr-arch.h: ...this new file.
6162 * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
6164 * comparator: Make letters smaller than digits.
6165 * config/avr/avr-devices.c: Don't include headers if used in
6166 gen-avr-mmcu-texi.c.
6167 * doc/avr-mmcu.texi: Regenerate.
6169 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
6171 * rtl.h (CONST_FIXED_P): New predicate macro.
6173 2012-09-17 Eric Botcazou <ebotcazou@adacore.com>
6175 * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
6176 code doing propagation from degenerate PHI nodes.
6177 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
6178 (propagate_constants_for_unrolling): Likewise.
6179 (tree_unroll_loops_completely): If the current loop has been unrolled
6180 and its father isn't the entire function, propagate constants within
6181 the new basic blocks by means of propagate_constants_for_unrolling.
6183 2012-09-17 Jakub Jelinek <jakub@redhat.com>
6185 PR tree-optimization/54563
6186 * tree-ssa-math-opts.c (execute_cse_sincos): Call
6187 gimple_purge_dead_eh_edges if last call has been changed.
6189 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
6192 * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
6193 (avr_out_plus_1): Remove log comments from assembler output.
6195 2012-09-17 Ruben Buchatskiy <ruben@ispras.ru>
6197 * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
6200 2012-09-16 Richard Sandiford <rdsandiford@googlemail.com>
6202 * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
6205 2012-09-15 Tom de Vries <tom@codesourcery.com>
6207 * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
6208 LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift
6211 2012-09-15 Georg-Johann Lay <avr@gjlay.de>
6214 * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
6215 ALL124U): New mode iterators.
6216 (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
6217 (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
6218 (usneg<mode>2): New insns.
6219 (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
6220 (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
6221 * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
6222 (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
6223 (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
6224 (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
6225 (<code_stdname><mode>3_insn): New insns.
6226 (<code_stdname><mode>3_const_insn): New insns.
6227 * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
6228 out_plus_noclobber, minus.
6229 (length): Add: plus. Remove: out_plus, out_plus_noclobber,
6230 plus64, minus, minus64.
6231 (abelian): New code_attr.
6232 (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
6233 us_plus, us_minus, us_neg.
6234 (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
6235 Use avr_out_plus to output.
6236 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
6237 (avr_out_plus_noclobber, avr_out_minus): Remove.
6238 (avr_out_plus64, avr_out_minus64): Remove.
6239 * config/avr/avr.c (avr_out_plus_1): Add new default arguments
6240 code_sat, sign. Saturate after operation if code_sat != UNKNOWN.
6241 (avr_out_plus_symbol): New static function.
6242 (avr_out_plus): Rewrite.
6243 (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling
6244 of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
6245 ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
6246 (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS,
6247 CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
6248 (avr_out_plus_noclobber, avr_out_minus): Remove.
6249 (avr_out_plus64, avr_out_minus64): Remove.
6250 (avr_print_operand): Print raw REGNO if 'r' is used with REG.
6252 2012-09-15 Oleg Endo <olegendo@gcc.gnu.org>
6254 * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
6255 ZERO_EXTEND and PARALLEL cases.
6256 (sh_address_cost): Correct rtx parsing and tweak cost estimations.
6258 2012-09-14 Sandra Loosemore <sandra@codesourcery.com>
6260 * doc/tm.texi.in (Stack Arguments): Update obsolete references
6261 to current_function_outgoing_args_size.
6262 (Function Entry): Likewise for current_function_pops_args,
6263 current_function_pretend_args_size,
6264 current_function_outgoing_args_size, and
6265 current_function_epilogue_delay_list.
6266 (Misc): Fix garbled sentence referencing nonexistent
6267 current_function_leaf_function.
6268 * doc/tm.texi: Regenerated.
6270 2012-09-14 Dehao Chen <dehao@google.com>
6272 * tree-eh.c (goto_queue_node): New field.
6273 (record_in_goto_queue): New parameter.
6274 (record_in_goto_queue_label): New parameter.
6275 (lower_try_finally_dup_block): New parameter.
6276 (maybe_record_in_goto_queue): Update source location.
6277 (lower_try_finally_copy): Likewise.
6278 (honor_protect_cleanup_actions): Likewise.
6279 * gimplify.c (gimplify_expr): Reset the location to unknown.
6281 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
6283 * configure: Regenerated.
6285 2012-09-14 Walter Lee <walt@tilera.com>
6287 * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
6288 option for TILEPro and TILE-Gx.
6289 (TILE-Gx Options): Fix grammar and spellings in documentation for
6292 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
6295 * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
6296 (fold_binary_loc): Likewise.
6297 * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
6298 (or_comparisons_1): Likewise.
6300 2012-09-14 Richard Earnshaw <rearnsha@arm.com>
6303 PR rtl-optimization/54540
6304 * reload.c (find_dummy_reload): Don't use OUT as a reload reg
6305 for IN if it overlaps a fixed register.
6307 2012-09-14 Eric Botcazou <ebotcazou@adacore.com>
6309 PR rtl-optimization/44194
6310 * calls.c (expand_call): In the PARALLEL case, copy the return value
6311 into pseudos instead of spilling it onto the stack.
6312 * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
6313 add new ADJUST_OBJECT parameter.
6314 If ADJUST_OBJECT is set, drop the underlying object if it cannot be
6315 proved that the adjusted memory access is still within its bounds.
6316 (adjust_automodify_address_1): Adjust call to adjust_address_1.
6317 (widen_memory_access): Likewise.
6318 * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
6319 of adjust_address. Do not drop the underlying object of a MEM.
6320 (store_fixed_bit_field): Likewise.
6321 (extract_bit_field_1): Likewise. Fix oversight in recursion.
6322 (extract_fixed_bit_field): Likewise.
6323 * expr.h (adjust_address_1): Adjust prototype.
6324 (adjust_address): Adjust call to adjust_address_1.
6325 (adjust_address_nv): Likewise.
6326 (adjust_bitfield_address): New macro.
6327 (adjust_bitfield_address_nv): Likewise.
6328 * expr.c (expand_assignment): Handle a PARALLEL in more cases.
6329 (store_expr): Likewise.
6330 (store_field): Likewise.
6332 * dse.c: Fix typos in the head comment.
6334 2012-09-14 Christian Bruel <christian.bruel@st.com>
6337 * config/sh/sh-protos.h (sh_need_epilogue): Delete.
6338 (sh_can_use_simple_return_p): Declare.
6339 * config/sh/sh.c (sh_can_use_simple_return_p): Define.
6340 (sh_need_epilogue, sh_need_epilogue_known): Delete.
6341 (sh_output_function_epilogue): Remove sh_need_epilogue_known.
6342 * config/sh/sh.md (simple_return, return): Define.
6343 (epilogue): Use inline return rtl.
6344 (sh_expand_epilogue): Cleanup parameters boolean type.
6345 * config/sh/iterators.md (any_return): New iterator.
6347 2012-09-14 Christian Bruel <christian.bruel@st.com>
6349 * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
6350 * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
6352 2012-09-14 Jakub Jelinek <jakub@redhat.com>
6355 * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
6356 instead of (match_dup 0) as second argument to vec_merge.
6357 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
6358 Remove third alternative.
6359 (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
6360 operand 2 instead of operand 1, but put it as first argument of fma.
6361 * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
6362 _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
6365 2012-09-14 Richard Guenther <rguenther@suse.de>
6367 PR tree-optimization/54565
6368 * passes.c (init_optimization_passes): Adjust comments.
6369 (execute_function_todo): Do not execute execute_update_addresses_taken
6370 before processing TODO_rebuild_alias.
6371 * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
6373 2012-09-14 Richard Guenther <rguenther@suse.de>
6375 * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
6376 (find_assert_locations_1): Walk the basic-block backwards, properly
6377 add/prune from live. Use live for asserts derived from stmts.
6379 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
6381 * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
6382 get_prop_source_stmt.
6383 (simplify_permutation): Likewise.
6384 (simplify_vector_constructor): Likewise.
6386 2012-09-14 Richard Guenther <rguenther@suse.de>
6388 * builtin-types.def (BT_FN_CONST_STRING): Add.
6389 * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
6390 BUILT_IN_LINE): New builtins.
6391 * gimplify.c (gimplify_call_expr): Expand them.
6392 * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
6393 __builtin_FILE): Document.
6395 2012-09-13 Anthony Green <green@moxielogic.com>
6397 * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
6398 (MULTILIB_DEFAULTS): Define.
6400 (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
6401 (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
6402 __MOXIE_BIG_ENDIAN__.
6403 * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
6404 * config/moxie/moxie.opt: New file.
6405 * doc/invoke.texi (Moxie Options): Add section documenting -mel
6408 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
6409 Manuel López-Ibáñez <manu@gcc.gnu.org>
6412 * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
6414 2012-09-13 Eric Botcazou <ebotcazou@adacore.com>
6416 * config/sparc/predicates.md (input_operand): Do not consider TImode
6417 constants as 1-instruction integer constants.
6418 Use register_or_zero_operand instead of register_operand and tidy up.
6419 * config/sparc/sparc.md (movti): New expander.
6420 (movti_insn_sp64): New instruction.
6421 (movti_insn_sp64_hq): Likewise.
6422 (TImode splitters): New splitters.
6423 * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
6424 (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
6426 * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
6427 (arith_4096_operand): Likewise.
6428 (zero_operand): Likewise.
6429 (fp_zero_operand): Likewise.
6430 (reg_or_0_operand): Likewise.
6432 2012-09-13 Jakub Jelinek <jakub@redhat.com>
6434 * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
6435 * configure: Regenerated.
6437 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
6439 * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
6440 (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
6442 (*prefetch_sse): ... this.
6443 (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
6445 (*prefetch_3dnow): ... this.
6447 2012-09-13 Steven Bosscher <steven@gcc.gnu.org>
6449 * ipa-pure-const.c (state_from_flags, local_pure_const): Use
6450 current_function_name instead of lang_hooks.decl_printable_name.
6452 * function.h (fndecl_name): New prototype.
6453 * function.c (fndecl_name): New function.
6454 * vecir.h (cgraph_node_p): New standard IR VEC type.
6455 * trans-mem.c (cgraph_node_p): No need anymore to define it here.
6456 * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
6457 * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
6458 * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
6459 Fix many formatting issues (long lines, short lines, spacing, etc.).
6460 (get_static_name): Use fndecl_name.
6461 (dump_static_vars_set_to_file): New function split out from propagate.
6462 (union_static_var_sets): New function, union two sets and collapse
6463 to all_module_statics as quickly as possible.
6464 (intersect_static_var_sets): New function, similar to above.
6465 (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
6466 to allocate a copy on the same bitmap_obstack as the source set.
6467 (propagate_bits): Simplify, and clarify by using union_static_var_sets.
6468 (generate_summary): Remove bm_temp. Print UID of promotable globals.
6469 (read_write_all_from_decl): Use pass-by-reference, bless C++.
6470 (get_read_write_all_from_node): New function, split out from propagate.
6471 (propagate): Simplify and clarify with helper functions. Use
6472 ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
6473 (ipa_reference_read_optimization_summary): Use fndecl_name instead of
6474 lang_hooks.decl_printable_name.
6476 * rtl.h (print_rtl_single_with_indent): New prototype.
6477 * print-rtl.c (print_rtl_single_with_indent): New function.
6478 * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
6479 * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
6480 * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
6481 Implement RTL specific hooks.
6482 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
6483 * tree-cfg.c (gimple_empty_block_p,
6484 gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
6485 (gimple_cfg_hooks): Register the new hooks.
6486 * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
6488 2012-09-13 Richard Guenther <rguenther@suse.de>
6490 * tree-ssa-sccvn.h (enum vn_kind): New.
6491 (vn_get_stmt_kind): Likewise.
6492 * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
6494 (visit_use): Use it.
6495 * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
6497 2012-09-13 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6499 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
6500 for targets bdver1, bdver2, btver1 and btver2.
6502 2012-09-13 Christophe Lyon <christophe.lyon@linaro.org>
6503 Richard Earnshaw <rearnsha@arm.com>
6505 * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
6506 variants for rev instruction..
6507 (thumb1_rev): Delete pattern.
6508 (arm_revsh): New pattern to support builtin_bswap16.
6509 (arm_rev16, bswaphi2): Likewise.
6511 2012-09-12 Teresa Johnson <tejohnson@google.com>
6513 PR gcov-profile/54487
6514 * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
6515 test using F_SETLKW with fcntl.
6516 * configure, config.in: Regenerate.
6518 2012-09-12 Jan Hubicka <jh@suse.cz>
6521 * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
6522 (set_hint_predicate): New function.
6523 (reset_inline_summary): Reset loop stride.
6524 (remap_predicate_after_duplication): New function.
6525 (remap_hint_predicate_after_duplication): New function.
6526 (inline_node_duplication_hook): Update.
6527 (dump_inline_summary): Dump stride summaries.
6528 (estimate_function_body_sizes): Compute strides.
6529 (remap_hint_predicate): New function.
6530 (inline_merge_summary): Use it.
6531 (inline_read_section): Read stride.
6532 (inline_write_summary): Write stride.
6533 * ipa-inline.c (want_inline_small_function_p): Handle strides.
6534 (edge_badness): Likewise.
6535 * ipa-inline.h (inline_hints_vals): Add stride hint.
6536 (inline_summary): Update stride.
6538 2012-09-12 Uros Bizjak <ubizjak@gmail.com>
6540 * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
6541 * config/i386/i386.h (x86_prefetch_sse): Ditto.
6543 2012-09-12 H.J. Lu <hongjiu.lu@intel.com>
6546 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6547 negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
6549 2012-09-12 Jan Hubicka <jh@suse.cz>
6551 * common.opt (flto-partition): Add "max".
6552 * invoke.texi (flto-partition): Document "max"
6554 2012-09-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6556 * config/i386/i386.md : Comments on fma4 instruction selection
6557 reflect requirement on register pressure based cost model.
6559 * config/i386/driver-i386.c (host_detect_local_cpu): fma4
6560 flag is set-reset as informed by the cpuid flag.
6562 * config/i386/i386.c (processor_alias_table): fma4
6563 flag is enabled for bdver2.
6565 2012-09-12 Richard Guenther <rguenther@suse.de>
6567 PR tree-optimization/54489
6568 * tree-ssa-pre.c: Include domwalk.h.
6570 (sccvn_valnum_from_value_id): New function.
6571 (debug_bitmap_sets_for): Simplify.
6572 (get_representative_for): Properly initialize the SCCVN valnum.
6573 (create_expression_by_pieces): Likewise.
6574 (insert_into_preds_of_block): Likewise.
6575 (can_PRE_operation): Remove.
6576 (make_values_for_phi): Simplify.
6577 (compute_avail): Likewise.
6578 (do_SCCVN_insertion): Remove.
6579 (eliminate_avail, eliminate_push_avail, eliminate_insert):
6581 (eliminate): Split and perform a domwalk.
6582 (eliminate_bb): Former eliminate part that is now dom-enter.
6583 (eliminate_leave_block): New function.
6584 (fini_eliminate): Likewise.
6585 (init_pre): Simplify.
6586 (fini_pre): Likewise.
6587 (execute_pre): Fold into do_pre and do_fre.
6588 (do_pre): Consume execute_pre.
6590 * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
6592 2012-09-12 Diego Novillo <dnovillo@google.com>
6594 * vec.h: Remove compatibility notes for previous distinction
6595 between vectors of objects and vectors of pointers.
6597 2012-09-12 Christian Bruel <christian.bruel@st.com>
6599 * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
6601 2012-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6603 * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
6604 * system.h (FFS, FLOAT, ABS, PC): Undef.
6606 2012-09-12 Richard Guenther <rguenther@suse.de>
6609 * common.opt (finline): Mark with Optimization.
6611 2012-09-12 Jakub Jelinek <jakub@redhat.com>
6613 * config.gcc: Obsolete picochip-*.
6615 2012-09-12 Nathan Froyd <froydnj@gcc.gnu.org>
6616 Hans-Peter Nilsson <hp@bitrange.com>
6618 * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
6619 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
6620 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
6621 * config/mmix/mmix-protos.h (mmix_intval): Declare.
6622 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
6623 (mmix_const_double_ok_for_letter_p): Delete.
6624 * config/mmix/constraints.md: New file.
6625 * config/mmix/mmix.md: Include it.
6626 (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
6627 ("*call_real"): Update comment about not using the "p" constraint.
6628 * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
6629 satisfies_constraint_I.
6630 (mmix_address_operand): New predicate.
6631 (mmix_symbolic_or_address_operand): Use it instead of address_operand.
6632 * config/mmix/mmix.c: #include tm-constrs.h.
6633 (mmix_intval): Delete declaration. Make non-static.
6634 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
6635 (mmix_const_double_ok_for_letter_p): Delete.
6636 (mmix_legitimate_address_p): Use satisfies_constraint_I.
6637 (mmix_print_operand_address): Likewise.
6638 (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
6639 when matching "L" constraint.
6641 2012-09-11 Steven Bosscher <steven@gcc.gnu.org>
6643 * tree.h (expand_case): Move prototype ...
6644 * expr.h (expand_case): ...here.
6645 (expand_sjlj_dispatch_table): New prototype.
6646 * stmt.c: Include pointer-set.h instead of bitmap.h.
6647 (expand_case): Use a pointer set instead of a bitmap for
6648 already-seen labels. Fold label values here.
6649 (add_case_node): Don't fold label values here.
6650 (expand_sjlj_dispatch_table): New function.
6651 * except.c (sjlj_emit_dispatch_table): Use it.
6653 2012-09-11 Marc Glisse <marc.glisse@inria.fr>
6655 * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
6656 (ssa_forward_propagate_and_combine): Call it.
6658 2012-09-11 Diego Novillo <dnovillo@google.com>
6660 * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
6662 2012-09-11 Dominique Dhumieres <dominiq@lps.ens.fr>
6664 * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
6665 (darwin_asm_dwarf_section): Likewise.
6667 2012-09-11 Martin Jambor <mjambor@suse.cz>
6669 * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
6670 (premark_used_types): New parameter fun, use it instead of cfun.
6671 (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
6672 also pass it to premark_used_types.
6674 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6676 * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
6678 2012-09-11 Tobias Burnus <burnus@net-b.de>
6680 * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
6682 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6683 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6685 * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
6686 (*fmsub<VCVTF:mode>4): Likewise.
6687 * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it.
6689 2012-09-11 Aldy Hernandez <aldyh@redhat.com>
6692 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
6695 2012-09-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6697 PR tree-optimization/55492
6698 * doc/invoke.texi (max-slsr-cand-scan): New description.
6699 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
6700 the time spent searching for a basis.
6701 * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
6703 2012-09-11 Richard Guenther <rguenther@suse.de>
6705 * gimple.h (gimple_register_type): Remove.
6706 (print_gimple_types_stats): Adjust prototype.
6707 * lto-streamer.h (print_lto_report): Likewise.
6708 * lto-streamer.c (print_lto_report): Adjust.
6709 * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
6710 struct type_pair_d, lookup_type_pair, struct sccs,
6711 next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
6712 gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
6713 gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
6714 visit, iterative_hash_name, struct type_hash_pair,
6715 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
6716 gimple_type_eq, gimple_register_type_1, gimple_register_type):
6718 (print_gimple_types_stats): Adjust.
6719 (free_gimple_type_tables): Likewise.
6721 2012-09-11 Richard Guenther <rguenther@suse.de>
6723 * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
6724 (scopdet_basic_block_info): Likewise.
6725 (build_scops_1): Likewise.
6726 (limit_scops): Likewise.
6728 2012-09-11 Richard Guenther <rguenther@suse.de>
6731 * gimple.c (get_base_address): Do not return NULL_TREE apart
6732 from for WITH_SIZE_EXPR.
6733 * gimple-fold.c (canonicalize_constructor_val): Do not call
6734 get_base_address when not necessary.
6736 2012-09-10 Andrew Pinski <apinski@cavium.com>
6739 * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
6741 2012-09-10 Maxim Kuvyrkov <maxim@codesourcery.com>
6743 * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
6744 starting scheduling from a pre-existing state.
6746 2012-09-10 Diego Novillo <dnovillo@google.com>
6748 * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
6750 (vec_t::safe_push): Likewise.
6751 (vec_t::quick_insert): Likewise.
6752 (vec_t::lower_bound): Likewise.
6753 (vec_t::safe_insert): Likewise.
6754 (vec_t::replace): Change second argument to 'T &'.
6756 2012-09-10 Maciej W. Rozycki <macro@codesourcery.com>
6758 * config/rs6000/rs6000.md: Move a splitter next to its insn.
6760 2012-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6763 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
6764 dynamic shifts are available.
6765 (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment.
6766 * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
6767 * config/sh/predicates.md (shift_count_operand): Allow
6768 arith_reg_operand even if TARGET_DYNSHIFT is false.
6769 * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
6771 (ashlsi3_d_call, lshrsi3_d_call): New insns.
6773 2012-09-10 Richard Sandiford <rdsandiford@googlemail.com>
6775 * ira.c (setup_pressure_classes): Handle synonymous classes.
6777 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
6779 * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
6780 (ssa_forward_propagate_and_combine): Call it.
6782 2012-09-10 Steve Ellcey <sellcey@mips.com>
6784 * config.gcc: Add mips*-mti-linux* target
6785 Handle with_synci like other options.
6786 * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
6787 (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
6788 * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
6789 * config/mips/mti-linux.h: New file.
6790 * config/mips/t-mti-linux: New file.
6792 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
6794 * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
6796 2012-09-10 Martin Jambor <mjambor@suse.cz>
6798 * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
6799 * ipa-prop.c: Include params.h.
6800 (IPA_MAX_AFF_JF_ITEMS): Removed.
6801 (determine_known_aggregate_parts): Use param value of
6802 PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
6803 * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
6805 2012-09-10 Richard Guenther <rguenther@suse.de>
6807 PR tree-optimization/54520
6808 * tree-ssa-threadupdate.c (def_split_header_continue_p):
6809 Properly consider sub-loops.
6811 2012-09-10 Richard Henderson <rth@redhat.com>
6813 * config/alpha/predicates.md (small_symbolic_operand): Disallow
6816 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
6819 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
6821 2012-09-10 Jan Hubicka <jh@suse.cz>
6823 * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
6824 * symtab.c (symtab_make_decl_local): Remove user defined visibility
6825 when making symbol local.
6827 2012-09-09 Mark Kettenis <kettenis@gnu.org>
6829 * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
6831 2012-09-09 Jan Hubicka <jh@suse.cz>
6833 * passes.c (ipa_write_summaries_1): Set state;
6834 do not call compute_ltrans_boundary.
6835 (ipa_write_optimization_summaries): Likewise.
6836 (ipa_write_summaries): compute_ltrans_boundary here.
6837 * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
6838 (compute_ltrans_boundary): Update prototype.
6840 2012-09-09 Ulrich Drepper <drepper@gmail.com>
6842 * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
6843 matching results of level 0 calls to __cpuid to processor
6845 * config/i386/driver-i386.c (vendor_signatures): Removed.
6846 (processor_signatures): Removed.
6847 (host_detect_local_cpu): Replace uses of now-removed SIG_*
6848 constants with the new signature_*_ebx constants.
6850 2012-09-08 Jan Hubicka <jh@suse.cz>
6852 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
6854 * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
6855 forward declaration.
6856 (lto_symtab_encoder_d): Forward declare.
6857 (ipa_write_optimization_summaries): Update.
6858 * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
6859 body, initializer and in_partition.
6860 (lto_symtab_encoder_delete): Update.
6861 (lto_symtab_encoder_encode): Update.
6862 (lto_symtab_encoder_lookup): Move inline.
6863 (lto_symtab_encoder_delete_node): New function.
6864 (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
6865 lto_symtab_encoder_encode_initializer_p,
6866 lto_set_symtab_encoder_encode_initializer,
6867 lto_symtab_encoder_in_partition_p,
6868 lto_symtab_encoder_in_partition_p): Update.
6869 (compute_ltrans_boundary): Take encoder as an input.
6870 * passes.c (ipa_write_summaries_1): Update.
6871 (ipa_write_summaries_1): Update.
6872 (ipa_write_summaries): Update.
6873 (ipa_write_optimization_summaries): Update.
6874 * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
6875 * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
6876 num_output_symtab_nodes.
6877 (lto_encoder_entry): New structure.
6878 (struct lto_symtab_encoder_d): Reorg.
6879 (lto_symtab_encoder_delete_node): Declare.
6880 (lto_symtab_encoder_lookup): Bring inline.
6881 (compute_ltrans_boundary): Update.
6882 (lto_symtab_encoder_size): Update.
6883 (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
6884 (lto_symtab_encoder_deref): Update.
6886 2012-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6888 * config/pa/pa.c (hppa_rtx_costs): Update costs for large
6891 2012-09-08 Andi Kleen <ak@linux.intel.com>
6893 * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
6895 2012-09-08 Andi Kleen <ak@linux.intel.com>
6897 * common.opt (-fmem-report-wpa): Add
6898 * doc/invoke.texi (-fmem-report-wpa): Document.
6899 * lto/lto.c (do_whole_program_analysis): Run mem_report
6900 when mem_report_wpa is set.
6902 2012-09-07 Anthony Green <green@moxielogic.com>
6904 * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
6905 for functions with large static stack requirements.
6906 (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
6907 values off of the stack.
6909 2012-09-07 Nick Clifton <nickc@redhat.com>
6911 * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
6912 (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
6913 * config/v850/v850.c (compute_register_save_size): Always include
6915 (increment_stack): New function - emits insns to increment or
6916 decrement the stack pointer.
6917 (expand_prologue, expand_epilogue): Use it.
6918 (expand_prologue): Set the function stack size, if requested.
6919 (v850_debug_unwind_info): New function.
6920 (TARGET_DEBUG_UNWIND_INFO): Define.
6922 2012-09-07 Richard Earnshaw <rearnsha@arm.com>
6925 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
6926 Sign-extension of a zero-extended value can be simplified to
6927 just zero-extension.
6929 2012-09-07 Richard Guenther <rguenther@suse.de>
6932 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
6933 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
6934 arguments separately.
6936 2012-09-07 Steven Bosscher <steven@gcc.gnu.org>
6938 * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
6940 * graphite.c (print_global_statistics): Use EDGE_COUNT instead
6942 (print_graphite_scop_statistics): Likewise.
6943 * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
6944 (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
6945 (canonicalize_loop_closed_ssa): Use single_pred_p.
6947 * alias.c (reg_seen): Make this an sbitmap.
6948 (record_set, init_alias_analysis): Update.
6950 * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
6952 2012-09-07 Tom de Vries <tom@codesourcery.com>
6954 PR tree-optimization/53986
6955 * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
6957 (extract_range_from_binary_expr_1): Handle LSHIFT with constant
6958 range as shift amount.
6960 2012-09-07 Segher Boessenkool <segher@kernel.crashing.org>
6962 * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
6963 * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
6964 * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
6965 * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
6966 * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
6967 * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
6968 * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
6969 * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
6970 * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
6971 * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
6972 Replace %. with nop.
6973 (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
6974 (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
6975 (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
6976 (call_nonlocal_aix32): Ditto.
6977 (call_nonlocal_aix64): Ditto.
6978 (call_value_nonlocal_aix32): Ditto.
6979 (call_value_nonlocal_aix64): Ditto.
6981 2012-09-06 Andi Kleen <ak@linux.intel.com>
6983 * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
6984 et.al. should be used.
6986 2012-09-06 Andi Kleen <ak@linux.intel.com>
6988 * lto-streamer.h (res_pair): Add.
6989 (lto_file_decl_data): Replace resolutions with respairs.
6991 * lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
6992 Initialize respairs.
6993 (lto_file_finalize): Set up resolutions vector lazily from respairs.
6995 2012-09-06 Lawrence Crowl <crowl@google.com>
6997 * double-int.h (double_int::operator &=): New.
6998 (double_int::operator ^=): New.
6999 (double_int::operator |=): New.
7000 (double_int::mul_with_sign): Modify overflow parameter to bool*.
7001 (double_int::add_with_sign): New.
7002 (double_int::ule): New.
7003 (double_int::sle): New.
7004 (binary double_int::operator *): Remove parameter name.
7005 (binary double_int::operator +): Likewise.
7006 (binary double_int::operator -): Likewise.
7007 (binary double_int::operator &): Likewise.
7008 (double_int::operator |): Likewise.
7009 (double_int::operator ^): Likewise.
7010 (double_int::and_not): Likewise.
7011 (double_int::from_shwi): Tidy formatting.
7012 (double_int::from_uhwi): Likewise.
7013 (double_int::from_uhwi): Likewise.
7014 * double-int.c (double_int::mul_with_sign): Modify overflow parameter
7016 (double_int::add_with_sign): New.
7017 (double_int::ule): New.
7018 (double_int::sle): New.
7019 * builtins.c: Modify to use the new double_int interface.
7020 * cgraph.c: Likewise.
7021 * combine.c: Likewise.
7022 * dwarf2out.c: Likewise.
7023 * emit-rtl.c: Likewise.
7024 * expmed.c: Likewise.
7026 * fixed-value.c: Likewise.
7027 * fold-const.c: Likewise.
7028 * gimple-fold.c: Likewise.
7029 * gimple-ssa-strength-reduction.c: Likewise.
7030 * gimplify-rtx.c: Likewise.
7031 * ipa-prop.c: Likewise.
7032 * loop-iv.c: Likewise.
7033 * optabs.c: Likewise.
7034 * stor-layout.c: Likewise.
7035 * tree-affine.c: Likewise.
7036 * tree-cfg.c: Likewise.
7037 * tree-dfa.c: Likewise.
7038 * tree-flow-inline.h: Likewise.
7039 * tree-object-size.c: Likewise.
7040 * tree-predcom.c: Likewise.
7041 * tree-pretty-print.c: Likewise.
7042 * tree-sra.c: Likewise.
7043 * tree-ssa-address.c: Likewise.
7044 * tree-ssa-alias.c: Likewise.
7045 * tree-ssa-ccp.c: Likewise.
7046 * tree-ssa-forwprop.c: Likewise.
7047 * tree-ssa-loop-ivopts.c: Likewise.
7048 * tree-ssa-loop-niter.c: Likewise.
7049 * tree-ssa-phiopt.c: Likewise.
7050 * tree-ssa-pre.c: Likewise.
7051 * tree-ssa-sccvn: Likewise.
7052 * tree-ssa-structalias.c: Likewise.
7053 * tree-ssa.c: Likewise.
7054 * tree-switch-conversion.c: Likewise.
7055 * tree-vect-loop-manip.c: Likewise.
7056 * tree-vrp.c: Likewise.
7059 * varasm.c: Likewise.
7061 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
7063 * configure.ac (hle prefixes): Remove .code64 directive.
7064 * configure: Regenerated.
7066 2012-09-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7068 * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
7069 LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
7070 * config/arm/arm.h: Use REG_P, MEM_P consistently.
7071 * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
7073 * config/arm/neon.md: Use REG_P consistently.
7074 * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
7075 * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
7076 * config/arm/vec-common.md: Use REG_P consistently.
7078 2012-09-06 Richard Guenther <rguenther@suse.de>
7080 PR tree-optimization/54498
7081 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
7082 abort when reaching an already visited region.
7083 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
7084 (get_continuation_for_phi_1): Likewise.
7085 (walk_non_aliased_vuses): When we translated the reference,
7086 abort when we re-visit a region.
7087 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
7089 2012-09-06 David Edelsohn <dje.gcc@gmail.com>
7091 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
7093 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
7094 arguments to TARGET_ADDRESS_COST call.
7096 2012-09-06 Richard Guenther <rguenther@suse.de>
7098 * tree.h (MOVE_NONTEMPORAL): Remove.
7099 * tree-pretty-print.c (dump_generic_node): Remove
7100 MOVE_NONTEMPORAL handling.
7101 * expr.c (expand_expr_real_1): Likewise.
7103 2012-09-06 Richard Guenther <rguenther@suse.de>
7105 * passes.c (execute_function_todo): Call compute_may_aliases
7106 only if flag_tree_pta is set.
7108 2012-09-06 Andrew Pinski <apinski@cavium.com>
7111 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
7113 2012-09-06 Jakub Jelinek <jakub@redhat.com>
7115 PR rtl-optimization/54455
7116 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
7117 bb ends up with asm goto referencing bb's label.
7119 2012-09-06 Chen Liqin <liqin.gcc@gmail.com>
7121 * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
7122 score_legitimize_address function, use compiler default code instead.
7124 2012-09-05 Jan Hubicka <jh@suse.cz>
7126 * ipa-inline.c (want_inline_small_function_p): Use
7127 INLINE_HINT_loop_iterations hint.
7129 2012-09-05 Andrew Pinski <apinski@cavium.com>
7131 * optabs.c (emit_conditional_add): Correct comment about the arguments.
7132 Remove code which might swap op2 and op3 since they cannot be swapped.
7133 * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
7136 2012-09-05 Oleg Endo <olegendo@gcc.gnu.org>
7138 * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
7139 * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
7140 * output.h (default_address_cost): Add machine_mode and address space
7142 * target.def (address_cost): Likewise.
7143 * rtlanal.c (address_cost): Pass mode and address space to target hook.
7144 (default_address_cost): Add unnamed machine_mode and address space
7146 * doc/tm.texi: Regenerate.
7147 * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
7148 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7149 * config/arm/arm.c (arm_address_cost): Add machine_mode and address
7151 * config/avr/avr.c (avr_address_cost): Likewise.
7152 * config/bfin/bfin.c (bfin_address_cost): Likewise.
7153 * config/cr16/cr16.c (cr16_address_cost): Likewise.
7154 * config/cris/cris.c (cris_address_cost): Likewise.
7155 * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
7156 * config/i386/i386.c (ix86_address_cost): Likewise.
7157 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
7158 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7159 * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
7160 address space arguments. Pass them on in recursive invocation.
7161 * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
7162 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7163 * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
7165 * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
7166 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7167 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
7168 * config/mep/mep.c (mep_address_cost): Add machine_mode and address
7170 * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
7171 * config/mips/mips.c (mips_address_cost): Likewise.
7172 * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
7173 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7174 * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
7175 address space arguments.
7176 (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
7177 mn10300_address_cost.
7178 * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
7180 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
7181 (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
7182 hook_int_rtx_bool_0.
7183 * config/rx/rx.c (rx_address_cost): Add machine_mode and address
7185 * config/s390/s390.c (s390_address_cost): Likewise.
7186 * config/score/score-protos.h (score_address_cost): Likewise.
7187 * config/score/score.c (score_address_cost): Likewise.
7188 * config/sh/sh.c (sh_address_cost): Likewise.
7189 * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
7190 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7191 * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
7192 * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
7193 and address space arguments.
7194 * config/v850/v850.c (TARGET_ADDRESS_COST): Use
7195 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7196 * config/vax/vax.c (vax_address_cost): Add machine_mode and address
7198 * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
7199 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
7201 2012-09-05 Diego Novillo <dnovillo@google.com>
7204 * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
7206 2012-09-05 Jakub Jelinek <jakub@redhat.com>
7209 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
7210 build_int_cst with size_type_node instead of size_int.
7212 2012-09-05 Uros Bizjak <ubizjak@gmail.com>
7214 * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
7215 Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
7216 Use nonimmediate_operand instead of
7217 nonimm_not_xmm0_operand{,_maybe_avx}.
7218 (<sse4_1_avx2>_pblendvb): Ditto.
7219 (sse4_2_pcmpestr): Ditto.
7220 (*sse4_2_pcmpestr_unaligned): Ditto.
7221 (sse4_2_pcmpistr): Ditto.
7222 (*sse4_2_pcmpistr_unaligned): Ditto.
7223 * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
7224 (nonimm_not_xmm0_operand): Ditto.
7225 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7226 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7227 * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
7229 2012-09-05 Eric Botcazou <ebotcazou@adacore.com>
7231 * bb-reorder.c: Clarify a few points in the head comment and fix
7232 long lines in other comments.
7233 (find_traces): Fix long line.
7234 (find_traces_1_round): Likewise.
7235 (better_edge_p): Likewise.
7236 (connect_traces): Likewise.
7237 (duplicate_computed_gotos): Likewise.
7238 (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
7239 (fix_up_fall_thru_edges): Fix formatting.
7241 2012-09-05 Richard Guenther <rguenther@suse.de>
7243 PR tree-optimization/46590
7244 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
7245 update SSA form here.
7246 (canonicalize_induction_variables): Assert we do not need to
7248 (tree_unroll_loops_completely): Update SSA form here.
7249 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7250 Do not verify loop-closed SSA form if SSA form is not up-to-date.
7252 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
7255 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
7256 not configured --with-avrlibc=no.
7257 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
7259 * config/avr/avrlibc.h: New file.
7260 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
7261 not configured --with-avrlibc=no.
7262 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
7264 2012-09-04 Teresa Johnson <tejohnson@google.com>
7266 * gcov-io.c (gcov_write_summary): Write out non-zero histogram
7267 entries to function summary along with an occupancy bit vector.
7268 (gcov_read_summary): Read in the histogram entries.
7269 (gcov_histo_index): New function.
7270 (void gcov_histogram_merge): Ditto.
7271 * gcov-io.h (gcov_type_unsigned): New type.
7272 (struct gcov_bucket_type): Ditto.
7273 (struct gcov_ctr_summary): Include histogram.
7274 (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
7275 (GCOV_HISTOGRAM_SIZE): New macro.
7276 (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
7277 * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
7278 (gcov_working_sets): New global variable.
7279 (compute_working_sets): New function.
7280 (find_working_set): Ditto.
7281 (get_exec_counts): Invoke compute_working_sets.
7282 * coverage.c (read_counts_file): Merge histograms, and
7283 fix bug with accessing summary info for non-summable counters.
7284 * basic-block.h (gcov_type_unsigned): New type.
7285 (struct gcov_working_set_info): Ditto.
7286 (find_working_set): Declare.
7287 * gcov-dump.c (tag_summary): Dump out histogram.
7289 2012-09-04 Diego Novillo <dnovillo@google.com>
7292 * vec.h (vec_t::embedded_init): Move default argument value
7293 to function declaration.
7295 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
7297 * bb-reorder.c (gate_handle_reorder_blocks): Move around.
7298 (rest_of_handle_reorder_blocks): Likewise.
7299 (pass_reorder_blocks): Likewise.
7300 (gate_handle_partition_blocks): Likewise.
7302 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
7304 PR rtl-optimization/54456
7305 * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
7307 2012-09-04 Diego Novillo <dnovillo@google.com>
7310 * vec.h (vec_t::alloc): Remove explicit type specification
7312 (vec_t::copy): Likewise.
7313 (vec_t::reserve): Likewise.
7314 (vec_t::reserve_exact): Likewise.
7315 (vec_t::safe_splice): Likewise.
7316 (vec_t::safe_push): Likewise.
7317 (vec_t::safe_grow): Likewise.
7318 (vec_t::safe_grow_cleared): Likewise.
7319 (vec_t::safe_insert): Likewise.
7321 2012-09-04 Richard Henderson <rth@redhat.com>
7323 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
7325 2012-09-04 Richard Guenther <rguenther@suse.de>
7327 * tree-ssa-pre.c (value_expressions): Make it a vector of
7328 bitmaps containing expression IDs.
7329 (add_to_value): Adjust.
7330 (sorted_array_from_bitmap_set): Likewise.
7331 (bitmap_set_replace_value): Likewise.
7332 (print_value_expressions): Likewise.
7333 (get_constant_for_value_id): Likewise.
7334 (get_representative_for): Likewise.
7335 (phi_translate_1): Likewise.
7336 (bitmap_find_leader): Likewise.
7337 (find_or_generate_expression): Likewise.
7338 (do_regular_insertion): Likewise.
7339 (init_pre): Likewise.
7340 (fini_pre): Likewise.
7342 2012-09-04 Diego Novillo <dnovillo@google.com>
7345 * vec.h (vec_t::copy): Add cast in call to reserve_exact.
7347 2012-09-04 Richard Guenther <rguenther@suse.de>
7349 * tree-ssa-pre.c (add_to_exp_gen): Adjust.
7350 (make_values_for_phi): Do not add to PHI_GEN for FRE.
7351 (compute_avail): Stop processing after adding all defs to
7353 (init_pre): Do not allocate not needed bitmap sets for FRE.
7355 2012-09-04 Diego Novillo <dnovillo@google.com>
7357 Rewrite VEC_* functions as member functions of vec_t.
7359 * vec.h: Update documentation.
7360 (ALONE_VEC_CHECK_INFO): Define.
7361 (ALONE_VEC_CHECK_DECL): Define.
7362 (ALONE_VEC_CHECK_PASS): Define.
7363 (struct vec_prefix): Rename field NUM to NUM_.
7364 Rename field ALLOC to ALLOC_.
7366 (struct vec_t): Rename field PREFIX to PREFIX_.
7367 Rename field VEC to VEC_.
7369 (vec_t::length): Rename from VEC_length_1. Update all users.
7370 (vec_t::empty): Rename from VEC_empty_1. Update all users.
7371 (vec_t::address): Rename from VEC_address_1. Update all users.
7373 (vec_t::last): Rename from VEC_last_1. Update all users.
7374 (vec_t::operator[]): Rename from VEC_index_1. Update all users.
7375 (vec_t::iterate): Rename from VEC_iterate_1. Update all users.
7376 (vec_t::embedded_size): Rename from VEC_embedded_size_1.
7378 (vec_t::embedded_init): Rename from VEC_embedded_init_1.
7380 (vec_t::alloc): Rename from VEC_alloc_1. Update all users.
7381 (vec_t::free): Rename from VEC_free_1. Update all users.
7382 (vec_t::copy): Rename from VEC_copy_1. Update all users.
7383 (vec_t::space): Rename from VEC_space_1. Update all users.
7384 (vec_t::reserve): Rename from VEC_reserve_1. Update all users.
7385 (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
7387 (vec_t::splice): Rename from VEC_splice_1. Update all users.
7388 (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users.
7389 (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users.
7390 (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users.
7391 (vec_t::pop): Rename from VEC_pop_1. Update all users.
7392 (vec_t::truncate): Rename from VEC_truncate_1. Update all users.
7393 (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users.
7394 (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
7396 (vec_t::replace): Rename from VEC_replace_1. Update all users.
7397 (vec_t::quick_insert): Rename from VEC_quick_insert_1.
7399 (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users.
7400 (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
7402 (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
7404 (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
7405 (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
7407 2012-09-04 Steven Bosscher <steven@gcc.gnu.org>
7409 * gimple.h (gimple_build_switch): Remove.
7410 (gimple_build_switch_vec): Promote to the new gimple_build_switch.
7411 (gimple_switch_default_label): Assert the default case label is
7412 really a default case label.
7413 (gimple_switch_set_default_label): Likewise.
7414 * gimple.c (gimple_build_switch_nlabels): Make sure a default label
7415 is passed in, and simplify accordingly.
7416 (gimple_build_switch): Removed.
7417 (gimple_build_switch_vec): Rename to gimple_build_switch.
7418 * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
7419 * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
7421 * stmt.c (expand_case): Simplify using the fact that every GIMPLE
7422 switch must have a default case.
7423 * tree-cfg.c (group_case_labels_stmt): Likewise.
7424 (verify_gimple_switch): Use gimple_switch_label in verifier to get
7425 the label at index 0, and verify that it is a valid default case.
7426 * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
7427 switch for dispatching.
7428 * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
7429 (lower_eh_dispatch): Likewise.
7430 * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
7431 label at index 0 before turning it into a default case label.
7432 * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
7433 * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
7434 label using gimple_switch_default_label.
7435 (collect_switch_conv_info): Likewise.
7436 (process_switch): Likewise.
7437 * doc/gimple.texi: Update documentation of gimple_build_switch.
7439 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
7442 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
7445 2012-09-04 Bin Cheng <bin.cheng@arm.com>
7448 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
7449 of size less than 4 bytes by using macro ARM_NUM_INTS.
7450 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
7452 2012-09-04 Richard Guenther <rguenther@suse.de>
7454 PR tree-optimization/54458
7455 * tree-ssa-threadupdate.c (thread_through_loop_header): If we
7456 turn the loop into one with multiple latches mark it so.
7458 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7461 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
7463 (avr_allocate_stack_slots_for_args): ...this new static function.
7465 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
7467 * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
7469 (arm_emit_coreregs_64bit_shift): Likewise.
7471 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
7473 * config/arm/arm.c (arm_evpc_neon_vext): New function.
7474 (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
7476 2012-09-04 Oleg Endo <olegendo@gcc.gnu.org>
7479 * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
7480 canonicalization code into...
7481 * (sh_canonicalize_comparison): This new function.
7482 * config/sh/sh-protos.h: Declare it.
7483 * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
7484 * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
7485 always invoke expand_cbranchsi4.
7487 2012-09-03 Andi Kleen <ak@linux.intel.com>
7489 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
7492 2012-09-03 Andrew Pinski <apinski@cavium.com>
7495 * tree-if-conv.c (constant_or_ssa_name): New function.
7496 (fold_build_cond_expr): New function.
7497 (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
7498 (predicate_mem_writes): Likewise.
7500 2012-09-03 Marc Glisse <marc.glisse@inria.fr>
7502 * fold-const.c (fold_ternary_loc): Constant-propagate after
7503 removing dead operands.
7505 2012-09-03 Michael Matz <matz@suse.de>
7507 PR tree-optimization/46590
7508 * tree-cfg.c (gimple_duplicate_sese_region): Don't update
7510 * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
7512 2012-09-03 Sandra Loosemore <sandra@codesourcery.com>
7514 * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
7515 errors throughout the file. Re-word some awkward sentences and
7518 2012-09-03 Richard Guenther <rguenther@suse.de>
7520 PR tree-optimization/54362
7521 * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
7523 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7525 * config/s390/s390.c (s390_loadrelative_operand_p): New function.
7526 (s390_check_qrst_address, print_operand_address): Use
7527 s390_loadrelative_operand_p instead of s390_symref_operand_p.
7528 (s390_check_symref_alignment): Accept pointer size alignment for
7530 (legitimize_pic_address): Use load relative on z10 or later.
7532 2012-09-03 Jakub Jelinek <jakub@redhat.com>
7535 * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
7538 2012-09-03 Joseph Myers <joseph@codesourcery.com>
7540 * common.opt (--no-sysroot-suffix): New driver option.
7541 * doc/invoke.texi (--no-sysroot-suffix): Document.
7542 * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
7543 needing spec processing.
7544 (main): Do not process sysroot suffixes if no_sysroot_suffix.
7546 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
7549 * common/config/sh/sh-common.c: Update copyright years.
7550 (sh_option_init_struct): Delete.
7551 (TARGET_OPTION_INIT_STRUCT): Likewise.
7553 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
7556 * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
7557 Check operands[1] in split condition instead of operands[0].
7560 2012-09-02 Mark Kettenis <kettenis@openbsd.org>
7562 * config.gcc (x86_64-*-openbsd*): New target.
7563 * config.host (*-*-openbsd*): New target.
7564 * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
7565 * config/i386/openbsdelf.h: Remove some superfluous defines and
7566 group things together in a more logical fashion.
7567 (DBX_REGISTER_NUMBER): Provide a
7568 definition that works on both 32-bit and 64-bit targets.
7569 (WCHAR_TYPE_SIZE): Hardcode as 32.
7570 (NO_DOLLAR_IN_LABEL): Remove undef.
7571 (TARGET_DEFAULT): Remove.
7572 (SET_ASM_OP): Remove.
7573 (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
7574 (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
7575 (DWARF2_UNWIND_INFO): Remove define.
7576 (HAVE_ENABLE_EXECUTE_STACK): Define.
7577 * config/host-openbsd.c: New file.
7578 * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
7579 * config/x-openbsd: New file.
7581 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
7583 * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
7584 mode to sh_legitimate_index_p instead of QImode.
7586 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
7588 PR rtl-optimization/54369
7589 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
7590 calling dbr_schedule.
7591 * config/sparc/sparc.c (sparc_reorg): Likewise.
7593 2012-09-01 Jakub Jelinek <jakub@redhat.com>
7596 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
7597 operands[1] is CONST_INT_P, convert it to QImode before printing.
7599 2012-09-01 Andrew Pinski <apinski@cavium.com>
7601 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
7602 A truncate of a memory is just loading the low part of the memory.
7604 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
7608 * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
7609 (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
7611 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
7613 * target.def (legitimate_combined_insn): New target hook.
7614 * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
7615 * doc/tm.texi: Regenerated.
7616 * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
7617 to allow targets to reject combined insn.
7618 * hooks.h (hook_bool_rtx_true): New.
7619 * hooks.c (hook_bool_rtx_true): Ditto.
7621 2012-08-31 Martin Jambor <mjambor@suse.cz>
7623 * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
7624 nonconstant_names after calculate_dominance_info and
7625 loop_optimizer_init.
7627 2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
7629 * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
7632 2012-08-31 Martin Jambor <mjambor@suse.cz>
7635 * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
7638 2012-08-31 Martin Jambor <mjambor@suse.cz>
7640 * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
7641 (predicate_for_phi_result): Likewise.
7642 (estimate_function_body_sizes): Use the above two functions.
7644 2012-08-31 Martin Jambor <mjambor@suse.cz>
7647 * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
7648 dominance info and loops whenever optimizing.
7650 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7651 Richard Earnshaw <richard.earnshaw@arm.com>
7654 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
7655 element size. Use elem_type from the formal parameter. New parameter
7657 (neon_expand_args): Adjust call to neon_dereference_pointer.
7659 2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
7661 * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
7663 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
7666 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
7667 mapping style, add ../lib/mips16.
7668 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
7669 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
7671 2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
7673 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
7676 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
7678 * config/sh/sh.opt (menable-tas): Rename to mtas.
7679 * doc/invoke.texi (SH options): Likewise.
7680 * config/sh/sync.md: Update comments.
7682 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
7684 * config/sh/iterators.md: New file.
7685 * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage
7686 with new iterators QIHISI, QIHI, bw, bwl respectively throughout
7688 * config/sh/sh.md: Include new file iterators.md.
7689 (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
7690 (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
7691 *zero_extend<mode>si2_compact.
7692 (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
7693 *zero_extend<mode>si2_disp_mem.
7694 (extendhisi2, extendqisi2): Fold into extend<mode>si2.
7695 (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
7696 *extend<mode>si2_compact_reg.
7697 (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
7698 into *extend<mode>si2_compact_mem_disp.
7699 (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
7700 *extend<mode>si2_compact_snd.
7701 (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
7702 to *movsi_index_disp_load, *movhi_index_disp_load,
7703 *mov<mode>_index_disp_store.
7704 (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
7705 (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
7706 *mov<mode>_store_mem_disp04.
7707 (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
7708 *mov<mode>_store_mem_disp12.
7709 (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
7710 *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
7712 2012-08-29 Martin Jambor <mjambor@suse.cz>
7714 * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
7715 do_estimate_edge_time.
7717 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
7719 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
7720 directives, remove #ifndef __mips16 guards.
7721 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
7722 mapping style, add ../lib/mips16.
7723 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
7724 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
7726 2012-08-28 Walter Lee <walt@tilera.com>
7727 * confg/tilegx/tilegx.md: Fix code style.
7728 (*zero_extendsidi_truncdisi): Fix typo.
7729 * config/tilegx/tilegx.c: Fix code style.
7730 (tilegx_function_profiler): Fix typo.
7732 2012-08-28 Walter Lee <walt@tilera.com>
7734 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
7735 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
7736 (CRT_CALL_STATIC_FUNCTION): Define.
7737 * config/tilegx/predicates.md (const_last_symbolic_operand):
7738 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
7739 UNSPEC_HW2_LAST_PLT_PCREL.
7740 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
7741 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
7742 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
7743 and renumber the constants that follow.
7744 (UNSPEC_HW1_PCREL): Ditto.
7745 (UNSPEC_HW2_LAST_PCREL): Ditto.
7746 (UNSPEC_HW0_PLT_PCREL): Define.
7747 (UNSPEC_HW1_PLT_PCREL): Define.
7748 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
7749 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
7750 (mov_large_pcrel_step1): Define.
7751 (mov_large_pcrel_step2): Define.
7752 (mov_large_pcrel_step3): Define.
7753 (mov_large_pcrel_step4): Define.
7754 (mov_plt_pcrel_step1): Define.
7755 (mov_plt_pcrel_step2): Define.
7756 (mov_plt_pcrel_step3): Define.
7757 (mov_plt_pcrel_step1_32bit): Define.
7758 (mov_plt_pcrel_step2_32bit): Define.
7759 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
7760 (call_value): Ditto.
7761 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
7762 (mcmodel): New option.
7763 (enum cmodel): Define.
7766 * config/tilegx/tilegx-opts.h: New file.
7767 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
7769 (tilegx_compute_pcrel_plt_address): Declare.
7770 * config/tilegx/tilegx.c (tilegx_option_override): Handle
7772 (tilegx_function_ok_for_sibcall): Ditto.
7773 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
7774 and don't declare static. Handle tilegx_cmodel.
7775 (tilegx_compute_pcrel_plt_address): Define.
7776 (tilegx_legitimize_pic_address): Rename calls to
7777 compute_pcrel_address.
7778 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
7779 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
7780 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
7781 (load_pic_register): Rename call to compute_pcrel_address.
7782 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
7783 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
7784 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
7786 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7788 * sched-deps.c (add_dependence_list_and_free): Simplify.
7789 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
7790 lists when add_dependence_list_and_free doesn't free them.
7792 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
7795 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
7796 true for TARGET_64BIT or !flag_pic.
7797 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
7798 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
7799 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
7800 Add insn constraint. Conditionally emit xchg asm insns.
7801 (atomic_compare_and_swap<mode>): Update calls. Check only
7802 cmpxchg8b_pic_memory_operand in memory address fixup.
7804 (CASHMODE): Rename from DCASHMODE.
7805 (doublemodesuffix): Update modes.
7806 (regprefix): New mode attribute.
7808 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
7809 <UNSPECV_CMPXCHG>: New constant.
7810 (atomic_compare_and_swap<mode>_1): Rename from
7811 atomic_compare_and_swap_single<mode>. Update calls and
7812 unspec_volatile constants.
7813 (atomic_compare_and_swap<mode>_doubleword): Rename from
7814 atomic_compare_and_swap_double<mode>. Update calls and
7815 unspec_volatile constants.
7817 2012-08-27 Walter Lee <walt@tilera.com>
7819 * doc/md.texi (TILE-Gx): Fix typo.
7821 2012-08-27 Walter Lee <walt@tilera.com>
7823 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
7824 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
7826 2012-08-27 Walter Lee <walt@tilera.com>
7828 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
7829 (insn_bfins): Delete.
7831 2012-08-27 Walter Lee <walt@tilera.com>
7833 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
7834 atomic_exchange_bare<mode>,
7835 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
7836 * config/tilegx/tilegx-generic.md (X1_remote): New
7838 * config/tilegx/tilegx.md (type): Add X1_remove.
7839 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
7840 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
7841 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
7844 2012-08-27 Andreas Schwab <schwab@linux-m68k.org>
7846 * gdbinit.in: Fix syntax of skip command.
7848 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
7850 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
7851 SYMBOL_REF SET_SRCs.
7853 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
7855 * config/mips/mips.c (vr4130_align_insns): Don't simulate
7856 ghost instructions. Assert that the required instructions exist.
7858 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
7860 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
7862 * config/mips/mips.c (machine_function): Add next_fcc.
7863 (mips_output_move): Remove handling of fcc moves.
7864 (mips_allocate_fcc): New function.
7865 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
7866 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
7867 Remove special case for CCmode reloads.
7868 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
7869 the result a fixed operand.
7870 * config/mips/mips.md (move_type): Remove lui_movf.
7871 (type, length): Remove references to it.
7872 (movcc, reload_incc, reload_outcc): Delete.
7874 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
7876 * config/mips/mips.c (mips_has_long_branch_p): New function,
7878 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
7880 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
7882 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
7884 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
7886 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
7888 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
7890 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
7891 to the size cost of multiplication.
7893 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
7895 * doc/install.texi (Specific): Clarify what needs to be added to
7898 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
7900 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
7901 and NO_DOT_IN_LABEL from here...
7902 (Label Output): ...to here.
7903 * doc/tm.texi: Regenerate.
7905 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
7907 * doc/invoke.texi (C++ Dialect Options): Add missing space.
7909 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
7911 PR rtl-optimization/54088
7912 * jump.c (delete_related_insns): Robustify latest change.
7914 2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
7916 * doc/extend.texi (__atomic Builtins): Remove space before comma.
7918 2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
7919 Andrew Pinski <apinski@cavium.com>
7921 * config/mips/mips.h (CASE_VECTOR_MODE): For not
7922 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
7923 (CASE_VECTOR_SHORTEN_MODE): Likewise.
7925 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
7927 * config/i386/i386.h (FP_REG_P): Remove macro.
7928 (FP_REGNO_P): Ditto.
7929 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
7930 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
7931 (ANY_FP_REGNO_P): Ditto.
7932 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
7933 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
7934 instead of FP_REGNO_P.
7935 (ix86_hard_regno_mode_ok): Ditto.
7936 * config/i386/predicates.md (fp_register_operand): Ditto.
7937 (register_and_not_fp_reg_operand): Ditto.
7938 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
7941 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
7943 2012-08-24 Jason Merrill <jason@redhat.com>
7945 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
7946 on TREE_VEC or SSA_NAME.
7948 2012-08-24 Jakub Jelinek <jakub@redhat.com>
7951 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
7952 if init is a CONSTRUCTOR.
7954 2012-08-24 Steven Bosscher <steven@gcc.gnu.org>
7956 * tree-ssa-live.c (dump_var_map): Do not dump the partition
7957 map of virtual operands.
7959 2012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
7961 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
7962 case for Atom processor.
7964 2012-08-24 Simon Baldwin <simonb@google.com>
7966 * dwarf2out.c (gen_producer_string): Omit command line switch if
7967 CL_NO_DWARF_RECORD flag set.
7968 * opts.h (CL_NO_DWARF_RECORD): New.
7969 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
7970 * doc/options.texi: Document NoDWARFRecord option flag.
7972 2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
7975 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
7976 frame_pointer_rtx for based_loc_descr.
7978 2012-08-24 Martin Jambor <mjambor@suse.cz>
7980 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
7981 instead of current_function_decl, use profile_status_for_function and
7982 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
7983 (maybe_hot_count_p): New parameter fun, use
7984 profile_status_for_function instead of its cfun_variant.
7985 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
7987 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
7988 maybe_hot_frequency_p.
7989 (probably_never_executed_bb_p): New parameter fun, use its decl
7990 instead of current_function_decl.
7991 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
7992 (rtl_profile_for_bb): Likewise.
7993 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
7994 probably_never_executed_bb_p.
7995 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
7997 (update_stmt_operands): Pass cfun as an argument of
7998 ssa_operands_active.
7999 (swap_tree_operands): Likewise.
8000 * gimple-iterator.c (update_modified_stmt): Likewise.
8001 (update_modified_stmts): Likewise.
8002 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
8003 * tree-ssa.c (delete_tree_ssa): Likewise.
8004 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
8005 (push_to_next_round_p): Likewise.
8006 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
8007 * cfg.c: Inlude tree.h.
8008 (check_bb_profile): Use profile_status_for_function,
8009 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
8010 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
8012 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
8013 maybe_hot_bb_p and probably_never_executed_bb_p.
8014 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
8015 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
8016 dump_histograms_for_stmt.
8017 (dump_gimple_mem_ops): Pass
8018 DECL_STRUCT_FUNCTION (current_function_decl)
8019 as an argument to dump_gimple_mem_ops.
8020 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
8021 Do not change cfun. Change and restore current_function_decl.
8022 * Makefile.in (cfg.o): Include TREE_H in dependencies.
8024 2012-08-24 Georg-Johann Lay <avr@gjlay.de>
8027 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
8028 * avr/avr-fixed.md: New file.
8029 * avr/avr.md: Include it.
8031 (adjust_len): Add: minus, minus64, ufract, sfract.
8032 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
8033 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
8034 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
8035 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
8036 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
8037 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
8038 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
8039 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
8040 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
8041 16-bit modes in ALL2.
8042 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
8043 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
8044 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
8045 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
8046 32-bit modes in ALL4.
8047 * avr-dimode.md (ALL8): New mode iterator.
8048 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
8049 subdi3_const_insn, cbranchdi4, compare_di2,
8050 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
8051 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
8052 all 64-bit modes in ALL8.
8053 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
8054 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
8055 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
8056 (avr_fixed_point_supported_p): ...this new static function.
8057 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
8058 (avr_build_builtin_va_list): ...this new static function.
8059 (avr_adjust_type_node): New static function.
8060 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
8061 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
8062 pseudo instead of gen_rtx_MINUS.
8063 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
8064 (notice_update_cc): Handle: CC_MINUS.
8065 (output_movqi): Generalize to handle respective fixed-point modes.
8066 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
8067 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
8068 (avr_assemble_integer): Ditto.
8069 (output_reload_in_const, output_reload_insisf): Ditto.
8070 (avr_compare_pattern): Skip all modes > 4 bytes.
8071 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
8072 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
8073 (avr_to_int_mode): New function.
8074 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
8075 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
8076 * config/avr/predicates.md (const0_operand): Allow const_fixed.
8077 (const_operand, const_or_immediate_operand): New.
8078 (nonmemory_or_const_operand): New.
8079 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
8081 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
8083 2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
8085 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
8086 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
8088 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
8089 count_reg_usage): Convert constant cases.
8090 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
8091 (cselib_subst_to_values): Convert constant cases.
8092 * df-scan.c (df_uses_record): Ditto.
8093 * dse.c (const_or_frame_p): Convert case statements to explicit
8094 if-then-else using mode classes.
8095 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
8096 * explow.c (convert_memory_address_addr_space): Ditto.
8097 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
8098 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
8099 * ira.c (equiv_init_varies_p, contains_replace_regs,
8100 memref_referenced_p, rtx_moveable_p): Ditto.
8101 * jump.c (mark_jump_label_1): Remove constant cases.
8102 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
8103 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
8104 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
8105 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
8106 * reginfo.c (reg_scan_mark_refs): Ditto.
8107 * regrename.c (scan_rtx): Ditto.
8108 * reload1.c (eliminate_regs_1, elimination_effects,
8109 scan_paradoxical_subregs): Ditto.
8110 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
8111 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
8112 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
8113 (reg_mentioned_p, modified_between_p, modified_in_p)
8114 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
8115 inequality_comparisons_p, computed_jump_p_1): Ditto.
8116 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
8117 * sched-deps.c (sched_analyze_2): Ditto.
8118 * valtrack.c (cleanup_auto_inc_dec): Ditto.
8119 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
8120 CASE_CONST_ANY): New macros.
8122 2012-08-23 Julian Brown <julian@codesourcery.com>
8123 Sandra Loosemore <sandra@codesourcery.com>
8125 * config/mips/mips.md
8126 (UNSPEC_CASESI_DISPATCH): New.
8127 (MIPS16_T_REGNUM): New constant.
8128 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
8130 (casesi_internal_mips16_<mode>): New.
8131 * config/mips/mips.c (mips16_split_long_branches): Adjust test
8132 to ignore casesi jump tables.
8133 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
8135 (CASE_VECTOR_MODE): Use SImode unconditionally.
8136 (CASE_VECTOR_SHORTEN_MODE): Define.
8137 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
8138 when necessary for MIPS16_SHORT_JUMP_TABLES.
8140 2012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8142 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
8144 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
8147 * doc/invoke.texi: Add -da and remove -dm.
8149 2012-08-23 Richard Guenther <rguenther@suse.de>
8151 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
8154 2012-08-23 Jakub Jelinek <jakub@redhat.com>
8156 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
8158 2012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
8160 * doc/gty.texi: Fix typo.
8162 2012-08-23 Richard Guenther <rguenther@suse.de>
8164 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
8165 (find_uses_to_rename_use): Likewise.
8166 (find_uses_to_rename_bb): Likewise.
8167 (find_uses_to_rename_stmt): Walk over all operands.
8169 2012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
8172 * config/sh/predicates (p27_rshift_count_operand,
8173 not_p27_rshift_count_operand): New predicates.
8174 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
8175 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
8176 case when shift amount is 31.
8177 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
8178 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
8180 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
8182 (lshrsi3): Remove clobber from expander. Use shift_count_operand
8183 instead of nonmemory_operand predicate for second operand. Add
8184 handling of case lshrsi3_n_clobbers_t.
8185 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
8186 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
8187 shift sequences if beneficial.
8188 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
8189 dynamic shift if beneficial.
8190 (lshrsi3_n_clobbers_t): New insn_and_split.
8191 (lshrsi3_m): Delete.
8193 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
8195 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
8197 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
8198 or rather a lack thereof.
8199 (init_alias_analysis): Propagate the latest information across
8200 the CFG in topological order to propagate as far as possible in
8201 each iteration. Ignore debug insns.
8203 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
8205 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
8207 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
8208 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
8210 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
8211 TARGET_LONG_DOUBLE_64 is true.
8212 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
8213 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
8215 * config/i386/i386.opt (mlong-double-80): New option.
8216 (mlong-double-64): Likewise.
8218 * config/i386/i386-c.c (ix86_target_macros): Define
8219 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
8221 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
8224 * config/i386/i386.c (ix86_split_to_parts): Replace
8225 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
8227 2012-08-22 Richard Guenther <rguenther@suse.de>
8229 * tree-vectorizer.c (vectorize_loops): Do not call
8230 mark_virtual_operands_for_renaming.
8231 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
8232 Do not update SSA form here.
8234 2012-08-22 Dodji Seketeli <dodji@redhat.com>
8236 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
8238 2012-08-22 Richard Guenther <rguenther@suse.de>
8240 PR tree-optimization/46590
8241 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
8242 counter output argument.
8243 (walk_non_aliased_vuses): Add alias query counter argument
8244 to the walker callback.
8245 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
8246 output argument and count alias queries.
8247 (get_continuation_for_phi_1): Likewise.
8248 (get_continuation_for_phi): Likewise.
8249 (walk_non_aliased_vuses): Add alias query counter argument
8250 to the walker callback and allow it to abort the walk by
8252 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
8253 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
8254 counter parmeter, abort walk if that is bigger than
8255 --param sccvn-max-alias-queries-per-access.
8256 * params.def (sccvn-max-alias-queries-per-access): New param.
8257 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
8259 2012-08-22 Richard Guenther <rguenther@suse.de>
8261 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
8262 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
8263 instead of gcc_assert.
8264 (mark_block_for_update): Likewise.
8265 (add_new_name_mapping): Likewise.
8266 (mark_def_sites): Likewise.
8267 (insert_phi_nodes_for): Likewise.
8268 (rewrite_debug_stmt_uses): Likewise.
8269 (rewrite_stmt): Likewise.
8270 (maybe_register_def): Likewise.
8271 (rewrite_update_phi_arguments): Likewise.
8272 (rewrite_update_enter_block): Likewise.
8273 (mark_def_interesting): Likewise.
8274 (prepare_def_site_for): Likewise.
8275 (insert_updated_phi_nodes_for): Likewise.
8277 2012-08-22 Jakub Jelinek <jakub@redhat.com>
8279 * tree-vect-loop.c (vect_transform_loop): Initialize
8280 check_profitability to false.
8282 * tree-predcom.c (try_combine_chains): Free the worklist vector
8285 2012-08-22 Marc Glisse <marc.glisse@inria.fr>
8287 PR tree-optimization/54317
8288 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
8289 double_int overflow.
8292 2012-08-22 Jakub Jelinek <jakub@redhat.com>
8294 * tree-vrp.c (find_assert_locations): Skip also edges
8295 from the entry block.
8297 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
8298 free_stmt_vec_info on orig_cond after gsi_removing it.
8299 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
8300 free body_cost_vec vector.
8301 (vect_analyze_data_refs): If gather is unsuccessful,
8303 * tree-inline.c (tree_function_versioning): Free
8304 old_transforms_to_apply vector.
8306 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
8308 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
8309 of this a VEC and add a bitmap obstack.
8310 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
8312 (ssa_conflicts_delete): Free the VEC and release the obstack.
8313 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
8314 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
8315 (truct live_track_d): Add another bitmap obstack here.
8316 (new_live_track): Initialize it and use it for all bitmaps.
8317 (delete_live_track): Don't free the bitmaps one at a time, just
8318 release the obstack.
8319 (create_outofssa_var_map): Fix to conform to GCC code style rules.
8321 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
8323 * config/m32c/constraints.md: New file.
8324 * config/m32c/t-m32c (MD_FILES): Add constraints.
8325 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
8326 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
8327 (m32c_reg_class_from_constraint): Delete.
8328 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
8329 (m32c_matches_constraint_p): Declare.
8330 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
8331 (REG_CLASS_FROM_CONSTRAINT): Delete.
8332 (CONST_OK_FOR_CONSTRAINT_P): Delete.
8333 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
8334 (EXTRA_CONSTRAINT_STR): Delete.
8335 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
8336 * config/m32c/m32c.c: Include tm-constrs.h
8337 (m32c_reg_class_from_constraint): Delete.
8338 (m32c_const_ok_for_constraint_p): Delete.
8339 (m32c_extra_constraint_p2): Rename to...
8340 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
8342 (m32c_extra_constraint_p): Delete.
8343 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
8344 (m32c_split_move): Use satisfies_constraint_Ss.
8345 * config/m32c/predicates.md (memsym_operand): Use
8346 satisfies_constraint_Si.
8347 (memimmed_operand): Use satisfies_constraint_Sp.
8348 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
8349 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
8350 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
8351 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
8353 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
8355 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
8356 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8357 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
8358 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
8359 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
8360 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
8361 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
8363 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
8365 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
8366 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
8367 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
8368 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
8369 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
8370 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
8371 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
8372 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
8373 stack_protect_set_di_media, stack_protect_test_si,
8374 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
8375 multi-line asm output strings.
8376 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
8378 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
8379 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
8380 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8381 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
8382 Use tab char instead of '\\t'.
8383 (iordi3): Use braced string.
8384 (*movsi_pop): Use tab chars instead of spaces.
8386 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
8389 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
8392 2012-08-21 H.J. Lu <hongjiu.lu@intel.com>
8395 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
8396 inside the insn traversal loop.
8398 * vec.h (vec_reserve): Remove the stack allocation check.
8400 2012-08-21 Marc Glisse <marc.glisse@inria.fr>
8402 * fold-const.c (fold_ternary_loc): Detect identity permutations.
8403 Canonicalize permutations more.
8404 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
8405 (simplify_permutation): Likewise.
8406 (ssa_forward_propagate_and_combine): Call it.
8408 2012-08-21 Richard Guenther <rguenther@suse.de>
8410 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
8411 the affine expansion cache.
8412 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
8414 (free_expr_hash_elt): ... this one.
8415 (record_cond): Properly free a not needed hashtable element.
8416 (lookup_avail_expr): Likewise.
8417 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
8418 for the var_infos hashtable.
8419 (update_ssa): Likewise.
8421 2012-08-21 Richard Guenther <rguenther@suse.de>
8423 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
8424 * tree.h: Fix typo and complete flags documentation.
8426 2012-08-21 Richard Guenther <rguenther@suse.de>
8428 * tree.h (struct tree_base): Add union to make it possible to
8429 re-use the upper 4 bytes for tree codes that do not need as
8430 many flags as others. Move visited and default_def_flag to
8431 common bits section in exchange for saturating_flag and
8432 unsigned_flag. Add SSA name version and tree vec length
8434 (struct tree_vec): Remove length field here.
8435 (struct tree_ssa_name): Remove version field here.
8437 2012-08-20 Jan Hubicka <jh@suse.cz>
8440 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
8442 (edge_badness): Likewise.
8443 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
8444 (inline_summary): Add loop_iterations.
8445 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
8446 (dump_inline_hints): Dump loop_iterations.
8447 (reset_inline_summary): Free loop_iterations.
8448 (inline_node_duplication_hook): Update loop_iterations.
8449 (dump_inline_summary): Dump loop_iterations.
8450 (will_be_nonconstant_expr_predicate): New function.
8451 (estimate_function_body_sizes): Analyze loops.
8452 (estimate_node_size_and_time): Set hint loop_iterations.
8453 (inline_merge_summary): Merge loop iterations.
8454 (inline_read_section): Stream in loop_iterations.
8455 (inline_write_summary): Stream out loop_iterations.
8457 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
8460 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
8461 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
8462 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
8463 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
8465 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
8468 * config/sh/sh.md (*cset_zero): New insns.
8470 2012-08-20 Mark Wielaard <mjw@redhat.com>
8472 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
8473 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
8474 (add_AT_low_high_pc): New function.
8475 (AT_lbl): Handle dw_val_class_high_pc.
8476 (print_die): Likewise.
8477 (attr_checksum): Likewise.
8478 (attr_checksum_ordered): Likewise.
8479 (same_dw_val_p): Likewise.
8480 (size_of_die): Likewise.
8481 (value_format): Likewise.
8482 (output_die): Likewise.
8483 (gen_subprogram_die): Use add_AT_low_high_pc.
8484 (add_high_low_attributes): Likewise.
8485 (dwarf2out_finish): Likewise.
8487 2012-08-20 Jakub Jelinek <jakub@redhat.com>
8489 PR rtl-optimization/54294
8490 * fwprop.c (all_uses_available_at): Ignore debug insns in between
8491 def_insn and target_insn when checking whether the shortcut is
8494 2012-08-20 Eric Botcazou <ebotcazou@adacore.com>
8496 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
8498 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
8501 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
8503 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
8506 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
8507 declaration and setter.
8509 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
8512 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
8514 (is_widening_mult_rhs_p): Use it.
8516 2012-08-20 Joseph Myers <joseph@codesourcery.com>
8518 * configure.ac (ffs): Check for declaration.
8519 * configure, config.in: Regenerate.
8521 2012-08-20 Richard Guenther <rguenther@suse.de>
8523 * tree-flow.h (register_new_name_mapping): Remove.
8524 * tree-into-ssa.c (register_new_name_mapping): Likewise.
8525 (add_new_name_mapping): Do not push/pop timevar here.
8526 (create_new_def_for): Instead do it here. Initialize
8527 update-ssa here, handle a NULL def.
8528 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
8530 2012-08-20 Richard Guenther <rguenther@suse.de>
8532 PR tree-optimization/54327
8533 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
8534 if the use is registered for SSA update.
8536 2012-08-20 Jakub Jelinek <jakub@redhat.com>
8538 PR tree-optimization/54321
8539 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
8540 as second argument to tree_low_cst call on val2.
8542 2012-08-20 Richard Guenther <rguenther@suse.de>
8544 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
8546 2012-08-20 Richard Guenther <rguenther@suse.de>
8549 * genoutput.c (note_constraint): Properly use CONST_CAST.
8551 2012-08-19 Nick Clifton <nickc@redhat.com>
8554 * config/arm/mmintrin.h: Remove spurious #endif.
8556 2012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8558 * config/avr/avr-log.c (avr_log_vadump): Properly use
8559 int-promoted enum values.
8560 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
8561 int to enum avr_arch.
8562 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
8564 2012-08-18 Jan Hubicka <jh@suse.cz>
8567 * ipa-inline.c (want_inline_small_function_p): Bypass
8568 inline limits for hinted functions.
8569 (edge_badness): Dump hints; decrease badness for hinted funcitons.
8570 * ipa-inline.h (enum inline_hints_vals): New enum.
8571 (inline_hints): New type.
8572 (edge_growth_cache_entry): Add hints.
8573 (dump_inline_summary): Update.
8574 (dump_inline_hints): Declare.
8575 (do_estimate_edge_hints): Declare.
8576 (estimate_edge_hints): New inline function.
8577 (reset_edge_growth_cache): Update.
8578 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
8579 * ipa-inline-analysis.c (dump_inline_hints): New function.
8580 (estimate_edge_devirt_benefit): Return true when function should be
8582 (estimate_calls_size_and_time): New hints argument; set it when
8583 devritualization happens.
8584 (estimate_node_size_and_time): New hints argument.
8585 (do_estimate_edge_time): Cache hints.
8586 (do_estimate_edge_growth): Update.
8587 (do_estimate_edge_hints): New function
8589 2012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8592 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
8593 if the mode is larger than a wide int and it is too costly to multiply
8594 by a positive multiplier and negate the result.
8596 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
8598 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
8599 valgrind not to worry about reading from unitialized memory.
8601 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
8604 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
8605 freed when its obstack is release.
8607 2012-08-18 Andrew Pinski <pinskia@gmail.com>
8609 * alloc-pool.c (pool_alloc): Add valgrind markers.
8610 (pool_free): Likewise.
8612 2012-08-17 Walter Lee <walt@tilera.com>
8614 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
8615 (FEEDBACK_ENTER): Define.
8616 (FEEDBACK_REENTER): Define.
8617 (FEEDBACK_ENTRY): Define.
8618 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
8619 (FEEDBACK_ENTER): Define.
8620 (FEEDBACK_REENTER): Define.
8621 (FEEDBACK_ENTRY): Define.
8623 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
8624 Gary Funck <gary@intrepid.com>
8627 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
8628 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8630 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
8632 2012-08-17 Marc Glisse <marc.glisse@inria.fr>
8634 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
8637 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
8639 * stor-layout.c (compute_record_mode): Replace
8640 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
8641 (layout_type): Likewise.
8643 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
8645 * target.def (member_type_forces_blk): New target hook.
8647 * targhooks.c (default_member_type_forces_blk): New.
8648 * targhooks.h (default_member_type_forces_blk): Likewise.
8650 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
8651 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
8652 * doc/tm.texi: Regenerated.
8654 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
8656 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
8657 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8659 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8660 (rs6000_member_type_forces_blk): New function.
8662 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
8664 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
8665 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8667 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
8669 2012-08-17 Diego Novillo <dnovillo@google.com>
8672 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
8673 * config.in: Regenerate.
8674 * configure: Regenerate.
8675 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
8677 2012-08-17 Richard Guenther <rguenther@suse.de>
8679 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
8680 (struct bitmap_head_def): GTY skip current field.
8682 2012-08-17 Steven Bosscher <steven@gcc.gnu.org>
8685 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
8686 (memref_free): Don't free the bitmaps individually here.
8687 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
8688 (analyze_memory_references): Likewise.
8689 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
8690 (tree_ssa_lim_finalize): Release it.
8691 * dse.c (dse_bitmap_obstack): New bitmap obstack.
8692 (dse_obstack): New obstack.
8693 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
8694 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
8695 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
8696 (record_store): Allocate regs_set on reg_obstack.
8697 (dse_step1): Allocate regs_live on reg_obstack.
8698 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
8700 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
8701 (dse_step3): Likewise.
8702 (dse_confluence_0): Likewise.
8703 (dse_confluence_n): Likewise.
8704 (dse_transfer_function): Likewise.
8705 (dse_step7): Destroy the new obstacks, and everything allocated on
8706 them, in one big sweep.
8707 (rest_of_handle_dse): Update.
8708 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
8709 (add_stack_var_conflict): Allocate bitmaps on it.
8710 (add_scope_conflicts_1): Likewise.
8711 (add_scope_conflicts): Likewise.
8712 (update_alias_info_with_stack_vars): Likewise.
8713 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
8714 Initialize the new bitmap obstack.
8715 (fini_vars_expansion): Release it.
8716 (estimated_stack_frame_size): Use init_vars_expansion to set things up
8717 and always clean up at the end.
8718 (expand_used_vars): Do the TREE_USED trickery here. Always call
8719 fini_vars_expansion.
8720 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
8721 arrays of bitmap_head to avoid one indirection per bitmap access.
8722 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
8723 make_live_on_entry): Update.
8724 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
8725 (liveness_bitmap_obstack): New bitmap obstack.
8726 (remove_unused_locals): Use it to allocate all bitmaps on. Update
8727 for livein/liveout changes in tree-ssa-live.h.
8728 (delete_tree_live_info): Release the bitmap obstack.
8729 (loe_visit_block, live_worklist, set_var_live_on_entry,
8730 calculate_live_on_exit, dump_live_info): Update.
8731 (calculate_live_ranges): Initialize the bitmap.
8732 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
8733 (new_temp_expr_table): Allocate bitmap on it.
8734 (make_dependent_on_partition, add_to_partition_kill_list,
8735 add_dependence, process_replaceable): Likewise.
8736 (find_replaceable_exprs): Initialize and release the new obstack here.
8737 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
8738 for out_of_date_transfer_functions on df_bitmap_obstack.
8739 (df_live_add_problem): Likewise.
8740 (df_chain_add_problem): Likewise.
8741 (df_word_lr_add_problem): Likewise.
8743 2012-08-17 Nick Clifton <nickc@redhat.com>
8745 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
8746 (branch_true): Likewise.
8747 (branch_false): Likewise.
8749 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
8751 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
8752 comparison and label.
8753 (branch_zero): Likewise.
8754 (branch_zero_inverted): Likewise.
8755 (branch_equality): Likewise.
8756 (branch_equality_inverted): Likewise.
8757 (extend-and-compare): Disable until reload issues can be resolved.
8758 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
8760 (iq2000_function_arg_advance): Remove CONST_CAST2.
8762 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
8765 2012-08-17 Georg-Johann Lay <avr@gjlay.de>
8767 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
8768 gen-avr-mmcu-texi.c.
8770 2012-08-17 Richard Earnshaw <rearnsha@arm.com>
8772 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
8773 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
8776 2012-08-17 Richard Guenther <rguenther@suse.de>
8778 * hash-table.h (class hash_table): Use a descriptor template
8779 argument instead of decomposed element type and support functions.
8780 (struct pointer_hash): New generic typed pointer-hash.
8781 (struct typed_free_remove, struct typed_noop_remove): Generic
8782 hash_table support pieces.
8783 * coverage.c (struct counts_entry): Add hash_table support members.
8784 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
8785 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
8786 SSA name by SSA_NAME_VAR hash.
8787 (coalesce_ssa_name): Use it.
8788 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
8789 (expression_to_id): Adjust.
8790 (struct expr_pred_trans_d): Add hash_table support.
8791 (phi_translate_table): Adjust.
8792 (phi_trans_lookup): Likewise.
8793 (phi_trans_add): Likewise.
8794 (do_regular_insertion): Likewise.
8795 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
8796 (same_succ_htab): Adjust.
8797 (find_same_succ_bb): Likewise.
8798 (find_same_succ): Likewise.
8799 (update_worklist): Likewise.
8800 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
8802 (redirection_data): Adjust.
8804 2012-08-17 Richard Guenther <rguenther@suse.de>
8806 * params.def (integer-share-limit): Decrease from 256 to 251,
8809 2012-08-17 Richard Guenther <rguenther@suse.de>
8811 * tree-sra.c (modify_function): Free redirect_callers vector.
8812 * ipa-split.c (split_function): Free args_to_pass vector.
8813 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
8814 body_cost_vec properly.
8815 (vect_enhance_data_refs_alignment): Likewise.
8816 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
8818 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
8819 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
8820 (vect_analyze_slp_instance): Free everything.
8821 (destroy_bb_vec_info): Free the SLP instances.
8823 2012-08-17 Iain Sandoe <iain@codesourcery.com>
8825 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
8828 2012-08-17 Jakub Jelinek <jakub@redhat.com>
8830 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
8832 2012-08-16 Sandra Loosemore <sandra@codesourcery.com>
8834 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
8835 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
8836 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
8837 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
8838 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
8840 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
8843 * config/sh/sh.md (addc): Add commutative modifier.
8844 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
8846 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
8849 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
8850 potential T_REG clobber. Convert zero extending split to
8853 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
8856 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
8857 in a T_REG clobber. Correct comment.
8858 (ashlsi3_n): Correct comment.
8860 2012-08-16 Hans-Peter Nilsson <hp@axis.com>
8863 * optabs.c (expand_atomic_fetch_op): Save and restore code when
8864 retrying after failed attempt.
8866 2012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
8868 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
8869 additional argument.
8870 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
8871 additional argument curr_insn.
8872 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
8873 register first, depending on their defintion distances.
8874 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
8876 (find_nearest_reg-def): New function. Find register with
8879 2012-08-16 Walter Lee <walt@tilera.com>
8881 * config.gcc (tilegx-*-linux*): Add feedback.h.
8882 (tilepro-*-linux*): Likewise.
8883 * config/tilegx/feedback.h: New file.
8884 * config/tilepro/feedback.h: New file.
8886 2012-08-16 Diego Novillo <dnovillo@google.com>
8891 * double-int.h: Move including of gmp.h ...
8892 * system.h: ... here.
8893 * realmpfr.h: Do not include gmp.h.
8894 * tree-ssa-loop-niter.c: Do not include gmp.h.
8896 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
8898 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
8900 2012-08-16 Richard Guenther <rguenther@suse.de>
8903 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
8905 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
8906 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
8907 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
8908 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
8909 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
8910 (tree_ssa_lim_finalize): Free all mem_refs.
8911 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
8912 scc when bailing out.
8913 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
8914 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
8915 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
8916 FOR_EACH_LOOP_BREAK.
8918 2012-08-16 Diego Novillo <dnovillo@google.com>
8921 * double-int.h: Move including of gmp.h ...
8922 * system.h: ... here.
8923 * realmpfr.h: Do not include gmp.h.
8924 * tree-ssa-loop-niter.c: Do not include gmp.h.
8926 2012-08-16 Steven Bosscher <steven@gcc.gnu.org>
8929 * tree-flow.h (compute_global_livein): Remove prototype.
8930 * tree-into-ssa.c (compute_global_livein): Remove function.
8931 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
8932 (find_sibling_superloop): New function.
8933 (compute_live_loop_exits): New function.
8934 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
8935 inserting a PHI in a block that is not a loop exit for VAR.
8936 Add dumping if TDF_DETAILS.
8937 (add_exit_phis_var): Rewrite.
8938 (add_exit_phis): Update.
8939 (get_loops_exits): Rewrite to return an array of per-loop exits
8940 rather than one bitmap with all loop exits.
8941 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
8942 (rewrite_into_loop_closed_ssa): Update.
8944 2012-08-16 Nick Clifton <nickc@redhat.com>
8946 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
8947 before passing it to ASM_OUTPUT_LIMITED_STRING.
8949 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
8951 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
8952 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
8953 for reload_type enums.
8954 (DEF_BUILTIN): Cast the icode to enum insn_code.
8956 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
8958 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
8960 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
8962 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
8964 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8965 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
8966 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8967 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8968 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8969 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8970 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
8971 * config/rs6000/darwin.md (whole file): Adjust to single
8973 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8974 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
8975 * config/rs6000/dfp.md: (whole file): Adjust to single
8977 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8978 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
8979 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
8980 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
8981 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
8982 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
8983 * config/rs6000/rs6000-tables.opt: Regenerate.
8984 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
8985 (num_insns_constant_wide): Adjust comments.
8986 (whole file): Adjust to single assembler syntax.
8987 (output_cbranch): Adjust comment.
8988 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
8989 * config/rs6000/rs6000.md: (whole file): Adjust to single
8991 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
8992 (mold-mnemonics): Delete.
8993 * config/rs6000/spe.md: (whole file): Adjust to single
8995 * config/rs6000/sync.md: (whole file): Adjust to single
8997 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8998 (ASM_OUTPUT_REG_PUSH): Adjust.
8999 (ASM_OUTPUT_REG_POP): Adjust.
9000 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
9001 * config/rs6000/vsx.md: (whole file): Adjust to single
9003 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
9004 * doc/invoke.texi: Adjust documentation to reflect the
9005 removal of -mnew-mnemonics and -mold-mnemonics.
9007 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
9009 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
9010 Delete handling for -mno-powerpc and -mpowerpc.
9011 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
9012 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
9013 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
9014 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
9015 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
9016 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
9017 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
9018 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
9019 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
9020 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
9021 for -mcpu=common and -mpowerpc.
9022 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
9023 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
9024 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
9025 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
9026 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
9027 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
9028 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
9029 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
9030 (rs6000_cpu_cpp_builtins): Adjust.
9031 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
9032 (rs6000_builtin_mask_calculate): Adjust.
9033 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
9034 (rs6000_init_libfuncs): Ditto.
9035 (rs6000_output_function_prologue): Ditto.
9036 (rs6000_opt_masks): Delete MASK_POWERPC.
9037 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
9038 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
9039 (RS6000_BTM_POWERPC): Delete.
9040 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
9041 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
9042 TARGET_POWERPC always on.
9043 (extendqihi2 patterns): Similar.
9044 (various unnamed subtract patterns): Similar.
9045 (bswaphi2 patterns): Similar.
9046 (divmodsi4): Similar.
9047 (udiv<GPR:mode>3): Similar.
9048 (div<GPR:mode>3 patterns): Similar.
9049 (udivmodsi4): Similar.
9052 (divss_call): Delete.
9053 (divus_call): Delete.
9054 (quoss_call): Delete.
9055 (quous_call): Delete.
9056 (insvsi patterns): Adjust.
9057 (addsf3 patterns): Adjust.
9058 (subsf3 patterns): Adjust.
9059 (mulsf3 patterns): Adjust.
9060 (divsf3 patterns): Adjust.
9061 (*fmasf4_fpr): Adjust.
9062 (*fmssf4_fpr): Adjust.
9063 (*nfmasf4_fpr): Adjust.
9064 (*nfmssf4_fpr): Adjust.
9065 (*floatunssidf2_internal): Adjust.
9066 (fix_trunc<SFDF:mode>si2_internal): Adjust.
9067 (fctiwz_<SFDF:mode>): Adjust.
9068 (mulsidi3 patterns): Adjust.
9069 (smulsi3_highpart patterns): Adjust.
9070 (umulsi3_highpart patterns): Adjust.
9071 (fix_trunctfsi2 patterns): Adjust.
9073 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
9074 (mno-powerpc): Delete.
9075 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
9076 (store_conditional<ATOMIC:mode>): Adjust.
9077 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
9078 (atomic_exchange<ATOMIC:mode>): Adjust.
9079 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
9080 (atomic_nand<ATOMIC:mode>): Adjust.
9081 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
9082 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
9083 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
9084 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
9085 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
9086 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
9087 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
9088 * doc/invoke.texi: Adjust documentation.
9090 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
9092 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
9094 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
9096 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
9097 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
9098 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
9099 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
9101 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
9104 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
9106 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
9108 2012-08-15 Sandra Loosemore <sandra@codesourcery.com>
9109 Maxim Kuvyrkov <maxim@codesourcery.com>
9110 Julian Brown <julian@codesourcery.com>
9111 MIPS Technologies, Inc.
9113 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
9114 (dspalusat): Add insn types.
9115 * config/mips/mips-dsp.md (add<DSPV:mode>3)
9116 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
9117 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
9118 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
9119 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
9120 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
9121 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
9122 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
9123 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
9124 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
9125 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
9126 (mips_repl_qb, mips_repl_ph)
9127 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
9128 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
9129 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
9130 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
9131 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
9132 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
9133 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
9134 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
9136 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
9138 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
9140 (mips_shilo, mips_mthlip): Set type to accmod.
9141 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
9142 (mips_adduh_r_qb): Set type to dspalusat.
9143 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
9144 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
9145 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
9146 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
9147 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
9148 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
9149 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
9150 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
9151 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
9152 dspmac. Set accum_in attribute.
9153 (mips_subu_s_ph): Set type to dspalusat.
9154 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
9155 Set accum_in attribute.
9156 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
9157 * config/mips/mips.c (dspalu_bypass_table): New.
9158 (mips_dspalu_bypass_p): New.
9159 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
9160 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
9161 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
9162 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
9163 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
9164 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
9166 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
9167 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
9169 2012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9171 * config/spu/spu.c: Include "cfgloop.h".
9172 (spu_machine_dependent_reorg): Call loop_optimizer_init and
9173 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
9174 Directly compare loop_father values where appropriate.
9175 * config/spu/t-spu-elf (spu.o): Update dependencies.
9177 2012-08-15 H.J. Lu <hongjiu.lu@intel.com>
9179 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
9181 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9183 PR tree-optimization/54245
9184 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
9185 (legal_cast_p): Split out logic to legal_cast_p_1.
9186 (analyze_increments): Avoid introducing multiplies in smaller types.
9188 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9190 PR tree-optimization/54240
9191 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
9192 existence of conditional move with given mode.
9194 2012-08-15 Richard Guenther <rguenther@suse.de>
9196 * double-int.h (double_int::from_unsigned): Rename to ...
9197 (double_int::from_uhwi): ... this.
9198 (double_int::from_signed): Rename to ...
9199 (double_int::from_shwi): ... this.
9200 (double_int::to_signed): Rename to ...
9201 (double_int::to_shwi): ... this.
9202 (double_int::to_unsigned): Rename to ...
9203 (double_int::to_uhwi): ... this.
9204 (double_int::fits_unsigned): Rename to ...
9205 (double_int::fits_uhwi): ... this.
9206 (double_int::fits_signed): Rename to ...
9207 (double_int::fits_shwi): ... this.
9208 (double_int::fits): Rename to ...
9209 (double_int::fits_hwi): ... this.
9210 * double-int.c: Likewise.
9212 2012-08-15 Steven Bosscher <steven@gcc.gnu.org>
9214 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
9215 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
9216 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
9217 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
9218 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
9219 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
9220 * timevar.c (timevar_print): Make printing width of timevar names
9221 more flexible, but enforce maximum length.
9222 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
9223 (pass_ipa_inline): Use TV_IPA_INLINING.
9224 * ipa-inline-analysis.c (pass_inline_parameters): Use
9225 TV_INLINE_HEURISTICS.
9226 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
9227 (pass_tree_loop_done): Likewise.
9228 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
9229 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
9230 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
9232 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9234 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
9235 (neon_vabal<mode> VDQIW): Likewise.
9237 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9240 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
9241 mark as predicable. Adjust asm template.
9242 (vec_setv2di_internal): Likewise.
9243 (vec_extract<mode> VD, VQ): Likewise.
9244 (vec_extractv2di): Likewise.
9245 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
9246 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
9247 (neon_vdup_n<mode> VX, V32): Likewise.
9248 (neon_vdup_nv2di): Likewise.
9250 2012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
9252 * config/mips/mips.md (define_attr accum_in): New instruction
9253 attribute. Set it for imadd and fmadd patterns.
9254 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
9255 accumulator register.
9257 2012-08-14 Diego Novillo <dnovillo@google.com>
9259 Merge from cxx-conversion branch. Configury.
9261 * configure.ac (CXX_FOR_BUILD): Define and substitute.
9262 (BUILD_CXXFLAGS): Define.
9263 Remove all handlers of ENABLE_BUILD_WITH_CXX.
9264 Force all build to be with C++.
9265 * Makefile.in (BUILD_CXXFLAGS): Use it.
9266 Remove all handlers of ENABLE_BUILD_WITH_CXX.
9267 * configure: Regenerate.
9268 * config.in: Regenerate.
9269 * doc/install.texi: Remove documentation for --enable-build-with-cxx
9270 and --enable-build-poststage1-with-cxx.
9272 2012-08-14 Diego Novillo <dnovillo@google.com>
9274 Merge from cxx-conversion branch. Re-implement VEC in C++.
9276 * vec.c (vec_heap_free): Convert into a template function.
9277 (vec_gc_o_reserve_1): Make extern.
9278 (vec_gc_p_reserve): Remove.
9279 (vec_gc_p_reserve_exact): Remove.
9280 (vec_gc_o_reserve): Remove.
9281 (vec_gc_o_reserve_exact): Remove.
9282 (vec_heap_o_reserve_1): Make extern.
9283 (vec_heap_p_reserve): Remove.
9284 (vec_heap_p_reserve_exact): Remove.
9285 (vec_heap_o_reserve): Remove.
9286 (vec_heap_o_reserve_exact): Remove.
9287 (vec_stack_p_reserve): Remove.
9288 (vec_stack_p_reserve_exact): Remove.
9289 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
9290 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
9291 (VEC): Define to vec_t<T>.
9292 (vec_allocation_t): Define.
9293 (struct vec_prefix): Move earlier in the file.
9294 (vec_t<T>): New template.
9295 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
9296 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
9297 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
9298 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
9299 (DEF_VEC_A): Provide template instantiations for
9300 GC/PCH markers that do not traverse the vector.
9301 (vec_stack_p_reserve): Remove.
9302 (vec_stack_p_reserve_exact): Remove.
9303 (vec_stack_p_reserve_exact_1): Remove.
9304 (vec_stack_o_reserve): Remove.
9305 (vec_stack_o_reserve_exact): Remove.
9306 (vec_stack_free): Re-write as a template function.
9307 (vec_reserve): New template function.
9308 (vec_reserve_exact): New template function.
9309 (vec_heap_free): New template function if GATHER_STATISTICS is
9310 defined. Otherwise, macro that expands to free().
9311 (VEC_length_1): New template function.
9312 (VEC_length): Call it.
9313 (VEC_empty_1): New template function.
9314 (VEC_empty): Call it.
9315 (VEC_address_1): New template function.
9316 (VEC_address): Call it.
9317 (VEC_last_1): New template function.
9318 (VEC_last): Call it. Change return type to T&.
9319 Change all users that used VEC_Os.
9320 (VEC_index_1): New template function.
9321 (VEC_index): Call it. Return a T& instead of a T*.
9322 Update all callers that were using VEC_O before.
9323 (VEC_iterate_1): New template function.
9324 (VEC_iterate): Call it.
9325 (VEC_embedded_size_1): New template function.
9326 (VEC_embedded_size): Call it.
9327 (VEC_embedded_init_1): New template function.
9328 (VEC_embedded_init): Call it.
9329 (VEC_alloc_1): New template function.
9330 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
9332 (VEC_free_1): New template function.
9333 (VEC_free): Call it.
9334 (VEC_copy_1): New template function.
9335 (VEC_copy): Call it.
9336 (VEC_space_1): New template function
9337 (VEC_space): Call it.
9338 (VEC_reserve_1): New template function.
9339 (VEC_reserve): Call it.
9340 (VEC_reserve_exact_1): New template function.
9341 (VEC_reserve_exact): Call it.
9342 (VEC_splice_1): New template function.
9343 (VEC_splice): Call it.
9344 (VEC_safe_splice_1): New template function.
9345 (VEC_safe_splice): Call it.
9346 (VEC_quick_push_1): New template function. Create two overloads, one
9347 accepting T, the other accepting T *. Update all callers
9348 where T and T * are ambiguous.
9349 (VEC_quick_push): Call it.
9350 (VEC_safe_push_1): New template function. Create two overloads, one
9351 accepting T, the other accepting T *. Update all callers
9352 where T and T * are ambiguous.
9353 (VEC_safe_push): Call it.
9354 (VEC_pop_1): New template function.
9356 (VEC_truncate_1): New template function.
9357 (VEC_truncate): Call it.
9358 (VEC_safe_grow_1): New template function.
9359 (VEC_safe_grow): Call it.
9360 (VEC_safe_grow_cleared_1): New template function.
9361 (VEC_safe_grow_cleared): Call it.
9362 (VEC_replace_1): New template function.
9363 (VEC_replace): Call it. Always accept T instead of T*.
9364 Update all callers that used VEC_Os.
9365 (VEC_quick_insert_1): New template function.
9366 (VEC_quick_insert): Call it.
9367 (VEC_safe_insert_1): New template function.
9368 (VEC_safe_insert): Call it.
9369 (VEC_ordered_remove_1): New template function.
9370 (VEC_ordered_remove): Call it.
9371 (VEC_unordered_remove_1): New template function.
9372 (VEC_unordered_remove): Call it.
9373 (VEC_block_remove_1): New template function.
9374 (VEC_block_remove): Call it.
9375 (VEC_lower_bound_1): New template function.
9376 (VEC_lower_bound): Call it.
9378 (DEF_VEC_FUNC_P): Remove.
9379 (DEF_VEC_ALLOC_FUNC_P): Remove.
9380 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
9381 (DEF_VEC_FUNC_O): Remove.
9382 (DEF_VEC_ALLOC_FUNC_O): Remove.
9383 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
9384 (DEF_VEC_ALLOC_FUNC_I): Remove.
9385 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
9386 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
9387 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
9388 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
9389 (vec_reserve_exact): New template function.
9391 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
9392 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
9393 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
9394 (def_vec_alloc): Remove. Update all callers.
9395 * gengtype.c (filter_type_name): New.
9396 (output_mangled_typename): Call it.
9397 (write_func_for_structure): Likewise.
9398 (write_types): Likewise.
9399 (write_root): Likewise.
9400 (write_typed_alloc_def): Likewise.
9401 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
9402 (note_def_vec_alloc): Remove.
9403 * gengtype.h (note_def_vec_alloc): Remove.
9404 (DEFVEC_ALLOC): Remove token code.
9406 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
9407 inside the insn traversal loop.
9408 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
9409 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
9410 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
9411 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
9413 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
9414 VEC_* for vectors of non-pointers.
9415 * config/c6x/c6x.c (try_rename_operands): Likewise.
9416 (reshuffle_units): Likewise.
9417 * config/mips/mips.c (mips_multi_start): Likewise.
9418 (mips_multi_add): Likewise.
9419 (mips_multi_copy_insn): Likewise.
9420 (mips_multi_set_operand): Likewise.
9421 * hw-doloop.c (discover_loop): Likewise.
9422 (discover_loops): Likewise.
9423 (reorg_loops): Likewise.
9425 2012-08-14 Diego Novillo <dnovillo@google.com>
9427 Merge from cxx-conversion branch. C++ support in gengtype.
9429 * coretypes.h (gt_pointer_operator): Move from ...
9431 * doc/gty.texi: Document support for C++ templates and
9432 user-provided markers.
9433 * gengtype-lex.l: Update copyright year.
9434 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
9435 * gengtype-parse.c: Update copyright year.
9436 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
9437 (require_template_declaration): New.
9438 (typedef_name): Call it.
9439 (type): Replace IS_UNION with KIND. Replace all users.
9440 (def_vec): Remove. Update all users.
9441 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
9442 (write_state_user_struct_type): New.
9443 (write_state_type): Call it.
9444 (read_state_user_struct_type): New.
9445 (read_state_type): Call it.
9446 * gengtype.c: Update copyright year.
9447 (dump_pair): Move declaration to the top.
9448 (dump_type): Likewise.
9449 (dump_type_list): Likewise.
9450 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
9451 (create_user_defined_type): New.
9452 (resolve_typedef): Call it.
9453 (new_structure): Replace argument ISUNION with KIND.
9454 Change users to refer to KIND directly.
9456 (find_structure): Likewise.
9457 (set_gc_used_type): Handle TYPE_USER_STRUCT.
9458 (create_file): Update HDR to include new copyright year.
9459 (struct walk_type_data): Add field IN_PTR_FIELD.
9460 (output_mangled_typename): Handle TYPE_USER_STRUCT.
9461 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
9462 Clear it afterwards.
9463 Handle TYPE_USER_STRUCT.
9464 (write_types_process_field): Handle TYPE_USER_STRUCT.
9465 (get_type_specifier): Move earlier in the file.
9466 (write_type_decl): New.
9467 (write_marker_function_name): New.
9468 (write_user_func_for_structure_ptr): New.
9469 (write_user_func_for_structure_body): New.
9470 (write_user_marking_functions): New.
9471 (write_func_for_structure): Call write_marker_function_name
9472 and write_type_decl.
9473 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
9475 Call write_user_marking_functions on TYPE_USER_STRUCTs.
9476 (write_types_local_user_process_field): New.
9477 (write_pch_user_walking_for_structure_body): New.
9478 (write_pch_user_walking_functions): New.
9479 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
9480 (write_local_func_for_structure): Do not call walk_type for
9481 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
9482 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
9483 (write_root): Handle TYPE_USER_STRUCT.
9484 (vec_prefix_type): Remove. Update all users.
9485 (note_def_vec): Remove. Update all users.
9486 (dump_typekind): Handle TYPE_USER_STRUCT.
9487 (dump_type): Initialize SEEN_TYPES, if needed.
9488 Handle TYPE_USER_STRUCT.
9489 (dump_everything): Do not initialize SEEN_TYPES.
9490 * gengtype.h: Update copyright year.
9491 (enum typekind): Add TYPE_USER_STRUCT.
9492 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
9493 Convert into function.
9494 Add an overload taking const_type_p.
9496 (new_structure): Change second field to type enum typekind.
9498 (find_structure): Likewise.
9499 (note_def_vec): Remove.
9500 (DEFVEC_OP): Remove.
9502 * ggc-page.c (gt_ggc_mx): Add entry points for marking
9503 'const char *&', 'unsigned char *&' and 'unsigned char&'.
9504 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
9505 'const char *&' and 'unsigned char *&'.
9506 * stringpool.c (gt_pch_nx): Add entry points for marking
9507 'const char *&', 'unsigned char *&' and 'unsigned char&'.
9508 Add an entry point for the overload taking arguments 'unsigned char
9509 *', 'gt_pointer_operator' and 'void *'.
9510 * vec.h (struct vec_prefix): Remove GTY marker.
9511 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
9512 (gt_ggc_mx (vec_t<T> *)): New template function.
9513 (gt_pch_nx (vec_t<T> *)): New template function.
9514 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
9516 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
9519 * basic-block.h (struct edge_def): Mark GTY((user)).
9520 Remove all GTY markers from fields.
9521 (gt_ggc_mx): Declare.
9522 (gt_pch_nx): Declare.
9523 * tree-cfg.c (gt_ggc_mx): New.
9526 * gengtype-lex.l (USER_GTY): Add pattern for "user".
9527 * gengtype-parse.c (option): Handle USER_GTY.
9530 If the keyword 'user' is used, do not walk the fields
9532 * gengtype.h (USER_GTY): Add.
9533 * doc/gty.texi: Update.
9535 2012-08-14 Lawrence Crowl <crowl@google.com>
9537 Merge cxx-conversion branch. Implement C++ hash table.
9539 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
9540 * hash-table.c: Likewise.
9541 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
9542 (static htab_t same_succ_htab): Change type to hash_table;
9543 move specification of helper functions from create call to declaration.
9544 Change users to invoke member functions.
9545 (same_succ_print_traverse): Make extern ssa_.... Change callers.
9546 Remove void* casting.
9547 (same_succ_hash): Likewise.
9548 (same_succ_equal): Likewise.
9549 (same_succ_delete): Likewise.
9550 * tree-ssa-threadupdate.c: Include hash-table.h.
9551 (struct local_info): Rename to ssa_local_info_t to avoid overloading
9552 the type name local_info with the variable name local_info.
9553 (static htab_t redirection_data): Change type to hash_table.
9554 Move specification of helper functions from create call to declaration.
9555 Change users to invoke member functions.
9556 (redirection_data_hash): Make extern ssa_.... Change callers.
9557 Remove void* casting.
9558 (redirection_data_eq): Likewise.
9559 (fix_duplicate_block_edges): Likewise.
9560 (create_duplicates): Likewise.
9561 (fixup_template_block): Likewise.
9562 (redirect_edges): Likewise.
9563 (lookup_redirection_data): Change types associated with the hash table
9564 from void* to their actual type. Remove unnecessary casts.
9565 * tree-ssa-ccp.c: Include hash-table.h.
9566 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
9567 of htab_t with gimple_htab. Change users to invoke member functions.
9568 Move specification of helper functions from create call to declaration.
9569 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
9570 (hash_ssa_name_by_var): Make extern. Remove void* casting.
9571 (eq_ssa_name_by_var): Likewise.
9572 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
9573 to hash_table. Change users to invoke member functions.
9574 Move specification of helper functions from create call to declaration.
9575 * coverage.c: Include hash-table.h instead of hashtab.h.
9576 (static htab_t counts_hash): Change type to hash_table;
9577 move specification of helper functions from create call to declaration.
9578 Change users to invoke member functions.
9579 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
9580 of htab_... Remove void* casting.
9581 (htab_counts_entry_eq): Likewise.
9582 (htab_counts_entry_del): Likewise.
9583 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
9584 (static htab_t expression_to_id): Change type to hash_table.
9585 Move specification of helper functions from create call to declaration.
9586 Change users to invoke member functions.
9587 (static htab_t phi_translate_table): Likewise.
9588 (pre_expr_eq): Make extern ssa_.... Change callers.
9589 Remove void* casting.
9590 (pre_expr_hash): Likewise.
9591 (expr_pred_trans_hash): Likewise.
9592 (expr_pred_trans_eq): Likewise.
9593 (alloc_expression_id): Change types associated with the hash table
9594 from void* to their actual type. Remove unnecessary casts.
9595 (lookup_expression_id): Likewise.
9596 (phi_trans_lookup): Likewise.
9597 (phi_trans_add): Likewise.
9598 * stringpool.c: Rename uses of libcpp typedef hash_table to
9600 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
9601 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
9603 2012-08-14 Lawrence Crowl <crowl@google.com>
9605 Merge from cxx-conversion branch. Re-write double_int in C++.
9608 (typedef double_int): Change to struct (POD).
9609 (double_int::make): New overloads for int to double-int conversion.
9610 (double_int::mask): New.
9611 (double_int::max_value): New.
9612 (double_int::min_value): New.
9613 (double_int::operator ++): New.
9614 (double_int::operator --): New.
9615 (double_int::operator *=): New.
9616 (double_int::operator +=): New.
9617 (double_int::operator -=): New.
9618 (double_int::to_signed): New.
9619 (double_int::to_unsigned): New.
9620 (double_int::fits_unsigned): New.
9621 (double_int::fits_signed): New.
9622 (double_int::fits): New.
9623 (double_int::trailing_zeros): New.
9624 (double_int::popcount): New.
9625 (double_int::multiple_of): New.
9626 (double_int::set_bit): New.
9627 (double_int::mul_with_sign): New.
9628 (double_int::operator * (binary)): New.
9629 (double_int::operator + (binary)): New.
9630 (double_int::operator - (binary)): New.
9631 (double_int::operator - (unary)): New.
9632 (double_int::operator ~ (unary)): New.
9633 (double_int::operator & (binary)): New.
9634 (double_int::operator | (binary)): New.
9635 (double_int::operator ^ (binary)): New.
9636 (double_int::and_not): New.
9637 (double_int::lshift): New.
9638 (double_int::rshift): New.
9639 (double_int::alshift): New.
9640 (double_int::arshift): New.
9641 (double_int::llshift): New.
9642 (double_int::lrshift): New.
9643 (double_int::lrotate): New.
9644 (double_int::rrotate): New.
9645 (double_int::div): New.
9646 (double_int::sdiv): New.
9647 (double_int::udiv): New.
9648 (double_int::mod): New.
9649 (double_int::smod): New.
9650 (double_int::umod): New.
9651 (double_int::divmod): New.
9652 (double_int::sdivmod): New.
9653 (double_int::udivmod): New.
9654 (double_int::ext): New.
9655 (double_int::zext): New.
9656 (double_int::sext): New.
9657 (double_int::is_zero): New.
9658 (double_int::is_one): New.
9659 (double_int::is_minus_one): New.
9660 (double_int::is_negative): New.
9661 (double_int::cmp): New.
9662 (double_int::ucmp): New.
9663 (double_int::scmp): New.
9664 (double_int::ult): New.
9665 (double_int::ugt): New.
9666 (double_int::slt): New.
9667 (double_int::sgt): New.
9668 (double_int::max): New.
9669 (double_int::smax): New.
9670 (double_int::umax): New.
9671 (double_int::min): New.
9672 (double_int::smin): New.
9673 (double_int::umin): New.
9674 (double_int::operator ==): New.
9675 (double_int::operator !=): New.
9676 (shwi_to_double_int): Change implementation to use member function.
9677 (double_int_minus_one): Likewise.
9678 (double_int_zero): Likewise.
9679 (double_int_one): Likewise.
9680 (double_int_two): Likewise.
9681 (double_int_ten): Likewise.
9682 (uhwi_to_double_int): Likewise.
9683 (double_int_to_shwi): Likewise.
9684 (double_int_to_uhwi): Likewise.
9685 (double_int_fits_in_uhwi_p): Likewise.
9686 (double_int_fits_in_shwi_p): Likewise.
9687 (double_int_fits_in_hwi_p): Likewise.
9688 (double_int_mul): Likewise.
9689 (double_int_mul_with_sign): Likewise.
9690 (double_int_add): Likewise.
9691 (double_int_sub): Likewise.
9692 (double_int_neg): Likewise.
9693 (double_int_div): Likewise.
9694 (double_int_sdiv): Likewise.
9695 (double_int_udiv): Likewise.
9696 (double_int_mod): Likewise.
9697 (double_int_smod): Likewise.
9698 (double_int_umod): Likewise.
9699 (double_int_divmod): Likewise.
9700 (double_int_sdivmod): Likewise.
9701 (double_int_udivmod): Likewise.
9702 (double_int_multiple_of): Likewise.
9703 (double_int_setbit): Likewise.
9704 (double_int_ctz): Likewise.
9705 (double_int_not): Likewise.
9706 (double_int_ior): Likewise.
9707 (double_int_and): Likewise.
9708 (double_int_and_not): Likewise.
9709 (double_int_xor): Likewise.
9710 (double_int_lshift): Likewise.
9711 (double_int_rshift): Likewise.
9712 (double_int_lrotate): Likewise.
9713 (double_int_rrotate): Likewise.
9714 (double_int_cmp): Likewise.
9715 (double_int_scmp): Likewise.
9716 (double_int_ucmp): Likewise.
9717 (double_int_max): Likewise.
9718 (double_int_smax): Likewise.
9719 (double_int_umax): Likewise.
9720 (double_int_min): Likewise.
9721 (double_int_smin): Likewise.
9722 (double_int_umin): Likewise.
9723 (double_int_ext): Likewise.
9724 (double_int_sext): Likewise.
9725 (double_int_zext): Likewise.
9726 (double_int_mask): Likewise.
9727 (double_int_max_value): Likewise.
9728 (double_int_min_value): Likewise.
9729 (double_int_zero_p): Likewise.
9730 (double_int_one_p): Likewise.
9731 (double_int_minus_one_p): Likewise.
9732 (double_int_equal_p): Likewise.
9733 (double_int_popcount): Likewise.
9735 (double_int_mask): Reuse implementation for double_int::mask.
9736 (double_int_max_value): Likewise.
9737 (double_int_min_value): Likewise.
9738 (double_int_ext): Likewise.
9739 (double_int_zext): Likewise.
9740 (double_int_sext): Likewise.
9741 (double_int_mul_with_sign): Likewise.
9742 (double_int_divmod): Likewise.
9743 (double_int_sdivmod): Likewise.
9744 (double_int_udivmod): Likewise.
9745 (double_int_div): Likewise.
9746 (double_int_sdiv): Likewise.
9747 (double_int_udiv): Likewise.
9748 (double_int_mod): Likewise.
9749 (double_int_smod): Likewise.
9750 (double_int_umod): Likewise.
9751 (double_int_multiple_of): Likewise.
9752 (double_int_lshift): Likewise.
9753 (double_int_rshift): Likewise.
9754 (double_int_lrotate): Likewise.
9755 (double_int_rrotate): Likewise.
9756 (double_int_cmp): Likewise.
9757 (double_int_ucmp): Likewise.
9758 (double_int_scmp): Likewise.
9759 (double_int_max): Likewise.
9760 (double_int_smax): Likewise.
9761 (double_int_umax): Likewise.
9762 (double_int_min): Likewise.
9763 (double_int_smin): Likewise.
9764 (double_int_umin): Likewise.
9765 (double_int_min): Likewise.
9766 (double_int_min): Likewise.
9767 (double_int_min): Likewise.
9768 (double_int_min): Likewise.
9769 (double_int_min): Likewise.
9770 (double_int_min): Likewise.
9771 (double_int::alshift): New.
9772 (double_int::arshift): New.
9773 (double_int::llshift): New.
9774 (double_int::lrshift): New.
9775 (double_int::ult): New.
9776 (double_int::ugt): New.
9777 (double_int::slt): New.
9778 (double_int::sgt): New.
9779 (double_int_setbit): Reuse implementation for double_int::set_bit,
9780 which avoids a name conflict with a macro.
9781 (double_int_double_int_ctz): Reuse implementation for
9782 double_int::trailing_zeros.
9783 (double_int_fits_in_shwi_p): Reuse implementation for
9784 double_int::fits_signed.
9785 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
9786 (double_int_mul): Reuse implementation for binary
9787 double_int::operator *.
9788 (double_int_add): Likewise.
9789 (double_int_sub): Likewise.
9790 (double_int_neg): Reuse implementation for unary
9791 double_int::operator -.
9792 (double_int_max_value): Likewise.
9793 * fixed-value.c: Change to use member functions introduced above.
9795 2012-08-14 Lawrence Crowl <crowl@google.com>
9797 Merge cxx-conversion branch. Support tree macro calling from gdb.
9799 * tree.h (tree_check): New.
9800 (TREE_CHECK): Use inline function above instead of __extension__.
9801 (tree_not_check): New.
9802 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
9804 (TREE_CHECK2): Use inline function above instead of __extension__.
9805 (tree_not_check2): New.
9806 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
9808 (TREE_CHECK3): Use inline function above instead of __extension__.
9809 (tree_not_check3): New.
9810 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
9812 (TREE_CHECK4): Use inline function above instead of __extension__.
9813 (tree_not_check4): New.
9814 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
9816 (TREE_CHECK5): Use inline function above instead of __extension__.
9817 (tree_not_check5): New.
9818 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
9819 (contains_struct_check): New.
9820 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
9822 (tree_class_check): New.
9823 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
9824 (tree_range_check): New.
9825 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
9826 (omp_clause_subcode_check): New.
9827 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
9829 (omp_clause_range_check): New.
9830 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
9833 (EXPR_CHECK): Use inline function above instead of __extension__.
9834 (non_type_check): New.
9835 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
9836 (tree_vec_elt_check): New.
9837 (TREE_VEC_ELT_CHECK): Use inline function above instead of
9839 (omp_clause_elt_check): New.
9840 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
9842 (tree_operand_check): New.
9843 (TREE_OPERAND_CHECK): Use inline function above instead of
9845 (tree_operand_check_code): New.
9846 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
9848 (TREE_CHAIN): Simplify implementation.
9849 (TREE_TYPE): Simplify implementation.
9850 (tree_operand_length): Move for compilation dependences.
9851 * gdbinit.in: (macro define __FILE__): New.
9852 (macro define __LINE__): New.
9853 (skip "tree.h"): New.
9855 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
9858 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
9859 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
9860 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
9862 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
9865 * config/sh/constraints.md (Sra): New constraint.
9866 * config/sh/predicates.md (simple_mem_operand,
9867 displacement_mem_operand, zero_extend_movu_operand): New predicates.
9868 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
9869 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
9870 *zero_extendhisi2_disp_mem): Add new insns and two new related
9873 2012-08-14 Steven Bosscher <steven@gcc.gnu.org>
9875 * graphite-scop-detection.c (create_sese_edges): Compute dominance
9876 info before trying to fix loop structure.
9877 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
9878 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
9879 * cfgloop.c (verify_loop_structure): Verify loop fathers.
9881 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
9882 (dom_convert_dir_to_idx, compute_dom_fast_query,
9883 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
9884 redirect_immediate_dominators, nearest_common_dominator,
9885 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
9886 iterate_fix_dominators, add_to_dominance_info,
9887 delete_from_dominance_info): Likewise.
9889 2012-08-14 Richard Guenther <rguenther@suse.de>
9891 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
9892 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
9893 * gimple-streamer-out.c (output_bb): Likewise.
9894 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
9895 (rewrite_reductions_out_of_ssa): Likewise.
9896 (rewrite_commutative_reductions_out_of_ss): Likewise.
9897 * ipa-split.c (verify_non_ssa_vars): Likewise.
9898 (consider_split): Likewise.
9899 (visit_bb): Likewise.
9900 (split_function): Likewise.
9901 * lto-streamer-out.c (output_ssa_names): Likewise.
9902 * sese.c (rename_uses): Likewise.
9903 * tree-cfg.c (replace_uses_by): Likewise.
9904 (gimple_merge_blocks): Likewise.
9905 (gimple_cfg2dot): Likewise.
9906 (verify_gimple_phi): Likewise.
9907 (replace_ssa_name): Likewise.
9908 (move_block_to_fn): Likewise.
9909 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
9910 * tree-if-conv.c (if_convertible_phi_p): Likewise.
9911 (predicate_scalar_phi): Likewise.
9912 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
9913 (copy_phis_for_bb): Likewise.
9914 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
9915 (destroy_loop): Likewise.
9916 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
9917 (insert_backedge_copies): Likewise.
9918 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
9919 (gather_scalar_reductions): Likewise.
9920 (try_create_reduction_list): Likewise.
9921 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
9923 (scev_const_prop): Likewise.
9924 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9925 (get_default_value): Likewise.
9926 (ccp_initialize): Likewise.
9927 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
9928 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9929 (init_copy_prop): Likewise.
9930 * tree-ssa-dce.c (propagate_necessity): Likewise.
9931 (remove_dead_phis): Likewise.
9932 (forward_edge_to_pdom): Likewise.
9933 (eliminate_unnecessary_stmts): Likewise.
9934 * tree-ssa-live.c (partition_view_init): Likewise.
9935 (remove_unused_locals): Likewise.
9936 (register_ssa_partition_check): Likewise.
9937 * tree-ssa-loop-im.c (movement_possibility): Likewise.
9938 (move_computations_stmt): Likewise.
9939 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
9940 (record_invariant): Likewise.
9941 (find_interesting_uses_outside): Likewise.
9942 (determine_set_costs): Likewise.
9943 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
9944 (find_uses_to_rename_use): Likewise.
9945 (check_loop_closed_ssa_use): Likewise.
9946 (rewrite_phi_with_iv): Likewise.
9947 (canonicalize_loop_ivs): Likewise.
9948 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
9949 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
9950 * tree-ssa-pre.c (make_values_for_phi): Likewise.
9951 (compute_avail): Likewise.
9952 (eliminate): Likewise.
9953 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
9954 * tree-ssa-reassoc.c (phi_rank): Likewise.
9955 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
9956 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9957 (ipa_pta_execute): Likewise.
9958 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
9959 (release_last_vdef): Likewise.
9960 (same_phi_alternatives_1): Likewise.
9961 (bb_has_non_vop_phi): Likewise.
9962 (vop_phi): Likewise.
9963 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
9965 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
9966 (execute_late_warn_uninitialized): Likewise.
9967 * tree-ssa.c (verify_ssa_name): Likewise.
9968 (verify_phi_args): Likewise.
9969 (verify_ssa): Likewise.
9970 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9971 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
9973 (slpeel_tree_peel_loop_to_edge): Likewise.
9974 (vect_can_advance_ivs_p): Likewise.
9975 (vect_update_ivs_after_vectorizer): Likewise.
9976 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
9977 * tree-vrp.c (remove_range_assertions): Likewise.
9978 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
9980 2012-08-14 Richard Guenther <rguenther@suse.de>
9982 PR tree-optimization/54146
9983 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
9984 indexed by pred edge index for avail.
9985 (do_partial_partial_insertion): Likewise.
9986 (insert_into_preds_of_block): Adjust.
9988 2012-08-14 Richard Guenther <rguenther@suse.de>
9990 * gimplify.c (create_tmp_from_val): Mark temporary with
9991 DECL_GIMPLE_REG_P here ...
9992 (internal_get_tmp_var): ... instead of here. If we go into
9993 SSA create an SSA name instead of a VAR_DECL.
9994 (gimplify_modify_expr): Do not create SSA names here, assert
9995 we already got them.
9996 (force_gimple_operand_1): Create an SSA name if we go into SSA.
9997 * sese.c (rename_uses): Simplify.
9999 2012-08-14 Richard Guenther <rguenther@suse.de>
10001 * tree-into-ssa.c: Include diagnostic-core.h.
10002 * Makefile.in (tree-into-ssa.o): Adjust.
10004 2012-08-14 Richard Guenther <rguenther@suse.de>
10006 * tree-into-ssa.c (update_ssa): Verify we do not rename
10007 symbols that are already partly in SSA form.
10009 2012-08-14 Jakub Jelinek <jakub@redhat.com>
10011 PR middle-end/53411
10012 PR rtl-optimization/53495
10013 * ira.c (ira): Move delete_trivially_dead_insns call before
10014 find_moveable_pseudos call.
10016 2012-08-13 Steven Bosscher <steven@gcc.gnu.org>
10018 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
10019 of potentially huge memset overhead.
10020 (do_partial_partial_insertion): Likewise.
10021 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
10022 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
10023 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
10024 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
10025 * tree-ssa-reassoc.c (init_reassoc): Likewise.
10026 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
10027 array used as stack.
10028 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
10029 arrays to be filled by pre_and_rev_post_order_compute.
10030 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
10031 array to be filled by dfs_enumerate_from.
10032 (remove_path): Likewise.
10033 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
10034 array of loops that is filled on the next lines.
10035 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
10036 array of basic blocks to be returned.
10037 (get_loop_body_in_dom_order): Likewise.
10038 (get_loop_body_in_bfs_order): Likewise.
10039 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
10040 for all bitmaps used for rewriting into loop-closed SSA form.
10041 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
10042 bitmap at the end to release a lot of memory.
10043 (add_exit_phis): Allocate the exits bitmap on the new obstack.
10044 (get_loops_exits): Allocate the exits bitmap on the new obstack.
10045 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
10046 seen for the first time.
10047 (find_uses_to_rename): Add "???" for why the whole function must
10048 be re-scanned if changed_bbs is empty.
10049 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
10050 Use XNEWVEC to allocate the use_blocks array. Initialize the new
10051 obstack, and free it at the end. Remove loop over all SSA names.
10052 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
10053 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
10054 xcalloc to allocate edge_pred and edge_flag arrays.
10056 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
10058 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
10059 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
10060 for different ABIs.
10061 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
10062 (REG_CLASS_NAMES): Update.
10063 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
10064 * config/i386/i386.c (ix86_conditional_register_usage): Disable
10065 REX registers on 32bit targets. Handle bitmaps from
10066 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
10067 set from GENERAL_REGS also for 32bit targets. Do not change call
10068 used register set for TARGET_64BIT_MS_ABI separately.
10070 2012-08-13 Richard Guenther <rguenther@suse.de>
10072 * basic-block.h (struct basic_block): Remove loop_depth
10073 member, move flags and index members next to each other.
10074 * cfgloop.h (bb_loop_depth): New inline function.
10075 * cfghooks.c (split_block): Do not set loop_depth.
10076 (duplicate_block): Likewise.
10077 * cfgloop.c (flow_loop_nodes_find): Likewise.
10078 (flow_loops_find): Likewise.
10079 (add_bb_to_loop): Likewise.
10080 (remove_bb_from_loops): Likewise.
10081 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10082 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
10083 * gimple-streamer-out.c (output_bb): Likewise.
10084 * bt-load.c: Include cfgloop.h.
10085 (migrate_btr_defs): Use bb_loop_depth.
10086 * cfg.c (dump_bb_info): Likewise.
10087 * final.c (compute_alignments): Likewise.
10088 * ira.c (update_equiv_regs): Likewise.
10089 * tree-ssa-copy.c (init_copy_prop): Likewise.
10090 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
10091 * tree-ssa-forwprop.c: Include cfgloop.h.
10092 (forward_propagate_addr_expr): Use bb_loop_depth.
10093 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
10094 * tree-ssa-sink.c (select_best_block): Likewise.
10095 * ipa-inline-analysis.c: Include cfgloop.h.
10096 (estimate_function_body_sizes): Use bb_loop_depth.
10097 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
10098 (ipa-inline-analysis.o): Likewise.
10099 (bt-load.o): Likewise.
10101 2012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10102 Jakub Jelinek <jakub@redhat.com>
10105 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
10106 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
10107 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
10108 0x80000001 %ecx flags.
10110 2012-08-13 Richard Guenther <rguenther@suse.de>
10112 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
10113 removal and loops with multiple latches.
10115 2012-08-13 Jakub Jelinek <jakub@redhat.com>
10118 * tree.c (integer_pow2p): Avoid undefined signed overflows.
10119 * simplify-rtx.c (neg_const_int): Likewise.
10120 * expr.c (fixup_args_size_notes): Likewise.
10121 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
10122 * double-int.c (mul_double_wide_with_sign): Likewise.
10123 (double_int_mask): Likewise.
10124 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
10126 2012-08-13 Richard Guenther <rguenther@suse.de>
10128 PR tree-optimization/54200
10129 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
10130 PHI results to another partition if not all PHI arguments
10131 have the same partition.
10133 2012-08-12 Jan Hubicka <jh@suse.cz>
10135 * tree-pass.h (write_summary, write_optimization_summary): Remove
10136 set and vset arguments.
10137 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
10138 (write_node_summary_p): Likewise; use the encoder.
10139 (ipa_reference_write_optimization_summary): Likewise.
10140 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
10141 (lto_symtab_encoder_new): Initialize in_partition field.
10142 (lto_symtab_encoder_delete): Destroy in_partition field.
10143 (LCC_NOT_FOUND): Move to lto-streamer.h
10144 (lto_symtab_encoder_deref): Likewise.
10145 (lto_symtab_encoder_in_partition_p,
10146 lto_set_symtab_encoder_in_partition): New functions.
10147 (referenced_from_other_partition_p): Rewrite to use encoder.
10148 (reachable_from_other_partition_p): Likewise.
10149 (referenced_from_this_partition_p): Likewise.
10150 (reachable_from_this_partition_p): Likewise.
10151 (lto_output_node): Likewise.
10152 (lto_output_varpool_node): Likewise.
10153 (output_refs): Likewise.
10154 (compute_ltrans_boundary): Initialize in_partition fileds of
10156 (output_symtab): Likewise.
10157 (input_refs): Match the changes in output_refs.
10158 (output_cgraph_opt_summary_p): Remove set argument.
10159 (output_node_opt_summary): Replace set by encoder.
10160 (output_cgraph_opt_summary): Remove set argument; use
10162 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
10163 arguments; use the encoder.
10164 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
10166 (produce_symtab): Likewise.
10167 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
10168 * ipa-inline-analysis.c (inline_write_summary): Likewise.
10169 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
10171 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
10172 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
10173 (ipa_write_summaries_1): Update.
10174 (ipa_write_optimization_summaries_1): Likewise.
10175 (ipa_write_optimization_summaries): Likewise.
10176 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
10177 (lto_symtab_encoder_iterator): New type.
10178 (lto_symtab_encoder_deref): Make inline.
10179 (output_symtab, referenced_from_other_partition_p,
10180 reachable_from_other_partition_p, referenced_from_this_partition_p,
10181 reachable_from_this_partition_p): Update.
10182 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
10183 lsei_varpool_node): New inline functions.
10184 (LCC_NOT_FOUND): New macro.
10185 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
10186 lsei_start_in_partition, lsei_next_function_in_partition,
10187 lsei_start_function_in_partition, lsei_next_variable_in_partition,
10188 lsei_start_variable_in_partition): New inline functions.
10190 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
10192 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
10194 (*prefetch_media): Move insn below expander.
10195 (*prefetch): Fix condition to allow SH3.
10197 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
10200 * config/sh/sh.md: Add splits for inverted compare and branch
10202 (*cmpeqsi_t): New insn.
10203 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
10204 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
10205 replacement insn list and not in the preparation statements.
10206 (clrt, sett): Add mt_group attribute.
10208 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
10210 PR middle-end/54193
10211 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
10213 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
10216 * config/sh/predicates.md (mem_index_disp_operand): Check for
10217 arith_reg_operand instead of REG_P.
10219 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
10221 * reload1.c (replaced_subreg, gen_reload): Add
10222 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
10224 2012-08-11 Jan Hubicka <jh@suse.cz>
10226 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
10227 symtab_node sectoin name; it confuses plugin.
10229 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
10231 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
10232 index in the va_list_vars bitmap by num_ssa_names.
10234 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
10236 * config/i386/sse.md (xop integer multiply/add insns): Use
10237 register_operand for operand 3 predicate.
10238 (xop_phadd<u>bq): Fix vec_select selectors.
10240 2012-08-11 Martin Jambor <mjambor@suse.cz>
10243 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
10244 * ipa-inline-analysis.c (agg_position_info): New type.
10245 (add_condition): New parameter aggpos, also store agg_contents, by_ref
10247 (dump_condition): Also dump aggregate conditions.
10248 (evaluate_conditions_for_known_args): Also handle aggregate
10249 conditions. New parameter known_aggs.
10250 (evaluate_properties_for_edge): Gather known aggregate contents.
10251 (inline_node_duplication_hook): Pass NULL known_aggs to
10252 evaluate_conditions_for_known_args.
10253 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
10254 (unmodified_parm_or_parm_agg_item): New function.
10255 (set_cond_stmt_execution_predicate): Handle values passed in
10257 (set_switch_stmt_execution_predicate): Likewise.
10258 (will_be_nonconstant_predicate): Likewise.
10259 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
10260 ipa_get_indirect_edge_target.
10261 (estimate_calls_size_and_time): New parameter known_aggs, pass it
10262 recrsively to itself and to estimate_edge_devirt_benefit.
10263 (estimate_node_size_and_time): New vector known_aggs, pass it o
10264 functions which need it.
10265 (remap_predicate): New parameter offset_map, use it to remap aggregate
10267 (remap_edge_summaries): New parameter offset_map, pass it recursively
10268 to itself and to remap_predicate.
10269 (inline_merge_summary): Also create and populate vector offset_map.
10270 (do_estimate_edge_time): New vector of known aggregate contents,
10271 passed to functions which need it.
10272 (inline_read_section): Stream new fields of condition.
10273 (inline_write_summary): Likewise.
10274 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
10275 contents. Let all local callers pass NULL for known_aggs.
10277 2012-08-11 Jan Hubicka <jh@suse.cz>
10279 * lto-cgraph.c (output_cgraph): Rename to ...
10280 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
10281 (input_cgraph): Rename to ...
10282 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
10283 * lto-streamer-out.c (create_output_block): Do not set
10285 (produce_asm): Likewise.
10286 (lto_output_toplevel_asms): Likewise.
10287 (produce_asm_for_decls): Likewise.
10288 (lto_output): Use output_symtab.
10289 * lto-section-in.c (lto_section_name): Update.
10290 * lto-section-out.c (lto_destroy_simple_output_block): Remove
10292 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
10293 rename LTO_section_cgraph to LTO_section_symtab_nodes.
10294 (struct lto_header): Remove section_type.
10296 2012-08-11 Jan Hubicka <jh@suse.cz>
10298 * cgraph.h (vector types for symtab_node): Add.
10299 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
10300 for new symtab encoder.
10301 (ipa_reference_read_optimization_summary): Likewise.
10302 * lto-cgraph.c (output_varpool): Remove.
10303 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
10304 (LTO_cgraph_tags): Rename to ...
10305 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
10306 (lto_cgraph_encoder_new): Rename to ...
10307 (lto_symtab_encoder_new): ... this on.
10308 (lto_cgraph_encoder_encode): Rename to ...
10309 (lto_symtab_encoder_encode): ... this one.
10310 (lto_cgraph_encoder_delete): Rename to ...
10311 (lto_symtab_encoder_delete): ... this one.
10312 (lto_cgraph_encoder_deref): Rename to ...
10313 (lto_symtab_encoder_deref): ... this one.
10314 (lto_cgraph_encoder_encode_body_p): Rename to ...
10315 (lto_symtab_encoder_encode_body_p): ... this one.
10316 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10317 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10318 lto_varpool_encoder_deref): Remove.
10319 (lto_varpool_encoder_encode_initializer_p): Rename to ...
10320 (lto_symtab_encoder_encode_initializer_p): ... this one.
10321 (lto_set_varpool_encoder_encode_initializer): Rename to ...
10322 (lto_set_symtab_encoder_encode_initializer): ... this one.
10323 (lto_output_edge): Update.
10324 (lto_output_node): Update.
10325 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
10326 (lto_output_ref): Drop varpool_encoder; update.
10327 (add_node_to): Update.
10328 (add_references): Update.
10329 (output_outgoing_cgraph_edges): Update.
10330 (output_refs): Update.
10331 (compute_ltrans_boundary): Update.
10332 (output_cgraph): Update; output varpools too.
10333 (input_overwrite_node): Update.
10334 (output_varpool): Remove.
10335 (input_node): Update.
10336 (input_ref): Update.
10337 (input_edge): Update.
10338 (input_cgraph_1): Update; input varpool too; unify fixup code.
10339 (input_varpool_1): Remove.
10340 (input_refs): Update.
10341 (input_cgraph): Update.
10342 (output_node_opt_summary): Update.
10343 (input_cgraph_opt_section): Update.
10344 (input_cgraph_opt_summary): Update.
10345 * ipa-pure-const.c (pure_const_write_summary): Update.
10346 (pure_const_read_summary): Update.
10347 * lto-streamer-out.c (lto_write_tree): Update.
10348 (lto_output): Likewise.
10349 (produce_symtab): Update.
10350 (produce_asm_for_decls): Update.
10351 * ipa-inline-analysis.c (inline_read_section): Update.
10352 (inline_write_summary): Update.
10353 * ipa-prop.c (ipa_write_node_info): Update.
10354 (ipa_prop_read_section): Update.
10355 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
10356 (lto_symtab_encoder_d): ... this one; add initializer.
10357 (lto_cgraph_encoder_t): Rename to ...
10358 (lto_symtab_encoder_t): ... this one.
10359 (lto_cgraph_encoder_size): Rename to ...
10360 (lto_symtab_encoder_size): ... this one.
10361 (lto_varpool_encoder_d): ... remove.
10362 (lto_varpool_encoder_t): Remove.
10363 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
10364 add symtab_node_encoder.
10365 (lto_file_decl_data): Likewise.
10366 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
10367 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
10368 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
10369 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
10370 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
10371 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10372 lto_varpool_encoder_encode_initializer_p): Remove.
10373 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
10374 lto_symtab_encoder_t, lto_symtab_encoder_encode,
10375 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
10376 lto_symtab_encoder_encode_initializer_p): New.
10378 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
10380 * config/i386/i386.md (isa): Add fma and fma4.
10381 (enabled): Handle fma and fma4.
10382 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
10383 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
10384 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
10385 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
10386 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
10387 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
10389 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
10391 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
10392 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
10393 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
10395 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
10397 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
10398 variants of PLUS and MULT simple LEA patterns. Disable PLUS
10399 patterns for TARGET_OPT_AGU.
10401 2012-08-10 Richard Guenther <rguenther@suse.de>
10403 * Makefile.in (OBJS): Remove matrix-reorg.o.
10404 (matrix-reorg.o): Remove dependence rule.
10405 (GTFILES): Remove matrix-reorg.c.
10406 * matrix-reorg.c: Remove.
10407 * passes.c (init_optimization_passes): Do not schedule
10408 pass_ipa_matrix_reorg.
10409 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
10410 * common.opt (fipa-matrix-reorg): Stub out.
10411 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
10413 2012-08-10 Richard Guenther <rguenther@suse.de>
10415 PR middle-end/54219
10416 * fold-const.c (fold_ternary_loc): Do not reverse the mask
10417 when canonicalizing it when folding VEC_PERM_EXPR.
10419 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10421 PR middle-end/54211
10422 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
10423 Use cand_type to determine whether pointer arithmetic will be generated.
10425 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10427 * doc/sourcebuild.texi: Document long_neq_int effective target.
10429 2012-08-10 Richard Guenther <rguenther@suse.de>
10431 PR tree-optimization/54109
10432 * tree-ssa-forwprop.c
10433 (forward_propagate_addr_into_variable_array_index): Remove.
10434 (forward_propagate_addr_expr_1): Adjust.
10436 2012-08-10 Richard Guenther <rguenther@suse.de>
10438 * tree-cfg.c (dump_function_to_file): Make sure to dump
10439 anonymous SSA names when there are no local decls.
10441 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
10443 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
10444 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
10445 (mark_phi_for_rewrite): Likewise.
10446 (compute_global_livein): Use VEC_reserve outside the innermost
10447 loop and VEC_quick_push instead of VEC_safe_push in that loop.
10448 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
10449 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
10450 the correct initial size.
10452 2012-08-10 Richard Guenther <rguenther@suse.de>
10454 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
10455 (need_creation): Remove.
10456 (get_representative_for): Use anonymous named SSA names.
10457 (create_expression_by_pieces): Likewise.
10458 (insert_into_preds_of_block): Likewise.
10459 (init_pre): Do not init removed vars.
10460 (fini_pre): Do not free need_creation.
10461 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
10463 * tree-ssa-loop-manip.c (create_iv): Likewise.
10464 * value-prof.c (gimple_divmod_fixed_value): Likewise.
10465 (gimple_mod_pow2): Likewise.
10466 (gimple_mod_subtract): Likewise.
10467 (gimple_ic): Likewise.
10468 (gimple_stringop_fixed_value): Likewise.
10469 * tree-ssa-phiopt.c (condstoretemp): Remove.
10470 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
10471 (conditional_replacement): Likewise.
10472 (abs_replacement): Likewise.
10473 (cond_store_replacement): Likewise.
10474 (cond_if_else_store_replacement_1): Likewise.
10475 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
10476 (rewrite_bittest): Likewise.
10477 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
10478 and build anonymous SSA names.
10479 (undistribute_ops_list): Adjust.
10480 (eliminate_redundant_comparison): Use anonymous SSA names.
10481 (rewrite_expr_tree_parallel): Likewise.
10482 (get_reassoc_pow_ssa_name): Remove.
10483 (attempt_builtin_powi): Adjust.
10484 (reassociate_bb): Likewise.
10485 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
10486 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10487 (build_arrays): Likewise.
10488 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
10489 (create_tailcall_accumulator): Likewise.
10490 * tree-vect-generic.c (expand_vector_divmod): Likewise.
10491 * tree-profile.c (gcov_type_tmp_var): Remove.
10492 (gimple_init_edge_profiler): Do not initialize it and use anonymous
10494 (gimple_gen_ic_profiler): Likewise.
10495 (tree_profiling): Adjust.
10496 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
10497 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
10498 (powi_as_mults_1): Likewise.
10499 (powi_as_mults): Likewise.
10500 (build_and_insert_call): Adjust.
10501 (build_and_insert_binop): Likewise.
10502 (build_and_insert_ref): Likewise.
10503 (build_and_insert_cast): Likewise.
10504 (gimple_expand_builtin_pow): Likewise.
10505 (gimple_expand_builtin_cabs): Likewise.
10506 (execute_optimize_bswap): Use anonymous SSA names.
10507 (convert_mult_to_widen): Likewise.
10508 (convert_plusminus_to_widen): Likewise.
10509 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10510 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
10511 * tree-if-conv.c (ifc_temp_var): Likewise.
10512 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
10513 * tree-parloops.c (take_address_of): Likewise.
10514 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
10515 (vect_permute_load_chain): Likewise.
10516 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
10517 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
10518 (vect_handle_widen_op_by_const): Likewise.
10519 (vect_operation_fits_smaller_type): Likewise.
10520 (vect_recog_over_widening_pattern): Likewise.
10521 * tree-vect-stmts.c (vect_init_vector): Likewise.
10522 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
10523 (simplify_float_conversion_using_ranges): Likewise.
10525 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10527 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
10528 target mask of __builtin_ia32_rdseed_di_step builtin.
10530 2012-08-10 Richard Guenther <rguenther@suse.de>
10532 PR tree-optimization/54027
10533 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
10534 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
10535 to handle LSHIFT_EXPR with a constant.
10537 2012-08-10 Richard Guenther <rguenther@suse.de>
10539 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
10540 is recorded as var.
10541 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
10542 or its SSA_NAME_VAR.
10543 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
10544 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
10545 SSA names by passing a type instead of a variable decl.
10546 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
10547 (copy_ssa_name_fn): Handle anonymous SSA names.
10548 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
10549 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
10550 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
10551 dump SSA names without a name as <anon>.
10552 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
10553 going to expand a decl.
10554 (gimple_expand_cfg): Assign all SSA names of a partition the
10555 decl we created for its leader.
10556 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
10557 (verify_ssa_name): Handle anonymous SSA names.
10558 (verify_def): Likewise.
10559 * tree-predcom.c (eliminate_temp_copies): Likewise.
10560 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
10561 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
10562 anonymous SSA names with the same type.
10563 (mark_all_vars_used_1): Handle anonymous SSA names.
10564 (verify_live_on_entry): Likewise.
10565 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
10566 (create_outofssa_var_map): Adjust with respect to conflicts we
10567 compute for anonymous SSA names. Do not restrict abnormal
10569 (coalesce_partitions): Do not restrict abnormal coalescing.
10570 Assert we only ever coalesce variables we computed conflicts for.
10571 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
10572 of anonymous names.
10573 * expr.c (expand_expr_real_1): Handle anonymous SSA names
10574 expanded from IVOPTs by creating a raw REG here.
10575 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
10576 (dump_function_to_file): Dump anonymous SSA names alongside
10577 with their types in the variable list.
10578 (verify_gimple_return): Guard use of SSA_NAME_VAR.
10579 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
10580 (rewrite_into_ssa): Make SSA names anonymous.
10581 * tree-ssa-structalias.c (alias_get_name): Rewrite.
10582 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
10584 (warn_uninitialized_phi): Likewise.
10585 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
10586 anonymous SSA names to the expander.
10587 (determine_iv_cost): Anonymous SSA names are artificial.
10588 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10589 Handle anonymous SSA names.
10590 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
10591 or if NULL, the type of the SSA name.
10592 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
10593 remap names as anonymous where appropriate.
10594 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
10595 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
10596 according to what we create conflicts for in out-of-SSA
10598 * tree-parloops.c (separate_decls_in_region_name): Handle
10599 anonymous SSA names.
10600 (add_field_for_name): Likewise.
10601 * tree.c (get_name): Handle SSA names.
10602 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
10604 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
10606 * tree-sra.c (create_access_replacement): Give up generating
10607 a DECL_DEBUG_EXPR for SSA names in the memory reference.
10608 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
10609 * tree-complex.c (get_component_ssa_name): Handle anonymous
10611 (set_component_ssa_name): Likewise.
10612 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
10613 * tree-object-size.c (collect_object_sizes_for): Handle
10614 uninitialized SSA names properly.
10615 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
10617 * ipa-split.c (test_nonssa_use): Likewise.
10618 (consider_split): Likewise.
10619 (mark_nonssa_use): Likewise.
10621 2012-08-09 Jan Hubicka <jh@suse.cz>
10623 PR middle-end/54146
10624 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
10625 parameter; honnor it.
10626 * ipa-inline.c (recursive_inlining): Update call
10628 (inline_small_functions): Likewise.
10629 (ipa_inline): Likewise.
10630 (inline_always_inline_functions): Likewise.
10631 (early_inline_small_functions): Likewise.
10632 (flatten_function): Do separate update of summary info.
10633 * ipa-inline.h (inline_update_overall_summary): Declare.
10634 (inline_call): Update.
10635 * ipa-inline-analysis.c (inline_merge_summary): Break out
10636 updating code to ...
10637 (inline_update_overall_summary): Likewise.
10639 2012-08-09 Richard Henderson <rth@redhat.com>
10641 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
10643 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
10644 performing the compare for the restart loop.
10646 2012-08-09 DJ Delorie <dj@redhat.com>
10648 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
10649 SET before extracting SET_SRC.
10650 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
10652 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
10655 * config/sh/sh-protos (shift_insns_rtx): Delete.
10656 (sh_ashlsi_clobbers_t_reg_p): Add.
10657 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
10658 ext_shift_amounts): Merge arrays of ints to array of structs.
10659 Adapt usage of arrays throughout the file.
10660 (shift_insns_rtx): Delete unused function.
10661 (sh_ashlsi_clobbers_t_reg_p): New function.
10662 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
10663 final shift sequence will clobber T_REG.
10664 (ashlsi3_n): Split only if the final shift sequence will not
10666 (ashlsi3_n_clobbers_t): New insn_and_split.
10668 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
10670 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
10671 instead of looking at sbitmap n_bits member directly.
10672 * gcse.c (hoist_code): Likewise.
10673 * sched-rgn.c (split_edges): Likewise.
10674 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
10675 update_ssa): Likewise.
10677 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
10679 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
10680 single unit register class for classes that contain registers form
10682 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
10683 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
10685 2012-08-09 Martin Jambor <mjambor@suse.cz>
10687 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
10688 offset, updated all users. New field agg_contents.
10689 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
10690 (ipa_pass_through_data): New field agg_preserved.
10691 (ipa_ancestor_jf_data): Likewise.
10692 (ipa_member_ptr_cst): Removed.
10693 (ipa_agg_jf_item): New type.
10694 (ipa_agg_jump_function): Likewise.
10695 (ipa_jump_func): New field agg. Removed field member_cst.
10696 (ipa_get_jf_pass_through_agg_preserved): New function.
10697 (ipa_get_jf_ancestor_agg_preserved): Likewise.
10698 (ipa_get_jf_member_ptr_pfn): Removed.
10699 (ipa_find_agg_cst_for_param): Declare.
10700 (ipa_load_from_parm_agg): Likewise.
10701 * ipa-prop.c (param_analysis_info): Fields modified and
10702 visited_statements rename to parm_modified and parm_visited_statements
10703 respectively, added fields ref_modified, ref_visited_statements,
10704 pt_modified and pt_visited_statements.
10705 (ipa_print_node_jump_functions_for_edge): Do not dump const member
10706 functions. Dump agg_preserved flags and aggregate jump functions.
10707 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
10708 (ipa_set_ancestor_jf): Likewise.
10709 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
10710 (ipa_set_jf_member_ptr_cst): Removed.
10711 (is_parm_modified_before_stmt): Logic reversed, renamed to
10712 parm_preserved_before_stmt_p. Cache visited bitmap only for
10713 naked DECL parameters. All callers updated.
10714 (load_from_unmodified_param): Allow NULL parms_ainfo.
10715 (parm_ref_data_preserved_p): New function.
10716 (parm_ref_data_pass_through_p): Likewise.
10717 (ipa_load_from_parm_agg_1): Likewise.
10718 (ipa_load_from_parm_agg): Likewise.
10719 (compute_complex_assign_jump_func): Check if aggregate contents are
10721 (compute_complex_ancestor_jump_func): Likewise.
10722 (compute_scalar_jump_functions): Removed.
10723 (type_like_member_ptr_p): Also check field position are known and sane.
10724 (compute_pass_through_member_ptrs): Removed.
10725 (determine_cst_member_ptr): Likewise.
10726 (ipa_known_agg_contents_list): New type.
10727 (determine_known_aggregate_parts): New function.
10728 (compute_cst_member_ptr_arguments): Removed.
10729 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
10730 functions (scalar, aggregate and member pointer).
10731 (ipa_get_member_ptr_load_param): Incorporate into
10732 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
10733 (ipa_note_param_call): Clear agg_contents.
10734 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
10735 from aggregates. In such cases, store offset of the called field.
10736 (ipa_analyze_node): Initialize new fields of param_analysis_info.
10737 (update_jump_functions_after_inlining): Handle aggregate contents.
10738 (ipa_find_agg_cst_for_param): New function.
10739 (try_make_edge_direct_simple_call): Handle called aggregate values.
10740 (update_indirect_edges_after_inlining): Make sure aggregate preserving
10741 jump functions comply with type compatibility requirements.
10742 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
10743 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
10744 jump functions. Do not stream member pointer constant jump functions.
10745 (ipa_read_jump_function): Likewise.
10746 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
10748 (ipa_read_indirect_edge_info): Likewise.
10750 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
10753 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
10754 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
10755 mem_index_disp_operand predicate.
10757 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
10760 * config/sh/sh.md: Add negc extu sequence peephole.
10761 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
10762 (*movrt_negc): New insn.
10763 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
10765 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
10766 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
10768 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
10770 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
10773 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
10774 Use arith_reg_operand predicate instead of register_operand.
10775 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
10776 only mem, simplify.
10778 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
10780 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
10781 (alpha_pad_function_end): ... this. Also insert NOP between
10782 sibling call and GP load.
10783 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
10785 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10787 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
10788 * config/i386/x86intrin.h: Likewise.
10789 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
10790 OPTION_MASK_ISA_ADX from needed options for
10791 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
10792 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
10793 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
10795 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
10797 PR rtl-optimization/53701
10798 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
10799 Process not only expr's vinsns but all old vinsns from expr's
10800 history of changes.
10801 (update_and_record_unavailable_insns): Clarify comment.
10803 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
10805 * reload.c (find_valid_class_1): New static function.
10806 (push_reload): Use it when reloading a SYMBOL_REG as the inner
10807 of a subreg. Keep better track of needed classes for the
10808 secondary memory case.
10809 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
10811 * reload1.c (replaced_subreg): New static function.
10812 (gen_reload): Use it when deciding whether to use secondary
10815 2012-08-09 Richard Guenther <rguenther@suse.de>
10817 * tree.h (SSA_VAR_P): Simplify.
10818 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
10819 * fold-const.c (fold_comparison): Check for default def first
10820 before checking for PARM_DECL.
10821 * tree-complex.c (get_component_ssa_name): Likewise.
10822 * tree-inline.c (remap_ssa_name): Likewise.
10823 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
10824 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
10825 (find_what_p_points_to): Likewise.
10826 * tree-ssa-operands.c (add_stmt_operand): Simplify.
10828 2012-08-08 Joseph Myers <joseph@codesourcery.com>
10830 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
10831 IOR to a constant if one operand has side effects.
10833 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10835 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
10836 value operand as MEM to expand_atomic_compare_and_swap.
10838 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
10839 nonimmediate_operand for old value; generate load and store if
10841 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
10844 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
10846 PR middle-end/54146
10847 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
10849 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
10850 a gimple_reg if checking is enabled.
10851 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
10852 * tree-into-ssa (compute_global_livein): Change the worklist
10853 type from an array to a VEC.
10855 2012-08-08 Richard Guenther <rguenther@suse.de>
10857 * tree-ssa-operands.h (virtual_operand_p): Declare.
10858 * tree-ssa-operands.c (virtual_operand_p): New predicate.
10859 * gimple.c (is_gimple_reg): Use virtual_operand_p.
10860 * tree-into-ssa.c (prepare_block_for_update): Likewise.
10861 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
10863 2012-08-08 Richard Guenther <rguenther@suse.de>
10865 * tree-call-cdce.c (check_pow): Simplify.
10866 (gen_conditions_for_pow_int_base): Likewise.
10867 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
10868 virtual operands here.
10869 * tree-ssa-operands.c (get_name_decl): Remove unused function.
10870 * gimplify.c (gimple_regimplify_operands): Remove dead code.
10871 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
10872 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
10873 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
10874 (gimple_stringop_fixed_value): Likewise.
10875 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
10876 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
10877 in the bitmap alongside shifted DECL_UIDs.
10878 (va_list_counter_struct_op): Likewise.
10879 (va_list_ptr_read): Likewise.
10880 (va_list_ptr_write): Likewise.
10881 (check_va_list_escapes): Likewise.
10882 (check_all_va_list_escapes): Likewise.
10883 (execute_optimize_stdarg): Likewise.
10884 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
10886 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
10887 H.J. Lu <hongjiu.lu@intel.com>
10889 PR rtl-optimization/54157
10890 * combine.c (gen_lowpart_for_combine): Don't return identity
10891 for CONST or symbolic reference.
10893 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10895 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
10896 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
10897 (ix86_handle_option): Handle madx option.
10898 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
10899 (x86_64-*-*): Likewise.
10900 * config/i386/adxintrin.h: New header.
10901 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
10903 * config/i386/i386-builtin-types.def
10904 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
10905 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
10906 * config/i386/i386-c.c: Define __ADX__ if needed.
10907 * config/i386/i386.c (ix86_target_string): Define -madx option.
10909 (ix86_option_override_internal): Handle new option.
10910 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
10911 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
10912 IX86_BUILTIN_ADDCARRYX64.
10913 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
10914 (ix86_expand_builtin): Handle these built-ins.
10915 (ix86_expand_args_builtin): Handle new function types.
10916 * config/i386/i386.h (TARGET_ADX): New.
10917 * config/i386/i386.md (adcx<mode>3): New define_insn.
10918 * config/i386/i386.opt (madx): New.
10919 * config/i386/x86intrin.h: Include adxintrin.h.
10921 2012-08-08 Nick Clifton <nickc@redhat.com>
10923 * config/rl78/rl78.c: Include tree-pass.h.
10925 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
10927 PR middle-end/54146
10928 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
10929 (build_insn_chain): Make live_subregs_used a bitmap.
10930 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
10931 Use sbitmap_free to free the live_subreg sbitmaps.
10933 PR middle-end/54146
10934 * ifcvt.c: Include pointer-set.h.
10935 (cond_move_process_if_block): Change type of then_regs and
10936 else_regs from alloca'd array to pointer_sets.
10937 (check_cond_move_block): Update for this change.
10938 (cond_move_convert_if_block): Likewise.
10939 * Makefile.in: Fix dependencies for ifcvt.o.
10941 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10943 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
10944 (incr_vec): New static var.
10945 (incr_vec_len): Likewise.
10946 (address_arithmetic_p): Likewise.
10947 (stmt_cost): Remove dead assignment.
10948 (dump_incr_vec): New function.
10949 (cand_abs_increment): Likewise.
10950 (lazy_create_slsr_reg): Likewise.
10951 (incr_vec_index): Likewise.
10952 (count_candidates): Likewise.
10953 (record_increment): Likewise.
10954 (record_increments): Likewise.
10955 (unreplaced_cand_in_tree): Likewise.
10956 (optimize_cands_for_speed_p): Likewise.
10957 (lowest_cost_path): Likewise.
10958 (total_savings): Likewise.
10959 (analyze_increments): Likewise.
10960 (ncd_for_two_cands): Likewise.
10961 (nearest_common_dominator_for_cands): Likewise.
10962 (profitable_increment_p): Likewise.
10963 (insert_initializers): Likewise.
10964 (introduce_cast_before_cand): Likewise.
10965 (replace_rhs_if_not_dup): Likewise.
10966 (replace_one_candidate): Likewise.
10967 (replace_profitable_candidates): Likewise.
10968 (analyze_candidates_and_replace): Handle candidates with SSA-name
10971 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
10973 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
10974 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
10975 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
10976 clear pp_needs_newline.
10977 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
10978 of pp_base_flush before the above change.
10979 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
10980 instead of pp_flush.
10981 * diagnostic.c (diagnostic_finish): Likewise.
10982 (diagnostic_report_diagnostic): Likewise.
10983 (verbatim): Likewise.
10984 (error_recursion): Likewise.
10985 * tree-pretty-print.c (print_generic_stmt): Likewise.
10986 (print_generic_stmt_indented): LIkewise.
10987 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
10988 (print_gimple_seq): Likewise.
10989 (gimple_dump_bb_buff): Likewise.
10991 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
10994 * var-tracking.c (var_lowpart): Exit early for matched modes.
10996 2012-08-07 Richard Henderson <rth@redhat.com>
10998 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
10999 atomic_compare_and_swapsi_internal name change.
11000 (s390_expand_insv): Try RISBG last, not requiring operands in
11001 registers but forcing them there. Try a limited form of ICM.
11002 (s390_two_part_insv): New.
11003 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
11004 * config/s390/s390.md (UNSPEC_MOVA): New.
11005 (TDSI): Remove mode iterator.
11006 (DGPR, DINT, TDI): New mode iterators.
11007 (td): New mode attribute.
11008 (mem_signal_fence): New.
11009 (mem_thread_fence): Rename from memory_barrier; update for model arg.
11010 (mem_thread_fence_1): Rename from *memory_barrier.
11011 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
11012 (atomic_loaddi_1, atomic_loadti_1): New.
11013 (atomic_storedi_1, atomic_storeti_1): New.
11014 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
11015 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
11016 (atomic_compare_and_swap<DGPR>_internal): New.
11017 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
11018 (*atomic_compare_and_swap<TDI>_1): New.
11019 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
11020 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
11021 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
11022 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
11023 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
11024 (sync_new_<ATOMIC><HQI>): Remove.
11025 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
11026 (atomic_<ATOMIC>_fetch<HQI>): New.
11027 (sync_lock_test_and_set<HQI>): Remove.
11028 (atomic_exchange<HQI>): New.
11030 2012-08-07 Paul Brook <paul@codesourcery.com>
11031 Sandra Loosemore <sandra@codesourcery.com>
11033 * except.c (switch_to_exception_section): Place tables for
11034 DECL_ONE_ONLY functions in comdat groups.
11036 2012-08-07 Richard Guenther <rguenther@suse.de>
11038 * tree-flow.h (copy_ssa_name_fn): New function.
11039 (duplicate_ssa_name_fn): Likewise.
11040 * tree-flow-inline.h (copy_ssa_name): New function.
11041 (duplicate_ssa_name): Likewise.
11042 * tree-ssanames.c (copy_ssa_name_fn): New function.
11043 (duplicate_ssa_name): Rename to ...
11044 (duplicate_ssa_name_fn): ... this and adjust.
11045 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
11046 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
11048 (slpeel_update_phi_nodes_for_guard2): Likewise.
11049 (slpeel_tree_peel_loop_to_edge): Likewise.
11050 (vect_loop_versioning): Likewise.
11051 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
11052 (create_parallel_loop): Likewise.
11053 * ipa-split.c (split_function): Likewise.
11054 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
11055 (vect_create_epilog_for_reduction): Likewise.
11056 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
11057 (vect_setup_realignment): Likewise.
11058 * tree-vect-stmts.c (vectorizable_load): Likewise.
11059 * tree-switch-conversion.c (build_one_array): Likewise.
11060 (gen_def_assigns): Likewise.
11061 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
11062 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
11063 create_zero_dim_array with the SSA name.
11064 (rewrite_phi_out_of_ssa): Likewise.
11065 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
11067 2012-08-07 Richard Guenther <rguenther@suse.de>
11069 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
11070 bit of the old name when we clear the slot.
11071 * tree-ssa-live.c (remove_unused_locals): Release any default
11072 def associated with an unused var.
11073 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
11075 2012-08-07 Richard Guenther <rguenther@suse.de>
11077 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
11078 we rewrite into SSA form.
11079 (rewrite_enter_block): Adjust.
11080 * gimple-iterator.c (gsi_replace): Also allow replacement with
11081 a stmt without a lhs.
11082 * tree-ssa-live.c (remove_unused_locals): Remove code handling
11083 clobbers of SSA names.
11084 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
11085 for variables we access through the local chain.
11086 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
11087 clobber full decls only.
11089 2012-08-07 Richard Guenther <rguenther@suse.de>
11091 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
11092 * tree-phinodes.c (make_phi_node): Allow a NULL var.
11093 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
11094 * tree-complex.c (update_phi_components): Likewise.
11095 * tree-ssa-loop-manip.c (create_iv): Likewise.
11096 (add_exit_phis_edge): Likewise.
11097 (split_loop_exit_edge): Likewise.
11098 (tree_transform_and_unroll_loop): Likewise.
11099 * value-prof.c (gimple_ic): Likewise.
11100 (gimple_stringop_fixed_value): Likewise.
11101 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
11102 * omp-low.c (expand_parallel_call): Likewise.
11103 (expand_omp_for_static_chunk): Likewise.
11104 (expand_omp_atomic_pipeline): Likewise.
11105 * tree-parloops.c (create_phi_for_local_result): Likewise.
11106 (transform_to_exit_first_loop): Likewise.
11107 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
11108 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
11109 * tree-predcom.c (initialize_root_vars): Likewise.
11110 (initialize_root_vars_lm): Likewise.
11111 * sese.c (sese_add_exit_phis_edge): Likewise.
11112 * gimple-streamer-in.c (input_phi): Likewise.
11113 * tree-inline.c (copy_phis_for_bb): Likewise.
11114 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11115 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
11116 (gimple_duplicate_bb): Likewise.
11118 2012-08-07 Nick Clifton <nickc@redhat.com>
11120 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
11121 stack usage if requested.
11123 2012-08-06 Cary Coutant <ccoutant@google.com>
11125 * cgraphunit.c (assemble_thunk): Add source line info.
11126 * final.c (final): Check for non-null cfg pointer.
11128 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
11129 Maxim Kuvyrkov <maxim@codesourcery.com>
11130 Julian Brown <julian@codesourcery.com>
11132 * config/mips/24k.md (r24k_unknown_store): Delete special handling
11134 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
11135 (r24k_int_cop, r24k_int_multi)
11136 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
11137 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
11138 instead of store_data_bypass_p.
11139 * config/mips/74k.md (r74k_int_store): Delete special handling for
11141 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
11142 Use mips_store_data_bypass_p instead of store_data_bypass_p.
11144 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
11146 PR tree-optimization/51938
11147 PR tree-optimization/52005
11148 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
11149 inverted conditions.
11150 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
11151 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
11152 and !a||b patterns.
11154 2012-08-06 Olivier Hainque <hainque@adacore.com>
11156 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
11157 the target, attach the new decl to that, not to the template section.
11159 2012-08-06 Tom de Vries <tom@codesourcery.com>
11161 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
11164 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11166 * doc/invoke.texi: Document AMD btver2.
11167 * doc/extend.texi: Document AMD btver1 and btver2.
11169 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
11170 Richard Sandiford <rdsandiford@googlemail.com>
11172 * config/mips/mips.c (mips_option_override): Check -fpic
11173 for compatibility with -mabicalls and ABI.
11175 2012-08-04 Catherine Moore <clm@codesourcery.com>
11176 Sandra Loosemore <sandra@codesourcery.com>
11178 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
11179 (ir_xlr_alu): Remove clz.
11180 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
11182 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
11184 * arm.c (arm_gen_constant): Use SImode when preparing operands for
11187 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
11189 * config/i386/i386.h (QI_REGNO_P): New define.
11190 (ANY_QI_REGNO_P): Ditto.
11191 (GENERAL_REGNO_P): Use IN_RANGE macro.
11192 (QI_REG_P): Use QI_REGNO_P.
11193 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
11194 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
11195 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
11196 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
11197 register is a general register.
11199 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
11201 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
11202 incdec_operand predicate to return INC or DEC insn mnemonic.
11203 Add %K operand modifier.
11204 (atomic_add<mode>): Use incdec_operand predicate to
11205 return INC or DEC insn mnemonic.
11206 (atomic_dec<mode>): Ditto.
11208 2012-08-03 Michael Matz <matz@suse.de>
11210 PR tree-optimization/54146
11211 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
11212 (add_scope_conflicts): Iterate in RPO order.
11213 (add_stack_protection_conflicts): Iterate over the other triangle.
11214 (fini_vars_expansion): Clear stack_vars_sorted.
11216 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
11218 PR tree-optimization/30318
11219 * double-int.c (mul_double_wide_with_sign): New function.
11220 (mul_double_with_sign): Call the new function.
11221 * double-int.h (mul_double_wide_with_sign): Declare the new function.
11222 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
11223 Handle integer types that wrap on overflow.
11224 (quad_int_cmp): New helper function.
11225 (quad_int_pair_sort): Likewise.
11227 2012-08-03 Richard Guenther <rguenther@suse.de>
11229 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
11230 is_gimple_reg on the SSA name, not its variable.
11231 (vect_update_ivs_after_vectorizer): Likewise.
11232 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
11233 * tree-if-conv.c (if_convertible_phi_p): Likewise.
11234 (predicate_scalar_phi): Likewise.
11235 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
11236 (vect_analyze_scalar_cycles_1): Likewise.
11237 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
11238 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
11239 * tree-ssa-reassoc.c (phi_rank): Likewise.
11240 * tree-parloops.c (separate_decls_in_region_name): Use
11241 replace_ssa_name_symbol.
11242 * tree-predcom.c (base_names_in_chain_on): Likewise.
11243 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
11245 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
11246 (create_mul_imm_cand): Likewise.
11247 (create_add_ssa_cand): Likewise.
11248 (create_add_imm_cand): Likewise.
11249 (slsr_process_add): Likewise.
11250 * tree-inline.c (remap_ssa_name): Do not set the type of the
11252 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
11253 Check for default def first.
11255 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
11257 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
11259 * sched-vis.c (print_pattern): Handle SEQUENCE also.
11261 2012-08-02 Richard Henderson <rth@redhat.com>
11265 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
11266 * cfgexpand.c (gimple_expand_cfg): Initialise it.
11267 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
11268 alignment requirements given the known alignment of dynamic_offset.
11269 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
11271 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
11273 * cfgexpand.c (expand_debug_locations): Encapsulate test for
11274 CONST_DOUBLE in macro.
11275 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
11276 * cprop.c (implicit_set_cond_p): Ditto.
11277 * cselib.c (rtx_equal_for_cselib_1): Ditto.
11278 * expmed.c (expand_mult): Ditto.
11279 * expr.c (convert_modes): Ditto.
11280 * ira-costs.c (record_reg_classes): Ditto.
11281 * ira-lives.c (single_reg_class): Ditto.
11282 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
11283 * print-rtl.c (print_rtx): Ditto.
11284 * recog.c (simplify_while_replacing, const_double_operand)
11285 (asm_operand_ok, constrain_operands): Ditto.
11286 * reg-stack.c (subst_stack_regs_pat): Ditto.
11287 * reload.c (find_reloads, find_equiv_reg): Ditto.
11288 * rtlanal.c (replace_rtx): Remove test.
11289 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
11290 test for CONST_DOUBLE in macro.
11291 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
11292 (simplify_unary_operation_1, simplify_const_unary_operation)
11293 (simplify_binary_operation_1, simplify_const_binary_operation)
11294 (simplify_relational_operation_1)
11295 (simplify_const_relational_operations)
11296 (implify_subreg): Ditto.
11297 * varasm.c (output_constant_pool_2): Ditto.
11298 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
11299 * rtl.def (CONST_DOUBLE): Updated comments.
11301 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
11304 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
11305 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
11306 (mips16_rewrite_pool_constant): Make a copy of the pool constant
11307 before adding to a PC-relative table.
11308 (mips16_lay_out_constants): Add a SPLIT_P parameter.
11309 (mips16_load_branch_target, mips16_split_long_branches): New functions.
11310 (mips_reorg): Update call to mips16_lay_out_constants.
11311 Call mips16_split_long_branches.
11312 * config/mips/predicates.md (pc_or_label_operand): Delete.
11313 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
11314 Move the extended_mips16 handling further down.
11315 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
11316 with explicit label_ref and pc. Follow the usual operand numbering.
11317 (*branch_equality<mode>_mips16_inverted): New pattern.
11318 (*jump_mips16): Add length attribute.
11319 (indirect_jump_and_restore_<mode>): New pattern.
11320 (consttable_int): Call mips_strip_unspec_address on the operand.
11322 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
11324 * recog.c (split_insn): Copy the original SET_SRC before using
11327 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
11329 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
11331 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
11333 PR tree-optimization/53805
11334 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
11335 UNORDERED_EXPR even for trapping floating point.
11337 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
11339 PR middle-end/53321
11340 PR middle-end/53865
11341 * ipa-inline-analysis.c (inline_free_summary): Return if
11342 inline_edge_summary_vec is NULL.
11344 * ipa-split.c (execute_split_functions): Check if a function
11345 is inlinable only if inline_edge_summary_vec != NULL.
11347 * ipa.c (symtab_remove_unreachable_nodes): Restore
11348 cgraph_propagate_frequency call when something was changed.
11349 (free_inline_summary): New function.
11350 (pass_ipa_free_inline_summary): New pass.
11352 * passes.c (init_optimization_passes): Add
11353 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
11355 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
11357 * tree-pass.h (pass_ipa_free_inline_summary): New.
11359 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
11361 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
11364 2012-08-02 Richard Guenther <rguenther@suse.de>
11366 * tree-into-ssa.c (struct common_info_d): New struct.
11367 (struct var_info_d, struct ssa_name_info): Use it.
11368 (get_ssa_name_ann): Adjust.
11369 (get_phi_state, set_phi_state): Remove.
11370 (get_common_info): New function.
11371 (get_current_def, set_current_def): Adjust.
11372 (get_def_blocks_for): Take a common info as param.
11373 (set_def_block): Call get_common_info once.
11374 (set_livein_block): Likewise.
11375 (find_def_blocks_for): Adjust.
11376 (insert_phi_nodes): Likewise.
11377 (register_new_def): Call get_common_info once.
11378 (get_reaching_def): Likewise.
11379 (rewrite_debug_stmt_uses): Likewise.
11380 (rewrite_leave_block): Likewise.
11381 (dump_currdefs): Likewise.
11382 (debug_var_infos_r): Adjust.
11383 (register_new_update_single): Call get_common_info once.
11384 (maybe_replace_use_in_debug_stmt): Likewise.
11385 (rewrite_update_leave_block): Likewise.
11386 (mark_use_interesting): Adjust.
11387 (create_new_def_for): Likewise.
11388 (update_ssa): Likewise.
11390 2012-08-02 Michael Matz <matz@suse.de>
11392 * tree-ssa-live.c (set_is_used): Return a bool.
11393 (mark_all_vars_used): Don't take data argument.
11394 (mark_all_vars_used_1): Adjust calls to above, merge handling
11395 of local and global vars.
11396 (remove_unused_scope_block_p): Don't take global_unused_vars,
11397 merge handling of local and global vars.
11398 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
11399 use is_used_p for local and global vars.
11401 2012-08-02 Richard Guenther <rguenther@suse.de>
11403 * tree-flow.h (make_rename_temp): Remove.
11404 * tree-dfa.c (make_rename_temp): Likewise.
11405 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
11406 instead of make_rename_temp.
11407 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
11408 expand_omp_atomic_pipeline): Likewise.
11409 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
11410 build_tm_store, expand_call_tm, expand_transaction,
11411 ipa_tm_insert_gettmclone_call): Likewise.
11412 * tree-complex.c (expand_complex_div_wide): Likewise.
11413 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
11415 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
11417 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
11418 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
11419 gimple_mod_subtract): Likewise.
11421 2012-08-02 Richard Guenther <rguenther@suse.de>
11423 * tree-flow.h (set_default_def): Rename to ...
11424 (set_ssa_default_def): ... this. Take a struct function argument.
11425 (gimple_default_def): Rename to ...
11426 (ssa_default_def): ... this.
11427 (get_or_create_ssa_default_def): New function.
11428 * tree-dfa.c: Likewise.
11429 (dump_variable): Adjust.
11430 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
11431 for used parameters.
11432 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
11434 (split_function): Likewise.
11435 * lto-streamer-in.c (input_ssa_names): Adjust.
11436 * omp-low.c (expand_omp_taskreg): Likewise.
11437 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
11438 * tree-complex.c (init_parameter_lattice_values): Adjust.
11439 (get_component_ssa_name): Likewise.
11440 (update_parameter_components): Likewise.
11441 * tree-inline.c (remap_ssa_name): Likewise.
11442 (setup_one_parameter): Likewise.
11443 (initialize_inlined_parameters): Likewise.
11444 (declare_return_variable): Likewise.
11445 (expand_call_inline): Likewise.
11446 (tree_function_versioning): Likewise.
11447 * tree-into-ssa.c (get_default_def_for): Remove.
11448 (get_reaching_def): Use get_or_create_ssa_default_def instead.
11449 * tree-predcom.c (replace_ref_with): Adjust.
11450 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
11451 (is_unused_scalar_param): Likewise.
11452 (ptr_parm_has_direct_uses): Likewise.
11453 (sra_ipa_reset_debug_stmts): Likewise.
11454 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
11455 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
11456 * tree-ssa-live.c (verify_live_on_entry): Likewise.
11457 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
11458 avoid repeated default def lookups.
11459 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
11460 * tree-tailcall.c (arg_needs_copy_p): Adjust.
11461 (tree_optimize_tail_calls_1): Likewise.
11463 2012-08-02 Richard Guenther <rguenther@suse.de>
11465 PR tree-optimization/50672
11467 2012-08-01 Richard Guenther <rguenther@suse.de>
11469 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
11470 (replace_block_by): Adjust.
11472 2012-08-02 Richard Guenther <rguenther@suse.de>
11474 * tree-dfa.c (referenced_var_lookup): Remove.
11475 (find_referenced_vars): Remove.
11476 (pass_referenced_vars): Likewise.
11477 (make_rename_temp): Do not add referenced vars.
11478 (dump_referenced_vars): Remove.
11479 (debug_referenced_vars): Likewise.
11480 (dump_dfa_stats): Do not dump referenced var stats.
11481 (find_vars_r): Remove.
11482 (find_referenced_vars_in): Likewise.
11483 (referenced_var_check_and_insert): Likewise.
11484 (add_referenced_var_1): Likewise.
11485 (remove_referenced_var): Likewise.
11486 * tree-flow.h (referenced_var_lookup): Likewise.
11487 (struct gimple_df): Remove referenced_vars member.
11488 (typedef referenced_var_iterator): Remove.
11489 (FOR_EACH_REFERENCED_VAR): Likewise.
11490 (num_referenced_vars): Likewise.
11491 (debug_referenced_vars, dump_referenced_vars): Likewise.
11492 (add_referenced_var_1, add_referenced_var): Likewise.
11493 (remove_referenced_var): Likewise.
11494 (find_referenced_vars_in): Likewise.
11495 * tree-flow-inline.h (gimple_referenced_vars): Remove.
11496 (first_referenced_var): Likewise.
11497 (end_referenced_vars_p): Likewise.
11498 (next_referenced_var): Likewise.
11499 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
11500 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
11502 * tree-into-ssa.c (dump_decl_set): Likewise.
11503 (pass_build_ssa): Do not require PROP_referenced_vars.
11504 * tree-ssa.c (target_for_debug_bind): Virtual operands are
11505 not suitable, but all register type vars are.
11506 (init_tree_ssa): Do not allocate referenced vars.
11507 (delete_tree_ssa): Do not free referenced vars.
11508 * cgraphunit.c (init_lowered_empty_function): Do not set
11509 PROP_referenced_vars.
11510 (assemble_thunk): Do not add referenced vars.
11511 * gimple-fold.c (canonicalize_constructor_val): Likewise.
11512 (gimplify_and_update_call_from_tree): Likewise.
11513 * gimple-streamer-in.c (input_bb): Likewise.
11514 * passes.c (init_optimization_passes): Do not run
11515 pass_referenced_vars.
11516 (dump_properties): Do not dump PROP_referenced_vars.
11517 * tree-inline.c (remap_decl): Do not add referenced vars.
11518 (remap_gimple_op_r): Likewise.
11519 (copy_tree_body_r): Likewise.
11520 (copy_bb): Likewise.
11521 (setup_one_parameter): Likewise.
11522 (declare_return_variable): Likewise.
11523 (copy_decl_for_dup_finish): Likewise.
11524 (copy_arguments_for_versioning): Likewise.
11525 (tree_function_versioning): Likewise.
11526 * tree-pass.h (PROP_referenced_vars): Remove.
11527 (pass_referenced_vars): Likewise.
11528 * tree-profile.c (gimple_gen_edge_profiler): Do not add
11530 (gimple_gen_interval_profiler): Likewise.
11531 (gimple_gen_pow2_profiler): Likewise.
11532 (gimple_gen_one_value_profiler): Likewise.
11533 (gimple_gen_ic_profiler): Likewise.
11534 (gimple_gen_average_profiler): Likewise.
11535 (gimple_gen_ior_profiler): Likewise.
11536 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
11537 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
11538 (move_stmt_op): Likewise.
11539 * tree-ssa-operands.c (create_vop_var): Likewise.
11540 * gimple-low.c (record_vars_into): Likewise.
11541 * gimplify.c (gimple_regimplify_operands): Likewise.
11542 (force_gimple_operand_1): Likewise.
11543 * omp-low.c (expand_omp_for_generic): Likewise.
11544 (expand_omp_for_static_chunk): Likewise.
11545 (expand_omp_atomic_pipeline): Likewise.
11546 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
11547 (translate_clast_assignment): Likewise.
11548 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
11549 (handle_scalar_deps_crossing_scop_limits): Likewise.
11550 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
11551 * ipa-split.c (split_function): Likewise.
11552 * matrix-reorg.c (transform_access_sites): Likewise.
11553 * trans-mem.c (tm_log_add): Likewise.
11554 (ipa_tm_insert_gettmclone_call): Likewise.
11555 * tree-complex.c (create_one_component_var): Likewise.
11556 * tree-if-conv.c (ifc_temp_var): Likewise.
11557 * tree-parloops.c (take_address_of): Likewise.
11558 (initialize_reductions): Likewise.
11559 (separate_decls_in_region_name): Likewise.
11560 (create_call_for_reduction_1): Likewise.
11561 (separate_decls_in_region): Likewise.
11562 * tree-predcom.c (predcom_tmp_var): Likewise.
11563 (reassociate_to_the_same_stmt): Likewise.
11564 * tree-sra.c (build_ref_for_offset): Likewise.
11565 (create_access_replacement): Likewise.
11566 (get_replaced_param_substitute): Likewise.
11567 (sra_ipa_reset_debug_stmts): Likewise.
11568 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
11569 (rewrite_bittest): Likewise.
11570 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
11571 * tree-ssa-loop-manip.c (create_iv): Likewise.
11572 (tree_transform_and_unroll_loop): Likewise.
11573 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
11574 (build_and_insert_call): Likewise.
11575 (gimple_expand_builtin_cabs): Likewise.
11576 (execute_optimize_bswap): Likewise.
11577 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
11578 (abs_replacement): Likewise.
11579 (cond_store_replacement): Likewise.
11580 (cond_if_else_store_replacement_1): Likewise.
11581 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11582 * tree-ssa-pre.c (get_representative_for): Likewise.
11583 (create_expression_by_pieces): Likewise.
11584 (insert_into_preds_of_block): Likewise.
11585 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
11586 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
11587 (eliminate_redundant_comparison): Likewise.
11588 (rewrite_expr_tree_parallel): Likewise.
11589 (get_reassoc_pow_ssa_name): Likewise.
11590 * tree-ssa-strlen.c (get_string_length): Likewise.
11591 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
11592 (build_arrays): Likewise.
11593 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11594 (create_tailcall_accumulator): Likewise.
11595 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
11596 (vect_create_addr_base_for_vector_ref): Likewise.
11597 (vect_permute_store_chain): Likewise.
11598 (vect_permute_load_chain): Likewise.
11599 * tree-vect-generic.c (expand_vector_divmod): Likewise.
11600 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
11601 (vect_build_loop_niters): Likewise.
11602 (vect_generate_tmps_on_preheader): Likewise.
11603 (vect_update_ivs_after_vectorizer): Likewise.
11604 (vect_gen_niters_for_prolog_loop): Likewise.
11605 (vect_do_peeling_for_alignment): Likewise.
11606 (vect_create_cond_for_align_checks): Likewise.
11607 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
11608 (vect_handle_widen_op_by_const): Likewise.
11609 (vect_operation_fits_smaller_type): Likewise.
11610 (vect_recog_over_widening_pattern): Likewise.
11611 * tree-vect-stmts.c (vect_init_vector): Likewise.
11613 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
11616 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
11618 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
11621 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
11622 falling back to copy_rtx on non-autoinc machines.
11623 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
11625 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
11628 * valtrack.h, valtrack.c: New.
11629 * Makefile.in (VALTRACK_H): New.
11630 (OBJS): Add valtrack.o.
11632 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
11633 * combine.c: Include valtrack.h.
11634 (make_compound_operation): Publish.
11635 (cleanup_auto_inc_dec): Move to valtrack.c.
11636 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
11637 (propagate_for_debug): Likewise. Add this_basic_block parameter.
11638 Adjust all callers.
11639 * cselib.c: Include valtrack.h.
11641 * df-problems.c: Likewise.
11642 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
11643 (dead_debug_finish, dead_debug_add): Likewise.
11644 (dead_debug_insert_temp): Likewise.
11645 * df.h (struct dead_debug_use): Move to valtrack.h.
11646 (struct dead_debug, enum debug_temp_where): Likewise.
11647 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
11648 (dead_debug_finish, dead_debug_add): Likewise.
11649 (dead_debug_insert_temp): Likewise.
11650 * rtl.h (make_compound_operation): Declare.
11652 2012-08-01 Catherine Moore <clm@codesourcery.com>
11653 Sandra Loosemore <sandra@codesourcery.com>
11655 * config/mips/mips-cpus.def (34kn): New.
11656 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
11657 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
11658 * config/mips/mips-tables.opt: Regenerate.
11659 * doc/invoke.texi (MIPS Options): Document -march=34kn.
11661 2012-08-01 Richard Henderson <rth@redhat.com>
11663 * expmed.h (NUM_MODE_PARTIAL_INT): New.
11664 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
11665 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
11666 (struct expmed_op_costs): Likewise.
11667 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
11668 (expmed_mode_index): New.
11669 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
11670 (convert_cost_ptr): Likewise.
11671 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
11672 (init_expmed_one_conv): Split out from ...
11673 (init_expmed_one_mode): ... here. Iterate conversions over
11674 partial integer modes too.
11675 (init_expmed): Iterate over partial integer modes too.
11677 2012-08-01 Richard Henderson <rth@redhat.com>
11679 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
11680 (m32c_init_libfuncs): Remove.
11681 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
11682 (cstore<QHPSI>4): New expander.
11684 2012-08-01 Richard Guenther <rguenther@suse.de>
11686 * tree-flow-inline.h (referenced_var): Remove.
11687 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
11689 * tree-sra.c (candidates): New global hashtable.
11690 (candidate): New function.
11691 (sra_initialize): Initialize candidates.
11692 (sra_deinitialize): Free candidates.
11693 (disqualify_candidate): Remove candidate from candidates.
11694 (maybe_add_sra_candidate): New function.
11695 (find_var_candidates): Walk over all local decls and parameters,
11696 add candidates to candidates hashtable.
11697 (find_param_candidates): Add candidates to candidates hashtable.
11698 (analyze_all_variable_accesses): Use candidate instead of
11701 2012-08-01 Tom de Vries <tom@codesourcery.com>
11703 * tree-vrp.c (find_case_label_ranges): New function.
11704 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
11705 find_case_label_ranges instead of find_case_label_range. Handle second
11708 2012-08-01 Michael Matz <matz@suse.de>
11710 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
11711 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
11712 (dump_dfa_stats): Don't dump stats about var anns.
11713 (collect_dfa_stats): Don't collect them.
11714 (add_referenced_var_1): Don't set var annotation pointers.
11715 (remove_referenced_var): Ditto, and only remove it it's in the
11718 * tree-flow-inline.h (var_ann): Remove.
11719 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
11721 * tree-inline.c (remapped_type): Remove.
11722 (can_be_nonlocal): Most variable will be considered live here,
11723 return false earlier.
11724 (remap_decls): Don't call var_ann, all variables will be considered
11726 (copy_debug_stmt): Ditto, and use is_global_var.
11728 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
11729 determine if a variable was referred to, not var_ann.
11730 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
11731 (remove_unused_locals): Ditto.
11732 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
11733 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
11734 * tree.c (copy_node_stat): Don't clear var ann pointer.
11735 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
11737 (DECL_VAR_ANN_PTR): Remove.
11739 2012-08-01 Michael Matz <matz@suse.de>
11741 * tree-flow.h (struct var_ann_d): Rename used member.
11742 (set_is_used): Don't declare.
11743 * tree-flow-inline.h (clear_is_used): Remove.
11744 (set_is_used, is_used_p): Move to ...
11745 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
11746 on the side bitmap.
11747 (usedvars): New bitmap.
11748 (dump_scope_block): Don't dump unusedness.
11749 (remove_unused_locals): Allocate and free usedvars.
11750 * tree-nrv.c (tree_nrv): Don't clear used flags here.
11752 2012-08-01 Michael Matz <matz@suse.de>
11754 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
11755 base_index members.
11756 * tree-ssa-live.h (struct _var_map): Remove basevars member.
11757 (VAR_ANN_BASE_INDEX): Remove.
11758 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
11759 of var annotation to compress index space. Don't deal with above
11761 (var_map_base_fini): Don't free basevars.
11762 (init_var_map): Don't clear basevars.
11764 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
11766 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
11767 base_name to base_expr.
11768 (struct cand_chain_d): Likewise.
11769 (base_cand_hash): Likewise.
11770 (base_cand_eq): Likewise.
11771 (record_potential_basis): Likewise.
11772 (alloc_cand_and_find_basis): Likewise.
11773 (create_mul_ssa_cand): Likewise.
11774 (create_mul_imm_cand): Likewise.
11775 (create_add_ssa_cand): Likewise.
11776 (create_add_imm_cand): Likewise.
11777 (slsr_process_cast): Likewise.
11778 (slsr_process_copy): Likewise.
11779 (dump_candidate): Likewise.
11780 (base_cand_dump_callback): Likewise.
11781 (unconditional_cands_with_known_stride_p): Likewise.
11782 (cand_increment): Likewise.
11784 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
11786 PR tree-optimization/46556
11787 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
11788 (base_cand_map): Change to hash table.
11789 (base_cand_hash): New function.
11790 (base_cand_free): Likewise.
11791 (base_cand_eq): Likewise.
11792 (lookup_cand): Change base_cand_map to hash table.
11793 (find_basis_for_candidate): Likewise.
11794 (base_cand_from_table): Exclude CAND_REF.
11795 (restructure_reference): New function.
11796 (slsr_process_ref): Likewise.
11797 (find_candidates_in_block): Call slsr_process_ref.
11798 (dump_candidate): Handle CAND_REF.
11799 (base_cand_dump_callback): New function.
11800 (dump_cand_chains): Change base_cand_map to hash table.
11801 (replace_ref): New function.
11802 (replace_refs): Likewise.
11803 (analyze_candidates_and_replace): Call replace_refs.
11804 (execute_strength_reduction): Change base_cand_map to hash table.
11806 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
11808 * config/i386/i386.c (ix86_address_subreg_operand): Reject
11810 (ix86_print_operand_address): Assert that parts.base and parts.index
11811 are non-NULL after call to simplify_subreg.
11813 2012-08-01 Richard Guenther <rguenther@suse.de>
11815 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
11817 2012-08-01 Richard Guenther <rguenther@suse.de>
11819 * graphite-clast-to-gimple.c (translate_clast_user): Rename
11821 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
11823 * tree-call-cdce.c (tree_call_cdce): Use
11824 mark_virtual_operands_for_renaming.
11825 * tree-eh.c (sink_clobbers): Simplify.
11826 * tree-flow.h (mark_sym_for_renaming): Remove.
11827 (mark_virtual_operands_for_renaming): New function.
11828 * tree-if-conv.c (tree_if_conversion): Use
11829 mark_virtual_operands_for_renaming.
11830 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
11831 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
11832 (mark_virtual_operands_for_renaming): New function.
11833 * tree-loop-distribution.c (tree_loop_distribution): Use
11834 mark_virtual_operands_for_renaming.
11835 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
11836 update stmts, use mark_virtual_operands_for_renaming.
11837 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
11838 (replace_block_by): Adjust.
11839 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
11840 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
11841 mark_virtual_operands_for_renaming.
11842 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
11843 * tree-vectorizer.c (vectorize_loops): Likewise.
11845 2012-08-01 Richard Guenther <rguenther@suse.de>
11847 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
11848 add ssa_renaming_needed and rename_vops flags.
11849 (SYMS_TO_RENAME): Remove.
11850 (symbol_marked_for_renaming): Likewise.
11851 (mark_virtual_ops_for_renaming): Likewise.
11852 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
11854 (mark_for_renaming, marked_for_renaming): New functions.
11855 (symbol_marked_for_renaming): Remove.
11856 (dump_currdefs): Adjust.
11857 (maybe_replace_use): Likewise.
11858 (maybe_replace_use_in_debug_stmt): Likewise.
11859 (maybe_register_def): Likewise.
11860 (rewrite_update_phi_arguments): Likewise.
11861 (rewrite_update_enter_block): Likewise.
11862 (fini_ssa_renamer): Clear update SSA status here ...
11863 (delete_update_ssa): ... not here. Free rename set.
11864 (prepare_block_for_update): Compute which decls need renaming.
11865 (dump_update_ssa): Adjust.
11866 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
11867 (need_ssa_update_p): Adjust.
11868 (insert_updated_phi_nodes_for): Likewise.
11869 (update_ssa): Likewise.
11870 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
11871 for virtual and real operands.
11872 (finalize_ssa_uses): Likewise.
11873 * tree-ssanames.c (init_ssanames): Adjust.
11874 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
11875 execute_update_addresses_taken): Add bitmap to keep track of which
11876 candidates are suitable for rewriting and later renaming by SSA update.
11877 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
11878 * tree-dfa.c (make_rename_temp): Do not mark real operands for
11880 * cgraphunit.c (assemble_thunk): Likewise.
11881 * gimplify.c (gimple_regimplify_operands): Likewise.
11882 (force_gimple_operand_1): Likewise.
11883 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
11884 * tree-inline.c (declare_return_variable): Likewise.
11885 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
11886 mark_virtual_ops_for_renaming.
11887 (create_stores_for_reduction): Likewise.
11888 (create_loads_and_stores_for_name): Likewise.
11889 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
11890 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
11891 (execute_load_motion): Likewise.
11892 (remove_stmt): Likewise.
11893 (execute_pred_commoning_chain): Likewise.
11894 * tree-sra.c (create_access_replacement): Do not rename real operands.
11895 (get_unrenamed_access_replacement): Unify with ...
11896 (get_access_replacement): ... this.
11897 (get_repl_default_def_ssa_name): Adjust.
11898 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
11900 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
11901 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
11903 2012-07-31 DJ Delorie <dj@redhat.com>
11905 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
11906 extensions for TPF, unless specifically selected.
11908 2012-08-01 Alan Modra <amodra@gmail.com>
11911 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
11912 of lo_sum offsets. Comment. Assert mode at least word size
11913 rather than bypassing powerpc64 word offset check.
11915 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
11917 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
11918 costs for vec_perm and vec_promote_demote down to more natural values.
11919 (struct _rs6000_cost_data): New data structure.
11920 (rs6000_density_test): New function.
11921 (rs6000_init_cost): Change to use rs6000_cost_data.
11922 (rs6000_add_stmt_cost): Likewise.
11923 (rs6000_finish_cost): Perform density test when vectorizing a loop.
11925 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
11927 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
11928 of RTX_UNARY function-like operations. Print unknown expression
11929 RTX classes as pseudo-functions.
11930 (print_pattern): Simplify return pattern printing.
11931 (dump_insn_slim): Print the value of notes as a pattern for proper
11932 printing of CFA notes.
11934 2012-07-31 Dehao Chen <dehao@google.com>
11936 * predict.c (tree_estimate_probability_driver): Normalize the
11937 loop when initializing the loop optimizer.
11939 2012-07-31 Richard Guenther <rguenther@suse.de>
11941 * tree-flow.h (struct var_ann_d): Remove need_phi_state
11942 and current_def members.
11943 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
11944 (def_blocks): Remove.
11945 (struct var_info_d): New.
11946 (var_infos): New hashtable.
11947 (struct ssa_name_info): Add def_blocks member.
11948 (get_ssa_name_ann): Adjust.
11949 (get_var_info): New function.
11950 (get_phi_state, set_phi_state, get_current_def,
11951 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
11952 (insert_phi_nodes_compare_def_blocks): Rename to ...
11953 (insert_phi_nodes_compare_var_infos): ... this and adjust.
11954 (insert_phi_nodes): Adjust.
11955 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
11956 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
11957 (debug_def_blocks_r): Rename to ...
11958 (debug_var_infos_r): ... this and adjust.
11959 (var_info_hash): New function.
11960 (var_info_eq): Likewise.
11961 (rewrite_blocks): Adjust.
11962 (init_ssa_renamer): Likewise.
11963 (fini_ssa_renamer): Likewise.
11964 (delete_update_ssa): Likewise.
11965 (update_ssa): Likewise.
11966 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
11968 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
11970 PR tree-optimization/53773
11971 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
11972 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
11973 * tree-vect-loop.c (new_loop_vec_info): Initialize
11974 LOOP_VINFO_OPERANDS_SWAPPED field.
11975 (destroy_loop_vec_info): Restore canonical form.
11976 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
11977 (vect_is_simple_reduction_1): Likewise.
11979 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
11981 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
11982 start of each new line.
11983 * final.c (final_scan_insn): If the final dump is requested as
11984 slim RTL, dump slim RTL to the assembly file also.
11986 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
11990 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
11993 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
11995 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11996 only if producer writes to the register given by regno.
11998 2012-07-31 Nick Clifton <nickc@redhat.com>
12000 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
12001 support for reporting stack usage.
12003 * config/frv/frv.c (QUAD): Fix typo.
12004 (frv_expand_prologue): Report stack usage.
12006 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
12009 * gengtype.c (struct walk_type_data): Add have_this_obj field.
12010 (walk_type): For functions that take a this_obj argument and
12011 that process fields with a GTY((length)) argument, write the
12012 test that write_types_local_process_field will write also at the
12013 head of the loop, effectively unswitching the loop.
12014 (write_func_for_structure, write_local_func_for_structure): Clear
12015 have_this_obj before calling walk_type.
12016 (write_local_func_for_structure): Set have_this_obj before walk_type.
12017 (write_array): Set have_this_obj for output of local pointer walking
12018 functions but not for marker functions.
12019 (write_types_local_process_field): Assert have_this_obj is set.
12021 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
12024 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
12027 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12028 * targhooks.c (default_mode_dependent_address_p): Delete code
12029 for GO_IF_MODE_DEPENDENT_ADDRESS.
12030 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
12031 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
12032 * doc/tm.texi: Regenerate.
12033 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
12034 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
12036 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12037 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12038 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12039 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
12040 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12041 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
12043 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12045 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
12047 * expmed.h (NUM_MODE_VECTOR_INT): Define.
12048 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
12049 (struct target_expmed): Convert x_mul_highpart_cost and
12050 x_mul_widen_cost fields to be indexed by integer modes.
12051 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
12052 of type struct expmed_op_cheap. Convert other cost fields to be
12053 of type struct_expmed_op_costs.
12054 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
12055 indexing of respective fields.
12056 (expmed_op_cheap_ptr): New function.
12057 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
12058 (expmed_op_cost_ptr): New function.
12059 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
12060 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
12061 sdiv_cost_ptr, udiv_cost_ptr): Call it.
12063 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
12064 Julian Brown <julian@codesourcery.com>
12066 * doc/invoke.texi (MIPS Options): Document -mno-float.
12067 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
12070 2012-07-30 Joseph Myers <joseph@codesourcery.com>
12072 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
12074 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12076 PR middle-end/53823
12077 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
12078 for special cases. Don't initialize coeff and is_neg.
12080 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12081 Richard Earnshaw <rearnsha@arm.com>
12083 * target.def (vector_alignment): New target hook.
12084 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
12085 * doc/tm.texi: Regenerate.
12086 * targhooks.c (default_vector_alignment): New function.
12087 * targhooks.h (default_vector_alignment): Add prototype.
12088 * stor-layout.c (layout_type): Use targetm.vector_alignment.
12089 * config/arm/arm.c (arm_vector_alignment): New function.
12090 (TARGET_VECTOR_ALIGNMENT): Define.
12092 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
12093 vector type alignment instead of size.
12094 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
12095 element type size directly instead of computing it from alignment.
12096 Fix variable naming and comment.
12098 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
12099 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12101 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
12102 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
12103 (ix86_handle_option): Handle mrdseed option.
12104 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
12105 (x86_64-*-*): Likewise.
12106 * config/i386/prfchwintrin.h: New header.
12107 * config/i386/cpuid.h (bit_RDSEED): New.
12108 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12110 * config/i386/i386-c.c: Define __RDSEED__ if needed.
12111 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
12113 (ix86_option_override_internal): Handle new option.
12114 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
12115 (ix86_builtins): Add enum entries for RDSEED* builtins.
12116 (ix86_init_mmx_sse_builtins): Define new builtins.
12117 (ix86_expand_builtin): Expand RDSEED* builtins.
12118 * config/i386/i386.h (TARGET_RDSEED): New.
12119 * config/i386/i386.md (rdseed<mode>_1): New.
12120 * config/i386/i386.opt (mrdseed): New.
12121 * config/i386/x86intrin.h: Include rdseedintrin.h.
12123 2012-07-30 Richard Guenther <rguenther@suse.de>
12125 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
12126 (rewrite_stmt): Likewise.
12127 (rewrite_enter_block): Likewise.
12128 (pass_build_ssa): Do not update virtual SSA form during TODO.
12129 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
12130 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
12132 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
12135 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
12138 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
12141 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
12142 Use t_reg_operand predicate. Add split for negated case.
12143 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
12144 * config/sh/sh.c (expand_ashiftrt): Likewise.
12146 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
12149 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
12150 of trying to emit ashlsi3_n.
12152 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12153 Steven Bosscher <steven@gcc.gnu.org>
12155 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
12156 option applications and option being applied to arrays of atomic types.
12157 (walk_type): Allow "atomic" option on strings too.
12158 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
12159 for the array field.
12160 * vec.h: Describe the atomic object "A" type of the macros in
12161 the header comment.
12162 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
12163 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
12164 * doc/gty.texi: Clarify that GTY option "length" is only for
12165 arrays of non-atomic objects. Fix typo in the description of the
12168 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
12170 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
12171 zero-extended addresses. Return false if the address has less
12172 than two components.
12173 (ix86_split_lea_for_addr): Unconditionally convert target and
12174 all address operands to requested mode.
12175 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
12176 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
12178 (zero-extended add splitter): New splitter to conditionally split
12179 non-destructive adds.
12180 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
12182 2012-07-28 Alan Modra <amodra@gmail.com>
12185 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
12186 multi-gpr reload to cases where predicate passes. Do the same for
12187 64-bit multi-gpr reload.
12189 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
12191 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
12192 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
12193 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
12194 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
12195 macro definitions and re-purpose as inline functions.
12196 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
12197 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
12198 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
12199 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
12200 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
12201 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
12202 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
12203 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
12204 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
12206 (convert_cost_ptr): New function, split out from...
12207 (set_convert_cost, convert_cost): ...here.
12208 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
12209 * gimple-ssa-strength-reduction.c: Likewise.
12211 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
12213 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
12214 diagnostic_initialize.
12216 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
12219 * config/sh/sh.c (shiftcosts): Remove case where first operand
12220 is a const_int. Move COSTS_N_INSNS usage into caller ...
12221 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
12222 calculated instead of MAX_COST.
12224 2012-07-27 Richard Guenther <rguenther@suse.de>
12226 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
12227 check whether SSA form is not up-to-date.
12228 * tree-flow.h (name_mappings_registered_p): Remove.
12229 * tree-into-ssa.c (struct repl_map_d): Remove.
12230 (repl_tbl): Likewise.
12231 (struct ssa_name_info): Add repl_set member.
12232 (update_ssa_obstack): New static global.
12233 (get_ssa_name_ann): Initialize repl_set.
12234 (clear_ssa_name_info): Assert age did not wrap.
12235 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
12236 (names_replaced_by): Adjust.
12237 (add_to_repl_tbl): Likewise.
12238 (dump_tree_ssa_stats): Likewise.
12239 (init_update_ssa): Initialize update_ssa_obstack.
12240 (delete_update_ssa): Free update_ssa_obstack.
12241 (name_mappings_registered_p): Remove.
12242 (update_ssa): Adjust.
12244 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
12246 * config/rs6000/constraints.md: Delete "q" constraint.
12247 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
12248 Delete the "q" alternative.
12249 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
12250 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
12251 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
12252 adjust to MQ_REGNO removal.
12253 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
12255 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
12256 (enum reg_class): Adjust comment. Delete MQ_REGS.
12257 (REG_CLASS_CONTENTS): Adjust.
12258 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
12259 * config/rs6000/rs6000.md: Delete MQ_REGNO.
12260 (movsi_internal1, movsi_internal1_single, movhi_internal,
12261 movqi_internal, movcc_internal1, movsf_hardfloat,
12262 movsf_softfloat): Delete the "q" alternative.
12263 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
12264 ctr<mode>_internal6): Delete "q" constraint.
12266 2012-07-27 Richard Guenther <rguenther@suse.de>
12268 * tree-into-ssa.c (def_blocks_p): New typedef.
12269 (insert_phi_nodes_compare_def_blocks): New function.
12270 (insert_phi_nodes): Do not walk over referenced vars, instead
12271 walk over recorded def_blocks, record relevant ones and sort
12272 them to avoid repeated hashtable lookups.
12274 2012-07-27 Richard Guenther <rguenther@suse.de>
12276 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
12277 Remove param documentation.
12278 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
12279 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
12280 * tree-flow.h (mark_set_for_renaming): Remove.
12281 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
12282 (add_new_name_mapping): Remove bookkeeping code.
12283 (dump_update_ssa): Remove stats dumping code.
12284 (init_update_ssa): Remove stats allocation code.
12285 (delete_update_ssa): Remove stats freeing code.
12286 (mark_set_for_renaming): Remove.
12287 (switch_virtuals_to_full_rewrite_p): Likewise.
12288 (switch_virtuals_to_full_rewrite): Likewise.
12289 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
12291 2012-07-27 Marek Polacek <polacek@redhat.com>
12293 * cgraphunit.c: Rename varpool_finalize_variable to
12294 varpool_finalize_decl in a comment.
12296 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
12298 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
12299 Delete code for -mno-power, -mpower, and -mpower2.
12300 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
12301 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
12303 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
12304 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
12305 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
12307 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
12308 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
12309 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
12311 (TARGET_POWER): Delete.
12312 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
12313 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
12315 (TARGET_POWER): Delete.
12316 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
12317 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
12319 (TARGET_POWER): Delete.
12320 * config/rs6000/darwin.h (TARGET_POWER): Delete.
12321 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
12322 support for -mpower, -mpower2, and -mno-power.
12323 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
12325 (rs6000_cpu_cpp_builtins): Likewise.
12326 * config/rs6000/rs6000-cpus.def: Likewise.
12327 * config/rs6000/rs6000-tables.opt: Regenerate.
12328 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
12329 (rs6000_option_override_internal): Adjust.
12330 (rs6000_conditional_register_usage): Adjust.
12331 (rs6000_emit_move): Adjust.
12332 (rs6000_common_init_builtins): Adjust.
12333 (rs6000_init_libfuncs): Adjust.
12334 (rs6000_output_function_prologue): Adjust.
12335 (rs6000_adjust_cost): Adjust.
12336 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
12337 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
12339 (TARGET_DEFAULT): Adjust.
12340 (PROCESSOR_POWER): Delete.
12341 (SHIFT_COUNT_TRUNCATED): Adjust.
12342 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
12343 (extendqisi2_power): Delete.
12344 (extendqisi2_no_power): Adjust.
12345 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
12347 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
12348 (anonymous doz insn patterns): Delete.
12350 (abssi2_power): Delete.
12351 (abssi2_nopower): Adjust.
12352 (nabs_power, nabs_nopower): Likewise.
12353 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
12354 Likewise. Delete anonymous post-reload splitter.
12355 (mulsi3_no_mq_internal1): rename to...
12356 (mulsi3_internal1): New define_insn.
12357 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
12359 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
12360 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
12361 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
12362 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
12363 quous_call): Likewise.
12364 (maskir_internal1, maskir_internal2, maskir_internal3,
12365 maskir_internal4, maskir_internal5, maskir_internal6,
12366 maskir_internal7, maskir_internal8): Delete.
12367 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
12368 (anonymous sl insn patterns): Delete.
12369 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
12370 (lshrsi3_64): Adjust.
12371 (anonymous sr insn patterns): Delete.
12372 (anonymous rrib insn patterns): Delete.
12373 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
12374 (anonymous sra insn patterns): Delete.
12375 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
12376 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
12377 fctiwz_<mode>): Adjust.
12378 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
12379 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
12380 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
12381 umulsi3_highpart_no_mq): Adjust.
12382 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
12383 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
12384 lshrdi3_internal1): Adjust.
12385 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
12386 (movti_power): Delete.
12387 (movti_string): Adjust.
12388 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
12389 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
12390 stmsi4_power, stmsi3_power): Delete.
12391 (anonymous movmemsi insn patterns): Adjust.
12392 (lfq_power2, stfq_power2): Delete.
12393 (eq<mode>, eq<mode>_compare): Adjust.
12394 (eqsi_power): Delete.
12396 (anonymous le, lt, ge, gt insn patterns): Delete.
12397 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
12398 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
12399 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12400 MULTILIB_MATCHES): Adjust.
12401 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
12402 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
12403 Delete -mcpu=power and -mcpu=power2 documentation.
12405 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
12407 * config/rs6000/601.md: New file.
12408 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
12410 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
12411 * config/rs6000/driver-rs6000.c (detect_processor_aix,
12412 struct asm_names): Likewise.
12413 * config/rs6000/rios1.md: Delete file.
12414 * config/rs6000/rios2.md: Delete file.
12415 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
12417 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
12418 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
12419 * config/rs6000/rs6000-tables.opt: Regenerated.
12420 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
12422 (rs6000_option_override_internal): Delete support for RIOS CPUs.
12423 (rs6000_conditional_register_usage): Adjust comment.
12424 (rs6000_issue_rate):Delete support for RIOS CPUs.
12425 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
12427 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
12428 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
12429 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
12431 (include "rios1.md", include "rios2.md"): Delete.
12432 (include "601.md"): New.
12433 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
12435 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
12437 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
12438 rios2.md . Add 601.md .
12440 2012-07-26 Richard Henderson <rth@redhat.com>
12442 * doc/extend.texi (attribute): Document hot/cold for labels.
12443 * predict.c (tree_estimate_probability_bb): Handle hot/cold
12444 attributes on user labels.
12445 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
12447 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
12448 Sandra Loosemore <sandra@codesourcery.com>
12450 * cse.c (find_comparison_args): Check for cycles of any length.
12452 2012-07-26 Nick Clifton <nickc@redhat.com>
12454 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
12455 (mn10300_get_live_callee_saved_regs): If requested return a count
12456 of the number of bytes in the mask.
12457 (mn10300_expand_prologue): Add argument to invocation of
12458 mn10300_get_live_callee_regs.
12459 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
12460 mn10300_get_live_callee_saved_regs.
12461 (mn10300_initial_offset): Likewise.
12462 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
12464 * config/mn10300/mn10300.md (return_ret): Add argument to
12465 invocation of mn10300_get_live_callee_saved_regs.
12467 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
12469 PR regression/54084
12470 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
12471 pointer difference check.
12473 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
12475 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
12476 (mbc_entry_eq): Likewise.
12477 (mult_costs): Likewise.
12478 (cost_tables_exist): Likewise.
12479 (initialize_costs): Likewise.
12480 (finalize_costs): Likewise.
12481 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
12482 (add_regs_cost): Remove.
12483 (multiply_regs_cost): Likewise.
12484 (add_const_cost): Likewise.
12485 (extend_or_trunc_reg_cost): Likewise.
12486 (negate_reg_cost): Likewise.
12487 (struct mbc_entry): Likewise.
12488 (multiply_by_const_cost): Likewise.
12489 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
12490 change multiply_by_const_cost to mult_by_coeff_cost.
12491 (force_expr_to_var_cost): Likewise.
12492 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
12493 (get_computation_cost_at): Change add_regs_cost calls to add_cost
12494 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
12495 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
12496 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
12497 * tree-ssa-address.c (expmed.h): New #include.
12498 (most_expensive_mult_to_index): Change multiply_by_const_cost to
12499 mult_by_coeff_cost.
12500 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
12501 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
12502 neg_cost, and convert_cost instead of IVOPTS interfaces.
12503 (execute_strength_reduction): Remove calls to initialize_costs and
12505 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
12506 (init_expmed_one_mode): Initialize convert rtx_def; initialize
12507 x_convert_cost for related modes.
12508 (mult_by_coeff_cost): New function.
12509 * expmed.h (NUM_MODE_INT): New #define.
12510 (struct target_expmed): Add x_convert_cost matrix.
12511 (set_convert_cost): New inline function.
12512 (convert_cost): Likewise.
12513 (mult_by_coeff_cost): New extern decl.
12514 * tree-flow.h (initialize_costs): Remove decl.
12515 (finalize_costs): Likewise.
12516 (multiply_by_const_cost): Likewise.
12517 (add_regs_cost): Likewise.
12518 (multiply_regs_cost): Likewise.
12519 (add_const_cost): Likewise.
12520 (extend_or_trunc_reg_cost): Likewise.
12521 (negate_reg_cost): Likewise.
12522 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
12523 (tree-ssa-address.o): Update dependencies.
12525 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
12527 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
12528 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
12529 (TEST_BIT): Make a static inline function for stronger type checking.
12530 (SET_BIT): Don't handle sbitmaps with popcount.
12531 (RESET_BIT): Likewise.
12532 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
12533 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
12534 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
12535 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
12536 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
12537 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
12538 * sparseset.h: Add explanation of sparse set representation.
12540 2012-07-26 Richard Guenther <rguenther@suse.de>
12542 PR tree-optimization/54098
12543 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
12544 original range was UNDEFINED.
12546 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12548 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
12549 vld1Q_dupu64 tests.
12551 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
12554 * config/sh/sh.opt (mzdcbranch): New option.
12555 * doc/invoke.texi: Document it.
12556 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
12557 instead of TARGET_HARD_SH4.
12558 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
12559 for TARGET_HARD_SH4.
12561 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12564 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
12566 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
12567 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
12568 from expander. Do not emit shift insn for not-SHMEDIA case.
12569 (ashlsi3_std): Replace with ...
12570 (ashlsi3_k, ashlsi3_d): ... these new insns.
12571 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
12572 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
12573 (gen_ashift_hi): Make static.
12574 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
12577 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
12578 Jim Wilson <jimwilso@cisco.com>
12580 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
12581 TARGET_BIG_ENDIAN_DEFAULT.
12583 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
12585 * gimple-low.c (lower_try_catch): New function.
12586 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
12587 <GIMPLE_CATCH>: Delete.
12588 <GIMPLE_EH_FILTER>: Likewise.
12590 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
12592 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
12593 of BIT_FIELD_REF for ignored results.
12594 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
12595 CONSTRUCTOR has vector type before using vector accessors on it.
12596 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
12597 #2 of BIT_FIELD_REF.
12598 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
12599 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
12600 not process operand #1 and #2.
12601 (convert_local_reference_op): Likewise.
12602 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
12604 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
12605 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
12607 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
12608 (build6_stat): Delete.
12609 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
12611 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
12613 PR tree-optimization/30318
12614 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
12616 [MINUS_EXPR]: Merge with PLUS_EXPR.
12618 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
12619 Paul Brook <paul@codesourcery.com>
12622 * target.def (warn_func_return): New hook.
12623 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
12624 * doc/tm.texi: Regenerate.
12625 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12627 * ipa-pure-const.c (warn_function_noreturn): Check
12628 targetm.warn_func_return.
12629 * tree-cfg.c (execute_warn_function_return): Likewise.
12630 * config/spu/spu.c (spu_warn_func_return): New.
12631 (TARGET_WARN_FUNC_RETURN): Define.
12632 * config/rx/rx.c (rx_warn_func_return): New.
12633 (TARGET_WARN_FUNC_RETURN): Define.
12634 * config/avr/avr.c (avr_warn_func_return): New.
12635 (TARGET_WARN_FUNC_RETURN): Define.
12636 * config/arm/arm.c (arm_warn_func_return): New.
12637 (TARGET_WARN_FUNC_RETURN): Define.
12638 * config/mcore/mcore.c (mcore_warn_func_return): New.
12639 (TARGET_WARN_FUNC_RETURN): Define.
12640 (saved_warn_return_type, saved_warn_return_type_count): Remove.
12641 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
12643 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
12645 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
12646 function to implement assembler dialects.
12647 (output_asm_insn): Use do_assembler_dialects.
12648 (asm_fprintf): Likewise.
12650 2012-07-25 Richard Henderson <rth@redhat.com>
12653 * libfuncs.h: Don't include optabs.h.
12654 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
12655 * optabs.c (hash_libfunc): Don't cast members to int.
12656 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
12658 2012-07-25 Dodji Seketeli <dodji@redhat.com>
12660 * basic-block.c: Fix typo in comment.
12662 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
12663 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12665 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
12666 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
12667 (ix86_handle_option): Handle mprfchw option.
12668 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
12669 (x86_64-*-*): Likewise.
12670 * config/i386/prfchwintrin.h: New header.
12671 * config/i386/cpuid.h (bit_PRFCHW): New.
12672 (bit_BMI): Formatting fix.
12673 (bit_HLE): Likewise.
12674 (bit_RTM): Likewise.
12675 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12677 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
12678 * config/i386/i386.c (ix86_target_string): Define
12679 -mprfchw option. Formatting fixes.
12680 (PTA_HLE): Formatting fix.
12682 (ix86_option_override_internal): Handle new option.
12683 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
12684 * config/i386/i386.h (TARGET_PRFCHW): New.
12685 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
12686 * config/i386/i386.opt (mprfchw): New.
12687 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
12688 * config/i386/x86intrin.h: Include prfchwintrin.h.
12690 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
12692 * config/i386/i386.md (stack_protect_set): Disable the pattern
12693 for Android since Android libc (bionic) does not provide random
12694 value for stack protection guard at gs:0x14. Guard value
12695 will be provided from external symbol (default implementation).
12696 (stack_protect_set_<mode>): Likewise.
12697 (stack_protect_test): Likewise.
12698 (stack_protect_test_<mode>): Likewise.
12699 * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
12700 not have Bionic by default
12701 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
12702 Macro OPTION_BIONIC is defined in this file and provides Bionic
12703 accessibility status
12705 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
12707 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
12709 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12712 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
12713 (case ${target}): Add btver2.
12714 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12715 -march=native recognize btver2 processors.
12716 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12717 btver2 def_and_undef
12718 * config/i386/i386.c (struct processor_costs btver2_cost): New
12720 (m_BTVER2): New definition.
12721 (m_AMD_MULTIPLE): Includes m_BTVER2.
12722 (initial_ix86_tune_features): Add btver2 tune.
12723 (processor_target_table): Add btver2 entry.
12724 (static const char *const cpu_names): Add btver2 entry.
12725 (software_prefetching_beneficial_p): Add btver2.
12726 (ix86_option_override_internal): Add btver2 instruction sets.
12727 (ix86_issue_rate): Add btver2.
12728 (ix86_adjust_cost): Add btver2.
12729 * config/i386/i386.h (TARGET_BTVER2): New definition.
12730 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
12731 (enum processor_type): Add PROCESSOR_BTVER2.
12732 * config/i386/i386.md (define_attr "cpu"): Add btver2.
12734 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12736 * doc/tm.texi: Regenerate.
12737 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
12738 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
12739 (default_finish_cost): Add prologue and epilogue costs.
12740 * targhooks.h (default_add_stmt_cost): Change parameter list.
12741 (default_finish_cost): Likewise.
12742 * target.def (init_cost): Change documentation string.
12743 (add_stmt_cost): Change documentation string and parameter list.
12744 (finish_cost): Likewise.
12745 * target.h (vect_cost_model_location): New enum.
12746 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
12747 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
12749 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
12750 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
12751 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
12752 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
12754 (struct _stmt_vec_info): Remove cost substruct.
12755 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
12756 (stmt_vinfo_set_outside_of_loop_cost): Remove.
12757 (builtin_vectorization_cost): New function.
12758 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
12759 (add_stmt_cost): Change parameter list.
12760 (finish_cost): Likewise.
12761 (vect_model_simple_cost): Likewise.
12762 (vect_model_store_cost): Likewise.
12763 (vect_model_load_cost): Likewise.
12764 (record_stmt_cost): Likewise.
12765 (vect_get_load_cost): Likewise.
12766 (vect_get_known_peeling_cost): Likewise.
12767 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
12768 list; call record_stmt_cost for prologue and epilogue costs.
12769 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
12770 prologue and epilogue costs; remove computation of vec_outside_cost;
12771 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
12772 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
12773 costs; call add_stmt_cost for prologue and epilogue costs.
12774 (vect_model_induction_cost): Revise call to add_stmt_cost for body
12775 costs; call add_stmt_cost for prologue costs.
12776 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
12777 list for function and arguments for calls to vect_get_load_cost and
12778 vect_get_store_cost.
12779 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
12780 vect_get_data_access_cost and vect_get_known_peeling_cost; use
12781 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
12782 latter call and discard their results; rename stmt_cost_vec to
12783 body_cost_vec; correct possible storage leak for body_cost_vec.
12784 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
12786 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
12787 body_cost_vec; add extra dummy parameter on calls to
12788 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
12789 argument list on call to add_stmt_cost.
12790 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
12791 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
12792 builtin_vectorization_cost; add "where" parameter on call to
12794 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
12795 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
12796 rename stmt_cost_vec to body_cost_vec.
12797 (vect_model_promotion_demotion_cost): Add vect_body argument to call
12798 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
12799 to stmt_vinfo_set_outside_of_loop_cost.
12800 (vect_model_store_cost): Change parameter list; call record_stmt_cost
12801 for prologue costs; add vect_body argument to call to record_stmt_cost;
12802 rename stmt_cost_vec to body_cost_vec; remove call to
12803 stmt_vinfo_set_outside_of_loop_cost.
12804 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
12805 vect_body argument to calls to record_stmt_cost.
12806 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
12807 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
12808 remove call to stmt_vinfo_set_outside_of_loop_cost.
12809 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
12810 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
12811 call record_stmt_cost for prologue costs.
12812 (vectorizable_store): Change argument list for call to
12813 vect_model_store_cost.
12814 (vectorizable_load): Change argument list for call to
12815 vect_model_load_cost.
12816 (new_stmt_vec_info): Remove assignment to
12817 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
12818 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
12819 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
12820 (spu_finish_cost): Add prologue and epilogue costs.
12821 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
12822 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
12823 (i386_finish_cost): Add prologue and epilogue costs.
12824 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
12826 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
12827 (rs6000_finish_cost): Add prologue and epilogue costs.
12828 * tree-vect-slp.c (vect_free_slp_instance): Rename
12829 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
12830 (vect_create_new_slp_node): Remove assignment to
12831 SLP_TREE_OUTSIDE_OF_LOOP_COST.
12832 (vect_get_and_check_slp_defs): Change parameter list; change argument
12833 lists to calls to vect_model_store_cost and vect_model_simple_cost.
12834 (vect_build_slp_tree): Change parameter list; change argument lists
12835 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
12836 recursive self-calls; remove setting of outside_cost from
12837 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
12839 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
12840 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
12841 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
12843 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
12844 body_cost_vec; handle null ci->stmt; add vect_body argument to call
12845 to add_stmt_cost; simplify calls to targetm.vectorize.
12846 builtin_vectorization_cost; return vec_prologue_cost and
12847 vec_epilogue_cost from finish_cost.
12848 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
12849 body_cost_vec; add vect_body argument to call to add_stmt_cost.
12851 2012-07-24 Richard Henderson <rth@redhat.com>
12853 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
12854 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12855 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12856 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12857 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
12859 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12860 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
12861 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
12862 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12863 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
12864 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12865 * doc/tm.texi: Rebuild.
12867 2012-07-24 Richard Henderson <rth@redhat.com>
12869 * optabs.def: New file.
12870 * Makefile.in (OPTABS_H): Add insn-opinit.h.
12871 (MOSTLYCLEANFILES): Likewise.
12872 (insn-opinit.o): Remove reload.h
12873 (simple_rtl_generated_c): Remove insn-opinit.c.
12874 (s-opinit): New rule.
12875 (build/genopinit.o): Add optabs.def.
12876 * genopinit.c (rtx_upname): New.
12877 (optabs): Extract to optabs.def
12878 (enum optab_tag, struct optab_def_d, optabs): New.
12879 (struct pattern_d, patterns): New.
12880 (match_pattern): Split out from ...
12881 (gen_insn): ... here. Push matches on patterns vec.
12882 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
12883 (header_file_name, source_file_name, handle_arg): New.
12884 (open_outfile): New.
12885 (main): Sort and emit new tables. Generate lookup_handler,
12886 raw_optab_handler, swap_optab_enable.
12887 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
12888 * optabs.c (code_to_optab_): Remove.
12889 (hash_libfunc): Update for optab name change.
12890 (eq_libfunc): Likewise.
12891 (convert_optab_libfunc): Update computation of optab member;
12892 use the new convlib_def table.
12893 (optab_libfunc): Similarly.
12894 (set_optab_libfunc, set_conv_libfunc): Likewise.
12895 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
12896 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
12897 (init_optabs): Don't call them; export the data to optabs.def.
12898 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
12899 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
12900 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
12901 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
12902 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
12903 (gen_int_signed_fixed_libfunc): Likewise.
12904 (gen_int_unsigned_fixed_libfunc): Likewise.
12905 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
12906 (gen_ufloat_conv_libfunc): Likewise.
12907 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
12908 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12909 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
12910 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
12911 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
12912 (debug_optab_libfuncs): Update for optab representation change.
12913 * optabs.h: Include insn-opinit.h.
12914 (optab, convert_optab, direct_optab): New typedefs.
12915 (struct optab_handlers, struct widening_optab_handlers): Remove.
12916 (struct optab_libcall_d): Rename from optab_d; remove code_,
12917 handlers, widening members.
12918 (struct convert_optab_libcall_d): Rename from convert_optab_d;
12919 remove code_ and handlers members.
12920 (enum optab_index, enum convert_optab_index): Remove.
12921 (enum direct_optab_index): Remove.
12922 (code_to_optab_): Fix array range.
12923 (optab_to_code): Covert to inline function.
12924 (optab_to_code_, convlib_def, normlib_def): Declare.
12925 (raw_optab_handler, swap_optab_enable): Declare.
12926 (unknown_optab): Remove; export to optabs.def
12927 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
12928 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
12929 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
12930 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
12931 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
12932 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
12933 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
12934 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
12935 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
12936 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
12937 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
12938 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
12939 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
12940 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
12941 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
12942 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
12943 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
12944 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
12945 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
12946 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
12947 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
12948 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
12949 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
12950 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
12951 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
12952 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
12953 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
12954 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
12955 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
12956 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
12957 vec_realign_load_optab, vec_widen_umult_hi_optab,
12958 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
12959 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
12960 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
12961 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
12962 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
12963 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
12964 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
12965 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
12966 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
12967 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
12968 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
12969 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
12970 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
12971 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
12972 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
12973 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
12974 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
12975 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
12976 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
12977 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
12978 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
12979 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
12980 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
12981 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
12982 atomic_exchange_optab, atomic_compare_and_swap_optab,
12983 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
12984 atomic_sub_fetch_optab, atomic_and_fetch_optab,
12985 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
12986 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
12987 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
12988 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
12989 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
12990 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
12991 atomic_thread_fence_optab, atomic_signal_fence_optab,
12992 vec_perm_optab, vec_perm_const_optab): Likewise.
12993 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
12994 and x_direct_optab_table members; add pat_enable.
12995 (optab_table, convert_optab_table, direct_optab_table): Remove.
12996 (optab_handler): Use raw_optab_handler.
12997 (widening_optab_handler, convert_optab_handler): Likewise.
12998 (set_optab_handler, set_widening_optab_handler): Remove.
12999 (set_convert_optab_handler, set_direct_optab_handler): Remove.
13000 (direct_optab_handler): Defer to optab_handler.
13001 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
13003 2012-07-24 Jason Merrill <jason@redhat.com>
13005 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
13006 match MEM_STAT_DECL.
13007 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
13009 2012-07-24 Richard Henderson <rth@redhat.com>
13011 * optabs.h (struct optab_d): Rename code member to code_.
13012 (struct convert_optab_h): Likewise.
13013 (code_to_optab_): Rename from code_to_optab.
13014 (code_to_optab, optab_to_code): New.
13015 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
13016 * ifcvt.c (noce_emit_move_insn): Likewise.
13017 * optabs.c (simplify_expand_binop): Use optab_to_code.
13018 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
13019 (avoid_expensive_constant, expand_binop_directly): Likewise.
13020 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
13021 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
13022 (have_insn_for, debug_optab_libfuncs): Likewise.
13023 (init_optab, init_optabv, init_convert_optab): Update for optab
13024 member name change.
13026 * libfuncs.h: Include optabs.h.
13027 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
13028 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
13029 (lto-streamer-in.o, dwarf2out.o): Update deps.
13031 * optabs.h (unknown_optab): New.
13032 * builtins.c (interclass_mathfn_icode): Use it.
13033 * dojump.c (do_compare_rtx_and_jump): Likewise.
13034 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
13035 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
13036 (expand_vector_operations_1): Likewise.
13037 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13038 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
13040 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
13042 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
13044 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13047 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
13049 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
13051 ("neon_vld3_lane<mode>":VMQ): Likewise.
13052 ("neon_vld3_dup<mode>":VDX): Likewise.
13053 ("neon_vst3_lane<mode>":VD): Likewise.
13054 ("neon_vst3_lane<mode>":VMQ): Likewise.
13056 2012-07-24 Roland McGrath <mcgrathr@google.com>
13058 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
13059 stack alignment padding.
13061 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
13064 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
13065 negative constant address for TARGET_X32 ...
13066 (ix86_decompose_address): ... here. Reject constant addresses
13067 that don't satisfy x86_64_immediate_operand predicate.
13069 2012-07-24 Julian Brown <julian@codesourcery.com>
13071 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
13073 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
13075 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
13076 Move test to check that there is a popcount function for the the number
13077 of bits in SBITMAP_ELT_BITS to sbitmap.c.
13078 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
13079 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
13081 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
13082 * configure: Regenerate.
13083 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
13084 (GCC_MEM_STAT_ARGUMENTS): New define.
13085 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
13086 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
13087 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
13088 FINAL_PASS_MEM_STAT): Define.
13089 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
13090 * ggc.h (ggc_record_overhead, ggc_free_overhead,
13091 ggc_prune_overhead_list): Remove internal prototypes, they are defined
13092 already in ggc-internal.h.
13093 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
13095 (add_statistics): Likewise.
13096 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
13097 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
13098 wrappers around "survived" and "stats" members.
13099 (alloc_large_page): Always initialize survived.
13100 (ggc_internal_alloc_zone_stat): Likewise.
13101 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
13102 GATHER_STATISTICS is non-0.
13103 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
13104 (sweep_pages): Always increase survived.
13105 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
13106 (calculate_average_page_survival): Always define.
13107 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
13108 (ggc_print_statistics): Likewise.
13109 (ggc_pch_read): Likewise.
13110 * ggc-page.c (struct globals): Always define "stats" member.
13111 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
13112 (ggc_free): Likewise.
13113 (ggc_collec): Likewise.
13114 (ggc_print_statistics): Likewise.
13115 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
13116 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
13117 * gimple.h (enum gimple_alloc_kind): Always define.
13118 (gimple_alloc_kind): Likewise.
13119 * tree-flow.h (phinodes_print_statistics): Always define.
13120 (ssanames_print_statistics): Likewise.
13121 * vec.h (vec_heap_free): Always define.
13122 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
13123 * alloc-pool.c (alloc_pool_descriptor): Always define.
13124 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
13125 (empty_alloc_pool): Likewise.
13126 (pool_alloc): Likewise.
13127 (pool_free): Likewise.
13128 (dump_alloc_pool_statistics): Likewise.
13129 (print_statistics): Always define.
13130 * bitmap.c (struct bitmap_descriptor): Always define.
13131 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
13132 (register_overhead): Always define.
13133 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
13134 (bitmap_element_allocate): Likewise.
13135 (bitmap_elt_clear_from): Likewise.
13136 (bitmap_obstack_alloc_stat): Likewise.
13137 (bitmap_gc_alloc_stat): Likewise.
13138 (bitmap_obstack_free): Likewise.
13139 (bitmap_find_bit): Likewise.
13140 (bitmap_ior_and_into): Likewise.
13141 (bitmap_print): Likewise.
13142 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
13143 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
13144 (gimple_alloc_kind_names): Likewise.
13145 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
13146 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
13147 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
13148 rtvec_alloc_sizes): Always define.
13149 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
13150 (rtx_alloc_stat): Likewise.
13151 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
13152 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
13153 tree_node_sizes, tree_node_kind_names): Always define.
13154 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
13156 (type_hash_canon): Likewise.
13157 (dump_tree_statistics): Likewise.
13158 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
13160 (ssanames_print_statistics): Likewise.
13161 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
13162 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
13163 (phinodes_print_statistics): Likewise.
13164 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
13165 * vec.c (struct vec_descriptor): Always define.
13166 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
13167 vec_descriptor, rester_overhead, free_overhead): Likewise.
13168 (cmp_statistic): Likewise.
13169 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
13170 (vec_heap_o_reserve_1): Likewise.
13171 (dump_vec_loc_statistics): Likewise.
13173 2012-07-24 Richard Guenther <rguenther@suse.de>
13175 PR tree-optimization/53616
13176 * tree-loop-distribution.c (ldist_gen): Do not change
13177 partition ordering when merging partitions.
13179 2012-07-24 Alan Modra <amodra@gmail.com>
13183 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
13184 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
13185 Adjust all rs6000_legitimate_offset_address_p calls.
13186 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
13187 (rs6000_secondary_reload_gpr): Declare.
13188 (rs6000_legitimate_offset_address_p): Update prototype.
13189 (rs6000_offsettable_memref_p): Delete.
13190 (rs6000_secondary_reload_ppc64): Delete.
13191 * config/rs6000/rs6000.c (address_offset): New function.
13192 (mem_operand_gpr): Likewise.
13193 (rs6000_legitimate_offset_address_p): Add worst_case param. When
13194 not worst_case assume class of regs with least restrictive offsets.
13196 (legitimate_lo_sum_address_p): Simplify register mode tests.
13197 (rs6000_legitimize_address): Likewise. Assume best case offset
13198 addressing. Combine ELF and MACHO lo_sum code.
13199 (rs6000_mode_dependent_address): Correct offset addressing limits.
13200 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
13201 Use reg_mode to help rs6000_legitimate_offset_address_p.
13202 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
13203 gpr load/store when offset too large.
13204 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
13205 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
13206 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
13207 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
13208 d->m,m->d,d->d. Correct size of gpr load/store.
13209 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
13211 (movti_ppc64): Likewise.
13212 (movdi_internal32): Likewise. Also disparage fprs.
13213 (movdi_mfpgpr, movdi_internal64): Likewise.
13214 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
13215 (movtf_softfloat): Order alternatives.
13216 (extenddftf2_internal): Use 'm' and 'Y' for store.
13217 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
13218 (stack_protect_setdi, stack_protect_testdi): Likewise.
13219 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
13220 (movdf_softfloat64): Likewise.
13221 (reload_<mode>_store): Adjust reload_di_store to provide
13222 reload_si_store as well.
13223 (reload_<mode>_load): Likewise.
13225 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
13228 * config/sh/predicates.md (general_movsrc_operand,
13229 general_movdst_operand): Reject T_REG.
13230 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
13231 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
13232 Remove T_REG alternatives.
13233 (*negtstsi): New insn.
13235 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
13238 * config/sh/sh.md (mulsf3_ie): Delete.
13239 (mulsf3_i4): Rename to mulsf3_i.
13240 (mulsf3): Emit mulsf3_i insn.
13242 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
13244 * config/sh/sh.md (addc1, subc1): Delete.
13245 (adddi3_compact): Use addc instead of addc1.
13246 (subdi3_compact): Use subc instead of subc1.
13248 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
13250 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
13251 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
13252 split_cost argument signed.
13253 (ix86_avoid_lea_for_add): Cleanup.
13254 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
13255 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
13256 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
13258 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
13260 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
13262 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
13265 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
13266 * config/i386/i386.c (ix86_print_operand_address): Ditto.
13267 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
13268 addresses. Prevent zero extensions of CONST_INT operands.
13270 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
13272 * sbitmap.h (struct int_list): Remove.
13273 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
13274 Remove prototypes of non-existing function.
13275 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
13276 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
13278 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
13279 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
13280 * basic-block.h: ... here.
13281 * sbitmap.c: Do not include basic-block.h.
13282 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
13283 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
13284 * cfganal.c: ... here.
13285 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
13286 * gcse.c (compute_code_hoist_vbeinout): Likewise.
13287 * lcm.c (compute_antinout_edge, compute_available): Likewise.
13288 * Makefile.in: Fix sbitmap.o dependencies.
13290 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13291 Nick Clifton <nickc@redhat.com>
13293 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
13294 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
13295 (unused) parameter to void *.
13297 2012-07-23 Richard Guenther <rguenther@suse.de>
13299 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
13300 instead of referenced vars.
13302 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
13304 * coverage.c: Refer to "notes file" instead of "graph file"
13305 in all comments. Explain history of bbg prefix.
13306 * gcov-io.h: Likewise.
13307 * gcov.c: Likewise.
13308 (find_source): Likewise in fnotice.
13309 (read_graph_file): Likewise.
13310 (read_count_file): Likewise.
13311 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
13312 and "data file" explicitly in the explanation of the files.
13314 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
13316 PR tree-optimization/53881
13317 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
13318 for each label and compare them instead of labels.
13320 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
13322 * opts.c (common_handle_option): Do not set
13323 flag_value_profile_transformations for -fprofile-generate.
13324 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
13325 (BB_TO_GCOV_INDEX): Remove.
13326 (output_location): Don't use it.
13327 (branch_prob): Likewise. Don't fiddle with the index of
13328 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
13329 (find_spanning_tree):
13330 * gcov.c (struct function_info): Document that blocks 0 and 1
13331 are the entry resp. exit blocks in gcov, too, like in GCC itself.
13332 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
13333 blocks identification.
13334 (output_lines): Likewise.
13335 * value-prof.c (gimple_value_profile_transformations): Do not
13336 test flag_value_profile_transformations again.
13337 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
13338 transformation functions.
13339 (gimple_values_to_profile):
13340 Don't test flag_value_profile_transformations
13341 * tree-profile.c (tree_profiling): Assert that the cgraph is in
13342 the CGRAPH_STATE_IPA_SSA state.
13343 Do not set, or look at, after_tree_profile.
13344 * function.h (struct function): Remove after_tree_profile bit.
13345 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
13346 * tree-inline.c (initialize_cfun): Don't copy it.
13347 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
13348 * lto-streamer-in.c (input_struct_function_base): Likewise.
13350 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
13352 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
13353 (SH_DYNAMIC_SHIFT_COST): Use it.
13354 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
13355 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
13356 Add sanity check for input value. Add function description.
13357 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
13358 lshrsi3_d): Use TARGET_DYNSHIFT.
13360 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
13362 * config/sh/sh.md (negc): Delete expander.
13363 (*negc): Rename insn to negc.
13365 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
13368 * config/i386/i386.md (*lea): New insn pattern.
13370 (*lea<mode>_2): Ditto.
13371 (*lea_{3,4,5,6}_zext): Ditto.
13372 * config/i386/predicates.md (lea_address_operand): Do not reject
13373 zero-extended address operands.
13374 * config/i386/constraints.md (j): Remove address constraint.
13375 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
13377 (ix86_print_operand_address): Handle SImode subreg of an address.
13378 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
13380 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
13382 Emit executable-stack note correctly for CRIS targets.
13383 * config/cris/cris.c (cris_file_end): New function.
13384 (TARGET_ASM_FILE_END): Define.
13386 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
13387 Maxim Kuvyrkov <maxim@codesourcery.com>
13388 NetLogic Microsystems Inc.
13390 * config/mips/mips.c (mips_issue_rate): Handle XLP.
13391 * config/mips/mips.md: Include xlp.md.
13392 * config/mips/xlp.md: New file.
13394 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
13396 PR gcov-profile/32543
13397 * profile.c (branch_prob): Update total_num_edges_instrumented and
13398 report the number of edges to instrument.
13400 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
13402 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
13404 2012-07-21 Andrew Pinski <apinski@cavium.com>
13406 * config/mips/mips.md (*popcountdi2_trunc): New pattern
13407 to handle popcount of a truncation.
13409 2012-07-21 Andrew Pinski <apinski@cavium.com>
13411 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
13412 Add a bool argument.
13413 * config/mips/mips.c (mips_block_move_straight): Update call to
13414 mips_expand_ext_as_unaligned_load.
13415 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
13416 Accept DImode dest when the width is that of SImode.
13417 * config/mips/mips.md (extv): Update call to
13418 mips_expand_ext_as_unaligned_load.
13421 2012-07-21 Andrew Pinski <apinski@cavium.com>
13423 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
13426 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13428 * config/mips/mips.md (define_attr sync_*): Move before "type".
13429 (define_attr "type"): New values "atomic" and "syncloop".
13430 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
13431 Set "type" attribute.
13432 * config/mips/generic.md (generic_atomic, generic_syncloop):
13434 * config/mips/10000.md, config/mips/20kc.md,
13435 * config/mips/24k.md, config/mips/4130.md,
13436 * config/mips/4k.md, config/mips/5400.md,
13437 * config/mips/5500.md, config/mips/5k.md,
13438 * config/mips/7000.md, config/mips/74k.md,
13439 * config/mips/9000.md, config/mips/loongson2ef.md,
13440 * config/mips/loongson3a.md, config/mips/octeon.md,
13441 * config/mips/sb1.md, config/mips/sr71k.md,
13442 * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
13444 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
13446 * config/sh/sh.md: Group and sort shift related patterns.
13447 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
13449 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
13451 * config/cris/cris.c (cris_asm_output_ident): Remove unused
13452 local variables section_asm_op, size, buf.
13454 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
13455 Steven Bosscher <steven@gcc.gnu.org>
13457 * config/rs6000/power4.md (power4-store-update): Fix reservation.
13458 (power4-three): Likewise.
13460 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
13461 Greta Yorsh <Greta.Yorsh@arm.com>
13463 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
13464 * config/arm/arm-cores.def (cortex-a15): Use it.
13466 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
13467 Greta Yorsh <Greta.Yorsh@arm.com>
13469 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
13470 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
13471 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
13472 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
13473 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
13474 (arm_fa726te_tune): Likewise.
13476 2012-07-20 Richard Guenther <rguenther@suse.de>
13478 * tree-dfa.c (collect_dfa_stats): Simplify.
13479 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
13481 * cfgexpand.c (estimated_stack_frame_size): Walk over local
13482 decls instead of referenced vars.
13483 * tree-ssa.c (delete_tree_ssa): Simplify.
13484 * tree-tailcall.c (find_tail_calls): Walk over local decls
13485 instead of referenced vars.
13486 (add_virtual_phis): Remove.
13487 (tree_optimize_tail_calls_1): Instead mark the virtual operand
13490 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
13492 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
13493 (brief_dump_cfg): Update prototype to take flags argument.
13494 (check_bb_profile): Remove prototype.
13495 * tracer.c (tracer): Update brief_dump_cfg calls.
13496 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
13497 Call dump_bb_info before and after the cfghook dump_bb. Terminate
13498 the dump with a newline.
13499 (dump_flow_info): Do not call check_bb_profile.
13500 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
13501 (check_bb_profile): Make static. Take indent and flags arguments.
13502 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
13503 check_bb_profile. Print one edge per line.
13504 (brief_dump_cfg): Take a flags argument, and filter out
13505 TDF_COMMENT and TDF_DETAILS.
13506 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
13507 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
13508 dump_bb_info here, it is already called from dump_bb. Idem for
13510 (dump_gimple_bb_footer): Likewise.
13511 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
13512 avoid broken dumps for statement histograms.
13513 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
13514 not call pp_flush here, the buffer should be empty.
13515 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
13516 * sched-vis.c (debug_bb_slim): Likewise.
13517 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
13518 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
13519 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
13520 (dump_function_to_file): Do not call check_bb_profile on
13521 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
13522 Use dump_bb instead of gimple_dump_bb.
13523 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
13524 * passes.c (execute_function_dump): Always call print_rtl_with_bb
13526 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
13527 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
13528 bottom of each basic block.
13530 2012-07-20 Richard Guenther <rguenther@suse.de>
13532 PR tree-optimization/54031
13533 * tree-ssa-ccp.c (get_value_from_alignment): Use
13534 get_pointer_alignment_1.
13536 2012-07-20 Richard Guenther <rguenther@suse.de>
13538 * tree-inline.c (add_local_variables): Remove check_var_ann
13539 parameter and dead code.
13540 (expand_call_inline): Adjust.
13541 (tree_function_versioning): Likewise.
13543 2012-07-20 Jakub Jelinek <jakub@redhat.com>
13546 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
13547 of just the first one.
13549 2012-07-20 Richard Guenther <rguenther@suse.de>
13551 * builtins.c (get_object_alignment_2): Correct offset handling
13552 when using type alignment of a MEM_REF kind base.
13554 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
13557 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
13558 (_lzcnt_u64): Ditto.
13560 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
13562 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
13564 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
13566 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
13567 defining statement is a SSA name that occurs in abnormal PHIs.
13569 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
13571 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
13574 2012-07-19 Jakub Jelinek <jakub@redhat.com>
13576 PR rtl-optimization/53942
13577 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
13578 directly from likely spilled non-fixed hard registers, move them
13581 2012-07-19 Steve Ellcey <sellcey@mips.com>
13583 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
13586 2012-07-19 Jason Merrill <jason@redhat.com>
13589 * dwarf2out.c (get_die_parent): New.
13590 (generate_type_signature): Use it.
13592 2012-07-19 Richard Henderson <rth@redhat.com>
13594 * config/ia64/vect.md (smulv4hi3_highpart): New.
13595 (umulv4hi3_highpart): New.
13596 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
13597 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
13598 (udot_prodv8qi, sdot_prodv8qi): Remove.
13599 (sdot_prodv4hi, udot_prodv4hi): Remove.
13600 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
13601 * config/ia64/ia64-protos.h: Update.
13603 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
13604 vectors larger than UNITS_PER_WORD.
13606 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
13607 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
13608 dummy != CODE_FOR_nothing value.
13610 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
13612 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
13613 * doc/tm.texi: Regenerate.
13614 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
13615 * config/sh/sh.h (MODE_AFTER): Update.
13616 * config/epiphany/epiphany.h (MODE_AFTER): Update.
13618 2012-07-19 Jakub Jelinek <jakub@redhat.com>
13620 PR middle-end/54017
13621 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
13622 (cleanup_tree_cfg_bb): Don't call it.
13623 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
13626 2012-07-19 Christian Bruel <christian.bruel@st.com>
13629 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
13631 2012-07-19 Richard Guenther <rguenther@suse.de>
13632 Eric Botcazou <ebotcazou@adacore.com>
13634 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
13635 about transition from invariant to known bits.
13636 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
13638 2012-07-19 Richard Guenther <rguenther@suse.de>
13640 PR tree-optimization/53970
13641 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
13643 2012-07-19 Tristan Gingold <gingold@adacore.com>
13644 Richard Henderson <rth@redhat.com>
13646 * opts.c (finish_options): Handle UI_SEH.
13647 * expr.c (build_personality_function): Handle UI_SEH.
13648 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
13649 * coretypes.h (unwind_info_type): Add UI_SEH.
13650 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
13652 (i386_pe_seh_init_sections): Likewise.
13653 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
13654 (TARGET_ASM_INIT_SECTIONS): Define.
13655 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
13656 (i386_except_unwind_info): New function.
13658 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
13659 Chao-ying Fu <fu@mips.com>
13661 * config/mips/mips.opt (mmcu): New option.
13662 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
13663 _mips_mcu when TARGET_MCU.
13664 (ASM_SPEC): Pass mcu options to the assembler.
13665 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
13667 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
13669 * config.gcc (v850-*-rtems*): New target.
13670 * config/v850/rtems.h: New.
13671 * config/v850/t-rtems: New.
13673 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
13675 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
13676 of flags controlling optimization; add -ftree-slsr to list of flags
13677 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
13678 enabled by default at -O2; add -fvect-cost-model to list of flags
13679 enabled by default at -O3; document -fhoist-adjacent-loads and
13681 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
13682 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
13684 * common.opt: Add -ftree-slsr with flag_tree_slsr.
13686 2012-07-18 Jie Zhang <jzhang918@gmail.com>
13687 Julian Brown <julian@codesourcery.com>
13689 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
13690 (arm_size_rtx_costs): Likewise.
13691 (neon_valid_immediate): Add a case for double 0.0.
13693 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
13694 Mark Shinwell <shinwell@codesourcery.com>
13695 Julian Brown <julian@codesourcery.com>
13697 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
13698 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
13699 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
13700 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
13702 * config/arm/arm.md (neon_type): Update comment.
13704 2012-07-18 Richard Guenther <rguenther@suse.de>
13706 PR tree-optimization/53970
13707 * tree.h (contains_packed_reference): Remove.
13708 * expr.c (contains_packed_reference): Likewise.
13709 * tree-vect-data-refs.c (not_size_aligned): New function.
13710 (vector_alignment_reachable_p): Use it.
13711 (vect_supportable_dr_alignment): Likewise.
13713 2012-07-18 Richard Guenther <rguenther@suse.de>
13715 * tree.h (get_object_or_type_alignment): Remove.
13716 * builtins.c (get_object_alignment_2): New function copied from
13717 get_object_alignment_1. Take extra argument to indicate whether
13718 we take the address of EXP. Rework to use type alignment information
13719 if not, and return whether the result is an approximation or not.
13720 (get_object_alignment_1): Wrap around get_object_alignment_2.
13721 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
13722 we take the address.
13723 (get_object_or_type_alignment): Remove.
13724 * expr.c (expand_assignment): Call get_object_alignment.
13725 (expand_expr_real_1): Likewise.
13727 2012-07-18 Nick Clifton <nickc@redhat.com>
13729 * doc/invoke.texi (ARM Options): Document -munaligned-access.
13731 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
13733 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
13734 expander. Use arith_reg_dest predicate.
13735 (rotldi3, rotrdi3): Remove constraints in expander.
13736 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
13737 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
13740 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
13743 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
13745 * config/sh/sh.c (sh_option_override): Do not change
13746 flag_finite_math_only. Set TARGET_IEEE to complement of
13747 flag_finite_math_only.
13748 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
13749 of mieee and mno-ieee behavior.
13751 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
13753 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
13755 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
13757 * dumpfile.h (TDF_COMMENT): New define.
13758 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
13759 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
13760 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
13761 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
13762 Move to new file cfg-flags.h.
13763 (enum cfg_edge_flags): New enum, using cfg-flags.h.
13764 (EDGE_ALL_FLAGS): Compute value automatically.
13765 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
13766 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
13767 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
13768 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
13769 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
13770 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
13771 (BB_ALL_FLAGS): New, compute value automatically.
13772 (dump_bb_info): Update prototype.
13773 (dump_edge_info): Update prototype.
13774 * cfg-flags.h: New file.
13775 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
13776 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
13777 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
13778 (debug_bb): Update dump_bb call.
13779 (dump_cfg_bb_info): Remove.
13780 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
13781 Adjust verbosity using TDF_* flags. Check that the basic block flags
13782 are within the range of BB_ALL_FLAGS.
13783 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
13784 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
13785 first for consistency with other dump functions.
13786 (dump_bb): Update prototype accordingly.
13787 * cfghooks.c: Include dumpfile.h.
13788 (verify_flow_info): Update dump_edge_info calls.
13789 (dump_bb): Take a flags argument and pass it around.
13790 Use dump_bb_info to dump common information about a basic block.
13791 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
13792 (debug_flow_info): Moved here from cfgrtl.c.
13793 * profile.c (is_edge_inconsistent): Update dump_bb calls.
13794 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
13795 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
13796 print_rtl_slim_with_bb): Remove prototypes.
13797 (dump_insn_slim): Adjust prototype to take a const_rtx.
13798 (print_rtl_with_bb): Adjust prototype.
13799 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
13800 * sched-vis.c (dump_insn_slim): Take a const_rtx.
13801 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
13802 (print_rtl_slim_with_bb): Remove.
13803 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
13804 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
13805 for that. Prototype here near DEBUG_FUNCTION marker.
13806 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
13808 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
13809 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
13810 (remove_bb): Update dump_bb call.
13811 (gimple_debug_bb): Use dump_bb.
13812 (dump_function_to_file): Update gimple_dump_bb call.
13813 (print_loops_bb): Likewise.
13814 * tree-flow.h (gimple_dump_bb): Update prototype.
13815 * gimple-pretty-print.c (dump_bb_header): Rename to
13816 dump_gimple_bb_header. Write to a stream instead of a pretty
13817 printer. Use dump_bb_info to dump basic block info.
13818 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
13819 stream instead of a pretty printer. Use dump_bb_info.
13820 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
13821 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
13822 dump_gimple_bb_footer.
13823 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
13824 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
13825 (print_rtl_with_bb): Take a flags argument and pass it around.
13826 Use dump_insn_slim if TDF_SLIM.
13827 (dump_bb_info): Removed and re-incarnated in cfg.c.
13828 (dump_flow_info): Moved to cfghooks.c.
13829 (debug_flow_info): Moved to cfghooks.c.
13830 * passes.c (execute_function_dump): Unconditionally use
13831 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
13832 * final.c (dump_basic_block_info): Update dump_edge_info calls.
13833 * tree-vrp.c (dump_asserts_for): Likewise.
13834 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
13835 * tree-if-conv.c (if_convertible_bb_p): Don't look at
13836 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
13837 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
13838 for the same reason.
13839 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
13841 2012-07-17 Richard Guenther <rguenther@suse.de>
13843 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
13844 vars here, use create_tmp_reg where appropriate.
13845 (vect_create_addr_base_for_vector_ref): Do not add referenced
13846 vars here, use create_tmp_reg where appropriate.
13847 (vect_create_data_ref_ptr): Likewise.
13848 (vect_create_destination_var): Likewise.
13849 (vect_permute_store_chain): Likewise.
13850 (vect_permute_load_chain): Likewise.
13851 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13853 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
13854 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
13855 (vect_handle_widen_op_by_const): Likewise.
13856 * tree-vect-stmts.c (vect_init_vector): Likewise.
13857 (vectorizable_load): Likewise.
13859 2012-07-17 Tom de Vries <tom@codesourcery.com>
13861 * hwint.c: Fix loop range.
13863 2012-07-17 Tom de Vries <tom@codesourcery.com>
13865 * double-int.h (double_int_popcount): New inline function.
13866 * hwint.c (popcount_hwi): New function.
13867 * hwint.h (popcount_hwi): Declare function. New inline function.
13869 2012-07-17 Richard Henderson <rth@redhat.com>
13871 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
13873 (vectorizable_conversion): Update supportable_widening_operation call.
13874 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
13875 (vect_recog_widen_shift_pattern): Likewise.
13876 * tree-vectorizer.h: Update decl.
13878 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13879 Ulrich Weigand <ulrich.weigand@linaro.org>
13881 * common/config/arm/arm-common.c (arm_option_optimization_table):
13882 Enable -fsched-pressure by default while optimizing.
13883 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
13884 pressure algorithm by default.
13886 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
13888 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
13889 (CONST_OK_FOR_I10): Move macro to ...
13890 * config/sh/sh.c: ... here.
13891 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
13894 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
13896 * config/sh/sh.md: Delete mov related define_peephole patterns.
13898 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
13901 * doc/install.texi (Installing GCC): Refer to instructions for
13902 released versions. Fix hyphenation.
13904 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13906 * config/spu/spu.c (targetm): Move to bottom of file.
13907 (spu_attribute_table): Likewise.
13908 (spu_option_override, spu_init_builtins, spu_builtin_decl,
13909 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
13910 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
13911 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
13912 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
13913 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
13914 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
13915 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
13916 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
13917 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
13918 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
13919 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
13920 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
13921 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
13922 spu_encode_section_info, spu_legitimize_address,
13923 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
13924 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
13925 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
13926 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
13927 spu_section_type_flags, spu_select_section, spu_unique_section,
13928 spu_trampoline_init, spu_conditional_register_usage,
13929 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
13930 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
13931 spu_setup_incoming_varargs): Remove prototypes.
13932 (spu_legitimize_address): Add "static" to definition.
13934 2012-07-16 Jakub Jelinek <jakub@redhat.com>
13936 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
13938 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
13940 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
13941 before calling gsi_stmt.
13943 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
13946 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
13948 * config/i386/i386.md (stack_protect_set): Disable the pattern
13949 for Android since Android libc (bionic) does not provide random
13950 value for stack protection guard at gs:0x14. Guard value
13951 will be provided from external symbol (default implementation).
13952 (stack_protect_set_<mode>): Likewise.
13953 (stack_protect_test): Likewise.
13954 (stack_protect_test_<mode>): Likewise.
13956 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
13958 PR middle-end/53959
13960 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
13963 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
13965 * opts.c (default_option): Add -fvect-cost-model to default options
13968 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
13970 * graphite-clast-to-gimple.c, graphite-dependences.c,
13971 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
13972 for pass TODO flags.
13973 * Makefile.in: Fix dependencies.
13975 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
13977 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
13978 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13980 * function.c (stack_protect_epilogue): Use expand_call to expand
13981 targetm.stack_protect_fail.
13982 * stmt.c (expand_expr_stmt): Remove now-unused function.
13983 * tree.h (expand_expr_stmt): Remove prototype.
13984 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
13985 hook must return a CALL_EXPR.
13986 * doc/tm.texi: Regenerate.
13988 * emit-rtl.c (emit_label_before): Do not allow the same label
13989 to be emitted twice.
13990 (emit_label_after): Likewise.
13991 (emit_label): Likewise.
13993 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
13994 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
13995 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
13996 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
13998 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
14000 * system.h (dump_file): Do not define.
14001 * tree-pass.h: Include dumpfile.h, which is a new file containing...
14002 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
14003 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
14004 dump_flag_name, dump_file, dump_flags, dump_file_name,
14005 get_dump_file_info, struct dump_file_info): all of this, moved to...
14006 * dumpfile.h: Here, new file.
14007 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
14008 (dump_stmt): Remove prototype for C++ specific function.
14009 (dump_enumerated_decls): Move prototype from here...
14010 * tree-flow.h (dump_enumerated_decls): ... to here.
14011 (get_ref_base_and_extent) Move prototype from here ...
14012 * tree.h (get_ref_base_and_extent) ... to here.
14013 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
14014 gimple-pretty-print.h is enough. Do not include tree-dump.h,
14015 include timevar.h and dumpfile.h instead.
14016 (struct numbered_tree_d, compare_decls_by_uid,
14017 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
14018 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
14019 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
14020 Do not include timevar.h.
14021 * tree.c: Do not include timevar.h.
14022 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
14024 (dump_cfg_stats): Use current_function_name.
14025 (gimple_cfg2vcg): Likewise.
14026 (dump_function_to_file): Likewise.
14027 * df-scan.c: Do not include tree-pass.h and timevar.h.
14028 Include dumpfile.h.
14029 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
14030 use print_current_pass.
14031 * df-problems.c: Include dumpfile.h.
14032 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
14033 leads to errors in the code not selected.
14034 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
14035 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
14036 * lcm.c: Include dumpfile.h.
14037 Remove obsolete include of insn-attr.h.
14038 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
14039 missing probability notes.
14040 * stmt.c: Include dumpfile.h.
14041 (emit_case_decision_tree): Re-enable printing expand details only
14043 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
14044 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
14045 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
14046 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
14047 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
14048 function.c, fwprop.c, gcse.c, gimple-fold.c,
14049 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14050 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
14051 graphite-dependences.c, graphite-interchange.c,
14052 graphite-optimize-isl.c, graphite-poly.c,
14053 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
14054 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
14055 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
14056 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
14057 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
14058 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
14059 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
14060 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
14061 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
14062 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
14063 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
14064 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
14065 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
14066 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
14067 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
14068 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
14069 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
14070 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
14071 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
14072 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
14073 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
14074 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
14075 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
14076 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
14077 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
14078 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
14079 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
14080 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
14081 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
14082 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
14083 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
14084 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
14085 tree-ssa-uncprop.c, tree-ssa-uninit.c,
14086 tree-switch-conversion.c, tree-tailcall.c,
14087 tree-vect-data-refs.c, tree-vect-loop.c,
14088 tree-vect-loop-manip.c, tree-vectorizer.c,
14089 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
14090 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
14091 only if needed. If tree-pass.h is included, do not include timevar.h
14092 and dumpfile.h. If tree-pass.h is not included but dump_file, or
14093 dump_flags, or the TDF_* flags are used, include dumpfile.h.
14094 If gimple-pretty-print.h is included, don't include
14095 tree-pretty-print.h. Remove assorted unnecessary includes.
14097 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
14098 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
14099 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
14100 Include dumpfile.h.
14101 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
14102 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
14103 spu/t-spu-elf: Fix dependencies.
14105 2012-07-16 Dehao Chen <dehao@google.com>
14108 2012-07-10 Dehao Chen <dehao@google.com>
14110 * tree.h (phi_arg_d): New field.
14111 * tree-flow-inline.h (gimple_phi_arg_block): New function.
14112 (gimple_phi_arg_block_from_edge): New function.
14113 (gimple_phi_arg_set_block): New function.
14114 (gimple_phi_arg_has_block): New function.
14115 (redirect_edge_var_map_block): New function.
14116 * tree-flow.h (_edge_var_map): New field.
14117 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
14118 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
14119 redirect_edge_var_map_add.
14120 * tree-outof-ssa.c (_elim_graph): New field.
14121 (insert_partition_copy_on_edge): New parameter.
14122 (insert_value_copy_on_edge): New parameter.
14123 (insert_rtx_to_part_on_edge): New parameter.
14124 (insert_part_to_rtx_on_edge): New parameter.
14125 (elim_graph_add_edge): New parameter.
14126 (elim_graph_remove_succ_edge): New parameter.
14127 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
14128 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
14129 (new_elim_graph): Add block debug info.
14130 (clear_elim_graph): Likewise.
14131 (delete_elim_graph): Likewise.
14132 (elim_graph_add_node): Likewise.
14133 (elim_graph_add_edge): Likewise.
14134 (elim_graph_remove_succ_edge): Likewise.
14135 (eliminate_build): Likewise.
14136 (elim_forward): Likewise.
14137 (elim_unvisited_predecessor): Likewise.
14138 (elim_backward): Likewise.
14139 (elim_create): Likewise.
14140 (eliminate_phi): Likewise.
14141 (insert_backedge_copies): Likewise.
14142 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
14144 (rewrite_add_phi_arguments): Likewise.
14145 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
14146 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14147 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
14148 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
14149 * tree-ssa-loop-manip.c (create_iv): Likewise.
14150 (add_exit_phis_edge): Likewise.
14151 (split_loop_exit_edge): Likewise.
14152 (copy_phi_node_args): Likewise.
14153 (tree_transform_and_unroll_loop): Likewise.
14154 * value-prof.c (gimple_ic): Likewise.
14155 (gimple_stringop_fixed_value): Likewise.
14156 * tree-tailcall.c (add_successor_phi_arg): Likewise.
14157 (eliminate_tail_call): Likewise.
14158 (create_tailcall_accumulator): Likewise.
14159 (tree_optimize_tail_calls_1): Likewise.
14160 * tree-phinodes.c (add_phi_arg): Likewise.
14161 (make_phi_node): Likewise.
14162 (resize_phi_node): Likewise.
14163 (remove_phi_arg_num): Likewise.
14164 * omp-low.c (expand_parallel_call): Likewise.
14165 (expand_omp_for_static_chunk): Likewise.
14166 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
14168 (slpeel_update_phi_nodes_for_guard1): Likewise.
14169 (slpeel_update_phi_nodes_for_guard2): Likewise.
14170 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
14171 (set_prologue_iterations): Likewise.
14172 (slpeel_tree_peel_loop_to_edge): Likewise.
14173 (vect_loop_versioning): Likewise.
14174 * tree-parloops.c (create_phi_for_local_result): Likewise.
14175 (transform_to_exit_first_loop): Likewise.
14176 (create_parallel_loop): Likewise.
14177 * ipa-split.c (split_function): Likewise.
14178 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
14179 (vect_create_epilog_for_reduction): Likewise.
14180 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14181 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
14182 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14183 (cond_if_else_store_replacement_1): Likewise.
14184 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
14185 (remove_forwarder_block_with_phi): Likewise.
14186 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
14187 * tree-predcom.c (initialize_root_vars): Likewise.
14188 (initialize_root_vars_lm): Likewise.
14189 * sese.c (sese_add_exit_phis_edge): Likewise.
14190 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14191 * tree-ssa.c (flush_pending_stmts): Likewise.
14192 (redirect_edge_var_map_add): Likewise.
14193 (ssa_redirect_edge): Likewise.
14194 * gimple-streamer-in.c (input_phi): Likewise.
14195 * tree-vect-stmts.c (vectorizable_load): Likewise.
14196 * tree-inline.c (copy_phis_for_bb): Likewise.
14197 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14198 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
14199 * tree-cfg.c (reinstall_phi_args): Likewise.
14200 (gimple_make_forwarder_block): Likewise.
14201 (add_phi_args_after_copy_edge): Likewise.
14202 (gimple_duplicate_sese_tail): Likewise.
14204 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
14206 * config/i386/i386.md (stack_protect_set): Disable the pattern
14207 for Android since Android libc (bionic) does not provide random
14208 value for stack protection guard at gs:0x14. Guard value
14209 will be provided from external symbol (default implementation).
14210 (stack_protect_set_<mode>): Likewise.
14211 (stack_protect_test): Likewise.
14212 (stack_protect_test_<mode>): Likewise.
14214 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
14216 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
14217 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
14218 CONSTANT_P and cris_legitimate_address_p.
14219 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
14220 (cris_preferred_reload_class): Don't return GENERAL_REGS as
14221 preferred to MOF_SRP_REGS.
14223 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
14224 of library functions for basic atomic compare-and-swap.
14225 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
14226 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
14227 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
14228 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
14229 ("atomic_compare_and_swap<mode>")
14230 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
14231 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
14232 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
14233 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
14234 (atomic_op_op_pred): Ditto.
14235 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
14236 reflect the change to include %2 in expansion. All callers changed.
14237 (qm3): New mode_attr.
14238 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
14239 as predicate for operand 2.
14240 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
14241 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
14242 constraint for operand 2.
14243 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
14244 nonmemory_operand for operand 3.
14245 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
14246 exclude memory. Improve emitted sync code for v10 and v32. Use
14247 <qm3> instead of <m> for size designator for cmp.
14248 ("atomic_compare_and_swap<mode>"): Change predicate to
14249 nonmemory_operand for operand 3. Add FIXME.
14250 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
14251 constraints for operand 3 to exclude memory.
14252 ("atomic_fetch_<atomic_op_name><mode>")
14253 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
14254 calls on result of call to need_atomic_barrier_p.
14256 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
14258 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
14259 with mflo and mtlo.
14260 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
14261 and mtlo. Adjust move_type->type mapping.
14262 (may_clobber_hilo): Split mthilo into mthi and mtlo.
14263 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
14264 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
14265 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
14266 instead of mthilo and mfhilo.
14267 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
14268 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
14269 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
14270 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
14271 Use mflo instead of mfhilo.
14272 * config/mips/10000.md (r10k_arith): Split mthilo.
14273 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
14274 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
14275 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
14276 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
14278 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
14279 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
14281 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
14282 * config/mips/5400.md (ir_vr54_hilo): Likewise.
14283 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
14284 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
14285 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
14286 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
14287 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
14288 * config/mips/generic.md (generic_hilo): Likewise.
14289 * config/mips/loongson2ef.md (ls2_alu): Likewise.
14290 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
14291 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
14292 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
14293 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
14294 * config/mips/xlr.md (xlr_hilo): Likewise.
14296 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
14297 Sandra Loosemore <sandra@codesourcery.com>
14299 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
14301 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
14303 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
14306 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
14308 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
14310 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
14313 * config/spu/spu.c (spu_init_cost): Mark static.
14314 (spu_add_stmt_cost): Likewise.
14315 (spu_finish_cost): Likewise.
14316 (spu_destroy_cost_data): Likewise.
14317 * config/i386/i386.c (ix86_init_cost): Mark static.
14318 (ix86_add_stmt_cost): Likewise.
14319 (ix86_finish_cost): Likewise.
14320 (ix86_destroy_cost_data): Likewise.
14321 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
14322 (rs6000_add_stmt_cost): Likewise.
14323 (rs6000_finish_cost): Likewise.
14324 (rs6000_destroy_cost_data): Likewise.
14326 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
14328 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
14329 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
14330 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
14332 * alloc-pool.h (pool_alloc): Likewise.
14334 * final.c (final): Do not loop to find max_uid.
14336 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
14338 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
14339 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
14341 2012-07-13 Richard Guenther <rguenther@suse.de>
14343 PR tree-optimization/53907
14344 * tree-ssa-forwprop.c (associate_pointerplus): New function.
14345 (ssa_forward_propagate_and_combine): Call it.
14347 2012-07-13 Richard Guenther <rguenther@suse.de>
14349 PR tree-optimization/53922
14350 * tree-vrp.c (value_inside_range): Change prototype to take
14351 min/max instead of value-range.
14352 (range_includes_zero_p): Likewise. Return the result from
14353 value_inside_range.
14354 (extract_range_from_binary_expr_1): Adjust to handle dont-know
14355 return value from range_includes_zero_p.
14356 (extract_range_from_unary_expr_1): Likewise.
14357 (compare_range_with_value): Likewise.
14358 (vrp_meet_1): Likewise.
14360 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
14362 * doc/tm.texi: Regenerate.
14363 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
14364 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
14365 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14366 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14367 * targhooks.c (default_init_cost): New function.
14368 (default_add_stmt_cost): Likewise.
14369 (default_finish_cost): Likewise.
14370 (default_destroy_cost_data): Likewise.
14371 * targhooks.h (default_init_cost): New decl.
14372 (default_add_stmt_cost): Likewise.
14373 (default_finish_cost): Likewise.
14374 (default_destroy_cost_data): Likewise.
14375 * target.def (init_cost): New DEFHOOK.
14376 (add_stmt_cost): Likewise.
14377 (finish_cost): Likewise.
14378 (destroy_cost_data): Likewise.
14379 * target.h (struct _stmt_vec_info): New extern decl.
14380 (stmt_vectype): Likewise.
14381 (stmt_in_inner_loop_p): Likewise.
14382 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
14383 (stmt_vector_for_cost): New VEC/typedef.
14384 (add_stmt_info_to_vec): New function.
14385 (struct _slp_tree): Remove cost.inside_of_loop field.
14386 (struct _slp_instance): Remove cost.inside_of_loop field; add
14387 stmt_cost_vec field.
14388 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
14389 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
14390 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
14391 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
14392 (struct _loop_vec_info): Add target_cost_data field.
14393 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
14394 (struct _bb_vec_info): Add target_cost_data field.
14395 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
14396 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
14397 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
14398 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
14399 (init_cost): New function.
14400 (add_stmt_cost): Likewise.
14401 (finish_cost): Likewise.
14402 (destroy_cost_data): Likewise.
14403 (vect_model_simple_cost): Change parameter list.
14404 (vect_model_store_cost): Likewise.
14405 (vect_model_load_cost): Likewise.
14406 (record_stmt_cost): New extern decl.
14407 (vect_get_load_cost): Change parameter list.
14408 (vect_get_store_cost): Likewise.
14409 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
14410 (destroy_loop_vec_info): Call destroy_cost_data.
14411 (vect_estimate_min_profitable_iters): Remove old calculation of
14412 inside costs; call finish_cost instead.
14413 (vect_model_reduction_cost): Call add_stmt_cost instead of old
14414 inside-costs calculation.
14415 (vect_model_induction_cost): Likewise.
14416 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
14417 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
14418 and vect_get_store_cost to obtain the value to return.
14419 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
14420 vect_get_data_access_cost and store it in the minimum peeling
14422 (vect_peeling_hash_choose_best_peeling): Change the parameter list
14423 to add a (stmt_vector_for_cost *) output parameter, and set its value.
14424 (vect_enhance_data_refs_alignment): Ignore the new return value from
14425 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
14426 vect_peeling_hash_choose_best_peeling and pass its contents to the
14428 * tree-vect-stmts.c (stmt_vectype): New function.
14429 (stmt_in_inner_loop_p): Likewise.
14430 (record_stmt_cost): Likewise.
14431 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
14432 record_stmt_cost instead of old calculation; don't call
14433 stmt_vinfo_set_inside_of_loop_cost.
14434 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
14435 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
14436 (vect_model_store_cost): Add stmt_cost_vec parameter; call
14437 record_stmt_cost instead of old calculation; add stmt_cost_vec
14438 parameter to vect_get_store_cost call; don't call
14439 stmt_vinfo_set_inside_of_loop_cost.
14440 (vect_get_store_cost): Add stmt_cost_vec parameter; call
14441 record_stmt_cost instead of old calculation.
14442 (vect_model_load_cost): Add stmt_cost_vec parameter; call
14443 record_stmt_cost instead of old calculation; add stmt_cost_vec
14444 parameter to vect_get_load_cost call; don't call
14445 stmt_vinfo_set_inside_of_loop_cost.
14446 (vect_get_load_cost): Add stmt_cost_vec parameter; call
14447 record_stmt_cost instead of old calculation.
14448 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
14449 (vectorizable_conversion): Likewise.
14450 (vectorizable_assignment): Likewise.
14451 (vectorizable_shift): Likewise.
14452 (vectorizable_operation): Likewise.
14453 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
14454 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
14455 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
14456 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
14457 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
14458 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14459 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14460 (spu_init_cost): New function.
14461 (spu_add_stmt_cost): Likewise.
14462 (spu_finish_cost): Likewise.
14463 (spu_destroy_cost_data): Likewise.
14464 * config/i386/i386.c (ix86_init_cost): New function.
14465 (ix86_add_stmt_cost): Likewise.
14466 (ix86_finish_cost): Likewise.
14467 (ix86_destroy_cost_data): Likewise.
14468 (TARGET_VECTORIZE_INIT_COST): New macro def.
14469 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
14470 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14471 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14472 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
14473 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
14474 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14475 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14476 (rs6000_init_cost): New function.
14477 (rs6000_add_stmt_cost): Likewise.
14478 (rs6000_finish_cost): Likewise.
14479 (rs6000_destroy_cost_data): Likewise.
14480 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
14481 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
14482 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
14483 stmt_cost_vec parameter to vect_model_store_cost and
14484 vect_model_simple_cost calls.
14485 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
14486 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
14487 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
14488 calculating cost more than once for loads; remove inside_cost
14489 parameter from recursive vect_build_slp_tree calls; call
14490 record_stmt_cost instead of old calculation.
14491 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
14492 the instance; free it on premature exit; remove inside_cost parameter
14493 from vect_build_slp_tree call; add stmt_cost_vec parameter to
14494 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
14495 (new_bb_vec_info): Call init_cost.
14496 (destroy_bb_vec_info): Call destroy_cost_data.
14497 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
14498 statement recorded with an SLP instance; call finish_cost instead of
14499 the old calculation.
14500 (vect_update_slp_costs_according_to_vf): Record statement costs from
14501 SLP instances, multiplying by the appropriate number of copies; don't
14502 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
14504 2012-07-13 Richard Guenther <rguenther@suse.de>
14506 PR middle-end/53937
14507 * builtins.c (get_pointer_alignment_1): Handle constant
14510 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
14511 Steven Bosscher <steven@gcc.gnu.org>
14512 Bernd Schmidt <bernds@codesourcery.com>
14514 PR rtl-optimization/53908
14515 * df-problems.c (can_move_insns_across): When doing
14516 memory-reference book-keeping, handle call insns.
14518 2012-07-13 Richard Guenther <rguenther@suse.de>
14520 * gimple.c (gimple_types_compatible_p_1): Remove redundant
14521 type attribute comparisons.
14522 (gimple_canonical_types_compatible_p): Likewise.
14524 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
14526 PR rtl-optimization/53176
14527 * rtlanal.c (rtx_cost): Adjust default cost for X with a
14528 UNITS_PER_WORD factor for all X according to the size of
14529 its mode, not just for SUBREGs with untieable modes.
14530 Handle SET. Use factor * factor for MULT, DIV, UDIV,
14533 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
14535 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
14536 QImode and HImode splitters. Use ix86_comparison_operator.
14537 Explicitly match FLAGS_REG.
14538 (DFmode cmove splitter): Explicitly match FLAGS_REG.
14540 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
14542 * expr.h (can_move_by_pieces): Move prototype from here ...
14543 * tree.h (can_move_by_pieces): ... to here.
14544 * optabs.h (set_widening_optab_handler): Use XCNEW.
14545 * gimplify.c: Do not include expr.h.
14547 * toplev.c: Do not include dwarf2out.h.
14548 * config/ia64/ia64.c: Likewise.
14549 * config/sparc/sparc.c: Likewise.
14550 * config/sparc/t-sparc (sparc.o): Fix dependencies.
14552 * Makefile.in (toplev.o): Fix dependencies
14553 (c-family/c-gimplify.o): Likewise.
14554 (c-family/c-common.o): Likewise.
14556 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
14558 * basic-block.h (struct edge_def): Use basic_block instead of
14560 * cfgloop.h (struct loop_exit, struct loop): Likewise.
14561 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
14562 instead of union tree_node *.
14563 * rtl.h (union rtunion_def, emit_insn_before_noloc,
14564 emit_insn_after_noloc, add_insn_before, add_insn_after,
14565 debug_bb_slim): Likewise.
14566 * tree-inline.h (struct copy_body_data): Likewise.
14567 * sched-rgn.c (dump_region_dot): Likewise.
14568 * gimple.h (struct gimple_statement_base, gimple_set_bb,
14569 gsi_move_to_bb_end): Likewise.
14570 * sched-vis.c (debug_bb_slim): Likewise.
14571 (debug_bb_n_slim): Likewise.
14572 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
14573 (mn10300_block_contains_call):
14575 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
14578 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
14581 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
14583 * doc/extend.texi (Namespace Association): Alter cautionary text.
14585 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
14588 * config/sh/sh.md: Remove displacement addresssing related splits.
14590 2012-07-10 Xinliang David Li <davidxl@google.com>
14592 * doc/invoke.texi: New option documented.
14593 * flag-types.h: New enum type.
14594 * gimplify.c (gimplify_bind_expr): Control
14595 clobber generation with new option.
14596 (gimplify_target_expr): Ditto.
14597 * common.opt: New option.
14599 2012-07-10 Julian Brown <julian@codesourcery.com>
14601 * config/arm/arm.md (movsi): Don't split symbol refs here.
14602 (define_split): New.
14604 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
14607 * config/m68k/m68k.c (m68k_epilogue_uses): New.
14608 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
14609 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
14611 2012-07-10 Richard Henderson <rth@redhat.com>
14613 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
14614 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
14615 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
14616 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
14617 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
14618 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
14619 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
14620 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
14621 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
14622 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
14623 (bdesc_args): Remove entries to match.
14624 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
14625 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
14626 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
14627 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
14628 (rs6000_builtin_mul_widen_odd): Remove.
14629 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
14630 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
14631 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
14632 (spu_builtin_mul_widen_odd): Remove.
14633 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
14634 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
14635 * doc/tm.texi.in: Don't document the removed hooks.
14637 * tree-vect-stmts.c (supportable_widening_operation): Expand
14638 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
14640 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
14641 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
14642 * optabs.c (can_mult_highpart_p): New.
14643 (expand_mult_highpart): New.
14644 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
14645 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
14646 by pieces if can_mult_highpart_p.
14647 (expand_vector_divmod): Use can_mult_highpart_p and always
14648 generate MULT_HIGHPART_EXPR.
14649 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
14650 * tree-vect-stmts.c (vectorizable_operation): Likewise.
14652 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
14653 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
14654 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
14655 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
14656 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
14657 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
14658 * config/spu/spu-builtins.def: Update pattern names to match.
14660 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
14661 from altivec_vmuleub.
14662 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
14663 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
14664 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
14665 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
14666 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
14667 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
14668 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
14669 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
14671 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
14672 avx2_umulv4siv4di3.
14673 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
14674 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
14675 (mulv4si3): Remove XOP test shadowed by SSE4 test.
14676 * config/i386/i386.c (bdesc_args): Update pattern names.
14677 (ix86_expand_sse2_mulvxdi3): Likewise.
14678 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
14679 shadowed by SSE4 test.
14681 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
14682 * cfgexpand.c (expand_debug_expr): Handle them.
14683 * expr.c (expand_expr_real_2): Likewise.
14684 * fold-const.c (fold_binary_loc): Likewise.
14685 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
14686 * optabs.c (optab_for_tree_code): Likewise.
14687 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
14688 * tree-inline.c (estimate_operator_cost): Likewise.
14689 * tree-pretty-print.c (dump_generic_node): Likewise.
14690 * tree.c (commutative_tree_code): Likewise.
14691 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14692 Handle type change before looking up optab.
14693 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
14694 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
14695 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
14696 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
14697 * genopinit.c (optabs): Initialize them.
14698 * doc/md.texi: Document them.
14700 2012-07-10 Dehao Chen <dehao@google.com>
14702 * tree.h (phi_arg_d): New field.
14703 * tree-flow-inline.h (gimple_phi_arg_block): New function.
14704 (gimple_phi_arg_block_from_edge): New function.
14705 (gimple_phi_arg_set_block): New function.
14706 (gimple_phi_arg_has_block): New function.
14707 (redirect_edge_var_map_block): New function.
14708 * tree-flow.h (_edge_var_map): New field.
14709 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
14710 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
14711 redirect_edge_var_map_add.
14712 * tree-outof-ssa.c (_elim_graph): New field.
14713 (insert_partition_copy_on_edge): New parameter.
14714 (insert_value_copy_on_edge): New parameter.
14715 (insert_rtx_to_part_on_edge): New parameter.
14716 (insert_part_to_rtx_on_edge): New parameter.
14717 (elim_graph_add_edge): New parameter.
14718 (elim_graph_remove_succ_edge): New parameter.
14719 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
14720 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
14721 (new_elim_graph): Add block debug info.
14722 (clear_elim_graph): Likewise.
14723 (delete_elim_graph): Likewise.
14724 (elim_graph_add_node): Likewise.
14725 (elim_graph_add_edge): Likewise.
14726 (elim_graph_remove_succ_edge): Likewise.
14727 (eliminate_build): Likewise.
14728 (elim_forward): Likewise.
14729 (elim_unvisited_predecessor): Likewise.
14730 (elim_backward): Likewise.
14731 (elim_create): Likewise.
14732 (eliminate_phi): Likewise.
14733 (insert_backedge_copies): Likewise.
14734 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
14736 (rewrite_add_phi_arguments): Likewise.
14737 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
14738 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14739 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
14740 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
14741 * tree-ssa-loop-manip.c (create_iv): Likewise.
14742 (add_exit_phis_edge): Likewise.
14743 (split_loop_exit_edge): Likewise.
14744 (copy_phi_node_args): Likewise.
14745 (tree_transform_and_unroll_loop): Likewise.
14746 * value-prof.c (gimple_ic): Likewise.
14747 (gimple_stringop_fixed_value): Likewise.
14748 * tree-tailcall.c (add_successor_phi_arg): Likewise.
14749 (eliminate_tail_call): Likewise.
14750 (create_tailcall_accumulator): Likewise.
14751 (tree_optimize_tail_calls_1): Likewise.
14752 * tree-phinodes.c (add_phi_arg): Likewise.
14753 (make_phi_node): Likewise.
14754 (resize_phi_node): Likewise.
14755 (remove_phi_arg_num): Likewise.
14756 * omp-low.c (expand_parallel_call): Likewise.
14757 (expand_omp_for_static_chunk): Likewise.
14758 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
14760 (slpeel_update_phi_nodes_for_guard1): Likewise.
14761 (slpeel_update_phi_nodes_for_guard2): Likewise.
14762 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
14763 (set_prologue_iterations): Likewise.
14764 (slpeel_tree_peel_loop_to_edge): Likewise.
14765 (vect_loop_versioning): Likewise.
14766 * tree-parloops.c (create_phi_for_local_result): Likewise.
14767 (transform_to_exit_first_loop): Likewise.
14768 (create_parallel_loop): Likewise.
14769 * ipa-split.c (split_function): Likewise.
14770 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
14771 (vect_create_epilog_for_reduction): Likewise.
14772 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14773 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
14774 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14775 (cond_if_else_store_replacement_1): Likewise.
14776 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
14777 (remove_forwarder_block_with_phi): Likewise.
14778 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
14779 * tree-predcom.c (initialize_root_vars): Likewise.
14780 (initialize_root_vars_lm): Likewise.
14781 * sese.c (sese_add_exit_phis_edge): Likewise.
14782 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14783 * tree-ssa.c (flush_pending_stmts): Likewise.
14784 (redirect_edge_var_map_add): Likewise.
14785 (ssa_redirect_edge): Likewise.
14786 * gimple-streamer-in.c (input_phi): Likewise.
14787 * tree-vect-stmts.c (vectorizable_load): Likewise.
14788 * tree-inline.c (copy_phis_for_bb): Likewise.
14789 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14790 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
14791 * tree-cfg.c (reinstall_phi_args): Likewise.
14792 (gimple_make_forwarder_block): Likewise.
14793 (add_phi_args_after_copy_edge): Likewise.
14794 (gimple_duplicate_sese_tail): Likewise.
14796 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
14799 * config/sh/sh.c (sequence_insn_p): New function.
14800 (find_barrier, sh_insn_length_adjustment): Use it.
14802 2012-07-09 Iain Sandoe <iain@codesourcery.com>
14805 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
14807 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
14808 SUBTARGET_FOLD_BUILTIN.
14809 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
14810 SUBTARGET_FOLD_BUILTIN.
14812 2012-07-09 Iain Sandoe <iain@codesourcery.com>
14814 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
14815 runtime exceptions model setting from here ...
14816 * config/darwin.c (darwin_override_options): ... to here.
14818 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
14820 PR tree-optimization/53887
14821 * tree-cfg.c (group_case_labels_stmt): Make non-static.
14822 * tree-flow.h (group_case_labels_stmt): Add prototype.
14823 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
14824 to pre-process every switch.
14826 2012-07-09 Jason Merrill <jason@redhat.com>
14829 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
14830 (type_hash_eq): Likewise.
14832 2012-07-09 Tom de Vries <tom@codesourcery.com>
14833 Richard Guenther <rguenther@suse.de>
14835 * tree-ssa-ccp.c (optimize_unreachable): New function.
14836 (execute_fold_all_builtins): Use optimize_unreachable to optimize
14837 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
14839 2012-07-09 Richard Guenther <rguenther@suse.de>
14842 * graphite-optimize-isl.c: Make sure CU is not empty.
14844 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
14846 * gensupport.c (init_rtx_reader_args_cb): Start counting code
14847 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
14848 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
14849 the LAST_INSN_CODE marker at the end.
14850 * genoutput.c (nothing): New static struct data.
14851 (idata): Initialize to ¬hing.
14852 (idata_end): Initialize to ¬hing.next.
14853 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
14855 * genpeep.c (insn_code_number): Remove global variable.
14856 (gen_peephole): Take it as an argument instead.
14857 (main): Take insn_code_number from read_md_rtx.
14858 * optabs.h: Revert r161809:
14859 (optab_handlers): Change type of insn_code back to insn_code.
14860 (optab_handler, widening_optab_handler, set_optab_handler,
14861 set_widening_optab_handler, convert_optab_handler,
14862 set_convert_optab_handler, direct_optab_handler,
14863 set_direct_optab_handler): Remove int casts.
14864 Revert to treating the insn_code field as "insn_code".
14866 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
14868 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
14869 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
14870 * config/sh/sh-protos.h: Declare it.
14872 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
14874 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
14875 (dump_fixup_graph): Use current_function_name.
14876 (adjust_cfg_counts): Likewise.
14877 * ira-conflicts.c: Do not include tree.h.
14878 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
14880 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
14883 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
14885 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
14887 * basic-block.h: Re-group most prototypes per file.
14888 (struct edge_list): Remove num_blocks field.
14889 (dump_bb_info): Adjust prototypes.
14890 (dump_reg_info): Move prototype to regs.h.
14891 * function.h: Do not include tree.h.
14892 Include vec.h, vecir.h, input.h and machmode.h to compensate.
14893 (function_name): New prototype.
14894 * gimple.h: Include tree.h to compensate for basic-block.h change.
14895 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
14896 * regs.h (dump_reg_info): Prototype here.
14897 * regset.h: Adjust file reference in comment.
14898 (debug_regset): Remove prototype.
14899 * rtl.h: Include flags.h for flag_var_tracking_assignments.
14900 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
14901 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
14902 (dump_reg_info, dump_flow_info): Remove prototypes.
14903 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
14904 to here, the only user. Make static.
14905 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
14906 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
14907 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
14908 tree-pass.h, cfgloop.h, and tree-flow.h.
14909 Include basic-block.h, the first header I'd expect to be included.
14910 (reg_obstack): Move to df-core.c.
14911 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
14912 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
14913 (redirect_edge_succ_nodup): Move to cfghooks.c.
14914 (dump_regset, debug_regset): Move to df-core.c.
14915 (dump_bb_info): Move to cfgrtl.c.
14916 (dump_reg_info): Move to regstat.c.
14917 (dump_flow_info): Move to cfgrtl.c.
14918 (debug_flow_info): Likewise.
14919 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
14920 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
14921 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
14922 (flow_active_insn_p, forwarder_block_p, can_fallthru,
14923 could_fall_through): Move to cfgrtl.c.
14924 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
14925 (create_edge_list): Do not set edge_list's removed num_blocks.
14926 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
14927 (flow_nodes_print): Remove.
14928 (flow_edge_list_print): Remove.
14929 (inverted_post_order_compute): Use FOR_ALL_BB.
14930 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
14931 Do not call dump_reg_info.
14932 (debug_flow_info): Moved from cfg.c
14933 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
14934 to avoid looking at TDF_* flags from tree-pass.h.
14935 (flow_active_insn_p, forwarder_block_p, can_fallthru,
14936 could_fall_through): Moved from cfganal.c.
14937 (print_rtl_with_bb): Adjust dump_bb_info calls.
14938 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
14939 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
14940 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
14941 * cselib.c: Include tree.h with a FIXME.
14942 * df-core.c (reg_obstack): Moved from cfg.c.
14943 (dump_regset): Likewise.
14944 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
14945 * final.c (compute_alignments): Call dump_reg_info before
14947 * function.c (function_name): New function.
14948 (current_function_name): Use it.
14949 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
14951 * ira-conflicts.c: Include tree.h with a note.
14952 * regstat.c (dump_reg_info): Moved here from cfg.c.
14953 * loop-init.c: Include regs.h instead of hard-reg-set.h.
14954 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
14955 (rtl_loop_done): Likewise.
14956 * mcf.c: Include tree.h before langhooks.h.
14957 * predict.c (maybe_hot_count_p): Assert we have cfun.
14958 (probably_never_executed_bb_p): Likewise.
14959 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
14960 instead of dump_flow_info.
14961 * sched-deps.c: Include tree.h with a FIXME.
14962 (call_may_noreturn_p): Add FIXME note why this function has to
14963 look at function decls instead of function decl flags.
14964 * sched-vis.c: Include tree.h with a FIXME.
14965 (print_rtl_slim): Adjust dump_bb_info uses.
14966 * statistics.c (statistics_fini_pass_2): Use current_function_name
14967 to avoid including tree.h.
14968 (statistics_counter_event): Use function_name for the same reason.
14969 (statistics_histogram_event): Likewise.
14970 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
14971 instead of dump_flow_info.
14972 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
14973 before dump_flow_info.
14974 * doc/cfg.texi: Update CFG documentation.
14975 * Makefile.in (RTL_H): Depend on FLAGS_H.
14976 (GIMPLE_H): Depend on TREE_H.
14977 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
14978 but no longer on TREE_H.
14979 (C_COMMON_H): Depend on TREE_H.
14980 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
14981 sched-deps.o, sched-vis.o): Fixup dependencies.
14983 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
14985 * alias.h: Do not include coretypes.h in header files.
14986 * cppbuiltin.h: Likewise.
14987 * double-int.h: Likewise.
14988 * gimple-fold.h: Likewise.
14989 * flags.h: Likewise.
14990 * tree-ssa-alias.h: Likewise.
14991 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
14992 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
14993 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
14994 (TREE_H): Likewise.
14995 (ALIAS_H): Do not depend on coretypes.h.
14996 (FLAGS_H): Likewise.
14997 (realmpfr.o): Depend on coretypes.h.
14999 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
15001 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
15002 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
15004 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
15006 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
15007 (TARGET_FPA): Delete definition.
15008 (TARGET_MAVERICK): Likewise.
15009 (TARGET_FPA_EMU2): Likewise.
15010 (arm_fp_model): Remove FPA and Maverick models.
15011 (arm_arch_cirrus): Delete declaration.
15012 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
15013 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
15014 (CALL_USED_REGISTERS): Likewise.
15015 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
15016 (FIRST_VFP_REGNUM): Renumbered.
15017 (D7_VFP_REGNUM): Chain definition.
15018 (LAST_LO_VFP_REGNUM): Likewise.
15019 (FIRST_HI_VFP_REGNUM): Likewise.
15020 (LAST_HI_VFP_REGNUM): Likewise.
15021 (FIRST_IWMMXT_GR_REGNUM): Likewise.
15022 (LAST_IWMMXT_GR_REGNUM): Likewise.
15023 (FIRST_IWMMXT_REGNUM): Likewise.
15024 (LAST_IWMMXT_REGNUM): Likewise.
15025 (FRAME_POINTER_REGNUM): Renumbered.
15026 (ARG_POINTER_REGNUM): Renumbered.
15027 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
15028 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
15029 (HARD_REGNO_REGNUM): Remove FPA support.
15030 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
15031 (reg_class): Likewise.
15032 (REG_CLASS_NAMES): Likewise.
15033 (REG_CLASS_CONTENTS): Likewise.
15034 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
15035 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
15036 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
15037 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
15038 Reorganize. Use AAPCS preferred names.
15039 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
15041 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
15042 * arm.c (FL_CIRRUS): Delete definition.
15043 (arm_arch_cirrus): Delete variable.
15044 (arm_float_words_big_endian): Delete function.
15045 (cirrus_memory_offset): Delete function.
15046 (output_mov_long_double_fpa_from_arm): Delete function.
15047 (output_mov_long_double_arm_from_fpa): Delete function.
15048 (output_mov_double_fpa_from_arm): Delete function.
15049 (output_mov_double_arm_from_fpa): Delete function.
15050 (emit_sfm): Delete function.
15051 (maybe_get_arm_condition_code): Update comment.
15052 (arm_file_start): Always use softvfp for softfloat systems.
15053 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
15054 (arm_option_override): Remove FPA and Maverick support. Always
15055 default to vfp as the fallback FPU format.
15056 (use_return_insn): Remove FPA support.
15057 (arm_get_frame_offsets): Likewise.
15058 (arm_save_coproc_regs): Likewise.
15059 (arm_canonicalize_comparison): Remove Maverick support.
15060 (arm_select_cc_mode): Likewise.
15061 (arm_gen_compare_reg): Likewise.
15062 (arm_print_operand): Likewise.
15063 (arm_libcall_value_1): Remove FPA and Maverick support.
15064 (arm_function_value_regno_p): Likewise.
15065 (arm_apply_result_size): Likewise.
15066 (arm_legitimate_index_p): Likewise.
15067 (thumb2_legitimate_index_p): Likewise.
15068 (legitimize_reload_address): Likewise.
15069 (arm_register_move_cost): Likewise.
15070 (arm_hard_regno_mode_ok): Likewise.
15071 (arm_regno_class): Likewise.
15072 (arm_dbx_register_number): Likewise.
15073 (arm_emit_unwind_sequence): Likewise.
15074 (arm_conditional_register_usage): Likewise.
15075 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
15076 (cirrus_memory_offset): Likewise.
15077 (output_move_long_double_fpa_from_arm): Likewise.
15078 (output_move_long_double_arm_from_fpa): Likewise.
15079 (output_move_double_fpa_from_arm): Likewise.
15080 (output_move_double_arm_from_fpa): Likewise.
15081 (arm_float_words_big_endian): Likewise.
15082 * arm.md (CC_REGNUM): Renumbered.
15083 (VFPCC_REGNUM): Moved here. Renumbered.
15084 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
15085 (attr fpu): Remove FPA and Maverick support.
15086 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
15087 * arm-cores.def (ep9312): Remove Maverick support.
15088 * arm-arches.def (ep9312): Delete architecture.
15089 * arm-tables.opt: Regenerated.
15091 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
15093 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
15095 PR tree-optimization/53881
15096 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
15097 comparing labels to establish uniqueness of a switch case target,
15098 use the CFG instead.
15100 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
15102 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
15103 due to negative shift amount.
15105 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
15107 Fix configure test for "stack protector support in target C library".
15108 * configure.ac (test_prefix, test_exec_prefix): Move setting from
15109 inside sysroot handling to before and outside it.
15110 * configure: Regenerate.
15112 2012-07-06 Kai Tietz <ktietz@redhat.com>
15115 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
15116 as "/mingw/include".
15118 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
15121 * var-tracking.c (vt_add_function_parameter): Convert
15122 internal_arg_pointer into arg_pointer-based address even
15125 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
15127 PR rtl-optimization/53827
15130 * alias.c (memrefs_conflict_p): Adjust offset and size by the
15131 same amount for alignment ANDs.
15133 2012-07-06 Tom de Vries <tom@codesourcery.com>
15135 PR tree-optimization/51879
15136 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
15137 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
15138 (visit_use): Also call visit_reference_op_call for calls with a vdef.
15140 2012-07-06 Tom de Vries <tom@codesourcery.com>
15142 PR tree-optimization/52009
15143 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
15144 value numbers of gimple_vdef.
15145 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
15147 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
15148 (vn_reference_insert): Add and handle vdef parameter.
15149 (visit_reference_op_load): Add argument to vn_reference_insert call.
15150 (visit_reference_op_store): Find value number of vdef of store. Insert
15151 value number of vdef of store.
15153 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
15155 * config/i386/i386.md (simple lea to add peephole): Also transform
15156 RTXes where second PLUS operand matches output.
15158 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
15160 * config/i386/i386.c (construct_plt_address): Make static.
15161 * config/i386/i386-protos.h (construct_plt_address): Remove.
15163 2012-07-06 Nick Clifton <nickc@redhat.com>
15165 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
15166 default_encode_section_info.
15168 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
15171 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
15172 emit PIC sequence for fnaddr symbol reference in advance.
15174 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
15177 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
15179 * dwarf2out.c (function_possibly_abstracted_p): New static function.
15180 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
15181 cgraph_function_possibly_inlined_p.
15182 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
15183 (process_scope_var): Do not emit concrete instances of abstracted
15184 nested functions from here.
15185 (gen_decl_die): Emit the abstract instance if the function is possibly
15186 abstracted and not only possibly inlined.
15187 (dwarf2out_finish): Find the first non-abstract parent instance and
15188 attach concrete instances on the limbo list to it.
15190 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15191 Julian Brown <julian@codesourcery.com>
15195 * config/arm/neon-gen.ml (return_by_ptr): Delete.
15196 (print_function): Handle empty strings.
15197 (return): Delete use of return_by_ptr.
15198 (mask_shape_for_shuffle): New function.
15199 (mask_elems): Likewise.
15200 (shuffle_fn): Likewise.
15201 (params): Simplify and remove use of return_by_ptr.
15202 (get_shuffle): New function.
15203 (print_variant): Update.
15204 * config/arm/neon.ml (rev_elems): New function.
15205 (permute_range): Likewise.
15206 (zip_range): Likewise.
15207 (uzip_range): Likewise.
15208 (trn_range): Likewise.
15209 (zip_elems): Likewise.
15210 (uzip_elems): Likewise.
15211 (trn_elems): Likewise.
15212 (features): New enumeration Use_shuffle. Delete ReturnPtr.
15215 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
15216 * config/arm/arm_neon.h: Regenerate.
15218 2012-07-05 Richard Guenther <rguenther@suse.de>
15220 * tree-pretty-print.c (dump_generic_node): Properly test
15221 the result of exact_log2.
15223 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15225 * config/s390/s390-protos.h (s390_expand_movmem)
15226 (s390_expand_cmpmem): Add return value.
15227 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
15228 Return FALSE to use the library function in some cases.
15229 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
15232 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15234 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
15236 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
15238 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
15239 * stmt.c (dump_case_nodes): New.
15240 (expand_case): Split out code generation parts into new functions.
15241 (expand_switch_as_decision_tree_p): Split out from expand_case.
15242 (emit_case_decision_tree): Likewise.
15243 (emit_case_dispatch_table): Likewise.
15245 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
15247 * config/arm/iterators.md (SDF): New mode iterator.
15248 (V_if_elem): Add support for SF and DF modes.
15250 (F_constraint): New mode iterator attribute.
15251 (F_fma_type): Likewise.
15252 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
15253 (*fmsub<SDF:mode>4): Likewise.
15254 (*fmnsub<SDF:mode>4): Likewise.
15255 (*fmnadd<SDF:mode>4): Likewise.
15257 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
15259 * expmed.c (expand_mult): Initialize coeff and is_neg.
15261 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
15263 * config/sh/predicates.md (zero_extend_operand): New predicate.
15264 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
15265 zero_extend_operand predicate.
15266 (zero_extendqisi2): Likewise.
15268 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
15270 PR middle-end/53321
15271 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
15272 to not call cgraph_propagate_frequency if something was changed.
15274 2012-07-04 Richard Guenther <rguenther@suse.de>
15276 PR middle-end/53433
15277 * gimple-fold.c (get_base_constructor): Do not return an
15278 error_mark_node DECL_INITIAL.
15280 2012-07-04 Richard Guenther <rguenther@suse.de>
15282 PR tree-optimization/53844
15283 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
15284 the loop virtual PHI.
15286 2012-07-04 Richard Guenther <rguenther@suse.de>
15288 PR tree-optimization/53849
15289 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
15290 for duplicated locals. Use add_referenced_var_1 to avoid
15291 pushing/popping cfun.
15293 2012-07-04 Kai Tietz <ktietz@redhat.com>
15295 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
15296 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
15298 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
15299 as i386_pe_reloc_rw_mask.
15301 2012-07-04 Richard Guenther <rguenther@suse.de>
15303 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
15304 as in free_lang_data_in_type.
15306 2012-07-04 Tobias Grosser <tobias@grosser.es>
15307 Michael Matz <matz@suse.de>
15309 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
15310 (graphite-optimize-isl.o): Add dependencies.
15311 * common.opt (floop-nest-optimize): New flag.
15312 * doc/invoke.texi (floop-nest-optimize): Document.
15313 * graphite-dependences.c (compute_deps): Export.
15314 * graphite-poly.h (compute_deps): Declare.
15315 * graphite-optimize-isl.c: New file.
15316 * graphite-poly.c (apply_poly_transforms): Run the loop
15318 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
15319 if -floop-nest-optimize is enabled.
15321 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
15323 * config/sh/predicates.md (logical_and_operand): New predicate.
15324 * config/sh/constraints.md (Jmb, Jmw): New constraints.
15325 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
15326 of 0xFFFF constant. Use logical_and_operand predicate and
15327 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
15328 (*andsi3_compact): Make it an insn_and_split. Use
15329 logical_and_operand predicate. Add Jmb,Jmw alternatives.
15331 2012-07-03 Jason Merrill <jason@redhat.com>
15334 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
15336 2012-07-03 Nick Clifton <nickc@redhat.com>
15338 * config/mep/mep.c (mep_reorg_regmove): Use
15339 next_nonnote_non_debug_insn to advance to the next insn. Do not
15340 expect delete_insn to return an rtx.
15342 2012-07-03 Richard Guenther <rguenther@suse.de>
15344 * doc/install.texi (CLooG): Clarify how CLooG needs to be
15345 configured and that it needs to be built against ISL 0.10.
15347 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15349 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
15350 code model string in the error message.
15352 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15355 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
15356 sibcall_insn_operand. Move it to a temporary register if not.
15358 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
15361 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
15364 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
15366 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
15368 2012-07-03 Roland McGrath <mcgrathr@google.com>
15370 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
15371 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
15372 * configure: Regenerated.
15373 * config/i386/i386.md (simple_return_internal_long): Use %;
15374 (ctz<mode>2): Likewise.
15375 (*pause): Likewise.
15377 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
15380 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
15382 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
15383 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
15384 gen_branch_true and gen_branch_false.
15385 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
15387 (branch_true, branch_false): Use t_reg_operand predicate.
15388 (*branch_true, *branch_false): Delete.
15389 (movt): Use t_reg_operand predicate.
15390 (*negnegt): Use negt_reg_operand predicate and fold little and big
15392 (*movtt): Use t_reg_operand and fold little and big endian variants.
15393 (*movt_qi): Delete.
15395 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
15397 * stmt.c (emit_case_bit_tests): Remove.
15398 (expand_case): Remove expand_switch_using_bit_tests_p code.
15399 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
15400 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
15401 (lshift_cheap_p): Likewise.
15402 (expand_switch_using_bit_tests_p): Likewise.
15403 (struct case_bit_test): Likewise.
15404 (case_bit_test_cmp): Likewise.
15405 (emit_case_bit_tests): New implementation for GIMPLE.
15406 (gen_inbound_check): Do not release post-dominator info here.
15407 (process_switch): Reorder code. Expand as bit tests if it
15409 (do_switchconv): Release post-dominator info here if something changed.
15410 (struct gimple_opt_pass): Verify more.
15411 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
15413 2012-07-02 Martin Jambor <mjambor@suse.cz>
15415 PR middle-end/38474
15416 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
15417 dynamic type change check.
15419 2012-07-02 Richard Guenther <rguenther@suse.de>
15420 Michael Matz <matz@suse.de>
15421 Tobias Grosser <tobias@grosser.es>
15422 Sebastian Pop <sebpop@gmail.com>
15424 * Makefile.in: Remove PPL flags in favor of ISL ones.
15425 (BACKENDLIBS): Remove PPL libs.
15426 (INCLUDES): Remove PPL includes in favor of ISL ones.
15427 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
15428 graphite-cloog-compat.h dependencies.
15429 (graphite-dependences.o): Likewise.
15430 (graphite-poly.o): Likewise.
15431 * configure.ac: Declare ISL vars instead of PPL ones.
15432 * configure: Regenerated.
15433 * doc/install.texi: Replace PPL requirement documentation with ISL one.
15434 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
15435 * graphite-clast-to-gimple.c: Likewise.
15436 * graphite-dependences.c: Likewise.
15437 * graphite-interchange.c: Likewise.
15438 * graphite-poly.h: Likewise.
15439 * graphite-poly.c: Likewise.
15440 * graphite-sese-to-poly.c: Likewise.
15441 * graphite.c: Likewise.
15442 * graphite-scop-detection.c: Re-arrange includes.
15443 * graphite-cloog-util.c: Remove.
15444 * graphite-cloog-util.h: Likewise.
15445 * graphite-ppl.h: Likewise.
15446 * graphite-ppl.c: Likewise.
15447 * graphite-dependences.h: Likewise.
15449 2012-07-02 Richard Guenther <rguenther@suse.de>
15451 Merge from graphite branch
15452 2011-07-21 Tobias Grosser <tobias@grosser.es>
15454 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
15455 Remove graphite-cloog-util.h.
15456 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
15457 build_iv_mapping, translate_clast_user, translate_clast,
15458 free_scattering, initialize_cloog_names, build_cloog_prog,
15459 create_params_index): Do not use old compatibility functions.
15460 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
15461 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
15462 compatibility functions.
15463 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
15465 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
15466 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
15468 * graphite-cloog-compat.h: Remove.
15470 2011-08-09 Tobias Grosser <tobias@grosser.es>
15472 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
15473 of the string, no just a reference.
15474 (clast_name_index): Add a new field, that specifies if we need to free
15476 (free_clast_name_index): If necessary, free the name string.
15477 (clast_name_index_elt_info): Calculate the hash based on the string
15478 content, not the memory location it is stored in.
15479 (clast_name_to_level): Specify that we do not need to free the name.
15480 (clast_name_to_index): Dito.
15481 (clast_name_to_lb_ub): Dito.
15482 (eq_clast_name_indexes): Compare the strings, not their base pointers.
15483 (free_scattering): Removed.
15484 (initialize_cloog_names): Renamed to add_names_to_union_domain().
15485 (add_names_to_union_domain): Changed to work on a union_domain,
15486 instead of a CloogNames structure.
15487 (build_cloog_prog): Removed.
15488 (build_cloog_union_domain): New.
15489 (generate_cloog_input): New.
15490 (scop_to_clast): Use CloogInput instead of CloogProgram.
15491 (print_generated_program): Adapt to new scop_to_clast() and do not
15492 print the CloogProgram any more.
15493 (create_params_index): Removed, functionality integrated in
15494 add_names_to_union_domain().
15495 (gloog): Adapt to new scop_to_clast().
15496 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
15498 2012-01-11 Tobias Grosser <tobias@grosser.es>
15500 * graphite-clast-to-gimple.c (clast_name_to_index,
15501 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
15502 (clast_to_gcc_expression): Add clast_expr_name as a new
15503 case. Do not assume a clast_expr_term points always to a
15505 (type_for_clast_term): Do not assume a clast_expr_term points always to
15507 (type_for_clast_name): New.
15508 (type_for_clast_expr): Add clast_expr_name as a new case.
15510 2011-08-03 Sebastian Pop <sebpop@gmail.com>
15512 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
15513 new_Cloog_Scattering_from_ppl_Polyhedron,
15514 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
15516 2012-07-02 Jakub Jelinek <jakub@redhat.com>
15518 PR tree-optimization/53645
15519 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
15520 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
15522 2012-07-01 Wei Guozhi <carrot@google.com>
15525 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
15526 * config/arm/arm.c (const_ok_for_dimode_op): New function.
15527 * config/arm/constraints.md (Dd): New constraint.
15528 * config/arm/predicates.md (arm_adddi_operand): New predicate.
15529 * config/arm/arm.md (adddi3): Extend it to handle constants.
15530 (arm_adddi3): Likewise.
15531 (addsi3_carryin_<optab>): Extend it to handle sbc case.
15532 (addsi3_carryin_alt2_<optab>): Likewise.
15533 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
15535 2012-06-30 Nathan Sidwell <nathan@acm.org>
15537 * coverage.c (bbg_file_stamp): New.
15538 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
15539 (build_info): Write bbg_file_stamp.
15540 (coverage_init): Initialize bbg_file_stamp. Read counts file
15541 before writing graph header.
15542 (coverage_finish): Don't unlink the data file if we can generate a
15544 * tree.h (crc32_unsigned): Declare.
15545 * tree.c (crc32_unsigned_bits): New, broken out of ...
15546 (crc32_byte): ... here. Use it.
15547 (crc32_unsigned): New.
15549 2012-06-29 Cary Coutant <ccoutant@google.com>
15551 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
15552 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
15553 (gen_variable_die): Likewise.
15554 (gen_namespace_die): Likewise.
15556 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
15558 * tree-eh.c (lower_try_finally_switch): Really put the location of the
15559 last statement of the finally block onto the switch.
15561 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
15564 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
15567 2012-06-29 Sterling Augustine <saugustine@google.com>
15569 * dwarf2out.c (add_pubname): Add comment.
15570 (add_pubtype): Fix indentation.
15571 (gen_enumeration_type_die): Likewise.
15573 2012-06-29 Jakub Jelinek <jakub@redhat.com>
15575 * tree-vect-generic.c (expand_vector_divmod): For even/odd
15576 widening multiply, put even always as first argument to VEC_PERM_EXPR.
15578 2012-06-29 Richard Henderson <rth@redhat.com>
15580 * tree-vect-generic.c: Include target.h.
15581 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
15582 * Makefile.in (tree-vect-generic.o): Update.
15584 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
15586 * configure.ac: Remove special gtfiles case for C.
15587 * configure: Regenerate.
15588 * Makefile.in: Remove C front-end hooks and build hooks that
15589 will be picked up from c/Make-lang.in now.
15590 Add tree-mudflap to C_COMMON_OBJS.
15591 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
15592 * config/vms/vms.c: Look for c-tree.h in c/.
15593 * doc/gty.texi: Remove reference to c-config-lang.in.
15594 * doc/sourcebuild.texi: Document the c/ subdirectory.
15596 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
15598 * system.h (CASE_USE_BIT_TESTS): Poison.
15599 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
15600 (expand_switch_using_bit_tests_p): ...here.
15601 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
15602 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
15604 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
15606 * system.h (IFCVT_EXTRA_FIELDS): Poison.
15607 (IFCVT_INIT_EXTRA_FIELDS): Poison.
15608 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
15609 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
15610 IFCVT_INIT_EXTRA_FIELDS.
15611 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
15612 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
15613 IFCVT_MACHDEP_INIT.
15614 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
15615 frv_ifcvt_machdep_init.
15616 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
15617 Remove documentation.
15618 (IFCVT_MACHDEP_INIT): Document.
15619 * doc/tm.texi: Regenerate.
15621 2012-06-29 Nick Clifton <nickc@redhat.com>
15623 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
15625 2012-06-29 Jakub Jelinek <jakub@redhat.com>
15627 * tree-vect-stmts.c (vectorizable_operation): Check both
15628 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
15629 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
15631 2012-06-28 Richard Henderson <rth@redhat.com>
15633 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
15635 2012-06-28 Jakub Jelinek <jakub@redhat.com>
15637 PR tree-optimization/51581
15638 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
15639 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
15640 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
15641 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
15642 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
15643 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
15645 PR tree-optimization/53645
15646 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
15647 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
15650 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
15653 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
15654 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
15655 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
15656 avr_hard_regno_call_part_clobbered.
15658 2012-06-28 Richard Guenther <rguenther@suse.de>
15660 PR middle-end/53790
15661 * expr.c (expand_expr_real_1): Verify if the type is complete
15662 before inspecting its size.
15664 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
15666 * doc/include/gpl.texi: Remove.
15667 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
15669 2012-06-28 Jakub Jelinek <jakub@redhat.com>
15671 PR tree-optimization/53645
15672 * tree-vect-generic.c (add_rshift): New function.
15673 (expand_vector_divmod): New function.
15674 (expand_vector_operation): Use it for vector integer
15675 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
15676 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
15677 unused lguup variable with dummy_int.
15679 2012-06-28 OLivier Hainque <hainque@adacore.com>
15681 * expr.c (convert_move): Latch mem integer inputs into a
15682 register before expanding a multi-instructions sequence.
15684 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
15685 Uros Bizjak <ubizjak@gmail.com>
15686 Jakub Jelinek <jakub@redhat.com>
15690 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
15691 (vt_finalize): ... here instead, if needed.
15693 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
15698 * dce.c (word_dce_process_block): Check whether inserting debug
15699 temps are needed even for needed insns.
15700 (dce_process_block): Likewise.
15701 * df-problems.c (dead_debug_add): Add comment about multi-regs.
15702 (dead_debug_insert_temp): Likewise. Don't subreg when we're
15703 setting fewer regs than a multi-reg requires.
15705 2012-06-27 Richard Henderson <rth@redhat.com>
15707 * config/alpha/alpha.c (alpha_dimode_u): New.
15708 (alpha_init_builtins): Initialize it, and use it.
15709 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
15710 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
15711 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
15712 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
15713 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
15714 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
15715 (alpha_fold_builtin_ctpop): Likewise.
15716 (alpha_fold_builtin_umulh): Remove.
15717 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
15718 typo in MAX_ARGS check.
15720 2012-06-27 Richard Henderson <rth@redhat.com>
15722 * tree.def (MULT_HIGHPART_EXPR): New.
15723 * cfgexpand.c (expand_debug_expr): Ignore it.
15724 * expr.c (expand_expr_real_2): Handle it.
15725 * fold-const.c (int_const_binop_1): Likewise.
15726 * optabs.c (optab_for_tree_code): Likewise.
15727 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
15728 * tree-inline.c (estimate_operator_cost): Likewise.
15729 * tree-pretty-print.c (dump_generic_node): Likewise.
15730 (op_code_prio, op_symbol_code): Likewise.
15731 * tree.c (commutative_tree_code): Likewise. Also handle
15732 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
15734 2012-06-27 Richard Henderson <rth@redhat.com>
15737 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
15738 in 2012-06-23 change. Adjust two other DImode tests as well.
15740 2012-06-27 Nick Clifton <nickc@redhat.com>
15742 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
15745 2012-06-27 Richard Guenther <rguenther@suse.de>
15747 PR middle-end/53676
15748 * tree-chrec.c (chrec_convert_1): Represent truncation to
15749 a type with undefined overflow as truncation to an unsigned
15750 type converted to the type with undefined overflow.
15751 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
15752 the scalar evolution of a truncated widened operation avoid
15753 looking at the non-existing evolution of the widened operation
15756 2012-06-27 Richard Guenther <rguenther@suse.de>
15758 PR tree-optimization/53774
15759 * tree-ssa-reassoc.c (get_rank): All default defs have
15761 (init_reassoc): Precompute rank for all SSA default defs.
15763 2012-06-27 Nick Clifton <nickc@redhat.com>
15765 * config/rx/rx.md (simple_return): Use the simple_return rtx.
15767 2012-06-26 Richard Henderson <rth@redhat.com>
15769 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
15770 and don't fall thru from standard_80387_constant_p to the memory
15773 2012-06-26 Richard Henderson <rth@redhat.com>
15775 * config/i386/i386.c (bdesc_args): Update. Change
15776 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
15777 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
15778 (ix86_builtin_mul_widen_even): Use it.
15779 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
15780 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
15781 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
15783 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
15784 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
15785 (vec_widen_smult_even_v4si): New.
15787 2012-06-26 Richard Henderson <rth@redhat.com>
15789 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
15790 to expander; move guts to ...
15791 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
15792 highparts before shifting up.
15793 * config/i386/i386-protos.h: Update.
15795 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
15797 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
15798 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
15799 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
15801 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
15803 * var-tracking.c (vt_add_function_parameter): Use a preserved
15804 VALUE for the MEM address of an incoming parameter.
15806 2012-06-26 Sterling Augustine <saugustine@google.com>
15808 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
15809 (prune_unused_types): Likewise.
15811 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
15813 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
15814 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
15815 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
15816 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
15817 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
15818 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
15819 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
15820 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
15821 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
15823 * doc/tm.texi: Regenerate.
15824 * doc/cpp.texi: Make example for #error generic.
15825 * config/frv/frv.h: Fix example text to match tm.texi.
15827 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
15829 * tree-pass.h (pass_strength_reduction): New decl.
15830 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
15831 (finalize_costs): Likewise.
15832 * timevar.def (TV_TREE_SLSR): New timevar.
15833 * gimple-ssa-strength-reduction.c: New.
15834 * tree-flow.h (initialize_costs): New decl.
15835 (finalize_costs): Likewise.
15836 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
15837 * passes.c (init_optimization_passes): Add pass_strength_reduction.
15839 2012-06-26 Matt Turner <mattst88@gmail.com>
15841 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
15842 (__builtin_arm_tinsrh): Likewise.
15843 (__builtin_arm_tinsrw): Likewise.
15844 (__builtin_arm_wsadb): Add missing v2si parameter.
15845 (__builtin_arm_wsadh): Likewise.
15846 (__builtin_arm_getwcx): Delete.
15847 (__builtin_arm_setwcx): Delete.
15848 (__builtin_arm_getwcgr0): Add.
15849 (__builtin_arm_getwcgr1): Add.
15850 (__builtin_arm_getwcgr2): Add.
15851 (__builtin_arm_getwcgr3): Add.
15852 (__builtin_arm_setwcgr0): Add.
15853 (__builtin_arm_setwcgr1): Add.
15854 (__builtin_arm_setwcgr2): Add.
15855 (__builtin_arm_setwcgr3): Add.
15857 2012-06-26 Richard Guenther <rguenther@suse.de>
15860 2012-06-21 Richard Guenther <rguenther@suse.de>
15862 * tree-inline.c (estimate_num_insns): Estimate call cost for
15863 tailcalls properly.
15865 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
15868 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
15869 * doc/tm.texi: Regenerate.
15871 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
15874 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
15875 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
15876 * doc/tm.texi.in: Remove documentation for unused target macros
15877 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
15878 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
15879 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
15880 TARGET_NARROW_VOLATILE_BITFIELDS.
15881 Document that MD_HANDLE_UNWABI is a macro in libgcc.
15882 * doc/tm.texi: Regenerate.
15883 * system.h: Poison target macros
15884 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
15885 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
15886 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
15887 TARGET_NARROW_VOLATILE_BITFIELDS
15889 2012-06-26 Jan Hubicka <jh@suse.cz>
15892 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
15895 2012-06-26 Dehao Chen <dehao@google.com>
15897 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
15898 source location is consistant with the call stmt.
15900 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
15902 PR tree-optimization/53729
15903 PR tree-optimization/53636
15904 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
15905 vect_verify_datarefs_alignment until after statements have
15906 been marked as relevant/irrelevant.
15907 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
15908 Skip irrelevant statements.
15909 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
15910 instead of STMT_VINFO_RELEVANT.
15911 (vect_get_data_access_cost): Do not check for supportable
15912 alignment before calling vect_get_load_cost/vect_get_store_cost.
15913 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
15914 handling unsupported alignment.
15915 (vect_get_load_cost): Likewise.
15917 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
15919 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
15920 Do not define JMP_BUF_SIZE.
15922 2012-06-26 Jakub Jelinek <jakub@redhat.com>
15924 PR tree-optimization/53748
15925 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
15926 if arg0/arg1 have integral or pointer types.
15928 2012-06-25 Richard Henderson <rth@redhat.com>
15930 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
15931 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
15932 (sdot_prodv4si): New; handle only XOP.
15934 2012-06-25 Richard Henderson <rth@redhat.com>
15936 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
15937 (V2UDI_FUNC_V4USI_V4USI): New.
15938 (V4UDI_FUNC_V8USI_V8USI): New.
15939 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
15940 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
15941 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
15942 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
15943 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
15944 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
15945 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
15946 (bdesc_args): Add them.
15947 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
15948 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
15949 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
15950 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
15951 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
15953 2012-06-25 Richard Henderson <rth@redhat.com>
15955 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
15957 2012-06-25 Richard Henderson <rth@redhat.com>
15959 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
15961 (ix86_expand_vec_interleave): New.
15962 (ix86_expand_mul_widen_evenodd): New.
15963 (ix86_expand_mul_widen_hilo): New.
15964 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
15965 * config/i386/i386.md (u_bool) New code attr.
15966 * config/i386/predicates.md
15967 (nonimmediate_or_const_vector_operand): Remove.
15968 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
15969 both AVX and SSE4_1.
15970 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
15971 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
15972 (vec_widen<s>mult_hi_v8si): Remove.
15973 (vec_widen<s>mult_lo_v8si): Remove.
15974 (vec_widen_smult_hi_v4si): Remove.
15975 (vec_widen_smult_lo_v4si): Remove.
15976 (vec_widen_umult_hi_v4si): Remove.
15977 (vec_widen_umult_lo_v4si): Remove.
15978 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
15979 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
15980 * config/i386/i386-protos.h: Update.
15982 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
15984 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
15985 (neon_vld1_dup): Restrict to VQ operands.
15986 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
15988 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
15989 James Greenhalgh <james.greenhalgh@arm.com>
15991 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
15992 (TARGET_FMA): New macro.
15993 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
15994 (TARGET_ARM_ARCH): Likewise.
15995 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
15996 (TARGET_V6M, TARGET_V7M): Likewise.
15997 (TARGET_ARM_ARCH_PROFILE): Likewise.
15998 (TARGET_ARM_FEATURE_LDREX): Likewise.
15999 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
16000 (ARM_MIN_ENUM_SIZE): Likewise.
16001 * config/arm/arm.c (arm_file_start): Refactor appropriately.
16002 (base_architecture): New enumeration.
16003 (arm_base_arch): New global variable.
16004 (processors): Add field base_arch.
16005 (ARM_ARCH, ARM_CORE): Adjust accordingly.
16006 (arm_option_override): Add initialization of arm_base_arch.
16007 * doc/cpp.texi (system-specific predefined macros.): Change.
16009 2012-06-25 Jakub Jelinek <jakub@redhat.com>
16012 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
16013 of x x x in the vmovlps load alternative.
16015 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
16018 * df.h (dead_debug_add): Remove third argument.
16019 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
16020 REG that we want to replace instead.
16021 (dead_debug_insert_temp): Use the REGNO of the reg that we want
16022 to replace instead of DF_REF_REGNO. Require there to always be
16023 at least one such use. Check for cases where the same location
16024 has more than df_ref associated with it.
16025 (df_note_bb_compute): Remove third dead_debug_add argument.
16026 * dce.c (word_dce_process_block): Likewise.
16028 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
16030 * config/v850/v850.c: Remove redundant extern declarations for
16031 last_assemble_variable_decl and size_directive_output.
16033 * doc/tm.texi.in: Document JMP_BUF_SIZE.
16034 * doc/tm.texi: Regenerate.
16035 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
16036 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
16037 * config/stormy16/stormy16.h: Likewise.
16039 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
16041 * doc/sourcebuild.texi: Add missing subdirectories.
16043 2012-06-25 Tristan Gingold <gingold@adacore.com>
16045 * config/i386/i386.h: Fix typo.
16047 2012-06-25 Tristan Gingold <gingold@adacore.com>
16049 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
16050 (seh_cfa_adjust_cfa): ... that function.
16051 (seh_emit_stackalloc): Do not emit out of range values.
16052 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
16053 UNSPEC_DEF_CFA constants.
16054 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
16055 * config/i386/i386.c (ix86_frame_pointer_required): Required
16056 for very large frames on SEH target.
16057 (ix86_compute_frame_layout): Save area is before frame pointer
16058 on SEH target. Handle very large frames.
16059 (ix86_expand_prologue): Likewise.
16061 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
16063 * output.h: (current_function_is_leaf,
16064 current_function_sp_is_unchanging,
16065 current_function_uses_only_leaf_regs): Remove.
16066 * function.c (current_function_is_leaf,
16067 current_function_sp_is_unchanging,
16068 current_function_uses_only_leaf_regs): Remove.
16069 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
16070 instead of current_function_uses_only_leaf_regs.
16071 * function.h (struct rtl_data): New fields sp_is_unchanging,
16072 is_leaf, uses_only_leaf_regs.
16073 * resource.c (init_resource_info): Replace current_function_is_leaf,
16074 current_function_sp_is_unchanging, and
16075 current_function_uses_only_leaf_regs with new crtl fields.
16076 * sdbout.c (sdbout_symbol): Likewise.
16077 * df-core.c (rest_of_handle_df_initialize): Likewise.
16078 * ira.c (ira): Likewise.
16079 * final.c (final_start_function): Likewise.
16080 * reorg.c (fill_simple_delay_slots): Likewise.
16081 * regrename.c (check_new_reg_p): Likewise.
16082 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
16083 (notice_stack_pointer_modification): Likewise.
16084 * dbxout.c (dbxout_symbol): Likewise.
16085 (dbxout_parms): Likewise.
16086 * sel-sched.c (init_regs_for_mode): Likewise.
16087 * dwarf2out.c (dbx_reg_number): Likewise.
16088 (multiple_reg_loc_descriptor): Likewise.
16089 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
16090 (gen_pop): Likewise.
16091 (ix86_select_alt_pic_regnum): Likewise.
16092 (ix86_compute_frame_layout): Likewise.
16093 (ix86_finalize_stack_realign_flags): Likewise.
16094 (ix86_expand_epilogue): Likewise.
16095 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
16096 * config/h8300/h8300.c (byte_reg): Likewise.
16097 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
16098 (c6x_save_reg): Likewise.
16099 (c6x_compute_frame_layout): Likewise.
16100 * config/pa/pa.c (pa_compute_frame_size): Likewise.
16101 (pa_output_function_prologue): Likewise.
16102 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
16103 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
16104 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
16105 (sparc_expand_prologue): Likewise.
16106 (sparc_flat_expand_prologue): Likewise.
16107 (sparc_asm_function_prologue): Likewise.
16108 (sparc_output_mi_thunk): Likewise.
16109 (sparc_frame_pointer_required): Likewise.
16110 * config/epiphany/epiphany.c (epiphany_compute_function_type):
16112 (epiphany_compute_frame_size): Likewise.
16113 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
16114 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
16115 (cris_frame_pointer_required): Likewise.
16116 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
16117 (tilepro_current_function_is_leaf): Likewise.
16118 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
16119 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
16120 * config/ia64/ia64.c (find_gr_spill): Likewise.
16121 (ia64_compute_frame_size): Likewise.
16122 (ia64_can_eliminate): Likewise.
16123 (ia64_initial_elimination_offset): Likewise.
16124 * config/m68k/m68k.c (m68k_save_reg): Likewise.
16125 (m68k_expand_epilogue): Likewise.
16126 * config/rx/rx.c (rx_get_stack_layout): Likewise.
16127 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
16128 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
16130 (picochip_output_frame_debug): Likewise.
16131 * config/sh/sh.c (sh_media_register_for_return): Likewise.
16132 (sh_allocate_initial_value): Likewise.
16133 (sh_output_mi_thunk): Likewise.
16134 * config/microblaze/microblaze.c (microblaze_must_save_register):
16136 (compute_frame_size): Likewise.
16137 (microblaze_initial_elimination_offset): Likewise.
16138 (microblaze_expand_prologue): Likewise.
16139 (microblaze_expand_epilogue): Likewise.
16140 * config/frv/frv.c (frv_expand_epilogue): Likewise.
16141 (frv_frame_pointer_required): Likewise.
16142 * config/spu/spu.c (get_pic_reg): Likewise.
16143 (direct_return): Likewise.
16144 (spu_expand_prologue): Likewise.
16145 (spu_expand_epilogue): Likewise.
16146 (spu_initial_elimination_offset): Likewise.
16147 * config/mips/mips.c (mips_global_pointer): Likewise.
16148 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
16149 (mips_compute_frame_info): Likewise.
16150 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
16151 (mep_reload_pointer): Likewise.
16152 * config/rl78/rl78.c (need_to_save): Likewise.
16153 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
16154 * config/score/score.c (score_compute_frame_size): Likewise.
16155 (score_function_prologue): Likewise.
16156 * config/bfin/bfin.c (must_save_p): Likewise.
16157 (expand_prologue_reg_save): Likewise.
16158 (expand_epilogue_reg_restore): Likewise.
16159 (bfin_frame_pointer_required): Likewise.
16160 (n_regs_saved_by_prologue): Likewise.
16161 (add_to_reg): Likewise.
16162 (expand_interrupt_handler_prologue): Likewise.
16163 (expand_interrupt_handler_epilogue): Likewise.
16164 (bfin_expand_prologue): Likewise.
16165 * config/avr/avr.c (avr_regs_to_save): Likewise.
16166 (avr_prologue_setup_frame): Likewise.
16167 (expand_epilogue): Likewise.
16168 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
16169 (s390_register_info): Likewise.
16170 (s390_frame_info): Likewise.
16171 (s390_init_frame_layout): Likewise.
16172 (s390_emit_prologue): Likewise.
16175 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
16177 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
16178 * vmsdbgout: Do not undefine it if defined.
16179 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
16180 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
16181 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
16183 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
16185 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
16187 2012-06-23 Richard Henderson <rth@redhat.com>
16190 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
16191 V*QImode shifts and multiply.
16192 (ix86_expand_vecop_qihi): Support shifts.
16193 * config/i386/i386.md (any_shift): New code iterator.
16194 * config/i386/sse.md (ashlv16qi3): Merge ...
16195 (<any_shiftrt>v16qi3): ... into ...
16196 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
16197 to support SSE and AVX.
16199 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
16200 parameter into src and dest.
16201 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
16202 (vec_unpacks_hi_<V124_AVX2>): Likewise.
16203 (vec_unpacku_lo_<V124_AVX2>): Likewise.
16204 (vec_unpacks_lo_<V124_AVX2>): Likewise.
16205 * config/i386/i386-protos.h: Update.
16207 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
16208 pure expander; move expansion code ...
16209 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
16210 * config/i386/i386-protos.h: Update.
16212 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
16214 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
16215 (popcntb<mode>2): Add attribute type popcnt.
16216 (popcntd<mode>2): Ditto.
16217 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
16218 * config/rs6000/power5.md (define_insn_reservation): Ditto.
16219 * config/rs6000/power7.md (define_insn_reservation): Ditto.
16220 * config/rs6000/476.md (define_insn_reservation): Ditto.
16221 * config/rs6000/power6.md (define_insn_reservation): New
16222 reservation for popcnt instructions.
16224 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
16226 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
16228 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
16231 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
16233 * config/i386/i386.c (ix86_option_override_internal): Allow
16234 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
16236 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
16237 if SSE is disabled.
16239 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
16241 * double-int.c (double_int_multiple_of): New function.
16242 * double-int.h (double_int_multiple_of): New decl.
16243 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
16244 (mbc_entry_hash): New forward decl.
16245 (mbc_entry_eq): Likewise.
16246 (zero_cost): Change to no_cost.
16247 (mult_costs): New static var.
16248 (cost_tables_exist): Likewise.
16249 (initialize_costs): New function.
16250 (finalize_costs): Likewise.
16251 (tree_ssa_iv_optimize_init): Call initialize_costs.
16252 (add_cost): Change to add_regs_cost; distinguish costs by speed.
16253 (multiply_regs_cost): New function.
16254 (add_const_cost): Likewise.
16255 (extend_or_trunc_reg_cost): Likewise.
16256 (negate_reg_cost): Likewise.
16257 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
16259 (get_address_cost): Change add_cost to add_regs_cost; change
16260 multiply_by_cost to multiply_by_const_cost.
16261 (force_expr_to_var_cost): Change zero_cost to no_cost; change
16262 add_cost to add_regs_cost; change multiply_by_cost to
16263 multiply_by_const_cost.
16264 (split_cost): Change zero_cost to no_cost.
16265 (ptr_difference_cost): Likewise.
16266 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
16267 to multiply_by_const_cost.
16268 (get_computation_cost_at): Change add_cost to add_regs_cost; change
16269 multiply_by_cost to multiply_by_const_cost.
16270 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
16271 (determine_iv_cost): Change add_cost to add_regs_cost.
16272 (iv_ca_new): Change zero_cost to no_cost.
16273 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
16274 * tree-ssa-address.c (most_expensive_mult_to_index): Change
16275 multiply_by_cost to multiply_by_const_cost.
16276 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
16277 (add_regs_cost): New decl.
16278 (multiply_regs_cost): Likewise.
16279 (add_const_cost): Likewise.
16280 (extend_or_trunc_reg_cost): Likewise.
16281 (negate_reg_cost): Likewise.
16283 2012-06-22 Richard Guenther <rguenther@suse.de>
16285 Merge from graphite branch
16286 2011-08-10 Sebastian Pop <sebpop@gmail.com>
16288 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
16290 2012-01-13 Tobias Grosser <tobias@grosser.es>
16292 * tree-flow.h (parallelized_function_p): Declare.
16293 * tree-parloops.c (parallelized_function_p): Export.
16294 * graphite.c (graphite_transform_loops): Do not run graphite on
16295 already parallel functions.
16297 2012-06-22 Alan Modra <amodra@gmail.com>
16299 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
16300 return mem. Convert to indirect addressing if not indirect or
16301 indexed. Adjust all callers.
16303 2012-06-22 Richard Guenther <rguenther@suse.de>
16305 * gcov-iov.c: Include bconfig.h and system.h.
16307 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
16309 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
16311 2012-06-22 Richard Guenther <rguenther@suse.de>
16313 PR gcov-profile/53744
16314 * gcov-iov.c (main): Treat "" and "prerelease" the same.
16316 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
16319 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
16320 for GNU Fortran if in strict DWARF2 mode.
16322 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
16324 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
16325 DECL_IGNORED_P non-reg vars even if they are used.
16327 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
16331 * var-tracking.c (vt_get_canonicalize_base): New.
16332 (vt_canonicalize_addr, vt_stack_offset_p): New.
16333 (vt_canon_true_dep): New.
16334 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
16335 (clobber_overlaping_mems): Use vt_canonicalize_addr.
16337 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
16341 * var-tracking.c (vt_initialize): Record initial offset between
16342 arg pointer and stack pointer.
16344 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
16348 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
16351 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
16355 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
16357 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
16359 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
16361 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
16364 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
16366 2012-06-21 Meador Inge <meadori@codesourcery.com>
16369 * c-decl.c (c_push_function_context): Restore the behavior to reuse
16370 the language function allocated for -Wunused-local-typedefs.
16371 (c_pop_function_context): If necessary, clear the language function
16372 created in c_push_function_context. Always clear out the
16373 x_cur_stmt_list field of the restored language function.
16375 2012-06-21 Sterling Augustine <saugustine@google.com>
16376 Cary Coutant <ccoutant@google.com>
16378 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
16379 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
16380 (comdat_type_struct): New field 'skeleton_die'.
16381 (breakout_comdat_types): Update it.
16382 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
16383 is_namespace_die. Fix minor style violation. Call want_pubnames.
16384 (add_pubname_string): Call want_pubnames.
16385 (add_pubtype): Rework logic for calculating type name. Call
16386 is_namespace_die. Call want_pubnames.
16387 (output_pubnames): Move conditional logic deciding when to produce the
16388 section from dwarf2out_finish. Use new skeleton_die field.
16389 (base_type_die): Call add_pubtype.
16390 (gen_enumeration_type_die): Unconditionally call add_pubtype.
16391 (gen_subprogram_die): Adjust calls to add_pubname.
16392 (gen_namespace_die): Call add_pubname_string.
16393 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
16394 produce pubnames and pubtypes sections to output_pubnames.
16395 * common.opt (-gpubnames): New option.
16396 * doc/invoke.texi: Document it.
16398 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
16400 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
16402 2012-06-21 Michael Matz <matz@suse.de>
16404 PR middle-end/53688
16405 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
16408 2012-06-21 Richard Guenther <rguenther@suse.de>
16410 * tree-inline.c (estimate_num_insns): Estimate call cost for
16411 tailcalls properly.
16413 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
16415 * tree.h (DECL_SOURCE_COLUMN): New accessor.
16417 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
16419 * config/i386/i386.md (SINCOS): New int iterator.
16420 (sincos): New int attribute.
16421 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
16422 SINCOS int iterator.
16423 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
16424 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
16426 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
16428 * config/i386/i386.md (RDFSGSBASE): New int iterator.
16429 (WRFSGSBASE): Ditto.
16430 (fsgs): New int attribute.
16431 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
16432 RDFSGSBASE int iterator.
16433 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
16434 WRFSGSBASE int iterator.
16436 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
16438 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
16439 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
16440 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
16441 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
16444 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
16446 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
16448 2012-06-20 Richard Guenther <rguenther@suse.de>
16450 PR tree-optimization/30318
16451 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
16453 (range_int_cst_singleton_p): But explicitely here.
16454 (zero_nonzero_bits_from_vr): And here.
16455 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
16456 to cover all cases we can perform arbitrary precision
16457 arithmetic with double-ints.
16458 (intersect_ranges): Handle adjacent anti-ranges.
16460 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
16462 * config/i386/i386.md (rounding_insn): New int attribute.
16463 (<rounding_insn>xf2): Macroize insn from
16464 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
16465 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
16467 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
16469 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
16470 (ieee_maxmin): New int attribute.
16471 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
16472 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
16474 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
16476 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
16477 * config/arm/arm.c: Do not include c-pragma.h.
16478 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
16479 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
16480 to arm_emit_eabi_attribute.
16481 * arm-c.c: Do not include output.h.
16482 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
16483 call to arm_emit_eabi_attribute.
16484 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
16486 2012-06-20 Richard Guenther <rguenther@suse.de>
16488 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
16489 Allow adjusting alignment of user-aligned decls again.
16491 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
16493 * config/rl78/rl78-c.c: Remove unnecessary includes.
16495 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
16497 * config/cris/cris.c: Include cgraph.h.
16498 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
16500 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16502 * emit-rtl.c (need_atomic_barrier_p): New function.
16503 * emit-rtl.h (need_atomic_barrier_p): Declare it.
16504 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
16505 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
16506 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
16507 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
16508 (mips_process_sync_loop): Use generic version instead.
16510 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
16512 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
16515 2012-06-19 Tom de Vries <vries@codesourcery.com>
16516 Maxim Kuvyrkov <maxim@codesourcery.com>
16518 * config/mips/constraints.md (ZR): New constraint.
16519 * config/mips/predicates.md (mem_noofs_operand): New predicate.
16520 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
16521 * config/mips/mips.h (TARGET_XLP): Define.
16522 (TARGET_SYNC_AFTER_SC): Update.
16523 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
16524 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
16525 XLP-specific swap and ldadd patterns.
16526 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
16528 2012-06-19 Tom de Vries <vries@codesourcery.com>
16529 Maxim Kuvyrkov <maxim@codesourcery.com>
16531 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
16532 (mips_emit_post_atomic_barrier_p): New static functions.
16533 (mips_process_sync_loop): Use them. Emit sync memory barriers in
16534 accordance with memory model semantics. Add return of CMP result for
16536 * config/mips/mips.md: Update comment.
16537 (sync_cmp): New attribute.
16538 (sync_memmodel): New attribute replacing sync_release_barrier.
16539 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
16540 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
16541 (sync_lock_test_and_set, test_and_set_12): Update.
16542 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
16543 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
16545 2012-06-19 Joseph Myers <joseph@codesourcery.com>
16547 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
16548 mov_si<mode>_e500_subreg0.
16549 (*mov_si<mode>_e500_subreg0_elf_low)
16550 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
16552 2012-06-19 Richard Henderson <rth@redhat.com>
16554 * config/alpha/alpha.c: Include params.h.
16555 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
16556 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
16558 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
16560 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
16561 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
16562 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
16564 * doc/tm.texi: Regenerate.
16565 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
16566 .objc_class_name_*.
16567 * config/darwin-c.c: Include target.h.
16568 (darwin_objc_declare_unresolved_class_reference): New function.
16569 (darwin_objc_declare_class_definition): New function.
16570 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
16571 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
16573 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
16575 * target.def (output_ident): New hook.
16576 * targhooks.h (default_asm_output_ident_directive): Add prototype.
16577 * varasm.c (assemble_asm): Only prefix a tab if the string does not
16578 already start with one.
16579 (default_asm_output_ident_directive): New function to emit
16580 .ident as a top-level asm node while parsing, or directly to
16581 asm_out_file after parsing.
16582 * toplev.c (compile_file): Print a GCC .ident with
16583 targetm.asm_out.output_ident.
16584 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
16585 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
16586 * doc/tm.texi: Update.
16588 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
16589 (TARGET_ASM_OUTPUT_IDENT): Define.
16590 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
16591 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
16592 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
16593 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
16594 (TARGET_ASM_OUTPUT_IDENT): Define.
16595 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
16596 (TARGET_ASM_OUTPUT_IDENT): Define.
16598 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
16599 * config/cris/cris.c (cris_asm_output_ident): New function.
16600 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
16602 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
16604 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
16605 (microblaze_asm_output_ident): Rewrite to work similar to
16606 default_asm_output_ident_directive for front-end .idents.
16607 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
16608 (TARGET_ASM_OUTPUT_IDENT): Define.
16610 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
16611 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
16613 * config/rx/rx.c: Include cgraph.h for add_asm_node.
16614 (rx_asm_output_ident): New function, similar to
16615 default_asm_output_ident_directive, but handle AS100 syntax also, so
16616 that #ident also works for rx in AS100 syntax.
16617 (TARGET_ASM_OUTPUT_IDENT): Define.
16618 * config/rx/rx.h (IDENT_ASM_OP): Remove.
16620 * Makefile.in: Fix dependencies for c-family/c-lex.o.
16622 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
16624 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
16625 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
16627 (*fist<mode>2_<rounding>_1): Macroize insn from
16628 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
16629 (fistdi2_<rounding>): Macroize insn from
16630 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
16631 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
16632 corresponding splitters from fistdi2_{floor,ceil} and corresponding
16633 splitters using FIST_ROUNDING int iterator.
16634 (fist<mode>2_<rounding>): Macroize insn from
16635 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
16636 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
16637 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
16638 splitters using FIST_ROUNDING int iterator.
16639 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
16640 using FIST_ROUNDING int iterator.
16642 2012-06-19 Richard Henderson <rth@redhat.com>
16644 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
16645 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
16646 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
16647 * config/i386/sse.md (sse2_mulv4si3): Delete.
16648 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
16649 nonimmediate_or_const_vector_operand.
16651 2012-06-19 Richard Henderson <rth@redhat.com>
16653 * expmed.c (struct init_expmed_rtl): Split ...
16654 (init_expmed_one_mode): ... out of ...
16655 (init_expmed): ... here. Initialize integer vector modes also.
16656 (synth_mult): Handle integer vector modes.
16657 (choose_mult_variant): Likewise.
16658 (expand_mult_const): Likewise.
16659 (expand_mult): Likewise.
16660 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
16662 2012-06-19 Richard Henderson <rth@redhat.com>
16664 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
16665 integral vector modes.
16667 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
16669 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
16670 (rounding): New int attribute.
16672 (frndintxf2_<rounding>): Macroize insn from
16673 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
16674 (frndintxf2_<rounding>_i387): Macroize insn from
16675 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
16677 2012-06-19 Richard Guenther <rguenther@suse.de>
16679 * tree-vrp.c (union_ranges): New function.
16680 (vrp_meet_1): Use union_ranges.
16681 (vrp_meet): Dump what we union and call vrp_meet_1.
16683 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
16685 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
16686 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
16687 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
16688 (attr write_conflict, attr core_cycles): Update.
16689 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
16691 2012-06-19 Richard Guenther <rguenther@suse.de>
16693 * tree-vrp.c (intersect_ranges): Handle more cases.
16694 (vrp_intersect_ranges): Dump what we intersect and call ...
16695 (vrp_intersect_ranges_1): ... this.
16697 2012-06-19 Richard Guenther <rguenther@suse.de>
16699 PR tree-optimization/53708
16700 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
16701 user-supplied alignment and alignment of decls with the used
16704 2012-06-18 Lawrence Crowl <crowl@google.com>
16706 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
16707 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
16708 (TV_PHASE_STREAM_IN): New.
16709 (TV_PHASE_STREAM_OUT): New.
16710 * timevar.c (validate_phases): New.
16711 (timevar_print): Call validate_phases.
16712 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
16713 to TV_PHASE_OPT_GEN.
16714 * langhooks.c (write_global_declarations): Rename use of
16715 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
16716 TV_PHASE_CHECK_DBGINFO.
16717 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
16718 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
16719 lang_hooks.decls.final_write_globals.
16721 2012-06-18 David Edelshn <dje.gcc@gmail.com>
16723 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
16725 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
16728 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
16729 (*sse4_2_pcmpistr_unaligned): New.
16731 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16732 Sameera Deshpande <sameera.deshpande@arm.com>
16733 Greta Yorsh <greta.yorsh@arm.com>
16735 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
16736 * config/arm/arm.c (print_multi_reg): Remove.
16737 (vfp_output_fldmd): Likewise.
16738 (arm_output_epilogue): Likewise.
16739 * config/arm/arm.md (epilogue_insns): Update condition and code.
16741 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16742 Sameera Deshpande <sameera.deshpande@arm.com>
16743 Greta Yorsh <greta.yorsh@arm.com>
16745 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
16746 * config/arm/arm.c (thumb2_expand_return): New function.
16747 * config/arm/arm.md (return): Update condition and code.
16749 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16750 Sameera Deshpande <sameera.deshpande@arm.com>
16751 Greta Yorsh <greta.yorsh@arm.com>
16753 * config/arm/arm-protos.h (output_return_instruction): New parameter
16754 and int to bool change of parameter types.
16755 * config/arm/arm.c (output_return_instruction): Likewise.
16756 * config/arm/arm.md (arm_simple_return): New pattern.
16757 (arm_return, cond_return, cond_return_inverted): Add new arguments.
16758 * config/arm/thumb2.md (thumb2_return): Update condition and code.
16760 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16761 Sameera Deshpande <sameera.deshpande@arm.com>
16762 Greta Yorsh <greta.yorsh@arm.com>
16764 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
16765 * config/arm/arm.c (arm_expand_epilogue): New function.
16766 * config/arm/arm.md (epilogue): Update condition and code.
16767 (sibcall_epilogue): Likewise.
16769 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16770 Sameera Deshpande <sameera.deshpande@arm.com>
16771 Greta Yorsh <greta.yorsh@arm.com>
16773 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
16774 * config/arm/arm.md (arm_addsi3) Add an alternative.
16776 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16777 Sameera Deshpande <sameera.deshpande@arm.com>
16778 Greta Yorsh <greta.yorsh@arm.com>
16780 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
16781 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
16782 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
16784 2012-06-18 Ian Bolton <ian.bolton@arm.com>
16785 Sameera Deshpande <sameera.deshpande@arm.com>
16786 Greta Yorsh <greta.yorsh@arm.com>
16788 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
16789 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
16790 (pop_multiple_with_return, ldr_with_return) Likewise.
16791 * config/arm/predicates.md (pop_multiple_return) New special predicate.
16792 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
16793 * config/arm/arm.c (arm_output_multireg_pop) New function.
16794 (arm_emit_multi_reg_pop): New function.
16796 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
16798 * config/arm/arm.c (ldm_stm_operation_p): Require SP
16799 as base register for loads if SP is in the register list.
16801 2012-06-18 Richard Guenther <rguenther@suse.de>
16803 PR tree-optimization/53693
16804 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
16805 Reject operands with more than one use.
16807 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
16809 PR tree-optimization/53703
16810 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
16811 correctly set bb_for_def[12].
16813 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
16815 * config/vax/vax.h (VMS_TARGET): Remove.
16817 2012-06-18 Richard Guenther <rguenther@suse.de>
16819 * tree-vrp.c (extract_range_from_assert): Split out range
16821 (intersect_ranges): New function.
16822 (vrp_intersect_ranges): Likewise.
16824 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16826 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
16829 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
16831 * doc/md.texi: Document int iterators.
16832 * read-rtl.c (ints): New iterator group.
16833 (find_int): Int iterator group callback.
16834 (apply_int_iterator): Likewise.
16835 (apply_iterators): Traverse int iterator table and add all the used
16837 (initialize_iterators): Initialize data structures and callbacks for
16839 (read_rtx): Parse and read mappings for int iterators.
16840 (read_rtx_code): Record int iterator usage.
16842 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
16844 PR middle-end/53698
16845 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
16846 performing an addition.
16848 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
16850 * output.h (split_double): Move prototype to rtl.h.
16851 (constructor_static_from_elts_p): Move prototype to tree.c.
16852 * rtl.h (split_double): Moved here from output.h.
16853 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
16854 * final.c (split_double): Move from here ...
16855 * rtlanal.c (split_double): ... to here.
16856 * expr.c: Do not include output.h.
16858 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
16860 * cfglayout.h: Remove.
16861 * cfglayout.c: Remove.
16862 * function.h (struct function): Remove x_last_location field.
16863 * function.c: Do not include cfglayout.h.
16864 (expand_function_start): Do not call no-op force_next_line_note.
16865 (expand_function_end): Likewise.
16866 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
16867 (unlink_insn_chain): Moved here from cfglayout.c.
16868 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
16869 into_cfg_layout_mode, outof_cfg_layout_mode,
16870 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
16871 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
16872 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
16873 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
16874 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
16875 cfg_layout_finalize): Likewise.
16876 (rtl_can_remove_branch_p): Likewise.
16877 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
16878 (duplicate_insn_chain): Likewise.
16879 (force_next_line_note): Remove prototype.
16880 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
16881 (last_location): Remove #define to emit.x_last_location.
16882 (force_next_line_note): Remove no-op function.
16883 (init_emit): Don't set x_last_location.
16884 (block_locators_locs, block_locators_blocks, locations_locators_locs,
16885 locations_locators_vals, prologue_locator, epilogue_locator,
16886 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
16887 Move POD to here from cfglayout.c.
16888 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
16889 set_curr_insn_source_location, get_curr_insn_source_location,
16890 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
16891 locator_scope, insn_scope, locator_location, locator_line, insn_line,
16892 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
16893 * cfghooks.h: Remove double-include protection.
16894 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
16895 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
16896 * final.c: Do not include cfglayout.h.
16897 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
16898 (reemit_insn_block_notes): Likewise. Make static.
16899 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
16900 operation_could_trap_p, tree_could_throw_p): Move from here...
16901 * tree.h: ... to here.
16902 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
16903 * profile.c: Do not include cfghooks.h.
16904 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
16905 * modulo-sched.c: Likewise.
16906 * loop-unswitch.c: Do not include cfglayout.h.
16907 * sched-ebb.c: Likewise.
16908 * tracer.c: Likewise.
16910 * tree-vect-loop-manip.c: Likewise.
16911 * loop-init.c: Likewise.
16912 * dwarf2out.c: Likewise.
16913 * hw-doloop.c: Likewise.
16914 * loop-unroll.c: Likewise.
16915 * cfgcleanup.c: Likewise.
16916 * bb-reorder.c: Likewise.
16917 * sched-rgn.c: Likewise.
16918 * tree-cfg.c: Likewise.
16919 * config/alpha/alpha.c: Likewise.
16920 * config/spu/spu.c: Likewise.
16921 * config/sparc/sparc.c: Likewise.
16922 * config/sh/sh.c: Likewise.
16923 * config/c6x/c6x.c: Likewise.
16924 * config/ia64/ia64.c: Likewise.
16925 * config/rs6000/rs6000.c: Likewise.
16926 * config/score/score.c: Likewise.
16927 * config/mips/mips.c: Likewise.
16928 * config/bfin/bfin.c: Likewise.
16929 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
16930 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
16931 * config/spu/t-spu-elf (spu.o: $): Likewise.
16932 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
16934 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
16936 * cfgloop.h: Do not include rtl.h.
16937 (enum iv_extend_code): New.
16938 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
16939 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
16940 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
16941 an IV_EXTEND_CODE to an RTX_CODE.
16942 (dump_iv_info): Update for rtx_iv field type change.
16943 (iv_constant): Likewise.
16944 (iv_subreg): Likewise.
16945 (iv_extend): Likewise.
16946 (iv_neg): Likewise.
16947 (iv_add): Likewise.
16948 (iv_mult): Likewise.
16949 (iv_shift): Likewise.
16950 (get_biv_step_1): Likewise.
16951 (get_biv_step): Likewise.
16952 (iv_analyze_biv): Likewise.
16953 (get_iv_value): Likewise.
16954 (shorten_into_mode): Likewise.
16955 (canonicalize_iv_subregs): Likewise.
16956 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
16957 of MAY_HAVE_DEBUG_INSNS.
16958 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
16959 * tree-ssa-loop-prefetch.c: Likewise.
16961 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
16963 * expmed.c (ceil_log2): Move from here...
16964 * hwint.c: ... to here for older GCCs...
16965 * hwint.h: ... and here for newer GCCs.
16966 * rtl.h (ceil_log2): Remove prototype.
16968 * tree-phinodes.c: Do not include rtl.h.
16969 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
16971 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
16973 * config/cris/cris.h (TARGET_ELF): Remove.
16974 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
16975 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
16976 (LOCAL_LABEL_PREFIX): Likewise.
16977 * config/cris/cris.c (cris_target_asm_named_section): Remove.
16978 (cris_option_override): Simpify using TARGET_ELF==1.
16979 (cris_file_start): Likewise.
16980 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
16982 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
16984 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
16986 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
16988 PR middle-end/53590
16989 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
16991 2012-06-15 Easwaran Raman <eraman@google.com>
16993 * passes.c (init_optimization_passes): Remove pass_call_cdce
16994 from its current position and insert after pass_dce.
16996 2012-06-15 Walter Lee <walt@tilera.com>
16998 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
17000 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
17002 * arm.c (note_invalid_constants): Don't return a result.
17003 (arm_memory_load_p): Delete function.
17004 (arm_const_double_rtx): Delete iterator variable i;
17005 (fp_immediate_constant): Likewise.
17006 (fp_const_from_val): Likewise.
17008 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
17010 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
17013 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
17014 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
17016 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
17018 * config/avr/avr.c (avr_default_expand_builtin): New function.
17019 (avr_expand_builtin): Use it.
17020 (avr_expand_unop_builtin): Remove.
17021 (avr_expand_binop_builtin): Remove.
17022 (avr_expand_triop_builtin): Remove.
17024 2012-06-15 Michael Matz <matz@suse.de>
17026 PR middle-end/38474
17027 * cfgexpand.c (add_alias_set_conflicts): Remove.
17028 (expand_used_vars): Don't call it.
17029 (aggregate_contains_union_type): Remove.
17030 * function.c (n_temp_slots_in_use): New static data.
17031 (make_slot_available, assign_stack_temp_for_type): Update it.
17032 (init_temp_slots): Zero it.
17033 (remove_unused_temp_slot_addresses): Use it for quicker removal.
17034 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
17036 2012-06-15 Michael Matz <matz@suse.de>
17038 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
17039 argument, don't emit assign statement if value is directly usable.
17040 (gimplify_expr): Adjust.
17042 2012-06-15 Michael Matz <matz@suse.de>
17044 * gimplify.c (gimplify_modify_expr): Fold generated statements.
17045 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
17047 2012-06-15 Richard Guenther <rguenther@suse.de>
17049 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
17050 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
17051 we assert for in set_value_range to VR_VARYING.
17053 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
17055 * arm.md (addsf3, adddf3): Use s_register_operand.
17056 (subsf3, subdf3): Likewise.
17057 (mulsf3, muldf3): Likewise.
17058 (difsf3, divdf3): Likewise.
17059 (movsfcc, movdfcc): Likewise.
17060 * predicates.md (f_register_operand): Delete.
17061 (arm_float_rhs_operand): Delete.
17062 (arm_float_add_operand): Delete.
17063 (arm_float_compare_operand): Use s_register_operand when
17065 (cirrus_register_operand): Delete.
17066 (cirrus_fp_register): Delete.
17067 (cirrus_shift_const): Delete.
17068 (cmpdi_operand): Remove Maverick support.
17069 * constraints.md (f, v, H): Delete constraints.
17070 (G): Update documentation.
17071 * arm.c (fp_consts_inited): Convert to bool.
17072 (strings_fp): Delete.
17073 (values_fp): Delete.
17074 (value_fp0): New variable.
17075 (init_fp_table): Simplify logic.
17076 (arm_const_double_rtx): Likewise.
17077 (fp_immediate_constant): Likewise.
17078 (fp_const_from_val): Likewise.
17079 (neg_const_double_rtx_ok_for_fpa): Delete.
17080 * doc/md.texi (ARM constraints): Update documentation.
17082 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
17084 PR tree-optimization/53636
17085 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
17086 stride when doing basic-block vectorization.
17088 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17090 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
17091 into VEC_PERM_EXPR.
17093 2012-06-15 Jakub Jelinek <jakub@redhat.com>
17095 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
17096 allocate and free bbs array for the SLP case.
17098 PR tree-optimization/51581
17099 * expr.h (choose_multiplier): New prototype.
17100 * expmed.c (choose_multiplier): No longer static.
17101 Change multiplier_ptr from rtx * to UHWI *.
17102 (expand_divmod): Adjust callers.
17103 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
17104 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
17105 argument to new_stmt_vec_info. Attempt to optimize also divisions
17106 by non-pow2 constants if integer vector division isn't supported.
17107 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
17108 don't look at pattern stmts and sequences.
17110 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
17112 PR middle-end/53590
17113 * common.opt (-fdelete-dead-exceptions): New switch.
17114 * doc/invoke.texi (Code Gen Options): Document it.
17115 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
17116 insn_could_throw_p predicate. Do not skip an insn that could throw
17117 if dead exceptions can be deleted.
17118 (insn_live_p): Likewise, do not return true in that case.
17119 * dce.c (can_alter_cfg): New flag.
17120 (deletable_insn_p): Do not return false for an insn that can throw if
17121 the CFG can be altered and dead exceptions can be deleted.
17122 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
17123 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
17124 predicate. Do not preserve an insn that could throw if dead exceptions
17126 * function.h (struct function): Add can_delete_dead_exceptions flag.
17127 * function.c (allocate_struct_function): Set it.
17128 * lto-streamer-in.c (input_struct_function_base): Stream it.
17129 * lto-streamer-out.c (input_struct_function_base): Likewise.
17130 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
17131 statement that could throw as necessary if dead exceptions can be
17134 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
17136 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
17138 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
17141 * config/sh/sh.md: Add peephole for swapbsi2.
17142 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
17144 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
17146 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
17147 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
17149 2012-06-14 Jakub Jelinek <jakub@redhat.com>
17152 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
17154 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
17156 * arm.c (arm_cirrus_insn_p): Delete.
17157 (cirrus_reorg): Delete.
17158 (arm_reorg): Don't call cirrus_reorg.
17159 (arm_final_prescan_insn_p): Don't check for cirrus insns.
17160 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
17161 (adddi3, subdi3): Remove Maverick support.
17162 (arm_adddi3): Likewise.
17163 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
17164 (addsf3, adddf3): Likewise.
17165 (subsf3, subdf3): Likewise.
17166 (mulsf3, muldf3): Likewise.
17167 (ashldi3, ashrdi3, lshrdi3): Likewise.
17168 (floatsisf2, floatsidf2): Likewise.
17169 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
17170 (arm_movdi, thumb1_movdi_insn): Likewise.
17171 (arm_cmpdi_insn): Likewise.
17172 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
17173 (cirrus.md): Don't include.
17174 * cirrus.md: Delete file.
17175 * t-arm (MD_INCLUDES): Remove cirrus.md.
17177 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
17179 * dwarf2out.c (function_possibly_abstracted_p): New static function.
17180 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
17181 cgraph_function_possibly_inlined_p.
17182 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
17183 (process_scope_var): Do not emit concrete instances of abstracted
17184 nested functions from here.
17185 (gen_decl_die): Emit the abstract instance if the function is possibly
17186 abstracted and not only possibly inlined.
17187 (dwarf2out_finish): Find the first non-abstract parent instance and
17188 attach concrete instances on the limbo list to it.
17190 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
17192 * arm.md (divsf3, divdf3): Remove FPA support.
17193 (negsf2, negdf2): Likewise.
17194 (sqrtsf2, sqrtdf2): Likewise.
17195 (movdfcc): Likewise.
17196 (modsf3, moddf3, movxf): Delete.
17197 (push_fp_multi): Delete.
17198 (fpa.md): Don't include it.
17199 * fpa.md: Delete file.
17200 * t-arm (MD_INCLUDES): Remove fpa.md.
17202 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
17204 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
17205 (cost_for_stmt): Remove decl.
17206 (vect_get_single_scalar_iteration_cost): Correct typo in name.
17207 * tree-vect-loop.c (vect_get_cost): Remove.
17208 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
17209 vect_get_stmt_cost rather than vect_get_cost.
17210 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
17212 (vect_estimate_min_profitable_iters): Correct typo in call to
17213 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
17214 than vect_get_cost.
17215 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
17217 (vect_model_induction_cost): Likewise.
17218 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
17219 typo in call to vect_get_single_scalar_iteration_cost.
17220 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
17221 (cost_for_stmt): Remove unnecessary function.
17222 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
17224 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
17226 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
17227 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
17228 * arm-tables.opt: Regenerated.
17229 * doc/invoke.texi: Remove references to deleted options.
17231 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
17233 * config/h8300/genmova.sh: Modified to add offset bits of
17234 mova/Sz assembly instruction for memory access.
17235 * config/h8300/h8300.c: Likewise.
17236 * config/h8300/mova.md: Likewise.
17238 2012-06-12 Christian Bruel <christian.bruel@st.com>
17241 * config/sh/sh.c (sh_option_override): Don't force
17242 flag_omit_frame_pointer and maccumulate_outgoing_args.
17243 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
17245 2012-06-14 Richard Guenther <rguenther@suse.de>
17247 * tree-vrp.c (VR_INITIALIZER): New define.
17248 (ranges_from_anti_range): New function.
17249 (extract_range_from_binary_expr_1): Decompose operations on
17250 VR_ANTI_RANGEs to operations on VR_RANGE.
17251 (extract_range_from_unary_expr_1): Likewise.
17252 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
17253 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
17254 extract_range_from_cond_expr, adjust_range_with_scev,
17255 vrp_visit_assignment_or_call, vrp_visit_phi_node,
17256 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
17258 2012-06-13 Richard Henderson <rth@redhat.com>
17260 * hwint.h (HOST_WIDEST_INT_C): New.
17261 (HOST_WIDE_INT_C): New.
17262 (HOST_WIDE_INT_1): Use it.
17263 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
17265 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
17268 * var-tracking.c: Include alias.h.
17269 (overlapping_mems): New struct.
17270 (drop_overlapping_mem_locs): New.
17271 (clobber_overlapping_mems): New.
17272 (var_mem_delete_and_set, var_mem_delete): Call it.
17273 (val_bind): Likewise, but only if modified.
17274 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
17275 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
17277 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
17280 * var-tracking.c (loc_exp_dep_pool): New.
17281 (vt_emit_notes): Create and release the pool.
17282 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
17283 (emit_notes_in_bb): Likewise.
17284 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
17285 (notify_dependents_of_changed_value): Likewise.
17286 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
17287 variables don't have a VAR_LOC_DEP_LST.
17288 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
17289 VALUEs or MEMs of VALUEs.
17291 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
17295 * dce.c (word_dce_process_block): Insert debug temps only if the
17296 insn is not marked.
17297 (dce_process_block): Likewise, and if debug.used is not empty,
17298 and only after iterating over all DEFs that might mark the insn.
17300 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
17302 * common.opt (ftree-coalesce-inlined-vars): New.
17303 (ftree-coalesce-vars): New.
17304 * doc/invoke.texi: Document them.
17305 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17308 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
17310 * read-rtl.c (mapping): Remove index field. Add current_value field.
17311 Define heap vectors.
17312 (iterator_group): Fix long line. Remove num_builtins field and
17313 uses_iterator fields. Make apply_iterator take a void * parameter.
17314 (iterator_use, atttribute_use): New structures.
17315 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
17316 (current_iterators, iterator_uses, attribute_uses): New variables.
17317 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
17318 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
17319 (map_attr_string, apply_iterator_to_string): Remove iterator
17320 and value parameters. Look through all current iterator values
17321 for a matching attribute.
17322 (mode_attr_index, apply_mode_maps): Delete.
17323 (apply_iterator_to_rtx): Replace with...
17324 (copy_rtx_for_iterators): ...this new function.
17325 (uses_iterator_p, apply_iterator_traverse): Delete.
17326 (apply_attribute_uses, add_current_iterators, apply_iterators): New
17328 (add_mapping): Remove index field. Set current_value field.
17329 (initialize_iterators): Don't set num_builtins and uses_iterator_p
17331 (find_iterator): Delete.
17332 (record_iterator_use, record_attribute_use): New functions.
17333 (record_potential_iterator_use): New function.
17334 (check_code_iterator): Remove handling of bellwether codes.
17335 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
17336 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
17337 parameter. Use the first code iterator value instead of the
17338 bellwether_codes array. Use record_potential_iterator_use for modes.
17340 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
17343 * config/sh/sh.md (bswapsi2): New expander.
17344 (swapbsi2): New insn.
17346 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
17349 * config/i386/i386.c (ix86_tune_cost): New variable.
17350 (ix86_option_override_internal): Set ix86_tune_cost. Use
17351 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
17352 l1_cache_size and l2_cache_size.
17354 2012-06-13 Richard Guenther <rguenther@suse.de>
17356 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
17357 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
17358 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
17359 VR_ANTI_RANGE with VR_ANTI_RANGE.
17361 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
17363 * config.gcc (unsupported): Move obsoleted FPA-based configurations
17365 (obsolete): ... here.
17366 (arm*-*-freebsd*): Remove.
17367 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
17368 (arm*-*-uclinux*): Likewise.
17369 (arm*-*-ecos-elf): Remove.
17370 (arm*-*-rtems*): Remove.
17371 (arm*-*-elf): Remove.
17372 (arm*-wince-pe*): Remove.
17373 (arm, --with-fpu): Remove support for fpa and Maverick variants.
17374 * arm/ecos-elf.h: Delete.
17375 * arm/t-strongarm-elf: Delete.
17376 * arm/rtems-elf.h: Delete.
17377 * arm/wince-pe.h: Delete.
17378 * arm/pe.c: Delete.
17379 * arm/pe.h: Delete.
17380 * arm/t-wince-pe: Delete.
17382 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
17384 PR tree-optimization/53647
17385 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
17386 targets with no defined cache line size.
17388 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
17390 * targhooks.c (default_builtin_vectorized_conversion): Handle
17391 vec_construct, using vectype to base cost on subparts.
17392 * target.h (enum vect_cost_for_stmt): Add vec_construct.
17393 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
17394 instead of scalar_to-vec.
17395 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
17396 vec_construct in same way as default for now.
17397 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
17398 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
17399 Handle vec_construct, including special case for 32-bit loads.
17401 2012-06-13 Xinyu Qi <xyqi@marvell.com>
17403 * config/arm/arm.c (FL_IWMMXT2): New define.
17404 (arm_arch_iwmmxt2): New variable.
17405 (arm_option_override): Enable use of iWMMXt with VFP.
17406 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
17407 Thumb mode. Set arm_arch_iwmmxt2.
17408 (arm_expand_binop_builtin): Accept VOIDmode op.
17409 (enum arm_builtins): Revise built-in fcode.
17410 (IWMMXT2_BUILTIN): New define.
17411 (IWMMXT2_BUILTIN2): Likewise.
17412 (iwmmx2_mbuiltin): Likewise.
17413 (builtin_description bdesc_2arg): Revise built in declaration.
17414 (builtin_description bdesc_1arg): Likewise.
17415 (arm_init_iwmmxt_builtins): Revise built in initialization.
17416 (arm_expand_builtin): Revise built in expansion.
17417 (arm_output_iwmmxt_shift_immediate): New function.
17418 (arm_output_iwmmxt_tinsr): Likewise.
17419 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
17420 (arm_output_iwmmxt_tinsr): Likewise.
17421 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
17422 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
17423 (rorv4hi3, rorv2si3, rordi3): Likewise.
17424 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
17425 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
17426 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
17427 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
17428 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
17429 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
17430 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
17431 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
17432 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
17433 (ror<mode>3, ror<mode>3_di): Likewise.
17434 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
17435 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
17436 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
17437 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
17438 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
17439 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
17440 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
17441 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
17442 (All instruction patterns): Add wtype attribute.
17443 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
17444 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
17445 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
17446 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
17447 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
17448 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
17449 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
17450 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
17451 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
17452 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
17453 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
17454 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
17455 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
17456 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
17457 (iwmmxt2.md): Include.
17458 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
17459 (TARGET_IWMMXT2): New define.
17460 (TARGET_REALLY_IWMMXT2): Likewise.
17461 (arm_arch_iwmmxt2): Declare.
17462 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
17463 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
17464 Use C name-mangling for intrinsics.
17465 (__v8qi): Redefine.
17466 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
17467 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
17468 (_m_from_int): Likewise.
17469 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
17470 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
17471 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
17472 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
17473 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
17474 (_mm_tbcst_pi32): Likewise.
17475 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
17476 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
17477 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
17478 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
17479 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
17480 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
17481 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
17482 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
17483 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
17484 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
17485 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
17486 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
17487 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
17488 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
17489 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
17490 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
17491 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
17492 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
17493 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
17494 (_m_to_int): New define.
17495 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
17496 * config/arm/arm-arches.def (iwmmxt2): Likewise.
17497 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
17499 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
17500 (arch): Add "iwmmxt2".
17501 (arch_enabled): Handle "iwmmxt2".
17502 (wtype): New attribute.
17503 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
17504 (UNSPEC_WALIGNI): New unspec.
17505 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
17506 * config/arm/iterators.md (VMMX2): New mode_iterator.
17507 * config/arm/marvell-f-iwmmxt.md: New file.
17508 * config/arm/iwmmxt2.md: New file.
17510 2012-06-12 Jakub Jelinek <jakub@redhat.com>
17515 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
17516 if type isn't complete.
17518 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
17520 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
17522 2012-06-12 Richard Henderson <rth@redhat.com>
17524 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
17525 iterator instead of INT.
17527 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
17529 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
17530 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
17532 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
17533 (tree_ssa_phiopt): Call gate_hoist_loads.
17534 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
17535 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
17536 hoist_adjacent_loads.
17537 (local_mem_dependence): New function.
17538 (hoist_adjacent_loads): Likewise.
17539 (gate_hoist_loads): Likewise.
17540 * common.opt (fhoist-adjacent-loads): New switch.
17541 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
17543 2012-06-12 Michael Matz <matz@suse.de>
17545 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
17546 (nonoverlapping_memrefs_p): Don't call it here ...
17547 (true_dependence_1): ... but here.
17549 2012-06-12 Richard Guenther <rguenther@suse.de>
17551 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
17552 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
17553 and MEM_SIZE only refines it. Reflect that and be less conservative
17554 if either of the latter is not known.
17556 2012-06-12 Jakub Jelinek <jakub@redhat.com>
17558 PR rtl-optimization/53589
17559 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
17560 discovery even when e->dest != target. If any LABEL_REF points
17561 to e->dest label, redirect it to target's label.
17563 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
17565 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
17566 condition for generating REG_FRAME_RELATED_EXPR note.
17567 (pop): Add code for generating REG_CFA_RESTORE,
17568 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
17569 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
17570 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
17572 2012-06-11 Richard Henderson <rth@redhat.com>
17574 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
17575 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
17577 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
17579 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
17581 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
17582 Mention that this hook needs to be defined for native TLS.
17583 * doc/tm.texi: Regenerate.
17585 2012-06-11 Mike Stump <mikestump@comcast.net>
17587 * emit-rtl.c (init_emit_once): Iterate through the
17588 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
17589 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
17590 all the MIN_MODE_PARTIAL_INT modes anymore.
17592 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
17594 * config/mips/mips-tables.opt (xlp): Fix merge typo.
17596 2012-06-11 Roland McGrath <mcgrathr@google.com>
17598 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
17599 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
17600 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
17603 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
17606 * config/sh/sh.md (fmasf4): New expander.
17607 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
17608 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
17609 * config/sh/sh.opt (mfused-madd): Remove.
17610 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
17611 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
17612 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
17614 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
17617 2012-06-11 Richard Henderson <rth@redhat.com>
17619 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
17621 2012-06-11 Richard Guenther <rguenther@suse.de>
17623 PR middle-end/53470
17624 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
17625 replace it with the first non-BLOCK context.
17627 2012-06-11 Richard Guenther <rguenther@suse.de>
17629 * alias.c (aliases_everything_p): Remove.
17630 (DIFFERENT_ALIAS_SETS_P): Likewise.
17631 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
17632 Do not use aliases_everything_p or special-case ANDs. Do not
17633 special-case BLKmode moves.
17634 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
17637 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
17639 Fix CRIS build errors with --enable-build-with-cxx.
17640 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
17641 variable "and" to "andop".
17642 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
17643 temporary variable for memory model, passing C++-type-correct
17644 parameter type to expand_mem_thread_fence.
17645 ("atomic_compare_and_swap<mode>"): Ditto.
17647 2012-06-09 Richard Henderson <rth@redhat.com>
17650 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
17651 (pass_jump): Rename from pass_jump2.
17652 (execute_jump2, pass_jump2): New.
17653 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
17654 perform cfg cleanup here. Move the test of PUSH_ROUNDING
17655 and ACCUMULATE_OUTGOING_ARGS test...
17656 (gate_handle_stack_adjustments): ... here.
17657 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
17658 Place new pass_jump2 after pass_stack_adjustments.
17659 * tree-pass.h (pass_jump): Declare.
17661 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
17663 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
17666 2012-06-08 Richard Henderson <rth@redhat.com>
17669 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
17670 note to a clobber insn when no other insn is available.
17672 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
17674 * config/avr/avr.c (avr_case_values_threshold): Return 7.
17676 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
17678 * genhooks.c (main): Set progname.
17679 (emit_documentation): Remove variable found_start, always bail out
17680 when a place is missing.
17681 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
17683 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17685 PR middle-end/53580
17686 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
17687 call walk_gimple_seq_mod instead of walk_gimple_seq.
17688 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
17689 scan_omp_for, scan_omp_sections, scan_omp_single,
17690 execute_lower_omp): Adjust callers.
17691 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
17692 returns false, replace stmt with GIMPLE_NOP.
17693 (check_omp_nesting_restrictions): Instead of issuing warnings,
17694 issue errors and return false if any errors were reported.
17696 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
17698 * doc/invoke.texi (fconserve-space): Remove documentation.
17700 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
17702 * config/rs6000/rs6000-tables.opt: Regenerated.
17704 2012-06-06 Richard Guenther <rguenther@suse.de>
17706 PR tree-optimization/53081
17707 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
17708 (adjacent_dr_p): ... this and make it work for reads, too.
17709 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
17710 (struct partition_s): Change main_stmt to main_dr, add
17711 secondary_dr member.
17712 (build_size_arg_loc): Change to date data-reference and not
17714 (build_addr_arg_loc): New function split out from ...
17715 (generate_memset_builtin): ... here. Use it and simplify.
17716 (generate_memcpy_builtin): New function.
17717 (generate_code_for_partition): Adjust.
17718 (classify_partition): Streamline pattern detection. Detect memcpy.
17719 (ldist_gen): Adjust.
17720 (tree_loop_distribution): Adjust seed statements for memcpy
17723 2012-06-06 Matt Turner <mattst88@gmail.com>
17725 * config/arm/mmintrin.h (_mm_empty): New.
17728 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17730 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
17731 * common.opt (fsched-pressure-algorithm=): Remove.
17732 * flag-types.h (sched_pressure_algorithm): Move to...
17733 * sched-int.h (sched_pressure_algorithm): ...here.
17734 * params.def (sched-pressure-algorithm): New param.
17735 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
17736 * common/config/s390/s390-common.c (s390_option_optimization_table):
17737 Remove OPT_fsched_pressure_algorithm_ entry.
17738 * config/s390/s390.c (s390_option_override): Set a default value for
17739 PARAM_SCHED_PRESSURE_ALGORITHM.
17741 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
17744 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
17745 doing an unsigned compare, make sure the second argument is not a
17747 (rs6000_emit_cmove): Don't allow floating point comparisons when
17748 generating ISEL moves.
17750 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
17752 * config/rs6000/e5500.md: New file.
17753 * config/rs6000/e6500.md: New file.
17754 * config/rs6000/rs6000.c (processor_costs): Add new costs for
17756 (rs6000_option_override_internal): Altivec and Spe options not
17757 allowed with e5500. Spe options not allowed with e6500. Increase
17758 move inline limit for e5500 and e6500. Disable string instructions
17759 for e5500 and e6500. Enable branch targets alignment for e5500 and
17760 e6500. Initialize rs6000_cost for e5500 and e6500.
17761 (rs6000_adjust_cost): Add extra scheduling cycles between compare
17762 and brnach for e5500 and e6500.
17763 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
17764 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
17766 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
17767 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
17769 Include e5500.md and e6500.md.
17770 * config/rs6000/rs6000-opt.h (processor_type): Add
17771 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
17772 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
17773 (powerpc*-*-*): Add new cores e5500, e6500.
17774 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
17776 2012-06-05 Richard Guenther <rguenther@suse.de>
17778 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
17780 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
17783 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
17784 is used for x86_64-*-*.
17786 2012-06-05 Richard Guenther <rguenther@suse.de>
17788 PR tree-optimization/30442
17789 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
17790 vectorization stop analysis at the first stmt we cannot compute
17791 a data-reference for instead of giving up completely.
17793 2012-06-05 Richard Guenther <rguenther@suse.de>
17795 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
17796 (partition_alloc): Initialize it.
17797 (partition_has_writes): New function.
17798 (rdg_flag_uses): Adjust.
17799 (rdg_flag_vertex): Likewise.
17800 (rdg_flag_vertex_and_dependent): Likewise.
17801 (rdg_flag_loop_exits): Likewise.
17802 (build_rdg_partition_for_component): Likewise.
17803 (rdg_build_partitions): Likewise.
17805 2012-06-05 Richard Guenther <rguenther@suse.de>
17807 PR tree-optimization/53081
17808 * tree-loop-distribution.c (generate_memset_builtin): Handle all
17809 kinds of byte-sized stores.
17810 (classify_partition): Likewise.
17811 (tree_loop_distribution): Adjust seed statements used for
17812 !flag_tree_loop_distribution.
17814 2012-06-05 Alan Modra <amodra@gmail.com>
17816 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
17817 (rs6000_emit_prologue): Ensure register used for inline saves
17818 of vector regs is not the static chain register. Revise comment.
17820 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17822 * doc/md.texi (Standard Pattern Names For Generation): Document
17825 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
17828 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
17830 2012-06-04 Jason Merrill <jason@redhat.com>
17832 * dwarf2out.c (is_unit_die): New.
17833 (copy_declaration_context, copy_ancestor_tree): Use it.
17834 (copy_decls_walk): Likewise.
17836 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
17839 * doc/invoke.texi (Wenum-compare): Update documentation.
17841 2012-06-04 Dodji Seketeli <dodji@redhat.com>
17843 PR preprocessor/53463
17844 * parser.c (cp_parser_assignment_expression): Use the location
17845 for the '=' as the default location for the expression.
17847 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
17850 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
17852 (altivec_stvlxl): Ditto.
17853 (altivec_stvrx): Ditto.
17854 (altivec_stvrxl): Ditto.
17856 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
17858 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
17859 (ira_uniform_class_p): New macro.
17861 * ira.c (setup_uniform_class_p): New function.
17862 (setup_allocno_and_important_classes): Call the function.
17863 (print_unform_and_important_classes): New function.
17864 (print_classes): Rename to print_translated_classes.
17865 (ira_debug_allocno_classes): Add call of
17866 print_unform_and_important_classes.
17868 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
17869 classes instead of pressure classes.
17871 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
17873 PR middle-end/47530
17874 * trans-mem.c (expand_block_edges): Do not skip the first
17875 statement when resetting the BB.
17877 2012-06-04 Richard Guenther <rguenther@suse.de>
17879 * tree-data-ref.c (stores_from_loop): Remove.
17880 (stmt_with_adjacent_zero_store_dr_p): Likewise.
17881 (stores_zero_from_loop): Likewise.
17882 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
17883 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
17884 (adjacent_store_dr_p): New function.
17885 * tree-loop-distribution.c (generate_memset_builtin): Pass
17886 the RDG, use the already available data-reference.
17887 (generate_code_for_partition): Pass down RDG.
17888 (classify_partition): Inline parts of the former
17889 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
17890 (ldist_gen): Remember if there was any detected builtin and
17891 do less work if not and flag_tree_loop_distribution is not set.
17892 (tree_loop_distribution): Inline and fuse stores_from_loop
17893 and stores_zero_from_loop here.
17895 2012-06-04 Richard Guenther <rguenther@suse.de>
17897 PR middle-end/53471
17898 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
17899 create new assembler names.
17901 2012-06-04 Richard Guenther <rguenther@suse.de>
17903 * tree-data-ref.c (struct rdg_vertex_info): Remove.
17904 (rdg_vertex_for_stmt): Simplify using gimple_uid.
17905 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
17906 hashtable. Record stmt data-references.
17907 (hash_stmt_vertex_info): Remove.
17908 (eq_stmt_vertex_info): Likewise.
17909 (hash_stmt_vertex_del): Likewise.
17910 (build_empty_rdg): Simplify.
17911 (build_rdg): Adjust.
17912 (free_rdg): Likewise.
17913 (ref_base_address): Remove.
17914 (have_similar_memory_accesses): Likewise.
17915 * tree-data-ref.h (create_rdg_vertices): Remove.
17916 (struct rdg_vertex): Add datarefs member.
17917 (RDGV_DATAREFS): New define.
17918 (RDG_DATAREFS): Likewise.
17919 (have_similar_memory_accesses): Remove.
17920 (rdg_has_similar_memory_accesses): Likewise.
17921 * tree-loop-distribution.c (ref_base_address): Re-implement here.
17922 (similar_memory_accesses): Re-implement using existing data-references.
17923 (tree_loop_distribution): Initialize stmt uids for the stmt to
17925 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
17926 access stmt vinfo for stmts in loop.
17928 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
17931 * config/m68k/m68k.md ("tablejump"): Fix check for
17932 CASE_VECTOR_PC_RELATIVE.
17934 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
17936 * output.h (merge_weak, assemble_alias,
17937 initializer_constant_valid_p,
17938 initializer_constant_valid_for_bitfield_p): Move protos from here...
17939 * tree.h: ... to here.
17940 * cgraphclones.c: Do not include output.h.
17941 * gimplify.c: Likewise.
17942 * reload.c: Likewise.
17943 * recog.c: Likewise.
17944 * tree-ssa-loop-ivopts.c: Likewise.
17945 * tree-switch-conversion.c: Likewise.
17946 * c-parser.c: Likewise.
17947 * c-typeck.c: Likewise.
17948 * Makefile.in: Fix dependencies.
17950 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
17953 * config/avr/avr-stdint.h: New file.
17954 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
17957 2012-06-04 Jakub Jelinek <jakub@redhat.com>
17959 PR tree-optimization/53550
17960 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
17961 is POINTER_TYPE_P, use sizetype as step type instead of type.
17963 2012-06-04 Richard Guenther <rguenther@suse.de>
17965 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
17966 (ref_base_address_1): Likewise.
17967 (remove_similar_memory_refs): Likewise.
17968 * tree-data-ref.h (remove_similar_memory_refs): Remove.
17969 * tree-loop-distribution.c (classify_partition): Do not classify
17970 as builtin if -ftree-loop-distribute-patterns is not enabled.
17971 (fuse_partitions_with_similar_memory_accesses): Inline ...
17972 (ldist_gen): ... here. Fuse all non-builtin partitions if
17973 -ftree-loop-distribution is not enabled. Properly return
17974 the number of created partitions. Do not update SSA form here but ...
17975 (tree_loop_distribution): ... once here for the whole function.
17976 Only walk innermost loops, constrain loops we consider here
17977 further. Do not call remove_similar_memory_refs.
17978 (distribute_loop): Do not check number of loop nodes here.
17980 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
17982 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
17984 2012-06-03 Martin Jambor <mjambor@suse.cz>
17986 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
17987 (ipa_get_jf_known_type_base_type): Likewise.
17988 (ipa_get_jf_known_type_component_type): Likewise.
17989 (ipa_get_jf_constant): Likewise.
17990 (ipa_get_jf_pass_through_formal_id): Likewise.
17991 (ipa_get_jf_pass_through_operation): Likewise.
17992 (ipa_get_jf_ancestor_offset): Likewise.
17993 (ipa_get_jf_ancestor_type): Likewise.
17994 (ipa_get_jf_ancestor_formal_id): Likewise.
17995 (ipa_get_jf_member_ptr_pfn): Likewise.
17996 * ipa-prop.c (ipa_set_jf_known_type): New function.
17997 (ipa_set_jf_constant): Likewise.
17998 (ipa_set_jf_simple_pass_through): Likewise.
17999 (ipa_set_jf_arith_pass_through): Likewise.
18000 (ipa_set_ancestor_jf): Likewise.
18001 (fill_member_ptr_cst_jump_function): Moved up and renamed to
18002 ipa_set_jf_member_ptr_cst.
18003 (detect_type_change_1): Use the new jump function creation functions.
18004 (compute_complex_assign_jump_func): Likewise.
18005 (compute_complex_ancestor_jump_func): Likewise.
18006 (compute_known_type_jump_func): Likewise.
18007 (compute_scalar_jump_functions): Likewise.
18008 (compute_pass_through_member_ptrs): Likewise.
18009 (determine_cst_member_ptr): Likewise.
18010 (combine_known_type_and_ancestor_jfs): Likewise.
18011 (try_make_edge_direct_simple_call): Likewise.
18012 (try_make_edge_direct_virtual_call): Likewise.
18013 (update_indirect_edges_after_inlining): Likewise.
18014 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
18015 access functions. Incorporat NOP_EXPR and BINFO handling from its
18017 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
18018 which was in its callers.
18019 (ipa_value_from_jfunc): Use jump function access functions. Some
18020 functionality moved to functions above.
18021 (propagate_vals_accross_ancestor): Likewise.
18022 (propagate_vals_accross_pass_through): Use jump function access
18024 (propagate_accross_jump_function): Likewise.
18025 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
18027 (inline_merge_summary): Likewise.
18029 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18031 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
18032 * config/pa/pa.c (pa_attr_length_millicode_call): Use
18033 MAX_PCREL17F_OFFSET instead of fixed offset.
18034 (pa_attr_length_call): Likewise.
18035 (pa_attr_length_indirect_call): Likewise.
18037 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
18040 * config/sh/sh.opt (mfsca, mfsrra): New options.
18041 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
18043 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
18044 (sinssf2, cossf2): Fold expanders to ...
18045 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
18046 TARGET_FSCA condition.
18047 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
18049 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
18050 -mno-fsca, -mfsrra, -mno-fsrra.
18052 2012-06-03 Matt Turner <mattst88@gmail.com>
18054 * config/mips/4600.md (r4700_imul_si): New.
18055 (r4700_imul_di): New.
18056 (r4700_fmul_single): New.
18057 (r4700_fmul_double): New.
18058 * config/mips/mips-cpus.def: Add r4700.
18059 * config/mips/mips.c: Likewise.
18060 * config/mips/mips.md: Likewise.
18061 * config/mips/mips-tables.opt: Regenerate.
18063 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
18065 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
18066 new function sparc_initial_elimination_offset.
18067 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
18069 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
18072 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
18074 * expmed.c (expand_mult, choose_multiplier): Change
18075 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
18076 * expr.c (convert_modes): Likewise.
18077 * explow.c (plus_constant): Likewise.
18078 * fixed-value.c (fixed_saturate1, fixed_saturate2)
18079 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
18080 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
18081 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
18082 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
18083 (do_fixed_shift, fixed_convert, fixed_convert)
18084 (fixed_convert_from_int, fixed_convert_from_int)
18085 (fixed_convert_from_real): Likewise.
18086 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
18087 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
18088 * varasm.c (output_constructor_bitfield): Likewise.
18089 * tree-vrp.c (register_edge_assert_for_2): Likewise.
18090 * double-int.c (rshift_double, lshift_double): Likewise.
18091 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
18093 * simplify-rtx.c (mode_signbit_p)
18094 (simplify_const_unary_operation, simplify_binary_operation_1)
18095 (simplify_immed_subreg): Likewise.
18096 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
18097 * tree-vect-generic.c (build_replicated_const): Likewise.
18098 * dbxout.c (stabstr_O): Likewise.
18099 * emit-rtl.c (immed_double_int_const, immed_double_const)
18100 (gen_lowpart_common, init_emit_once): Likewise.
18101 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
18102 (widest_int_cst_value, upper_bound_in_type): Likewise.
18103 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
18104 (fixup_unsigned_type): Likewise.
18105 * real.c (real_to_integer2, real_from_integer): Likewise.
18106 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
18107 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
18109 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
18111 PR middle-end/53501
18112 * fold-const.c (fold_binary_loc): Refine previous change.
18114 2012-06-01 Olivier Hainque <hainque@adacore.com>
18116 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
18117 the "do {" part of the do-while(0) loop.
18119 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
18121 * config/i386/i386.c (x86_sched_reorder): New function.
18122 Added new function x86_sched_reorder.
18124 2012-06-01 Richard Guenther <rguenther@suse.de>
18126 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
18128 (classify_partition): Likewise.
18130 2012-06-01 Richard Guenther <rguenther@suse.de>
18132 * tree-loop-distribution.c (enum partition_kind): New enum.
18133 (struct partition_s): Add kind and main_stmt members.
18134 (partition_alloc): Initialize kind to PKIND_NORMAL.
18135 (partition_builtin_p): New function.
18136 (copy_loop_before): Remove failure path and assert instead.
18137 (generate_loops_for_partition): Likewise.
18138 (generate_memset_zero): Fold into ...
18139 (generate_memset_builtin): ... this.
18140 (classify_partition): New function with code from
18141 can_generate_builtin and generate_builtin.
18142 (generate_builtin): Remove.
18143 (can_generate_builtin): Likewise.
18144 (fuse_partitions_with_similar_memory_accesses): Call
18145 partition_builtin_p instead of can_generate_builtin.
18146 (rdg_build_partitions): Do not call
18147 fuse_partitions_with_similar_memory_accesses here...
18148 (ldist_gen): ... but here after classifying all partitions.
18149 Remove failure path of generate_code_for_partition.
18150 (generate_code_for_partition): Generate code according
18151 to partition classification.
18153 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
18154 Jonathan Wakely <jwakely.gcc@gmail.com>
18157 * doc/invoke.texi (Warning Options): Explain purpose and differences
18158 between -Wmissing-prototypes and -Wmissing-declarations.
18160 2012-06-01 Christian Bruel <christian.bruel@st.com>
18162 * gcc.c (save_switch): Add user_p parameter.
18163 (read_specs): Likewise.
18164 (set_specs): Likewise.
18165 (validate_switches): Likewise.
18166 (validate_switches_from_spec): Likewise.
18167 (validate_all_switches): Pass on user_p parameter.
18168 (struct spec_list): Add user_p field.
18169 (struct switchstr): Add known field.
18170 (save_switch): Add known parameter.
18171 (INIT_STATIC_SPEC): Initialize user_p;
18172 (driver_unknown_option_callbac): call save_switch if
18173 OPT_SPECIAL_unknown.
18174 (driver_handle_option): Propagate OPT_specs.
18175 (do_spec_1): Set validated only if known.
18176 (check_live_switch): Likewise.
18177 (validate_switches): Set validated if known or user_spec.
18179 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
18181 Add CRIS atomic patterns for 1, 2, and 4 bytes.
18182 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
18183 * config/cris/cris-protos.h: Declare it.
18184 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
18185 (TARGET_DEFAULT): Add alignment by 32.
18186 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
18187 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
18188 TARGET_CPU_DEFAULT == 32.
18189 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
18190 * config/cris/cris.md: Include sync.md. Avoid allocating specific
18191 numbers by replacing the define_constants for all UNSPECs with the
18192 equivalent define_c_enum construct.
18193 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
18194 * config/cris/sync.md: New file.
18196 2012-05-31 Matt Turner <mattst88@gmail.com>
18198 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
18199 (r4600_imul_di): New.
18200 (r4600_idiv_si): Rename from r4600_idiv.
18201 (r4600_idiv_di): New.
18203 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
18205 * output.h (__gcc_host_wide_int__): Move to hwint.h.
18206 (decl_default_tls_model): Move to tree.h
18207 (dump_file): Move to system.h.
18208 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
18209 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
18210 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
18211 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
18212 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
18213 dbxout_stab_value_internal_label,
18214 dbxout_stab_value_internal_label_diff): Move from here ...
18215 * dbxout.h: ... to here.
18216 * system.h (dump_file): Moved here from output.h.
18217 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
18218 * tree.h (decl_default_tls_model): Moved here from output.h.
18219 * varasm.c (default_stabs_asm_out_destructor,
18220 default_stabs_asm_out_constructor): Move from here ...
18221 * dbxout.c: ... to here.
18223 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
18225 * collect2.h (dump_file): Rename to dump_ld_file.
18226 * collect2.c: Likewise.
18227 * tlink.c: Likewise.
18229 * alias.c: Do not include output.h.
18230 * auto-inc-dec.c: Likewise.
18231 * bt-load.c: Likewise.
18232 * caller-save.c: Likewise.
18234 * cfgbuild.c: Likewise.
18235 * cfgcleanup.c: Likewise.
18236 * cfglayout.c: Likewise.
18237 * cfgloop.c: Likewise.
18238 * cfgloopanal.c: Likewise.
18239 * cfgloopmanip.c: Likewise.
18240 * cfgrtl.c: Likewise.
18241 * cgraph.c: Likewise.
18242 * cgraphclones.c: Likewise.
18243 * combine-stack-adj.c: Likewise.
18244 * combine.c: Likewise.
18245 * cprop.c: Likewise.
18247 * cselib.c: Likewise.
18248 * dbgcnt.c: Likewise.
18249 * df-problems.c: Likewise.
18250 * df-scan.c: Likewise.
18251 * dojump.c: Likewise.
18252 * fwprop.c: Likewise.
18253 * gcse.c: Likewise.
18254 * graph.c: Likewise.
18255 * haifa-sched.c: Likewise.
18256 * hw-doloop.c: Likewise.
18257 * ipa-inline-transform.c: Likewise.
18258 * ipa-pure-const.c: Likewise.
18259 * ipa-reference.c: Likewise.
18260 * ipa-utils.c: Likewise.
18261 * ira-build.c: Likewise.
18262 * ira-emit.c: Likewise.
18264 * loop-doloop.c: Likewise.
18265 * loop-invariant.c: Likewise.
18266 * loop-iv.c: Likewise.
18267 * loop-unroll.c: Likewise.
18268 * loop-unswitch.c: Likewise.
18269 * lto-cgraph.c: Likewise.
18270 * lto-section-in.c: Likewise.
18271 * lto-streamer-in.c: Likewise.
18273 * mode-switching.c: Likewise.
18274 * postreload-gcse.c: Likewise.
18275 * postreload.c: Likewise.
18276 * predict.c: Likewise.
18277 * profile.c: Likewise.
18279 * reg-stack.c: Likewise.
18280 * regcprop.c: Likewise.
18281 * regmove.c: Likewise.
18282 * regstat.c: Likewise.
18283 * reload1.c: Likewise.
18284 * sched-ebb.c: Likewise.
18285 * sel-sched-dump.c: Likewise.
18286 * simplify-rtx.c: Likewise.
18287 * stor-layout.c: Likewise.
18288 * store-motion.c: Likewise.
18289 * tracer.c: Likewise.
18290 * tree-affine.c: Likewise.
18291 * tree-cfg.c: Likewise.
18292 * tree-cfgcleanup.c: Likewise.
18293 * tree-dfa.c: Likewise.
18294 * tree-into-ssa.c: Likewise.
18295 * tree-nomudflap.c: Likewise.
18296 * tree-optimize.c: Likewise.
18297 * tree-pretty-print.c: Likewise.
18298 * tree-profile.c: Likewise.
18299 * tree-ssa-address.c: Likewise.
18300 * tree-ssa-ccp.c: Likewise.
18301 * tree-ssa-copy.c: Likewise.
18302 * tree-ssa-dom.c: Likewise.
18303 * tree-ssa-loop-ch.c: Likewise.
18304 * tree-ssa-loop-im.c: Likewise.
18305 * tree-ssa-loop-manip.c: Likewise.
18306 * tree-ssa-loop-niter.c: Likewise.
18307 * tree-ssa-loop-prefetch.c: Likewise.
18308 * tree-ssa-loop-unswitch.c: Likewise.
18309 * tree-ssa-loop.c: Likewise.
18310 * tree-ssa-propagate.c: Likewise.
18311 * tree-ssa-structalias.c: Likewise.
18312 * tree-ssa-tail-merge.c: Likewise.
18313 * tree-ssa-threadedge.c: Likewise.
18314 * tree-ssa-threadupdate.c: Likewise.
18315 * tree-ssa-uncprop.c: Likewise.
18316 * tree-ssa-uninit.c: Likewise.
18317 * tree-ssa.c: Likewise.
18318 * value-prof.c: Likewise.
18319 * var-tracking.c: Likewise.
18322 * config/m32r/m32r.c: Include dbxout.h.
18323 * config/pa/pa.c: Likewise.
18324 * config/rs6000/rs6000.c: Likewise.
18326 * Makefile.in: Fix dependencies.
18327 * config/rs6000/t-rs5000: Likewise.
18329 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
18331 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
18332 * gimple.h (block_in_transaction): Check for flag_tm.
18334 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
18336 PR tree-optimization/52558
18337 * cfg.c (alloc_aux_for_edge): Fix comment.
18338 (alloc_aux_for_edge): Remove static.
18339 * basic-block.h (alloc_aux_for_edge): Protoize.
18340 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
18341 (execute_sm_if_changed_flag): New.
18342 (execute_sm_if_changed_flag_set): New.
18343 (execute_sm): Do not generate data races unless requested.
18344 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
18345 (tree_ssa_lim_finalize): Call free_aux_for_edges.
18346 * gimple.h (block_in_transaction): New.
18347 (gimple_in_transaction): Use block_in_transaction.
18349 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
18352 * config/avr/avr.opt (-msp8): Document it.
18353 * doc/invoke.texi (AVR Options): Ditto. And document related
18356 2012-05-31 Diego Novillo <dnovillo@google.com>
18358 * configure.ac (CXX_FOR_BUILD): Define and substitute.
18359 (BUILD_CXXFLAGS): Define and substitute.
18360 * Makefile.in (BUILD_CXXFLAGS): Define.
18361 (CXX_FOR_BUILD): Define.
18362 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
18363 (LINKER_FOR_BUILD): Likewise.
18364 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
18365 (BUILD_LINKERFLAGS): Likewise.
18366 * configure: Regenerate.
18368 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
18370 * Makefile.in: Fix many dependencies.
18371 * tree-profile.c: Don't include regs.h.
18372 * tree-vectorizer.c: Don't include cfglayout.h.
18373 * tree-vect-stmts.c: Likewise.
18374 * tree-vect-slp.c: Likewise.
18375 * tree-vect-loop.c: Likewise.
18376 * reg-stack.c: Likewise.
18377 * tree-ssa-loop-manip.c: Likewise.
18378 * toplev.c: Likewise.
18379 * varasm.c: Don't include cfglayout.h, basic-block.h,
18380 and tree-iterator.h.
18381 * tree-cfgcleanup.c: Don't include cfglayout.h.
18382 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
18383 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
18384 * cgraphclones.c: Don't include plugin.h.
18386 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
18388 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
18389 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
18390 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
18392 2012-05-31 Richard Guenther <rguenther@suse.de>
18394 * tree-loop-distribution.c (struct partition_s): New struct,
18395 typedef and vector type.
18396 (partition_alloc, partition_free): New functions.
18397 (generate_loops_for_partition, generate_builtin,
18398 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
18399 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
18400 build_rdg_partition_for_component, can_generate_builtin,
18401 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
18402 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
18403 number_of_rw_in_partition, partition_contains_all_rw,
18404 ldist_gen): Use partition_t instead of bitmap.
18406 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
18408 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
18409 * doc/avr-mmcu.texi: Regenerate.
18411 2012-05-31 Richard Guenther <rguenther@suse.de>
18413 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
18414 Use FOR_EACH_SSA_DEF_OPERAND.
18415 (generate_builtin): Adjust.
18416 (stmt_generated_in_another_partition): Remove.
18417 (add_scalar_computations_to_partition): Likewise.
18418 (rdg_build_partitions): Do not call
18419 add_scalar_computations_to_partition.
18421 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
18423 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
18424 double ints throughout.
18425 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
18426 Check that the position of the field is representable as an integer.
18428 2012-05-31 Richard Guenther <rguenther@suse.de>
18430 * tree-data-ref.c (dr_analyze_innermost): Properly convert
18431 the MEM_REF offset to sizetype.
18433 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
18435 * doc/invoke.texi (AVR Options): Fix typos.
18437 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
18439 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
18440 and -mcpu= options.
18441 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
18442 non-v32 into --march=v0_v10.
18444 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18446 * ira-int.h (target_ira_int): Rename x_move_cost to
18447 x_ira_register_move_cost, x_may_move_in_cost to
18448 x_ira_may_move_in_cost and x_may_move_out_cost to
18449 x_ira_may_move_out_cost. Delete the old fields with
18450 those names and also x_ira_max_register_move_cost,
18451 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
18452 (move_cost, may_move_in_cost, may_move_out_cost)
18453 (ira_max_register_move_cost, ira_max_may_move_in_cost)
18454 (ira_max_may_move_out_cost): Delete.
18455 * ira.c (init_move_cost): Rename to...
18456 (ira_init_register_move_cost): ...this, deleting the old
18457 function with that name. Apply above variable renamings.
18458 Retain asserts for null fields.
18459 (ira_init_once): Don't initialize register move costs here.
18460 (free_register_move_costs): Apply above variable renamings.
18461 Remove code for deleted fields.
18463 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18465 * ira.c (init_move_cost): Adjust choice of subclasses to match
18466 the current ira_init_register_move_cost choice. Use
18467 ira_class_subset_p instead of reg_class_subset_p.
18468 (ira_init_register_move_cost): Assert that move_cost,
18469 may_move_in_cost and may_move_out_cost already hold the desired
18470 values for their ira_* equivalents. For the latter two,
18471 ignore classes that can't store a register of the given mode.
18473 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18475 * ira.c (setup_allocno_and_important_classes): Use
18476 ira_class_hard_regs_num to check whether a class has any
18477 allocatable registers.
18478 (ira_init_register_move_cost): Likewise.
18480 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18482 * ira.c (init_move_cost): Adjust local variable names to match
18483 file conventions. Use ira_assert instead of gcc_assert.
18485 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18487 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
18488 Move these definitions and associated target_globals fields to...
18489 * ira-int.h: ...here.
18490 * rtl.h (init_move_cost): Delete.
18491 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
18492 * ira.c: ...here, making the latter static.
18494 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18496 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
18497 and ira_register_move_cost instead of init_move_cost and move_cost.
18499 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
18501 * ira.h (target_ira): Delete x_ira_available_class_regs.
18502 (ira_available_class_regs): Delete.
18503 * ira.c (setup_available_class_regs): Delete.
18504 (setup_alloc_classes): Don't call it.
18505 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
18506 ira_available_class_regs.
18507 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
18508 (model_spill_cost): Likewise.
18509 * ira-build.c (low_pressure_loop_node_p): Likewise.
18510 * ira-color.c (color_pass): Likewise.
18511 * ira-emit.c (change_loop): Likewise.
18512 * ira-lives.c (inc_register_pressure, dec_register_pressure)
18513 (single_reg_class, ira_implicitly_set_insn_hard_regs)
18514 (process_bb_node_lives): Likewise.
18515 * loop-invariant.c (gain_for_invariant): Likewise.
18517 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18520 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
18521 (pa_section_type_flags): New.
18522 (pa_legitimate_constant_p): Revert previous change.
18524 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
18526 * ira.c (allocate_initial_values): Make static.
18528 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
18530 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
18531 Generate tls_initial_exec_64_sun only when !TARGET_X32.
18533 2012-05-30 Richard Guenther <rguenther@suse.de>
18535 PR middle-end/53501
18536 * fold-const.c (fold_binary_loc): Make sure to call
18537 fold_plusminus_mult_expr with the original sign of operands.
18539 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
18541 * Makefile.in: Fix many dependencies.
18542 (DWARF2_H): Depend on dwarf2.def.
18543 (RTL_ERROR_H): Depend on rtl-error.h.
18544 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
18545 all gimple-pretty-print.h and tree-pretty-print.h references.
18547 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
18549 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
18552 2012-05-30 Richard Guenther <rguenther@suse.de>
18554 PR middle-end/53522
18555 * tree-emutls.c (gen_emutls_addr): Do not add globals to
18558 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
18560 * explow.c (probe_stack_range): Restore simple control flow and stop
18561 again when the probe cannot be generated if HAVE_check_stack.
18563 2012-05-30 Jakub Jelinek <jakub@redhat.com>
18565 PR rtl-optimization/53519
18566 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
18567 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
18569 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18571 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
18573 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
18576 * doc/tm.texi: Update.
18577 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
18578 * target.def (force_at_comp_dir): New hook.
18579 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
18580 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
18582 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
18584 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
18586 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
18587 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
18589 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
18592 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
18593 flag_unsafe_math_optimizations is set.
18594 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
18595 Update description of -mfused-madd.
18597 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
18600 * config/sh/predicates.md (atomic_arith_operand,
18601 atomic_logical_operand): New predicates.
18602 * config/sh/sh.c (sh_option_override): Check atomic options.
18603 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
18604 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
18605 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
18606 UNSUPPORTED_HARD_ATOMIC_CPU.
18607 * config/sh/sync.md: Update description comments.
18608 (I12): New mode iterator.
18609 (fetchop_predicate, fetchop_constraint): New code attributes.
18610 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
18611 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
18612 atomic_fetch_<fetchop_name>si_hard,
18613 atomic_fetch_<fetchop_name><mode>_hard,
18614 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
18615 atomic_<fetchop_name>_fetchsi_hard,
18616 atomic_<fetchop_name>_fetch<mode>_hard,
18617 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
18618 atomic_test_and_set_hard): New insns.
18619 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
18620 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
18621 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
18622 atomic_test_and_set_soft): Use same formatting for the first line of
18623 the asm block as in new insns above.
18624 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
18625 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
18626 atomic_test_and_set): Integrate new *_hard insns into expanders.
18627 * config/sh/sh.opt (mhard-atomic): New option.
18628 * doc/invoke.texi (SH Options): Document it.
18630 2012-05-29 Meador Inge <meadori@codesourcery.com>
18632 * c-decl.c (c_push_function_context): Always create a new language
18634 (c_pop_function_context): Clear the language function created in
18635 c_push_function_context.
18637 2012-05-29 Matt Turner <mattst88@gmail.com>
18639 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
18640 (define_bypass "ev6_fcmov"): New.
18642 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
18644 * integrate.c: Remove.
18645 * integrate.h: Remove.
18646 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
18647 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
18648 * config/rs6000/t-rs6000: Likewise
18649 * config/spu/t-spu-elf: Likewise.
18650 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
18651 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
18652 from integrate.h to here.
18653 (initial_value_entry): New prototype.
18654 * reload.h (allocate_initial_values): Remove prototype.
18655 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
18656 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
18658 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
18659 set_decl_abstract_flags, set_block_abstract_flags): Move from
18660 integrate.c to here, the only user.
18661 * expmed.c (extract_fixed_bit_field): Remove outdated comment
18663 * function.c: Don't include integrate.h.
18664 (struct initial_value_pair, struct initial_value_struct,
18665 get_hard_reg_initial_val, has_hard_reg_initial_val,
18666 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
18667 integrate.c to here.
18668 (initial_value_entry): New function.
18669 * genemit.c (main): Don't print integrate.h include line.
18670 * ira.c: Don't include integrate.h.
18671 (allocate_initial_values): Move from integrate.c to here.
18672 (ira): Update allocate_initial_values call.
18673 * tree-inline.c: Don't include integrate.h.
18674 (function_attribute_inlinable_p): Moved from integrate.c to here.
18675 * cfgexpand.c: Don't include integrate.h.
18676 * except.c: Likewise.
18677 * langhooks.c: Likewise.
18678 * passes.c: Likewise.
18679 * toplev.c: Likewise.
18680 * config/frv/frv.c: Likewise.
18681 * config/pa/pa.c: Likewise.
18682 * config/spu/spu.c: Likewise.
18683 * config/epiphany/epiphany.c: Likewise.
18684 * config/mep/mep.c: Likewise.
18685 * config/score/score.c: Likewise.
18686 * config/picochip/picochip.c: Likewise.
18687 * config/sh/sh.c: Likewise.
18688 * config/alpha/alpha.c: Likewise.
18689 * config/microblaze/microblaze.c: Likewise.
18690 * config/mips/mips.c: Likewise.
18691 * config/v850/v850.c: Likewise.
18692 * config/mmix/mmix.c: Likewise.
18693 * config/bfin/bfin.c: Likewise.
18694 * config/arm/arm.c: Likewise.
18695 * config/s390/s390.c: Likewise.
18696 * config/m32r/m32r.c: Likewise.
18697 * config/rs6000/rs6000.c: Likewise.
18698 * config/c6x/c6x.c: Include function.h instead of integrate.h.
18699 * config/tilegx/tilegx.c: Likewise.
18700 * config/tilepro/tilepro.c: Likewise.
18702 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
18704 * config/avr/t-avr (s-avr-mmcu-texi): Call
18705 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
18707 2012-05-29 Michael Matz <matz@suse.de>
18709 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
18710 assign_temp): Remove 'keep' argument.
18711 (mark_temp_addr_taken): Remove prototype.
18712 * tree.h (expand_decl): Remove prototype.
18713 * function.c (struct temp_slot): Remove addr_taken and keep member.
18714 (assign_stack_temp_for_type) Don't initialize above, remove
18716 (assign_stack_temp, assign_temp): Remove keep argument.
18717 (mark_temp_addr_taken): Remove.
18718 (preserve_temp_slots): Remove handling of addr_taken and keep members.
18719 (free_temp_slots): Ditto.
18720 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
18722 * stmt.c (expand_asm_operands): Remove dead code.
18723 (expand_decl): Remove.
18724 * c-decl.c (finish_struct): Don't call expand_decl.
18725 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
18726 and assign_stack_temp.
18727 * calls.c (save_fixed_argument_area, initialize_argument_information,
18728 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
18729 * expmed.c (extract_bit_field_1): Ditto.
18730 * expr.c (emit_group_load_1, emit_group_store,
18731 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
18732 store_field, expand_constructor, expand_cond_expr_using_cmove,
18733 expand_expr_real_2, expand_expr_real_1): Ditto.
18734 * stmt.c (expand_asm_operands, expand_return): Ditto.
18736 * function.c (pop_temp_slots): Call free_temp_slots.
18737 * calls.c (store_one_arg): Don't call preserve_temp_slots or
18739 * expr.c (expand_assignment): Don't call free_temp_slots.
18741 * config/arm/arm.c (neon_expand_vector_init): Ditto.
18742 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
18743 (ix86_expand_vector_extract): Ditto.
18744 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
18745 ia64_expand_movxf_movrf): Ditto.
18746 * config/mips/mips.c (mips_expand_vi_general): Ditto.
18747 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
18748 extendsfdf2): Ditto.
18749 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
18750 rs6000_expand_vector_set, rs6000_expand_vector_extract,
18751 rs6000_allocate_stack_temp): Ditto.
18752 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
18753 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
18754 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
18755 sparc_expand_vector_init): Ditto.
18757 2012-05-29 Michael Matz <matz@suse.de>
18759 * c-tree.h (c_expand_decl): Remove prototype.
18761 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
18763 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
18764 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
18765 COMPOUND_LITERAL_EXPR.
18766 * function.c (expand_function_start): Don't call expand_decl,
18767 instead assert that we have RTL assigned.
18768 * tree-ssa-live.c (remove_unused_locals): Clear
18769 nonlocal_goto_save_area if its backing variable is removed.
18770 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
18772 (expand_decl): Assert that this does nothing.
18773 * calls.c (expand_call): Don't call mark_temp_addr_taken.
18775 2012-05-29 Richard Guenther <rguenther@suse.de>
18777 PR tree-optimization/53516
18778 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
18780 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
18782 2012-05-29 Joseph Myers <joseph@codesourcery.com>
18784 * LANGUAGES: Fix typos.
18785 * Makefile.in: Fix typos.
18786 * alias.c: Fix typos.
18787 * auto-inc-dec.c: Fix typos.
18788 * bb-reorder.c: Fix typos.
18789 * cfgcleanup.c: Fix typos.
18790 * cgraph.c: Fix typos.
18791 * cgraph.h: Fix typos.
18792 * cgraphunit.c: Fix typos.
18793 * collect2-aix.h: Fix typos.
18794 * collect2.c: Fix typos.
18795 * compare-elim.c: Fix typos.
18796 * config/alpha/vms.h: Fix typos.
18797 * config/arm/README-interworking: Fix typos.
18798 * config/arm/arm.c: Fix typos.
18799 * config/arm/iterators.md: Fix typos.
18800 * config/arm/vxworks.h: Fix typos.
18801 * config/avr/avr.c: Fix typos.
18802 * config/avr/avr.h: Fix typos.
18803 * config/avr/avr.md: Fix typos.
18804 * config/avr/builtins.def: Fix typos.
18805 * config/c6x/c6x.c: Fix typos.
18806 * config/cr16/cr16.c: Fix typos.
18807 * config/cr16/cr16.md: Fix typos.
18808 * config/cris/cris.md: Fix typos.
18809 * config/darwin.c: Fix typos.
18810 * config/darwin.opt: Fix typos.
18811 * config/i386/i386-c.c: Fix typos.
18812 * config/i386/i386.c: Fix typos.
18813 * config/ia64/ia64.c: Fix typos.
18814 * config/m68k/cf.md: Fix typos.
18815 * config/mep/mep.c: Fix typos.
18816 * config/microblaze/microblaze.c: Fix typos.
18817 * config/microblaze/microblaze.h: Fix typos.
18818 * config/mn10300/mn10300.c: Fix typos.
18819 * config/mn10300/mn10300.md: Fix typos.
18820 * config/pa/pa.c: Fix typos.
18821 * config/picochip/picochip.h: Fix typos.
18822 * config/rs6000/a2.md: Fix typos.
18823 * config/rs6000/rs6000.c: Fix typos.
18824 * config/rs6000/vector.md: Fix typos.
18825 * config/rx/rx.md: Fix typos.
18826 * config/rx/rx.opt: Fix typos.
18827 * config/s390/2097.md: Fix typos.
18828 * config/s390/s390.c: Fix typos.
18829 * config/s390/s390.h: Fix typos.
18830 * config/sh/sh.c: Fix typos.
18831 * config/sh/sh.md: Fix typos.
18832 * config/sparc/sync.md: Fix typos.
18833 * config/spu/spu.c: Fix typos.
18834 * config/spu/spu.md: Fix typos.
18835 * config/vms/vms.c: Fix typos.
18836 * config/vxworks-dummy.h: Fix typos.
18837 * config/vxworks.h: Fix typos.
18838 * cselib.c: Fix typos.
18839 * df-scan.c: Fix typos.
18841 * doc/extend.texi: Fix typos.
18842 * doc/install.texi: Fix typos.
18843 * doc/invoke.texi: Fix typos.
18844 * doc/md.texi: Fix typos.
18845 * doc/plugins.texi: Fix typos.
18846 * doc/rtl.texi: Fix typos.
18847 * dse.c: Fix typos.
18848 * dwarf2asm.c: Fix typos.
18849 * dwarf2out.c: Fix typos.
18850 * except.h: Fix typos.
18851 * expr.c: Fix typos.
18852 * fold-const.c: Fix typos.
18853 * gcc.c: Fix typos.
18854 * gcse.c: Fix typos.
18855 * genautomata.c: Fix typos.
18856 * gengtype-state.c: Fix typos.
18857 * gengtype.c: Fix typos.
18858 * genhooks.c: Fix typos.
18859 * gimple-fold.c: Fix typos.
18860 * gimple-pretty-print.c: Fix typos.
18861 * gimple.c: Fix typos.
18862 * gimple.h: Fix typos.
18863 * gimplify.c: Fix typos.
18864 * graphite-interchange.c: Fix typos.
18865 * graphite-sese-to-poly.c: Fix typos.
18866 * ifcvt.c: Fix typos.
18867 * input.c: Fix typos.
18868 * ipa-cp.c: Fix typos.
18869 * ipa-inline-analysis.c: Fix typos.
18870 * ipa-inline-transform.c: Fix typos.
18871 * ipa-inline.c: Fix typos.
18872 * ipa-pure-const.c: Fix typos.
18873 * ipa-ref.h: Fix typos.
18874 * ipa-reference.c: Fix typos.
18875 * ipa-utils.c: Fix typos.
18876 * ipa.c: Fix typos.
18877 * ira-emit.c: Fix typos.
18878 * ira-lives.c: Fix typos.
18879 * lto-streamer.c: Fix typos.
18880 * lto-streamer.h: Fix typos.
18881 * lto-wrapper.c: Fix typos.
18882 * mcf.c: Fix typos.
18883 * mode-switching.c: Fix typos.
18884 * modulo-sched.c: Fix typos.
18885 * plugin.c: Fix typos.
18886 * postreload.c: Fix typos.
18887 * sched-deps.c: Fix typos.
18888 * sel-sched-ir.c: Fix typos.
18889 * sel-sched-ir.h: Fix typos.
18890 * sel-sched.c: Fix typos.
18891 * sese.c: Fix typos.
18892 * stor-layout.c: Fix typos.
18893 * target-hooks-macros.h: Fix typos.
18894 * target.def: Fix typos.
18895 * trans-mem.c: Fix typos.
18896 * tree-eh.c: Fix typos.
18897 * tree-predcom.c: Fix typos.
18898 * tree-sra.c: Fix typos.
18899 * tree-ssa-address.c: Fix typos.
18900 * tree-ssa-loop-ivopts.c: Fix typos.
18901 * tree-ssa-loop-niter.c: Fix typos.
18902 * tree-ssa-math-opts.c: Fix typos.
18903 * tree-ssa-pre.c: Fix typos.
18904 * tree-ssa-propagate.c: Fix typos.
18905 * tree-ssa-reassoc.c: Fix typos.
18906 * tree-ssa-sccvn.c: Fix typos.
18907 * tree-ssa-ter.c: Fix typos.
18908 * tree-ssa-uninit.c: Fix typos.
18909 * tree-ssanames.c: Fix typos.
18910 * tree-vect-generic.c: Fix typos.
18911 * tree-vect-slp.c: Fix typos.
18912 * tree.c: Fix typos.
18913 * tree.h: Fix typos.
18914 * varasm.c: Fix typos.
18915 * varpool.c: Fix typos.
18917 2012-05-29 Joseph Myers <joseph@codesourcery.com>
18919 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
18921 2012-05-29 Richard Guenther <rguenther@suse.de>
18923 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
18925 (add_referenced_var_1): Re-organize. Assert we are not
18926 called for globals.
18927 (remove_referenced_var): Likewise.
18928 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
18929 * tree-mudflap.c (execute_mudflap_function_ops): Do not
18930 call add_referenced_var on globals.
18931 * matrix-reorg.c (transform_access_sites): Likewise.
18933 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
18935 * alias.c (reg_known_value): Make this a VEC.
18936 (reg_known_equiv_p): Make this an sbitmap.
18937 (reg_known_value_size): Remove.
18938 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
18939 set_reg_known_equiv_p): Update for reg_known_value and
18940 reg_known_value_size data structure change.
18941 (init_alias_analysis, end_alias_analysis): Likewise.
18943 2012-05-29 Jakub Jelinek <jakub@redhat.com>
18945 PR middle-end/53510
18946 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
18947 to avoid leaking memory. No need to handle memory allocation
18948 failure. Double string_len on each reallocation instead of adding 2.
18949 * gcov.c (read_line): Likewise.
18951 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
18953 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
18955 * config/cris/cris.md ("trap"): Define, enabled for
18956 TARGET_TRAP_USING_BREAK8.
18957 * config/cris/cris.opt (mtrap-using-break8): New option.
18959 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
18962 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
18965 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
18967 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
18968 (Standard Names): Fix typos in documentation of atomic patterns.
18970 2012-05-27 Nathan Sidwell <nathan@acm.org>
18972 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
18974 2012-05-26 Jason Merrill <jason@redhat.com>
18977 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
18978 about array compound literals.
18980 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
18982 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
18983 if CLEANUP_NO_INSN_DEL.
18984 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
18985 from cfg_layout_merge_blocks.
18986 (emit_nop_for_unique_locus_between): New function.
18987 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
18988 (cfg_layout_merge_blocks): Likewise.
18990 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
18991 Paolo Bonzini <bonzini@gnu.org>
18993 * df-scan.c (df_def_record_1): Assert a parallel must contain an
18994 EXPR_LIST at this point. Receive the LOC and move its extraction...
18995 (df_defs_record): ... here. Change if-else to a switch statement.
18996 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
18997 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
18998 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
18999 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
19000 regs_invalidated_by_call.
19001 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
19002 df_get_call_refs().
19004 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
19007 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
19008 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
19010 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19012 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
19013 software floating point emulation. No longer build the multilibs
19014 with -mstrict-align.
19016 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
19018 PR middle-end/53008
19019 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
19020 accessed indirectly.
19021 (ipa_tm_create_version): Same.
19023 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
19026 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
19027 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
19029 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
19032 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
19033 (ix86_expand_vec_perm): Use int mode instead of float.
19034 (expand_vec_perm_pshufb): Remove handling of useseless type
19037 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
19040 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
19041 gnu_ld variables to yes.
19042 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
19043 (HAVE_GNU_AS): Likewise.
19044 * config.in: Regenerate.
19045 * configure: Likewise.
19047 2012-05-25 Tristan Gingold <gingold@adacore.com>
19049 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
19050 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
19051 and preferred_alignment.
19053 2012-05-25 Tristan Gingold <gingold@adacore.com>
19055 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
19057 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
19059 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
19060 volatile bitfields case.
19062 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
19064 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
19065 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
19066 (adjacent_mem_locations): Move some code to and call...
19067 (get_memref_parts): ...new function.
19068 (mem_locations_overlap): New function.
19069 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
19070 (is_mem_ref): Rename to...
19071 (find_mem_ref): ...this. Return MEM rtx.
19072 (get_store_dest): Remove function.
19073 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
19074 new parameter and adjust calls.
19075 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
19076 mem refs overlap for true_store_to_load_dep_costly.
19077 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
19078 passed to adjacent_mem_locations.
19079 (is_costly_group): Walk resolved dependency list.
19080 (force_new_group): Emit group ending nop for Power6/Power7.
19081 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
19082 (group_ending_nop): New define_insn.
19084 2012-05-24 Dodji Seketeli <dodji@redhat.com>
19086 Make unwound macro expansion trace less redundant
19087 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
19088 context of macro definition in the trace, when it's redundant.
19091 2012-05-24 Richard Guenther <rguenther@suse.de>
19093 PR middle-end/53460
19094 * tree-profile.c (tree_profiling): Cleanup the CFG if
19095 execute_fixup_cfg requests it.
19097 2012-05-24 Richard Guenther <rguenther@suse.de>
19099 * tree-flow.h (create_var_ann): Remove.
19100 * tree-dfa.c (create_var_ann): Remove and inline into its
19102 (add_referenced_var_1): ... here.
19103 * varpool.c (add_new_static_var): Do not call add_referenced_var
19105 * gimple-fold.c (canonicalize_constructor_val): Likewise.
19106 * tree-switch-conversion.c (build_one_array): Likewise.
19107 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
19108 * tree-flow-inline.h (gimple_referenced_vars): Guard against
19110 * tree-inline.c (remap_gimple_op_r): Likewise. Check
19111 gimple_referenced_vars instead of gimple_in_ssa_p.
19112 (copy_tree_body_r): Likewise.
19113 (setup_one_parameter): Likewise.
19114 (declare_return_variable): Likewise.
19115 (tree_function_versioning): Likewise.
19117 2012-05-24 Jakub Jelinek <jakub@redhat.com>
19119 PR tree-optimization/53465
19120 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
19121 vr0 into *vr, then vrp_meet that.
19122 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
19123 have any equivalences.
19124 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
19127 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
19129 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
19131 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
19132 check end_regno - 1 is a hard register.
19134 2012-05-24 Richard Guenther <rguenther@suse.de>
19136 * varpool.c (add_new_static_var): Remove call to create_var_ann.
19137 * tree-ssa-operands.c (create_vop_var): Likewise.
19139 2012-05-24 Richard Guenther <rguenther@suse.de>
19142 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
19144 (remove_unused_locals): Pass global_unused_vars to
19145 remove_unused_scope_block_p. Restore code walking all
19146 referenced vars and pruning them.
19148 2012-05-23 Jan Hubicka <jh@suse.cz>
19150 * tree.h (alias_diag_flags): Remove.
19151 (alias_pair): Remove emitted_diags.
19152 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
19153 symbol_alias_set_t, symbol_alias_set_destroy,
19154 symbol_alias_set_contains, propagate_aliases_backward): Remove.
19155 * toplev.c (compile_file): Do not call finish_aliases_2
19156 * cgraphunit.c (cgraph_process_new_functions): Do not call
19158 (handle_alias_pairs): Output diagnostics about aliases to externals.
19159 (assemble_thunks_and_aliases): Use do_assemble_alias.
19160 (output_weakrefs): Likewise.
19161 (finalize_compilation_unit): Do not call finish_aliases_1.
19162 * ipa.c (symtab_remove_unreachable_nodes): De not call
19163 remove_unreachable_alias_pairs.
19164 * varasm.c (do_assemble_alias): Export.
19165 (symbol_alias_set_create, symbol_alias_set_destroy,
19166 symbol_alias_set_contains, symbol_alias_set_insert,
19167 propagate_aliases_forward, propagate_aliases_backward,
19168 propagate_aliases_backward, trivially_visible_alias,
19169 trivially_defined_alias, remove_unreachable_alias_pairs,
19170 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
19171 * output.h (do_assemble_alias): Declare.
19172 * varpool.c (varpool_remove_unreferenced_decls): Do not call
19175 2012-05-23 Martin Jambor <mjambor@suse.cz>
19177 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
19179 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
19181 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
19183 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
19184 (iterative_hash_gimple_type): Adjust comment.
19185 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
19186 domain for an array type instead of the domain type itself.
19188 2012-05-23 Richard Guenther <rguenther@suse.de>
19190 PR tree-optimization/53438
19191 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
19193 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
19196 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
19197 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
19200 2012-05-23 Richard Guenther <rguenther@suse.de>
19202 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
19203 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
19204 via the global_unused_vars bitmap.
19205 (remove_unused_locals): Handle global vars in local-decls via
19206 a global_unused_vars bitmap instead of the used flag in the
19207 var annotation. Simplify global variable handling and removal.
19209 2012-05-22 Jan Hubicka <jh@suse.cz>
19211 PR middle-end/53426
19212 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
19213 from other partitions.
19215 2012-05-22 Jan Hubicka <jh@suse.cz>
19217 PR middle-end/53161
19218 * symtab.c (symtab_register_node): Fix ordering issue.
19220 2012-05-22 Steven Drake <sbd@NetBSD.org>
19222 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
19224 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
19226 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
19227 Use strip_name_encoding target hook.
19229 2012-05-22 Richard Guenther <rguenther@suse.de>
19231 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
19232 (init_function_for_compilation): Remove.
19233 * tree-dfa.c (find_vars_r): Take struct function argument.
19234 (find_referenced_vars_in): Adjust.
19235 * tree-ssa-operands.c (clobber_stats): Remove.
19236 (create_vop_var): Take struct function argument. Mark
19237 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
19238 (init_ssa_operands): Take struct function argument.
19239 (fini_ssa_operands): Do not dump dead stats.
19240 * tree-ssa-operands.h (init_ssa_operands): Take struct function
19242 * cgraphunit.c (init_lowered_empty_function): Adjust.
19243 * lto-streamer-in.c (input_cfg): Likewise.
19244 * tree-inline.c (initialize_cfun): Likewise.
19245 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
19246 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
19247 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
19248 virtual operands are not registers.
19250 2012-05-22 Richard Guenther <rguenther@suse.de>
19252 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
19254 2012-05-22 Richard Guenther <rguenther@suse.de>
19256 PR middle-end/53437
19257 * tree-inline.c (setup_one_parameter): Create a dummy init
19258 statement for unused parameters when not optimizing.
19260 2012-05-22 Richard Guenther <rguenther@suse.de>
19262 * tree-flow.h (add_referenced_var_1): Declare.
19263 (add_referenced_var): Define.
19264 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
19265 (add_referenced_var): Rename to ...
19266 (add_referenced_var_1): ... this. Take struct function argument.
19268 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19271 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
19272 * config/arm/arm.c (arm_validize_comparison): Define.
19273 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
19274 arm_validize_comparison.
19275 ("cbranchdi4"): Likewise.
19276 ("cstoredi4"): Likewise.
19277 ("movsicc"): Likewise.
19278 ("movsfcc"): Likewise.
19279 ("movdfcc"): Likewise.
19281 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
19283 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
19284 the mw_reg_pool size.
19286 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
19288 PR tree-optimization/53336
19289 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
19290 non-integer integral types to offset type and vice versa.
19292 2012-05-22 Alan Modra <amodra@gmail.com>
19294 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
19295 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
19296 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
19297 V_SAVE_INLINE): Delete.
19298 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
19299 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
19300 For ELF targets, use out-of-line restores for -Os and any number
19301 of regs if the restore exits, and out-of-line gp save for two or
19302 more regs. Use save_reg_p to test for holes in reg restore set.
19303 Replace "#if" with "if".
19305 2012-05-22 Alan Modra <amodra@gmail.com>
19307 * config/rs6000/rs6000.c (save_reg_p): New function.
19308 (first_reg_to_save, first_fp_reg_to_save): Use it here.
19309 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
19310 (emit_frame_save): Use gen_frame_store.
19311 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
19312 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
19314 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
19315 vrsave, toc, gp and fp restores.
19317 2012-05-22 Alan Modra <amodra@gmail.com>
19319 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
19320 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
19321 Move function pointer variables after forward declarations.
19322 (rs6000_builtin_support_vector_misalignment): Make static.
19323 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
19324 (rs6000_function_value, rs6000_can_eliminate): Likewise.
19326 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
19328 PR rtl-optimization/53373
19329 * caller-save.c (save_call_clobbered_regs): Look into a possible
19330 PARALLEL manually rather than using single_set on a call insn.
19332 2012-05-21 Jakub Jelinek <jakub@redhat.com>
19334 PR tree-optimization/53436
19335 * omp-low.c (omp_build_component_ref): New function.
19336 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
19338 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
19340 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
19342 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
19343 Do not print '.' here. Output operand lossage error for unhandled
19348 <case 'z'>: Hardcode "code" argument into error strings.
19350 <case 'D'>: Merge AVX and non-AVX codes.
19351 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
19352 Update call to put_condition_code.
19354 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
19356 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
19358 (clzsi2): New expander.
19359 (*clzsi2_68k): New insn.
19360 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
19362 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
19364 * gimple.h (gimple_set_in_transaction): Remove.
19365 (gimple_in_transaction): Look in BB instead.
19366 (gimple_statement_base): Remove in_transaction field.
19367 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
19368 * trans-mem.c (compute_transaction_bits): Place transaction bit
19369 information into basic blocks.
19371 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
19373 * expr.c (get_def_for_expr_class): Define only if
19374 HAVE_conditional_move.
19375 (convert_tree_comp_to_rtx): Likewise.
19377 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
19380 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
19382 (ffssi2_no_cmove): Ditto.
19383 (*ffs<mode>_1): Remove insn pattern.
19384 (*tzcnt<mode>_1): New insn pattern.
19385 (*bsf<mode>1): Ditto.
19387 2012-05-21 Richard Guenther <rguenther@suse.de>
19389 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
19390 more referenced vars.
19391 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
19392 flag on variables that have a var-annotation.
19394 2012-05-21 Joseph Myers <joseph@codesourcery.com>
19397 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
19398 from folded operands before wrapping another around the
19399 conditional expression.
19401 2012-05-21 Jakub Jelinek <jakub@redhat.com>
19403 PR tree-optimization/53366
19404 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
19405 tests if complex_numbers == 2, but there are non-complex number loads
19408 PR tree-optimization/53409
19409 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
19410 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
19412 PR tree-optimization/53410
19413 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
19414 instead of build_int_cst (type, 0) where vector types might be
19415 involved. Instead of build_int_cst (type, 1) convert the original
19416 integer_onep argument to the desired type.
19418 2012-05-21 Michael Matz <matz@suse.de>
19420 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
19421 (simplify_test_exp): Handle one more case of distributive law,
19422 decrease cost threshold.
19423 (tests_attr_p, get_attr_order): New functions.
19424 (optimize_attrs): Use topological order, inline only cheap values.
19425 (write_attr_set): Reset our_known_true after some time.
19427 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
19430 * config/i386/i386.c (type_natural_mode): Warn passing SSE
19431 vector argument without SSE enabled changes the ABI.
19433 2012-05-21 Richard Guenther <rguenther@suse.de>
19435 PR tree-optimization/53408
19436 * tree-vect-loop.c (vectorizable_induction): Properly check
19437 the restriction that we cannot handle induction results from
19438 the inner loop outside of the outer loop.
19440 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
19443 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
19444 (UNSPECV_RDRAND): This.
19445 (rdrand<mode>_1): Updated.
19447 2012-05-21 Richard Guenther <rguenther@suse.de>
19449 * tree-loop-distribution.c (can_generate_builtin): Reject
19452 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
19454 * Makefile.in (options.c): Add options.h to included header
19455 files, before tm.h.
19457 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
19459 * tree-parloops.c : Add myself to contributors, update
19460 TODO list, add link to wiki.
19462 2012-05-21 Alan Modra <amodra@gmail.com>
19464 * config/rs6000/predicates.md (input_operand): Don't match
19465 constant pool addresses. Remove label_ref, high and plus from
19466 match_code list. Remove redundant CONSTANT_P test.
19467 (splat_input_operand): Similarly update match_code list.
19468 (small_toc_ref): New predicate.
19469 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
19470 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
19471 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
19472 register checks to..
19473 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
19474 generated by create_TOC_reference.
19475 (rs6000_legitimize_address): Update cerate_TOC_reference call.
19476 (rs6000_delegitimize_address): Handle new rtl for toc refs.
19477 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
19478 (use_toc_relative_ref): New function, split out from..
19479 (rs6000_emit_move): ..here. Remove redundant tests. Update
19480 create_TOC_reference calls.
19481 (rs6000_legitimize_reload_address): Formatting. Handle splitting
19482 of medium/large model toc addresses. Use use_toc_relative_ref.
19483 (print_operand): Formatting, style. Adjust for toc changes.
19484 (print_operand_address): Likewise.
19485 (rs6000_output_addr_const_extra): Likewise.
19486 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
19487 than a PLUS. Use this formulation for both high and low part
19488 of -mcmodel=medium/large toc reference too. Before reload,
19489 always use the small model formulation.
19490 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
19491 a PLUS in high part of addresses here.
19492 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
19493 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
19494 (largetoc_high, largetoc_low): Move earlier. Cope when no
19495 base reg available.
19496 (largetoc_high_plus): New insn.
19497 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
19498 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
19499 (tocref): ..instead do so here, new insn and split.
19501 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
19503 * config/i386/driver-i386.c (host_detect_local_cpu): Support
19504 RDRND, F16C and FSGSBASE.
19506 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19508 PR rtl-optimzation/53373
19509 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
19510 call pattern. Update split patterns.
19511 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
19512 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
19514 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
19516 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
19519 2012-05-18 Jan Hubicka <jh@suse.cz>
19521 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
19522 (cgraph_process_new_functions): Process also aliases.
19523 * lto-streamer-out.c (struct sets): Remove.
19524 (trivally_defined_alias): Remove.
19525 (output_alias_pair_p): Remove.
19526 (output_unreferenced_globals): Remove.
19527 (produce_symtab); Do not handle alias pairs.
19528 (produce_asm_for_decls): Likewise.
19529 * lto-streamer-in.c (input_alias_pairs): Remove.
19530 (lto_read_body): Do not input alias pairs.
19531 (lto_input_constructors_and_inits): Remove.
19533 2012-05-18 Jan Hubicka <jh@suse.cz>
19535 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
19538 2012-05-18 Jan Hubicka <jh@suse.cz>
19540 * cgraphbuild.c (record_reference): Update.
19541 * lto-cgraph.c (lto_output_varpool_node): External vars
19542 are not in other partition even if they are not output
19543 in current partition.
19544 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
19546 (canonicalize_constructor_val): Take FROM_DECL argument.
19547 (fold_ctor_reference, fold_string_cst_ctor_reference,
19548 fold_array_ctor_reference, fold_nonarray_ctor_reference,
19549 fold_ctor_reference): Likewise.
19550 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
19551 * gimple.h (gimple_fold_builtin): Likewise.
19553 2012-05-18 Olivier Hainque <hainque@adacore.com>
19555 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
19556 $(libsubdir) as libexecsubdir.
19558 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19560 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
19561 relied on signed overflow behavior.
19563 2012-05-18 Richard Guenther <rguenther@suse.de>
19565 PR tree-optimization/53346
19566 * tree-loop-distribution.c (ldist_gen): Make sure to apply
19567 builtin transform even when only a single partition with
19568 all reads/writes exists.
19570 2012-05-18 Richard Guenther <rguenther@suse.de>
19572 PR tree-optimization/53390
19573 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
19576 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19578 * tree-ssa-reassoc.c (bip_map): Remove decl.
19579 (completely_remove_stmt): Remove function.
19580 (remove_def_if_absorbed_call): Remove function.
19581 (remove_visited_stmt_chain): Remove __builtin_powi handling.
19582 (possibly_move_powi): Remove function.
19583 (rewrite_expr_tree): Remove calls to possibly_move_powi.
19584 (rewrite_expr_tree_parallel): Likewise.
19585 (attempt_builtin_powi): Build multiplies explicitly rather than
19586 relying on the ops vector and rank system.
19587 (transform_stmt_to_copy): New function.
19588 (transform_stmt_to_multiply): Likewise.
19589 (reassociate_bb): Handle leftover operations after __builtin_powi
19590 optimization; build a final multiply if necessary.
19592 2012-05-18 Jan Hubicka <jh@suse.cz>
19594 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
19595 (mark_functions_to_output): Fix sanity check.
19596 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
19598 2012-05-18 Richard Guenther <rguenther@suse.de>
19600 * tree-flow.h (mark_symbols_for_renaming): Remove.
19601 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
19602 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
19603 (copy_debug_stmt): Likewise.
19604 (expand_call_inline): Likewise.
19605 (declare_return_variable): Mark the return variable for renaming
19608 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
19610 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
19612 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
19613 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
19614 (ashrdi3,lshrdi3): Likewise.
19615 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
19617 2012-05-18 Meador Inge <meadori@codesourcery.com>
19619 PR rtl-optimization/53352
19620 * cse.c (equiv_constant): Ignore paradoxical subregs.
19622 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
19624 PR rtl-optimization/53125
19625 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
19626 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
19627 die in the basic block. Correctly top off REG_FREQ and
19628 REG_FREQ_CALLS_CROSSED.
19630 (regstat_compute_ri): Allocate and free local_live_last_luid.
19632 (regstat_bb_compute_calls_crossed): Correctly top off
19633 REG_FREQ_CALLS_CROSSED.
19635 2012-05-17 Jan Hubicka <jh@suse.cz>
19637 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
19638 constructor over decl without.
19639 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
19640 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
19641 * cgraphunit.c (process_function_and_variable_attributes): Finalize
19643 (mark_functions_to_output): Also accept bodies for functions with
19645 (output_in_order): Skip external vars.
19646 * lto-cgraph.c (lto_output_node): External functions are never in other
19648 (lto_output_varpool_node): Likewise.
19649 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
19650 forgotten initializers.
19651 * ipa.c (process_references): Handle external vars.
19652 (symtab_remove_unreachable_nodes): Update to handle external vars.
19653 (varpool_externally_visible_p): External vars are externally visible.
19654 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
19655 * varpool.c (varpool_remove_node): Remove constructor.
19656 (decide_is_variable_needed): Handle externals.
19657 (varpool_remove_unreferenced_decls): Likewise.
19659 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
19661 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
19662 (enable_warning_as_error): Do not special case Wuninitialized.
19663 * optc-gen.awk: Add sanity checks.
19665 2012-05-17 Jan Hubicka <jh@suse.cz>
19667 * ipa-reference.c (is_proper_for_analysis): Do not check flags
19668 that might change as result of global optimization.
19669 (analyze_function): Do not check analyzed and externally_visible
19670 flags; be happy about address dereferences.
19671 (propagate): Prune all_module_statics so it really contains just
19672 statics; prune all the local summaries.
19673 (ipa_reference_write_optimization_summary): Simplify.
19675 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
19677 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
19678 * config/m68k/m68k-tables.opt: Regenerated.
19679 * doc/invoke.texi (M680x0 Options): Document.
19681 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
19682 Patrick Marlier <patrick.marlier@gmail.com>
19684 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
19687 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
19689 * configure: Regenerated.
19691 2012-05-16 Andrew Pinski <apinski@cavium.com>
19693 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
19696 2012-05-16 David S. Miller <davem@davemloft.net>
19698 * jump.c (delete_related_insns): If we remove a CALL, make sure
19699 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
19701 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19703 PR tree-optimization/53217
19704 * tree-ssa-reassoc.c (bip_map): New static variable.
19705 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
19706 (attempt_builtin_powi): Save feeding multiplies on a stack.
19707 (reassociate_bb): Create and destroy bip_map.
19709 2012-05-16 Olivier Hainque <hainque@adacore.com>
19711 * Makefile.in (install-no-fixedincludes): New target, former toplevel
19712 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
19713 Add comments and improve stamp preservation across the whole sequence.
19714 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
19716 2012-05-16 Richard Guenther <rguenther@suse.de>
19718 * tree-inline.c (insert_init_stmt): Do not call
19719 mark_symbols_for_renaming.
19720 (setup_one_parameter): Avoid initializing unused parameters.
19721 (declare_return_variable): Properly handle DECL_BY_REFERENCE
19722 return vars in SSA form.
19724 2012-05-16 Richard Guenther <rguenther@suse.de>
19726 * tree-flow.h (get_virtual_var): Remove.
19727 * tree-dfa.c (get_virtual_var): Likewise.
19729 2012-05-16 Richard Guenther <rguenther@suse.de>
19731 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
19732 Remove set-only bitmap of new names.
19733 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
19735 * tree-flow.h (ssa_names_to_replace): Remove.
19736 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
19738 2012-05-16 Richard Guenther <rguenther@suse.de>
19740 PR tree-optimization/53364
19741 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
19742 detect a view-conversion of the decl.
19744 2012-05-16 Dodji Seketeli <dodji@redhat.com>
19746 PR preprocessor/7263
19747 * c-tree.h (enum c_declspec_word): Declare new enum.
19748 (struct c_declspecs::locations): New member.
19749 (declspecs_add_qual, declspecs_add_scspec)
19750 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
19751 location parameter.
19752 * c-decl.c (build_null_declspecs): Initialize the new struct
19753 c_declspecs::locations member.
19754 (declspecs_add_addrspace): Take a location parameter for the
19755 address space. Store it onto declaration specifiers.
19756 (declspecs_add_qual): Likewise, take a location parameter for the
19758 (declspecs_add_type): Likewise, take a location parameter for the
19760 (declspecs_add_scspec): Likewise, take a location parameter for
19761 the storage class specifier.
19762 (declspecs_add_attrs): Likewise, take a location parameter for the
19764 (declspecs_add_alignas): Likewise, take a location parameter for
19766 (finish_declspecs): For diagnostics, use the location of the
19767 relevant declspec, instead of the global input_location.
19768 * c-parser.c (c_parser_parameter_declaration): Pass the precise
19769 virtual location of the declspec to the declspecs-setters.
19770 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
19773 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
19775 * configure.ac: Stack protector enabling for Android targets.
19776 * configure: Regenerate.
19778 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
19780 * ira.c (pseudo_move_insn): Delete.
19781 (find_moveable_pseudos): Don't set it.
19782 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
19783 the definitions of the original pseudo. Delete all of them.
19785 2012-05-16 Olivier Hainque <hainque@adacore.com>
19787 * config/rs6000/rs6000-opts.h (enum processor_type): Add
19789 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
19790 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
19791 * config/rs6000/8540.md: indicate that the units/patterns apply to
19794 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
19795 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
19796 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
19797 related flags, check that what is queried is supported by the selected
19798 configuration. Rework the single/double_float and MASK_STRING resets to
19799 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
19800 costs for PROCESSOR_PPC8548 as well.
19801 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
19802 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
19803 statement instead of a sequence of ifs.
19805 * config/rs6000/rs6000.h (TARGET_E500): Remove.
19806 (TARGET_NO_LWSYNC): Adjust accordingly.
19807 * config/rs6000/e500.h (TARGET_E500): Remove.
19808 (CHECK_E500_OPTIONS): Adjust accordingly.
19809 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
19810 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
19811 * config/rs6000/linuxspe.h: Likewise.
19812 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
19813 superfluous comments.
19814 * config/rs6000/e500-double.h: Remove.
19816 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
19817 default to with_cpu=8548 if --enable-e500-double, and to 8540
19819 (set misc flags section): For powerpc*|rs6000*, remove inclusion
19820 of e500-double.h for --enable-e500-double.
19822 2012-05-16 Olivier Hainque <hainque@adacore.com>
19824 * Makefile.in (s-header-vars): Resort to -n instead of trailing
19825 -e d in sed invocation.
19827 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
19829 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
19831 * doc/tm.texi: Regenerate.
19833 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
19835 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
19837 2012-05-15 Jakub Jelinek <jakub@redhat.com>
19840 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
19841 that operands[2] is either immediate, or q_regs_operand.
19843 2012-05-15 Richard Guenther <rguenther@suse.de>
19845 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
19846 (assemble_thunk): Likewise. Manually rename and register
19847 function arguments.
19849 2012-05-15 Richard Guenther <rguenther@suse.de>
19851 PR tree-optimization/53355
19852 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
19855 2012-05-15 Tristan Gingold <gingold@adacore.com>
19857 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
19859 2012-05-15 Richard Guenther <rguenther@suse.de>
19861 * gimple.c (gimple_set_modified): Move ...
19862 * gimple.h (gimple_set_modified): ... here.
19864 2012-05-15 Tristan Gingold <gingold@adacore.com>
19866 * ira-color.c (move_spill_restore): Add a guard.
19868 2012-05-15 Tristan Gingold <gingold@adacore.com>
19870 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
19873 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
19875 * gimplify.c (gimplify_init_constructor): Do a block move for very
19876 small objects as well.
19878 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
19880 * ira.c (find_moveable_pseudos): Skip registers whose
19881 DF_REG_EQ_USE_COUNT is nonzero.
19883 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
19885 * doc/md.texi (fma): Define to only be applicable for single rounding.
19887 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
19890 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
19891 generate target register for "load" class builtins.
19894 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
19897 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
19898 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
19899 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
19900 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
19901 (<sse>_movu<ssemodesuffix>): New expander.
19902 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
19903 (avx_movdqu<avxmodesuffix>): New expander.
19904 (*sse2_movdqu): Rename from sse2_movdqu.
19905 (sse2_movdqu): New expander.
19907 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
19910 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
19911 (canonicalize_perm): ... new function.
19912 (expand_vec_perm_2vperm2f128_vshuf): New function.
19913 (ix86_expand_vec_perm_const_1): Call it.
19915 2012-05-14 Andrew Pinski <apinski@cavium.com>
19916 H.J. Lu <hongjiu.lu@intel.com>
19917 Jakub Jelinek <jakub@redhat.com>
19920 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
19923 2012-05-14 Jakub Jelinek <jakub@redhat.com>
19925 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
19926 lineno 1 the same as lineno 0 before first start file directive.
19927 (optimize_macinfo_range): Likewise.
19929 * dwarf2out.c (have_macinfo): Define.
19930 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
19931 attribute, don't force empty compilation unit and don't emit any
19932 .debug_macinfo/.debug_macro section if macinfo_table is empty.
19934 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
19937 * config/avr/avr.c (avr_const_address_lo16): Remove.
19938 (avr_assemble_integer): Print ".byte lo8(x)",
19939 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
19940 .warning if 3-byte address is assembled.
19941 * doc/extend.texi (AVR Named Address Spaces): Document that
19942 binutils 2.23 is needed to assemble 3-byte addresses.
19944 2012-05-14 Richard Guenther <rguenther@suse.de>
19946 * tree-vect-data-refs.c (vect_setup_realignment): Remove
19947 call to mark_symbols_for_renaming.
19948 (vect_permute_load_chain): Likewise.
19949 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
19950 instead of calling mark_symbols_for_renaming.
19951 * tree-vect-stmts.c (read_vector_array): Remove call to
19952 mark_symbols_for_renaming.
19953 (write_vector_array): Likewise.
19954 (vectorizable_call): Likewise.
19955 (vectorizable_store): Likewise.
19956 (vectorizable_load): Likewise.
19957 * matrix-reorg.c (transform_allocation_sites): Likewise.
19958 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
19959 (create_expression_by_pieces): Likewise.
19961 2012-05-14 Richard Guenther <rguenther@suse.de>
19963 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
19964 of statements for renaming.
19965 (force_gimple_operand_1): Likewise, consistently for both
19966 calls to force_gimple_operand and force_gimple_operand_gsi.
19968 2012-05-14 Richard Guenther <rguenther@suse.de>
19970 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
19971 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
19973 (expand_omp_for): Likewise.
19974 (expand_omp_for_generic): Adjust conditional add to referenced vars.
19975 Use make_rename_temp for temporaries that should be rewritten into
19977 (expand_omp_for_static_nochunk): Likewise.
19978 (expand_omp_atomic_pipeline): Likewise.
19980 2012-05-14 Richard Guenther <rguenther@suse.de>
19982 PR tree-optimization/53331
19983 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
19985 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
19987 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
19990 * doc/options.texi: (LangEnabledBy): Document it.
19991 * optc-gen.awk: Handle LangEnabledBy.
19992 * opth-gen.awk: Generate declaration for lang-specific functions.
19993 * opt-read.awk: Record lang numbers.
19994 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
19995 (lang_sanitized_name): New.
19997 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
19999 * attribs.c (decl_attributes): Avoid emitting a warning if
20000 ATTR_FLAG_BUILT_IN.
20001 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
20002 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
20003 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
20004 define a string "1".
20005 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
20006 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
20007 BUILT_IN_STRCPY): Use it for these functions.
20008 * postreload.c (reload_combine): Deal with SETs inside
20009 CALL_INSN_FUNCTION_USAGE.
20010 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
20011 Look for REG_RETURNED notes and use a cheap restore if possible.
20012 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
20013 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
20014 * ira-build.c (ira_create_allocno, create_cap_allocno,
20015 propagate_allocno_info, propagate_some_info_from_allocno,
20016 copy_info_to_removed_store_destination, ira_flattening): Handle it.
20017 * ira-lives.c (pseudo_regno_single_word_and_live_p,
20018 find_call_crossed_cheap_reg): New static functions.
20019 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
20020 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
20021 a REG_RETURNED note in that case.
20022 * ira.c (setup_reg_renumber): Change assert to allow cases where
20023 allocnos only cross calls for which they are cheap to restore.
20024 * ira-costs.c (ira_tune_allocno_costs): Compare
20025 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
20027 * reg-notes.def (REG_RETURNED): New note.
20028 * cse.c (cse_insn): Likewise.
20029 * sched-deps.c (sched_analyze_insn): Likewise.
20030 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
20031 * calls.c (decl_return_flags): New static function.
20032 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
20033 functions that return one of their arguments.
20034 * regcprop.c (struct kill_set_value_data): New.
20035 (kill_set_value): Interpret data as a pointer to such a struct.
20036 Do nothing if the caller wants the register to be ignored.
20037 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
20039 2012-05-14 Richard Guenther <rguenther@suse.de>
20041 PR tree-optimization/53340
20042 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
20044 2012-05-14 Richard Guenther <rguenther@suse.de>
20046 * gimplify.c (gimplify_expr): Remove odd code.
20048 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
20050 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
20051 into a PLUS_EXPR byte offset.
20053 * tree-ssa-pre.c (can_value_number_call): Delete.
20054 (compute_avail): Skip all statements with side effects.
20055 <GIMPLE_CALL>: Skip calls to internal functions.
20057 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
20059 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
20061 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
20063 * common.opt (Wtype-limits): Use EnabledBy.
20065 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
20067 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
20068 (pushtf splitter): Ditto.
20070 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
20071 (<code>tf2): Enable for TARGET_SSE.
20072 (*absnegtf2_sse): Ditto.
20073 (copysign<mode>3): Enable TFmode for TARGET_SSE.
20074 (copysign<mode>3_const): Ditto.
20075 (copysign<mode>3_var): Ditto.
20076 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
20077 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
20078 (*<code>tf3): Ditto.
20079 * config/i386/i386.c (struct builtin_description bdesc_args)
20080 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
20081 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
20082 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
20083 Emit a normal call if SSE isn't available.
20085 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
20087 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
20088 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
20089 (<code><mode>3): Ditto.
20090 (*andnot<mode>3): Ditto.
20091 (*andnottf3): Ditto.
20092 (*<code><mode>3): Ditto.
20093 (<code>tf3): Ditto.
20095 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
20097 * optc-gen.awk: Error instead of warning for conflicting help.
20099 2012-05-12 Jason Merrill <jason@redhat.com>
20102 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
20105 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
20107 * function.c (requires_stack_frame_p): If the function can throw
20108 non-call exceptions, return true if the insn can throw internally.
20110 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
20112 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
20114 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
20116 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
20117 ORDERED and UNORDERED conditions.
20119 2012-05-11 Richard Guenther <rguenther@suse.de>
20121 * tree-flow.h (referenced_var_check_and_insert): Remove.
20122 (find_new_referenced_vars): Likewise.
20123 * tree-dfa.c (referenced_var_check_and_insert): Make static.
20124 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
20125 * tree-inline.c (copy_bb): Use find_referenced_vars_in
20126 instead of find_new_referenced_vars.
20127 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
20129 2012-05-11 Richard Guenther <rguenther@suse.de>
20131 * tree-pass.h (pass_rest_of_compilation,
20132 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
20134 * passes.c (pass_all_optimizations, pass_postreload,
20135 pass_all_early_optimizations): Make static.
20136 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
20137 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
20138 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
20139 (delete_tree_ssa): Do not call fini_phinodes.
20140 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
20142 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
20145 * doc/options.texi (EnabledBy): Document
20146 * opts.c: Include opts.h and options.h before tm.h.
20147 (finish_options): Do not handle some sub-options here...
20148 (common_handle_option): ... instead call common_handle_option_auto
20150 * optc-gen.awk: Handle EnabledBy.
20151 * opth-gen.awk: Declare common_handle_option_auto.
20152 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
20153 (Wmaybe-uninitialized): Likewise.
20154 (Wunused-but-set-variable): Likewise.
20155 (Wunused-function): Likewise.
20156 (Wunused-label): Likewise.
20157 (Wunused-value): Likewise.
20158 (Wunused-variable): Likewise.
20159 * opt-read.awk: Create opt_numbers array.
20161 2012-05-11 Richard Guenther <rguenther@suse.de>
20163 PR tree-optimization/53295
20164 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
20166 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
20167 strides when analyzing data-references in a loop context.
20168 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
20169 non-constant strides for now.
20170 (vect_enhance_data_refs_alignment): Ignore data references
20171 that are strided loads.
20172 (vect_analyze_data_ref_access): Handle non-constant strides.
20173 (vect_check_strided_load): Verify the data-reference is a load.
20174 (vect_analyze_data_refs): Restructure to make strided load
20175 support not dependent on gather support.
20176 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
20177 when doing strided or gather loads.
20178 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
20179 integer_zerop to compare stride with zero.
20181 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
20183 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
20185 2012-05-11 Jan Hubicka <jh@suse.cz>
20188 * varpool.c (varpool_assemble_decl): Also output constat pool entries
20189 that output_constant_pool missed.
20191 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
20193 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
20194 MULTILIB_EXTRA_OPTS.
20196 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
20199 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
20201 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
20203 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
20204 optimization for TARGET_AVX.
20205 (*movti_internal_sse): Ditto.
20206 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
20207 (*movdi_internal): Ditto.
20208 (*movsi_internal): Ditto.
20209 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
20210 (*movdf_internal_rex64): Ditto.
20211 (*movfd_internal): Ditto.
20212 (*movsf_internal): Ditto.
20213 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
20215 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
20217 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
20218 reference as size attribute.
20220 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
20221 Tristan Gingold <gingold@adacore.com>
20223 * doc/md.texi (Standard Names): Document probe_stack_address.
20224 * explow.c (emit_stack_probe): Handle probe_stack_address.
20225 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
20226 (UNSPECV_PROBE_STACK_RANGE): Likewise.
20227 (probe_stack_address): New insn.
20228 (probe_stack_range): Likewise.
20229 * config/ia64/ia64.c: Include common/common-target.h.
20230 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
20231 checking is enabled.
20232 (ia64_emit_probe_stack_range): New function.
20233 (output_probe_stack_range): Likewise.
20234 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
20235 builtin stack checking is enabled.
20236 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
20237 and UNSPECV_PROBE_STACK_ADDRESS.
20238 (unknown_for_bundling_p): New predicate.
20239 (group_barrier_needed): Use important_for_bundling_p.
20240 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
20241 (issue_nops_and_insn): Likewise.
20242 (bundling): Likewise.
20243 (final_emit_insn_group_barriers): Likewise.
20244 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
20245 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
20246 (STACK_CHECK_PROTECT): Likewise.
20247 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20249 2012-05-10 Jan Hubicka <jh@suse.cz>
20251 * ipa-inline.c (update_all_callee_keys): Remove.
20252 (inline_small_functions): Simplify priority updating.
20254 2012-05-10 Jan Hubicka <jh@suse.cz>
20256 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
20258 2012-05-10 Jan Hubicka <jh@suse.cz>
20260 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
20261 (symtab_remove_unreachable_nodes): ... this one.
20262 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
20263 * cgraphunit.c (ipa_passes): Update.
20264 * cgraphclones.c (cgraph_materialize_all_clones): Update.
20265 * cgraph.c (cgraph_release_function_body): Only turn initial
20266 into error mark when initial was previously set.
20267 * ipa-inline.c (ipa_inline): Update.
20268 * ipa.c: Include ipa-inline.h
20269 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
20270 (enqueue_node): New function.
20271 (process_references): Update.
20272 (symtab_remove_unreachable_nodes): Cleanup.
20273 * passes.c (execute_todo, execute_one_pass): Update.
20275 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
20277 PR rtl-optimization/53125
20278 * ira.c (ira): Call find_moveable_pseudos and
20279 move_unallocated_pseudos if only ira_conflicts_p is true.
20281 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
20283 * config/i386/i386.md (*movoi_internal_avx): Handle
20284 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
20285 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
20286 (*movti_internal_sse): Ditto.
20287 (*movtf_internal): Ditto.
20288 * config/i386/sse.md (ssePSmode): New mode attribute.
20289 (*move<mode>_internal): Use ssePSmode.
20290 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
20291 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
20292 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
20293 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
20295 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
20297 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
20298 DECL_ORIGINAL_TYPE if it is present.
20300 2012-05-10 Nick Clifton <nickc@redhat.com>
20303 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
20304 a "0" constraint to being a (match_dup 0).
20306 2012-05-10 Richard Guenther <rguenther@suse.de>
20308 * stor-layout.c (byte_from_pos): Amend comment.
20310 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20312 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
20313 Document requirement to call in constructors.
20315 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
20317 2012-05-10 Richard Guenther <rguenther@suse.de>
20319 * tree.h (TYPE_IS_SIZETYPE): Remove.
20320 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
20321 (extract_muldiv_1): Likewise.
20322 * gimple.c (gtc_visit): Likewise.
20323 (gimple_types_compatible_p): Likewise.
20324 (iterative_hash_canonical_type): Likewise.
20325 (gimple_canonical_types_compatible_p): Likewise.
20326 * gimplify.c (gimplify_one_sizepos): Likewise.
20327 * print-tree.c (print_node): Likewise.
20328 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
20330 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
20333 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
20334 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
20335 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
20336 instead of xop_mulv2div2di3_low.
20337 (xop_p<macs>dql): Fix vec_select selector.
20338 (xop_p<macs>dqh): Ditto.
20339 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
20340 (xop_mulv2div2di3_high): Ditto.
20342 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
20345 * diagnostic.h (diagnostic_context): Add last_location.
20346 * diagnostic.c (diagnostic_initialize): Initialize it.
20347 (diagnostic_show_locus): Use it.
20349 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
20351 * doc/extend.texi (Function Attributes): Point xref to section
20354 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
20356 * config/i386/i386.c (*movdf_internal_rex64): Remove
20357 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
20358 Calculate "mode" attribute according to
20359 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
20360 (*movdf_internal): Ditto.
20362 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
20365 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
20366 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
20367 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
20368 or when optimizing for size.
20369 * config/i386/sse.md (*mov<mode>_internal): Remove
20370 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
20371 Calculate "mode" attribute according to optimize_function_for_size_p
20372 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
20373 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
20374 depending on the mode of the instruction. Calculate "mode" attribute
20375 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
20376 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
20377 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
20379 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
20382 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
20383 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
20384 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
20385 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
20386 (expand_prologue): Move initialization of cfun->machine->is_naked,
20387 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
20388 (avr_set_current_function): ...this new static function.
20389 (TARGET_SET_CURRENT_FUNCTION): New define.
20390 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
20391 checking attributes of current_function_decl.
20392 (avr_regs_to_save): Ditto.
20393 (signal_function_p): Rename to avr_signal_function_p.
20394 (interrupt_function_p): Rename to avr_interrupt_function_p.
20396 * doc/extend.texi (Function Attributes): Better explanation of
20397 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
20398 alphabetical order.
20400 2012-05-09 Michael Matz <matz@suse.de>
20402 PR tree-optimization/53185
20403 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
20404 peeling when we see strided loads.
20406 2012-05-09 Matthias Klose <doko@ubuntu.com>
20408 * gcc-ar.c (main): Don't check for execute bits for the plugin.
20410 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20412 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
20413 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
20414 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
20415 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
20416 (USE_LOAD_POST_INCREMENT): Define.
20417 (USE_LOAD_PRE_INCREMENT): Define.
20418 (USE_LOAD_POST_DECREMENT): Define.
20419 (USE_LOAD_PRE_DECREMENT): Define.
20420 (USE_STORE_PRE_DECREMENT): Define.
20421 (USE_STORE_PRE_INCREMENT): Define.
20422 (USE_STORE_POST_DECREMENT): Define.
20423 (USE_STORE_POST_INCREMENT): Define.
20424 (arm_auto_incmodes): Add enumeration.
20425 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
20426 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
20428 2012-05-09 Jakub Jelinek <jakub@redhat.com>
20430 PR tree-optimization/53226
20431 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
20432 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
20433 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
20434 doesn't need to be revisited, look for earliest stmt with
20435 !gimple_plf (stmt, GF_PLF_1) if something changed.
20437 2012-05-09 Terry Guo <terry.guo@arm.com>
20439 * genmultilib: Update copyright dates.
20440 * doc/fragments.texi: Ditto.
20442 2012-05-09 Terry Guo <terry.guo@arm.com>
20444 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
20445 * genmultilib (MULTILIB_REQUIRED): New.
20446 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
20448 2012-05-09 Richard Guenther <rguenther@suse.de>
20450 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20451 (vect_do_peeling_for_loop_bound): Likewise.
20452 (vect_do_peeling_for_alignment): Likewise.
20453 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
20454 (vect_do_peeling_for_loop_bound): Get check_profitability and
20455 threshold as parameters.
20456 (vect_do_peeling_for_alignment): Likewise.
20457 (vect_loop_versioning): Likewise.
20458 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
20459 and threshold here. Control where to put the check here.
20461 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
20463 PR middle-end/53249
20464 * dwarf2out.h (get_address_mode): Move declaration to...
20466 * dwarf2out.c (get_address_mode): Move definition to...
20467 * rtlanal.c: ...here.
20468 * var-tracking.c (get_address_mode): Delete.
20469 * combine.c (find_split_point): Use get_address_mode instead of
20470 targetm.addr_space.address_mode.
20471 * cselib.c (cselib_record_sets): Likewise.
20472 * dse.c (canon_address, record_store): Likewise.
20473 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
20474 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
20475 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
20476 (expand_expr_real_1): Likewise.
20477 * ifcvt.c (noce_try_cmove_arith): Likewise.
20478 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
20479 * reload.c (find_reloads): Likewise.
20480 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
20481 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
20483 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
20485 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
20486 information from the instruction produced.
20488 2012-05-09 Richard Guenther <rguenther@suse.de>
20490 * stor-layout.c (bit_from_pos): Document.
20491 (byte_from_pos): Likewise. Optimize.
20492 (pos_from_bit): Likewise.
20493 (normalize_offset): Use pos_from_bit instead of replicating it.
20495 2012-05-09 Alan Modra <amodra@gmail.com>
20498 * config/rs6000/rs6000.c (gen_frame_set): New function.
20499 (gen_frame_load, gen_frame_store): New functions.
20500 (rs6000_savres_rtx): Use the above.
20501 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
20502 Correct mode used for CR2 in save/restore_world patterns.
20503 Don't emit instructions for eh_return frame unwind reg info.
20505 2012-05-08 Jan Hubicka <jh@suse.cz>
20507 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
20509 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
20511 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
20513 (compile_file): Do not output variables.
20514 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
20516 * langhooks.c: Include timevar.h
20517 (write_global_declarations): Finalize compilation unit after wrapup;
20518 set timevars correctly.
20519 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
20520 not to be added to varpool.
20521 * varpool.c (varpool_assemble_decl): Sanity check that we are called
20522 only on cases where it makes sense; skip constant pool and value expr
20525 2012-05-08 David S. Miller <davem@davemloft.net>
20527 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
20528 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
20529 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
20531 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
20533 PR rtl-optimization/53278
20534 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
20535 speed_p code from earlier patch.
20537 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
20540 * config/sh/sh.md (*branch_true, *branch_false): New insns.
20542 2012-05-08 Teresa Johnson <tejohnson@google.com>
20544 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
20545 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
20547 2012-05-08 Jan Hubicka <jh@suse.cz>
20549 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
20550 (cgraph_create_node_1): Rename to ...
20551 (cgraph_create_empty_node): ... this one; export.
20552 (cgraph_create_node): Update.
20553 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
20554 (cgraph_create_edge_including_clones): Likewise.
20555 (cgraph_find_replacement_node): Likewise.
20556 (cgraph_clone_edge): Likewise.
20557 (cgraph_clone_node): Likewise.
20558 (clone_function_name): Likewise.
20559 (cgraph_create_virtual_clone): Likewise.
20560 (cgraph_remove_node_and_inline_clones): Likewise.
20561 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
20562 * cgraph.h: Reorder declarations so they match file of origin.
20563 (cgraph_create_empty_node): Declare.
20564 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
20565 (cgraph_copy_node_for_versioning): Likewise.
20566 (cgraph_function_versioning): Likewise.
20567 (cgraph_materialize_clone): Likewise.
20568 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
20569 (cgraph_materialize_all_clones): Likewise.
20570 * cgraphclones.c: New file.
20571 * Makefile.in: Update for cgraphclones.
20573 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
20576 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
20577 (ix86_rtx_costs): Handle SET.
20579 2012-05-08 Michael Matz <matz@suse.de>
20581 * basic-block.h (struct rtl_bb_info): Remove visited member and
20582 move head_ member to ...
20583 (struct basic_block_def.basic_block_il_dependent): ... the new
20584 member x, replacing but containing old member rtl.
20585 (enum bb_flags): New BB_VISITED flag.
20586 (BB_HEADER, BB_FOOTER): New macros.
20588 * jump.c (mark_all_labels): Adjust.
20589 * cfgcleanup.c (try_optimize_cfg): Adjust.
20590 * cfglayout.c (record_effective_endpoints): Adjust.
20591 (relink_block_chain): Ditto (and don't fiddle with visited).
20592 (fixup_reorder_chain): Adjust.
20593 (fixup_fallthru_exit_predecessor): Ditto.
20594 (cfg_layout_duplicate_bb): Ditto.
20595 * combine.c (update_cfg_for_uncondjump): Adjust.
20596 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
20597 (bb_visited_trace): New accessor.
20598 (mark_bb_visited): Move in front.
20599 (rotate_loop): Use bb_visited_trace.
20600 (find_traces_1_round): Ditto.
20601 (emit_barrier_after): Ditto.
20602 (copy_bb): Ditto, and initialize visited on resize.
20603 (reorder_basic_blocks): Initize visited member.
20604 (duplicate_computed_gotos): Clear bb flags at start, use
20607 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
20608 (rtl_verify_flow_info_1): Ditto.
20609 (cfg_layout_split_block): Ditto.
20610 (cfg_layout_delete_block): Ditto.
20611 (cfg_layout_merge_blocks): Ditto.
20612 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
20614 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
20617 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
20618 when a constant source operand matches an "I" constraint, the "no
20619 CC0 change" applies to a register-destination only, not a
20620 strict_low_part-destination.
20622 2012-05-08 Richard Guenther <rguenther@suse.de>
20624 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
20625 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
20627 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
20629 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
20631 * doc/avr-mmcu.texi: New auto-generated file.
20632 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
20633 to document all valid -mmcu= arguments.
20635 * config/avr/avr.h (arch_info_s): New struct definition.
20636 * config/avr/avr-devices.c (avr_texinfo): New variable.
20637 * config/avr/gen-avr-mmcu-texi.c: New file.
20638 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
20640 2012-05-08 Dehao Chen <dehao@google.com>
20642 * predict.c (find_qualified_ssa_name): New.
20643 (find_ssa_name_in_expr): New.
20644 (find_ssa_name_in_assign_stmt): New.
20645 (is_comparison_with_loop_invariant_p): New.
20646 (is_bound_expr_similar): New.
20647 (predict_iv_comparison): New.
20648 (predict_loops): Add heuristic for loop-nested branches that compare an
20649 induction variable to a loop bound variable.
20650 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
20652 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
20654 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
20655 TARGET_BDVER2 defines where appropriate.
20657 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
20659 * configure.ac (PLUGIN_LD): Rename into...
20660 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
20661 * config.in: Regenerate.
20662 * configure: Likewise.
20663 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
20665 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
20667 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
20668 computation using the precision of the index type.
20669 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
20670 (fold_array_ctor_reference): Do index computations in the index type.
20672 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
20674 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
20675 down to plus_constant.
20676 (expand_epilogue): Ditto.
20678 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
20680 * postreload.c (reload_cse_regs): Make static.
20681 * reload.h (reload_cse_regs): Remove prototype.
20683 2012-05-07 Richard Henderson <rth@redhat.com>
20685 * config/alpha/alpha.md (clear_cache): New pattern.
20687 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
20689 PR middle-end/53245
20690 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
20691 is folded to a type boundary value, verify that the resulting case
20692 label is still a care range.
20694 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
20696 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
20697 only for TARGET_GENERIC, when not optimizing for size.
20698 (*ffs<mode>_1): Ditto.
20700 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
20702 * tree-cfg.c (verify_gimple_switch): Tighten checks.
20704 2012-05-07 Jakub Jelinek <jakub@redhat.com>
20706 PR tree-optimization/53239
20707 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
20708 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
20710 2012-05-07 Richard Guenther <rguenther@suse.de>
20712 PR tree-optimization/53195
20713 * tree-inline.c (setup_one_parameter): Properly add referenced
20714 vars from the parameters new known value.
20716 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
20718 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
20719 (sched_branch_type): Remove.
20720 (m68k_sched_md_init_global): Don't allocate it.
20721 (m68k_sched_md_finish_global): Don't free it.
20722 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
20723 * config/m68k/m68k.md: Set the type of insns using
20724 m68k_sched_branch_type to bcc directly.
20726 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20728 * config/sol2.c (solaris_override_options): New function.
20729 * config/sol2-protos.h (solaris_override_options): Declare.
20730 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
20732 2012-05-07 Richard Guenther <rguenther@suse.de>
20734 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
20735 whether we failed to compute data dependences.
20736 (loop_prefetch_arrays): Fail if we failed.
20738 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
20739 Paolo Bonzini <bonzini@gnu.org>
20741 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
20742 Emit bsf when optimizing for size.
20743 (*ffs<mode>_1): Ditto.
20745 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20748 * config/sh/sh.c (sh_rtx_costs): Handle SET.
20750 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
20753 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
20754 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
20755 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
20757 (*bswapdi2_doubleword): New insn pattern.
20758 (*bswap<mode>2): Rename from *bswap<mode>2_1.
20760 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20762 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
20763 (mips_set_reg_reg_cost): Likewise.
20764 (mips_rtx_costs): Handle SET.
20766 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
20768 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
20769 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
20770 to compute the cost of moves. Set the mode of the target register.
20772 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
20774 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
20775 plus_constant function.
20776 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
20777 that the mode is sensible.
20778 (use_anchored_address, round_push, allocate_dynamic_stack_space)
20779 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
20782 * alias.c (canon_rtx): Likewise.
20783 (init_alias_analysis): Likewise.
20784 * builtins.c (expand_builtin_return_addr)
20785 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
20786 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
20787 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
20788 (expand_builtin_stpcpy): Likewise.
20789 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
20790 (compute_argument_addresses, internal_arg_pointer_based_exp)
20791 (expand_call, emit_library_call_value_1): Likewise.
20792 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
20793 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
20794 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
20795 * cse.c (insert_const_anchor, find_reg_offset_for_const)
20796 (use_related_value, fold_rtx): Likewise.
20797 * cselib.c (cselib_subst_to_values): Likewise.
20798 * dse.c (record_store, check_mem_read_rtx): Likewise.
20799 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
20800 * emit-rtl.c (adjust_address_1): Likewise.
20801 * except.c (sjlj_emit_function_enter)
20802 (expand_builtin_extract_return_addr)
20803 (expand_builtin_frob_return_addr): Likewise.
20804 * expmed.c (expand_divmod): Likewise.
20805 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
20806 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
20807 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
20808 * function.c (assign_stack_local_1)
20809 (instantiate_virtual_regs_in_rtx): Likewise.
20810 * optabs.c (prepare_cmp_insn): Likewise.
20811 * recog.c (offsettable_address_addr_space_p): Likewise.
20812 * reload.c (find_reloads_address, form_sum)
20813 (find_reloads_subreg_address): Likewise.
20814 * reload1.c (init_reload, eliminate_regs_1)
20815 (eliminate_regs_in_insn): Likewise.
20816 * simplify-rtx.c (simplify_unary_operation_1)
20817 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
20818 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
20819 (vt_add_function_parameter): Likewise.
20821 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
20822 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
20823 * config/alpha/alpha.c (alpha_legitimize_address_1)
20824 (get_unaligned_address, alpha_expand_unaligned_load)
20825 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
20826 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
20827 (alpha_expand_builtin_establish_vms_condition_handler)
20828 (alpha_setup_incoming_varargs, emit_frame_store_1)
20829 (alpha_expand_prologue, alpha_expand_epilogue)
20830 (alpha_use_linkage): Likewise.
20831 * config/alpha/alpha.md: Likewise.
20833 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
20834 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
20835 (thumb_legitimize_address, arm_gen_load_multiple_1)
20836 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
20837 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
20838 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
20839 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
20840 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
20841 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
20842 (thumb_expand_movmemqi, arm_set_return_address)
20843 (thumb_set_return_address): Likewise.
20844 * config/arm/arm.md: Likewise.
20846 * config/avr/avr.c (avr_incoming_return_addr_rtx)
20847 (avr_prologue_setup_frame, expand_epilogue)
20848 (avr_const_address_lo16): Likewise.
20850 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
20851 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
20852 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
20853 (bfin_output_mi_thunk): Likewise.
20855 * config/c6x/c6x.c (c6x_initialize_trampoline)
20856 (c6x_output_mi_thunk): Likewise.
20858 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
20859 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
20861 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
20862 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
20863 (cris_emit_movem_store, cris_trampoline_init): Likewise.
20864 * config/cris/cris.md: Likewise.
20866 * config/darwin.c (machopic_indirect_data_reference)
20867 (machopic_legitimize_pic_address): Likewise.
20869 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
20870 (epiphany_expand_prologue, epiphany_expand_epilogue)
20871 (epiphany_trampoline_init): Likewise.
20872 * config/epiphany/epiphany.md: Likewise.
20874 * config/fr30/fr30.c (fr30_move_double): Likewise.
20876 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
20877 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
20878 (frv_index_memory, unspec_got_name, frv_find_base_term)
20879 (frv_output_dwarf_dtprel): Likewise.
20881 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
20882 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
20884 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
20885 * config/i386/i386.c (setup_incoming_varargs_64)
20886 (setup_incoming_varargs_ms_64, choose_baseaddr)
20887 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
20888 (ix86_emit_probe_stack_range, ix86_expand_prologue)
20889 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
20890 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
20891 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
20892 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
20893 (x86_output_mi_thunk): Likewise.
20894 * config/i386/i386.md: Likewise.
20896 * config/ia64/ia64.c (ia64_expand_load_address)
20897 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
20898 (do_spill, ia64_trampoline_init): Likewise.
20900 * config/iq2000/iq2000.c (iq2000_va_start)
20901 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
20902 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
20903 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
20905 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
20907 * config/m32c/m32c.c (m32c_return_addr_rtx)
20908 (m32c_expand_insv): Likewise.
20910 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
20911 (m32r_legitimize_pic_address, m32r_print_operand)
20912 (m32r_print_operand_address): Likewise.
20914 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
20915 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
20916 (EH_RETURN_HANDLER_RTX): Likewise.
20917 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
20918 (m68k_expand_epilogue, legitimize_pic_address)
20919 (m68k_output_mi_thunk): Likewise.
20920 * config/m68k/m68k.md: Likewise.
20922 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20923 (mcore_expand_epilog): Likewise.
20924 * config/mcore/mcore.md: Likewise.
20926 * config/mep/mep.c (mep_allocate_initial_value)
20927 (mep_expand_prologue, mep_expand_epilogue): Likewise.
20929 * config/microblaze/microblaze.c (double_memory_operand)
20930 (microblaze_block_move_loop): Likewise.
20932 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
20933 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
20934 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
20935 (mips_expand_prologue, mips_epilogue_set_cfa)
20936 (mips_expand_epilogue): Likewise.
20937 * config/mips/mips.md: Likewise.
20939 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
20940 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
20942 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
20943 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
20945 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
20946 (EH_RETURN_HANDLER_RTX): Likewise.
20947 * config/moxie/moxie.c (moxie_static_chain): Likewise.
20949 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
20950 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
20951 (pa_return_addr_rtx, hppa_builtin_saveregs)
20952 (pa_trampoline_init): Likewise.
20953 * config/pa/pa.md: Likewise.
20955 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
20957 * config/picochip/picochip.c (picochip_static_chain): Likewise.
20959 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
20960 * config/rs6000/rs6000.c (rs6000_legitimize_address)
20961 (setup_incoming_varargs, print_operand, rs6000_return_addr)
20962 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
20963 (rs6000_emit_epilogue)
20964 (rs6000_machopic_legitimize_pic_address): Likewise.
20966 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
20968 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
20969 (DYNAMIC_CHAIN_ADDRESS): Likewise.
20970 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
20971 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
20972 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
20973 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
20974 (s390_emit_epilogue, s390_function_profiler): Likewise.
20975 * config/s390/s390.md: Likewise.
20977 * config/score/score.c (score_add_offset, score_prologue): Likewise.
20979 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
20980 (sh_output_mi_thunk): Likewise.
20981 * config/sh/sh.md: Likewise.
20983 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
20984 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
20985 * config/sparc/sparc.c (sparc_legitimize_pic_address)
20986 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
20987 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
20988 (emit_and_preserve): Likewise.
20989 * config/sparc/sparc.md: Likewise.
20991 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
20992 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
20993 (spu_setup_incoming_varargs, ea_load_store_inline)
20994 (spu_expand_load): Likewise.
20996 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
20997 (combine_bnp): Likewise.
20999 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
21000 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
21001 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
21003 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
21004 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
21005 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
21007 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
21008 * config/v850/v850.md: Likewise.
21010 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
21011 (EH_RETURN_HANDLER_RTX): Likewise.
21012 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
21013 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
21014 (print_operand_address, vax_trampoline_init): Likewise.
21016 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
21017 (xtensa_function_value_regno_p): Likewise.
21019 2012-05-04 Andrew Pinski <apinski@cavium.com>
21021 * expr.c (get_def_for_expr_class): New function.
21022 (convert_tree_comp_to_rtx): New function.
21023 (expand_cond_expr_using_cmove): New function.
21024 (expand_expr_real_2 <case COND_EXPR>): Call
21025 expand_cond_expr_using_cmove first and return if it succeeds.
21026 Remove the check for HAVE_conditional_move since we should have
21027 already converted it to a conditional move.
21028 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
21029 modes of DImode for 32bits and TImode.
21031 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
21034 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
21035 (print_md_ptr_loc, print_c_condition): Use them.
21036 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
21037 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
21038 attr_file, dfa_file, latency_file): New global variables.
21039 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
21040 write_upcase, write_indent, write_length_unit_log, write_test_expr,
21041 write_attr_get, write_insn_cases, write_eligible_delay,
21042 write_const_num_delay_slots): Accept FILE pointer and toss it around.
21043 Update all callers.
21044 (write_header, open_outfile, handle_arg): New funcions.
21045 (make_automaton_attrs): Write prototypes as extern to the output
21047 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
21048 names from the command line. Open the output files and write out
21049 internal functions for DFA functions to dfa_file_name, insn latency
21050 functions to latency_file_name, and everything else to attr_file.
21051 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
21052 (BACKEND): Build libbackend first.
21053 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
21054 (.PRECIOUS): Likewise.
21055 (insn-dfatab.o): New rule.
21056 (insn-latencytab.o): New rule.
21057 (simple_rtl_generated_c): Do not include insn-attrtab.c.
21058 (s-attrtab): New rule.
21060 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
21062 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
21063 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
21064 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
21065 * reorg.c (get_jump_flags): Do not set the removed flags.
21067 * doc/md.texi (attr_flag): Update for abovementioned changes.
21069 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
21072 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
21073 (TARGET_CMOV): Rename from TARGET_CMOVE.
21074 (TARGET_CMOVE): New define.
21075 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
21076 Do not set TARGET_CMOVE here.
21078 2012-05-04 Dodji Seketeli <dodji@redhat.com>
21080 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
21081 * opts.c (finish_options): Activate -Wunused-local-typedefs if
21082 -Wunused is activated.
21083 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
21085 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21087 * config/s390/s390.md (*movmem_short, *clrmem_short)
21088 (*cmpmem_short): Move the mode check from the insn condition to
21091 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
21093 PR tree-optimization/52633
21094 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
21095 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
21096 (vect_recog_over_widening_pattern): Remove handling of code that was
21097 already detected as over-widening pattern. Remove special handling
21098 of "unsigned" cases. Instead, support general case of conversion
21099 of the shift result to another type.
21101 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
21103 * tree-vect-patterns.c (vect_single_imm_use): New function.
21104 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
21105 (vect_recog_over_widening_pattern): Likewise.
21106 (vect_recog_widen_shift_pattern): Likewise.
21108 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
21110 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
21111 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
21112 (vect_recog_widen_mult_pattern): Likewise.
21113 (vect_operation_fits_smaller_type): Likewise.
21114 (vect_recog_over_widening_pattern): Likewise.
21115 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
21117 2012-05-04 Richard Guenther <rguenther@suse.de>
21120 * lto-wrapper.c (merge_and_complain): Complain about mismatches
21121 of -freg-struct-return and -fpcc-struct-return.
21122 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
21123 from the input file options and ignore those from the link
21126 2012-05-04 Richard Guenther <rguenther@suse.de>
21128 PR tree-optimization/53168
21129 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
21130 memory reads when the result is a constant we can pun.
21132 2012-05-04 Richard Guenther <rguenther@suse.de>
21134 * common.opt (flto-report): Do not mark as Optimization.
21136 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
21139 * recog.c (constrain_operands): If extra constraints are present, also
21140 accept pseudo-registers with equivalent memory locations during reload.
21142 2012-05-04 Olivier Hainque <hainque@adacore.com>
21144 * collect2.c (may_unlink_output_file): New global.
21145 (maybe_unlink): Honor it.
21146 * collect2.h: Add extern for it.
21147 * tlink.c (do_tlink): Set it to true if the link succeeded.
21149 2012-05-04 Olivier Hainque <hainque@adacore.com>
21151 * gcc.c (eval_spec_function): Finalize/restore the current string
21152 obstack state as part of the context push/pop operations.
21154 2012-05-04 Bin Cheng <bin.cheng@arm.com>
21156 PR rtl-optimization/52804
21157 * reload1.c (reload_reg_reaches_end_p): Check whether successor
21158 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
21159 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
21160 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
21161 RELOAD_FOR_OUTADDR_ADDRESS.
21163 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
21166 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
21167 for macro expansion.
21169 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
21171 * flags.h (flag_permissive): Do not declare.
21172 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
21174 * toplev.c (flag_permissive): Do not define.
21175 * c-tree.h (system_header_p): Delete unused.
21177 2012-05-03 David S. Miller <davem@davemloft.net>
21180 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
21181 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
21182 (sparc_emit_float_lib_cmp): Likewise.
21184 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21187 * config/rs6000/rs6000.md (bswapdi splitters): If
21188 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
21189 default) is used, generate an alternate sequence that does not
21190 depend on using indexed addressing.
21192 2012-05-03 Jason Merrill <jason@redhat.com>
21194 * gengtype.c (write_types): Fix warning message.
21195 (write_local): Likewise.
21197 2012-05-02 Jason Merrill <jason@redhat.com>
21199 * dwarf2out.c (struct external_ref, build_local_stub): New.
21200 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
21201 (optimize_external_refs, optimize_external_refs_1): New.
21202 (change_AT_die_ref): New.
21203 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
21204 (build_abbrev_table): Take the external refs hashtable.
21205 (output_comp_unit): Get it from optimize_external_refs and pass it in.
21207 2012-05-03 Jan Hubicka <jh@suse.cz>
21209 PR middle-end/53093
21210 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
21212 2012-05-03 Jan Hubicka <jh@suse.cz>
21214 PR middle-end/53106
21215 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
21217 2012-05-03 Jason Merrill <jason@redhat.com>
21219 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
21220 use_debug_types to discriminate the die_id union.
21221 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
21222 (build_abbrev_table, output_die): Likewise.
21223 (prune_unused_types_walk_attribs): Likewise.
21224 (generate_type_signature, copy_declaration_context): Set it.
21225 (remove_child_or_replace_with_skeleton): Set it.
21226 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
21227 check use_debug_types.
21228 (dwarf2out_finish): Do break_out_includes after .debug_types.
21230 2012-05-03 Jason Merrill <jason@redhat.com>
21232 * dwarf2out.c (modified_type_die): Use scope_die_for.
21233 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
21234 (uses_local_type_r, uses_local_type): New.
21235 (scope_die_for): Keep a type that uses a local type in local scope.
21236 Use get_context_die for namespace and type scope.
21238 2012-05-03 Jason Merrill <jason@redhat.com>
21240 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
21242 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
21243 (dwarf2out_finish): Likewise.
21245 2012-05-03 Martin Jambor <mjambor@suse.cz>
21247 * builtins.c (get_object_alignment_1): Return whether we can determine
21248 the alignment or conservatively assume byte alignment. Return the
21249 alignment by reference. Use get_pointer_alignment_1 for dereference
21251 (get_pointer_alignment_1): Return whether we can determine the
21252 alignment or conservatively assume byte alignment. Return the
21253 alignment by reference. Use get_ptr_info_alignment to get SSA name
21255 (get_object_alignment): Update call to get_object_alignment_1.
21256 (get_object_or_type_alignment): Likewise, fall back to type alignment
21257 only when it returned false.
21258 (get_pointer_alignment): Update call to get_pointer_alignment_1.
21259 * fold-const.c (get_pointer_modulus_and_residue): Update call to
21260 get_object_alignment_1.
21261 * ipa-prop.c (ipa_modify_call_arguments): Update call to
21262 get_pointer_alignment_1.
21263 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
21264 of MEM_REF or TARGET_MEM_REF only when it returns false.
21265 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
21266 get_object_alignment_1.
21267 (ccp_finalize): Use set_ptr_info_alignment.
21268 * tree.h (get_object_alignment_1): Update declaration.
21269 (get_pointer_alignment_1): Likewise.
21270 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
21271 (dump_gimple_stmt): Likewise.
21272 * tree-flow.h (ptr_info_def): Updated comments of fields align and
21274 (get_ptr_info_alignment): Declared.
21275 (mark_ptr_info_alignment_unknown): Likewise.
21276 (set_ptr_info_alignment): Likewise.
21277 (adjust_ptr_info_misalignment): Likewise.
21278 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
21279 and set alignment of SSA names.
21280 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
21281 mark_ptr_info_alignment_unknown.
21282 * tree-ssanames.c (get_ptr_info_alignment): New function.
21283 (mark_ptr_info_alignment_unknown): Likewise.
21284 (set_ptr_info_alignment): Likewise.
21285 (adjust_ptr_info_misalignment): Likewise.
21286 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
21287 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21289 (bump_vector_ptr): Likewise.
21290 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
21291 (vectorizable_store): Likewise.
21292 (vectorizable_load): Likewise.
21294 2012-05-03 Michael Matz <matz@suse.de>
21296 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
21297 in front of basic_block_def.
21298 (struct basic_block_def): Make il.gimple the full struct, not a
21300 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
21302 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
21303 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
21304 NULL il.gimple, which can't happen anymore.
21305 * gimple.h (bb_seq): il.gimple can't be NULL.
21306 (bb_seq_add): Ditto.
21307 (set_bb_seq): Adjust.
21308 (gsi_start_bb, gsi_last_bb): Tidy.
21309 * lto-streamer-in.c (make_new_block): Don't zero members that
21310 are zeroed already, don't allocate a gimple_bb_info.
21311 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
21312 (remove_bb): Clear all il.gimple members.
21313 (gimple_verify_flow_info): Adjust for flat il.gimple.
21314 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
21316 * coretypes.h (const_gimple_seq): Remove typedef.
21317 * gimple.h (gimple_seq_first): Take gimple_seq.
21318 (gimple_seq_first_stmt): Ditto.
21319 (gimple_seq_last): Ditto.
21320 (gimple_seq_last_stmt): Ditto.
21321 (gimple_seq_empty_p): Ditto.
21323 2012-05-03 Richard Guenther <rguenther@suse.de>
21325 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
21327 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
21328 (compute_avail): Do not add possibly trapping operations to
21329 EXP_GEN if they might not be executed in the block.
21331 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
21333 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
21335 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
21337 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
21338 information as early as possible. Update dominance info instead of
21341 2012-05-03 Richard Guenther <rguenther@suse.de>
21343 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
21344 (union_contains_value): Remove.
21345 (vro_valid_in_sets): Likewise.
21346 (op_valid_in_sets): New function.
21347 (valid_in_sets): Use op_valid_in_sets.
21348 (insert_into_preds_of_block): Move dumping ...
21349 (do_regular_insertion): ... here.
21350 (do_partial_partial_insertion): ... and here. Dump that
21351 we've found a partial partial redundancy.
21352 (insert): Dump the current insert iteration.
21354 2012-05-03 Jakub Jelinek <jakub@redhat.com>
21357 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
21358 append program name to it and pass that as first argument
21359 to make_relative_prefix. Always pass standard_libexec_prefix
21360 as last argument to make_relative_prefix. If
21361 make_relative_prefix returns NULL, fall back to
21362 standard_libexec_prefix.
21365 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
21369 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
21370 mode, return that mode.
21373 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
21374 define __ATOMIC_HLE_* macros here.
21375 (ix86_target_macros): But here, using cpp_define_formatted.
21377 2012-05-03 Richard Guenther <rguenther@suse.de>
21379 PR tree-optimization/53144
21380 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
21382 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
21383 with SSA name values.
21384 (vn_reference_lookup_3): Adjust callers.
21386 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21388 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
21389 has_fma4 for AMD processors with both fma3 and fma4 support.
21391 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
21394 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
21397 2012-05-03 Michael Matz <matz@suse.de>
21400 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
21401 (dse_enter_block): Properly iterate the whole sequence even
21402 if the last statement was removed.
21404 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
21406 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
21407 unset flag_jump_tables.
21408 * stmt.c (expand_case): Remove special flag_pic case conditional
21409 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
21411 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
21413 * common/config/s390/s390-common.c (s390_option_optimization_table):
21414 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
21415 default when optimizing.
21417 2012-05-02 Martin Jambor <mjambor@suse.cz>
21420 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
21421 of a variable when the contect is a function.
21423 2012-05-02 Michael Matz <matz@suse.de>
21425 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
21426 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
21427 (const_gimple_seq_node): Remove.
21428 (gimple_seq_node): Typedef as gimple.
21429 (struct gimple_statement_base): Add next and prev members,
21430 adjust all WORD markers in using structs.
21431 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
21432 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
21433 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
21434 gimple are the same.
21435 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
21436 gimple_seq, adjust.
21437 (gimple_init_singleton): New function.
21438 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
21439 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
21440 (gsi_stmt): Adjust.
21441 (gsi_stmt_ptr): Remove.
21442 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
21444 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
21445 again, adjust for above changes.
21446 (update_call_edge_frequencies): Adjust for above changes.
21447 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
21448 (gsi_insert_seq_nodes_after): Ditto.
21449 (gsi_split_seq_after): Ditto.
21450 (gsi_set_stmt): Ditto.
21451 (gsi_split_seq_before): Ditto.
21452 (gsi_remove): Ditto.
21453 (gsi_insert_seq_before_without_update): Don't free sequence.
21454 (gsi_insert_seq_after_without_update): Ditto.
21455 (gsi_replace): Assert some more invariants.
21456 (gsi_insert_before_without_update, gsi_insert_after_without_update):
21458 (gsi_for_stmt): Don't search for stmt.
21459 (gsi_insert_on_edge_immediate): Tidy.
21461 * gimple.c (gimple_alloc_k): Remove "sequences".
21462 (gimple_seq_cache): Remove.
21463 (gimple_alloc_stat): Make stmt a singleton sequence.
21464 (gimple_seq_alloc, gimple_seq_free): Remove.
21465 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
21466 (gimple_copy): Ditto.
21467 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
21468 create iterator from correct sequence.
21469 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
21471 2012-05-02 Michael Matz <matz@suse.de>
21473 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
21475 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
21476 sequence, lazily allocate it.
21477 (bb_seq_addr): New function.
21478 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
21479 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
21480 (gsi_none): New function.
21481 (gsi_start_bb): Adjust.
21482 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
21483 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
21484 (gsi_last_bb): Adjust.
21486 * tree-flow-inline.h (phi_nodes_ptr): New function.
21488 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
21489 datastructure and interface change.
21490 (gsi_insert_seq_before_without_update): Ditto.
21491 (gsi_insert_seq_nodes_after): Ditto.
21492 (gsi_insert_seq_after_without_update): Ditto.
21493 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
21494 (gsi_split_seq_before): Ditto.
21495 (gsi_start_phis): Adjust.
21496 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
21497 (vect_transform_loop): Ditto.
21498 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
21499 gimple_seq_copy): Don't use gimple_seq_alloc.
21500 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
21501 (gimplify_seq_add_seq): Ditto.
21502 * lto-streamer-in.c (make_new_block): Ditto.
21503 * tree-cfg.c (create_bb): Ditto.
21504 * tree-sra.c (initialize_parameter_reductions): Ditto.
21506 2012-05-02 Michael Matz <matz@suse.de>
21508 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
21509 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
21510 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
21511 set_bb_seq): Move down to after gimple_statement_d definition.
21513 2012-05-02 Michael Matz <matz@suse.de>
21515 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
21516 gsi_replace_with_seq, instead of inserting itself.
21517 * gimple-iterator.c (gsi_replace_with_seq): New function.
21518 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
21519 iterator instead of statement, advance it.
21520 (ssa_forward_propagate_and_combine): Adjust call to above.
21522 2012-05-02 Michael Matz <matz@suse.de>
21524 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
21526 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
21527 * tree-nested.c (walk_gimple_omp_for): Ditto.
21528 * trans-mem.c (lower_transaction): Ditto.
21529 * tree-eh.c (do_return_redirection): Ditto.
21530 (do_goto_redirection): Ditto.
21531 (lower_try_finally_switch): Ditto.
21532 * gimplify.c (gimplify_stmt): Ditto.
21533 (gimplify_scan_omp_clauses): Ditto.
21534 (gimplify_omp_for): Ditto.
21535 (gimplify_function_tree): Ditto.
21536 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
21537 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
21538 (mf_build_check_statement_for): Ditto.
21539 (mx_register_decls): Ditto.
21540 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
21541 and don't use itertors to append.
21542 (insert_stmts): Ditto.
21543 (insert_out_of_ssa_copy): Ditto.
21544 (insert_out_of_ssa_copy_on_edge): Ditto.
21546 2012-05-02 Michael Matz <matz@suse.de>
21548 * gimple.h (gimple_bind_body_ptr): New function.
21549 (gimple_bind_body): Use it.
21550 (gimple_catch_handler): Use gimple_catch_handler_ptr.
21551 (gimple_eh_filter_failure_ptr): New function.
21552 (gimple_eh_filter_failure): Use it.
21553 (gimple_eh_else_n_body_ptr): New function.
21554 (gimple_eh_else_n_body): Use it.
21555 (gimple_eh_else_e_body_ptr): New function.
21556 (gimple_eh_else_e_body): Use it.
21557 (gimple_try_eval_ptr): New function.
21558 (gimple_try_eval): Use it.
21559 (gimple_try_cleanup_ptr): New function.
21560 (gimple_try_cleanup): Use it.
21561 (gimple_wce_cleanup_ptr): New function.
21562 (gimple_wce_cleanup): Use it.
21563 (gimple_omp_body_ptr): New function.
21564 (gimple_omp_body): Use it.
21565 (gimple_omp_for_pre_body_ptr): New function.
21566 (gimple_omp_for_pre_body): Use it.
21567 (gimple_transaction_body_ptr): New function.
21568 (gimple_transaction_body): Use it.
21569 (gsi_split_seq_before): Adjust to return nothing and take pointer
21571 (gsi_set_stmt): Declare.
21572 (gsi_replace_with_seq): Declare.
21573 (walk_gimple_seq_mod): Declare.
21574 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
21576 * gimple-iterator.c (gsi_set_stmt): New function.
21577 (gsi_split_seq_before): Return new sequence via pointer argument.
21578 (gsi_replace): Use gsi_set_stmt.
21580 * tree-ssa-loop-im.c (move_computations_stmt): First remove
21582 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
21583 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
21585 (reserve_phi_args_for_new_edge): Change call to above,
21588 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
21589 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
21590 iterators. Adjust call to lower_omp.
21591 (lower_lastprivate_clauses): Adjust call to lower_omp.
21592 (lower_reduction_clauses): Ditto.
21593 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
21594 (lower_omp_sections): Don't explicitely count sequence length,
21595 nullify lowered bodies earlier, ensure stmts are part of only
21596 one sequence, adjust call to lower_omp.
21597 (lower_omp_single): Ensure stmts are part of only one sequence,
21598 adjust call to lower_omp.
21599 (lower_omp_master): Ditto.
21600 (lower_omp_ordered): Ditto.
21601 (lower_omp_critical): Ditto.
21602 (lower_omp_for): Ditto.
21603 (lower_omp_taskreg): Ditto, tidy.
21604 (lower_omp_1): Adjust calls to lower_omp.
21605 (execute_lower_omp): Ditto.
21606 (lower_omp): Adjust to take pointer to sequence.
21607 (diagnose_sb_2): Use walk_gimple_seq_mod.
21608 (diagnose_omp_structured_block_errors): Ditto and set possibly
21609 changed function body.
21610 * gimple-low.c (lower_function_body): Set function body after
21612 (lower_sequence): Adjust to take pointer to sequence.
21613 (lower_omp_directive): Ensure stmt isn't put twice into the
21614 sequence, adjust call to lower_sequence.
21615 (lower_stmt): Adjust calls to lower_sequence.
21616 (lower_gimple_bind): Ditto.
21617 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
21618 * tree-nested.c (walk_body): Take pointer to sequence, use
21619 walk_gimple_seq_mod.
21620 (walk_function): Adjust call to walk_body, set possibly changed body.
21621 (walk_gimple_omp_for): Adjust calls to walk_body.
21622 (convert_nonlocal_omp_clauses): Ditto.
21623 (convert_nonlocal_reference_stmt): Ditto.
21624 (convert_local_omp_clauses): Ditto.
21625 (convert_local_reference_stmt): Ditto.
21626 (convert_tramp_reference_stmt): Ditto.
21627 (convert_gimple_call): Ditto.
21628 (convert_nl_goto_reference): Use local iterator copy.
21629 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
21630 but taking pointer to sequence, ensure gsi_start is called with
21632 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
21633 asserting that the sequence head didn't change.
21634 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
21635 walk_gimple_seq_mod.
21636 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
21637 (execute_lower_tm): Ditto, and set possibly changed body.
21638 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
21639 call gsi_start with that lvalue.
21640 (replace_goto_queue_stmt_list): Ditto.
21641 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
21642 (replace_goto_queue): Ditto.
21643 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
21644 (lower_try_finally_onedest): Ditto.
21645 (lower_try_finally_copy): Ditto.
21646 (lower_try_finally_switch): Ditto.
21647 (lower_try_finally): Ditto.
21648 (lower_eh_filter): Ditto.
21649 (lower_eh_must_not_throw): Ditto.
21650 (lower_cleanup): Ditto.
21651 (lower_eh_constructs_2): Ditto.
21652 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
21653 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
21654 set possibly changed body.
21655 (optimize_double_finally): Call gsi_start with lvalue.
21657 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
21658 (gimple_split_block): Ditto.
21659 (gimple_merge_blocks): Use gsi_start_phis.
21660 (move_stmt_r): Use walk_gimple_seq_mod.
21661 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
21662 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
21663 (rebuild_cgraph_edges): Ditto.
21664 (cgraph_rebuild_references): Ditto.
21665 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
21666 * tree-inline.c (copy_phis_for_bb): Ditto.
21667 * tree-ssa-dce.c: Ditto.
21669 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
21671 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
21672 Andi Kleen <ak@linux.intel.com>
21674 * coretypes.h (MEMMODEL_MASK): New.
21675 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
21676 and return new variable.
21677 (expand_builtin_atomic_exchange): Mask memmodel values.
21678 (expand_builtin_atomic_compare_exchange): Ditto.
21679 (expand_builtin_atomic_load): Ditto.
21680 (expand_builtin_atomic_store): Ditto.
21681 (expand_builtin_atomic_clear): Ditto.
21682 * doc/extend.texi: Mention port-dependent memory model flags.
21683 * config/i386/cpuid.h (bit_HLE): New.
21684 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21686 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
21687 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
21688 (ix86_target_string)<-mhle>: New.
21689 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
21690 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
21691 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
21692 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
21693 enabled for generic, generic64 and core-avx2.
21694 (ix86_print_operand): Generate HLE lock prefixes.
21695 (ix86_memmodel_check): New.
21696 (TARGET_MEMMODEL_CHECK): Ditto.
21697 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
21698 (IX86_HLE_ACQUIRE): Ditto.
21699 (IX86_HLE_RELEASE): Ditto.
21700 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
21701 * config/i386/i386.opt (mhle): Ditto.
21702 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
21703 success model to instruction emitter.
21704 (atomic_fetch_add<mode>): Ditto.
21705 (atomic_exchange<mode>): Ditto.
21706 (atomic_add<mode>): Ditto.
21707 (atomic_sub<mode>): Ditto.
21708 (atomic_<code><mode>): Ditto.
21709 (*atomic_compare_and_swap_doubledi_pic): Ditto.
21710 (atomic_compare_and_swap_single<mode>): Define and use argument
21712 (atomic_compare_and_swap_double<mode>): Ditto.
21713 * configure.ac: Check if assembler support HLE prefixes.
21714 * configure: Regenerate.
21715 * config.in: Ditto.
21717 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
21719 PR middle-end/53153
21720 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
21722 (gimplify_switch_expr): ... here.
21723 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
21724 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
21725 to clean up case labels with values outside the index type range.
21726 (simplify_gimple_switch): Call it if something changed.
21727 Remove strange and unnecessary assert.
21729 2012-05-02 Richard Guenther <rguenther@suse.de>
21731 * fold-const.c (div_if_zero_remainder): sizetypes no longer
21733 (int_const_binop_1): New worker for int_const_binop with
21734 overflowable parameter. Pass it through to force_fit_type_double.
21735 (int_const_binop): Wrap around int_const_binop_1 with overflowable
21737 (size_binop_loc): Call int_const_binop_1 with overflowable equal
21738 to minus one, forcing overflow detection for even unsigned types.
21739 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
21740 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
21741 * stor-layout.c (initialize_sizetypes): sizetypes no longer
21743 (layout_type): For zero-sized arrays ignore overflow on the
21745 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
21746 (bit_value_binop_1): Likewise.
21747 * tree.c (double_int_to_tree): Likewise.
21748 (double_int_fits_to_tree_p): Likewise.
21749 (force_fit_type_double): Likewise.
21750 (host_integerp): Likewise.
21751 (int_fits_type_p): Likewise.
21752 * varasm.c (output_constructor_regular_field): Sign-extend the
21753 field-offset to cater for negative offsets produced by the Ada
21755 * omp-low.c (extract_omp_for_data): Convert the loop step to
21756 signed for pointer adjustments.
21758 2012-05-02 Richard Guenther <rguenther@suse.de>
21760 * tree.c (valid_constant_size_p): New function.
21761 * tree.h (valid_constant_size_p): Declare.
21762 * cfgexpand.c (expand_one_var): Adjust check for too large
21763 variables by using valid_constant_size_p.
21764 * varasm.c (assemble_variable): Likewise.
21766 * c-decl.c (grokdeclarator): Properly check for sizes that
21767 cover more than half of the address-space.
21769 2012-05-02 Jakub Jelinek <jakub@redhat.com>
21771 PR tree-optimization/53163
21772 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
21773 return value from compute_all_dependences.
21775 PR rtl-optimization/53160
21776 * ree.c (combine_reaching_defs): Handle the case where cand->insn
21777 has been modified by ree pass already.
21779 2012-05-01 Ian Lance Taylor <iant@google.com>
21782 * c-decl.c (build_compound_literal): Make the decl readonly if it
21783 an array of a readonly type.
21784 * gimplify.c (gimplify_compound_literal_expr): Add fallback
21785 parameter. Change all callers. If the decl is not addressable
21786 and is not an l-value, make it readonly.
21788 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
21790 * ira.c (allocated_reg_info_size): New static variable.
21791 (expand_reg_info): Manage it. Call
21792 setup_preferred_alternate_classes_for_new_pseudos.
21793 (ira): Don't do it here. Remove local allocated_reg_info_size,
21794 set the global before calling find_moveable_pseudos.
21795 (find_moveable_pseudos): Call expand_reg_info rather than
21798 2012-05-01 Richard Henderson <rth@redhat.com>
21800 * common.opt (fsync-libcalls): New.
21801 * doc/invoke.texi: Document it.
21802 * optabs.c (init_sync_libfuncs): Honor it.
21804 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
21805 Richard Sandiford <r.sandiford@uk.ibm.com>
21807 PR rtl-optimization/52543
21808 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
21810 * lower-subreg.h: New file.
21811 * target-globals.h (this_target_lower_subreg): Declare.
21812 (target_globals): Add lower_subreg;
21813 (restore_target_globals): Restore this_target_lower_subreg.
21814 * target-globals.c: Include it.
21815 (default_target_globals): Add default_target_lower_subreg.
21816 (save_target_globals): Initialize target_lower_subreg.
21817 * rtl.h (init_lower_subreg): Added declaration.
21818 * toplev.c (backend_init_target): Call initializer for lower-subreg
21820 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
21821 (default_target_lower_subreg): New variable.
21822 (this_target_lower_subreg): Likewise.
21823 (twice_word_mode, choices): New macros.
21824 (shift_cost, compute_splitting_shift, compute_costs)
21825 (init_lower_subreg): New functions.
21826 (resolve_simple_move): Add speed_p argument. Check choices.
21827 (find_pseudo_copy): Don't check the mode size here.
21828 (resolve_simple_move): Assert the mode size.
21829 (find_decomposable_shift_zext): Add speed_p argument and return
21830 a bool. Check choices.
21831 (resolve_shift_zext): Add comment.
21832 (dump_shift_choices, dump_choices): New functions.
21833 (decompose_multiword_subregs): Dump list of profitable
21834 transformations. Add code to skip non profitable transformations.
21835 Update calls to simple_move and find_decomposable_shift_zext.
21837 2012-05-01 Ian Bolton <ian.bolton@arm.com>
21838 Sameera Deshpande <sameera.deshpande@arm.com>
21839 Greta Yorsh <greta.yorsh@arm.com>
21841 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
21842 (thumb1_unexpanded_epilogue): ...this.
21843 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
21844 (thumb1_unexpanded_epilogue): ...this.
21845 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
21846 (thumb1_unexpanded_epilogue): ...this.
21848 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
21850 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
21851 comparing enumeration values. Update comments.
21853 2012-05-01 Alan Modra <amodra@gmail.com>
21856 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
21857 load_cr_save, add_crlr_cfa_restore): New functions.
21858 (rs6000_restore_saved_cr): Rename to..
21859 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
21860 (rs6000_emit_epilogue): Use new functions. Adjust condition
21861 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
21862 regs when using out-of-line restore only when shrink wrapping.
21864 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
21866 PR middle-end/53136
21867 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
21868 calls to cgraph_node_name in xstrdup.
21869 (ipa_make_edge_direct_to_target): Ditto.
21870 * cgraph.c (dump_cgraph_node): Ditto.
21871 * tree-sra.c (convert_callers_for_node): Ditto.
21872 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
21873 * ipa-cp.c (perhaps_add_new_callers): Ditto.
21874 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
21875 (cgraph_materialize_all_clones): Ditto.
21876 * ipa-inline.c (report_inline_failed_reason): Ditto.
21877 (want_early_inline_function_p): Ditto.
21878 (edge_badness): Ditto.
21879 (update_edge_key): Ditto.
21880 (flatten_function): Ditto.
21881 (ipa_inline): Ditto.
21882 (inline_always_inline_functions): Ditto.
21883 (early_inline_small_functions): Ditto.
21885 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
21888 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
21889 constraints 0 and 1.
21891 012-04-30 Jan Hubicka <jh@suse.cz>
21893 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
21894 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
21895 (cgraph_add_to_same_comdat_group): Remove.
21896 (cgraph_add_asm_node): Move to cgraphunit.c.
21897 (cgraph_make_decl_local): Move to symtab.c
21898 (cgraph_make_node_local_1): Update.
21899 (cgraph_can_remove_if_no_direct_calls_and): Update.
21900 (used_from_object_file_p): Update.
21901 (resolution_used_from_other_file_p): Move to symtab.c
21902 (cgraph_used_from_object_file_p): move to symtab.c
21903 (verify_cgraph_node): Verify same comdat groups.
21904 * cgraph.h (cgraph_asm_node): Rename to ...
21905 (asm_node): ... this one.
21906 (cgraph_asm_nodes): Rename to ...
21907 (asm_nodes): ... this one.
21908 (symtab_add_to_same_comdat_group): New function.
21909 (symtab_dissolve_same_comdat_group_list): New function.
21910 (symtab_used_from_object_file_p): Declare.
21911 (symtab_make_decl_local): Declare.
21912 (cgraph_add_to_same_comdat_group): Remove.
21913 (cgraph_add_asm_node): Remove.
21914 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
21916 (cgraph_finalize_compilation_unit): Rename to ...
21917 (finalize_compilation_unit): ... this one.
21918 (cgraph_optimize): Rename to ....
21919 (compile): ... this one.
21920 (add_asm_node): Declare.
21921 (fixup_same_cpp_alias_visibility): Declare.
21922 (cgraph_make_decl_local): Remove.
21923 (varpool_assemble_pending_decls): Rename to ...
21924 (varpool_output_variables): ... this one.
21925 (varpool_remove_unreferenced_decls): Remove.
21926 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
21927 (preserve_function_body_p): Make static.
21928 * toplev.c (compile_file): Update comments; update.
21929 * cgraphunit.c: Update comments.
21930 (cgraph_expand_all_functions): Rename to ...
21931 (expand_all_functions): ... this one; update.
21932 (cgraph_mark_functions_to_output): Rename to ...
21933 (mark_functions_to_output): ... this one; cleanup.
21934 (cgraph_output_pending_asms): Remove prototype.
21935 (asm_nodes, asm_last_node): New static vars.
21936 (cgraph_process_new_functions): Update.
21937 (cgraph_reset_node): Cleanup; add comment.
21938 (cgraph_add_new_function): Update.
21939 (cgraph_output_pending_asms): Rename to ...
21940 (output_asm_statements): ... this one.
21941 (add_asm_node): New function.
21942 (fixup_same_cpp_alias_visibility): New function based on code
21943 in cgraph_analyze_function.
21944 (cgraph_analyze_function): Use it.
21945 (cgraph_order_sort): Update.
21946 (cgraph_output_in_order): Update.
21947 (cgraph_function_versioning): Update.
21948 (cgraph_optimize): Rename to ...
21949 (compile): ... this one; initialize streamer hooks here.
21950 (cgraph_finalize_compilation_unit): Rename to ...
21951 (finalize_compilation_unit): ... this one; do not initialize streamer
21953 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
21954 * dwarf2out.c: Update ocmment.
21955 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
21956 * method.c (use_thunk): Likewise.
21957 * semantics.c (maybe_add_lambda_conv_op): Likewise.
21958 * decl2.c (maybe_emit_vtables): Likewise.
21959 (cp_write_global_declarations): Use finalize_compilation_unit.
21960 * parser.c (cp_parser_asm_definition): Use add_asm_node.
21961 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
21962 * c-decl.c (c_write_global_declarations): Use
21963 finalize_compilation_unit.
21964 * langhooks.c (write_global_declarations): Update.
21965 * ipa.c (cgraph_externally_visible_p): Update.
21966 (dissolve_same_comdat_group_list): Remove.
21967 (function_and_variable_visibility): Update.
21968 * symtab.c: Inlcude lto-streamer.h and rtl.h
21969 (ld_plugin_symbol_resolution_names): New.
21970 (symtab_add_to_same_comdat_group): New.
21971 (symtab_dissolve_same_comdat_group_list): New.
21972 (resolution_used_from_other_file_p): Move here from cgraph.c
21973 (symtab_used_from_object_file_p): New.
21974 (symtab_make_decl_local): New.
21975 * passes.c (register_pass): Update comments.
21976 * c-parser.c (c_parser_asm_definition): Update.
21977 * varpool.c (varpool_analyze_node): Use
21978 fixup_same_cpp_alias_visibility.
21979 (varpool_remove_unreferenced_decls): Make static.
21980 (varpool_assemble_pending_decls): Rename to ...
21981 (varpool_output_variables): ... this one; call
21982 varpool_remove_unreferenced_decls.
21983 (varpool_used_from_object_file_p): Remove.
21985 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
21988 * c-typeck.c (build_array_ref): Call
21989 convert_vector_to_pointer_for_subscript.
21990 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
21992 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
21994 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
21995 to compile-time "mode == <MODE>mode" checks.
21996 (and splitter): Ditto.
21998 2012-04-30 Richard Henderson <rth@redhat.com>
22000 * config/arm/arm.md (UNSPEC_LL): New.
22001 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
22002 (arm_load_exclusivedi): Use %H0.
22004 2012-04-30 Jason Merrill <jason@redhat.com>
22006 * dwarf2out.c (comdat_symbol_id): Add const.
22007 (union die_symbol_or_type_node): Add const to die_symbol.
22008 (output_die_symbol, output_die, output_comp_unit): Adjust.
22010 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
22012 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
22013 * config/arm/neon.md (negdi2_neon): New insn.
22014 Also add splitters for core and NEON registers.
22016 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
22018 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
22019 (arm_print_operand): Add 'x' format.
22020 * config/arm/constraints.md (Dn): Allow const_int.
22021 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
22022 Use 'x' format to print constants.
22023 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
22024 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
22026 (movdi_vfp_cortexa8): Likewise.
22028 2012-04-30 Ian Bolton <ian.bolton@arm.com>
22029 Sameera Deshpande <sameera.deshpande@arm.com>
22030 Greta Yorsh <greta.yorsh@arm.com>
22032 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
22033 * config/arm/arm.c (ldm_stm_operation_p): New function.
22034 * config/arm/predicates.md (load_multiple_operation): Update predicate.
22035 (store_multiple_operation): Likewise.
22037 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
22038 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
22039 * config/arm/predicates.md (load_multiple_operation): Add arguments.
22040 (store_multiple_operation): Likewise.
22042 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
22044 * config/i386/i386.md (and<mode>3): Expand masking operations with
22045 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
22046 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
22048 2012-04-30 Dodji Seketeli <dodji@redhat.com>
22050 Add -Wvarargs option
22051 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
22052 argument for the various warning_at calls.
22053 * docs/invoke.texi: Update the documentation.
22055 2012-04-30 Dodji Seketeli <dodji@redhat.com>
22057 Switch -ftrack-macro-expansion=2 on by default.
22058 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
22061 Fix va_start related location
22062 * builtins.c (fold_builtin_next_arg): Unwinds to the first
22063 location in real source code.
22065 Make conversion warnings work on NULL with -ftrack-macro-expansion
22066 * input.h (expansion_point_location_if_in_system_header): Declare
22068 * input.c (expansion_point_location_if_in_system_header): Define it.
22070 Fix -Wuninitialized for -ftrack-macro-expansion
22071 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
22072 declaration. Use linemap_location_before_p for source locations.
22074 Strip "<built-in>" loc from displayed expansion context
22075 * input.c (expand_location_1): When expanding to spelling location
22076 in a context of a macro expansion, skip reserved system header
22077 locations. Update comments. * tree-diagnostic.c
22078 (maybe_unwind_expanded_macro_loc): Likewise.
22080 Make expand_location resolve to locus in main source file
22081 * input.c (expand_location_1): New. Takes a parameter to choose
22082 whether to resolve the location to spelling or expansion point.
22083 Was factorized from ...
22084 (expand_location): ... here.
22085 (expand_location_to_spelling_point): New. Implemented in terms of
22087 * diagnostic.c (diagnostic_build_prefix): Use the new
22088 expand_location_to_spelling_point instead of expand_location.
22090 Fix PCH crash on GTYed pointer-to-scalar field of a struct
22091 * gengtype.c (write_types_process_field): Force second argument of
22092 the call to the PCH object hierarchy walker to be 'x'.
22094 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
22096 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
22097 predicate to discriminate types.
22099 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
22101 * doc/invoke.texi (Wmissing-format-attribute): Document as an
22102 alias of Wsuggest-attribute=format.
22103 * c-typeck.c (convert_for_assignment): Replace
22104 Wmissing-format-attribute with Wsuggest-attribute=format.
22105 (digest_init): Likewise.
22107 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
22109 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
22110 * common.opt (Wmissing-noreturn): Alias of
22111 -Wsuggest-attribute=noreturn.
22113 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
22116 * config/cris/cris.md (andqu): New peephole2.
22117 (andu): Tweak head comment.
22119 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22120 Steven Bosscher <steven@gcc.gnu.org>
22121 Maxim Kuvyrkov <maxim@codesourcery.com>
22123 PR tree-optimization/38785
22124 * common.opt (ftree-partial-pre): New option.
22125 * doc/invoke.texi: Document it.
22126 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
22127 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
22128 benefit speed path.
22129 (execute_pre): Use flag_tree_partial_pre.
22131 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22134 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
22137 2012-04-27 Ollie Wild <aaw@google.com>
22139 * doc/invoke.texi (Wliteral-suffix): Document new option.
22141 2012-04-27 Tom Tromey <tromey@redhat.com>
22143 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
22144 (dwarf_tag_name): Use get_DW_TAG_name.
22145 (dwarf_attr_name): Use get_DW_AT_name.
22146 (dwarf_form_name): Use get_DW_FORM_name.
22147 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
22149 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
22151 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
22152 arguments are -1 and 0, by negating the result of the conditional.
22154 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
22157 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
22159 2012-04-27 Richard Guenther <rguenther@suse.de>
22161 * tree-flow.h (is_hidden_global_store): Remove.
22162 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
22163 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
22164 (stmt_may_clobber_global_p): Likewise.
22165 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
22166 (stmt_may_clobber_global_p): Likewise.
22167 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
22168 stmt_may_clobber_global_p.
22169 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
22171 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
22173 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
22176 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
22177 reorganize some fields and update comments. Rename bit_test_uniq
22178 and bit_test_count to uniq resp. count. Remove bit_test_bb.
22179 (collect_switch_conv_info): New function, collects info about a
22180 GIMPLE_SWITCH into a struct switch_conv_info.
22181 (check_range): Simplify to use pre-recorded info. Fix think-o in
22182 range-branch ratio check.
22183 (check_process_case): Remove function.
22184 (check_all_empty_except_final): New function, verifies that all
22185 non-final basic blocks are empty.
22186 (process_switch): Simplify to use pre-recorded info. Call
22187 collect_switch_conv_info to do that. Assert that degenerate switch
22188 statements have been cleaned up.
22190 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
22192 PR middle-end/27139
22193 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
22195 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
22198 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
22200 2012-04-27 Tom de Vries <tom@codesourcery.com>
22202 PR tree-optimization/51879
22203 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
22204 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
22206 (defs_to_varying): ... here. Don't set use_processed.
22207 (visit_reference_op_call): Handle gimple_vdef.
22208 Handle case that lhs is NULL_TREE.
22209 (visit_use): Use mark_use_processed. Handle calls with side-effect
22210 using visit_reference_op_call.
22212 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
22214 * sched-deps.c (fixup_sched_groups): Rename to...
22215 (chain_to_prev_insn): ...this.
22216 (chain_to_prev_insn_p): New function.
22217 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
22219 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
22221 * sched-int.h (_haifa_insn_data): Move priority_status.
22223 (INSN_MODEL_INDEX): New macro.
22224 * haifa-sched.c (insn_delay): New function.
22225 (sched_regno_pressure_class): Update commentary.
22226 (mark_regno_birth_or_death): Pass the liveness bitmap and
22227 pressure array as arguments, instead of using curr_reg_live and
22228 curr_reg_pressure. Only update the pressure if the bit in the
22229 liveness set has changed.
22230 (initiate_reg_pressure_info): Always trust the live-in set for
22231 SCHED_PRESSURE_MODEL.
22232 (initiate_bb_reg_pressure_info): Update call to
22233 mark_regno_birth_or_death.
22234 (dep_list_size): Take the list as argument.
22235 (calculate_reg_deaths): New function, extracted from...
22236 (setup_insn_reg_pressure_info): ...here.
22237 (MODEL_BAR): New macro.
22238 (model_pressure_data, model_insn_info, model_pressure_limit)
22239 (model_pressure_group): New structures.
22240 (model_schedule, model_worklist, model_insns, model_num_insns)
22241 (model_curr_point, model_before_pressure, model_next_priority):
22243 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
22244 (MODEL_INSN_INFO, MODEL_INSN): New macros.
22245 (model_index, model_update_limit_points_in_group): New functions.
22246 (model_update_limit_points, model_last_use_except): Likewise.
22247 (model_start_update_pressure, model_update_pressure): Likewise.
22248 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
22249 (model_excess_cost, model_dump_pressure_points): Likewise.
22250 (model_set_excess_costs): Likewise.
22251 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
22252 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
22253 schedule as an alternative tie-breaker. Update the call to
22255 (ready_sort): Call model_set_excess_costs.
22256 (update_register_pressure): Update call to mark_regno_birth_or_death.
22257 Rely on that function to check liveness rather than doing it here.
22258 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
22259 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
22260 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
22261 (model_record_pressure, model_record_pressures): New functions.
22262 (model_record_final_pressures, model_add_successors_to_worklist)
22263 (model_promote_predecessors, model_choose_insn): Likewise.
22264 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
22265 (model_start_schedule, model_finalize_pressure_group): Likewise.
22266 (model_end_schedule): Likewise.
22267 (schedule_insn): Say when we're scheduling the next instruction
22268 in the model schedule.
22269 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
22270 (queue_to_ready): Do not add instructions that are
22271 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
22272 Always allow the next instruction in the model schedule to be added.
22273 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
22274 and delay for SCHED_PRESSURE_MODEL too.
22275 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
22276 SCHED_PRIORITY_MODEL, but also take the DFA into account.
22277 (schedule_block): Call model_start_schedule and model_end_schedule.
22278 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
22279 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
22280 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
22282 (sched_finish): Update accordingly.
22283 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
22284 to SCHED_PRESSURE_MODEL.
22285 (add_jump_dependencies): Update call to dep_list_size.
22286 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
22287 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
22288 to SCHED_PRESSURE_MODEL.
22289 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
22290 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
22291 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
22292 handling to SCHED_PRESSURE_MODEL.
22294 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
22296 * common.opt (fsched-pressure-algorithm=): New option.
22297 * flag-types.h (sched_pressure_algorithm): New enum.
22298 * sched-int.h (sched_pressure_p): Replace with...
22299 (sched_pressure): ...this new variable.
22300 * haifa-sched.c (sched_pressure_p): Replace with...
22301 (sched_pressure): ...this new variable.
22302 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
22303 (update_reg_and_insn_max_reg_pressure, schedule_insn)
22304 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
22305 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
22306 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22307 (sched_analyze_insn): Likewise.
22308 * sched-rgn.c (schedule_region): Likewise.
22309 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
22311 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
22313 PR middle-end/52997
22314 * ira.c (find_moveable_pseudos): Call resize_reg_info.
22316 PR middle-end/52940
22317 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
22318 * expr.c (convert_move): Honor unsignedp when extending partial int
22320 * genmodes.c (complete_mode): Don't clear component field of partial
22322 (emit_mode_inner): Don't emit it however.
22323 (calc_wider_mode): Partial int modes widen to their component.
22325 2012-04-26 David S. Miller <davem@davemloft.net>
22327 * config/sparc/niagara4.md: New file.
22328 * config/sparc/sparc.md: Include it.
22329 * config/sparc/sparc.c (niagara4_costs): New processor costs.
22330 (sparc_option_override): Use it.
22331 (sparc_use_sched_lookahead): Return 2 for niagara4.
22332 (sparc_issue_rate): Likewise.
22334 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
22335 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
22336 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
22337 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
22338 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
22339 alignaddrldi_vis): Set type to gsr.
22340 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
22341 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
22342 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
22343 v<vis3_shift_patname><mode>3, fmean16_vis,
22344 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
22345 fucmp<code>8<P:mode>_vis): Set type to fga.
22346 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
22347 * config/sparc/niagara.md: Likewise.
22348 * config/sparc/niagara2.md: Likewise.
22349 * config/sparc/ultra3.md: Likewise, and fix type matching for
22350 us3_ialuX reservation.
22352 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22354 * reload.c (find_reloads): Change the loop nesting when trying an
22355 alternative with swapped operands.
22357 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
22359 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
22360 comment. Delete unused parameter first_exp_point_map.
22361 (virt_loc_aware_diagnostic_finalizer): Update call.
22363 2012-04-26 Michael Hope <michael.hope@linaro.org>
22364 Richard Earnshaw <rearnsha@arm.com>
22366 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
22367 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
22368 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
22369 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
22371 2012-04-25 Sriraman Tallam <tmsriram@google.com>
22373 * doc/extend.texi: Document avx2 support.
22374 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
22376 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
22379 * config/cris/cris.md ("*andhi_lowpart_v32")
22380 ("*andqi_lowpart_v32"): Change first input-only operand from
22381 a (match_operand ...) to (match_dup 0). Drop alternatives with
22382 const_int-matching constraints for redundancy.
22383 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
22384 three-operand alternative.
22386 2012-04-25 Jakub Jelinek <jakub@redhat.com>
22389 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
22390 instead expand it as zero extension.
22392 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
22395 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
22397 2012-04-25 Jakub Jelinek <jakub@redhat.com>
22399 * common.opt (flag_debug_types_section): Default to 0.
22400 (dwarf_version): Default to 4.
22401 (dwarf_record_gcc_switches): Default to 1.
22402 (dwarf_strict): Default to 0.
22403 * toplev.c (process_options): Don't handle dwarf_strict
22404 or dwarf_version here.
22405 * config/vxworks.c (vxworks_override_options): Don't
22406 test whether dwarf_strict or dwarf_version are negative,
22407 instead test !global_options_set.x_dwarf_*.
22408 * config/darwin.c (darwin_override_options): Default to
22410 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
22411 and -fno-debug-types-section are now the default.
22413 2012-04-25 Jan Hubicka <jh@suse.cz>
22415 * cgraphunit.c: Update toplevel comment.
22416 (tree_rest_of_compilation): Merge into cgraph_expand_function.
22417 (cgraph_analyze_function): Make static.
22418 (cgraph_decide_is_function_needed): Make static.
22419 (cgraph_add_new_function): Use expand_function instead of
22420 rest_of_compilation.
22421 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
22422 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
22424 (cgraph_inline_p): Remove.
22425 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
22426 (init_cgraph): Add comment.
22427 * cgraphbuild.c (record_reference, mark_address, mark_load,
22428 mark_store): Do not call analyze_expr hook.
22429 * cgraph.c: Update toplevel comment.
22430 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
22431 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
22432 Move fere from cgraphunit.c
22433 (cgraph_mark_force_output_node): Move to cgraph.h
22434 * cgraph.h: Reorder so the comments match the function placement.
22435 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
22436 (cgraph_mark_force_output_node): Move here from cgraph.c
22437 * tree.c (free_lang_data): Do not clear analyze_expr hook.
22438 * ipa-inline-transform.c (preserve_function_body_p): New function.
22439 (inline_transform): Update.
22440 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
22441 * langhooks.h (lang_hooks_for_callgraph): Remove.
22442 (lang_hooks): Remove callgraph.
22443 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
22444 * varpool.c: Remove out of date comment.
22445 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
22446 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
22448 2012-04-25 Jan Hubicka <jh@suse.cz>
22450 PR middle-end/53089
22451 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
22452 forward declaration.
22453 (cgraph_finalize_function): Finalize them here.
22454 * symtab.c (dump_symtab): Dump ctors and dtors.
22456 2012-04-25 Jakub Jelinek <jakub@redhat.com>
22458 PR middle-end/52979
22459 * stor-layout.c (get_best_mode): Don't return mode with bitsize
22460 larger than maxbits. Don't compute maxbits modulo align.
22461 Also check that unit bytes long store at bitpos / unit * unit
22462 doesn't affect bits beyond bitregion_end.
22463 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
22464 would not fit into bitregion_start ... bitregion_end + 1 bit region.
22465 (store_split_bit_field): Decrease unit close to end of bitregion_end
22466 if access is restricted in order to avoid mutual recursion.
22468 PR tree-optimization/53058
22469 * double-int.h (double_int_max_value, double_int_min_value): New
22471 * double-int.c (double_int_max_value, double_int_min_value): New
22473 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
22474 or GT_EXPR with double_int_max_value instead of double_int_mask.
22476 2012-04-25 Richard Guenther <rguenther@suse.de>
22478 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22479 * tree-vect-loop.c (vect_transform_loop): Adjust.
22480 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
22481 the maximum number of iterations for the epilogue loop.
22482 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
22484 2012-04-25 Jakub Jelinek <jakub@redhat.com>
22487 * c-typeck.c (set_nonincremental_init,
22488 set_nonincremental_init_from_string): Pass true instead of false
22489 as IMPLICIT to add_pending_init.
22491 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
22493 * c-typeck.c (pop_init_level): Improve diagnostics.
22495 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
22497 * compare-elim.c (try_eliminate_compare): Also handle operands with
22498 implicit extensions.
22500 2012-04-25 Alan Modra <amodra@gmail.com>
22502 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
22503 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
22504 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
22505 (no_global_regs_above): Delete.
22506 (no_global_regs): New function.
22507 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
22508 value for load multiple test.
22509 (savres_routine_syms): Increase size.
22510 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
22511 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
22512 rather than a number of boolean flags. Update all callers.
22513 (rs6000_savres_routine_name): Generate vector save/restore names.
22514 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
22515 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
22516 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
22517 and using_store_multiple. Expand uses. Don't always use r11 as
22518 frame reg when needed for out-of-line saves. Set up initial offset
22519 for out-of-line vector saves when buying stack frame. Handle pointer
22520 reg setup for out-of-line fp save. Emit call to out-of-line vector
22521 save function. Choose r11 or r12 for vrsave reg when available for
22523 (rs6000_output_function_prologue): Don't emit .extern for ELF.
22524 (rs6000_emit_epilogue): Choose a better frame reg when restoring
22525 from back-chain to suit out-of-line vector restore functions. Emit
22526 call to out-of-line vector restore function. Adjust register used
22527 for cr restore. Tweak pointer register setup for gpr restore.
22528 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
22530 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
22531 (V_SAVE_INLINE): Define.
22532 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
22534 2012-04-25 Alan Modra <amodra@gmail.com>
22536 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
22537 out-of-line save/restore for large frames. Don't disable
22538 out-of-line saves on ABI_AIX when using static chain reg.
22539 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
22540 clobber static chain reg, and tweak for out-of-line gpr saves
22543 2012-04-25 Alan Modra <amodra@gmail.com>
22545 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
22546 (rs6000_emit_prologue): Use the above to catch register overlap.
22548 2012-04-25 Alan Modra <amodra@gmail.com>
22550 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
22551 decl. Move logic selecting update reg to callers. Update all callers.
22552 (rs6000_emit_allocate_stack): Add copy_off param.
22553 (emit_frame_save): Don't handle reg+reg addressing.
22554 (ptr_regno_for_savres): New function, extracted from..
22555 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
22556 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
22557 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
22558 frame offset adjustment for out-of-line save with copy from sp.
22559 Simplify condition controlling whether cr is saved early or
22560 late. Use ptr_regno_for_savres to verify correct reg is set
22561 up for out-of-line saves. Pass the actual pointer reg used to
22562 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
22563 function. Rearrange spe vars so code is similar to that
22564 elsewhere in this function. Don't update frame_off when spe
22565 save code will restore r11. Use emit_frame_save for spe and
22566 gpr saves. Consolidate darwin out-of-line gpr setup with that
22567 for other abis. Don't assume frame_offset is zero and frame
22568 reg is sp when setting up altivec reg saves, and calculate
22569 exact offset requirement.
22570 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
22571 spe restore code. Consolidate darwin out-of-line gpr setup
22572 with that for other abis.
22574 2012-04-25 Alan Modra <amodra@gmail.com>
22576 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
22577 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
22579 (emit_frame_save): Delete frame_ptr param. Rename total_size to
22581 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
22582 and emit_frame_save calls. Cope with possibly missing note.
22584 2012-04-24 Sriraman Tallam <tmsriram@google.com>
22586 * config/i386/i386.c (build_processor_model_struct): New function.
22587 (make_var_decl): New function.
22588 (fold_builtin_cpu): New function.
22589 (ix86_fold_builtin): New function.
22590 (make_cpu_type_builtin): New function.
22591 (ix86_init_platform_type_builtins): New function.
22592 (ix86_expand_builtin): Expand new builtins by folding them.
22593 (ix86_init_builtins): Make new builtins to detect CPU type.
22594 (TARGET_FOLD_BUILTIN): New macro.
22595 (IX86_BUILTIN_CPU_INIT): New enum value.
22596 (IX86_BUILTIN_CPU_IS): New enum value.
22597 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
22598 * config/i386/i386-builtin-types.def: New function type.
22599 * doc/extend.texi: Document builtins.
22601 2012-04-24 Olivier Hainque <hainque@adacore.com>
22603 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
22604 * toplev.c (process_options): Default to dwarf_version 2.
22605 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
22606 and dwarf_version 2.
22608 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
22610 * tree-pretty-print.h (default_tree_printer): Do not declare.
22611 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
22613 (default_tree_diagnostic_starter): Make static.
22614 (default_tree_printer): Move to here. Make static.
22615 (tree_diagnostics_defaults): New.
22616 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
22617 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
22618 * toplev.c: Do not include tree-pass.h.
22619 (default_tree_printer): Move from here.
22620 (general_init): Use tree_diagnostics_defaults.
22622 2012-04-24 Chao-ying Fu <fu@mips.com>
22624 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
22625 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
22626 * config/mips/gnu-user.h
22627 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
22628 (GNU_USER_TARGET_LINK_SPEC): New define.
22629 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
22630 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
22631 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
22632 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
22633 GNU_USER_TARGET_ENDFILE_SPEC.
22634 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
22635 (GNU_USER_TARGET_LINK_SPEC): New define.
22636 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
22637 * config/mips/linux-common.h: New file.
22639 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22642 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
22643 (altivec_build_resolved_builtin): Call fully_fold_convert.
22645 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
22648 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
22650 2012-04-24 Richard Guenther <rguenther@suse.de>
22652 PR tree-optimization/53085
22653 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
22656 2012-04-24 Richard Guenther <rguenther@suse.de>
22658 * tree-if-conv.c (main_tree_if_conversion): Move bb under
22661 2012-04-24 Jim Meyering <meyering@redhat.com>
22663 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
22664 absence of an define_enum call.
22666 2012-04-24 Richard Guenther <rguenther@suse.de>
22668 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
22669 the epilogue loop is not re-used as unvectorized version
22670 record the its maximum number of iterations.
22672 2012-04-24 Andrew Pinski <apinski@cavium.com>
22674 * tree-ssa-forwprop.c (simplify_bitwise_binary):
22675 Don't directly use def1/def2.
22677 2012-04-24 Richard Guenther <rguenther@suse.de>
22679 PR tree-optimization/53098
22680 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
22683 2012-04-24 Andrew Pinski <apinski@cavium.com>
22686 * tree-ssa-forwprop.c (defcodefor_name): New function.
22687 (simplify_bitwise_binary): Use defcodefor_name instead of manually
22688 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
22689 Simplify "(~X | Y) & X" to "X & Y" and
22690 "(~X & Y) | X" to "X | Y".
22692 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22694 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
22695 validate_change to add clobbers if IN_GROUP is nonzero.
22696 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
22697 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
22699 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
22701 * config/s390/s390.c (insn_invalid_p): Likewise.
22703 2012-04-24 Jakub Jelinek <jakub@redhat.com>
22705 PR middle-end/53084
22706 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
22707 (output_addressed_constants): Likewise.
22709 PR middle-end/52999
22710 * varasm.c (get_section): Don't ICE for section conflicts with
22711 built-in section kinds.
22713 2012-04-23 DJ Delorie <dj@redhat.com>
22715 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
22716 (LIBSTDCXX): Change to CPP2.
22718 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
22721 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
22724 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
22726 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
22727 (*addsi_2_zext): Ditto.
22728 (*add<mode>_3): Ditto.
22729 (*addsi_3_zext): Ditto.
22730 (*add<mode>_5): Ditto.
22732 2012-04-23 Andrew Pinski <apinski@cavium.com>
22734 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
22735 (C & B) to (A OP0) & B.
22737 2012-04-23 Martin Jambor <mjambor@suse.cz>
22739 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
22740 temporaries created for a bitfield (reverting revision 122014).
22742 2012-04-23 Richard Guenther <rguenther@suse.de>
22744 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
22745 the condition using is_gimple_condexpr and avoid the not necessary
22747 (set_prologue_iterations): Likewise.
22748 (vect_loop_versioning): Likewise.
22750 2012-04-23 Richard Guenther <rguenther@suse.de>
22752 PR tree-optimization/53070
22753 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
22754 (main_tree_if_conversion): Verify we succeeded in that.
22756 2012-04-23 Jan Hubicka <jh@suse.cz>
22758 * lto-symtab.c (lto_cgraph_replace_node): Do not call
22759 mark_reahcable_node.
22760 * cgraph.c (cgraph_remove_node): Do not clear reachable.
22761 (cgraph_mark_reachable_node): Remove.
22762 (cgraph_mark_force_output_node): Do not set reachable.
22763 (dump_cgraph_node): Do not dump reachable.
22764 (cgraph_create_virtual_clone): Do not set reachable.
22765 * cgraph.h (cgraph_node): Remove reachable flag.
22766 (varpool_node): Remove reachable flag.
22767 (cgraph_mark_if_needed): Remove.
22768 (cgraph_mark_reachable_node): Remove.
22769 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
22770 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
22772 (cgraph_add_new_function): Likewise.
22773 (cgraph_mark_if_needed): Remove.
22774 (cgraph_analyze_function): Do not set target as reachable.
22775 (process_function_and_variable_attributes): Do not care about
22777 (cgraph_analyze_functions): Do not set reachable flags.
22778 (cgraph_mark_functions_to_output): Do not check reachability.
22779 (cgraph_copy_node_for_versioning): Do not set reachable flag.
22780 (dbxout_expand_expr): Update.
22781 * c-decl.c (merge_decls): Do not track changed externs.
22782 * ipa.c: Include pointer-set.h
22783 (enqueue_cgraph_node): Use reachable pointer set.
22784 (process_references): Likewise.
22785 (cgraph_remove_unreachable_nodes): Likewise.
22786 (whole_program_function_and_variable_visibility): Do not recompute
22788 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
22790 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
22792 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
22794 2012-04-23 Richard Guenther <rguenther@suse.de>
22797 * c-typeck.c (build_binary_op): Fix typo.
22799 2012-04-23 Jakub Jelinek <jakub@redhat.com>
22801 PR tree-optimizations/52891
22802 * tree-vect-patterns.c (adjust_bool_pattern): Use
22803 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
22804 but with non-standard precision.
22806 2012-04-22 Jan Hubicka <jh@suse.cz>
22808 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
22811 2012-04-22 Jan Hubicka <jh@suse.cz>
22813 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
22814 * cgraphbuild.c (record_reference, record_type_list, mark_address,
22815 mark_load, mark_store): Do not mark varpool nodes as needed.
22816 * cgraph.c (cgraph_new_nodes): Remove.
22817 (cgraph_create_function_alias): Do not mark nodes as reachable.
22818 (cgraph_add_thunk): Likewise.
22819 (cgraph_mark_reachable_node): Do not manage the queue.
22820 * cgraph.h (cgraph_node): Remove next_needed.
22821 (varpool_nodes_queue): Remove next_needed and prev_needed.
22822 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
22823 (cgraph_new_nodes): Declare.
22824 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
22825 (varpool_analyze_pending_decls): Remove.
22826 (varpool_analyze_node): New.
22827 (varpool_mark_needed_node): Remove.
22828 (varpool_first_variable, varpool_next_variable): New inlines.
22829 (varpool_first_static_initializer, varpool_next_static_initializer):
22831 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
22832 (varpool_first_defined_variable): New inline.
22833 (varpool_next_defined_variable): New inline
22834 (FOR_EACH_VARIABLE): Reimplement.
22835 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
22836 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
22838 * cgraphunit.c (cgraph_new_nodes): Declare here.
22839 (enqueue_node): New function.
22840 (cgraph_process_new_functions): update for new
22841 node set; when constructing cgraph enqueue node for processing.
22842 (cgraph_add_new_function): Use new node set.
22843 (process_function_and_variable_attributes): Do not set varpool needed
22845 (referred_to_p): New function.
22846 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
22847 when varpool is in construction.
22848 (cgraph_analyze_functions): Rewrite.
22849 (cgraph_expand_all_functions): Update.
22850 (cgraph_output_in_order): Do not analyze pending decls; do not set
22852 (cgraph_optimize): Do not analyze pending decls.
22853 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
22854 in other partition; do not mark node as needed.
22855 * dwarf2out.c (reference_to_unused): Use analyzed flag.
22856 (premark_types_used_by_global_vars_helper): Likewise.
22857 * ipa.c (process_references): Do not call varpool_mark_needed_node.
22858 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
22860 (function_and_variable_visibility): Do not mark node as needed.
22861 (whole_program_function_and_variable_visibility): Likewise.
22862 * Makefile.in (gt-varpool.h): No longer needed.
22863 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
22864 (ipa_write_summaries): Do not use needed flag.
22865 * varpool.c: Do not include gt-varpool.h
22866 (x_varpool_nodes_queue, x_varpool_last_needed_node,
22867 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
22868 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
22870 (varpool_remove_node): Do not update the lists.
22871 (dump_varpool_node): Do not dump needed flag.
22872 (varpool_enqueue_needed_node): Remove.
22873 (varpool_mark_needed_node): Remove.
22874 (varpool_reset_queue): Remove.
22875 (varpool_finalize_decl): Move to cgraphunit.c
22876 (varpool_analyze_node): New functions based on former
22877 varpool_analyze_pending_decls.
22878 (varpool_analyze_pending_decls): Remove.
22879 (varpool_assemble_decl): Do not update the lists.
22880 (enqueue_node): New function.
22881 (varpool_remove_unreferenced_decls): Rewrite.
22882 (varpool_empty_needed_queue): Remove.
22883 (add_new_static_var): Do not mark node as needed.
22884 (varpool_create_variable_alias): Handle expansion state
22886 * except.c (output_ttype): Do not mark node as needed.
22887 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
22888 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
22890 * tree-switch-conversion.c (build_one_array): Likewise.
22892 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
22895 * doc/invoke.texi (pedantic): Rename to Wpedantic.
22896 * common.opt (Wpedantic): New.
22897 (pedantic): Alias Wpedantic.
22898 * diagnostic.c (warning_at): Likewise.
22899 * c-decl.c (diagnose_mismatched_decls): Likewise.
22900 (build_array_declarator): Likewise.
22901 (mark_forward_parm_decls):
22902 (check_bitfield_type_and_width): Likewise.
22903 (grokdeclarator): Likewise.
22904 (grokfield): Likewise.
22905 (finish_struct): Likewise.
22906 (build_enumerator): Likewise.
22907 (store_parm_decls_oldstyle): Likewise.
22908 (declspecs_add_qual): Likewise.
22909 (declspecs_add_type): Likewise.
22910 (finish_declspecs): Likewise.
22911 * c-typeck.c (composite_type): Likewise.
22912 (comp_target_types): Likewise.
22913 (build_array_ref): Likewise.
22914 (pointer_diff): Likewise.
22915 (build_unary_op): Likewise.
22916 (build_conditional_expr): Likewise.
22917 (build_c_cast): Likewise.
22918 (convert_for_assignment): Likewise.
22919 (maybe_warn_string_init): Likewise.
22920 (digest_init): Likewise.
22921 (pop_init_level): Likewise.
22922 (set_init_index): Likewise.
22923 (c_finish_goto_label): Likewise.
22924 (c_finish_return): Likewise.
22925 (do_case): Likewise.
22926 (build_binary_op): Likewise.
22927 * c-parser.c (static): Likewise.
22928 (c_parser_external_declaration): Likewise.
22929 (c_parser_declaration_or_fndef): Likewise.
22930 (c_parser_static_assert_declaration_no_se): Likewise.
22931 (c_parser_enum_specifier): Likewise.
22932 (c_parser_struct_or_union_specifier): Likewise.
22933 (c_parser_struct_declaration): Likewise.
22934 (c_parser_alignas_specifier): Likewise.
22935 (c_parser_braced_init): Likewise.
22936 (c_parser_initelt): Likewise.
22937 (c_parser_compound_statement_nostart): Likewise.
22938 (c_parser_conditional_expression): Likewise.
22939 (c_parser_alignof_expression): Likewise.
22940 (c_parser_postfix_expression): Likewise.
22941 (c_parser_postfix_expression_after_paren_): Likewise.
22942 (c_parser_objc_class_instance_variables): Likewise.
22943 (c_parser_objc_method_definition): Likewise.
22944 (c_parser_objc_methodprotolist): Likewise.
22946 2012-04-22 Ian Lance Taylor <iant@google.com>
22948 * godump.c (go_output_typedef): Dump size of structs.
22950 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
22952 Correcting transform_to_exit_first_loop + fix to PR46886
22953 * tree-parloops.c (transform_to_exit_first_loop): Remove
22954 setting of number of iterations according to the loop pattern.
22955 Duplicate from entry to exit->src instead of loop->latch.
22956 (pallelize_loops): Remove the condition preventing do-while loops.
22957 * tree-cfg.c (bool bb_in_region_p): New.
22958 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
22959 Adjust redirection of the duplicated iteration.
22961 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
22964 * rtl.def (ADDRESS): Use "i" rather than "w".
22965 * rtl.h (find_base_term): Delete.
22966 (may_be_sp_based_p): Declare.
22967 * rtl.c (rtx_code_size): Remove ADDRESS special case.
22968 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
22969 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
22970 * alias.c: ...here.
22971 (find_base_term): Make static.
22972 (may_be_sp_based_p): New function.
22973 * dse.c (record_store): Use it.
22974 * store-motion.c (store_killed_in_insn): Likewise.
22976 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
22978 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
22980 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22983 * c-typeck.c (inform_declaration): New.
22984 (build_function_call_vec): Do not pretty-print
22985 expressions when caret is enabled.
22986 (convert_arguments): Use inform_declaration.
22988 2012-04-20 Jim Meyering <meyering@redhat.com>
22990 * genmodes.c (make_complex_modes): Don't truncate a mode name of
22991 length 7 or more when prepending a "C". Suggested by Richard Guenther.
22993 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22995 PR rtl-optimization/44214
22996 * fold-const.c (exact_inverse): New function.
22997 (fold_binary_loc): Fold vector and complex division by constant into
22998 multiply by recripocal with flag_reciprocal_math; fold vector division
22999 by constant into multiply by reciprocal with exact inverse.
23001 2012-04-20 Jan Hubicka <jh@suse.cz>
23003 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
23005 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
23006 (cgraph_remove_node): Update.
23007 (cgraph_mark_needed_node): Remove.
23008 (cgraph_mark_force_output_node): New.
23009 (dump_cgraph_node): Do not dump needed flag.
23010 (cgraph_node_cannot_be_local_p_1): Update.
23011 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
23012 * cgraph.h (symtab_node_base): Add force_output flag.
23013 (cgraph_node): Remove needed flag.
23014 (varpool_node): Remove force_output flag.
23015 (cgraph_mark_needed_node): Remove.
23016 (cgraph_mark_force_output_node): New.
23017 (cgraph_only_called_directly_or_aliased_p,
23018 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
23019 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
23020 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
23021 (cgraph_add_new_function): Update.
23022 (cgraph_mark_if_needed): Update.
23023 (verify_cgraph_node): Update.
23024 (cgraph_analyze_function): Alias target is reachable.
23025 (process_function_and_variable_attributes): Update: externally_visible
23026 flag makes function reachable.
23027 (cgraph_analyze_functions): Update dumping.
23028 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
23029 input_overwrite_node, input_varpool_node): Update streaming.
23030 * lto-streamer-out.c (produce_symtab): Use force_output.
23031 * ipa.c (process_references): Weakrefs must be processed.
23032 (cgraph_remove_unreachable_nodes): Likewise; update for new
23034 (varpool_externally_visible_p): Weakrefs are externally visible
23035 even if they are not.
23036 (function_and_variable_visibility): Update; when processing alias
23037 pair force the targets to be output.
23038 (whole_program_function_and_variable_visility): Use
23039 mark_reachable_node.
23040 * trans-mem.c (ipa_tm_mark_needed_node): Remove
23041 (ipa_tm_mark_force_output_node): New function.
23042 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
23043 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
23045 * varasm.c (mark_decl_referenced): Update.
23046 (find_decl_and_mark_needed): Remove.
23047 (find_decl): New function.
23048 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
23049 alias targets as needed.
23050 (dump_tm_clone_pairs): Update.
23051 * tree-inline.c (copy_bb): Update check.
23052 * symtab.c (dump_symtab_base): Dump force_output.
23053 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
23054 * passes.c (execute_todo): Fix dumping.
23055 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
23056 (varpool_analyze_pending_decls): Alias target is reachable.
23057 (varpool_create_variable_alias): Finalize weakrefs.
23059 2012-04-20 Jakub Jelinek <jakub@redhat.com>
23062 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
23063 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
23064 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
23065 macros instead of constants.
23066 * dse.c (record_store): Check for SP ADDRESS by comparing
23067 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
23068 XEXP to be stack_pointer_rtx.
23070 2012-04-20 Richard Guenther <rguenther@suse.de>
23072 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
23073 update_call_from_tree when propagating into a call.
23075 2012-04-20 Alan Modra <amodra@gmail.com>
23077 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
23078 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
23079 sp_offset to frame_off. Move world save code earlier.
23081 2012-04-20 Richard Guenther <rguenther@suse.de>
23083 PR tree-optimization/53050
23084 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
23085 Do only one transform on COND_EXPRs at the same time.
23087 2012-04-19 Jan Hubicka <jh@suse.cz>
23089 * symtab.c (dump_symtab_base): Revert accidental checkin.
23091 2012-04-20 Alan Modra <amodra@gmail.com>
23094 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
23095 static chain, set REST_INLINE_FPRS too.
23097 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
23099 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
23102 2012-04-20 Richard Guenther <rguenther@suse.de>
23104 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
23105 loops that can never run more often than the vectorization factor.
23107 2012-04-19 Jan Hubicka <jh@suse.cz>
23109 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
23111 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
23113 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
23115 2012-04-19 Jim Meyering <meyering@redhat.com>
23117 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
23118 We verified above that the string(including trailing NUL) fits in buf,
23119 so just use memcpy.
23121 2012-04-19 Richard Guenther <rguenther@suse.de>
23123 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
23124 for dumping DECL_SECTION_NAME.
23126 2012-04-19 Michael Matz <matz@suse.de>
23128 PR middle-end/52977
23129 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
23130 (struct tree_vector): Adjust GTY length.
23131 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
23133 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
23135 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
23136 caller emitted the length calulation already.
23137 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
23138 before handling any of the fields for structs.
23140 2012-04-19 Richard Guenther <rguenther@suse.de>
23142 PR tree-optimization/53031
23143 * tree-vrp.c (adjust_range_with_scev): Revert back to
23144 using max_loop_iterations.
23146 2012-04-19 Michael Matz <matz@suse.de>
23148 * diagnostic.c (emit_diagnostic): Move va_end call after user
23150 (warning, warning_at, pedwarn, permerror): Ditto.
23152 2012-04-19 Richard Guenther <rguenther@suse.de>
23154 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
23157 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
23160 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
23161 the case *(X+const).
23163 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23165 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
23167 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
23170 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
23171 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
23173 2012-04-19 Richard Guenther <rguenther@suse.de>
23175 PR rtl-optimization/44688
23176 * loop-iv.c (determine_max_iter): Only return max_iter.
23177 (iv_number_of_iterations): Also use the recorded loop bound
23178 on the maximum number of iterations.
23179 * loop-unroll.c (decide_unroll_runtime_iterations): Use
23180 max_iter to avoid unrolling loops that do not roll.
23181 (decide_unroll_stupid): Likewise.
23183 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
23185 * targhooks.c (default_case_values_threshold): Fix code style nit.
23187 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
23188 case range and type folding from here...
23189 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
23190 type, as documented in tree.def.
23192 2012-04-18 Jan Hubicka <jh@suse.cz>
23194 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
23196 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
23197 cgraph hash and same comdat groups.
23198 (cgraph_optimize): Verify symbol table.
23199 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
23200 (dissolve_same_comdat_group_list): Work on symtab nodes.
23201 (function_and_variable_visibility): Dissolve variable same comdat group
23203 * symtab.c: Include timevar.h
23204 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
23206 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
23208 * tree-switch-conversion.c (info): Remove global pass info.
23209 (check_range, check_process_case, check_final_bb, create_temp_arrays,
23210 free_temp_arrays, gather_default_values, build_constructors,
23211 array_value_type, build_one_array, build_arrays, gen_def_assigns,
23212 fix_phi_nodes, gen_inbound_check): Pass info around from ...
23213 (process_switch): ... here. Unify message format. Return a const
23214 char pointer to the failure reason message.
23215 (do_switchconv): Unify message format. Update process_switch usage.
23217 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
23218 * tree-cfg.c (edge_to_cases): Fix documentation.
23220 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
23222 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
23224 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23226 PR tree-optimization/52976
23227 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
23228 (possibly_move_powi): New function.
23229 (rewrite_expr_tree): Call possibly_move_powi.
23230 (rewrite_expr_tree_parallel): Likewise.
23231 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
23232 call add_to_ops_vec instead.
23234 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23236 PR tree-optimization/52976
23237 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
23238 (decrement_power): Likewise.
23239 (propagate_op_to_single_use): Likewise.
23240 (zero_one_operation): Handle __builtin_pow* calls in linearized
23241 expression trees; factor logic into propagate_op_to_single_use.
23242 (undistribute_ops_list): Allow operands with repeat counts > 1.
23244 2012-04-18 Richard Guenther <rguenther@suse.de>
23246 PR tree-optimization/44688
23247 * cfgloop.h (record_niter_bound): Declare.
23248 * tree-ssa-loop-niter.c (record_niter_bound): Export.
23249 Update the estimation with the upper bound here...
23250 (estimate_numbers_of_iterations_loop): ... instead of here.
23251 Do not forcefully reset a recorded upper bound.
23252 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
23253 Record the maximum number of loop iterations of the prologue loop.
23255 2012-04-18 Jan Hubicka <jh@suse.cz>
23257 * lto-symtab.c (lto_cgraph_replace_node): Update.
23258 * cgraphbuild.c (record_reference, record_type_list,
23259 record_eh_tables, mark_address, mark_load, mark_store): Update.
23260 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
23261 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
23263 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
23264 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
23265 * reload.c: Fix typo in comment.
23266 * rtlanal.c: Likewise.
23267 * tree-emultls.c (gen_emutls_addr): Update.
23268 * ipa-reference.c (analyze_function): Update.
23269 * cgraphunit.c (cgraph_analyze_function,
23270 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
23272 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
23273 (ipa_remove_reference): Likewise.
23274 (ipa_remove_all_refering): Rename to ...
23275 (ipa_remove_all_referring): ... this one; update.
23276 (ipa_dump_references): Update.
23277 (ipa_dump_referring): Update.
23278 (ipa_clone_references): Update.
23279 (ipa_clone_refering): Rename to ...
23280 (ipa_clone_referring): ... this one; update.
23281 (ipa_ref_cannot_lead_to_return): Update.
23282 (ipa_ref_has_aliases_p): Update.
23283 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
23285 (ipa_ref_type): Remove.
23286 (ipa_ref_ptr_u): Remove.
23287 (ipa_ref): Remove referencing, refered, refered_index, refering_type
23288 and refered_type; add referring, referred and referred_index.
23289 (ipa_ref_list): Rename refering to referring.
23290 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
23291 ipa_clone_references, ipa_clone_referring): Update prototypes.
23292 * lto-cgraph.c (referenced_from_other_partition_p): Update.
23293 (lto_output_ref): Update.
23294 (add_references): Update.
23295 (input_varpool_node): Update.
23296 (input_refs): Update.
23297 * ipa-ref-inline.h (ipa_ref_node): Update.
23298 (ipa_ref_varpool_node): Update.
23299 (ipa_ref_referring_node): Update.
23300 (ipa_ref_referring_varpool_node): Update.
23301 (ipa_ref_referring_ref_list): Update.
23302 (ipa_ref_referred_ref_list): Update.
23303 (ipa_ref_list_first_referring): Update.
23304 (ipa_empty_ref_list): Update.
23305 (ipa_ref_list_refering_iterate): Rename to ...
23306 (ipa_ref_list_referring_iterate): ... this one.
23307 * cse.c: Update comment.
23308 * ipa-utils.c (ipa_reverse_postorder): Update.
23309 * tree-ssa-alias.c: Update.
23310 * ipa-inline.c (reset_edge_caches): Update.
23311 (update_caller_keys): Update.
23312 * ipa-inline.h: Update comments.
23313 * jump.c: Update comment.
23314 * alias.c: Likewise.
23315 * ipa.c (process_references): Update.
23316 (cgraph_remove_unreachable_nodes): Likewise.
23317 (ipa_discover_readonly_nonaddressable_var): Likewise.
23318 (cgraph_address_taken_from_non_vtable_p): Likewise.
23319 * trans-mem.c (ipa_tm_execute): Update.
23320 * simplify-rtx.c: Fix comment.
23321 * rtl.c: Fix comment.
23322 * symtab.c (symtab_unregister_node): Update.
23323 * varpool.c (dump_varpool_node): Update.
23324 (varpool_analyze_pending_decls): Update.
23325 (assemble_aliases): Update.
23326 (varpool_for_node_and_aliases): Update.
23328 2012-04-18 Richard Guenther <rguenther@suse.de>
23330 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
23331 use_undefined_p parameter.
23332 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
23333 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
23335 (estimate_numbers_of_iterations): Likewise.
23336 (estimated_loop_iterations): Adjust.
23337 (max_loop_iterations): Likewise.
23338 (scev_probably_wraps_p): Likewise.
23339 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
23340 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
23341 not max_loop_iterations.
23342 (execute_vrp): Remove explicit number of iterations estimation.
23344 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
23346 * config/i386/linux-common.h: New.
23348 * config.gcc: Add i386/linux-common.h before
23349 all i386/linux.h and i386/linux64.h usages.
23351 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
23352 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
23353 * config/i386/gnu-user64.h: Likewise.
23355 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
23356 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
23357 (GNU_USER_TARGET_MATHFILE_SPEC): New.
23358 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
23360 2012-04-18 Jan Hubicka <jh@suse.cz>
23362 * cgraph.c (cgraph_node_name): Remove.
23363 (dump_cgraph_node): Use dump_symtab_base; reformat.
23364 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
23365 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
23367 (cgraph_node_name, varpool_node_name): Remove.
23368 (cgraph_node_asm_name, varpool_node_asm_name,
23369 cgraph_node_name, varpool_node_name): New.
23370 * tree-pass.h (TODO_dump_cgraph): Rename to ...
23371 (TODO_dump_symtab): ... this one.
23372 * ipa-cp (pass_ipa_cp): Update.
23373 * ia-reference.c (generate_summary, read_write_all_from_decl,
23374 propagate, ipa_reference_read_optimization_summary): Update.
23375 * cgraphunit.c (cgraph_analyze_functions): Update.
23376 (cgraph_optimize): Update.
23377 * ipa-ref.c (ipa_dump_references): Update.
23378 (ipa_dump_refering): Update.
23379 * ipa-inline.c (pass_ipa_inline): Update.
23380 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
23381 * ipa.c (pass_ipa_function_visibility,
23382 pass_ipa_whole_program_visibility): Update.
23383 * tree-sra.c (pass_early_ipa_sra): Update.
23384 * symtab.c: Include langhooks.h
23385 (symtab_node_asm_name): New.
23386 (symtab_node_name): New.
23387 (symtab_type_names): New static var.
23388 (dump_symtab_base): New.
23389 (dump_symtab_node, dump_symtab): New.
23390 (debug_symtab_node, debug_symtab): New.
23391 * tree-ssa-structalias.c: Dump symbol table.
23392 * pases.c (execute_todo): Handle TODO_dump_symtab instead
23393 of TODO_dump_cgraph.
23394 * varpoo.c (varpool_node_name): Remove.
23395 (dump_varpool_node): Use dump_symtab_base; reformat.
23397 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
23399 * doc/invoke.texi (Language Independent Options): @item should be
23402 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
23405 * rtl.c (rtx_code_size): Handle ADDRESS.
23407 2012-04-17 Tom de Vries <tom@codesourcery.com>
23409 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
23410 is not a STMT_LIST.
23412 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
23415 * config/i386/sync.md (atomic_<code><mode>): Rename to
23416 atomic_<logic><mode>.
23418 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
23420 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
23421 * alias.c (reg_base_value): Expand and update comment.
23422 (arg_base_value): New variable.
23423 (unique_id): Move up file.
23424 (unique_base_value, unique_base_value_p, known_base_value_p): New.
23425 (find_base_value): Use arg_base_value and known_base_value_p.
23426 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
23427 (find_base_term): Use known_base_value_p.
23428 (base_alias_check): Use unique_base_value_p.
23429 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
23430 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
23432 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
23434 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
23436 2012-04-17 Michael Matz <matz@suse.de>
23438 PR tree-optimization/18437
23439 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
23440 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
23441 (vect_check_strided_load): Declare.
23442 * tree-vect-data-refs.c (vect_check_strided_load): New function.
23443 (vect_analyze_data_refs): Use it to accept strided loads.
23444 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
23446 2012-04-17 Richard Guenther <rguenther@suse.de>
23448 PR middle-end/53011
23449 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
23450 loops when redirecting an entry or latch edge.
23452 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
23454 * sel-sched.c (sel_global_init): Revert previous change.
23456 2012-04-17 Richard Guenther <rguenther@suse.de>
23458 * tree-flow.h (array_at_struct_end_p): Move declaration ...
23459 * tree.h (array_at_struct_end_p): ... here.
23460 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
23461 * expr.c (array_at_struct_end_p): ... here. Rewrite.
23463 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
23465 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
23466 COST_TABLE): Remove.
23467 (estimate_case_costs): Remove.
23468 (expand_case): Do not call estimate_case_costs
23469 to set use_cost_table.
23470 (balance_case_nodes): Do not use use_cost_table.
23472 2012-04-16 Jan Hubicka <jh@suse.cz>
23474 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
23475 (hash_node, eq_node): Remove.
23476 (cgraph_create_node): Do not handle hashtable.
23477 (cgraph_get_node): Remove.
23478 (cgraph_insert_node_to_hashtable): Remove.
23479 (hash_node_by_assembler_name): Remove.
23480 (eq_assembler_name): Remove.
23481 (cgraph_node_for_asm): Rewrite.
23482 (cgraph_find_replacement_node): Break out from ...
23483 (cgraph_remove_node): ... here; do not maintain hashtables.
23484 (change_decl_assembler_name): Remove.
23485 (cgraph_clone_node): Do not maintain hashtables.
23486 * cgraph.h (const_symtab_node): New typedef.
23487 (cgraph_insert_node_to_hashtable): Remove.
23488 (symtab_get_node, symtab_node_for_asm,
23489 symtab_insert_node_to_hashtable): Declare.
23490 (cgraph_find_replacement_node): Declare.
23491 (cgraph_get_node, varpool_get_node): Turn into inlines.
23492 (cgraph, varpool): Work sanely on NULL pointers.
23493 (FOR_EACH_SYMBOL): New walker.
23494 * ipa-inline-transform.c (save_inline_function_body): Use
23495 symtab_insert_node_to_hashtable.
23496 * symtab.c: Include ggc.h and diagnostics.h
23497 (symtab_hash, assembler_name_hash): New static vars;
23498 (hash_node, eq_node, hash_node_by_assembler_name,
23499 eq_assembler_name, insert_to_assembler_name_hash,
23500 unlink_from_assembler_name_hash): New.
23501 (symtab_register_node): Update hashtables.
23502 (symtab_insert_node_to_hashtable): New.
23503 (symtab_unregister_node): Update hashtables.
23504 (symtab_get_node): New.
23505 (symtab_node_for_asm): New.
23506 (change_decl_assembler_name): New.
23507 * Makefile.in (symtab.o): Needs GTY.
23508 * varpool.c (varpool_hash): Remove.
23509 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
23510 (varpool_node): Rewrite using varpool_get_node.
23511 (varpool_remove_node): DO not maintain hashtables.
23512 (varpool_node_for_asm): Rewrite.
23514 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
23516 * doc/invoke.texi: Copy-edit to put verbs in the present tense
23517 when describing the current behavior of GCC.
23519 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
23521 * genemit.c (gen_exp): Remove ADDRESS handling.
23522 * genoutput.c (scan_operands): Likewise.
23523 * genpeep.c (match_rtx): Likewise.
23524 * genrecog.c (add_to_sequence): Likewise.
23526 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
23528 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
23530 2012-04-16 Martin Jambor <mjambor@suse.cz>
23532 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
23535 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
23538 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
23539 hints for 'A' operand types.
23541 2012-04-16 Jan Hubicka <jh@suse.cz>
23543 * cgraph.h (symtab_node_base): Add next and previous pointers.
23544 (cgraph_node): Remove next and preivous pointers.
23545 (varpool_node): Likewise; remove next/previous GTY marker;
23546 it is not type safe.
23547 (symtab_node_def): Update GTY marker
23548 (x_cgraph_nodes, cgraph_nodes): Remove.
23549 (symtab_nodes): New function.
23550 (cgraph_order): Rename to ...
23551 (symtab_order): ... this one.
23552 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
23554 (x_varpool_nodes, varpool_nodes): Remove.
23555 (FOR_EACH_STATIC_VARIABLE): Update.
23556 (symtab_function_p, symtab_variable_p): New function.
23557 (FOR_EACH_VARIABLE): Update.
23558 (varpool_first_variable, varpool_next_variable): New functions.
23559 (FOR_EACH_VARIABLE): Update.
23560 (cgraph_first_defined_function): Update.
23561 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
23562 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
23563 (cgraph_first_function, cgraph_next_function): New.
23564 (FOR_EACH_FUNCTION): Update.
23565 (cgraph_first_function_with_gimple_body,
23566 cgraph_next_function_with_gimple_body): Update.
23567 * symtab.c: New file.
23568 * cgraph.c: Update copyright dates.
23569 (x_cgraph_nodes, cgraph_order): Remove.
23570 (NEXT_FREE_NODE): Update.
23571 (SET_NEXT_FREE_NODE): New.
23572 (cgraph_create_node_1): Remove common code.
23573 (cgraph_create_node): Remove common code; call symtab_register_node.
23574 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
23575 (cgraph_add_asm_node): Update.
23576 (cgraph_clone_node): Register new node.
23577 * cgraphunit.c (process_function_and_variable_attributes): Update.
23578 (cgraph_analyze_functions): Update.
23579 (cgraph_analyze_functions): Update.
23580 (cgraph_output_in_order): Update.
23581 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
23583 * ipa-inline.c (recursive_inlining): Update.
23584 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
23585 * ipa.c (cgraph_remove_unreachable_nodes): Update.
23586 * Makefile.in: Add symtab.o
23587 * varpool.c (x_varpool_nodes): Remove
23588 (varpool_node): Remove common code; call symtab_register_node.
23589 (varpool_remove_node): Remove common code; call symtab_unregister_node.
23591 2012-04-16 Richard Guenther <rguenther@suse.de>
23593 PR middle-end/52977
23594 * tree.h (VECTOR_CST_NELTS): Adjust.
23595 (struct tree_vector): Add explicit length field.
23596 (make_vector_stat): Declare.
23597 (make_vector): Define.
23598 * tree.c (make_vector_stat): New function.
23599 (build_vector_stat): Use it.
23600 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
23602 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23604 PR tree-optimization/52976
23605 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
23606 (undistribute_ops_list): Ops with repeat counts aren't eligible for
23608 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
23610 2012-04-16 Jan Hubicka <jh@suse.cz>
23612 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
23614 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
23615 walkers to walk cgraph and varpool.
23616 * cgraph.c (cgraph_node_for_asm): Likewise.
23617 (dump_cgraph): Likewise.
23618 * value-prof.c (init_node_map): Likewise.
23619 * tree.c (free_lang_data_in_cgraph): Likewise.
23620 * tree-emutls.c: (ipa_lower_emutls): Likewise.
23621 * ipa-reference.c (generate_summary, propagate): Likewise.
23622 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
23623 cgraph_mark_functions_to_output, cgraph_output_in_order,
23624 output_weakrefs, cgraph_materialize_all_clones,
23625 cgraph_optimize): Likewise.
23626 * lto-cgraph.c (merge_profile_summaries): Likewise.
23627 (input_cgraph): Likewise.
23628 * ipa-pure-const.c (generate_summary): Likewise.
23629 (propagate): Likwise.
23630 * ipa-utils.c (ipa_reduced_postorder): Likewise.
23631 (ipa_free_postorder_info): Likewise.
23632 (ipa_reverse_postorder): Likewise.
23633 * ipa-inline.c (ipa_inline): Likewise.
23634 * matrix-reorg.c (find_matrices_decl): Likewise.
23635 (matrix_reorg): Likewise.
23636 * tree-vectorizer.c (increase_alignment): Likewise.
23637 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
23638 (function_and_variable_visibility): Likewise.
23639 (whole_program_function_and_variable_visibility): Likewise.
23640 (ipa_cdtor_merge): Likewise.
23641 * trans-mem.c (ipa_tm_execute): Likewise.
23642 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
23643 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
23644 (ipa_print_all_params): Likewise.
23645 (ipa_update_after_lto_read): Likewise.
23646 * tree-profie.c (tree_profiling): Likewise.
23647 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
23648 * passes.c (dump_passes): Likewise.
23649 (do_per_function): Likewise.
23650 (ipa_write_summaries): Likewise.
23651 * varpool.c (dump_varpool): Likewise.
23652 (varpool_node_for_asm): Likewise.
23653 (varpool_assemble_pending_decls): Likewise.
23655 2012-04-16 Richard Guenther <rguenther@suse.de>
23657 PR tree-optimization/52975
23658 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
23659 condition but always mark it with TRUTH_NOT_EXPR.
23661 2012-04-16 Richard Guenther <rguenther@suse.de>
23663 PR tree-optimization/52975
23664 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
23665 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
23666 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
23667 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
23669 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
23671 * config/i386/sse.md (ssse3_plusminus): New code iterator.
23672 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
23673 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
23674 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
23675 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
23676 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
23677 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
23679 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
23680 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
23681 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
23682 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
23683 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
23684 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
23686 (xop_plus): New code iterator.
23687 (macs): New code attribute.
23689 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
23690 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
23692 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
23693 xop_plus code iterator.
23694 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
23695 xop_plus code iterator.
23696 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
23697 xop_plus code iterator.
23698 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
23699 xop_plus code iterator.
23701 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
23702 any_extend code iterator.
23703 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
23704 any_extend code iterator.
23705 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
23706 any_extend code iterator.
23707 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
23708 any_extend code iterator.
23709 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
23710 any_extend code iterator.
23711 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
23712 any_extend code iterator.
23714 2012-04-14 Tom de Vries <tom@codesourcery.com>
23716 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
23717 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
23718 DELETED_LABEL note, and move it to ...
23719 * cfgrtl.c (delete_insn): ... here. Change return type to void.
23720 (delete_insn_and_edges): Likewise.
23721 (delete_insn_chain): Handle new return type of delete_insn. Delete
23722 chain backwards rather than forwards.
23723 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
23725 * cfglayout.c (fixup_reorder_chain): Delete unused label.
23727 2012-04-14 Jan Hubicka <jh@suse.cz>
23729 * cgraph.h: Update copyrights;
23730 (symtab_node): Turn to union typedef.
23731 (symtab_node_base): New structure.
23732 (symtab_type): Add SYMTAB_SYMBOL tag.
23733 (cgraph_node): Annotate some pinters with nested_ptr.
23734 (varpool_node): Likewise.
23735 (cgraph_local_info): Remove lto_file_data
23736 and externally_visible.
23737 (cgraph_node): Remove decl; same_comdat_group list;
23738 aux; ref_list; order; address_taken; reachable_from_other_parittion,
23739 in_other_partition; resolution.
23740 (varpool_node): Remove decl; same_comdat_group;
23741 ref_list; lto_file_data; aux; order; resolution; externally_visible;
23742 used_from_other_partition; in_other_partition.
23743 (symtab_node_def): New union.
23744 (cgraph, varpool): Update.
23745 (varpool_first_static_initializer, varpool_next_static_initializer,
23746 cgraph_only_called_directly_or_aliased_p,
23747 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
23748 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
23749 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
23751 * cgraph.c: Likewise.
23752 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
23753 * cgraphbuild.c: Likewise.
23754 * lto-symtab.c: Likewise.
23755 * c-gimplify.c: Likewise.
23756 * value-prof.c: Likewise.
23757 * tree.c: Likewise.
23758 * ipa-cp.c: Likewise.
23759 * tree-emutls.c: Likewise.
23760 * ipa-inline-transform.c: Likwise.
23761 * ipa-reference.c: Likewise.
23762 * cgraphunit.c: Likewise.
23763 * ipa-ref.c: Likewise.
23764 * lto-cgraph.c: Likewise.
23765 * ipa-ref-inline.h: Likewise.
23766 * ipa-pure-const.c: Likewise.
23767 * lto-streamer-out.c: Likewise.
23768 * ipa-utils.c: Likewise.
23769 * ipa-inline.c: Likewise.
23770 * matrix-reorg.c: Likewise.
23771 * tree-eh.c: Likewise.
23772 * tree-vectorizer.c: Likewise.
23773 * ipa-split.c: Likewise.
23775 * trans-mem.c: Likewise.
23776 * ipa-inline-analysis.c: Likewise.
23777 * gimplify.c: Likewise.
23778 * cfgexpand.c: Likewise.
23779 * tree-sra.c: Likewise.
23780 * ipa-prop.c: Likewise.
23781 * varasm.c: Likewise.
23782 * tree-nested.c: Likewise.
23783 * tree-inline.c: Likewise.
23784 * tree-profile.c: Likewise.
23785 * tree-ssa-structalias.c: Likewise.
23786 * passes.c: Likewise.
23787 * varpool.c: Likewise.
23789 2012-04-14 Tom de Vries <tom@codesourcery.com>
23791 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
23792 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
23793 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
23795 (gsi_advance_fw_nondebug_nonlocal): New function.
23796 (local_def): Removed function.
23797 (same_succ_hash): Use stmt_local_def.
23798 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
23799 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
23801 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
23803 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
23804 and __ILP32__ for x32.
23806 2012-04-13 Martin Jambor <mjambor@suse.cz>
23808 PR middle-end/52939
23809 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
23810 fold_ctor_reference returns a zero constant.
23812 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
23814 * config.gcc: Add i386/gnu-user-common.h before all
23815 i386/gnu-user.h and i386/gnu-user64.h usages.
23817 * config/i386/gnu-user-common.h: New.
23819 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
23820 (CC1_SPEC): Likewise.
23821 (ENDFILE_SPEC): Likewise.
23822 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
23823 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
23824 (TARGET_OS_CPP_BUILTINS): Likewise.
23825 (LIBGCC2_HAS_TF_MODE): Likewise.
23826 (LIBGCC2_TF_CEXT): Likewise.
23827 (TF_SIZE): Likewise.
23828 (TARGET_ASM_FILE_END): Likewise.
23829 (STACK_CHECK_MOVING_SP): Likewise.
23830 (STACK_CHECK_STATIC_BUILTIN): Likewise.
23831 * config/i386/gnu-user64.h: Likewise.
23833 2012-04-13 Martin Jambor <mjambor@suse.cz>
23835 * expr.c (expand_expr_real_1): Pass type, not the expression, to
23836 set_mem_attributes for a memory temporary. Do not call the function
23837 for the memory temporary created for a bitfield.
23839 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
23842 * df.h (enum debug_temp_where): New.
23843 (dead_debug_init, dead_debug_finish) Declare.
23844 (dead_debug_add, dead_debug_insert_temp): Declare.
23845 (struct dead_debug_use, struct dead_debug): Moved from...
23846 * df-problems.c: ... here.
23847 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
23849 (df_create_unused_note): Likewise.
23850 (df_set_dead_notes_for_mw): Move comment where it belongs.
23851 (dead_debug_init): Export.
23852 (dead_debug_reset_uses): New, factored out of...
23853 (dead_debug_finish): ...this. Export.
23854 (dead_debug_reset): Remove.
23855 (dead_debug_add): Export.
23856 (dead_debug_insert_before): Rename to...
23857 (dead_debug_insert_temp): ... this. Add where argument. Export.
23858 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
23859 Return insertion count.
23860 (df_note_bb_compute): Adjust.
23861 * dce.c (word_dce_process_block): Adjust dead debug uses.
23862 (dce_process_block): Likewise.
23864 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
23866 * df-problems.c (df_note_bb_compute): Do not take note of
23867 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
23869 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
23872 * var-tracking.c (expand_depth): New type.
23873 (onepart_aux, expand_loc_callback_data): Change depth type to it.
23874 (loc_exp_dep_alloc): Adjust initializer.
23875 (update_depth): Use new type. Add entryvals.
23876 (vt_expand_var_loc_chain): Take note of expansions with
23877 ENTRY_VALUEs, but don't accept them right away. Run an optional
23878 second pass accepting the minimum ENTRY_VALUE count found in the
23880 (vt_expand_loc_callback, INIT_ELCD): Adjust.
23882 2012-04-13 Tom de Vries <tom@codesourcery.com>
23884 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
23885 parameters vuse and vuse_escaped.
23886 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
23887 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
23890 2012-04-13 Richard Guenther <rguenther@suse.de>
23892 PR tree-optimization/52969
23893 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
23894 the condition for the COND_EXPR and handle predicate negation
23895 by swapping the COND_EXPR arms.
23897 2012-04-13 Nick Clifton <nickc@redhat.com>
23899 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
23900 TODO_dump_func flag.
23902 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
23904 PR rtl-optimization/52203
23905 PR rtl-optimization/52715
23907 Revert the 2012-03-07 fix for PR 52203.
23908 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
23909 the insn does not modify DFA right before issuing, adjust
23910 issue_rate accordingly.
23912 2012-04-13 Richard Guenther <rguenther@suse.de>
23915 * c-typeck.c (pointer_diff): Remove bogus assert.
23917 2012-04-13 Richard Guenther <rguenther@suse.de>
23920 * convert.c (convert_to_pointer): Remove special-casing of zero.
23922 2012-04-13 Joey Ye <joey.ye@arm.com>
23924 * config/arm/constraints.md (Pe): New constraint.
23925 * config/arm/arm.md: New split for imm 256-510.
23927 2012-04-13 Terry Guo <terry.guo@arm.com>
23929 * config/arm/arm-cores.def: Added core cortex-m0plus.
23930 * config/arm/arm-tune.md: Regenerated.
23931 * config/arm/arm-tables.opt: Regenerated.
23932 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
23934 2012-04-13 Alan Modra <amodra@gmail.com>
23937 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
23938 tie regs on destination of sets. Delete forward declaration.
23939 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
23940 (rs6000_emit_prologue): Likewise.
23941 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
23943 (is_mem_ref): Use tie_operand to recognise stack ties.
23944 * config/rs6000/predicates.md (tie_operand): New.
23945 * config/rs6000/rs6000.md (restore_stack_block): Generate new
23947 (restore_stack_nonlocal): Likewise.
23948 (stack_tie): Update.
23949 (frame_tie): Delete.
23951 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23953 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
23954 HOST_WIDE_INT_PRINT_DEC in format strings.
23956 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
23959 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
23960 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
23961 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
23962 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
23963 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
23964 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
23965 avx2_permvarv8si using VI4F_256 mode iterator.
23966 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
23967 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
23968 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
23969 gen_avx2_permvarv8sf.
23970 (expand_vec_perm_pshufb): Ditto.
23972 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23975 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
23976 the list of options to enable the FCFID instruction.
23977 (TARGET_EXTRA_BUILTINS): Adjust comment.
23979 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23981 PR tree-optimization/18589
23982 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
23983 (operand_entry): Add count field.
23984 (add_repeat_to_ops_vec): New function.
23985 (completely_remove_stmt): Likewise.
23986 (remove_def_if_absorbed_call): Likewise.
23987 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
23988 (acceptable_pow_call): New function.
23989 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
23990 entries with repeat counts when found.
23991 (repeat_factor_d): New struct and associated typedefs.
23992 (repeat_factor_vec): New static vector variable.
23993 (compare_repeat_factors): New function.
23994 (get_reassoc_pow_ssa_name): Likewise.
23995 (attempt_builtin_powi): Likewise.
23996 (reassociate_bb): Call attempt_builtin_powi.
23997 (fini_reassoc): Two new calls to statistics_counter_event.
23999 2012-04-12 Richard Guenther <rguenther@suse.de>
24001 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
24002 * cgraph.h (tree_rest_of_compilation): Remove.
24003 * cgraph.c (cgraph_add_new_function): Move ...
24004 * cgraphunit.c (cgraph_add_new_function): ... here.
24005 (tree_rest_of_compilation): Make static.
24006 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
24007 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
24008 gate_all_early_local_passes, execute_all_early_local_passes,
24009 pass_early_local_passes, gate_all_early_optimizations,
24010 pass_all_early_optimizations): Move ...
24011 * passes.c (gate_all_optimizations, pass_all_optimizations,
24012 gate_all_early_local_passes, execute_all_early_local_passes,
24013 pass_early_local_passes, gate_all_early_optimizations,
24014 pass_all_early_optimizations): ... here.
24015 * tree-optimize.c (execute_free_datastructures): Remove.
24016 * tree-flow.h (execute_free_datastructures): Remove.
24017 * tree-optimize.c (execute_init_datastructures,
24018 pass_init_datastructures): Move ...
24019 * tree-ssa.c (execute_init_datastructures,
24020 pass_init_datastructures): ... here.
24021 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
24022 execute_free_datastructures.
24024 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
24026 * dbgcnt.def (ira_move): New counter.
24027 * ira-int.h (ira_create_new_reg): Declare function.
24028 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
24029 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
24030 no longer static. All callers changed.
24031 * ira.c: Include "dbgcnt.h".
24032 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
24033 move_unallocated_pseudos): New static functions.
24034 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
24035 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
24036 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
24037 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
24038 to the pseudos generated in find_moveable_pseudos.
24039 * Makefile.in (ira.o): Add $(DBGCNT_H).
24041 2012-04-12 Richard Guenther <rguenther@suse.de>
24043 PR tree-optimization/52943
24044 * tree-chrec.h (chrec_is_positive): Remove.
24045 * tree-scalar-evolution.c (chrec_is_positive): Move ...
24046 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
24047 Return false for a constant zero instead of negative.
24048 (analyze_siv_subscript_cst_affine): Handle zero difference
24049 in the initial condition explicitely.
24051 2012-04-12 Richard Guenther <rguenther@suse.de>
24053 * tree-parloops.c (parallelize_loops): Also consult the upper
24054 bound for the number of iterations.
24055 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
24056 (loop_prefetch_arrays): Likewise.
24058 2012-04-12 Richard Guenther <rguenther@suse.de>
24060 * cfgloop.h (estimated_loop_iterations_int): Ditch
24061 'conservative' parameter.
24062 (max_stmt_executions_int): Likewise.
24063 (estimated_loop_iterations): Likewise.
24064 (max_stmt_executions): Likewise.
24065 (max_loop_iterations): Declare.
24066 (max_loop_iterations_int): Likewise.
24067 (estimated_stmt_executions): Likewise.
24068 (estimated_stmt_executions_int): Likewise.
24069 * tree-ssa-loop-niter.c (estimated_loop_iterations):
24071 (max_loop_iterations): ... this.
24072 (estimated_loop_iterations_int): Split parts to ...
24073 (max_loop_iterations_int): ... this.
24074 (max_stmt_executions_int): Split parts to ...
24075 (estimated_stmt_executions_int): ... this.
24076 (max_stmt_executions): Split parts to ...
24077 (estimated_stmt_executions): ... this.
24078 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
24079 * predict.c (predict_loops): Likewise.
24080 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
24081 (analyze_siv_subscript_cst_affine): Likewise.
24082 (compute_overlap_steps_for_affine_1_2): Likewise.
24083 (analyze_subscript_affine_affine): Likewise.
24084 (init_omega_for_ddr_1): Likewise.
24085 * tree-parloops.c (parallelize_loops): Likewise.
24086 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24087 (may_eliminate_iv): Likewise.
24088 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
24089 (loop_prefetch_arrays): Likewise.
24090 * tree-vrp.c (adjust_range_with_scev): Likewise.
24092 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
24094 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
24095 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
24097 (dump_table): Use bool type for need_align and have_df variables.
24098 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
24099 (regs_used): Remove register modifier.
24100 (barrier_align): Move variables slot, credit, jump_to_next
24101 into if block above for loop. Use bool type for jump_to_next.
24102 (sh_function_arg): Use NULL_RTX instead of 0.
24104 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
24106 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
24107 (bswapsi2): New expander.
24109 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
24111 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
24112 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
24114 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
24116 PR rtl-optimization/52876
24117 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
24118 Don't call mark_reg_pointer for incompatible pointer sign extension.
24120 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
24123 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
24125 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
24126 comparisons against TYPE_PRECISION.
24127 * tree-ssa-forwprop.c (combine_conversions): Likewise.
24129 2012-04-11 Xinliang David Li <davidxl@google.com>
24131 * tree-passes.h: Remove TODO_dump_func.
24132 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
24133 * trans-mem.c: Remove TODO_dump_func.
24134 * ira.c: Remove TODO_dump_func.
24136 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
24138 * config/i386/i386.c (ix86_option_override_internal): Check
24139 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
24140 after TARGET_64BIT is updated.
24142 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
24144 * config/sh/sh.h: Remove old secondary reload code.
24146 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
24148 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
24149 (ready_reorder): ... this function.
24151 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
24153 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
24156 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
24157 insns so that no other insn is queued for a time before them.
24159 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
24162 2012-04-11 Richard Guenther <rguenther@suse.de>
24164 PR middle-end/52621
24165 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
24166 consider loop nesting.
24167 (evolution_function_is_univariate_p): Properly check the remainder
24170 2012-04-11 Richard Guenther <rguenther@suse.de>
24172 PR middle-end/52918
24173 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
24175 2012-04-11 Nick Clifton <nickc@redhat.com>
24177 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
24178 information, if requested.
24180 * config/rx/rx.c (rx_expand_prologue): Likewise.
24182 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
24183 Michael Matz <matz@suse.de>
24186 * rtlanal.c (unsigned_reg_p): New function.
24187 Update copyright notice dates.
24188 * rtl.h (unsigned_reg_p): Prototype it.
24189 Update copyright notice dates.
24190 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
24192 * expr.c (expand_expr_real_1): Set register attributes.
24193 * stmt.c (expand_case): Likewise.
24195 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
24198 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
24199 consider_sh2a and allow_zero.
24200 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
24201 (disp_addr_displacement): New function.
24202 (sh_address_cost): Use disp_addr_displacement function instead
24203 of DISP_ADDR_OFFSET.
24204 (sh_legitimate_address_p): Adapt to changed
24205 sh_legitimate_index_p declaration.
24206 (sh_find_mov_disp_adjust): Remove HImode check.
24207 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
24208 disp_addr_displacement and max_mov_insn_displacement.
24209 (max_mov_insn_displacement): Remove HImode check.
24210 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
24211 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
24212 * config/sh/constraints.md (K05, K13): New constraints.
24213 (K12): Correct comment.
24214 (Sdd): Do not use DISP_ADDR_P macro.
24215 (Snd, Sbw): Use satisfies_constraint_Sdd.
24216 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
24217 (*extendhisi2_compact, movhi_i): Remove.
24218 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
24219 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
24220 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
24221 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
24222 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
24223 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
24224 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
24226 Add new peepholes for HImode displacement addressing.
24228 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
24230 * config/sh/sh.h (SIDI_OFF): Remove.
24231 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
24232 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
24233 or operand_subword.
24235 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
24238 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
24239 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
24240 * doc/md.texi (Standard Names): Add bswap.
24241 * builtin-types.def (BT_UINT16): New primitive type.
24242 (BT_FN_UINT16_UINT16): New function type.
24243 * builtins.def (BUILT_IN_BSWAP16): New.
24244 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
24245 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
24246 expand_builtin_bswap.
24247 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
24248 (fold_builtin_1): Likewise.
24249 (is_inexpensive_builtin): Likewise.
24250 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
24251 missing bits for bswap to libcall code.
24252 * tree.c (build_common_tree_nodes): Build uint16_type_node.
24253 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
24254 (uint16_type_node): New define.
24255 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
24256 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
24258 (rs6000_init_builtins): Likewise.
24259 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
24261 2012-04-11 Tristan Gingold <gingold@adacore.com>
24263 * doc/extend.texi (Type Attributes): Move paragraph.
24265 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
24268 * diagnostic.h (show_caret): Declare.
24269 (caret_max_width): Declare.
24270 (diagnostic_show_locus): Declare.
24271 * diagnostic.c (diagnostic_initialize): Initialize to false.
24272 (diagnostic_show_locus): New.
24273 (diagnostic_report_diagnostic): Call it.
24274 (getenv_columns): New.
24275 (adjust_line): New.
24276 (diagnostic_set_caret_max_width): New.
24277 * input.c (read_line): New.
24278 (location_get_source_line): New.
24279 * input.h (location_get_source_line): Declare.
24280 * toplev.c (general_init): Initialize show_caret from options.
24281 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
24282 * opts.c (common_handle_option): Likewise.
24283 * pretty-print.h (pp_get_prefix): New.
24284 (pp_base_get_prefix): New.
24285 * common.opt (fdiagnostics-show-caret): New option.
24286 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
24288 2012-04-11 Richard Guenther <rguenther@suse.de>
24290 PR rtl-optimization/52881
24291 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
24293 2012-04-11 Richard Guenther <rguenther@suse.de>
24295 PR tree-optimization/52912
24296 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
24297 manipulation code we are threading through a loop header
24298 to an exit destination.
24300 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
24302 * tree.h (warn_if_unused_value): Move declaration from here.
24303 * stmt.c (warn_if_unused_value): Move definition from here.
24305 2012-04-10 Michael Matz <matz@suse.de>
24307 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
24309 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
24310 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
24311 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
24312 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
24313 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
24314 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
24315 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
24316 (vect_record_strided_load_vectors): Rename to
24317 vect_record_grouped_load_vectors.
24318 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
24319 Rename use of above macros.
24320 (vect_verify_datarefs_alignment): Ditto.
24321 (vector_alignment_reachable_p): Ditto.
24322 (vect_peeling_hash_get_lowest_cost): Ditto.
24323 (vect_enhance_data_refs_alignment): Ditto.
24324 (vect_analyze_group_access): Ditto and rename stride to groupsize.
24325 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
24326 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
24327 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
24328 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
24329 (vect_record_strided_load_vectors): Rename to
24330 vect_record_grouped_load_vectors.
24331 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
24332 (destroy_loop_vec_info): Ditto.
24333 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
24334 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
24335 (vect_analyze_slp): Ditto.
24336 (new_bb_vec_info): Ditto.
24337 (destroy_bb_vec_info): Ditto.
24338 (vect_schedule_slp_instance): Ditto and rename strided_store to
24340 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
24341 vect_cost_group_size.
24342 (vect_model_store_cost): Rename use of above macros and call
24343 to vect_cost_strided_group_size.
24344 (vect_model_load_cost): Ditto.
24345 (vectorizable_store): Ditto, rename strided_store to grouped_store
24346 and calls to renamed tree-vectorizer.h functions.
24347 (vectorizable_load): Ditto.
24348 (vect_transform_stmt): Rename use of above macros and strided_store
24351 2012-04-10 Jan Hubicka <jh@suse.cz>
24353 * cgraph.h: Remove misledaing comment on ipa-ref.h.
24354 (symtab_type): New enum.
24355 (symtab_node): New structure.
24356 (cgraph_node, varpool_node): Add symbol base type.
24357 (cgraph, varpool): New accestor functions.
24358 * cgraph.c (cgraph_create_node_1): Set symbol type.
24359 * varpool.c (varpool_node): Set symbol type.
24361 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
24362 Richard Sandiford <rdsandiford@googlemail.com>
24364 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
24366 2012-04-10 Richard Guenther <rguenther@suse.de>
24368 PR middle-end/52888
24369 * gimple-low.c (gimple_check_call_args): Properly account for
24370 compatible aggregate types.
24372 2012-04-10 Richard Guenther <rguenther@suse.de>
24374 * toplev.h (tree_rest_of_compilation): Remove.
24375 * tree-optimize.c (tree_rest_of_compilation): Likewise.
24376 * cgraph.h (tree_rest_of_compilation): Declare.
24377 * tree-optimize.c (tree_rest_of_compilation): Move ...
24378 * cgraphunit.c (tree_rest_of_compilation): ... here.
24379 * cgraph.c (cgraph_add_new_function): Adjust.
24380 * Makefile.in (tree-optimize.o): Adjust.
24381 (cgraphunit.o): Likewise.
24383 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
24385 PR tree-optimization/52870
24386 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
24387 presumed pattern statement is within the same loop or basic block.
24389 2012-04-10 Tristan Gingold <gingold@adacore.com>
24391 * gengtype.c (main): Make uintptr_t a known type.
24393 2012-04-10 Richard Guenther <rguenther@suse.de>
24395 * tree-pass.h (tree_lowering_passes): Remove.
24396 * tree-optimize.c (tree_lowering_passes): Remove.
24397 * cgraph.c (cgraph_add_new_function): Inline relevant parts
24398 of tree_lowering_passes, avoid redundant call of early local passes.
24399 * cgraphunit.c (cgraph_lower_function): Fold into ...
24400 (cgraph_analyze_function): ... its single caller. Inline
24401 relevant parts of tree_lowering_passes.
24403 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
24406 * config/pa/pa.opt: Remove SIO and GNU_LD.
24408 2012-04-09 Jan Hubicka <jh@suse.cz>
24413 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
24414 boundary, add its target too.
24415 * lto.c (add_references_to_partition): Add also aliased nodes.
24416 (add_cgraph_node_to_partition,
24417 add_varpool_node_to_partition): Work on nodes, not functions/variables;
24418 when adding alias, add also the aliased object.
24420 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
24423 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
24424 VOIDmode immediate operands.
24425 * config/i386/constraints.md (Wz): New constraint.
24426 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
24428 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
24431 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
24432 the DECL generated for the special GOT helper.
24434 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
24436 * config/sh/constraints.md: Update list of constraints in
24438 (Sr0): Remove unused memory constraint.
24440 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
24442 * tree-pretty-print.h: Update comment.
24444 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
24446 * config/sh/sh.md: Use braced string notation where applicable.
24447 (*prefetch_i4, prefetch_m2a): Merge into ...
24448 (*prefetch): ... this new insn.
24450 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
24452 * config/sh/sh.h (high_life_started): Remove
24453 * config/sh/predicates.md (general_movdst_operand): Use
24454 'reload_in_progress' instead of 'high_life_started'.
24455 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
24456 divsi_inv_fp): Likewise.
24458 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
24460 * config/sh/sh-protos.h (prepare_move_operands): Return void
24462 * config/sh/sh.c (prepare_move_operands): Likewise.
24463 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
24465 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
24467 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
24468 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
24469 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
24470 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
24471 commutative_float_operator, noncommutative_float_operator,
24472 sh_handle_pragma): Remove.
24474 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
24476 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
24477 Use @option markup on command-line options. Use @samp markup on
24478 literal keywords to options. Use @code markup on code fragments.
24479 Use other markup in preference to quotation marks in the text.
24480 Add markup to some passages without any.
24482 2012-04-06 Mike Stump <mikestump@comcast.net>
24484 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
24486 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
24488 * config/sh/sh.c (hi_const): Remove.
24489 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
24492 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
24494 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
24496 * config/sh/sh.c (sh_expand_t_scc): Likewise.
24497 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
24498 calling sh_expand_t_scc.
24500 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
24502 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
24503 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
24504 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
24505 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
24506 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
24507 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
24508 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
24509 sh2a_is_function_vector_call): Use bool as return type.
24510 (sh_pass_in_reg_p): Remove.
24511 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
24512 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
24513 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
24514 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
24515 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
24516 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
24517 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
24518 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
24519 sh_loads_bankedreg_p): Use bool as return type.
24520 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
24521 'register' modifier.
24523 2012-04-06 Matt Turner <mattst88@gmail.com>
24525 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
24527 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
24529 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
24530 of the destination isn't also a FP_REGS register.
24532 2012-04-05 Teresa Johnson <tejohnson@google.com>
24533 H.J. Lu <hongjiu.lu@intel.com>
24535 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
24536 * config/i386/i386.md (move immediate to memory peephole2):
24537 Add cases for HImode move when LCP stall avoidance is needed.
24538 * config/i386/i386.c (initial_ix86_tune_features): Initialize
24539 X86_TUNE_LCP_STALL entry.
24541 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
24544 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
24545 CONST_INT operands, zero-extended with AND.
24547 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
24550 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
24551 first argument instead of mode size. Move displacement calculations
24553 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
24554 ... these new functions.
24555 (disp_adjust): Remove max_mov_disp field.
24556 (sh_legitimate_index_p): Use max_mov_insn_displacement and
24557 mov_insn_alignment_mask.
24558 (sh_address_cost): Use max_mov_insn_displacement.
24560 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
24562 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
24563 (arch_enabled): Handle new arch types.
24564 (one_cmpldi2): Add NEON support.
24566 2012-04-05 Richard Guenther <rguenther@suse.de>
24568 * gimple.c (walk_gimple_op): Compute val_only for the LHS
24569 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
24570 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
24571 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
24572 ... here and make static.
24573 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
24576 2012-04-05 Richard Guenther <rguenther@suse.de>
24578 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
24579 basic-block before removing it.
24581 2012-04-05 Richard Guenther <rguenther@suse.de>
24583 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
24584 version namespace as we release the freelist.
24586 2012-04-05 Richard Guenther <rguenther@suse.de>
24588 * tree-nrv.c (tree_nrv): Release VDEFs.
24589 * tree-sra.c (sra_modify_constructor_assign): Likewise.
24590 (sra_modify_assign): Likewise.
24591 * tree-vect-stmts.c (vect_remove_stores): Likewise.
24592 * tree-vect-loop.c (vect_transform_loop): Likewise.
24593 * tree-ssa-dom.c (optimize_stmt): Likewise.
24594 * tree-vect-slp.c (vect_schedule_slp): Likewise.
24595 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
24597 2012-04-05 Richard Guenther <rguenther@suse.de>
24599 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
24601 * gimple.h (gsi_remove): Adjust.
24602 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
24603 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
24604 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
24605 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
24606 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
24607 * tree-ssa-pre.c (eliminate): Likewise.
24609 2012-04-04 Mike Stump <mikestump@comcast.net>
24611 * doc/rtl.texi (const_double): Document as sign-extending.
24612 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
24613 * emit-rtl.c (immed_double_int_const): Refine to state the
24615 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
24616 CONST_DOUBLE integers.
24617 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
24618 negative values are converted. Fix conversions bigger than
24619 HOST_BITS_PER_WIDE_INT.
24620 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
24621 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
24622 * explow.c (plus_constant_mode): Add.
24623 (plus_constant): Implement with plus_constant_mode.
24624 * rtl.h (plus_constant_mode): Add.
24626 2012-04-04 Richard Guenther <rguenther@suse.de>
24628 PR tree-optimization/52808
24629 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
24630 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
24632 2012-04-04 Tristan Gingold <gingold@adacore.com>
24634 * expr.c (expand_expr_real_2): Handle larger sizetype in
24637 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
24639 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
24640 to m2a-single instead of m2e.
24642 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
24644 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
24645 Change type of BITOFFSET to signed. Make sure the lower bound of
24646 the computed range is non-negative by adjusting OFFSET and BITPOS.
24647 (expand_assignment): Adjust call to get_bit_range.
24649 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
24651 * h8300/h8300.c (h8300_current_function_monitor_function_p):
24652 New function. Added to check monitor functions.
24653 (h8300_option_override): Modified to generate error/warning
24654 messages for invalid combinations of different command line
24656 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
24657 save EXR on stack for monitor function in case of H8S target
24658 when "-mno-exr" is passed.
24659 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
24661 * doc/invoke.texi: Document H8S options.
24663 2012-04-03 Tristan Gingold <gingold@adacore.com>
24665 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
24666 of gcc_AC_FUNC_MMAP_BLACKLIST.
24667 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
24668 * Makefile.in (aclocal_deps): Add mmap.m4.
24669 * configure: Regenerate.
24670 * aclocal.m4: Regenerate.
24672 2012-04-03 Richard Guenther <rguenther@suse.de>
24674 PR tree-optimization/52808
24675 * tracer.c (tail_duplicate): Return whether we have duplicated
24677 (tracer): If we have duplicated any block, cleanup the CFG.
24678 * cfghooks.c (duplicate_block): If we duplicated a loop
24679 header but not its loop, destroy the loop because it now has
24681 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
24682 the cfg manipulation routines we are not creating a multiple
24685 2012-04-03 Tristan Gingold <gingold@adacore.com>
24687 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
24689 (vms_c_common_override_options): Allow parameterless variadic
24692 2012-04-03 Jakub Jelinek <jakub@redhat.com>
24694 PR tree-optimization/52835
24695 * tree-data-ref.c (build_rdg): Return NULL if
24696 compute_data_dependences_for_loop failed.
24698 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
24700 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
24701 for REAL_CST as well.
24702 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
24703 In the bitfield case, if the value is a REAL_CST, convert it first to
24706 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
24708 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
24709 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
24710 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
24712 * config/i386/biarchx32.h: New.
24714 2012-04-02 Anatoly Sokolov <aesok@post.ru>
24716 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
24717 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
24718 (arm_preferred_reload_class): New function.
24720 2012-04-02 Richard Guenther <rguenther@suse.de>
24722 PR tree-optimization/52756
24723 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
24724 (thread_through_loop_header): After threading through the loop latch
24725 remove the split part from the loop and clear further threading
24726 opportunities that would create a multiple entry loop.
24728 2012-04-02 Richard Guenther <rguenther@suse.de>
24730 PR rtl-optimization/52800
24731 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
24732 CLEANUP_CFG_CHANGED.
24734 2012-04-02 Richard Guenther <rguenther@suse.de>
24736 PR middle-end/52803
24737 * loop-init.c (gate_handle_loop2): Destroy loops here if
24738 we don't enter RTL loop optimizers.
24740 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
24743 2012-03-29 Richard Guenther <rguenther@suse.de>
24745 * rtl.h (extended_count): Remove.
24746 * combine.c (extended_count): Remove.
24748 2012-04-02 Dodji Seketeli <dodji@redhat.com>
24751 * pt.c (more_specialized_fn): Don't apply decay conversion to
24752 types of function parameters.
24754 2012-04-02 Tristan Gingold <gingold@adacore.com>
24756 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
24757 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
24758 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
24759 (ggc_pch_this_base): Use uintptr_t instead of size_t.
24761 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
24764 * config/i386/i386.c (ix86_option_override_internal): Don't
24765 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
24767 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
24769 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
24770 (stmt_can_make_abnormal_goto): Use it.
24771 (is_ctrl_altering_stmt): Likewise.
24773 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
24774 Kaz Kojima <kkojima@gcc.gnu.org>
24776 * config/sh/sh.c (push_regs): Skip banked registers when
24777 resbank attribute is specified.
24778 (sh_expand_epilogue): Likewise.
24780 2012-03-30 Richard Henderson <rth@redhat.com>
24783 * combine-stack-adj.c (prev_active_insn_bb): New.
24784 (next_active_insn_bb): New.
24785 (force_move_args_size_note): New.
24786 (combine_stack_adjustments_for_block): Use it.
24788 2012-03-30 Richard Henderson <rth@redhat.com>
24790 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
24791 (ix86_expand_vector_init_duplicate): Initialize it.
24792 (expand_vec_perm_palignr): Likewise.
24793 (ix86_expand_vec_perm_const): Likewise.
24794 (ix86_vectorize_vec_perm_const_ok): Likewise.
24795 (expand_vec_perm_blend): Use it.
24796 (expand_vec_perm_vpermil): Likewise.
24797 (expand_vec_perm_pshufb): Likewise.
24798 (expand_vec_perm_1): Likewise.
24799 (expand_vec_perm_pshuflw_pshufhw): Likewise.
24800 (expand_vec_perm_interleave2): Likewise.
24801 (expand_vec_perm_vpermq_perm_1): Likewise.
24802 (expand_vec_perm_vperm2f128): Likewise.
24803 (expand_vec_perm_interleave3): Likewise.
24804 (expand_vec_perm_vperm2f128_vblend): Likewise.
24805 (expand_vec_perm_vpshufb2_vpermq): Likewise.
24806 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
24807 (expand_vec_perm_broadcast): Likewise.
24808 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
24810 2012-03-30 Richard Henderson <rth@redhat.com>
24812 * dwarf2out.c (gen_variable_die): Initialize off.
24814 2012-03-30 Tristan Gingold <gingold@adacore.com>
24816 * config/vms/vms-f.c: New file.
24817 * config/vms/t-vms (vms-f.o): New rule.
24818 * config.gcc (*-*-*vms*): Define fortran_target_objs.
24820 2012-03-30 Richard Guenther <rguenther@suse.de>
24822 PR tree-optimization/52754
24823 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
24824 propagate arbitrary addresses into really plain dereferences.
24826 2012-03-30 Richard Guenther <rguenther@suse.de>
24828 PR middle-end/52772
24829 * except.c (emit_to_new_bb_before): Move loop updating ...
24830 (dw2_build_landing_pads): ... here. Use a proper block for
24831 querying the loop father.
24833 2012-03-30 Tristan Gingold <gingold@adacore.com>
24835 * config/ia64/ia64.c (ia64_section_type_flags): Remove
24836 common_object attribute handling.
24837 (SECTION_VMS_OVERLAY): Remove
24838 (ia64_vms_common_object_attribute): Replace abort with an assert.
24839 Do not set DECL_SECTION_NAME.
24840 (ia64_vms_output_aligned_decl_common): Handle common_object
24842 (ia64_vms_elf_asm_named_section): Remove.
24843 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
24845 2012-03-30 Richard Guenther <rguenther@suse.de>
24847 PR middle-end/52786
24848 * double-int.c (rshift_double): Remove not needed cast.
24850 2012-03-30 Richard Guenther <rguenther@suse.de>
24852 * tree-affine.h (print_aff): Remove.
24853 * tree-affine.c (print_aff): Make static.
24854 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
24855 (get_references_in_stmt): Likewise.
24856 (print_direction_vector): Likewise.
24857 (print_dir_vectors): Likewise.
24858 (print_dist_vectors): Likewise.
24859 (dump_subscript): Likewise.
24860 (dump_ddrs): Likewise.
24861 (dump_dist_dir_vectors): Likewise.
24862 (dump_data_references): Likewise.
24863 (dump_data_dependence_relation): Likewise.
24864 (dump_data_dependence_direction): Likewise.
24865 (dump_rdg_vertex): Likewise.
24866 (dump_rdg_component): Likewise.
24867 (debug_ddrs): Declare.
24868 (struct data_ref_loc_d): Move ...
24869 * tree-data-ref.c (struct data_ref_loc_d): ... here.
24870 (get_references_in_stmt): Make static.
24871 (dump_data_references): Likewise.
24872 (dump_subscript): Likewise.
24873 (print_direction_vector): Likewise.
24874 (print_dir_vectors): Likewise.
24875 (print_dist_vectors): Likewise.
24876 (dump_data_dependence_relation): Likewise.
24877 (dump_dist_dir_vectors): Likewise.
24878 (dump_ddrs): Likewise.
24879 (dump_rdg_vertex): Likewise.
24880 (dump_rdg_component): Likewise.
24881 (debug_ddrs): New function.
24882 (access_matrix_get_index_for_parameter): Remove.
24884 2012-03-30 Tristan Gingold <gingold@adacore.com>
24886 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
24887 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
24888 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
24889 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
24890 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
24891 (vms_patch_builtins): Handle new flags
24892 * config/vms/vms-crtlmap.map: Completed using nm on
24893 c and math system libraries.
24894 * config/vms/make-crtlmap.awk: Handle any number of flags.
24896 2012-03-30 Martin Jambor <mjambor@suse.cz>
24898 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
24899 is a builtin_stack_save in a dominating BB.
24901 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
24903 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
24904 crossing 128bit lane boundary.
24906 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
24908 * ira-color.c (setup_left_conflict_sizes_p): Process all
24909 conflicting objects.
24911 2012-03-29 Jakub Jelinek <jakub@redhat.com>
24913 PR tree-optimization/52760
24914 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
24915 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
24917 2012-03-29 Richard Guenther <rguenther@suse.de>
24919 * cgraph.h (cgraph_materialize_all_clones): Remove.
24920 (reset_inline_failed): Likewise.
24921 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
24922 * cgraphbuild.c (reset_inline_failed): Remove.
24923 * rtl.h (cse_main): Remove.
24924 (extended_count): Likewise.
24925 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
24926 (cse_main): Make static.
24927 * combine.c (extended_count): Remove.
24928 (dump_combine_stats): Mark as DEBUG_FUNCTION.
24929 * basic-block.h (reorder_basic_blocks): Remove.
24930 * bb-reorder.c (reorder_basic_blocks): Make static.
24931 * Makefile.in (dse.o): Remove dse.h dependency.
24933 * dse.c (gate_dse): Remove.
24934 (clear_alias_mode_eq): Likewise.
24935 (clear_alias_mode_hash): Likewise.
24936 (dse_record_singleton_alias_set): Likewise.
24937 (dse_invalidate_singleton_alias_set): Likewise.
24939 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
24941 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
24942 crtbegin_so%O%s for -shared.
24943 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
24945 2012-03-29 Richard Guenther <rguenther@suse.de>
24947 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
24948 (add_to_value): Remove.
24949 (print_value_expressions): Likewise.
24950 * tree-ssa-pre.c (add_to_value): Make static.
24951 (print_value_expressions): Likewise.
24952 * gimple.h (gimple_adjust_this_by_delta): Remove.
24953 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
24955 2012-03-29 Richard Guenther <rguenther@suse.de>
24957 PR middle-end/50708
24958 * double-int.h (rshift_double): Remove.
24959 * double-int.c (lshift_double): Use absu_hwi to make count positive.
24960 (rshift_double): Make static, take unsigned count argument,
24961 remove handling of negative count argument.
24962 (double_int_rshift): Dispatch to lshift_double.
24964 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
24966 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
24967 OPTION_MASK_ABI_64.
24969 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
24970 (SPEC_X32): Likewise.
24971 (MULTILIB_DEFAULTS): Likewise.
24973 * config/i386/i386.c (isa_opts): Remove -m64.
24974 (ix86_target_string): Properly handle -m32/-m64/-mx32.
24975 (ix86_option_override_internal): Properly
24976 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
24977 handle -m32, -m64 and -mx32.
24979 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
24980 with OPTION_ABI_X32. Moved after TARGET_LP64.
24981 (TARGET_LP64): Changed to OPTION_ABI_64.
24983 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
24984 (mx32): Replace ISA_X32 with ABI_X32.
24986 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
24988 * tree.c (tree_size) <VECTOR_CST>: New case.
24990 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
24992 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
24993 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
24995 2012-03-28 Jakub Jelinek <jakub@redhat.com>
24997 PR middle-end/52691
24998 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
24999 __builtin_va_start to __builtin_next_arg if the latter is
25000 builtin_decl_explicit_p rather than when it is not.
25002 PR middle-end/52750
25003 * tree-vect-generic.c (vector_element): Perform multiplication
25004 for pos in bitsizetype type instead of idx type.
25006 2012-03-28 Richard Guenther <rguenther@suse.de>
25008 * loop-init.c (loop_optimizer_init): If loops are preserved
25009 perform incremental initialization of required loop features.
25010 (loop_optimizer_finalize): If loops are to be preserved only
25011 clean up optional loop features.
25012 (rtl_loop_done): Forcefully free loops here.
25013 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
25014 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
25016 (construct_init_block): Likewise.
25017 (construct_exit_block): Likewise.
25018 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
25019 the CFG after expanding.
25020 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
25021 If we needed to calculate them, free them afterwards.
25022 * tree-pass.h (PROP_loops): New define.
25023 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
25024 * basic-block.h (CLEANUP_CFG_CHANGED): New.
25025 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
25026 (cleanup_cfg): If we did something and have loops around, fix them up.
25027 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
25028 with CLEANUP_CFG_CHANGED.
25029 * cfghooks.c (merge_blocks): If we merge a loop header into
25030 its predecessor, update the loop structure.
25031 (duplicate_block): If we copy a loop latch, adjust loop state
25032 to note we may have multiple latches.
25033 (delete_basic_block): Mark loops for fixup if we remove a loop.
25034 * cfganal.c (forwarder_block_p): Protect loop latches, headers
25036 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
25037 (cfg_layout_can_merge_blocks_p): Likewise.
25038 * cprop.c (bypass_block): If we create a loop with multiple
25039 entries, mark it for removal.
25040 * except.c (emit_to_new_bb_before): Add the new basic-block
25042 * tree-eh.c (lower_resx): Likewise.
25043 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
25044 (expand_omp_taskreg): Likewise.
25045 * tree-inline.c (initialize_cfun): Likewise.
25046 * tree-mudflap.c (add_bb_to_loop): Prototype.
25047 (mf_build_check_statement_for): Properly add new basic-blocks
25049 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
25050 if we remove a loop.
25051 (thread_through_loop_header): Likewise.
25052 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
25053 new basic-blocks to existing loops.
25054 (expand_transaction): Likewise.
25055 * Makefile.in (except.o): Add $(CFGLOOP_H).
25056 (expr.o): Likewise.
25057 (cgraph.o): Likewise.
25058 (cprop.o): Likewise.
25059 (cfgexpand.o): Likewise.
25060 (cfganal.o): Likewise.
25061 (trans-mem.o): Likewise.
25062 (tree-eh.o): Likewise.
25064 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
25067 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
25068 (avr_builtin_decl): New static function.
25069 (struct avr_builtin_description, avr_bdesc): Move up.
25070 Add GTY marker. Add field fndecl. Remove redundant field id.
25071 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
25072 (avr_expand_builtin): Code cleanup because .id is removed.
25074 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
25077 * config.gcc (tm_file): Remove avr/multilib.h.
25079 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
25081 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
25082 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
25083 * config/avr/t-avr: Remove generation of multilib.h.
25084 * config/avr/t-multilib: Regenerate.
25085 * config/avr/multilib.h: Remove.
25086 * config/avr/avr.opt (-msp8): New option.
25087 (avr_sp8): New variable.
25088 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
25089 * config/avr/avr.h (AVR_HAVE_SPH): New define.
25090 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
25091 (avr_device_to_sp8): New prototype.
25092 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
25093 (DRIVER_SELF_SPECS): New define.
25094 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
25095 __AVR_SP8__, __AVR_HAVE_SPH__.
25096 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
25097 AVR_HAVE_8BIT_SP to decide if SP_H is present.
25098 (avr_file_start): Ditto.
25100 2012-03-28 Jakub Jelinek <jakub@redhat.com>
25103 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
25104 instead of 8 in adjust_address.
25106 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
25108 PR middle-end/51893
25109 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
25112 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
25115 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
25116 Rearrange conditional logic. Move displacement address calculations
25118 (sh_find_mov_disp_adjust): ... this new function.
25120 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
25122 * config/arm/arm.opt (mapcs): Remove MaskExists.
25123 * config/cris/linux.opt (mno-gotplt): Likewise.
25124 * config/i386/i386.opt (mhard-float): Likewise.
25126 (mno-sse4): Likewise.
25127 * config/m68k/m68k.opt (mhard-float): Likewise.
25128 * config/mep/mep.op (mcop32): Likewise.
25129 * config/pa/pa-hpux.opt (msio): Likewise.
25130 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
25131 * config/picochip/picochip.opt (mlittle): Likewise.
25132 * config/sh/sh.opt (mrenesas): Likewise.
25133 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
25134 * config/sparc/sparc.opt (mhard-float): Likewise.
25135 * config/v850/v850.opt (mv850es): Likewise.
25136 * config/vax/vax.opt (mg-float): Likewise.
25138 2012-03-27 Martin Jambor <mjambor@suse.cz>
25140 PR middle-end/52693
25141 * tree-sra.c (sra_modify_assign): Do not call
25142 load_assign_lhs_subreplacements when working with an unscalarizable
25145 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
25148 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
25150 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
25151 * config/i386/i386.c: Include reload.h.
25152 (ix86_legitimize_reload_address): New function.
25154 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
25156 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
25157 hasn't been allocated. Define a target macro for Mask and
25158 InverseMask if it hasn't been defined. Remove MaskExists handling.
25160 * doc/options.texi: Remove MaskExists.
25162 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
25165 * config/sh/sh.c (find_barrier): Add equality check of last_got
25166 to avoid going above orig insn. Update comments.
25168 2012-03-27 Richard Guenther <rguenther@suse.de>
25170 PR middle-end/52720
25171 * fold-const.c (try_move_mult_to_index): Handle &x.array more
25174 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
25176 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
25177 of a unit before computing the offset in units.
25178 * expr.c (get_bit_range): Return the null range if the enclosing record
25179 is part of a larger bit field.
25181 2012-03-27 Tristan Gingold <gingold@adacore.com>
25183 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
25184 * config/ia64/ia64.md: Remove mode in template.
25185 Sign extend operand in expand_simple_binop.
25186 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
25187 CASE_VECTOR_MODE instead of TARGET_ILP32.
25188 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
25190 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
25192 * varasm.c (assemble_external): #if 0 out the new assert from the
25193 previous commit, it breaks the Java and Go front ends.
25195 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
25197 * toplev.c (check_global_declaration_1): Do not call assemble_external.
25198 * expr.c (emit_block_move_libcall_fn): Likewise.
25199 (clear_storage_libcall_fn): Likewise.
25200 (expand_expr_addr_expr_1): Likewise.
25201 (expand_expr_real_1): Likewise.
25202 * calls.c (rtx_for_function_call): Likewise.
25204 * varasm.c (assemble_external): Assert this function is only called
25205 during or after expanding to RTL.
25207 2012-03-26 Martin Jambor <mjambor@suse.cz>
25209 PR tree-optimization/50052
25210 * tree-sra.c (tree_non_aligned_mem_p): Removed.
25211 (tree_non_aligned_mem_for_access_p): Likewise.
25212 (build_accesses_from_assign): Removed strict alignment requirements
25214 (access_precludes_ipa_sra_p): Likewise.
25216 2012-03-26 Richard Guenther <rguenther@suse.de>
25218 PR tree-optimization/52701
25219 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
25220 compute and set the evolution part of PHI nodes.
25222 2012-03-26 Richard Guenther <rguenther@suse.de>
25224 PR tree-optimization/52721
25225 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
25227 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
25229 PR tree-optimization/52686
25230 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
25233 2012-03-26 Tristan Gingold <gingold@adacore.com>
25235 * config/alpha/vms.h (LINK_SPEC): Simplify.
25236 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
25237 (NAME__MAIN, SYMBOL__MAIN): Remove.
25238 (VMS_DEBUG_MAIN_POINTER): Remove.
25239 * config/ia64/vms.h: Likewise.
25240 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
25241 code to vms.c. Call vms_start_function.
25242 * config/ia64/ia64.c (ia64_start_function): Likewise.
25243 * config/vms/vms-protos.h (vms_start_function): Declare.
25244 * config/vms/vms.c (vms_start_function): New function.
25245 * config/vms/vms.h (MATH_LIBRARY): Define.
25246 (VMS_DEBUG_MAIN_POINTER): Define.
25248 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
25250 PR rtl-optimization/52629
25251 * reload1.c (count_pseudo): Short-circuit common case.
25252 (count_spilled_pseudo): Return early for pseudos without hard regs.
25253 Assert that the pseudo has got a hard reg before manipulating it.
25255 2012-03-24 Jan Hubicka <jh@suse.cz>
25258 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
25259 (decide_is_variable_needed): Do not handle toplevel reorder here.
25260 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
25261 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
25264 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
25266 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
25267 and str_bitsize instead of more convoluted expressions.
25269 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
25272 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
25274 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
25277 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
25279 2012-03-23 Martin Jambor <mjambor@suse.cz>
25281 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
25283 2012-03-23 Richard Guenther <rguenther@suse.de>
25285 PR tree-optimization/52678
25286 * tree-vectorizer.h (struct _stmt_vec_info): Add
25287 loop_phi_evolution_part member.
25288 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
25289 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
25290 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
25291 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
25292 Use the cached evolution part and the PHI nodes value from
25293 the loop preheader edge instead of re-analyzing the evolution.
25295 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
25297 * config/mips/mips-tables.opt: Update.
25298 * config/mips/mips.md (processor): Add xlp.
25299 * config/mips/mips-cpus.def: Add xlp.
25300 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
25302 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
25303 * doc/invoke.texi: Mention XLP.
25305 2012-03-22 Jakub Jelinek <jakub@redhat.com>
25307 PR middle-end/52547
25308 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
25309 on any new_local_var_chain vars declared during recursing on
25310 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
25312 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
25314 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
25315 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
25316 (ASM_OUTPUT_LOCAL): Ditto.
25317 (ASM_OUTPUT_COMMON): Remove.
25318 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
25319 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
25321 2012-03-22 Jan Hubicka <jh@suse.cz>
25323 PR middle-end/51737
25324 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
25326 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
25327 * ipa-inline-transform.c (save_inline_function_body): Remove
25328 copied clone if needed.
25329 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
25331 2012-03-22 Richard Guenther <rguenther@suse.de>
25333 PR middle-end/52666
25334 * fold-const.c (fold_ternary_loc): Fix typo.
25336 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
25339 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
25340 (unspecv): Add UNSPECV_MEMORY_BARRIER.
25341 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
25342 (delay_cycles_1, delay_cycles_2): Ditto.
25343 (delay_cycles_3, delay_cycles_4): Ditto.
25344 (nopv, *nopv): Ditto.
25345 (sleep, *sleep): Ditto.
25346 (wdr, *wdr): Ditto.
25348 2012-03-22 Richard Guenther <rguenther@suse.de>
25350 PR tree-optimization/52548
25351 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
25352 because of clobbers.
25353 (prune_clobbered_mems): New function.
25354 (compute_antic_aux): Use it to prune ANTIC_OUT.
25355 (compute_partial_antic_aux): Use it to prune PA_IN.
25356 (compute_avail): Only insert expressions into EXP_GEN that are not
25357 invalidated when translated up to the beginning of the block.
25359 2012-03-22 Richard Guenther <rguenther@suse.de>
25361 PR tree-optimization/52638
25362 * tree-vect-stmts.c (vect_init_vector_1): New function, split
25364 (vect_init_vector): ... here. Handle scalar vector inits.
25365 (vect_get_vec_def_for_operand): Adjust.
25366 (vectorizable_load): Likewise.
25368 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
25370 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
25371 (alpha*-*-freebsd*): Ditto.
25372 (alpha*-*-netbsd*): Ditto.
25373 (alpha*-*-openbsd*): Ditto.
25374 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
25375 (DWARF2_DEBUGGING_INFO): Remove.
25376 (PREFERRED_DEBUGGING_TYPE): Remove.
25377 (ASM_FINAL_SPEC): Remove.
25378 (IDENT_ASM_OP): Remove.
25379 (ASM_OUTPUT_IDENT): Remove.
25380 (SKIP_ASM_OP): Remove.
25381 (ASM_OUTPUT_SKIP): Remove.
25382 (ALIGN_ASM_OP): Remove.
25383 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
25384 (ASM_OUTPUT_CASE_LABEL): Remove.
25385 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
25386 (COMMON_ASM_OP): Remove.
25387 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
25388 (ASCII_DATA_ASM_OP): Remove.
25389 (READONLY_DATA_SECTION_ASM_OP): Remove.
25390 (INIT_SECTION_ASM_OP): Remove.
25391 (FINI_SECTION_ASM_OP): Remove.
25392 (ASM_SECTION_START_OP): Remove.
25393 (ASM_OUTPUT_SECTION_START_FILE): Remove.
25394 (TARGET_ASM_NAMED_SECTION): Remove.
25395 (TARGET_ASM_SELECT_SECTION): Remove.
25396 (MAKE_DECL_ONE_ONLY): Remove.
25397 (TYPE_ASM_OP): Remove.
25398 (SIZE_ASM_OP): Remove.
25399 (ASM_WEAKEN_LABEL): Remove.
25400 (TYPE_OPERAND_FMT): Remove.
25401 (ASM_DECLARE_RESULT): Remove.
25402 (ASM_DECLARE_OBJECT_NAME): Remove.
25403 (ASM_FINISH_DECLARE_OBJECT): Remove.
25404 (ELF_ASCII_ESCAPES): Remove.
25405 (ELF_STRING_LIMIT): Remove.
25406 (STRING_ASM_OP): Remove.
25407 (ASM_OUTPUT_EXTERNAL): Remove.
25408 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
25409 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
25411 (ASM_DECLARE_FUNCTION_NAME): Ditto.
25412 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
25413 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
25414 (ASM_OUTPUT_SKIP): Ditto.
25415 (READONLY_DATA_SECTION_ASM_OP): Remove.
25416 (USER_LABEL_PREFIX): Remove.
25417 (ASM_OUTPUT_ASCII): Remove.
25418 (ASM_OUTPUT_CASE_LABEL): Remove.
25419 (NO_DOLLAR_IN_LABEL): Undefine.
25421 2012-03-22 Richard Guenther <rguenther@suse.de>
25423 PR tree-optimization/52459
25424 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
25425 PHI insertion for calls.
25427 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
25429 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
25430 find_sets_in_insn, canonicalize_insn): Split out from ...
25431 (cse_insn): ... here.
25432 (invalidate_from_clobbers): Take an insn instead of the pattern.
25434 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
25437 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
25438 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
25439 * config/sh/sh.md (sindf2, cosdf2): Remove.
25441 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
25444 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
25445 prologue for unwinder and profiler.
25447 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
25449 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
25450 Introduce emul_name to select the right linker emulation for
25451 powerpc64-*-freebsd*.
25452 * configure: Regenerate.
25453 * config.gcc: Add bits to support powerpc64-*-freebsd*.
25454 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
25455 * config/rs6000/freebsd64.h: New file.
25456 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
25458 (rs6000_savres_strategy): Likewise.
25459 (rs6000_savres_routine_name): Likewise.
25460 (rs6000_elf_file_end): Likewise.
25461 * config/rs6000/t-freebsd64: New file.
25462 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
25463 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
25465 * config/rs6000/freebsd64.h: Remove duplicated entries from last
25467 * config/rs6000/t-freebsd64: Likewise.
25469 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
25471 PR rtl-optimization/52543
25473 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
25474 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
25475 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
25476 (avr_load_libgcc_p): Restrict to __flash loads.
25477 (avr_out_lpm): Only handle 1-byte loads from __flash.
25478 (avr_load_lpm): New function.
25479 (avr_find_unused_d_reg): Remove.
25480 (avr_out_lpm_no_lpmx): Remove.
25481 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
25482 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
25483 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
25484 (load_<mode>, load_<mode>_clobber): New insns.
25485 (mov<mode>): For multi-byte move from non-generic
25486 16-bit address spaces: Expand to load_<mode> resp.
25487 load_<mode>_clobber.
25488 (load<mode>_libgcc): Remove expander.
25489 (split-lpmx): Remove split.
25491 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
25493 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
25494 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
25495 All callers changed.
25496 (Fixed_core_reg): New feature.
25497 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
25499 * neon-testgen.ml: Handle Fixed_core_reg.
25501 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
25503 * config/arm/arm.c (thumb2_reorg): Add complete support
25504 for 16-bit instructions.
25505 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
25507 2012-03-21 Richard Guenther <rguenther@suse.de>
25509 PR tree-optimizer/52636
25510 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
25511 to the appropriate type.
25513 2012-03-21 Richard Guenther <rguenther@suse.de>
25515 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
25517 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
25518 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
25519 * passes.c (init_optimization_passes): Remove pass_init_function,
25520 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
25521 * tree-pass.h (pass_init_function): Remove.
25522 (pass_jump): Remove.
25523 (pass_initial_value_sets): Remove.
25524 (pass_unshare_all_rtl): Remove.
25525 * integrate.c (pass_initial_value_sets): Remove.
25526 * emit-rtl.c (pass_unshare_all_rtl): Remove.
25527 * tree.h (init_function_for_compilation): Remove.
25528 * function.c (init_function_for_compilation): Remove.
25529 (pass_init_function): Remove.
25530 * cfgcleanup.c (rest_of_handle_jump): Remove.
25531 (pass_jump): Remove.
25533 2012-03-20 Jason Merrill <jason@redhat.com>
25535 * tree-streamer-in.c (streamer_alloc_tree): Call
25536 ggc_alloc_zone_cleared_tree_node instead of
25537 ggc_alloc_zone_cleared_tree_node_stat.
25539 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
25541 * doc/extend.texi (Template Instantiation): Remove anachronisms.
25543 2012-03-20 Jakub Jelinek <jakub@redhat.com>
25546 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
25547 (ix86_expand_vec_perm_const_1): Call it.
25549 * config/i386/i386.c (vselect_insn): New variable.
25550 (init_vselect_insn): New function.
25551 (expand_vselect, expand_vselect_insn): Add testing_p argument.
25552 Call init_vselect_insn if vselect_insn is NULL. Adjust
25553 PATTERN (vselect_insn), instead of creating a new insn each time,
25554 only emit a copy of it if not testing and recog has been successful.
25555 (expand_vec_perm_pshufb, expand_vec_perm_1,
25556 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
25560 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
25561 ("enabled" attribute): Handle avx2 and noavx2 isas.
25562 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
25564 (vec_dup<mode>): Add avx2 =x,x alternative.
25565 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
25566 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
25567 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
25568 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
25570 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
25571 if possible, handle also V8SFmode.
25573 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
25575 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
25576 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
25577 reg_or_zero_operand predicate.
25578 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
25580 2012-03-20 Jakub Jelinek <jakub@redhat.com>
25582 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
25583 If operand isn't UNSPEC, return 0.
25585 2012-03-20 Richard Guenther <rguenther@suse.de>
25587 * tree-pass.h (pass_rtl_eh): Remove.
25588 * except.c (gate_handle_eh): Likewise.
25589 (rest_of_handle_eh): Likewise.
25590 (pass_rtl_eh): Likewise.
25591 (finish_eh_generation): Export.
25592 * except.h (finish_eh_generation): Declare.
25593 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
25594 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
25595 after expanding stack alignment. Instead of compacting blocks
25598 2012-03-20 Richard Guenther <rguenther@suse.de>
25600 * stor-layout.c (finish_bitfield_representative): Fallback
25601 to conservative maximum size if the padding up to the next
25602 field cannot be computed as a constant.
25603 (finish_bitfield_layout): If we cannot compute the distance
25604 between the start of the bitfield representative and the
25605 bitfield member start a new representative.
25606 * expr.c (get_bit_range): The distance between the start of
25607 the bitfield representative and the bitfield member is zero
25608 if the field offsets are not constants.
25610 2012-03-20 Tristan Gingold <gingold@adacore.com>
25612 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
25613 convert in lowercase.
25614 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
25615 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
25616 * stor-layout.c (sizetype_tab): Adjust.
25617 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
25618 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
25619 instead of type_kind_last.
25620 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
25621 instead of size_int_kind.
25622 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
25623 * doc/tm.texi: Regenerate.
25624 * defaults.h (SIZETYPE): Provide a default value.
25625 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
25626 (SIZETYPE): Define.
25628 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
25630 * config/sh/sh.md: Use braced string notation where applicable.
25632 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
25634 * config/i386/i386.md (allocate_stack): Simplify.
25636 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
25638 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
25639 copy_to_mode_reg (Pmode, ...).
25640 (expand_builtin_frame_address): Ditto.
25641 * expr.c (emit_block_move_via_libcall): Ditto.
25642 (set_storage_via_libcall): Ditto.
25644 * config/i386/i386.c (ix86_expand_movmem): Ditto.
25645 (ix86_expand_setmem): Ditto.
25646 (ix86_trampoline_init): DItto.
25647 * config/i386/i386.md (cmpstrnsi): Ditto.
25649 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
25651 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
25652 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
25653 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
25654 (SH Options): Likewise.
25656 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
25658 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
25659 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
25660 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
25661 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
25662 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
25665 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
25667 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
25668 * config/i386/i386.c (ix86_decompose_address): Use
25669 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
25670 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
25671 thread pointer to a register.
25674 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
25676 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
25677 if Pmode != word_mode.
25678 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
25679 Pmode == SImode for TARGET_X32.
25681 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
25682 (tls_initial_exec_x32): Likewise.
25684 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
25687 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
25688 DISP_ADDR_OFFSET): New macros.
25689 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
25690 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
25691 (sh_legitimize_address): Add QImode displacement handling.
25692 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
25694 (sh_secondary_reload): Add QImode displacement handling.
25695 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
25696 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
25697 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
25698 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
25699 to register operands only.
25700 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
25701 (extendqihi2): Change insn to expander.
25702 (*extendqihi2_compact_reg): New insn.
25703 (movqi_i, movqi): Replace with ...
25704 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
25705 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
25706 Add new peepholes for QImode displacement addressing.
25708 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
25711 * doc/invoke.texi: Document -Wuseless-cast.
25713 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
25715 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
25716 * tree.h (handled_component_p): Reorder cases.
25717 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
25718 not initialize unsignedp.
25719 (loc_list_from_tree): Likewise.
25720 (fortran_common): Likewise.
25721 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
25723 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
25725 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
25726 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
25727 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
25728 (ix86_split_long_move): Ditto.
25729 (legitimize_tls_address): Use ix86_gen_sub3.
25730 (construct_plt_address): Assert that Pmode == DImode.
25732 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
25734 * config/i386/i386.md: Remove empty predicates and/or constraints.
25735 * config/i386/sync.md: Ditto.
25736 * config/i386/sse.md: Ditto.
25737 * config/i386/mmx.md: Ditto.
25738 * config/i386/pentium.md: Ditto.
25739 * config/i386/athlon.md: Ditto.
25741 2012-03-16 Richard Guenther <rguenther@suse.de>
25743 PR tree-optimization/52603
25744 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
25748 2012-03-14 Richard Guenther <rguenther@suse.de>
25750 PR tree-optimization/52571
25751 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
25752 flag_section_anchors check ...
25753 (vect_can_force_dr_alignment_p): ... here.
25755 2012-03-16 Martin Jambor <mjambor@suse.cz>
25757 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
25758 memory through MEM_REFs by calling extract_bit_field.
25760 2012-03-16 Richard Guenther <rguenther@suse.de>
25762 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
25763 and REFERENCE_TYPE interpretations.
25764 (can_native_interpret_type_p): New function.
25765 (fold_ternary_loc): Use native encode/interpret to fold
25766 BIT_FIELD_REFs of constants.
25768 2012-03-16 Richard Guenther <rguenther@suse.de>
25770 PR middle-end/52584
25771 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
25772 of vector constants and constructors.
25774 2012-03-16 Richard Guenther <rguenther@suse.de>
25776 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
25777 VIEW_CONVERT_EXPR to convert constants.
25778 (vect_is_simple_use): Treat all constants as vec_constant_def.
25780 2012-03-16 Richard Guenther <rguenther@suse.de>
25781 Kai Tietz <ktietz@redhat.com>
25783 PR middle-end/48814
25784 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
25785 side-effects completely in the pre-queue and use a temporary
25788 2012-03-16 Richard Guenther <rguenther@suse.de>
25790 * stor-layout.c (finish_bitfield_representative): Fall back
25791 to the conservative maximum size if we cannot compute the
25792 size of the tail padding.
25794 2012-03-16 Tristan Gingold <gingold@adacore.com>
25796 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
25797 __CRTL_VER and __VMS_VER.
25798 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
25799 and vms_c_get_vms_ver.
25800 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
25802 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
25803 (VMS_DEFAULT_VMS_VER): Define.
25804 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
25805 (VMS_DEFAULT_VMS_VER): Define.
25807 2012-03-16 Richard Guenther <rguenther@suse.de>
25809 * tree-vect-loop.c (get_initial_def_for_induction): Use
25810 build_constructor directly.
25811 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
25812 build_vector_from_val.
25813 * tree.c (build_vector_from_val): Avoid creating a constructor
25814 first when we want a constant vector.
25816 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25818 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
25820 2012-03-16 Richard Guenther <rguenther@suse.de>
25822 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
25823 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
25824 (struct tree_vector): Remove elements member, add variable size
25826 (build_vector_stat): Declare.
25827 (build_vector): Define in terms of build_vector_stat.
25828 * tree.c (build_vector): Rename to ...
25829 (build_vector_stat): ... this. Take array of trees as parameter.
25830 (build_vector_from_ctor): Adjust.
25831 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
25832 initializer_zerop): Adjust.
25833 * cfgexpand.c (expand_debug_expr): Likewise.
25834 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
25835 const_vector_from_tree): Likewise.
25836 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
25837 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
25838 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
25839 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
25840 (lto_input_ts_vector_tree_pointers): Adjust.
25841 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
25842 (write_ts_vector_tree_pointers): Adjust.
25843 * varasm.c (const_hash_1, compare_constant, copy_constant,
25844 output_constant): Adjust.
25845 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
25846 * print-tree.c (print_node): Adjust.
25847 * tree-pretty-print.c (dump_generic_node): Adjust.
25848 * tree-vect-generic.c (uniform_vector_p, vector_element,
25849 lower_vec_perm): Adjust.
25850 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
25851 * tree-vect-slp.c (vect_get_constant_vectors,
25852 vect_transform_slp_perm_load): Adjust.
25853 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
25854 * expmed.c (make_tree): Adjust.
25855 * config/i386/i386.c (ix86_expand_builtin): Adjust.
25856 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
25857 and implementation.
25858 (sparc_fold_builtin): Adjust.
25860 2012-03-16 Tristan Gingold <gingold@adacore.com>
25862 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
25863 * config/vms/vms-stdint.h: New file.
25865 2012-03-16 Tristan Gingold <gingold@adacore.com>
25867 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
25868 (ia64-hp-*vms*): Replaced by ...
25869 (*-*-*vms*): ... This new entry.
25871 2012-03-15 Jakub Jelinek <jakub@redhat.com>
25874 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
25875 (ix86_expand_vec_perm_const_1): Use it.
25878 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
25879 (avx2_permv4df): Remove.
25880 (avx2_permv4di): Macroize into...
25881 (avx2_perm<mode>): ... this using VI8F_256 iterator.
25882 (avx2_permv4di_1): Macroize into...
25883 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
25885 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
25887 * combine.c (apply_distributive_law): Do not distribute SUBREG.
25889 2012-03-15 Ira Rosen <irar@il.ibm.com>
25890 Ulrich Weigand <ulrich.weigand@linaro.org>
25892 * tree-vect-patterns.c (widened_name_p): Rename to ...
25893 (type_conversion_p): ... this. Add new argument to determine
25894 if it's a promotion or demotion operation. Check for
25895 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
25896 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
25898 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
25899 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
25901 (vect_recog_mixed_size_cond_pattern): Likewise and allow
25902 non-constant then and else clauses.
25904 2012-03-15 Ira Rosen <irar@il.ibm.com>
25905 Ulrich Weigand <ulrich.weigand@linaro.org>
25907 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
25908 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
25909 vect_pattern_recog.
25910 * tree-vect-patterns.c (widened_name_p): Pass basic block
25911 info to vect_is_simple_use.
25912 (vect_recog_dot_prod_pattern): Fail for basic blocks.
25913 (vect_recog_widen_sum_pattern): Likewise.
25914 (vect_handle_widen_op_by_const): Support basic blocks.
25915 (vect_operation_fits_smaller_type,
25916 vect_recog_over_widening_pattern): Likewise.
25917 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
25918 Update call to vect_is_simple_use.
25919 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
25921 (check_bool_pattern): Add an argument, update call to
25922 vect_is_simple_use and the recursive calls.
25923 (vect_recog_bool_pattern): Update relevant function calls.
25925 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
25926 (vect_pattern_recog_1): Check for reduction only in loops.
25927 (vect_pattern_recog): Add new argument. Support basic blocks.
25928 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
25929 info to vect_is_simple_use_1.
25930 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
25931 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
25933 2012-03-15 Jakub Jelinek <jakub@redhat.com>
25934 Andrew Pinski <apinski@cavium.com>
25936 PR middle-end/52592
25937 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
25938 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
25939 calls instead of __builtin_ir{int,ound}*.
25941 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25943 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
25946 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25948 * config.gcc (target_type_format_char): New. Document it. Set it for
25950 * configure.ac (gnu_unique_option): Use target_type_format_char
25951 in test. Comment rationale.
25952 * configure: Regenerate .
25954 2012-03-15 Jakub Jelinek <jakub@redhat.com>
25956 PR tree-optimization/52267
25957 * tree-vrp.c (masked_increment): New function.
25958 (register_edge_assert_for_2): Derive ASSERT_EXPRs
25959 from (X & CST1) cmp CST2 tests.
25961 2012-03-15 Richard Guenther <rguenther@suse.de>
25963 PR middle-end/52580
25964 * tree-data-ref.c (subscript_dependence_tester_1): Check
25965 all dimensions for non-conflicting access functions.
25967 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25970 * doc/invoke.texi [C++ Language Options]: Document
25971 -ftemplate-backtrace-limit.
25973 2012-03-15 Tristan Gingold <gingold@adacore.com>
25975 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
25976 before a parameter.
25978 2012-03-15 Tristan Gingold <gingold@adacore.com>
25980 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
25981 use DW_OP_call_frame_cfa.
25983 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
25986 * config/i386/i386-opts.h (pmode): New.
25988 * config/i386/i386.c (ix86_option_override_internal): Properly
25989 check and set ix86_pmode.
25991 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
25993 * config/i386/i386.opt (maddress-mode=): New.
25995 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
25997 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25999 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
26000 (dwarf2out_do_cfi_asm): Likewise.
26001 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
26003 (add_data_member_location_attribute): Likewise.
26004 (gen_array_type_die): Likewise.
26005 (gen_subprogram_die): Likewise.
26006 (gen_producer_string): Likewise.
26007 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
26008 Remove MIPS_DEBUGGING_INFO handling.
26009 (sdb_debug_hooks): Likewise.
26010 (sdbout_begin_block): Likewise.
26011 (sdbout_end_block): Likewise.
26012 (sdbout_begin_prologue): Likewise.
26013 (sdbout_start_source_file): Likewise.
26014 (sdbout_end_source_file): Likewise.
26015 (sdbout_init): Likewise.
26016 * system.h (MIPS_DEBUGGING_INFO): Poison.
26018 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26020 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
26021 (alpha_file_start) [MS_STAMP]: Remove.
26023 * config/alpha/elf.h (TARGET_GAS): Remove.
26024 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
26025 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
26026 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
26027 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
26028 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
26029 (alpha*-*-freebsd*): Likewise.
26030 (alpha*-*-netbsd*): Likewise.
26031 (alpha*-*-openbsd*): Likewise.
26032 (alpha*-*-*): Remove target_cpu_default2.
26033 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
26035 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
26036 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
26037 * config/alpha/alpha.c (print_operand): Always assume
26038 TARGET_AS_SLASH_BEFORE_SUFFIX.
26039 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
26040 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
26041 ("*builtin_setjmp_receiver_er_1"): Remove.
26042 * config/alpha/alpha.opt (malpha-as): Remove.
26044 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
26046 Remove DEC Unix reference.
26048 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
26049 (EXTENDED_COFF): Remove.
26050 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
26051 (EXTENDED_COFF): Don't undef.
26052 * config/alpha/alpha.c (alpha_file_start): Always assume
26054 Don't set targetm.asm_file_start_file_directive.
26055 [!OBJECT_FORMAT_ELF]: Remove.
26056 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
26058 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
26059 (DBX_DEBUGGING_INFO): Remove.
26060 (MIPS_DEBUGGING_INFO): Remove.
26061 (PREFERRED_DEBUGGING_TYPE): Remove.
26062 (DBX_OUTPUT_SOURCE_LINE): Remove.
26063 (SDB_OUTPUT_SOURCE_LINE): Remove.
26064 (DBX_CONTIN_LENGTH): Remove.
26065 (NO_DBX_FUNCTION_END): Remove.
26066 (ASM_STABS_OP): Remove.
26067 (ASM_STABN_OP): Remove.
26068 (ASM_STABD_OP): Remove.
26069 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
26070 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
26071 (PUT_SDB_DEF): Remove.
26072 (PUT_SDB_PLAIN_DEF): Remove.
26073 (PUT_SDB_TYPE): Remove.
26074 (sdb_label_count): Remove.
26075 (PUT_SDB_BLOCK_START): Remove.
26076 (PUT_SDB_BLOCK_END): Remove.
26077 (PUT_SDB_FUNCTION_START): Remove.
26078 (PUT_SDB_FUNCTION_END): Remove.
26079 (PUT_SDB_EPILOGUE_END): Remove.
26080 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
26081 (MIPS_DEBUGGING_INFO): Don't undef.
26082 (DBX_DEBUGGING_INFO): Don't undef.
26083 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
26084 (MIPS_DEBUGGING_INFO): Don't undef.
26085 (DBX_DEBUGGING_INFO): Don't undef.
26086 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
26087 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
26089 (alpha_start_function): Likewise.
26090 (sdb_label_count): Remove.
26091 (alpha_output_filename): Remove DBX_DEBUG handling.
26092 (alpha_file_start): Likewise.
26094 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26096 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
26097 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
26098 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
26100 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
26101 (ld_tls_support): Remove Solaris 8 references.
26102 (lwp_dir, lwp_spec): Remove support for alternate thread library.
26103 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
26104 * configure: Regenerate.
26105 * config.in: Regenerate.
26107 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
26108 * config/i386/sol2.h: Remove Solaris 8 references.
26110 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
26111 (i?86-*-solaris2.9): ... this.
26112 Remove Solaris 8 references.
26113 (Specific, *-*-solaris2*): Document Solaris 8 removal.
26114 Remove Solaris 8 references.
26116 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26118 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
26119 (mips-sgi-irix6.5*): Remove.
26120 * config.host (mips-sgi-irix*): Remove.
26121 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
26122 (set_have_as_tls): Remove *-*-irix6*.
26123 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
26124 * configure: Regenerate.
26126 * config/mips/iris6.h: Remove.
26127 * config/mips/iris6.opt: Remove.
26128 * config/mips/t-irix6: Remove.
26130 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
26131 (TARGET_IRIX6): Remove.
26132 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
26133 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
26134 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
26136 (mips_file_start): Likewise.
26137 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
26139 * config/mips/driver-native.c [__sgi__]: Remove.
26140 (host_detect_local_cpu) [__sgi__]: Remove.
26142 * config/mips/gnu-user.h: Remove iris5.h reference.
26144 * config/mips/mips-modes.def: Remove IRIX 6 reference.
26145 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
26146 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
26149 * gcc.c (main): Move asm_debug initialization ...
26150 (asm_debug): ... here.
26152 * ginclude/stddef.h (__STDDEF_H__): Don't define.
26154 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
26155 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
26156 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
26157 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
26158 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
26159 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
26161 * doc/tm.texi: Regenerate.
26163 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
26165 (MIPS Options, -march): Remove IRIX reference.
26166 * doc/install.texi (Binaries, SGI IRIX): Remove.
26167 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
26169 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
26171 2012-03-14 Martin Jambor <mjambor@suse.cz>
26173 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
26174 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
26175 (expand_expr_real_1): Do not handle misalignment if modifier is
26178 2012-03-14 Richard Guenther <rguenther@suse.de>
26180 PR middle-end/52584
26181 * tree-vect-generic.c (type_for_widest_vector_mode): Take
26182 element type instead of mode, use build_vector_type_for_mode
26183 instead of the langhook, build a vector of proper signedness.
26184 (expand_vector_operations_1): Adjust.
26186 2012-03-14 Richard Guenther <rguenther@suse.de>
26188 PR middle-end/52582
26189 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
26190 a cgraph node for a FUNCTION_DECL that comes from a constructor.
26191 (gimple_get_virt_method_for_binfo): Likewise.
26193 2012-03-14 Richard Guenther <rguenther@suse.de>
26195 PR tree-optimization/52571
26196 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
26197 flag_section_anchors check ...
26198 (vect_can_force_dr_alignment_p): ... here. Do not re-align
26199 DECL_COMMON variables.
26201 2012-03-14 Richard Guenther <rguenther@suse.de>
26203 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
26204 * stor-layout.c (start_bitfield_representative): New function.
26205 (finish_bitfield_representative): Likewise.
26206 (finish_bitfield_layout): Likewise.
26207 (finish_record_layout): Call finish_bitfield_layout.
26208 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
26209 for QUAL_UNION_TYPE fields.
26210 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
26211 Stream DECL_BIT_FIELD_REPRESENTATIVE.
26212 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
26214 PR middle-end/52080
26215 PR middle-end/52097
26216 PR middle-end/48124
26217 * expr.c (get_bit_range): Unconditionally extract bitrange
26218 from DECL_BIT_FIELD_REPRESENTATIVE.
26219 (expand_assignment): Adjust call to get_bit_range.
26221 2012-03-14 Richard Guenther <rguenther@suse.de>
26223 PR middle-end/52578
26224 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
26225 the outermost conversion is a sign-change only.
26226 (fold_binary_loc): Disregard widening and sign-changing
26227 conversions when we determine if two variables are equal
26229 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
26230 (T1)x if the outermost conversion is a sign-change only.
26232 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
26235 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
26237 * config/i386/predicates.md (constant_call_address_operand): Declare
26238 as special predicate. Update all uses.
26240 2012-03-13 Jakub Jelinek <jakub@redhat.com>
26243 * c-parser.c (c_parser_postfix_expression)
26244 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
26246 * config/i386/smmintrin.h: Avoid /* within a comment.
26247 * config/i386/nmmintrin.h: Likewise.
26249 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
26251 * config/i386/i386.md (xbegin): Remove constraint from expander.
26253 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
26255 * config/i386/predicates.md (constant_call_address_operand): Declare
26256 as special predicate. Update all uses.
26257 * config/i386/i386.md: Remove mode from constant_call_address_operand
26259 * config/i386/i386.c (ix86_output_call_insn): Call
26260 constant_call_address_operand with VOIDmode.
26262 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
26264 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
26265 AND zero extended address correctly.
26267 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
26269 * config/i386/predicates.md (tls_symbolic_operand): Declare as
26271 (tls_modbase_operand): Ditto.
26272 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
26273 tls_modbase_operand predicates.
26275 2012-03-13 Martin Jambor <mjambor@suse.cz>
26277 * expr.c (expand_assignment): Handle misaligned scalar writes to
26278 memory through top-level MEM_REFs by calling store_bit_field.
26280 2012-03-13 Richard Guenther <rguenther@suse.de>
26282 PR middle-end/52134
26283 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
26284 if Y is a constant multiple of 1 << CST.
26286 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
26289 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
26290 offset (size) to a value the insns can deal with.
26291 (expand_epilogue): Ditto.
26293 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
26295 * config/arm/neon.ml (ops): Fixup expected instructions for
26296 unsigned vector compares.
26298 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
26300 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
26301 addresses only when %reg is not in word mode.
26303 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26305 * config/microblaze/microblaze.md: Fix typo.
26306 * tree-if-conv.c: Likewise.
26307 * tree-vect-patterns.c: Likewise.
26309 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26311 * config.gcc (extra_passes): Remove.
26312 * configure.ac (extra_passes): Don't substitute.
26313 * configure: Regenerate.
26314 * Makefile.in (EXTRA_PASSES): Remove.
26315 (GCC_PASSES): Remove $(EXTRA_PASSES).
26316 (MOSTLYCLEANFILES): Likewise.
26317 (native): Likewise.
26318 (install-common): Likewise.
26320 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
26322 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
26323 * config/i386/i386.c (ix86_decompose_address): Use
26324 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
26325 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
26326 thread pointer to a register.
26328 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
26330 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
26331 on tls_symbolic_operand.
26332 (tls_global_dynamic_64_<mode>): Likewise.
26334 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
26337 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
26338 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
26340 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
26343 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
26344 type from reg_class_t to enum reg_class.
26345 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
26347 2012-03-12 Andrew Pinski <apinski@cavium.com>
26349 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
26350 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
26351 (value_replacement): Likewise.
26352 (empty_block_p): Check also if the PHIs for the block are empty.
26354 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
26357 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
26358 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
26359 r184615 from 2012-02-28.
26361 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
26363 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
26364 (ix86_gen_tls_local_dynamic_base_64): Likewise.
26365 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
26366 and ix86_gen_tls_local_dynamic_base_64.
26367 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
26368 ix86_gen_tls_local_dynamic_base_64.
26370 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
26371 (*tls_global_dynamic_64_<mode>): This.
26372 (tls_global_dynamic_64): Renamed to ...
26373 (tls_global_dynamic_64_<mode>): This.
26374 (*tls_local_dynamic_base_64): Renamed to ...
26375 (*tls_local_dynamic_base_64_<mode>): This.
26376 (tls_local_dynamic_base_64): Renamed to ...
26377 (tls_local_dynamic_base_64_<mode>): This.
26379 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
26381 * config/i386/i386.c (ix86_option_override_internal): Properly
26382 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
26383 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
26384 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
26385 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26387 * config/i386/sse.md (sse3_monitor64): Renamed to ...
26388 (sse3_monitor64_<mode>): This.
26390 2012-03-12 Tristan Gingold <gingold@adacore.com>
26392 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
26393 (ia64_function_arg_advance): Ditto.
26395 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26397 * config.gcc (mips*-*-openbsd*): Remove.
26398 * config/mips/openbsd.h: Remove.
26399 * config/mips/sdb.h: Remove.
26401 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
26402 * config/mips/mips.c (sdb_label_count): Remove.
26403 (mips_debugger_offset): Remove #if 0 code.
26404 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
26405 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
26407 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26409 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
26410 binutils reference.
26411 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
26412 Update binutils references.
26413 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
26414 Update binutils reference.
26415 Update Sun as/GNU ld caveat.
26416 Document binutils largefile requirement for LTO plugin.
26417 Remove reference to alternate libpthread.
26419 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26421 * config.gcc (alpha*-dec-osf5.1*): Remove.
26422 * config.host (alpha*-dec-osf*): Remove.
26423 * configure.ac (*-*-osf*): Remove.
26424 (alpha*-dec-osf*): Remove.
26425 * configure: Regenerate.
26427 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
26428 config/alpha/va_list.h, config/alpha/x-osf: Remove.
26430 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
26431 * config/alpha/alpha.c (struct machine_function): Update comment.
26432 (alpha_start_function): Remove Tru64 UNIX as handling for
26434 * config/alpha/alpha.md ("exception_receiver"): Remove
26435 TARGET_LD_BUGGY_LDGP.
26436 ("*exception_receiver_2"): Likewise.
26437 * except.c (finish_eh_generation): Remove Tru64 reference.
26438 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
26439 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
26440 * target.def (handle_pragma_extern_prefix): Remove.
26442 * Makefile.in (mips-tfile.o-warn): Remove.
26443 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
26444 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
26445 * mips-tdump.c, mips-tfile.c: Remove.
26447 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
26449 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
26450 (Specific, alpha*-dec-osf5.1): Note removal.
26451 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
26453 * doc/tm.texi: Regenerate.
26454 * doc/trouble.texi (Cross-Compiler Problems): Remove.
26456 2012-03-12 Richard Guenther <rguenther@suse.de>
26458 * config/arm/arm.c (neon_dereference_pointer): Do not call
26459 covert during RTL expansion.
26461 2012-03-12 Tristan Gingold <gingold@adacore.com>
26463 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
26464 Options. Mention -mpointer-size.
26466 2012-03-12 Richard Guenther <rguenther@suse.de>
26468 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
26469 build_nonstandard_integer_type.
26471 2012-03-12 Richard Guenther <rguenther@suse.de>
26473 * tree.c (signed_or_unsigned_type_for): Use
26474 build_nonstandard_integer_type.
26475 (signed_type_for): Adjust documentation.
26476 (unsigned_type_for): Likewise.
26477 * tree-pretty-print.c (dump_generic_node): Use standard names
26478 for non-standard integer types if available.
26480 2012-03-12 Tristan Gingold <gingold@adacore.com>
26482 * config/vms/vms.opt: Add vms-opts.h header.
26483 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
26485 (-mvms-return-codes): Document.
26486 (-mpointer-size): New option.
26487 (vms_pointer_size): Add enumeration.
26488 * config/vms/vms-opts.h: New file.
26489 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
26490 __INITIAL_POINTER_SIZE.
26491 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
26492 (C_COMMON_OVERRIDE_OPTIONS): Define.
26493 (DWARF2_ADDR_SIZE): Define.
26494 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
26495 * config/vms/vms-protos.h (vms_c_common_override_options):
26497 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
26498 if -mno-pointer-size.
26499 (vms_c_common_override_options): New function.
26500 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
26501 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
26502 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
26503 and flag_vms_pointer_size.
26504 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
26505 * config.gcc (*-*-*vms*): Define xm_file.
26506 (alpha*-dec-*vms*): Do not define xm_file.
26507 (alpha64-dec-*vms*): Remove.
26508 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
26511 2012-03-12 Jakub Jelinek <jakub@redhat.com>
26513 PR tree-optimization/51721
26514 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
26515 if (int) unsvar cmp CST.
26517 2012-03-12 Richard Guenther <rguenther@suse.de>
26519 * tree-sra.c (create_access_replacement): Only rename the replacement
26520 if we can rewrite it into SSA form. Properly mark register typed
26521 replacements that we cannot rewrite with TREE_ADDRESSABLE.
26522 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
26523 for aggregate or BLKmode results.
26525 2012-03-12 Jakub Jelinek <jakub@redhat.com>
26527 PR tree-optimization/52533
26528 * tree-vrp.c (register_edge_assert_for_2): Use double_int
26529 type for mask, only handle shifts by non-zero in-range
26530 shift count, for LE_EXPR and GT_EXPR if new_val is
26531 maximum, don't add the assertion.
26533 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
26535 * doc/invoke.texi: Document -mrtm option.
26536 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
26537 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
26538 (ix86_handle_option): Handle OPT_mrtm.
26539 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
26541 (x86_64-*-*): Ditto.
26542 * i386-builtin-types.def (INT_FTYPE_VOID): New.
26543 * config/i386/i386-c.c (ix86_target_macros_internal): Define
26545 (ix86_target_string): Define -mrtm option.
26547 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
26549 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
26550 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
26551 IX86_BUILTIN_XTEST.
26552 (bdesc_special_args): Ditto.
26553 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
26554 (ix86_expand_special_args_builtin): Handle new built-in type.
26555 (ix86_expand_builtin): Handle XABORT instruction.
26556 * config/i386/i386.h (TARGET_RTM): New.
26557 * config/i386/i386.md (UNSPECV_XBEGIN): New.
26558 (UNSPECV_XEND): Ditto.
26559 (UNSPECV_XABORT): Ditto.
26560 (UNSPECV_XTEST): Ditto.
26567 * config/i386/i386.opt (mrtm): New.
26568 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
26569 * config/i386/rtmintrin.h: New header.
26570 * config/i386/xtestintrin.h: Ditto.
26572 2012-03-12 Tristan Gingold <gingold@adacore.com>
26574 * ginclude/stddef.h: Adjust previous patch.
26575 Use __VMS__ instead of VMS.
26577 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
26579 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
26580 Also convert sequences with CC setting arithmetic instruction.
26582 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
26584 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
26585 from C Language Options to Preprocessor Options.
26586 (C Dialect Options): Move -no-integrated-cpp documentation
26588 (Preprocessor Options): ...to here. Rewrite the description
26589 so it makes more sense, and remove discussion of merging front ends.
26591 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
26593 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
26595 (ix86_expand_setmem): Likewise.
26597 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
26599 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
26602 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
26604 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
26605 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
26607 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
26609 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
26611 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
26613 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
26616 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
26617 Uros Bizjak <ubizjak@gmail.com>
26619 * config/i386/predicates.md (call_insn_operand): Allow
26620 constant_call_address_operand in Pmode only.
26621 (sibcall_insn_operand): Ditto.
26622 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
26623 (*call_vzeroupper): Ditto.
26625 (*sibcall_vzeroupper): Ditto.
26626 (*call_value): Ditto.
26627 (*call_value_vzeroupper): Ditto.
26628 (*sibcall_value): Ditto.
26629 (*sibcall_value_vzeroupper): Ditto.
26630 (*indirect_jump): Ditto.
26631 (*tablejump_1): Ditto.
26632 (indirect_jump): Convert memory address to word mode for TARGET_X32.
26633 (tablejump): Ditto.
26634 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
26637 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
26640 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
26641 Use movrt_negc instead of negc pattern for non-SH2A.
26642 (*movnegt): Remove.
26643 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
26645 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
26647 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
26648 if Pmode != word_mode.
26649 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
26650 Pmode == SImode for TARGET_X32.
26652 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
26653 (tls_initial_exec_x32): Likewise.
26655 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
26657 PR rtl-optimization/52528
26658 * combine.c (can_combine_p): Add setting of subst_low_luid
26659 before call to expand_field_assignment().
26661 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
26663 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
26664 and related program names.
26666 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
26668 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
26670 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
26673 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
26674 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
26675 to set code to 'q'.
26676 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
26677 (*movdi_internal_rex64): Use %E operand modifier for lea.
26678 (*movsi_internal): Ditto.
26680 (*lea<mode>_2): Ditto.
26681 (*lea_{3,4,5,6}_zext): Ditto.
26682 (*tls_global_dynamic_32_gnu): Ditto.
26683 (*tls_global_dynamic_64): Ditto.
26684 (*tls_dynamic_gnu2_lea_32): Ditto.
26685 (*tls_dynamic_gnu2_lea_64): Ditto.
26686 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
26688 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
26690 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
26691 redefine to be NULL if the current bit-size is different from the
26692 configured bit-size.
26694 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
26695 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
26696 set the default tuning. Add asserts to make sure the cpu and tune
26697 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
26698 test whether the index is set, instead of > 0.
26699 (rs6000_file_start): Do not reset the default cpu if the current
26700 bit-size is different from the configured bit-size.
26702 2012-03-09 Tristan Gingold <gingold@adacore.com>
26704 * config/vms/vms-crtlmap.map: Add comments.
26705 Add entries needed to build Ada RTS.
26707 2012-03-09 Tristan Gingold <gingold@adacore.com>
26709 * ginclude/stddef.h: Do not define __size_t on VMS.
26711 2012-03-09 Tristan Gingold <gingold@adacore.com>
26713 * c-tree.h (c_default_pointer_mode): New variable.
26714 * c-decl.c (c_default_pointer_mode): New variable.
26715 (c_build_pointer_type): New function.
26716 (grokdeclarator): Call c_build_pointer_type instead
26717 of build_pointer_type.
26719 * config/vms/vms-c.c: Include c-tree.h
26720 (saved_pointer_mode): New variable.
26721 (handle_pragma_pointer_size): New function.
26722 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
26723 (vms_c_register_pragma): Register __pointer_size and
26724 __required_pointer_size pragmas.
26726 2012-03-09 Tristan Gingold <gingold@adacore.com>
26728 * config/vms/vms-c.c (vms_construct_include_filename): New function.
26729 (vms_c_register_includes): Reference it.
26731 2012-03-09 Andrew Pinski <apinski@cavium.com>
26733 PR middle-end/51988
26734 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
26735 print_generic_expr.
26736 (tree_ssa_phiopt_worker): Go through all the PHIs for
26737 value_replacement instead of just the singleton one.
26738 (value_replacement): Change return type to int. Return 0 instead of
26740 Allow the middle basic block to contain more than just the defining
26742 Handle non empty middle basic blocks.
26743 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
26745 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
26747 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
26748 array reference and component reference.
26749 (analyze_scalar_evolution_for_address_of): New.
26751 2012-03-08 Jie Zhang <jzhang918@gmail.com>
26754 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
26755 (hwloop_pattern_reg): Fix set but not used warning.
26756 (bfin_reorg_loops): Remove unused parameter.
26757 (bfin_reorg): Update use of bfin_reorg_loops.
26759 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
26761 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
26762 with integer parameters in registers.
26763 (gen_push): Push register in word_mode instead of Pmode.
26764 (ix86_emit_save_regs): Likewise.
26765 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
26766 (gen_pop): Pop register in word_mode instead of Pmode.
26767 (ix86_emit_restore_regs_using_pop): Likewise.
26768 (ix86_expand_prologue): Replace Pmode with word_mode for push
26769 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
26770 restore RAX and R10 in word_mode.
26771 (ix86_emit_restore_regs_using_mov): Restore integer registers
26773 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
26775 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
26776 (ix86_split_long_move): Likewise.
26778 * config/i386/i386.md (W): New.
26779 (*push<mode>2_prologue): Replace :P with :W.
26780 (*pop<mode>1): Likewise.
26781 (*pop<mode>1_epilogue): Likewise.
26782 (push/pop peephole2): Use word_mode scratch registers.
26784 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
26786 * config/i386/predicates.md (indirect_branch_operand): Simplify.
26788 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
26790 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
26791 for constants in [-63,63].
26793 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
26797 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
26799 * config/i386/i386.c (ix86_print_operand_address): Only handle
26800 zero-extended DImode addresses.
26802 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26804 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
26805 * configure: Regenerate.
26807 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
26810 * config/avr/avr.c (avr_mem_clobber): New static function.
26811 (avr_expand_delay_cycles): Add memory clobber operand to
26812 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
26813 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
26814 (enable_interrupt, disable_interrupt): New expander.
26815 (nopv, sleep, wdr): New expanders.
26816 (delay_cycles_1): Add memory clobber.
26817 (delay_cycles_2): Add memory clobber.
26818 (delay_cycles_3): Add memory clobber.
26819 (delay_cycles_4): Add memory clobber.
26820 (cli_sei): New insn from former "enable_interrupt",
26821 "disable_interrupt" with memory clobber.
26822 (*wdt): New insn from former "wdt" with memory clobber.
26823 (*nopv): Similar, but for "nopv".
26824 (*sleep): Similar, but for "sleep".
26826 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
26827 Kaz Kojima <kkojima@gcc.gnu.org>
26830 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
26831 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
26832 (SUBTARGET_OVERRIDE_OPTIONS): Define.
26834 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
26836 * config/i386/predicates.md (x86_64_zext_general_operand): New.
26837 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
26838 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
26840 2012-03-07 Walter Lee <walt@tilera.com>
26842 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
26843 REG_CFA_* notes for the stack pointer.
26844 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
26845 EH_RETURN_STACKADJ_RTX.
26846 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
26847 generate REG_CFA_* notes for the stack pointer.
26848 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
26849 by EH_RETURN_STACKADJ_RTX.
26851 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
26853 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
26854 when __AVR_3_BYTE_PC__ is defined.
26856 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
26858 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
26859 (ix86_print_operand): Handle '^'.
26860 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
26861 using P mode iterator. Add %^ to asm template to conditionally emit
26863 (*rep_movdi_rex64): Ditto.
26864 (*strsetdi_rex_1): Ditto.
26865 (*rep_stosdi_rex64): Ditto.
26866 (*strmov{si,hi,qi}_1): Add %^ to asm template to
26867 conditionally emit addr32 prefix.
26868 (*rep_mov{si,qi}): Ditto.
26869 (*strset{si,hi,qi}): Ditto.
26870 (*rep_stos{si,qi}): Ditto.
26871 (*cmpstrnqi_nz_1): Ditto.
26872 (*cmpstrnqi_1): Ditto.
26873 (*strlenqi_1): Ditto.
26875 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
26877 * config/i386/i386.c (function_value_64): Return pointers in
26878 word_mode instead of Pmode.
26879 (ix86_promote_function_mode): Likewise.
26881 2012-03-07 Richard Guenther <rguenther@suse.de>
26883 * coverage.c (get_gcov_type): Use type_for_mode.
26884 (get_gcov_unsigned_t): Likewise.
26885 * expr.c (store_constructor): Use type_for_mode.
26886 (try_casesi): Likewise.
26887 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
26888 (add_standard_iv_candidates): Use standard type trees.
26889 * dojump.c (do_jump): Remove dead code.
26891 2012-03-07 Richard Guenther <rguenther@suse.de>
26893 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
26895 2012-03-07 Richard Guenther <rguenther@suse.de>
26897 * convert.c (strip_float_extensions): Move ...
26898 * tree.c (strip_float_extensions): ... here.
26900 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
26903 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
26905 2012-03-07 Richard Guenther <rguenther@suse.de>
26907 * omp-low.c (extract_omp_for_data): Use signed_type_for.
26908 (expand_omp_for_generic): Likewise.
26909 (expand_omp_for_static_nochunk): Likewise.
26910 (expand_omp_for_static_chunk): Likewise.
26911 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
26912 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26913 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
26914 Use unsigned_type_for.
26915 (vect_create_cond_for_align_checks): Use signed_type_for.
26917 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
26919 PR rtl-optimization/52203
26920 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
26921 all callers to pass NULL except ...
26922 (reset_sched_cycles_in_current_ebb): ... here, save the value
26923 in new variable 'empty'. Increase issue_rate only for
26926 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
26929 * Makefile.in: Let install-gcc-ar depend on installdirs,
26930 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
26931 Don't double canonicalize if cross-compiling.
26933 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
26936 * config/avr/avr.c (expand_epilogue): Fix order of restoration
26937 to: RAMPZ, RAMPY, RAMPX, RAMPD.
26938 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
26940 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
26943 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
26945 * config/avr/avr.md (xload_8): Adjust insn length.
26947 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
26950 * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
26951 if RAMPZ affects reading from RAM.
26953 2012-03-07 Richard Guenther <rguenther@suse.de>
26957 * doc/invoke.texi (Precompiled Headers): Remove sentence that
26958 suggests you can include PCHs from inside another header.
26960 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
26962 PR middle-end/52515
26963 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
26965 2012-03-07 Kai Tietz <ktietz@redhat.com>
26967 * doc/invoke.texi (fwritable-relocated-rdata): Document
26968 new Cygwin/MinGW target option.
26969 * config/i386/winnt.c (i386_pe_unique_section): Ignore
26970 reloc if flag -fwritable-relocated-rdata is not set.
26971 (i386_pe_section_type_flags): Likewise.
26972 * config/i386/cygming.opt (fwritable-relocated-rdata):
26973 Add new flag variable flag_writable_rel_rdata.
26975 2012-03-07 Richard Guenther <rguenther@suse.de>
26977 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
26978 precision against gimple constraints.
26980 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
26982 PR middle-end/52372
26983 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
26985 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
26986 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
26988 (init_emit_regs): Move associated initialization to...
26989 (init_emit_once): ...here.
26991 2012-03-06 Richard Henderson <rth@redhat.com>
26993 * config/m68k/m68k.h (ISA_HAS_TAS): New.
26994 * config/m68k/sync.md (atomic_test_and_set): Use it.
26995 (atomic_test_and_set_1): Likewise.
26997 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27000 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
27001 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
27002 (vector_ltgt<mode>): Likewise.
27003 (vector_ordered<mode>): Likewise.
27004 (vector_unordered<mode>): Likewise.
27005 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
27007 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
27009 * trans-mem.c: New typedef for tm_region_p.
27010 Define vector types for tm_region_p.
27011 (tm_region_init): Replace region_worklist to a vector called
27014 2012-03-06 Richard Guenther <rguenther@suse.de>
27016 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
27017 MEM_REF with constant pointer operand.
27019 2012-03-06 Richard Guenther <rguenther@suse.de>
27021 PR middle-end/52493
27022 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
27024 2012-03-06 Tristan Gingold <gingold@adacore.com>
27026 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
27027 (external_model_kind): Improve documentation.
27028 (vms_pragma_extern_model): Handle relaxed_redef.
27029 (vms_c_register_pragma): Allow expansion for nomember_alignment.
27031 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
27033 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
27034 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
27035 Some more notes on EIND usage and reorder EIND subsection.
27037 2012-03-06 Tristan Gingold <gingold@adacore.com>
27039 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
27040 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
27042 2012-03-06 Tristan Gingold <gingold@adacore.com>
27044 * config/vms/t-vmsnative (version): Define.
27045 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
27047 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
27049 PR rtl-optimization/52250
27050 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
27051 to put note list into. Unconditionally call move_bb_info.
27052 (move_bb_info): Do not assert the blocks being in the same region,
27053 just drop the note list if they are not.
27055 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
27058 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
27059 and use unified expansion logic.
27060 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
27061 closer to the existing movt insn.
27062 (negc): Rename insn to *negc. Add new expander.
27063 (movnegt): Use xor pattern for T bit negation. Reserve helper
27064 constant for negc pattern.
27065 (*movnegt): New insn and splitter.
27067 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
27069 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
27072 2012-03-05 Richard Henderson <rth@redhat.com>
27074 * genemit.c (main): Include "target.h" in insn-emit.c.
27075 * Makefile.in (insn-emit.o): Depend on TARGET_H.
27076 * config/sh/sync.md (atomic_test_and_set): Reference
27077 targetm.atomic_test_and_set_trueval instead of
27078 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
27080 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
27082 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
27085 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
27087 * langhooks.c (add_builtin_type): New function.
27088 * langhooks.h (add_builtin_type): Export it.
27089 * config/mep/mep.c (mep_init_builtins): Use it.
27090 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
27092 2012-03-05 Jakub Jelinek <jakub@redhat.com>
27095 * tree.h (BLOCK_SAME_RANGE): Define.
27096 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
27097 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
27098 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
27099 isn't equal to supercontext fragment's fragment chain.
27100 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
27102 (blocks_nreverse_all): Likewise.
27103 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
27104 BLOCK_SUPERCONTEXT to supercontext fragment instead of
27105 supercontext fragment's fragment origin.
27106 * dwarf2out.c (add_high_low_attributes): If stmt has the same
27107 range as its parent (or parents thereof etc.), use the parent's
27108 DW_AT_ranges value instead of creating a new .debug_ranges range.
27110 2012-03-05 Richard Henderson <rth@redhat.com>
27113 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
27114 * omp-low.c (expand_omp_atomic): Assume anything aligned to
27115 BIGGEST_ALIGNMENT is aligned.
27117 2012-03-05 Richard Henderson <rth@redhat.com>
27119 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
27120 * config/sh/sh.c: ... here.
27122 2012-03-05 Richard Henderson <rth@redhat.com>
27125 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
27126 instead of calling negqi2 directly.
27128 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
27130 PR middle-end/52463
27131 * trans-mem.c (tm_region_init): Use last_basic_block.
27133 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
27135 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
27136 * config/sh/sync.md (atomic_test_and_set): New expander.
27137 (tasb, atomic_test_and_set_soft): New insns.
27138 * config/sh/sh.opt (menable-tas): New option.
27139 * doc/invoke.texi (SH Options): Document it.
27141 2012-03-05 Richard Guenther <rguenther@suse.de>
27143 * cfgloop.c (verify_loop_structure): Verify dominators before
27145 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
27146 dominators from here.
27147 * graphite-scop-detection.c (create_sese_edges): Likewise.
27148 * loop-doloop.c (doloop_optimize_loops): Likewise.
27149 * loop-init.c (loop_optimizer_init): Likewise.
27150 * loop-unroll.c (unroll_and_peel_loops): Likewise.
27151 * loop-unswitch.c (unswitch_loops): Likewise.
27152 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
27153 * tree-parloops.c (parallelize_loops): Likewise. Verify
27154 only when checking is enabled.
27155 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
27157 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
27159 * genautomata.c (parse_automata_opt): New static function.
27160 (initiate_automaton_gen): Remove all option handling code. Remove
27161 argc argument. All callers changed.
27162 (main): Call init_rtx_reader_args_cb with the new function as argument.
27164 2012-03-05 Richard Guenther <rguenther@suse.de>
27166 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
27167 * tree-if-conv.c (combine_blocks): Free post-dominator info
27169 * tree-parloops.c (create_parallel_loop): Free and re-compute
27170 dominator info after breaking it.
27172 2012-03-05 Richard Guenther <rguenther@suse.de>
27174 PR middle-end/52353
27175 * optabs.h (trapv_unoptab_p): New function.
27176 (trapv_binoptab_p): Likewise.
27177 * optabs.c (expand_binop): Use emit_libcall_block_1 with
27178 a proper equiv_may_trap argument.
27179 (expand_unop): Likewise.
27180 (emit_libcall_block_1): Take extra argument whether the
27181 instruction may trap. Renamed from ...
27182 (emit_libcall_block): ... this. New wrapper.
27184 2012-03-05 Jakub Jelinek <jakub@redhat.com>
27186 PR tree-optimization/51721
27187 * tree-vrp.c (register_edge_assert_for_2): If comparing
27188 lhs of right shift by constant with an integer constant,
27189 add ASSERT_EXPRs for the rhs1 of the right shift.
27191 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
27193 2012-03-05 Richard Guenther <rguenther@suse.de>
27195 * tree.c (integer_zerop): Handle VECTOR_CSTs.
27196 (integer_onep): Likewise.
27197 (integer_all_onesp): Likewise.
27199 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
27201 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
27203 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
27205 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
27206 instead of TARGET_64BIT.
27208 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
27210 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
27213 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
27215 * config/i386/i386.c (ix86_print_operand_address): Only handle
27216 zero-extended DImode addresses.
27218 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
27220 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
27221 taken and cputaken as bool.
27223 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
27225 * config/i386/constraints.md (Ya): New internal constraint.
27226 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
27227 (*zero_extendsidi2_rex64): Add x,x alternative.
27228 (*zero_extendsidi2): Ditto. Add o,0 alternative.
27229 Remove flags reg clobber. Adjust corresponding splits.
27230 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
27231 zero_extendqisi2 expanders using SWI12 mode iterator.
27232 (zero_extend<mode>si2_and): Macroize insn from
27233 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
27235 (*zero_extend<mode>si2): Macroize insn from
27236 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
27237 (*zero_extend*2_movzbl_and): Remove insn patterns.
27238 (zero_extendqihi2_and): Merge corresponding splitter.
27239 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
27240 (*zero_extend*2_movzbl_and): Remove insn patterns.
27241 (*anddi_1): Split TYPE_IMOVX instructions.
27242 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
27244 (and->zext splitter): Add splitter pattern.
27245 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
27247 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
27249 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
27251 (Debugging Options): Likewise.
27252 (Optimize Options): Likewise.
27253 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
27254 with other architectures. Use official processor names with correct
27255 spelling/capitalization. Fix formatting and grammar issues.
27256 (i386 and x86-64 Windows Options): Similar cleanup here.
27258 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
27260 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
27262 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
27264 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
27265 DBX_REGISTER_NUMBER.
27267 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
27269 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
27270 operand is CONST_INT. Take COSTS_N_INSNS into account.
27271 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
27274 2012-03-02 Richard Henderson <rth@redhat.com>
27276 * optabs.c (expand_atomic_test_and_set): Honor
27277 atomic_test_and_set_trueval even when atomic_test_and_set
27278 optab is not in use.
27280 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
27284 * config/sh/sh.c (sh_register_move_cost): Increase cost between
27285 GENERAL_REGS and FP_REGS for SImode.
27287 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
27290 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
27291 (absdi2): New expander.
27292 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
27294 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
27296 * config/sh/sync.md (atomic_exchange<mode>): New expander.
27297 (atomic_exchange<mode>_soft): New insn.
27299 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
27301 * config/sh/sync.md: Update copyright notice dates.
27302 (atomic_compare_and_swap<mode>): Use SImode for return value instead
27304 (atomic_compare_and_swap<mode>_soft): Likewise.
27306 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
27309 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
27310 * config/sh/sh.c: Update copyright notice dates.
27311 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
27312 alignment for TARGET_HARD_SH4.
27313 (sh_option_override): Reduce default function alignment. Set
27314 loop alignment to 4 bytes when not optimizing for size.
27316 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
27318 PR middle-end/50335
27319 * doc/invoke.texi (floop-flatten): Remove.
27320 * toplev.c (process_options): Remove references to flag_loop_flatten.
27321 * tree-ssa-loop.c (gate_graphite_transform): Same.
27322 * common.opt (floop-flatten): Obsolete.
27323 * graphite-poly.c (apply_poly_transforms): Remove reference to
27325 * Makefile.in (graphite-flattening.o): Remove.
27326 * graphite-flattening.c: Remove.
27328 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
27330 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
27331 having mode compatible with the mode of previous compare. Substitute
27332 compare mode of previous compare with the mode, compatible
27333 with eliminated and previous compare.
27335 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
27337 * config/rs6000/dfp.md (floatdidd2): New define_insn.
27339 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
27341 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
27342 compatible with CCGOCmode and CCGCmode.
27344 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
27346 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
27348 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
27350 * config/arm/arm.c (arm_sat_operator_match): New function.
27351 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
27352 * config/arm/arm.md ("insn" attribute): Add "sat" value.
27353 ("SAT", "SATrev"): New code iterators.
27354 ("SATlo", "SAThi"): New code iterator attributes.
27355 ("*satsi_<SAT:code>"): New pattern.
27356 ("*satsi_<SAT:code>_shift"): Likewise.
27357 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
27358 and "shift" attributes.
27359 ("arm_usatsihi"): Add "insn" attribute.
27360 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
27361 by powers of two. Do not allow shift by 32.
27363 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
27366 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
27367 to pass the argument in the register of "natural" mode.
27369 2012-03-02 Richard Guenther <rguenther@suse.de>
27371 PR tree-optimization/52406
27372 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
27373 (struct indices): Add unconstrained_base member.
27374 (struct dr_alias): Remove unused vops member.
27375 (DR_UNCONSTRAINED_BASE): New define.
27376 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
27377 add indices to allow their disambiguation. Make DR_BASE_OBJECT
27378 be an artificial access that covers the whole indexed object,
27379 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
27380 plain decl base-objects to their MEM_REF variant.
27381 (dr_may_alias_p): When the base-object of either data reference
27382 has unknown size use only points-to information.
27383 (compute_affine_dependence): Make dumps easier to read and
27385 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
27386 DR_REF when looking for packed references.
27387 (vect_supportable_dr_alignment): Likewise.
27389 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
27391 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
27392 Improve conditions for peepholes of loads followed by commutative
27394 * config/arm/ldmstm.md: Regenerated.
27396 2012-03-02 Richard Guenther <rguenther@suse.de>
27398 * BASE-VER: Set to 4.8.0.
27400 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
27402 * config.gcc (obsolete): Add all ARM targets using the FPA.
27403 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
27404 * doc/install.texi: Avoid references to obsolete ARM ports.
27406 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
27408 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
27410 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
27411 Joern Rennecke <joern.rennecke@embecosm.com>
27413 * doc/extend.texi: Expand and update information on interrupt
27414 attribute for Epiphany.
27416 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
27418 * config/sh/sh-protos.h: Update copyright notice dates.
27419 * config/sh/sh.h: Likewise.
27420 * config/sh/sh.md: Likewise.
27421 * config/sh/constraints.md: Likewise.
27422 * config/sh/predicates.md: Likewise.
27424 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
27426 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
27427 * config/sh/sh.c (tertiary_reload_operand): Likewise.
27429 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
27431 * config/sh/constraints.md: Fix comment typo.
27433 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27436 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
27437 unsigned HOST_WIDE_INT.
27438 (zvdep_imm64): Likewise.
27439 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
27440 (vdepi_and): Likewise.
27441 Likewise for unamed 64-bit patterns.
27442 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
27444 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
27447 PR rtl-optimization/52417
27448 * cselib.c (cselib_any_perm_equivs): New variable.
27449 (cselib_reset_table): Check that it's not set when not
27450 preserving constants.
27451 (cselib_add_permanent_equiv): Set it.
27452 (cselib_have_permanent_equivalences): New.
27453 (cselib_init, cselib_finish): Reset it.
27454 * cselib.h (cselib_have_permanent_equivalences): Declare.
27455 * alias.c (get_addr): Restore earlier behavior when there
27456 aren't permanent equivalences.
27458 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
27460 * config/mn10300/mn10300-modes.def: Fix copyright notice.
27461 * config/v850/v850-modes.def: Fix copyright notice.
27463 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
27465 * doc/extend.texi (AVR Built-in Functions): Document
27466 __builtin_avr_flash_segment.
27468 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
27469 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
27470 (*split.flash_segment): New insn-and-split.
27471 * config/avr/avr.c (avr_init_builtins): Add local variables:
27472 const_memx_void_node, const_memx_ptr_type_node,
27473 char_ftype_const_memx_ptr.
27475 2012-03-01 Jakub Jelinek <jakub@redhat.com>
27477 PR tree-optimization/52445
27478 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
27479 add ssa_name_ver, offset and size fields and change store field
27481 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
27482 (add_or_mark_expr): Likewise. Only consider previous stores
27483 with the same size and offset.
27484 (nt_init_block): Only look at gimple_assign_single_p stmts,
27485 doesn't look at rhs2.
27487 2012-03-01 Richard Guenther <rguenther@suse.de>
27489 PR middle-end/52443
27490 * tree-cfg.c (verify_gimple_assign_unary): Allow any
27491 conversions from integral types to pointer types.
27493 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
27495 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
27496 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
27497 unintentionally removed in r184616.
27499 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27501 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
27504 2012-02-29 Jakub Jelinek <jakub@redhat.com>
27505 Uros Bizjak <ubizjak@gmail.com>
27508 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
27509 alternatives, add "e" constraint to the new last alternative
27510 and ! to last 3 alternatives.
27512 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
27514 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
27515 DW_AT_artificial attributes at the end of the processing.
27516 (gen_array_type_die): Likewise.
27517 (gen_enumeration_type_die): Likewise.
27518 (gen_struct_or_union_type_die): Likewise.
27519 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
27522 2012-02-29 Jakub Jelinek <jakub@redhat.com>
27524 PR middle-end/52419
27525 * expr.c (expand_assignment): If doing misaligned store that doesn't
27526 cover all mode bits, perform a RMW cycle.
27528 PR tree-optimization/52429
27529 * tree-parloops.c (separate_decls_in_region_debug): Return early
27530 if var is LABEL_DECL.
27532 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27534 PR tree-optimization/52424
27535 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
27536 calling dom_thread_across_edge.
27538 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
27540 * config/avr/avr.c: Move definition of TARGET macros to end of file.
27542 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
27544 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
27545 * config/avr/avr.c (avr_output_bld): Remove unused function.
27546 (avr_out_sbxx_branch): Use "%T" to print bit position.
27548 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
27550 * config/avr/avr.md: Untabify.
27552 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
27554 * config/avr/avr.md (eqne): New code iterator.
27555 (*dec-and-branchsi): Use it in text peephole's condition.
27556 (*dec-and-branchhi): Ditto.
27557 (*dec-and-branchqi): Ditto.
27559 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
27562 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
27563 the device does not have the skip-bug.
27565 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
27567 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
27568 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
27569 -mpretend-cmove): New.
27571 2012-02-29 Jakub Jelinek <jakub@redhat.com>
27574 * df.h (struct df_d): Adjust comment that hard_regs_live_count
27575 doesn't count DEBUG_INSN refs.
27576 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
27577 for DEBUG_INSN refs.
27579 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27583 2012-02-20 Richard Guenther <rguenther@suse.de>
27584 PR tree-optimization/52298
27585 * tree-vect-stmts.c (vectorizable_load): Properly use
27586 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
27588 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
27590 PR middle-end/51752
27591 * gimple.h (gimple_in_transaction): New.
27592 (gimple_set_in_transaction): New.
27593 (struct gimple_statement_base): Add in_transaction field.
27594 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
27596 (tree_ssa_lim_initialize): Compute transaction bits.
27597 * tree.h (compute_transaction_bits): Protoize.
27598 * trans-mem.c (tm_region_init): Use the heap to store BB
27600 (compute_transaction_bits): New.
27602 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27604 * gcc.c (display_help): Document --help=common and sort entries
27607 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27609 * doc/install.texi: Document check-$LANG specific shortcuts
27611 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
27614 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
27616 * config/arm/arm_neon.h: Regenerate.
27617 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
27618 (neon_vcgeu): New insn.
27619 (neon_vcgtu): Likewise.
27620 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
27621 (ops): Unsigned comparison intrinsics call a different builtin.
27623 2012-02-28 Richard Guenther <rguenther@suse.de>
27626 * config/i386/i386.c (ix86_expand_vector_set): Fix element
27627 ordering for the VEC_CONCAT for two element vectors for
27628 V2SFmode, V2SImode and V2DImode.
27630 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
27633 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
27634 detecting big-endian triplets.
27636 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
27638 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
27639 mode if there is no type information available.
27641 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
27643 PR tree-optimization/53207
27644 * doc/invoke.texi: Document as experimental and relying on graphite.
27646 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
27648 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
27649 of initializer to changes from r184614.
27651 2012-02-28 Richard Guenther <rguenther@suse.de>
27653 PR tree-optimization/52395
27654 * tree-sra.c (build_ref_for_offset): Also look at the base
27655 TYPE_ALIGN when figuring out the alignment of the replacement.
27657 2012-02-28 Richard Guenther <rguenther@suse.de>
27659 PR tree-optimization/52402
27660 * ipa-prop.c (ipa_modify_call_arguments): Properly use
27661 mis-aligned types when creating the accesses at the call site.
27663 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
27665 * config/avr/builtins.def: New file.
27666 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
27667 * config/avr/avr.c (enum avr_builtin_id): Use it.
27668 (avr_init_builtins): Use it. And use avr_bdesc.
27669 (bdesc_1arg): Remove.
27670 (bdesc_2arg): Remove.
27671 (bdesc_3arg): Remove.
27672 (struct avr_builtin_description): Add field n_args.
27673 (avr_bdesc): New static variable using builtins.def.
27674 (avr_expand_builtin): Use it.
27675 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
27676 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
27677 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
27679 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
27682 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
27683 match only one single hard register with respective hard reg rtx.
27684 (movmemx_<mode>): Ditto.
27685 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
27686 insn anatomy of movmem[x]_<mode>.
27687 (avr_out_movmem): Same for printing assembler and operand usage.
27689 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
27693 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
27694 address spaces located outside of device flash.
27696 * config/avr/avr.h (base_arch_s): Remove field n_segments.
27697 (mcu_type_s): Add field n_flash.
27698 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
27699 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
27700 (AVR_MCU): Add N_FLASH argument.
27701 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
27702 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
27703 macro __FLASH<n> if that address space makes sense for the device.
27704 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
27705 outside of target flash.
27706 (avr_asm_named_section): Ditto.
27707 (avr_asm_select_section): Ditto.
27708 (avr_addr_space_convert): Ditto.
27709 (avr_emit_movmemhi): Ditto.
27710 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
27711 address space is outside of device flash.
27712 (avr_insert_attributes): Ditto.
27713 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
27714 avr_current_arch->n_segments.
27716 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
27719 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
27720 (*movabs<mode>_2): Likewise.
27722 2012-02-27 Jakub Jelinek <jakub@redhat.com>
27725 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
27726 s_register_operand in the test instead of REG_P. Don't call
27727 gen_reg_rtx if it won't be used.
27729 PR tree-optimization/52376
27730 * ipa-split.c (split_function): Ignore CLOBBER stmts.
27732 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
27734 * ifcvt.c (noce_get_condition): Check condition variable is not
27735 small_register_classes_for_mode_p before accepting.
27737 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
27739 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
27741 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
27744 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
27745 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
27747 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
27749 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
27751 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
27753 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
27755 * config/sh/predicates.md: Remove blank lines.
27756 * config/sh/sh.c: Fix typos in comments.
27757 * config/sh/constraints.md: Likewise.
27758 * config/sh/sh.md: Remove blank lines.
27759 Fix typos in comments. Use ;; as comment characters.
27761 2012-02-26 Walter Lee <walt@tilera.com>
27763 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
27764 (replace_mov_pcrel_step2): Ditto.
27766 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
27769 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
27770 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
27771 and locs that reference values newer than the non-canonical value
27772 at hand. Return the canonical value as a worst case.
27773 (memrefs_conflict_p): Walk canonical value's locs.
27776 * cselib.c (preserve_only_constants): Rename to...
27777 (preserve_constants_and_equivs): ... this. Split out...
27778 (invariant_or_equiv_p): ... this. Preserve plus expressions
27779 of other preserved expressions too.
27780 (cselib_reset_table): Adjust.
27781 * var-tracking.c (reverse_op): Use canonical value to build
27784 2012-02-23 Kai Tietz <ktietz@redhat.com>
27786 * config/i386/i386.c (ix86_delegitimize_address): Handle
27787 UNSPEC_PCREL plus displacement.
27789 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
27792 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
27793 to test for unusedness in st X addressing.
27795 2012-02-24 Richard Guenther <rguenther@suse.de>
27797 PR middle-end/52361
27798 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
27799 (is_gimple_reg_type): Move inline ...
27800 * gimple.h (is_gimple_reg_type): ... here.
27802 2012-02-24 Richard Guenther <rguenther@suse.de>
27804 PR middle-end/52361
27805 * passes.c (execute_function_todo): When verifying SSA form
27806 verify gimple form first.
27807 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
27809 2012-02-24 Richard Guenther <rguenther@suse.de>
27811 PR middle-end/52355
27812 * fold-const.c (fold_addr_of_array_ref_difference): New function.
27813 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
27815 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27817 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
27819 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27821 * tree-phinodes.c (make_phi_node): Mark static.
27822 * tree-flow.h (make_phi_node): Remove extern decl.
27823 * doc/gimple.texi (make_phi_node): Remove documentation.
27825 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27827 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
27828 * tree-ssa-sccvn.c (print_scc): Ditto.
27830 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27832 * doc/passes.texi (Full redundancy elimination): Fix typo.
27834 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27836 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
27838 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
27841 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
27843 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
27846 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
27848 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
27850 * config/avr/avr.md (code_stdname): Add ior, xor.
27851 (xior): New code iterator.
27852 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
27853 (*<code_stdname><mode>qi.byte1-3): Ditto.
27855 2012-02-23 Jakub Jelinek <jakub@redhat.com>
27857 PR tree-optimization/52019
27858 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
27861 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27863 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
27864 HAVE_INITFINI_ARRAY to work around namespace pollution in
27865 certain versions of newlib system headers.
27866 * config.in: Regenerate.
27867 * configure: Regenerate.
27868 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
27869 instead of HAVE_INITFINI_ARRAY.
27871 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
27874 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
27875 is not offsettable memory reference.
27877 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
27880 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
27881 setting avr_need_clear_bss_p for __gnu_lto* symbols.
27883 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
27885 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
27886 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
27888 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27890 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
27891 library on Solaris 8 even without TLS support.
27892 * configure: Regenerate.
27894 2012-02-22 Richard Guenther <rguenther@suse.de>
27896 PR middle-end/52329
27897 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
27898 for GIMPLE_DEBUG stmts.
27900 2012-02-22 Martin Jambor <mjambor@suse.cz>
27902 PR middle-end/51782
27903 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
27904 according to the base object.
27906 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
27908 PR rtl-optimization/50063
27909 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
27910 and 2 (8-bit SP) in operand 2.
27911 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
27912 setup to use movhi_sp_r instead of vanilla move to write SP.
27913 Adjust REG_CFA notes to superseed unspec.
27914 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
27916 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
27917 known to be off) only with TARGET_NO_INTERRUPTS. Never use
27918 irq_state 1 (IRQ known to be on) here.
27920 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
27922 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
27924 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
27925 assign_hard_reg): Likewise.
27927 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
27929 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
27931 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
27933 * config/avr/avr.md
27934 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
27935 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
27937 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
27939 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
27940 prototype from here to...
27941 * config/avr/avr.h: ...here.
27943 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
27946 * thumb2.md (thumb2_shiftsi3_short): Split register and
27947 immediate shifts. For register shifts tie operands 0 and 1.
27948 (peephole2 for above): Check that register-controlled shifts
27949 have suitably tied operands.
27951 2012-02-21 Quentin Neill <quentin.neill@amd.com>
27954 * config/i386/bdver1.md (bdver1_call, bdver1_push,
27955 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
27956 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
27957 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
27958 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
27959 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
27960 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
27961 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
27962 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
27963 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
27964 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
27965 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
27966 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
27967 bdver1_ssevector_avx256_unaligned_load,
27968 bdver1_ssevector_sse128_unaligned_load,
27969 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
27970 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
27971 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
27972 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
27973 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
27974 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
27975 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
27976 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
27977 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
27978 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
27979 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
27980 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
27981 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
27982 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
27983 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
27984 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
27985 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
27986 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
27987 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
27988 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
27989 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
27990 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
27991 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
27992 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
27993 bdver1_ssediv_double_load, bdver1_ssediv_double,
27994 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
27995 Add "bdver2" attribute.
27997 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27999 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
28000 default if possible and not specified otherwise.
28002 2012-02-21 Richard Guenther <rguenther@suse.de>
28004 PR middle-end/52314
28005 * gimplify.c (create_tmp_from_val): Use the main variant type
28006 for the type of the temporary we create.
28008 2012-02-21 Richard Guenther <rguenther@suse.de>
28010 PR tree-optimization/52324
28011 * gimplify.c (gimplify_expr): When re-gimplifying expressions
28012 do not gimplify a MEM_REF address operand if it is already
28015 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28017 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
28018 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
28020 2012-02-21 Richard Guenther <rguenther@suse.de>
28022 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
28023 nested_in_vect_loop.
28025 2012-02-21 Jakub Jelinek <jakub@redhat.com>
28027 PR tree-optimization/52318
28028 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
28029 vdef also to non-pure/const call stmts in the sequence.
28031 2012-02-21 Tristan Gingold <gingold@adacore.com>
28033 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
28035 2012-02-20 David S. Miller <davem@davemloft.net>
28037 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
28038 don't use the "rd %pc" instruction on v9 for PIC register loads.
28040 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
28042 PR middle-end/52141
28043 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
28044 in a transaction safe function.
28046 2012-02-20 Kai Tietz <ktietz@redhat.com>
28049 * stor-layout.c (place_field): Handle desired_align for
28052 2012-02-20 Richard Guenther <rguenther@suse.de>
28054 PR tree-optimization/52298
28055 * tree-vect-stmts.c (vectorizable_store): Properly use
28056 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
28058 (vectorizable_load): Likewise.
28059 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
28060 Access DR_STEP after ensuring it is not NULL.
28062 2012-02-20 Jakub Jelinek <jakub@redhat.com>
28064 PR tree-optimization/52286
28065 * fold-const.c (fold_binary_loc): For (X & C1) | C2
28066 optimization use double_int_to_tree instead of build_int_cst_wide,
28067 rewrite to use double_int vars.
28069 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28072 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
28074 Remove -e 0 from $gcc_cv_ld invocation.
28075 Only use __GLIBC_PREREQ if defined.
28076 Enable on Solaris since Solaris 8 patch.
28077 (gcc_SUN_LD_VERSION): New macro.
28078 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
28079 gcc_SUN_LD_VERSION for version number format.
28080 * configure: Regenerate.
28081 * varasm.c (get_elf_initfini_array_priority_section): Set
28082 SECTION_NOTYPE for non-default priority.
28083 Use get_section instead of get_unnamed_section to emit
28084 .init_array/.fini_array with default priority.
28086 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
28088 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
28089 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
28090 (mips_start_unique_function, mips_output_mips16_rdhwr)
28091 (mips_code_end): New functions.
28092 (TARGET_ASM_CODE_END): Define.
28094 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
28096 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
28097 to stubs with non-sibling calls.
28099 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
28101 * doc/invoke.texi (-fira-* options): Copy-edit.
28102 (ira-* parameters): Copy-edit.
28104 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
28106 * doc/invoke.texi: Minor copy-edits to bring into conformance with
28107 GCC coding conventions.
28109 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
28111 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
28112 when used as adjectives.
28114 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
28116 * doc/invoke.texi: Clean up "that"/"which" confusion.
28118 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
28120 * system.h: Poison SMALL_REGISTER_CLASSES
28121 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
28122 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
28124 2012-02-16 Jakub Jelinek <jakub@redhat.com>
28126 PR tree-optimization/52285
28127 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
28128 when deciding if a call is a tail call or tail recursion.
28130 2012-02-16 Kai Tietz <ktietz@redhat.com>
28132 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
28133 interger-constant displacement for UNSPEC_PCREL.
28135 2012-02-16 Jakub Jelinek <jakub@redhat.com>
28137 PR rtl-optimization/52208
28138 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
28139 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
28141 PR tree-optimization/52255
28142 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
28143 loop->header has virtual PHI, but exit_e->dest doesn't, add
28144 virtual PHI to exit_e->dest and adjust all uses after the loop.
28147 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
28148 children with clone_tree_hash, not after it.
28150 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
28152 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
28153 extended identifiers.
28155 2012-02-16 Jakub Jelinek <jakub@redhat.com>
28157 PR middle-end/51929
28158 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
28159 a same_body_alias, also test whether e->callee isn't a former
28160 or current clone of the decl this is a same body alias of.
28162 PR translation/52264
28163 * cgraphunit.c (verify_cgraph_node): Fix a typo.
28165 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
28167 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
28169 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
28172 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28173 force_reg instead of copy_to_reg for better optimization. Force
28174 non-register or memory operands into a register.
28176 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
28178 * extend.texi: Reserve upper bits of memory model for future use.
28180 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
28181 Anatoly Sokolov <aesok@post.ru>
28182 Eric Weddington <eric.weddington@atmel.com>
28185 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
28186 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
28187 Rewrite initializers for .macro.
28188 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
28189 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
28190 atxmega32d4, atxmega32x1.
28191 avrxmega4: atxmega64a3, atxmega64d3.
28192 avrxmega5: atxmega64a1, atxmega64a1u.
28193 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
28194 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
28195 avrxmega7: atxmega128a1, atxmega128a1u.
28196 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
28197 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
28198 (struct base_arch_s): Rename reserved to xmega_p.
28199 Rename reserved2 to have_rampd.
28200 (AVR_XMEGA): New define.
28201 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
28202 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
28203 * config/avr/predicates.md (io_address_operand): Take into
28204 account SFR offset.
28205 (low_io_address_operand): Ditto.
28206 (high_io_address_operand): Ditto.
28207 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
28208 (enabled, movhi_sp_r): Use them.
28209 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
28210 cpp_define_formatted to built-in define __AVR_ARCH__.
28211 (__AVR_XMEGA__): New built-in define.
28212 (__AVR_HAVE_RAMPD__): New built-in define.
28213 (__AVR_HAVE_RAMPX__): New built-in define.
28214 (__AVR_HAVE_RAMPY__): New built-in define.
28215 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
28217 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
28218 (avr_option_override): Initialize them.
28219 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
28220 (avr_init_expanders): Initialize them. No more block several calls.
28221 (emit_push_sfr): New static function.
28222 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
28224 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
28225 (avr_print_operand): Print addreeses as symbols for
28226 RAMPX, RAMPY, RAMPD, CCP.
28227 (output_movhi): Handle AVR_XMEGA when writing to SP.
28228 (avr_out_movhi_mr_r_xmega): New static function.
28229 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
28230 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
28231 __RAMPD__, __CCP__ as needed.
28233 * config/avr/multilib.h: Regenerate.
28234 * config/avr/t-multilib: Regenerate.
28235 * config/avr/avr-tables.opt: Regenerate.
28237 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
28239 PR tree-optimization/50561
28240 * graphite-flattening.c (lst_project_loop): Do not
28241 remove old scattering dimensions after flattening.
28242 (lst_do_flatten): Likewise.
28244 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
28246 * doc/extend.texi (AVR Built-in Functions): Remove doc for
28247 __builtin_avr_map8, __builtin_avr_map16.
28248 Document __builtin_avr_insert_bits.
28250 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
28251 (insert_bits): New insn.
28252 (adjust_len.map_bits): Rename to insert_bits.
28253 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
28254 * avr-protos.h (avr_out_map_bits): Remove.
28255 (avr_out_insert_bits, avr_has_nibble_0xf): New.
28256 * config/avr/constraints.md (Cxf,C0f): New.
28257 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
28258 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
28259 New built-in define __BUILTIN_AVR_INSERT_BITS.
28260 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
28261 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
28262 (avr_move_bits): Rewrite.
28263 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
28265 (avr_map_op_t): New typedef.
28266 (avr_map_op): New static variable.
28267 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
28268 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
28269 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
28270 (bdesc_3arg, avr_expand_triop_builtin): New.
28271 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
28272 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
28273 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
28274 (avr_map_equal_p, avr_map_sig_p): Remove.
28275 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
28276 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
28277 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
28278 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
28279 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
28280 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
28282 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
28284 * config/c6x/c6x.md (reserve_cycles): New attribute.
28285 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
28286 don't reserve functional units after the branch occurs.
28288 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
28290 PR middle-end/52142
28291 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
28292 functions into non-tm_pure functions.
28294 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
28297 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
28298 (iterative_hash_canonical_type): Likewise.
28299 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
28302 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
28304 * haifa-sched.c (prune_ready_list): Ensure that if there is a
28305 sched-group insn, it either remains alone or the entire list is pruned.
28307 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
28309 * doc/install.texi (Prerequisites): Fix grammar.
28310 (Configuration): Likewise.
28312 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
28314 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
28315 MPC as part of GCC before describing configuring with --with-gmp etc.
28316 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
28317 sources are present.
28319 2012-02-14 Jakub Jelinek <jakub@redhat.com>
28322 * dwarf2out.c (clone_tree_hash): New function.
28323 (copy_decls_walk): Use it instead of clone_tree.
28325 2012-02-14 Richard Guenther <rguenther@suse.de>
28327 PR tree-optimization/52244
28328 PR tree-optimization/51528
28329 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
28330 replacements for integral types.
28332 2012-02-14 Walter Lee <walt@tilera.com>
28334 * config.gcc: Handle tilegx and tilepro.
28335 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
28336 tilegx and tilepro.
28337 Add HAVE_AS_TLS check for tilegx and tilepro.
28338 * configure: Regenerate.
28339 * doc/contrib.texi: Add Mat Hostetter and self.
28340 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
28341 Document instruction intrinsics and network accessing intrinsics.
28342 (TILEPro Built-in Functions): New node. Document instruction
28343 intrinsics and network accessing intrinsics.
28344 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
28345 (Specific, tilepro-*-linux*): Likewise.
28346 * doc/invoke.texi (TILE-Gx Options): New section.
28347 (TILEPro Options): New section.
28348 * doc/md.texi (TILE-Gx): New section.
28349 (TILEPro): New section.
28350 * common/config/tilegx/tilegx-common.c: New file.
28351 * common/config/tilepro/tilepro-common.c: New file.
28352 * config/tilegx/constraints.md: New file.
28353 * config/tilegx/linux.h: New file.
28354 * config/tilegx/mul-tables.c: New file.
28355 * config/tilegx/predicates.md: New file.
28356 * config/tilegx/sync.md: New file.
28357 * config/tilegx/t-tilegx: New file.
28358 * config/tilegx/tilegx-builtins.h: New file.
28359 * config/tilegx/tilegx-c.c: New file.
28360 * config/tilegx/tilegx-generic.md: New file.
28361 * config/tilegx/tilegx-modes.def: New file.
28362 * config/tilegx/tilegx-multiply.h: New file.
28363 * config/tilegx/tilegx-protos.h: New file.
28364 * config/tilegx/tilegx.c: New file.
28365 * config/tilegx/tilegx.h: New file.
28366 * config/tilegx/tilegx.md: New file.
28367 * config/tilegx/tilegx.opt: New file.
28368 * config/tilepro/constraints.md: New file.
28369 * config/tilepro/gen-mul-tables.cc: New file.
28370 * config/tilepro/linux.h: New file.
28371 * config/tilepro/mul-tables.c: New file.
28372 * config/tilepro/predicates.md: New file.
28373 * config/tilepro/t-tilepro: New file.
28374 * config/tilepro/tilepro-builtins.h: New file.
28375 * config/tilepro/tilepro-c.c: New file.
28376 * config/tilepro/tilepro-generic.md: New file.
28377 * config/tilepro/tilepro-modes.def: New file.
28378 * config/tilepro/tilepro-multiply.h: New file.
28379 * config/tilepro/tilepro-protos.h: New file.
28380 * config/tilepro/tilepro.c: New file.
28381 * config/tilepro/tilepro.h: New file.
28382 * config/tilepro/tilepro.md: New file.
28383 * config/tilepro/tilepro.opt: New file.
28385 2012-02-14 Jakub Jelinek <jakub@redhat.com>
28387 PR tree-optimization/52210
28388 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
28389 vect_model_simple_cost with two entry vect_def_type array instead
28390 of an address of dt.
28392 2012-02-14 Richard Guenther <rguenther@suse.de>
28395 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
28396 Do not stream DECL_QUALIFIER.
28397 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
28398 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
28399 (find_decls_types_r): Do not walk DECL_QUALIFIER.
28401 2012-02-14 Jakub Jelinek <jakub@redhat.com>
28404 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
28407 2012-02-13 Jakub Jelinek <jakub@redhat.com>
28410 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
28411 * cselib.c (cselib_subst_to_values_from_insn): New function.
28412 * sched-deps.c (add_insn_mem_dependence,
28413 sched_analyze_1, sched_analyze_2): Use it.
28415 2012-02-13 Jan Hubicka <jh@suse.cz>
28417 PR middle-end/52214
28418 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
28420 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
28422 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
28423 (GTM_SELF_SPECS): Define if not already defined.
28424 (driver_self_specs): Add GTM_SELF_SPECS.
28425 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
28426 (GTM_SELF_SPECS): Define.
28427 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
28428 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
28430 2012-02-13 Jakub Jelinek <jakub@redhat.com>
28432 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
28435 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
28437 PR middle-end/52230
28438 * omp-low.c (expand_omp_for): If a static schedule without chunk size
28439 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
28441 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
28444 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
28446 2012-02-13 Richard Guenther <rguenther@suse.de>
28448 PR translation/52211
28449 * passes.c (enable_disable_pass): Fix typo.
28451 2012-02-13 Jakub Jelinek <jakub@redhat.com>
28453 PR middle-end/52209
28454 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
28455 XOR for reduce_bit_field if type is unsigned.
28457 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
28459 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
28460 disallow changes from SFmode to mode with different size in FP regs.
28462 2012-02-12 Robert Millan <rmh@gnu.org>
28463 Gerald Pfeifer <gerald@pfeifer.com>
28465 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
28468 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
28470 PR rtl-optimization/52175
28471 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
28472 to frame-related instructions.
28474 2012-02-10 Jason Merrill <jason@redhat.com>
28477 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
28478 (demangle_new_symbols): Fill it.
28479 (scan_linker_output): Walk it.
28480 (start_tweaking): Split out from scan_linker_output.
28481 (maybe_tweak): Update sym->chosen.
28482 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
28484 2012-02-11 Jakub Jelinek <jakub@redhat.com>
28487 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
28489 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
28491 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
28492 having the same mode as previous compare.
28494 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
28496 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
28497 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
28498 (nonlocal_goto_internal): Likewise.
28499 (nonlocal_goto): Emit a use and an indirect jump directly.
28501 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
28504 * doc/extend.texi : Update comments for __atomic_compare_exchange and
28505 __atomic_{is,always}_lock_free.
28507 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
28510 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
28511 negative constant address for TARGET_X32.
28513 2012-02-10 Richard Henderson <rth@redhat.com>
28515 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
28516 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
28517 for GIMPLE_TRANSACTION. Tidy if's into a switch.
28519 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28520 Ira Rosen <irar@il.ibm.com>
28522 PR tree-optimization/50031
28523 * targhooks.c (default_builtin_vectorization_cost): Handle
28524 vec_promote_demote.
28525 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
28526 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
28527 all types of reduction and pattern statements.
28528 (vect_estimate_min_profitable_iters): Likewise.
28529 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
28530 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
28531 for explicit realigns.
28532 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
28533 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
28534 vec_promote_demote.
28535 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
28536 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
28537 vec_perm for VSX and handle vec_promote_demote.
28539 2012-02-10 Jakub Jelinek <jakub@redhat.com>
28541 PR middle-end/52177
28542 * builtins.c (fold_builtin_atomic_always_lock_free,
28543 expand_builtin_atomic_always_lock_free,
28544 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
28545 Return and/or test boolean_true_node/boolean_false_node instead of
28546 integer_one_node/integer_zero_node.
28548 2012-02-10 Jan Hubicka <jh@suse.cz>
28550 PR middle-end/48600
28551 * predict.c (predict_paths_for_bb): Prevent looping.
28552 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
28554 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
28556 * config/arm/arm.c (output_move_double): In one case properly
28557 count number of instructions that will be emitted.
28559 2012-02-10 Richard Guenther <rguenther@suse.de>
28561 PR translation/52193
28562 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
28564 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
28566 PR middle-end/52140
28567 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
28569 2012-02-09 Jakub Jelinek <jakub@redhat.com>
28572 * var-tracking.c (emit_note_insn_var_location): If
28573 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
28574 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
28575 non-NOTE_DURING_CALL_P insn.
28577 2012-02-09 Bin Cheng <bin.cheng@arm.com>
28579 PR middle-end/51867
28580 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
28582 2012-02-08 Magnus Granberg <zorry@gentoo.org>
28585 * gcc.c (switch_matches) Support switches with separated form,
28588 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
28590 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
28592 (RAMPZ_ADDR): Ditto.
28593 * config/avr/avr.c (avr_addr_t): New typedef.
28594 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
28595 (avr_init_expanders): Initialize it.
28596 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
28598 (expand_epilogue): Ditto.
28599 (avr_print_operand): Ditto.
28600 (avr_file_start): Ditto.
28601 (avr_emit_movmemhi): Ditto.
28603 2012-02-08 Richard Guenther <rguenther@suse.de>
28605 PR tree-optimization/46886
28606 * tree-flow.h (do_while_loop_p): Declare.
28607 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
28608 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
28610 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
28612 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
28613 always succeed for integers larger than a native word.
28615 2012-02-08 Richard Guenther <rguenther@suse.de>
28617 PR rtl-optimization/52170
28618 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
28619 properly handle integer vector modes.
28621 2012-02-08 Jakub Jelinek <jakub@redhat.com>
28623 PR gcov-profile/52150
28624 * coverage.c: Include target.h.
28625 (build_var): Call targetm.strip_name_encoding on the assembler name.
28626 Change one _ into . or $ if the target allows it.
28627 * Makefile.in (coverage.o): Depend on $(TARGET_H).
28629 PR rtl-optimization/52139
28630 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
28631 is a BARRIER after emit_insn_after_noloc, move BB_END
28632 to the last non-BARRIER insn before it.
28634 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
28636 PR middle-end/24306
28637 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
28638 (mips_gimplify_va_arg_expr): Call it instead of
28639 std_gimplify_va_arg_expr.
28641 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
28643 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
28644 message for -mno-pointers-to-nested-function.
28646 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
28648 PR middle-end/51994
28649 * expr.c (get_inner_reference): If there is an offset, add a negative
28650 bit position to it (if any).
28652 2012-02-07 Jakub Jelinek <jakub@redhat.com>
28654 PR rtl-optimization/52060
28655 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
28656 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
28657 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
28658 and/or i0src_copy2 when needed.
28660 2012-02-07 Jakub Jelinek <jakub@redhat.com>
28662 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
28663 or LTOPLUGINSONAME if have_c.
28665 * config/freebsd-spec.h: Add comment about what macros can be defined
28667 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
28668 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
28671 2012-02-07 Richard Guenther <rguenther@suse.de>
28673 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
28674 newline in -alias dumps.
28676 2012-02-07 Kai Tietz <ktietz@redhat.com>
28677 Dave Korn <dave.korn.cygwin@gmail.com>
28680 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
28681 Take care that typinfo gets dllexport-attribute.
28683 2012-02-07 Jakub Jelinek <jakub@redhat.com>
28685 PR middle-end/52074
28686 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
28687 if modifier < EXPAND_SUM call force_operand on the result.
28689 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
28691 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
28692 adding __forwarder_dst__ prefix if a forwarder_section attribute is
28694 (epiphany_function_type): Replace types for specific interrupts with
28695 EPIPHANY_FUNCTION_INTERRUPT.
28696 (EPIPHANY_INTERRUPT_P): Update.
28697 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
28698 New static function.
28699 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
28700 <disinterrupt>: Affects type identity.
28701 (epiphany_handle_interrupt_attribute): Handle variable number of
28703 (epiphany_compute_function_type): Update for new
28704 epiphany_function_type definition.
28705 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
28706 handlers with a longcall forwarder.
28707 (epiphany_start_function): Handle multiple interrupt arguments and/or
28708 forwarder_section attribute.
28710 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
28713 2012-02-07 Alan Modra <amodra@gmail.com>
28716 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
28719 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28721 PR tree-optimization/50969
28722 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
28723 use vec_perm rather than vector_stmt.
28724 (vect_model_load_cost): Likewise.
28725 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
28726 vec_perm to be the same as other vector statements.
28727 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
28728 cost of vec_perm for TARGET_VSX.
28730 2012-02-06 Richard Guenther <rguenther@suse.de>
28732 PR tree-optimization/52115
28733 * tree-sra.c (access_has_replacements_p): New function.
28734 (sra_modify_assign): Use it to decide whether a use is uninitialized.
28736 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
28738 PR middle-end/52047
28739 * trans-mem.c (expand_call_tm): Add an assertion.
28740 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
28743 2012-02-06 Richard Guenther <rguenther@suse.de>
28745 PR tree-optimization/50955
28746 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
28747 raise cost of expressions that replace an address with an
28748 expression based on a different pointer.
28750 2012-02-06 Jakub Jelinek <jakub@redhat.com>
28753 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
28754 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
28756 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
28759 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
28760 -Weffc++ and specify guidelines come from second edition.
28762 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
28764 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
28765 (sibcall_value_multiple_internal, call_split, call_internal_direct)
28766 (call_direct_split, call_value_split, call_value_internal_direct)
28767 (call_value_direct_split, call_value_multiple_split): Use jal and
28768 jal_macro attributes.
28770 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
28772 * reload1.c (reload_regs_reach_end_p): Replace with...
28773 (reload_reg_rtx_reaches_end_p): ...this function.
28774 (new_spill_reg_store): Update commentary.
28775 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
28776 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
28777 before setting new_spill_reg_store.
28778 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
28779 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
28780 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
28781 for non-spill reload registers.
28783 2012-02-05 Ira Rosen <irar@il.ibm.com>
28785 PR tree-optimization/52091
28786 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
28787 (vect_is_simple_use_1): Likewise.
28788 * tree-vect-loop.c (vectorizable_reduction): Update calls
28789 to vect_is_simple_use_1 and vect_is_simple_use.
28790 (vectorizable_live_operation): Likewise.
28791 * tree-vect-patterns.c (widened_name_p,
28792 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
28793 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
28794 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
28795 vectorizable_shift,vectorizable_operation, vectorizable_store,
28796 vectorizable_load): Likewise.
28797 (vect_is_simple_cond): Add an argument, pass it to
28798 vect_is_simple_use_1.
28799 (vectorizable_condition): Update calls to vect_is_simple_cond,
28800 vect_is_simple_use.
28801 (vect_is_simple_use): Add an argument, the statement in which
28802 OPERAND is used. Check that if OPERAND's def stmt is a double
28803 reduction phi node, the use is a phi node too.
28804 (vect_is_simple_use_1): Add an argument, pass it to
28805 vect_is_simple_use.
28806 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
28807 to vect_is_simple_use.
28809 2012-02-04 Jakub Jelinek <jakub@redhat.com>
28811 PR rtl-optimization/52095
28812 * modulo-sched.c (dump_insn_locator): New function.
28813 (loop_canon_p, sms_schedule): Use it.
28815 PR rtl-optimization/52113
28816 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
28817 even for decomposable shift/zext insns.
28819 2012-02-03 Jakub Jelinek <jakub@redhat.com>
28820 Zdenek Dvorak <ook@ucw.cz>
28822 PR rtl-optimization/52092
28823 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
28824 on get_iv_value result.
28826 2012-02-02 Andrew Pinski <apinski@cavium.com>
28828 PR middle-end/47982
28829 PR middle-end/43967
28830 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
28832 2012-02-02 Jakub Jelinek <jakub@redhat.com>
28834 PR middle-end/48071
28835 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
28837 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
28839 PR rtl-optimization/49800
28840 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
28841 (sched_finish): Call regstat_free_n_sets_and_refs.
28843 2012-02-02 Jia Liu <proljc@gmail.com>
28845 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
28848 2012-02-02 Jan Hubicka <jh@suse.cz>
28849 Tom de Vries <tom@codesourcery.com>
28851 PR middle-end/51998
28852 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
28853 * varpool.c (varpool_analyze_pending_decls): Likewise.
28855 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
28856 Jayant R Sonar <jayant.sonar@kpitcummins.com>
28858 * config.gcc: Add cr16-* support.
28860 * doc/extend.texi: Document cr16 extensions.
28861 * doc/install.texi: Document cr16 install.
28862 * doc/invoke.texi: Document cr16 options.
28863 * doc/md.texi: Document cr16 constraints.
28865 * common/config/cr16/cr16-common.c: New file.
28866 * config/cr16/cr16.c: New file.
28867 * config/cr16/cr16.h: New file.
28868 * config/cr16/cr16.md: New file.
28869 * config/cr16/cr16.opt: New file.
28870 * config/cr16/cr16-protos.h: New file.
28871 * config/cr16/predicates.md: New file.
28872 * config/cr16/constraints.md: New file.
28873 * config/cr16/t-cr16: New file.
28875 2012-02-02 Jakub Jelinek <jakub@redhat.com>
28878 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
28879 that operands[2] is either immediate, or q_regs_operand.
28881 PR tree-optimization/52073
28882 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
28883 a pattern stmt for pattern uses, ignore uses outside of the loop.
28885 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
28887 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
28888 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
28889 (OUT_AS1, OUT_AS2): Remove.
28891 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
28893 PR rtl-optimization/51374
28894 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
28895 to cross other volatile_refs_p insns.
28897 2012-02-01 Richard Guenther <rguenther@suse.de>
28899 * doc/invoke.texi (fno-inline): Clarify documentation.
28900 (finline-small-functions): Likewise.
28901 (finline-functions): Likewise.
28902 * common.opt (finline): Adjust comment and documentation.
28903 (finline-small-functions): Clarify documentation.
28904 (finline-functions): Likewise.
28905 (finline-functions-called-once): Likewise.
28907 2012-02-01 Tristan Gingold <gingold@adacore.com>
28909 * c-typeck.c (composite_type): Keep mode for pointers.
28911 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
28913 * function.h (regno_reg_rtx): Adjust comment.
28914 * reginfo.c (init_reg_modes_target): Only use the previous mode
28915 if it fits within one register. Remove MIPS comment.
28917 2012-01-31 Jakub Jelinek <jakub@redhat.com>
28920 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
28922 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28924 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
28925 to srak instruction.
28927 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
28929 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
28931 2012-01-31 Jakub Jelinek <jakub@redhat.com>
28936 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
28938 2012-01-31 Richard Guenther <rguenther@suse.de>
28940 PR tree-optimization/51528
28941 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
28944 2012-01-31 Jakub Jelinek <jakub@redhat.com>
28949 * ree.c (add_removable_extension): Change def_map argument
28950 to unsigned *, store in def_map 1 + offset into *insn_list vector
28951 instead of pointers into the vector.
28952 (find_removable_extensions): Adjust caller.
28954 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
28956 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
28957 Transform all "* quoted-c-code" to { c-code }.
28958 Remove redundant test for "optimize" in combine patterns.
28959 Move (include "avr-dimode.md") to end of file.
28961 2012-01-30 Bin Cheng <bin.cheng@arm.com>
28964 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
28965 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
28967 2012-01-30 Richard Guenther <rguenther@suse.de>
28969 PR tree-optimization/52028
28970 * tree-loop-distribution.c (ldist_gen): Properly update
28973 2012-01-30 Jakub Jelinek <jakub@redhat.com>
28976 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
28977 set_cur_line_info_table if not emitting debug info.
28979 PR tree-optimization/52046
28980 * tree-vect-patterns.c (check_bool_pattern): Give up if
28981 a comparison could throw.
28984 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
28986 2012-01-30 Richard Guenther <rguenther@suse.de>
28988 PR tree-optimization/52045
28989 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
28990 SSA form if cfgcleanup did anything.
28992 2012-01-30 Richard Guenther <rguenther@suse.de>
28994 PR tree-optimization/52045
28995 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
28996 before computing final todo.
28998 2012-01-30 Richard Guenther <rguenther@suse.de>
29000 PR tree-optimization/51528
29001 * tree-sra.c (sra_modify_assign): Re-factor in preparation
29004 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
29006 * df-problems.c (df_kill_notes): Check that the use refers
29007 to the note under examination.
29009 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
29012 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
29013 parameter and use short-lived pseudos.
29014 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
29015 (sparc_expand_vector_init): Const-ify local variables and adjust
29016 calls to above functions.
29018 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
29020 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
29022 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
29024 * doc/invoke.texi: Make usage of "compile time" and
29025 "run time"/"runtime" consistent throughout the file.
29027 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
29029 * config/alpha/alpha.c (alpha_option_override): Default to
29030 full IEEE compliance mode for Go language.
29032 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
29034 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
29035 (LINK_SSP_SPEC): Define.
29037 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29040 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
29043 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
29045 * doc/invoke.texi: Correct hyphenation of "floating point",
29046 "double precision", and related terminology throughout the file.
29048 2012-01-28 Jakub Jelinek <jakub@redhat.com>
29051 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
29052 arm_general_register_operand predicate for operand 2 instead of
29055 2012-01-27 Ian Lance Taylor <iant@google.com>
29058 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
29059 * builtins.c (expand_builtin_init_trampoline): Add onstack
29060 parameter. Change caller.
29061 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
29062 * tree.c (build_common_builtin_nodes): Declare
29063 __builtin_init_heap_trampoline.
29065 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
29067 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
29068 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
29069 * config/avr/avr.c: Ditto.
29070 (avr_regnames): Remove because unused.
29071 * config/avr/avr.md (*cpse.ne): New peephole.
29072 (*cpse.eq): New peephole from former cpse peepholes.
29074 2012-01-27 Michael Eager <eager@eagercon.com>
29076 * config/microblaze.c (microblaze_emit_compare): Correct
29077 test after pcmp instruction.
29079 2012-01-27 Richard Guenther <rguenther@suse.de>
29081 PR tree-optimization/52020
29082 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
29084 2012-01-27 Richard Guenther <rguenther@suse.de>
29086 * ipa-pure-const.c (check_stmt): Clobbers do not make a
29087 function non-const/pure.
29089 2012-01-27 Richard Guenther <rguenther@suse.de>
29091 PR tree-optimization/50444
29092 * tree-sra.c (build_ref_for_offset): Properly adjust the
29093 MEM_REF type for unaligned accesses.
29095 2012-01-27 Richard Guenther <rguenther@suse.de>
29097 PR tree-optimization/50444
29098 * expr.c (mem_ref_refers_to_non_mem_p): New function.
29099 (expand_assignment): Use it. Properly handle misaligned
29100 bases when expanding stores to component references.
29101 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
29102 refactor that case.
29104 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
29106 PR middle-end/51389
29107 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
29108 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
29109 * tree-data-ref.c (find_data_references_in_loop): Make static.
29110 (compute_all_dependences): Change return type to bool. Bail out
29111 for too many datarefs in a loop. Move the hunk resetting the data
29112 dependences vector from ...
29113 (compute_data_dependences_for_loop): ... here. Account for
29114 compute_all_dependences returning false.
29115 (compute_data_dependences_for_bb): Likewise.
29116 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
29117 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
29119 2012-01-27 Richard Guenther <rguenther@suse.de>
29121 PR middle-end/51959
29122 * expr.c (store_field): Use the alias-set of the scratch memory
29125 2012-01-27 Tom de Vries <tom@codesourcery.com>
29127 PR tree-optimization/51990
29128 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
29130 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
29132 2012-01-27 Jakub Jelinek <jakub@redhat.com>
29135 * var-tracking.c (reverse_op): Don't add any reverse operation
29136 if V already has any constant locations.
29138 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
29140 * doc/invoke.texi: Correct usage of "command line" (noun)
29141 vs "command-line" (adjective) throughout.
29143 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
29145 * doc/invoke.texi (Language Independent Options): Move
29146 -Wcoverage-mismatch blurb from here....
29147 (Warning Options): ...to here.
29149 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
29151 * config/rs6000/rs6000.c (rs6000_option_override_internal):
29152 Set rs6000_always_hint to false for 476.
29154 2012-01-27 Matthias Klose <doko@ubuntu.com>
29156 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
29158 * incpath.c (add_standard_paths): Likewise.
29160 2012-01-27 Richard Henderson <rth@redhat.com>
29162 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
29163 * config/m68k/sync.md (atomic_test_and_set): Rename from
29164 sync_test_and_setqi and adjust the operands.
29165 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
29166 and unconditionally enable.
29168 2012-01-27 Richard Henderson <rth@redhat.com>
29170 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
29171 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
29172 (ldstub): Rename from ldstubqi.
29173 (ldstub<I24MODE>): Remove.
29175 2012-01-27 Richard Henderson <rth@redhat.com>
29177 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
29178 * c-cppbuiltin.c (cpp_atomic_builtins): Define
29179 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
29180 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
29181 * doc/tm.texi: Rebuild.
29183 2012-01-27 Richard Henderson <rth@redhat.com>
29185 * optabs.c (gen_atomic_test_and_set): Remove default.
29186 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
29188 2012-01-26 Jakub Jelinek <jakub@redhat.com>
29190 PR rtl-optimization/51978
29191 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
29192 (combine_reaching_defs): Likewise.
29193 (struct re_info): Remove.
29194 (add_removable_extension): Remove x and data arguments,
29195 add insn, insn_list and def_map. Use the arguments directly
29196 instead of using struct re_info.
29197 (find_removable_extensions): Don't call add_removable_extension
29198 through note_stores, instead just call it with single_set
29199 result if non-NULL.
29200 (find_and_remove_re): Pass curr_cand->expr instead of
29201 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
29203 2012-01-26 Michael Matz <matz@suse.de>
29205 PR tree-optimization/46590
29206 * cfgexpand.c: Revert last change (r183305).
29207 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
29209 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
29210 checking for emptiness.
29212 2012-01-26 Jakub Jelinek <jakub@redhat.com>
29214 PR middle-end/51895
29215 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
29216 non-addressable non-BLKmode base correctly.
29218 2012-01-26 Michael Matz <matz@suse.de>
29220 PR tree-optimization/48794
29221 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
29222 regions referenced from RESX/EH_DISPATCH.
29224 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29226 * config/s390/s390.h: Make BRANCH_COST an option.
29227 * config/s390/s390.opt: New option -mbranch-cost.
29229 2012-01-26 Richard Henderson <rth@redhat.com>
29231 Revert 2012-01-24 change:
29232 * trans-mem.c (requires_barrier): Do not instrument thread local
29233 variables and emit save/restore for them.
29235 2012-01-25 Jakub Jelinek <jakub@redhat.com>
29237 PR middle-end/51986
29238 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
29241 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29243 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
29246 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
29249 Rename __pgm to __flash.
29250 Rename __pgm1 to __flash1.
29251 Rename __pgm2 to __flash2.
29252 Rename __pgm3 to __flash3.
29253 Rename __pgm4 to __flash4.
29254 Rename __pgm5 to __flash5.
29255 Rename __pgmx to __memx.
29256 * doc/extend.texi (AVR Named Address Spaces)
29257 Rename address space names as indicated above.
29258 * config/avr/avr.c (avr_addrspace): Ditto.
29260 * config/avr/avr-protos.h
29261 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
29262 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
29263 * config/avr/predicates.md: Ditto.
29264 * config/avr/avr.c Ditto, and
29265 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
29266 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
29268 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
29269 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
29270 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
29271 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
29272 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
29273 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
29274 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
29275 * config/avr/avr.c: Ditto.
29276 * config/avr/avr.md: Ditto.
29278 2012-01-25 Jason Merrill <jason@redhat.com>
29281 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
29283 2012-01-25 Jakub Jelinek <jakub@redhat.com>
29285 PR tree-optimization/51987
29286 * tree-data-ref.c (get_references_in_stmt): Handle references in
29287 non-volatile GIMPLE_ASM.
29289 2012-01-25 Richard Guenther <rguenther@suse.de>
29291 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
29292 bases are dereferenced.
29294 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
29296 PR rtl-optimization/48374
29297 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
29299 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
29301 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
29302 compute_data_dependences_for_loop returns false.
29303 * tree-parloops.c (loop_parallel_p): Likewise.
29305 2012-01-25 Richard Guenther <rguenther@suse.de>
29307 * tree.h (get_pointer_alignment_1): Declare.
29308 * builtins.c (get_pointer_alignment_1): New function.
29309 (get_pointer_alignment): Use it.
29311 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29313 PR rtl-optimization/48308
29314 * combine.c (enum undo_kind): Add UNDO_LINKS.
29315 (struct undo): Add member l to other_contents and where.
29316 (do_SUBST_LINK): New.
29318 (try_combine): Handle LOG_LINKS for the dummy i1 case.
29319 (undo_all): Handle UNDO_LINKS.
29321 2012-01-25 Richard Henderson <rth@redhat.com>
29323 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
29326 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
29328 * optabs.c (gen_atomic_test_and_set): Use each argument.
29330 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
29332 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
29333 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
29334 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
29335 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
29336 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
29337 TARGET_PAIRED_SINGLE_FLOAT.
29339 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
29341 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
29342 (in_struct, return_val): Remove MEM documentation.
29343 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
29344 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
29345 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
29347 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29348 * cfgexpand.c (add_alias_set_conflicts): Likewise.
29349 * expr.c (store_field): Likewise.
29350 * function.c (assign_stack_temp_for_type): Likewise.
29351 * ifcvt.c (noce_try_cmove_arith): Likewise.
29352 * reload1.c (reload): Likewise.
29353 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
29354 (alpha_set_memflags): Likewise.
29355 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
29357 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
29359 * rtl.h (true_dependence, canon_true_dependence): Remove varies
29361 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
29362 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
29363 (true_dependence_1, true_dependence, canon_true_dependence): Remove
29365 * cselib.c (cselib_rtx_varies_p): Delete.
29366 (cselib_invalidate_mem): Update call to canon_true_dependence.
29367 * dse.c (record_store, check_mem_read_rtx): Likewise.
29368 (scan_reads_nospill): Likewise.
29369 * cse.c (check_dependence): Likewise.
29370 (cse_rtx_varies_p): Delete.
29371 * expr.c (safe_from_p): Update call to true_dependence.
29372 * ira.c (validate_equiv_mem_from_store): Likewise.
29373 (memref_referenced_p): Likewise.
29374 * postreload-gcse.c (find_mem_conflicts): Likewise.
29375 * sched-deps.c (sched_analyze_2): Likewise.
29376 * store-motion.c (load_kills_store): Likewise.
29377 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
29378 * gcse.c (mems_conflict_for_gcse_p): Likewise.
29379 (compute_transp): Update call to canon_true_dependence.
29381 2012-01-25 Richard Henderson <rth@redhat.com>
29383 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
29384 (maybe_emit_atomic_test_and_set): New.
29385 (expand_sync_lock_test_and_set): Use it.
29386 (expand_atomic_test_and_set): Likewise.
29387 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
29388 the implementation; clarify implementation defined details.
29389 * doc/md.texi (atomic_test_and_set): Document.
29391 2012-01-25 Richard Henderson <rth@redhat.com>
29393 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
29395 2012-01-25 Richard Henderson <rth@redhat.com>
29398 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
29399 to effect no-op split.
29401 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
29404 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
29405 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
29406 (BT_FN_VOID_PTR_INT_SIZE): New.
29407 (BT_FN_UINT_UINT_VAR): Remove.
29408 (BT_FN_UINT32_UINT32_VAR): New.
29409 (BT_FN_DOUBLE_VPTR): Remove.
29410 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
29412 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
29413 (_ITM_changeTransactionMode): Same.
29414 (_ITM_memmoveRtWt): Change return type to void.
29415 (_ITM_memcpyRtWt): Same.
29416 (_ITM_memsetW): Same.
29417 (_ITM_RaRD): Change types to double.
29422 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
29424 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
29425 Patrick Marlier <patrick.marlier@gmail.com>
29427 * trans-mem.c (requires_barrier): Do not instrument thread local
29428 variables and emit save/restore for them.
29430 2012-01-24 Jason Merrill <jason@redhat.com>
29433 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
29434 output static aliases.
29436 2012-01-24 Jakub Jelinek <jakub@redhat.com>
29439 * common.opt (-pie, -shared, pie, shared): Change from Common to
29441 * gcc.c (display_help): Display help for -pie and -shared.
29443 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
29446 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
29447 Remove note on size/offset limitation.
29448 (AVR Variable Attributes): Add example how to read data located
29449 with progmem. Refer to named address spaces.
29450 * doc/invoke.texi (AVR Options): Fix typo.
29452 2012-01-24 Richard Guenther <rguenther@suse.de>
29454 Forward-port to trunk
29455 2010-09-21 Jakub Jelinek <jakub@redhat.com>
29457 PR middle-end/45678
29458 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
29459 op0 isn't sufficiently aligned and there is movmisalignM
29460 insn for mode, use it to load op0 into a temporary register.
29462 2012-01-24 Jakub Jelinek <jakub@redhat.com>
29465 * target.def (const_not_ok_for_debug_p): New hook.
29466 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
29468 * doc/tm.texi: Regenerated.
29469 * dwarf2out.c (const_ok_for_output_1): If
29470 targetm.const_not_ok_for_debug_p returns true, fail.
29471 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
29473 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
29475 2012-01-23 Kai Tietz <ktietz@redhat.com>
29478 * config/i386/predicates.md (symbolic_operand): Allow
29479 UNSPEC_PCREL as PIC expression for lea.
29480 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
29481 * config/i386/i386.c (ix86_delegitimize_address): Handle
29482 UNSPEC_PCREL for none-MEM, too.
29484 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
29486 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
29487 (ipa_tm_create_version_alias): Same.
29489 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
29492 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
29493 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
29495 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
29496 Patrick Marlier <patrick.marlier@gmail.com>
29497 Iain Sandoe <developer@sandoe-acoustics.co.uk>
29500 * lto-wrapper.c (run_gcc): Pass the LTO section name to
29501 simple_object_start_read.
29503 2012-01-23 Richard Guenther <rguenther@suse.de>
29506 PR tree-optimization/51895
29507 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
29508 parameter decomposition into BLKmode components.
29510 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
29512 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
29513 fake variables for restrict-qualified pointers whose pointed-to type
29514 contains a placeholder.
29516 2012-01-23 Richard Guenther <rguenther@suse.de>
29518 PR tree-optimization/51949
29519 * ipa-split.c (execute_split_functions): Do not split malloc functions.
29521 2012-01-23 Jakub Jelinek <jakub@redhat.com>
29523 PR rtl-optimization/51933
29524 * ree.c (transform_ifelse): Return true right away if dstreg is
29525 already wider or equal to cand->mode.
29526 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
29527 (make_defs_and_copies_lists): Remove defs_list and copies_list
29528 arguments, add state argument, just truncate state->work_list
29529 instead of always allocating and freeing the vector. Assert that
29530 get_defs succeeds instead of returning 2. Changed return type to bool.
29531 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
29532 have ext_src_mode, see if it has been modified already with the
29533 right kind of extension and has been extended before from the
29534 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
29535 just return true. Remember the original mode in state->modified array.
29536 (combine_reaching_defs): Add state argument. Don't allocate and
29537 free here def_list, copied_list and vec vectors, instead just
29538 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
29539 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
29540 Add state variable, clear vectors in it, initialize state.modified
29541 if needed. Free all the vectors at the end and state.modified too.
29542 Don't skip a candidate if the extension expression has been modified.
29544 2012-01-22 Douglas B Rupp <rupp@gnat.com>
29547 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
29548 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
29549 (extra_options) interix.opt -> i386/interix.opt"
29550 (extra_objs):Add winnt-stubs.o
29551 * configure.ac: Add interix to target_os .comm on PE check.
29552 * configure: Regenerate.
29553 * config/interix3.h: Delete and move bits to..
29554 * config/interix.h: Delete and move bits to..
29555 * config/i386/i386-interix3.h: Delete and move bits to..
29556 * config/i386/i386-interix.h: ..here.
29557 (TARGET_CPU_DEFAULT): Remove redefinition.
29558 (TARGET_ASM_CONSTRUCTOR): Undefine.
29559 (SUBTARGET_SWITCHES): Define for ms-bitfields.
29560 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
29561 (PTRDIFF_TYPE): Define.
29562 (LONG_DOUBLE_TYPE_SIZE): Define.
29563 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
29564 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
29565 (TARGET_SECTION_TYPE_FLAGS): Define.
29566 (ASM_DECLARE_FUNCTION_NAME): Define.
29567 (ASM_OUTPUT_EXTERNAL): Define.
29568 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
29569 (ASM_OUTPUT_ALIGNED_BSS): Define.
29570 (PCC_BITFIELD_TYPE_MATTERS): Define.
29571 (USE_CONST_SECTION): Define.
29572 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
29573 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
29574 (SUPPORTS_ONE_ONLY): Remove.
29575 (I386_PE_STRIP_ENCODING): Define.
29576 * config/interix.opt: Delete and move bits to..
29577 * config/i386/interix.opt: ..here. New.
29578 (mpe-aligned-commons): Add.
29579 * config/i386/t-interix: Add copyright header.
29580 (winnt-stubs.o): Add rule.
29582 2012-01-22 Jason Merrill <jason@redhat.com>
29585 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
29586 for extra name aliases.
29588 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
29590 PR rtl-optimization/51924
29591 * ree.c (combine_set_extension): Improve debugging message.
29592 (combine_reaching_defs): Likewise.
29593 (get_defs): Rename confusingly named variable.
29594 (find_and_remove_re): Skip a candidate if the extension expression has
29597 2012-01-21 Robert Millan <rmh@gnu.org>
29598 Gerald Pfeifer <gerald@pfeifer.com>
29600 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
29601 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
29603 2012-01-20 Jakub Jelinek <jakub@redhat.com>
29605 PR tree-optimization/51914
29606 * tree-vect-stmts.c (vectorizable_conversion): For
29607 cvt_type && modifier == WIDEN, put temporary with cvt_type
29608 at the beginning of vec_dsts and set vec_dest to temporary
29611 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
29613 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
29615 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
29617 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
29618 * config/rs6000/rs6000.c: Likewise.
29620 2012-01-20 Jakub Jelinek <jakub@redhat.com>
29623 * config/arm/arm.c (arm_count_output_move_double_insns): Call
29624 output_move_double on a copy of operands array.
29626 2012-01-20 Cary Coutant <ccoutant@google.com>
29627 Dodji Seketeli <dodji@redhat.com>
29630 * dwarf2out.c (copy_declaration_context): Return ref to parent
29631 of declaration DIE, if necessary.
29632 (remove_child_or_replace_with_skeleton): Add new parameter; update
29633 caller. Place skeleton DIE under parent DIE of original declaration.
29634 Move call to copy_declaration_context to here ...
29635 (break_out_comdat_types): ... from here.
29637 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29639 PR rtl-optimization/51856
29640 * reload.c (find_reloads_subreg_address): Set the address_reloaded
29643 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29646 * config/arm/arm.c (arm_print_operand): Correct output of alignment
29647 hints for neon loads and stores.
29649 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
29653 * doc/extend.texi (Named Address Spaces): Split into subsections.
29654 (AVR Named Address Spaces): New subsection.
29655 (M32C Named Address Spaces): New subsection.
29656 (RL78 Named Address Spaces): New subsection.
29657 (SPU Named Address Spaces): New subsection.
29658 (Variable Attributes): New anchor "AVR Variable Attributes".
29659 (AVR Variable Attributes): Rewrite and avoid wording
29660 "address space" in this context.
29661 * doc/invoke.texi (AVR Options): Rewrite and add documentation
29662 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
29663 (AVR Built-in Macros): New subsubsection therein.
29664 * doc/md.texi (AVR constraints): Remove "C04", "R".
29666 2012-01-20 Richard Guenther <rguenther@suse.de>
29668 PR tree-optimization/51903
29669 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
29670 when removing stmts.
29672 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29675 * config/arm/arm.c (arm_load_pic_register): Use
29676 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
29677 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
29678 (arm_pic_static_addr): Likewise.
29679 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
29680 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
29681 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
29682 (pic_load_addr_unified): New.
29684 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
29687 * function.c (instantiate_virtual_regs_in_insn): Use
29688 delete_insn_and_edges when removing a wrong asm insn.
29690 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
29692 PR rtl-optimization/40761
29693 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
29694 Add new member loop_num.
29695 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
29696 (ira_build): Remove the parameter.
29698 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
29699 (ira.c): Do not build CFG loops for one region allocation. Remove
29700 argument from ira_build call.
29702 * ira-build.c (init_loop_tree_node): New function.
29703 (create_loop_tree_nodes): Use it. Separate the case when CFG
29704 loops are not built.
29705 (more_one_region_p): Check current_loops.
29706 (finish_loop_tree_nodes): Separate the case when CFG loops are not
29708 (add_loop_to_tree): Process loop equal to NULL too.
29709 (form_loop_tree): Separate the case when CFG loops are not built.
29710 Use explicitly number for the root.
29711 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
29713 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
29714 instead of loop->num.
29715 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
29716 (mark_all_loops_for_removal): Ditto.
29717 (remove_unnecessary_regions): Separate the case when CFG loops
29719 (ira_build): Remove the parameter. Use explicit number of regions
29720 when CFG loops are not built.
29722 * ira-color.c (print_loop_title): Separate the case for the root node.
29723 Use loop_num instead of loop->num.
29724 (move_spill_restore): Use loop_num instead of loop->num.
29726 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
29727 (change_loop): Ditto.
29728 (change_loop): Use loop_num instead of loop->num.
29730 * ira-lives.c (process_bb_node_lives): Ditto.
29732 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
29734 * ira-conflicts.c (print_allocno_conflicts): Ditto.
29736 2012-01-19 Jakub Jelinek <jakub@redhat.com>
29738 PR libmudflap/40778
29739 * tree-mudflap.c (mf_artificial): New function.
29740 (execute_mudflap_function_ops, execute_mudflap_function_decls,
29741 mx_register_decls, mudflap_enqueue_decl): Use it.
29744 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
29745 numbers in the insn pattern.
29747 2012-01-19 Michael Matz <matz@suse.de>
29749 PR tree-optimization/46590
29750 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
29751 use it in remembering which conflicts we already created.
29752 (add_scope_conflicts): Adjust call to above, (de)allocate helper
29755 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
29758 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
29759 (merge_and_complain): Same.
29761 2012-01-19 Jakub Jelinek <jakub@redhat.com>
29764 * config/initfini-array.h: Guard content of the header
29765 with #ifdef HAVE_INITFINI_ARRAY.
29766 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
29767 Add initfini-array.h to tm_file here.
29768 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
29769 * config.gcc: Don't add initfini-array.h to tm_file here.
29770 * configure: Regenerated.
29772 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
29774 PR rtl-optimization/51505
29775 * df-problems.c (df_kill_notes): New parameter live. Update comment.
29776 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
29777 (df_note_bb_compute): Update the call to df_kill_notes.
29779 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
29781 * trans-mem.c (requires_barrier): Remove call to is_global_var.
29783 2012-01-18 Richard Guenther <rguenther@suse.de>
29785 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
29786 of conversions to void *.
29788 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29789 Richard Sandiford <rdsandiford@googlemail.com>
29791 PR middle-end/50325
29792 PR middle-end/51192
29793 * optabs.h (simplify_expand_binop): Declare.
29794 * optabs.c (simplify_expand_binop): Make global.
29795 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
29796 endian targets if the source cannot be exactly covered by word
29799 2012-01-17 Jakub Jelinek <jakub@redhat.com>
29802 * hard-reg-set.h (struct hard_reg_set_container): New type.
29803 * target.h (struct hard_reg_set_container): Forward declare.
29804 * target.def (set_up_by_prologue): New target hook.
29805 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
29806 * doc/tm.texi: Regenerated.
29807 * function.c (thread_prologue_and_epilogue_insns): Change
29808 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
29809 Call targetm.set_up_by_prologue on it.
29810 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
29811 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
29813 2012-01-17 Nick Clifton <nickc@redhat.com>
29815 * config/rx/rx.c (rx_can_use_simple_return): New function.
29816 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
29817 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
29819 2012-01-17 Richard Guenther <rguenther@suse.de>
29821 PR middle-end/51782
29822 * expr.c (expand_assignment): Take address-space information
29823 from the address operand of MEM_REF and TARGET_MEM_REF.
29824 (expand_expr_real_1): Likewise.
29826 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29828 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
29829 reload dump is requested.
29831 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
29834 * trans-mem.c (requires_barrier): Call may_be_aliased.
29836 2012-01-17 Jakub Jelinek <jakub@redhat.com>
29838 PR tree-optimization/51877
29839 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
29840 call arguments and fndecls compare equal, instead return false if they
29841 don't. Return true only if lhs1 and lhs2 are either both NULL, or
29842 both SSA_NAMEs that are valueized the same, or they satisfy
29845 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29847 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
29849 * configure: Regenerate.
29851 2012-01-16 Jan Hubicka <jh@suse.cz>
29855 * convert.c (convert_to_integer): Use fold_convert for
29856 converting an INTEGER_CST to integer type.
29858 2012-01-16 Jason Merrill <jason@redhat.com>
29861 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
29863 2012-01-16 Jakub Jelinek <jakub@redhat.com>
29866 * config/s390/s390.c (s390_chunkify_start): Don't skip
29867 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
29868 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
29869 If insn is followed by NOTE_INSN_VAR_LOCATION or
29870 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
29871 Don't use location of note insns.
29873 PR tree-optimization/51865
29874 * tree-inline.c (tree_function_versioning): Call remap_decl
29875 on DECL_RESULT whenever it has VOID_TYPE_P type.
29877 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
29879 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
29880 for calls to locally-binding MIPS16 functions if only the return
29881 type uses float regs.
29883 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
29884 Richard Sandiford <rdsandiford@googlemail.com>
29886 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
29887 (SYMBOL_32_HIGH): Likewise.
29888 (mips_output_tls_reloc_directive): Declare.
29889 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
29890 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
29891 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
29892 (mips_lo_relocs, mips_hi_relocs): Make extern.
29893 (mips16_stub_function): Move up file.
29894 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
29895 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
29896 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
29897 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
29898 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
29899 (mips_get_tp): Add MIPS16 support.
29900 (mips_legitimize_tls_address): Remove MIPS16 sorry().
29901 Generalize DTPREL and TPREL handling.
29902 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
29903 Add MIPS16 TLS support.
29904 (mips_output_tls_reloc_directive): New function.
29905 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
29906 * config/mips/predicates.md (symbolic_operand_with_high)
29907 (tls_reloc_operand): New predicates.
29908 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
29909 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
29910 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
29911 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
29912 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
29913 (*tls_get_tp_mips16_call_<mode>): Likewise.
29915 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
29917 PR rtl-optimization/51821
29918 * recog.c (peep2_find_free_register): Determine clobbered registers
29921 2012-01-14 Denis Chertykov <chertykov@gmail.com>
29924 * config/avr/avr-protos.h: Revert change of 2012-01-09.
29925 * config/avr/avr.c: Likewise.
29926 * config/avr/avr.h: Likewise.
29928 2012-01-13 Ian Lance Taylor <iant@google.com>
29931 * tree.h (TYPE_QUALS): Add cast to int.
29932 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
29934 2012-01-13 Ian Lance Taylor <iant@google.com>
29936 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
29937 comparing param_index to VEC_length result.
29939 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
29941 * c-decl.c: Do not include tree-mudflap.h
29942 * tree-optimize.c: Likewise.
29943 * Makefile.in: Update dependencies.
29945 2012-01-13 Richard Guenther <rguenther@suse.de>
29948 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
29949 variable-sized result always use RSO.
29951 2012-01-12 DJ Delorie <dj@redhat.com>
29953 * cfgexpand.c (convert_debug_memory_address): Allow any valid
29954 pointer type, not just the default pointer type.
29956 2012-01-09 Richard Henderson <rth@redhat.com>
29957 Denis Chertykov <chertykov@gmail.com>
29960 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
29961 * config/avr/avr.c (avr_can_eliminate): Simplify.
29962 (avr_initial_elimination_offset): Likewise.
29963 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
29964 (expand_epilogue): Likewise.
29965 (avr_legitimize_address): Gut.
29966 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
29967 (avr_hard_regno_nregs): New.
29968 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
29969 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
29970 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
29971 add soft frame pointer.
29972 (CALL_USED_REGISTERS): Likewise.
29973 (REG_CLASS_CONTENTS): Likewise.
29974 (REGISTER_NAMES): Likewise.
29975 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
29976 (HARD_FRAME_POINTER_REGNUM): New.
29977 (FRAME_POINTER_REGNUM): Use soft frame pointer.
29978 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
29979 remove the HARD_FRAME_POINTER self-elimination.
29981 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
29984 * config/avr/avr.c (avr_encode_section_info): Test for absence of
29985 DECL_EXTERNAL when checking for initializers of progmem variables.
29987 2012-01-12 Ira Rosen <irar@il.ibm.com>
29989 PR tree-optimization/51799
29990 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
29991 that the last operation is a type demotion.
29993 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
29995 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
29996 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
29998 2012-01-11 Jakub Jelinek <jakub@redhat.com>
30001 * combine.c (distribute_notes): If i3 is a noreturn call,
30002 allow old_size to be equal to args_size and make sure the
30003 noreturn call gets REG_ARGS_SIZE note.
30004 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
30005 on noreturn calls even when the delta is 0.
30007 2012-01-11 Nathan Sidwell <nathan@acm.org>
30009 * gcov.c (STRING_SIZE): Remove.
30010 (generate_results): Erase annotations for source files with no
30011 coverage information.
30013 (output_lines): Use it.
30015 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
30017 * gimple.h (gimplify_body): Remove first argument.
30018 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
30019 pointer set here, instead just pass DATA to walk_tree.
30020 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
30021 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
30022 (unvisit_body): Likewise, but with unmark_visited.
30023 (gimplify_body): Remove BODY_P argument and adjust.
30024 (gimplify_function_tree): Adjust call to gimplify_body.
30025 * omp-low.c (finalize_task_copyfn): Likewise.
30027 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
30029 * tree.h (build_function_decl_skip_args): Add boolean parameter.
30030 (build_function_type_skip_args): Delete.
30031 * tree.c (build_function_type_skip_args): Make static and add
30032 SKIP_RETURN parameter. Fix thinko in the handling of variants.
30033 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
30034 pass it to build_function_type_skip_args.
30035 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
30036 (tree_function_versioning): Likewise.
30037 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
30038 build_function_decl_skip_args.
30039 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
30040 and pass it to build_function_decl_skip_args/tree_function_versioning.
30041 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
30042 * ipa-inline-transform.c (save_inline_function_body): Likewise.
30043 * trans-mem.c (ipa_tm_create_version): Likewise.
30044 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
30045 * tree-inline.c (declare_return_variable): Remove always-true test.
30046 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
30047 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
30048 * ipa-split.c (split_function): Skip the return value for the split
30049 part if it doesn't return.
30051 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30053 PR tree-optimization/49642
30054 * ipa-split.c (forbidden_dominators): New variable.
30055 (check_forbidden_calls): New function.
30056 (dominated_by_forbidden): Likewise.
30057 (consider_split): Check for forbidden dominators.
30058 (execute_split_functions): Initialize and free forbidden
30059 dominators info; call check_forbidden_calls.
30061 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
30063 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
30065 2012-01-11 Nick Clifton <nickc@redhat.com>
30067 * config/rx/rx.md (return): Define pattern.
30069 2012-01-11 Richard Guenther <rguenther@suse.de>
30071 * doc/extend.texi (malloc attribute): Adjust according to
30074 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
30075 Patrick Marlier <patrick.marlier@gmail.com>
30077 PR middle-end/51516
30078 * trans-mem.c (get_cg_data): Traverse aliases if requested.
30079 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
30080 (ipa_tm_note_irrevocable): Same.
30081 (ipa_tm_scan_irr_block): Same.
30082 (ipa_tm_decrement_clone_counts): Same.
30083 (ipa_tm_scan_irr_function): Same.
30084 (ipa_tm_create_version_alias): Same.
30085 (ipa_tm_create_version): Same.
30086 (ipa_tm_transform_calls_redirect): Same.
30087 (ipa_tm_transform_calls): Same.
30088 (ipa_tm_transform_transaction): Same.
30089 (ipa_tm_execute): Same.
30091 2012-01-10 Richard Guenther <rguenther@suse.de>
30093 PR middle-end/51806
30094 * opts.c (common_handle_option): Handle -Werror.
30096 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
30098 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
30101 2012-01-10 Jason Merrill <jason@redhat.com>
30103 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
30106 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30108 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
30109 supports R_386_TLS_GD_PLT reloc.
30110 (gcc_cv_as_ix86_tlsldmplt): Check if linker
30111 supports R_386_TLS_LDM_PLT reloc.
30112 * configure: Regenerate.
30113 * config.in: Regenerate.
30115 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
30118 Extend __pgmx semantics to linearize memory.
30119 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
30120 determine if code comes inline or from libgcc.
30121 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
30122 (movmem_qi, movmem_qi): Set constraint #2 to "n".
30123 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
30124 (movmemx_qi, movmemx_hi): New insns.
30125 (xload_<mode>_libgcc): Rewrite to new insn condition.
30126 (xload_<mode>): Remove insns.
30127 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
30128 cases that don't satisfy avr_xload_libgcc_p().
30129 (avr_addr_space_convert): Allow converting in any direction.
30130 (avr_addr_space_subset_p): Return always true.
30131 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
30132 (avr_emit_movmemhi): Ditto.
30133 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
30134 (avr_out_movmem): Ditto.
30135 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
30136 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
30137 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
30138 (avr_encode_section_info): Encode 'progmem' in symbol flags.
30139 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
30141 2012-01-10 Richard Guenther <rguenther@suse.de>
30143 PR tree-optimization/50913
30144 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
30145 Require data-refs to be representable by Graphite with respect
30148 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
30150 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
30151 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
30153 2012-01-10 Tom de Vries <tom@codesourcery.com>
30155 PR rtl-optimization/51271
30156 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
30157 handling annulled branch.
30159 2012-01-10 Richard Henderson <rth@redhat.com>
30161 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
30162 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
30163 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
30164 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
30165 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
30166 arm_expand_vec_perm_const): New.
30167 * config/arm/arm-protos.h: Update.
30168 * config/arm/neon.md (UNSPEC_VCONCAT): New.
30169 (*neon_vswp<VDQX>): New.
30170 (neon_vcombine<VDX>): Use neon_split_vcombine.
30171 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
30172 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
30173 (vec_perm<VE>): New.
30175 2012-01-10 Richard Henderson <rth@redhat.com>
30177 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
30178 use it if reload_completed.
30179 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
30180 arm_output_asm_insn, arm_process_output_memory_barrier,
30181 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
30182 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
30183 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
30184 arm_process_output_sync_insn, arm_output_sync_insn,
30185 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
30186 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
30187 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
30188 (emit_unlikely_jump): New.
30189 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
30190 (arm_split_atomic_op): New.
30191 * config/arm/arm-protos.h: Update.
30192 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
30193 (struct arm_sync_generator): Remove.
30194 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
30195 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
30196 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
30197 (VUNSPEC_LL, VUNSPEC_SC): New.
30198 (sync_result, sync_memory, sync_required_value, sync_new_value,
30199 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
30200 (attr length): Don't use arm_sync_loop_insns.
30201 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
30202 (movsfcc, movdfcc): Likewise.
30203 * config/arm/constraints.md (Ua): New.
30204 * config/arm/prediates.md (mem_noofs_operand): New.
30205 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
30206 (sync_clobber, sync_t2_reqd): Remove.
30207 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
30208 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
30209 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
30210 (arm_sync_compare_and_swap<SIDI>): Remove.
30211 (arm_sync_compare_and_swap<NARROW>): Remove.
30212 (arm_sync_lock_test_and_set<SIDI>): Remove.
30213 (arm_sync_lock_test_and_set<NARROW>): Remove.
30214 (arm_sync_new_<syncop><SIDI>): Remove.
30215 (arm_sync_new_<syncop><NARROW>): Remove.
30216 (arm_sync_new_nand<SIDI>): Remove.
30217 (arm_sync_new_nand<NARROW>): Remove.
30218 (arm_sync_old_<syncop><SIDI>): Remove.
30219 (arm_sync_old_<syncop><NARROW>): Remove.
30220 (arm_sync_old_nand<SIDI>): Remove.
30221 (arm_sync_old_nand<NARROW>): Remove.
30222 (*memory_barrier): Merge arm_output_memory_barrier.
30223 (atomic_compare_and_swap<QHSD>): New.
30224 (atomic_compare_and_swap<NARROW>_1): New.
30225 (atomic_compare_and_swap<SIDI>_1): New.
30226 (atomic_exchange<QHSD>): New.
30227 (cas_cmp_operand, cas_cmp_str): New.
30228 (atomic_op_operand, atomic_op_str): New.
30229 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
30230 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
30231 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
30232 (arm_load_exclusive<NARROW>): New.
30233 (arm_load_exclusivesi, arm_load_exclusivedi): New.
30234 (arm_store_exclusive<QHSD>): New.
30236 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
30238 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
30239 reload patterns if -mvsx-scalar-memory.
30241 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
30242 generated, even -mno-vsx-scalar-double was used.
30243 (vsx_xscvdpsp_scalar): Likewise.
30244 (vsx_xscvspdp_scalar2): Likewise.
30246 2012-01-09 Tom de Vries <tom@codesourcery.com>
30247 Andrew Pinski <apinski@cavium.com>
30250 * reorg.c (fill_slots_from_thread): Don't speculate
30251 frame-related insns.
30253 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
30255 * sched-int.h (bb_note): Move to...
30256 * basic-block.h: ...here.
30257 * haifa-sched.c (bb_note): Move to...
30258 * cfgrtl.c: ...here.
30259 * function.c (next_block_for_reg): New function.
30260 (move_insn_for_shrink_wrap): Likewise.
30261 (prepare_shrink_wrap): Rewrite to use the above.
30263 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
30265 * gimple.c (is_gimple_non_addressable): Remove.
30266 * gimple.h: Remove is_gimple_non_addressable.
30267 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
30268 is_gimple_non_addressable.
30269 * trans-mem.c (expand_assign_tm): Same.
30271 2012-01-09 Richard Guenther <rguenther@suse.de>
30273 PR tree-optimization/51775
30274 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
30275 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
30277 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
30279 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
30281 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
30283 2012-01-09 Richard Guenther <rguenther@suse.de>
30285 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
30287 2012-01-08 Jan Hubicka <jh@suse.cz>
30289 PR tree-optimize/51680
30290 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
30291 on when known_vals needs to be computed; cleanup.
30293 2012-01-08 Jan Hubicka <jh@suse.cz>
30295 PR tree-optimize/51694
30296 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
30298 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
30300 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
30301 for -std=c++98 and -std=c++11 too.
30303 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
30305 * cfgloop.c (cancel_loop): Add free() of bbs array.
30307 2012-01-07 Jan Hubicka <jh@suse.cz>
30309 PR tree-optimization/51600
30310 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
30311 that benefits small functions.
30313 2012-01-07 Jan Hubicka <jh@suse.cz>
30315 * ipa-inline.c (want_inline_small_function_p): Fix formating.
30317 2012-01-07 Jan Hubicka <jh@suse.cz>
30319 PR tree-optimization/51680
30320 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
30321 whose inlining reduce unit size.
30323 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
30326 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
30327 Add canonical node to containing_mem chain after the non-canonical
30328 one, even if there weren't any locs to propagate.
30329 (remove_useless_values): Keep only canonical values.
30330 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
30331 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
30332 canonicalize mem_chain elements that are not discarded.
30334 2012-01-06 Jakub Jelinek <jakub@redhat.com>
30337 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
30338 before emitting functions.
30340 PR gcov-profile/50127
30341 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
30342 clear_aux_for_blocks.
30344 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
30347 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
30349 2012-01-06 Arnaud Charlet <charlet@adacore.com>
30351 * c-decl.c (ext_block): Moved up.
30352 (collect_all_refs, for_each_global_decl): Take ext_block into account.
30354 2012-01-06 Han Shen <shenhan@google.com>
30356 Translate built-in include paths for sysroot.
30357 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
30358 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
30360 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
30361 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
30363 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
30364 control whether sysroot should be prepended to gxx include dir.
30366 * configure: Regenerate.
30368 2012-01-06 Torvald Riegel <triegel@redhat.com>
30370 PR rtl-optimization/51771
30371 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
30372 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
30374 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
30376 PR tree-optimization/51315
30377 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
30378 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
30380 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
30383 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
30384 for shrp pattern. Correctly handle and fixup shift variable.
30385 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
30387 2012-01-05 Jakub Jelinek <jakub@redhat.com>
30390 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
30391 note when !ACCUMULATE_OUTGOING_ARGS.
30393 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
30395 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
30397 (extract_range_from_unary_expr_1): Avoid useless computations.
30399 2012-01-05 Jakub Jelinek <jakub@redhat.com>
30401 PR rtl-optimization/51767
30402 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
30403 of jump_block and add an extra edge for degenerated asm gotos.
30405 PR middle-end/51768
30406 * stmt.c (check_unique_operand_names): Don't ICE during error
30407 reporting if i is from labels chain.
30409 PR middle-end/44777
30410 * profile.c (branch_prob): Split bbs that have exit edge
30411 and need a fake entry edge too.
30413 2012-01-05 Jan Hubicka <jh@suse.cz>
30415 PR middle-end/49710
30416 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
30419 2012-01-05 Richard Guenther <rguenther@suse.de>
30422 * tree-streamer-out.c (write_ts_optimization): New function.
30423 (streamer_write_tree_body): Call it.
30424 * tree-streamer-in.c (lto_input_ts_optimization): New function.
30425 (streamer_read_tree_body): Call it.
30426 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
30428 2012-01-05 Jakub Jelinek <jakub@redhat.com>
30430 PR middle-end/51761
30431 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
30432 * gimplify.c (gimplify_cleanup_point_expr): Save and set
30433 in_cleanup_point_expr before gimplify_stmt call and restore it
30435 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
30436 in_cleanup_point_expr is false.
30438 2012-01-05 Richard Guenther <rguenther@suse.de>
30440 PR middle-end/51764
30441 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
30443 * toplev.c (process_options): Reject combining mudflap and LTO.
30444 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
30446 2012-01-05 Richard Guenther <rguenther@suse.de>
30448 PR tree-optimization/51760
30449 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
30451 (bit_value_unop): Handle UNDEFINED operands.
30452 (bit_value_binop): Likewise.
30454 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
30456 * config/avr/avr.c (avr_replace_prefix): Remove.
30457 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
30458 (avr_asm_function_rodata_section): Ditto.
30459 (avr_asm_select_section): Ditto.
30461 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
30463 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
30466 2012-01-05 Jakub Jelinek <jakub@redhat.com>
30469 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
30470 calls that have any non-fake successor edges.
30473 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
30475 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
30477 PR tree-optimization/51624
30478 * tree-sra.c (build_ref_for_model): When replicating a chain of
30479 COMPONENT_REFs, stop as soon as the offset would become negative.
30481 2012-01-04 Jakub Jelinek <jakub@redhat.com>
30484 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
30485 in .debug_loc on the floor.
30487 2012-01-04 Andrew Pinski <apinski@cavium.com>
30489 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
30491 2012-01-04 Andrew Pinski <apinski@cavium.com>
30492 Adam Nemet <anemet@caviumnetworks.com>
30494 * config/mips/mips.md (size): Add SI and DI.
30495 (SIZE): New mode attribute.
30496 (U): New code attribute.
30497 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
30498 (mips_lbux_<mode>): Delete.
30499 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
30500 (mips_lhx): Use gen_mips_lhx_extsi.
30501 (mips_lhx_<mode>): Delete.
30502 (mips_lwx): Delete.
30503 (mips_l<size>x): New expand.
30504 (mips_lwx_<mode>): Delete.
30505 (mips_l<GPR:size>x_<P:mode>): New pattern.
30506 (*mips_lw<u>x_<P:mode>_ext): Likewise.
30507 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
30508 * config/mips/mips.c (mips_lx_address_p): New function.
30509 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
30510 (dsp64): New availability predicate.
30511 (mips_builtins): Add an entry for __builtin_mips_ldx.
30512 * config/mips/mips.h (ISA_HAS_LBX): New define.
30513 (ISA_HAS_LBUX): Likewise.
30514 (ISA_HAS_LHX): Likewise.
30515 (ISA_HAS_LHUX): Likewise.
30516 (ISA_HAS_LWX): Likewise.
30517 (ISA_HAS_LWUX): Likewise.
30518 (ISA_HAS_LDX): Likewise.
30519 * doc/extend.texi (__builtin_mips_ldx): Document.
30521 2012-01-04 Tristan Gingold <gingold@adacore.com>
30523 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
30524 when long pointers are used.
30525 * config.build (*-*-*vms*): Handle all OpenVMS targets.
30526 (alpha64-dec-*vms*, alpha*-dec-*vms*)
30527 (ia64-hp-*vms*): Remove.
30528 * config/vms/xm-vms64.h: Delete.
30530 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
30532 PR middle-end/51472
30533 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
30535 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
30537 * opts.c (finish_options): Remove duplicate sorry.
30539 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
30541 PR middle-end/51696
30542 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
30545 2012-01-04 Richard Guenther <rguenther@suse.de>
30547 PR middle-end/51750
30548 * tree.c (size_low_cst): New function.
30549 * tree.h (size_low_cst): Declare.
30550 * fold-const.c (fold_comparison): Use it to extract the low
30551 part of the POINTER_PLUS_EXPR offset.
30553 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
30555 Fix clearing ZERO_REG
30556 * config/avr/avr.md (cc): Add alternative "ldi".
30557 (movqi_insn): Use it in cc attribute.
30558 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
30559 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
30560 (output_reload_insisf): Use ZERO_REG to pre-clear register.
30562 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30564 * configure: Regenerate.
30566 2012-01-04 Richard Guenther <rguenther@suse.de>
30568 PR tree-optimization/49651
30569 * tree-ssa-structalias.c (type_can_have_subvars): New function.
30570 (var_can_have_subvars): Use it.
30571 (get_constraint_for_1): Only consider subfields if there can be any.
30573 2012-01-03 Jakub Jelinek <jakub@redhat.com>
30576 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
30577 to its new canonical_cselib_val and the cselib_val was in
30578 first_containing_mem chain, but the canonical_cselib_val was not,
30579 add the latter into the chain.
30580 (cselib_invalidate_mem): Compare canonical_cselib_val of
30581 addr_list chain elt with v.
30584 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
30585 dwarf2out_undef): Allocate e.info using ggc_strdup instead
30587 (output_macinfo_op): Don't ggc_strdup fd->filename.
30588 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
30589 then ggc_strdup it. Don't free inc->info or cur->info.
30590 (output_macinfo): Don't free ref->info or file->info.
30592 2012-01-03 Ira Rosen <irar@il.ibm.com>
30594 PR tree-optimization/51269
30595 * tree-vect-loop-manip.c (set_prologue_iterations): Make
30596 first_niters a pointer.
30597 (slpeel_tree_peel_loop_to_edge): Likewise.
30598 (vect_do_peeling_for_loop_bound): Update call to
30599 slpeel_tree_peel_loop_to_edge.
30600 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
30601 here. Remove it from the parameters list.
30602 (vect_do_peeling_for_alignment): Update calls and compute
30603 wide_prolog_niters.
30605 2012-01-03 Richard Guenther <rguenther@suse.de>
30607 PR tree-optimization/51070
30608 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
30609 Properly handle calls.
30611 2012-01-03 Richard Guenther <rguenther@suse.de>
30613 PR tree-optimization/51692
30614 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
30615 the LHS of allocation stmts.
30617 2012-01-03 Olivier Hainque <hainque@adacore.com>
30619 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
30621 2012-01-03 Olivier Hainque <hainque@adacore.com>
30623 * collect2.c (main): In AIX specific computations for vector
30624 insertions, use CONST_CAST2 to cast from char ** to const char **.
30626 2012-01-03 Richard Guenther <rguenther@suse.de>
30629 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
30630 the context of a limbo DIE when it does not already exist.
30632 2012-01-03 Jakub Jelinek <jakub@redhat.com>
30634 PR tree-optimization/51719
30635 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
30636 but direct call is, clear direct call's lhs and don't add fallthrough
30637 edge from dcall_bb to join_bb and PHIs.
30639 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30641 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
30642 the instructions emitted by the pattern.
30643 ("*TDC_insn_<mode>"): Add comment.
30645 2012-01-03 Richard Guenther <rguenther@suse.de>
30647 PR middle-end/51730
30648 * fold-const.c (fold_comparison): Properly canonicalize
30649 tree offset and HOST_WIDE_INT bit position.
30651 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
30653 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
30654 operands for extzv pattern.
30656 2012-01-02 Jakub Jelinek <jakub@redhat.com>
30659 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
30662 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
30664 * doc/invoke.texi (-flto and related options): Copy-edit.
30666 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30668 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
30670 2012-01-02 Jakub Jelinek <jakub@redhat.com>
30672 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
30675 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30677 * expr.h (move_by_pieces_ninsns): Declare.
30678 * expr.c (move_by_pieces_ninsns): Make external.
30679 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
30680 (mips_store_by_pieces_p): Likewise.
30681 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
30682 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
30683 * config/mips/mips.c (mips_move_by_pieces_p): New function.
30684 (mips_store_by_pieces_p): Likewise.
30686 2012-01-02 Jakub Jelinek <jakub@redhat.com>
30688 * passes.c (register_one_dump_file): Free full_name.
30690 * reload1.c (reload): Don't allocate reg_max_ref_width here.
30691 (calculate_elim_costs_all_insns): Free offsets_at and
30692 offsets_known_at at the end and clear the pointers.
30694 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
30696 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
30697 this option introduced in r180739.
30699 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
30702 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
30703 (tmake_file target=avr): Add avr/t-multilib.
30705 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
30706 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
30707 * config/avr/genmultilib.awk: New file.
30708 * config/avr/t-multilib: New auto-generated file.
30709 * config/avr/multilib.h: New auto-generated file.
30710 * config/avr/t-avr (AVR_MCUS): New variable.
30711 (genopt.sh): Use it.
30712 (s-mlib): Depend on t-multilib.
30713 (t-multilib, multilib.h): New dependencies.
30714 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
30715 (MULTILIB_OPTIONS): Remove.
30716 (MULTILIB_MATCHES): Remove.
30717 (MULTILIB_DIRNAMES): Remove.
30718 (MULTILIB_EXCEPTIONS): Remove:
30719 * config/avr/genopt.sh: Don't use hard coded file name;
30720 pass AVR_MCUS from t-avr instead.
30722 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
30724 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
30726 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
30728 Implement light-weight DImode support.
30729 * config/avr/avr-dimode.md: New file.
30730 * config/avr/avr.md: Include it.
30731 (adjust_len): Add plus64, compare64.
30732 (HIDI): Remove code iterator.
30733 (code_stdname): New code attribute.
30734 (rotx, rotsmode): Remove DI.
30735 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
30737 * config/avr/avr-protos.h (avr_have_dimode): New.
30738 (avr_out_plus64, avr_out_compare64): New.
30739 * config/avr/avr.c (avr_out_compare): Handle DImode.
30740 (avr_have_dimode): New variable definition and initialization.
30741 (avr_out_compare64, avr_out_plus64): New functions.
30742 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
30743 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
30744 (avr_compare_pattern): Skip DImode comparisons.
30746 2012-01-02 Revital Eres <revital.eres@linaro.org>
30748 * ddg.c (def_has_ccmode_p): New function.
30749 (add_cross_iteration_register_deps,
30750 create_ddg_dep_from_intra_loop_link): Call it.
30752 2012-01-02 Richard Guenther <rguenther@suse.de>
30755 * invoke.texi (fassociative-math): Remove spurious paranthesis.
30757 2012-01-01 Jakub Jelinek <jakub@redhat.com>
30759 * gcc.c (process_command): Update copyright notice dates.
30760 * gcov.c (print_version): Likewise.
30761 * gcov-dump.c (print_version): Likewise.
30762 * mips-tfile.c (main): Likewise.
30763 * mips-tdump.c (main): Likewise.
30765 2012-01-01 Ira Rosen <irar@il.ibm.com>
30767 PR tree-optimization/51704
30768 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
30769 a use is inside the basic block or loop before accessing its vect info.
30771 2012-01-01 Jan Hubicka <jhjh@suse.cz>
30773 PR rtl-optimization/51069
30774 * cfgloopmanip.c (remove_path): Removing path making irreducible
30775 region unconditional makes BB part of the region.
30777 2012-01-01 Jakub Jelinek <jakub@redhat.com>
30779 PR tree-optimization/51683
30780 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
30781 calls with side-effects.
30782 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
30784 Copyright (C) 2012 Free Software Foundation, Inc.
30786 Copying and distribution of this file, with or without modification,
30787 are permitted in any medium without royalty provided the copyright
30788 notice and this notice are preserved.