1 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3 * common/config/c6x/c6x-common.c: New file.
5 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
7 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9 2011-07-25 Richard Guenther <rguenther@suse.de>
11 PR tree-optimization/49715
12 * tree-vrp.c: Include expr.h and optabs.h.
13 (range_fits_type_): New function.
14 (simplify_float_conversion_using_ranges): Likewise.
15 (simplify_stmt_using_ranges): Call it.
16 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
17 * optabs.c (can_float_p): Export.
18 * optabs.h (can_float_p): Declare.
20 2011-07-25 Richard Guenther <rguenther@suse.de>
22 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
23 (get_value_range): For out-of-range SSA names or names created
24 after propagation return a read-only varying range.
25 (dump_all_value_ranges): Adjust.
26 (vrp_initialize): Likewise.
27 (vrp_finalize): Likewise.
29 2011-07-24 Richard Henderson <rth@redhat.com>
32 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
35 2011-07-24 Richard Henderson <rth@redhat.com>
38 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
39 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
41 2011-07-24 Richard Henderson <rth@redhat.com>
44 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
46 2011-07-24 Richard Henderson <rth@redhat.com>
48 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
49 Zero args_size for abnormal edges. Adjust all callers.
51 2011-07-24 Richard Henderson <rth@redhat.com>
54 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
56 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
59 * collect2.c (demangle_flag): Removed.
61 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
63 * configure.ac (demangler_in_ld): Default to yes.
64 * configure: Regenerated.
65 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
66 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
67 --no-demangle options straight through to ld. When
68 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
69 way that has the intended effect on Windows.
71 2011-07-23 Richard Henderson <rth@redhat.com>
73 * dwarf2cfi.c: Include basic-block.h.
74 (dw_label_info): Remove.
75 (trace_work_list, trace_index): New.
76 (remember_row, emit_cfa_remember): Remove.
77 (dw_trace_info_hash, dw_trace_info_eq): New.
78 (get_trace_index, get_trace_info): New.
80 (free_cfi_row): Remove.
81 (add_cfi): Do not emit DW_CFA_remember_state.
82 (cfa_row_equal_p): New.
83 (barrier_args_size): Remove.
84 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
85 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
86 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
87 (dwarf2out_cfi_begin_epilogue): Remove.
88 (dwarf2out_frame_debug_restore_state): Remove.
89 (connect_traces, create_pseudo_cfg): New.
90 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
91 * Makefile.in (dwarf2cfi.o): Update.
93 2011-07-23 Richard Henderson <rth@redhat.com>
95 * dwarf2cfi.c (dw_trace_info): New.
97 (cie_return_save): New.
99 (queued_args_size): Rename from args_size. Update all users.
100 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
101 (def_cfa_1): Use cur_trace instead of cfa_*.
102 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
103 (clobbers_queued_reg_save, reg_saved_in): Likewise.
104 (dwarf2out_frame_debug_expr): Likewise.
105 (create_cie_data): Split out from ...
106 (execute_dwarf2_frame): ... here. Initialize cur_trace.
108 2011-07-23 Richard Henderson <rth@redhat.com>
110 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
111 Update all users to match.
112 (execute_dwarf2_frame): Free reg_saved_in_data.
114 2011-07-23 Richard Henderson <rth@redhat.com>
116 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
117 (queued_reg_saves): Don't GTY. Change to a VEC.
118 (queue_reg_save): Update to match.
119 (dwarf2out_flush_queued_reg_saves): Likewise.
120 (clobbers_queued_reg_save): Likewise.
121 (reg_saved_in): Likewise.
122 (execute_dwarf2_frame): Free queued_reg_saves.
124 2011-07-23 Richard Henderson <rth@redhat.com>
126 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
128 2011-07-23 Richard Henderson <rth@redhat.com>
130 * dwarf2cfi.c (add_cfi_args_size): Split out from...
131 (dwarf2out_args_size): ... here.
132 (add_cfi_restore): Split out from ...
133 (dwarf2out_frame_debug_cfa_restore): ... here.
134 (def_cfa_0): Split out from ...
135 (def_cfa_1): ... here.
136 (cfi_oprnd_equal_p, cfi_equal_p): New.
137 (change_cfi_row): New.
138 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
139 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
140 (output_cfis): Remove.
141 * dwarf2out.c (output_fde): Simplify output_cfi loop.
142 (dwarf2out_switch_text_section): Don't call output_cfis.
143 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
144 * dwarf2out.h: Update decls.
145 (enum dw_val_class): Add dw_val_class_none.
147 2011-07-23 Richard Henderson <rth@redhat.com>
149 * dwarf2cfi.c (update_row_reg_save): New.
150 (dwarf2out_frame_debug_cfa_expression): Use it.
151 (dwarf2out_frame_debug_cfa_restore): Likewise.
152 (reg_save): Likewise. Do not emit DW_CFA_same_value.
154 2011-07-23 Richard Henderson <rth@redhat.com>
156 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
158 2011-07-23 Richard Henderson <rth@redhat.com>
160 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
162 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
163 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
164 (cur_row, remember_row): New.
165 (def_cfa_1): Use cur_row instead of the old_* variables.
166 (dwarf2out_frame_debug_restore_state): Similarly.
167 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
168 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
169 (dwarf2out_frame_debug_adjust_cfa): Likewise.
170 (dwarf2out_frame_debug_cfa_offset): Likewise.
171 (dwarf2out_frame_debug_expr): Likewise.
172 (execute_dwarf2_frame): Set up cur_row.
173 * dwarf2out.h (struct cfa_loc): Mark for GTY.
175 2011-07-23 Richard Henderson <rth@redhat.com>
177 * basic-block.h (EDGE_PRESERVE): New.
178 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
179 * bb-reorder.c: Include except.h.
180 (fix_up_crossing_landing_pad): New.
181 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
182 landing pads in the right partition. Duplicate as necessary.
183 (partition_hot_cold_basic_blocks): Fix up DF info after
184 duplicating landing pads.
185 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
186 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
187 is set properly. Validate that EH edges are not CROSSING.
188 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
189 (dw2_build_landing_pads): ... here.
190 (convert_to_eh_region_ranges): Remove code to fixup crossing
192 * except.h (expand_dw2_landing_pad_for_region): Declare.
193 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
195 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
198 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
200 2011-07-22 Jason Merrill <jason@redhat.com>
202 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
204 2011-07-22 Richard Henderson <rth@redhat.com>
206 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
208 2011-07-22 Richard Henderson <rth@redhat.com>
210 * jump.c (maybe_propagate_label_ref): Split out of...
211 (mark_all_labels): ... here. Do not attempt label_ref
212 propagation while in cfglayout mode.
214 2011-07-22 Jakub Jelinek <jakub@redhat.com>
216 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
217 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
218 (dwarf_attr_name): Handle DW_AT_GNU_macros.
219 (dwarf2out_define): If the vector is empty and
220 lineno is 0, emit a dummy entry first.
221 (dwarf2out_undef): Likewise. Remove redundant semicolon.
222 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
223 optimize_macinfo_range): New functions.
224 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
225 mergeable, optimize longer strings using
226 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
227 optimize longer sequences of define/undef ops from headers
228 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
229 emit a section headers.
230 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
231 and macinfo_section_label to DEBUG_MACRO_SECTION
232 resp. DEBUG_MACRO_SECTION_LABEL.
233 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
234 instead of DW_AT_macro_info.
237 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
239 * dwarf2out.c: Include opts.h.
240 (dchar_p): New typedef. Define heap VEC for it.
241 (producer_string): New variable.
242 (gen_producer_string): New function.
243 (gen_compile_unit_die): Use it.
244 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer
246 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
247 * doc/invoke.texi: Document -grecord-gcc-switches and
248 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
249 to -frecord-gcc-switches description.
251 2011-07-22 Jason Merrill <jason@redhat.com>
254 * c-decl.c (c_linkage_bindings): Define.
256 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
259 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
261 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
263 * config/i386/i386.c (ix86_option_override_internal): Disallow
265 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
266 only for TARGET_LP64.
267 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of
270 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
272 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
273 avoid warnings when GCC is built with a C++ compiler.
275 2011-07-22 Martin Jambor <mjambor@suse.cz>
278 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
279 if decl node is in another partition, call cgraph_get_node only
282 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
284 * config.gcc (x86_64-*-linux*): Set
285 default_gnu_indirect_function to yes.
287 2011-07-22 Richard Guenther <rguenther@suse.de>
289 PR tree-optimization/45819
290 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
291 preserve volatile and notrap flags.
293 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
297 * configure.ac: Test AM_ICONV with CXX.
298 * configure: Regenerate.
299 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
301 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
304 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
305 (set_cloog_options): Use it.
307 2011-07-22 Jakub Jelinek <jakub@redhat.com>
310 * gcc.c (main): Call stack_limit_increase (64MB).
311 * toplev.c (toplev_main): Likewise.
313 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
315 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
316 instead of force_reg.
318 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
320 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
321 needed and use force_reg after convert.
322 (ix86_expand_call): Likewise.
323 (ix86_expand_special_args_builtin): Likewise.
324 (ix86_expand_builtin): Likewise.
326 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
330 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
331 in parameter. Initialize v1 and v2 based on the values returned
332 by clast_name_to_lb_ub.
333 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
335 (type_for_clast_bin): Same.
336 (type_for_clast_expr): Same.
337 (type_for_clast_eq): Update calls to type_for_clast_expr.
338 (type_for_clast_for): Same.
339 (build_iv_mapping): Same.
340 * graphite-ppl.h (value_min): New.
342 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
344 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
345 types whenever possible.
347 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
349 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
351 (new_clast_name_index): Add lb and ub parameters.
352 (free_clast_name_index): New.
353 (clast_name_to_lb_ub): New.
354 (save_clast_name_index): Add lb and ub parameters.
355 (compute_bounds_for_param): New.
356 (type_for_level): Removed.
357 (type_for_clast_for): Removed level parameter. Do not call
359 (graphite_create_new_loop): Store the lb and ub for the clast_name
360 of the iterator of the loop that has been generated.
361 (graphite_create_new_loop_guard): Remove parameter level.
362 (create_params_index): Store the lb and ub of each parameter.
363 (gloog): Use free_clast_name_index. Pass to create_params_index
366 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
368 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
369 (max_precision_type): Inline max_signed_precision_type.
370 (type_for_clast_red): Use max_precision_type.
371 (type_for_clast_bin): Same.
372 (type_for_clast_for): Same.
374 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
376 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
378 (gcc_type_for_value): Renamed type_for_value.
379 (gcc_type_for_clast_term): Renamed type_for_clast_term.
380 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
381 (gcc_type_for_clast_red): Renamed type_for_clast_red.
382 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
383 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
384 (graphite_translate_clast_equation): Update calls.
385 (compute_type_for_level): Renamed type_for_level.
386 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
387 (build_iv_mapping): Update calls.
388 (graphite_create_new_loop_guard): Same.
390 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
392 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
395 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
397 * graphite-clast-to-gimple.c (struct ivs_params): New.
398 (clast_name_to_gcc): Use ivs_params to pass around parameters.
399 (clast_to_gcc_expression): Same.
400 (clast_to_gcc_expression_red): Same.
401 (gcc_type_for_clast_term): Same.
402 (gcc_type_for_clast_expr): Same.
403 (gcc_type_for_clast_red): Same.
404 (gcc_type_for_clast_bin): Same.
405 (gcc_type_for_clast_eq): Same.
406 (graphite_translate_clast_equation): Same.
407 (graphite_create_guard_cond_expr): Same.
408 (graphite_create_new_guard): Same.
409 (graphite_create_new_loop): Same.
410 (build_iv_mapping): Same.
411 (translate_clast_user): Same.
412 (graphite_create_new_loop_guard): Same.
413 (translate_clast): Same.
414 (translate_clast_for_loop): Same.
415 (translate_clast_for): Same.
416 (translate_clast_guard): Same.
417 (initialize_cloog_names): Fix typo.
418 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
420 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
422 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
423 (new_clast_name_index): Add level parameter.
424 (clast_name_to_level): New.
425 (save_clast_name_index): Add level parameter.
426 (newivs_to_depth_to_newiv): Removed.
427 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
428 (graphite_create_new_loop): Add level parameter. Pass level to
429 save_clast_name_index.
430 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
431 (create_params_index): Pass level to save_clast_name_index.
433 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
435 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
436 recompute type, lb, and ub. Get them from...
437 (graphite_create_new_loop_guard): ...here. Pass in parameter
438 pointers to type, lb, and ub.
439 (translate_clast_for_loop): Update function calls.
440 (translate_clast_for): Same.
442 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
444 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
446 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
447 (gcc_type_for_iv_of_clast_loop): Update use of level.
448 (gloog): Start counting nesting level from 0.
449 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
450 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
451 psct_dynamic_dim on level.
453 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
455 * config/i386/i386.c (ix86_legitimize_address): Convert to
458 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
460 * config/i386/i386.c (function_value_64): Always return pointers
462 (ix86_promote_function_mode): New.
463 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
465 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
467 PR tree-optimization/49749
468 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
469 remove no-longer-used maxrank variable.
471 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
473 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
475 2011-07-21 Jason Merrill <jason@redhat.com>
477 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
478 * recog.h (struct insn_data_d): Check it instead of
479 HAVE_DESIGNATED_INITIALIZERS.
480 * genoutput.c (output_insn_data): Likewise.
482 2011-07-21 Richard Guenther <rguenther@suse.de>
484 PR tree-optimization/49770
485 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
486 valueized any operand. Renamed from ...
487 (valueize_refs): ... this. New wrapper around valueize_refs_1.
488 (valueize_shared_reference_ops_from_ref): Return whether we
489 valueized any operand.
490 (vn_reference_lookup): Only when we valueized any operand
491 use the valueized reference for alias analysis. Do not preserve
492 the original reference tree in this case.
494 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
496 * config/i386/i386.c (ix86_decompose_address): Reject all but
497 register operands and subregs of DImode hard registers in index.
499 2011-07-21 Kai Tietz <ktietz@redhat.com>
501 * fold-const.c (fold_unary_loc): Preserve indirect
502 comparison cast to none-boolean type.
503 * tree-ssa.c (useless_type_conversion_p): Preserve cast
504 from/to boolean-type.
505 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
506 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
507 * tree-cfg.c (verify_gimple_comparison): Check result
508 type of comparison expression.
509 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
510 of condition result and disallow type-cast sinking into comparison.
512 2011-07-21 Richard Guenther <rguenther@suse.de>
514 * tree-ssa-forwprop.c (combine_conversions): Return whether
515 we have to run cfg-cleanup. Properly remove dead stmts.
516 (ssa_forward_propagate_and_combine): Adjust.
518 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
520 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
522 2011-07-21 Kai Tietz <ktietz@redhat.com>
524 * tree-ssa-propagate.c (substitute_and_fold): Use
525 do_dce flag to deside, if BB's statements are scanned
526 in last to first, or first to last order.
528 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
530 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
532 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
533 Uros Bizjak <ubizjak@gmail.com>
534 Richard Henderson <rth@redhat.com>
536 * config/i386/constraints.md (w): New.
538 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
539 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
541 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
542 instead of TARGET_64BIT.
544 * config/i386/i386.md (indirect_jump): Replace
545 nonimmediate_operand with indirect_branch_operand.
546 (*indirect_jump): Likewise. Replace constraint "m" with "w".
547 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
548 Convert operand 0 to Pmode for x32 if not PIC.
549 (*tablejump_1): Replace nonimmediate_operand with
550 indirect_branch_operand. Replace constraint "m" with "w".
551 (*call_vzeroupper): Replace constraint "m" with "w".
553 (*call_rex64_ms_sysv_vzeroupper): Likewise.
554 (*call_rex64_ms_sysv): Likewise.
555 (*call_value_vzeroupper): Likewise.
556 (*call_value): Likewise.
557 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
558 (*call_value_rex64_ms_sysv): Likewise.
559 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
561 * config/i386/predicates.md (indirect_branch_operand): New.
562 (call_insn_operand): Support x32.
564 2011-07-20 Michael Eager <eager@eagercon.com>
566 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
568 2011-07-20 Richard Henderson <rth@redhat.com>
570 * cfg.c (dump_bb_info): Dump basic_block->flags.
571 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
573 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
575 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
576 of DImode hard registers in index.
577 (ix86_legitimate_address_p): Allow subregs of base and index to span
578 more than a word. Assert that subregs of base and index satisfy
579 register_no_elim_operand predicates. Reject addresses where
580 base and index have different modes.
582 2011-07-20 Robert Millan <rmh@gnu.org>
584 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
586 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
588 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
589 removing now-unnecessary assignment.
591 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
593 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
594 memory address space to the type's address space.
596 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
600 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
601 and expand appropriately if there is a CONST_INT in operand2.
602 (usmulqihi3): New insn.
603 (*sumulqihi3): New insn.
604 (*osmulqihi3): New insn.
605 (*oumulqihi3): New insn.
606 (*muluqihi3.uconst): New insn_and_split.
607 (*muluqihi3.sconst): New insn_and_split.
608 (*mulsqihi3.sconst): New insn_and_split.
609 (*mulsqihi3.uconst): New insn_and_split.
610 (*mulsqihi3.oconst): New insn_and_split.
611 (*ashifthi3.signx.const): New insn_and_split.
612 (*ashifthi3.signx.const7): New insn_and_split.
613 (*ashifthi3.zerox.const): New insn_and_split.
614 (mulsqihi3): New insn.
615 (muluqihi3): New insn.
616 (muloqihi3): New insn.
617 * config/avr/predicates.md (const_2_to_7_operand): New.
618 (const_2_to_6_operand): New.
623 (register_or_s9_operand): New.
625 2011-07-20 Kai Tietz <ktietz@redhat.com>
627 * builtins.c (fold_builtin_expect): See through the cast
628 from truthvalue_type_node to long.
630 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
632 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
633 where we can use them from the standard and altivec instruction
634 sets, instead of always using the 3 operand VSX forms that require
635 the destination to overlap one of the inputs.
640 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
643 (nfmadf4_fpr): Ditto.
644 (nfmsdf4_fpr): Ditto.
646 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
648 * genrecog.c (make_insn_sequence): Correct position numbering
649 when filtering out match_scratch and match_dup.
651 2011-07-20 Richard Guenther <rguenther@suse.de>
653 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
654 against already removed statements.
655 (forward_propagate_into_comparison): Remove dead defining stmts.
656 (forward_propagate_into_gimple_cond): Likewise.
657 (forward_propagate_into_cond): Simplify.
658 (ssa_forward_propagate_and_combine): Handle changed cfg from
659 forward_propagate_into_comparison.
660 * tree-ssa-phiopt.c (conditional_replacement): Use proper
661 locations for newly built statements.
663 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
665 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
667 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
669 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
670 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
672 2011-07-20 Richard Guenther <rguenther@suse.de>
675 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
676 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
677 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
679 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
681 * config/frv/frv.c (frv_register_move_cost): Define explicitly
682 costs for subclasses of GR_REGS.
684 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
687 * config/i386/predicates.md (no_seg_addres_operand): No more special.
688 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
689 of DImode hard registers in base.
690 (ix86_legitimate_address_p): Allow SImode and DImode base and index
693 2011-07-20 Richard Guenther <rguenther@suse.de>
695 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
696 (unify_nodes): Deal with that.
697 (solve_graph): Likewise.
699 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
701 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
702 canonicalize left operand from ZERO_EXTEND to AND.
704 2011-07-20 Anatoly Sokolov <aesok@post.ru>
706 * target.def (class_max_nregs): New hook.
707 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
708 * doc/tm.texi: Regenerate.
709 * targhooks.c (default_class_max_nregs): New function.
710 * targhooks.h (default_class_max_nregs): Declare.
711 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
712 x_ira_reg_class_min_nregs arrays to unsigned char.
713 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
714 hook instead of CLASS_MAX_NREGS macro.
715 * reginfo.c (restore_register_info): Ditto.
716 * ira-conflicts.c (process_regs_for_copy): Use
717 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
718 Change type rclass and aclass vars to reg_class_t.
719 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
720 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
722 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
723 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
725 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
726 * config/i386/i386.c (ix86_class_max_nregs): New function.
727 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
728 instead of CLASS_MAX_NREGS macro.
729 (TARGET_CLASS_MAX_NREGS): Define.
730 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
731 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
732 * config/avr/avr.c (class_max_nregs): Remove function.
733 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
734 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
735 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
736 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
737 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
738 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
739 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
740 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
741 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
742 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
743 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
744 * config/score/score.h (CLASS_MAX_NREGS): Remove.
745 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
746 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
747 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
749 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
751 * cif-code.def (OVERWRITABLE): Fix typo and move around.
752 (TARGET_OPTIMIZATION_MISMATCH): Delete.
753 (EH_PERSONALITY): Fix typo.
754 (NON_CALL_EXCEPTIONS): Fix message.
755 (OPTIMIZATION_MISMATCH): Adjust message.
756 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
758 2011-07-19 Ian Lance Taylor <iant@google.com>
760 * doc/install.texi (Configuration): Document
761 --enable-build-poststage1-with-cxx.
763 2011-07-19 Robert Millan <rmh@gnu.org>
765 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
766 (GLIBC_DYNAMIC_LINKER): Remove.
768 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
769 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
770 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
771 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
772 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
773 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
775 * config/mips/linux.h: Remove everything except for ...
776 (GLIBC_DYNAMIC_LINKER): ... this macro.
778 * config/mips/linux64.h: Remove everything except for ...
779 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
780 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
781 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
782 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
783 (GNU_USER_LINK_EMULATIONN32): New macros.
785 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
788 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
790 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
791 Add offset_known_p and size_known_p fields.
792 (MEM_OFFSET_KNOWN_P): Update accordingly.
793 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
794 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
795 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
796 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
797 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
798 (init_emit_regs): Likewise.
800 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
802 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
803 (MEM_OFFSET): Change from returning an rtx to returning a
805 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
806 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
807 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
808 (clear_mem_offset): Declare.
809 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
810 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
811 MEM_OFFSET to get a HOST_WIDE_INT offset.
812 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
813 (adjust_offset_for_component_ref): Take a bool "known_p"
814 parameter and a HOST_WIDE_INT "offset" parameter.
815 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
816 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
817 than an rtx. Use clear_mem_offset to clear the offset.
818 * cfgcleanup.c (merge_memattrs): Likewise.
819 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
820 * function.c (assign_parm_find_stack_rtl): Likewise.
821 (assign_parm_setup_stack): Likewise.
822 * print-rtl.c (print_rtx): Likewise.
823 * reload.c (find_reloads_subreg_address): Likewise.
824 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
825 * var-tracking.c (INT_MEM_OFFSET): Likewise.
826 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
827 (get_mem_align_offset): Likewise.
828 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
829 (clear_mem_offset): New function.
830 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
831 offset rather than an rtx. Assume both the expressio and offset
833 (r10k_needs_protection_p_1): Update accordingly, checking the
834 expression and offset availability here instead.
836 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
838 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
839 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
840 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
841 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
842 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
843 (clear_mem_size): Declare.
844 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
845 (clear_mem_size): New function.
846 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
847 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
848 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
849 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
851 (nonoverlapping_memrefs_p): Likewise.
852 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
853 (expand_builtin_init_trampoline): Likewise.
854 * calls.c (compute_argument_addresses): Likewise.
855 * cfgcleanup.c (merge_memattrs): Likewise.
856 * dce.c (find_call_stack_args): Likewise.
857 * dse.c (record_store, scan_insn): Likewise.
858 * dwarf2out.c (dw_sra_loc_expr): Likewise.
859 * expr.c (emit_block_move_hints): Likewise.
860 * function.c (assign_parm_find_stack_rtl): Likewise.
861 * print-rtl.c (print_rtx): Likewise.
862 * reload.c (find_reloads_subreg_address): Likewise.
863 * rtlanal.c (may_trap_p_1): Likewise.
864 * var-tracking.c (track_expr_p): Likewise.
865 * varasm.c (assemble_trampoline_template): Likewise.
866 * config/arm/arm.c (arm_print_operand): Likewise.
867 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
868 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
869 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
870 (expand_constant_setmem_prologue): Likewise.
871 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
872 * config/rs6000/rs6000.c (expand_block_move): Likewise.
873 (adjacent_mem_locations): Likewise.
874 * config/s390/s390.c (s390_expand_setmem): Likewise.
875 (s390_expand_insv): Likewise.
876 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
877 (*extendqi<mode>2_short_displ): Likewise.
878 * config/sh/sh.c (expand_block_move): Likewise.
879 * config/sh/sh.md (extv, extzv): Likewise.
881 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
883 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
884 (mem_attrs_htab_eq): ...here.
885 (find_mem_attrs): Replace with...
886 (set_mem_attrs): ...this function. Take a mem_attrs structure
887 rather than individual fields.
888 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
889 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
890 (set_mem_size, change_address, adjust_address_1, offset_address)
891 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
894 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
896 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
897 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
898 Provide a dummy definition of MEM_ADDR_SPACE for generators.
899 (target_rtl): Add x_mode_mem_attrs.
900 (mode_mem_attrs): New macro.
901 (get_mem_attrs): New function.
902 * emit-rtl.c (get_mem_attrs): Rename to...
903 (find_mem_attrs): ...this.
904 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
905 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
906 (set_mem_size, change_address, adjust_address_1, offset_address)
907 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
909 (init_emit_regs): Initialize mode_mem_attrs.
911 2011-07-19 Richard Guenther <rguenther@suse.de>
913 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
914 TRUTH_*_EXPR handling.
915 * tree-ssa-operands.c (get_expr_operands): Likewise.
916 * tree-ssa-pre.c (fully_constant_expression): Likewise.
917 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
919 (is_and_or_or): Likewise.
920 (is_norm_cond_subset_of): Likewise.
922 2011-07-19 Richard Guenther <rguenther@suse.de>
924 * tree.h (fold_build_pointer_plus_loc): New helper function.
925 (fold_build_pointer_plus_hwi_loc): Likewise.
926 (fold_build_pointer_plus): Define.
927 (fold_build_pointer_plus_hwi): Likewise.
928 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
929 (fold_builtin_memory_op): Likewise.
930 (fold_builtin_stpcpy): Likewise.
931 (fold_builtin_memchr): Likewise.
932 (fold_builtin_strstr): Likewise.
933 (fold_builtin_strchr): Likewise.
934 (fold_builtin_strrchr): Likewise.
935 (fold_builtin_strpbrk): Likewise.
936 (fold_builtin_strcat): Likewise.
937 (expand_builtin_memory_chk): Likewise.
938 (fold_builtin_memory_chk): Likewise.
939 * c-typeck.c (build_unary_op): Likewise.
940 * cgraphunit.c (thunk_adjust): Likewise.
941 * fold-const.c (build_range_check): Likewise.
942 (fold_binary_loc): Likewise.
943 * omp-low.c (extract_omp_for_data): Likewise.
944 (expand_omp_for_generic): Likewise.
945 (expand_omp_for_static_nochunk): Likewise.
946 (expand_omp_for_static_chunk): Likewise.
947 * tree-affine.c (add_elt_to_tree): Likewise.
948 * tree-data-ref.c (split_constant_offset_1): Likewise.
949 * tree-loop-distribution.c (generate_memset_zero): Likewise.
950 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
951 * tree-predcom.c (ref_at_iteration): Likewise.
952 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
953 (add_to_parts): Likewise.
954 (create_mem_ref): Likewise.
955 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
956 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
957 (number_of_iterations_le): Likewise.
958 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
959 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
960 (vect_create_addr_base_for_vector_ref): Likewise.
961 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
962 (vect_create_cond_for_alias_checks): Likewise.
963 * tree-vrp.c (extract_range_from_assert): Likewise.
964 * config/alpha/alpha.c (alpha_va_start): Likewise.
965 (alpha_gimplify_va_arg_1): Likewise.
966 * config/i386/i386.c (ix86_va_start): Likewise.
967 (ix86_gimplify_va_arg): Likewise.
968 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
969 * config/mep/mep.c (mep_expand_va_start): Likewise.
970 (mep_gimplify_va_arg_expr): Likewise.
971 * config/mips/mips.c (mips_va_start): Likewise.
972 (mips_gimplify_va_arg_expr): Likewise.
973 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
974 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
975 (rs6000_gimplify_va_arg): Likewise.
976 * config/s390/s390.c (s390_va_start): Likewise.
977 (s390_gimplify_va_arg): Likewise.
978 * config/sh/sh.c (sh_va_start): Likewise.
979 (sh_gimplify_va_arg_expr): Likewise.
980 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
981 * config/spu/spu.c (spu_va_start): Likewise.
982 (spu_gimplify_va_arg_expr): Likewise.
983 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
985 (xstormy16_gimplify_va_arg_expr): Likewise.
986 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
987 (xtensa_gimplify_va_arg_expr): Likewise.
989 2011-07-19 Richard Guenther <rguenther@suse.de>
991 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
992 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
996 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
997 result of BIT_*_EXPR to bitfield precision.
999 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
1001 PR tree-optimization/49742
1002 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
1003 as a potential write.
1005 2011-07-19 Richard Guenther <rguenther@suse.de>
1007 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
1008 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
1009 (forward_propagate_comparison): Simplify, remove obsolete code.
1011 2011-07-19 Richard Guenther <rguenther@suse.de>
1013 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
1014 BIT_XOR_EXPR, same as the RTL expander does.
1015 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
1016 (verify_gimple_assign_unary): Likewise.
1017 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
1018 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
1019 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
1021 2011-07-19 Jakub Jelinek <jakub@redhat.com>
1023 PR tree-optimization/49768
1024 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
1025 if offset is smaller than bitoffset, but offset+size is bigger
1028 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
1030 PR tree-optimization/49771
1031 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
1032 zero step, set segment length to the size of the data-ref's type.
1034 2011-07-18 Martin Jambor <mjambor@suse.cz>
1036 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
1038 (ipcp_values_pool): Declare.
1039 (ipcp_sources_pool): Likewise.
1040 (ipcp_lattice): Changed to forward declaration.
1041 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
1042 cannot_devirtualize.
1043 (ipa_node_params): New fields descriptors, lattices, known_vals,
1044 clone_for_all_contexts and node dead, removed fields params and
1046 (ipa_set_param_count): Removed.
1047 (ipa_get_param_count): Made to work with descriptors vector.
1048 (ipa_get_param): Updated.
1049 (ipa_param_cannot_devirtualize_p): Removed.
1050 (ipa_param_types_vec_empty): Likewise.
1051 (ipa_set_param_used): New function.
1052 (ipa_get_param_used): Updated to use descriptors vector.
1053 (ipa_func_list): Removed.
1054 (ipa_init_func_list): Removed declaration.
1055 (ipa_push_func_to_list_1): Likewise.
1056 (ipa_pop_func_from_list): Likewise.
1057 (ipa_push_func_to_list): Removed.
1058 (ipa_lattice_from_jfunc): Remove declaration.
1059 (ipa_get_jf_pass_through_result): Declare.
1060 (ipa_get_jf_ancestor_result): Likewise.
1061 (ipa_value_from_jfunc): Likewise.
1062 (ipa_get_lattice): Update.
1063 (ipa_lat_is_single_const): New function.
1064 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
1065 (ipa_init_func_list): Likewise.
1066 (ipa_pop_func_from_list): Likewise.
1067 (ipa_get_param_decl_index): Fix coding style.
1068 (count_formal_params): Removed.
1069 (count_formal_params_1): Renamed to count_formal_params.
1070 (ipa_populate_param_decls): Update to use descriptors vector.
1071 (ipa_initialize_node_params): Likewise.
1072 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
1073 (ipa_analyze_params_uses): Likewise.
1074 (ipa_free_node_params_substructures): Likewise and free also lattices
1076 (duplicate_array): Removed.
1077 (ipa_edge_duplication_hook): Add the new edge to the list of edge
1079 (ipa_node_duplication_hook): Update to use new lattices.
1080 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
1081 (ipa_free_all_structures_after_iinln): Likewise.
1082 (ipa_write_node_info): Update to use new lattices.
1083 (ipa_read_node_info): Likewise.
1084 (ipa_get_jf_pass_through_result): New function.
1085 (ipa_get_jf_ancestor_result): Likewise.
1086 (ipa_value_from_jfunc): Likewise.
1087 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
1088 * ipa-cp.c: Reimplemented.
1089 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
1090 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
1091 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
1092 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
1093 * doc/invoke.texi (devirt-type-list-size): Removed description.
1094 (ipa-cp-value-list-size): Added description.
1096 2011-07-18 Richard Henderson <rth@redhat.com>
1098 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
1099 before calling create_basic_block.
1101 2011-07-18 Jakub Jelinek <jakub@redhat.com>
1104 * tree.c (build_common_builtin_nodes): Register
1105 __builtin_return_address, __cyg_profile_func_enter
1106 and __cyg_profile_func_exit.
1108 2011-07-18 Richard Henderson <rth@redhat.com>
1110 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
1111 (add_labels_and_missing_jumps): ... here.
1112 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
1114 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1118 of DImode hard registers in PLUS address chains.
1120 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1123 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
1124 (alpha*-*-freebsd*): Likewise.
1125 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1126 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1127 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
1128 crtprec80.o, crtfastmath.o to extra_parts for all targets.
1129 (ia64*-*-elf*): Remove extra_parts.
1130 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
1131 (sparc64-*-linux*): Likewise.
1132 (sparc64-*-freebsd*): Likewise.
1135 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
1136 (ia64*-*-linux*): Likewise.
1137 (mips64*-*-linux*): Likewise.
1138 (mips*-*-linux*): Likewise.
1140 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
1142 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
1144 2011-07-18 Richard Guenther <rguenther@suse.de>
1146 * gimplify.c (gimplify_expr): Use input_location, not saved_location
1147 when building new trees.
1149 2011-07-18 Richard Guenther <rguenther@suse.de>
1151 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
1152 expansion result to bitfield precision if required.
1154 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1156 * config.gcc (i[3456x]86-*-netware*): Remove.
1158 * gthr-nks.h: Remove.
1159 * configure.ac (enable_threads): Remove nks.
1160 * configure: Regenerate.
1162 * config/i386/i386.c (ix86_encode_section_info): Remove netware
1164 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
1165 <netware.h> reference.
1167 * config/i386/netware-libgcc.c,
1168 gcc/config/i386/netware-libgcc.def,
1169 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
1170 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
1171 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
1172 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
1174 * doc/extend.texi (Function Attributes,
1175 callee_pop_aggregate_return): Remove i?86-netware reference.
1176 * doc/install.texi (Configuration, --enable-threads): Remove nks.
1178 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1182 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1184 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1187 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
1190 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1192 2011-07-16 Matthias Klose <doko@ubuntu.com>
1194 * doc/install.texi: Document --enable-static-libjava.
1196 2011-07-15 Richard Henderson <rth@redhat.com>
1198 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1199 Replace all three arguments by returning a VEC of edges.
1200 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
1201 pointers and counts.
1202 (fix_edges_for_rarely_executed_code): Merge ...
1203 (rest_of_handle_partition_blocks): ... into...
1204 (partition_hot_cold_basic_blocks): ... here. Return todo items if
1205 any work was performed.
1206 (pass_partition_blocks): Clear todo_flags_finish.
1208 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
1209 Jakub Jelinek <jakub@redhat.com>
1210 Jonathan Wakely <jwakely.gcc@gmail.com>
1213 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
1214 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
1216 2011-07-15 Jason Merrill <jason@redhat.com>
1219 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
1220 rather than --tool_opts.
1222 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
1224 * doc/plugins.texi (Building GCC plugins): gengtype needs its
1225 corresponding gtype.state.
1227 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1230 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1232 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
1235 * doc/md.texi (Standard Names): Document window_save.
1236 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
1237 expand_debug_expr and expand_debug_source_expr. If the target has
1238 a window_save instruction, adjust the ENTRY_VALUE_EXP.
1239 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
1240 SSA_NAME_VAR is a parameter.
1241 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
1242 * var-tracking.c (parm_reg_t): New type and associated vector type.
1243 (windowed_parm_regs): New variable.
1244 (adjust_insn): If the target has a window_save instruction and this
1245 is the instruction, make its effect on parameter registers explicit.
1246 (next_non_note_insn_var_location): New function.
1247 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
1248 (vt_add_function_parameter): If the target has a window_save insn,
1249 adjust the incoming RTL and record that in windowed_parm_regs.
1250 (vt_finalize): Free windowed_parm_regs.
1252 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
1254 * doc/invoke.texi (C6X Options): New section.
1255 * doc/md.texi (TI C6X family): New section.
1256 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
1258 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
1259 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
1260 Provide C6X definitions.
1261 * config/c6x/c6x.md: New file.
1262 * config/c6x/constraints.md: New file.
1263 * config/c6x/predicates.md: New file.
1264 * config/c6x/c6x-sched.md.in: New file.
1265 * config/c6x/c6x-sched.md: New file.
1266 * config/c6x/gensched.sh: New file.
1267 * config/c6x/c6x-mult.md.in: New file.
1268 * config/c6x/genmult.sh: New file.
1269 * config/c6x/c6x-mult.md: New file.
1270 * config/c6x/sync.md: New file.
1271 * config/c6x/c6x-protos.h: New file.
1272 * config/c6x/sfp-machine.h: New file.
1273 * config/c6x/c6x.c: New file.
1274 * config/c6x/c6x.h: New file.
1275 * config/c6x/crti.s: New file.
1276 * config/c6x/crtn.s: New file.
1277 * config/c6x/lib1funcs.asm: New file.
1278 * config/c6x/c6x-modes.def: New file.
1279 * config/c6x/genopt.sh: New file.
1280 * config/c6x/c6x.opt: New file.
1281 * config/c6x/c6x-tables.opt: New file.
1282 * config/c6x/c6x-opts.h: New file.
1283 * config/c6x/c6x-isas.def: New file.
1284 * config/c6x/elf.h: New file.
1285 * config/c6x/elf-common.h: New file.
1286 * config/c6x/uclinux-elf.h: New file.
1287 * config/c6x/t-c6x: New file.
1288 * config/c6x/t-c6x-elf: New file.
1289 * config/c6x/t-c6x-uclinux: New file.
1290 * config/c6x/t-c6x-softfp: New file.
1291 * config/c6x/gtd.c: New file.
1292 * config/c6x/gtf.c: New file.
1293 * config/c6x/ltd.c: New file.
1294 * config/c6x/ltf.c: New file.
1295 * config/c6x/ged.c: New file.
1296 * config/c6x/gef.c: New file.
1297 * config/c6x/led.c: New file.
1298 * config/c6x/lef.c: New file.
1299 * config/c6x/eqd.c: New file.
1300 * config/c6x/eqf.c: New file.
1301 * config/c6x/libgcc-c6xeabi.ver: New file.
1304 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1305 PR rtl-optimization/11320
1306 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1307 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1308 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1309 current_sched_info->compute_jump_reg_dependencies. Record which
1310 registers are used and which registers are set by the jump.
1311 Clear deps->reg_conditional_sets after a barrier.
1312 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1313 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1314 (init_deps): Initialize reg_conditional_sets.
1315 (free_deps): Clear reg_conditional_sets.
1316 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1317 Mark registers live on entry of the fallthrough block and conditionally
1318 set as set by the jump. Mark registers live on entry of non-fallthrough
1319 blocks as used by the jump.
1320 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1321 Mark new parameters as unused.
1323 2011-07-14 Andrew Pinski <pinskia@gmail.com>
1326 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1327 Use fold_build2_loc instead of build2.
1328 Use the correct type for the new tree.
1330 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1332 PR rtl-optimization/11320
1333 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
1334 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
1336 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1339 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1341 (*rotw<mode>): Use const_int_operand for operand2.
1342 Use match_scatch for operand3.
1343 (*rotb<mode>): Ditto
1344 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1346 2011-07-14 Richard Guenther <rguenther@suse.de>
1348 PR tree-optimization/49651
1349 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1350 handle dereferences with subvariables.
1352 2011-07-14 Richard Guenther <rguenther@suse.de>
1354 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
1355 (fold_stmt_1): Do it here directly on gimple and as a first thing.
1357 2011-07-14 Richard Guenther <rguenther@suse.de>
1359 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
1360 not bool_var when folding bool_var != 1 or bool_var == 0.
1362 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1364 * haifa-sched.c (schedule_insns): Remove outdated comment.
1365 (schedule_block): When computing a known value for TODO_SPEC,
1366 just set it rather than using logical operations.
1367 (try_ready): Likewise. Use a local variable rather than a
1368 pointer to TODO_SPEC. Reorder an if statement to move the
1369 easy case to the then block.
1370 * sched-deps.c (dep_spec_p): New static function.
1371 (update_dep): Use it to decide whether to call
1372 change_spec_dep_to_hard.
1373 (get_back_and_forw_lists): Use it.
1374 (sd_resolve_dep): Likewise.
1375 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
1376 (haifa_note_mem_dep): Likewise.
1377 (check_dep): Likewise.
1378 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
1379 (sched_free_deps): Free in two passes.
1381 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
1384 * expr.c (all_zeros_p): Undo bogus part of last change.
1386 2011-07-14 Matthias Klose <doko@ubuntu.com>
1388 * doc/extend.texi (optimize attribute): Fix typo.
1390 2011-07-14 Richard Guenther <rguenther@suse.de>
1392 * gimplify.c (gimplify_expr): Only do required conversions.
1394 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1397 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
1398 i.e. use default_elf_select_section.
1399 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
1400 (READONLY_DATA_SECTION_ASM_OP): Remove.
1401 (TARGET_ASM_NAMED_SECTION): Move from here...
1402 * config/avr/avr.c: ...to here.
1403 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
1404 (avr_asm_named_section): Make static.
1406 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1409 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
1410 and crtfastmath.o for Linux/x86.
1412 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1414 * haifa-sched.c: Include "hashtab.h"
1415 (sched_no_dce): New global variable.
1416 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
1417 SHADOW_P): New macros.
1418 (last_clock_var, cycle_issued_insns): Move declarations.
1419 (must_backtrack): New static variable.
1420 (struct delay_pair): New structure.
1421 (delay_htab, delay_htab_i2): New static variables.
1422 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
1423 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
1425 (dep_cost_1): If delay pairs exist, try to look up the insns and
1426 use the correct pair delay if we find them.
1427 (rank-for_schedule): Tweak priority for insns that must be scheduled
1428 soon to avoid backtracking.
1429 (queue_insn): Detect conditions which force backtracking.
1430 (ready_add): Likewise.
1431 (struct sched_block_state): Add member shadows_only_p.
1432 (struct haifa_save_data): New structure.
1433 (backtrack_queue): New static variable.
1434 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
1435 unschedule_insns_until, restore_last_backtrack_point,
1436 free_topmost_backtrack_point, free_backtrack_queue,
1437 estimate_insn_tick, estimate_shadow_tick): New functions.
1438 (prune_ready_list): New arg shadows_only_p. All callers changed.
1439 If true, remove everything that isn't SHADOW_P. Look up delay
1440 pairs and estimate ticks to avoid scheduling the first insn too early.
1441 (verify_shadows): New function.
1442 (schedule_block): Add machinery to enable backtracking.
1443 (sched_init): Take sched_no_dce into account when setting
1445 (free_delay_pairs): New function.
1446 (init_h_i_d): Initialize INSN_EXACT_TICK.
1447 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
1448 * sched-deps.c (sd_unresolve_dep): New function.
1449 * sched-int. (struct haifa_sched_info): New fields save_state
1451 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
1452 feeds_backtrack_insn and shadow_p.
1453 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
1454 (sched_no_dce): Declare variable.
1455 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
1456 sd_unresolve_dep): Declare functions.
1457 * modulo-sched.c (sms_sched_info): Clear the two new fields.
1458 * sched-rgn.c (rgn_const_sched_info): Likewise.
1459 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1460 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
1461 (ebb_sched_info): Add them for the two new fields.
1462 (add_deps_for_risky_insns): Call add_delay_dependencies.
1464 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1466 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
1468 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
1469 (rs6000_call_indirect_aix): Ditto.
1470 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
1471 (call_indirect_aix<ptrsize>_internal): Ditto.
1472 (call_indirect_aix<ptrsize>_nor11): Ditto.
1473 (call_indirect_aix<ptrsize>_internal2): Ditto.
1474 (call_value_indirect_aix<ptrsize>): Ditto.
1475 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1476 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1477 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1478 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
1480 2011-07-13 Jason Merrill <jason@redhat.com>
1482 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
1484 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1486 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
1487 * config/spu/spu.md ("clrsb<mode>2"): New expander.
1489 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
1491 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
1492 * configure: Regenerate.
1494 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1496 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1497 (asm_file_start): Remove.
1498 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1499 free_bb_for_insn around code that modifies insns before
1500 restarting df analysis.
1502 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
1506 (LINK_SPEC): ... here.
1508 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1510 * haifa-sched.c (struct sched_block_state): New.
1511 (schedule_block): Move some local variables into such a structure.
1513 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1515 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1516 * config/i386/t-crtpc: Remove.
1517 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1518 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1520 (x86_64-*-darwin*): Likewise.
1521 (i[34567]86-*-linux*): Likewise.
1522 (x86_64-*-linux*): Likewise.
1524 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1525 Handle -mpc32, -mpc64, -mpc80.
1527 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1529 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1530 * config/alpha/t-crtfm: Remove.
1531 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1532 * config/i386/t-crtfm: Remove.
1533 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1534 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1535 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1536 * config/sparc/t-crtfm: Remove.
1538 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1539 (alpha*-*-freebsd*): Likewise.
1540 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1541 (x86_64-*-darwin*): Likewise.
1542 (i[34567]86-*-linux*): Likewise.
1543 (x86_64-*-linux*): Likewise.
1544 (x86_64-*-mingw*): Likewise.
1545 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1546 (ia64*-*-freebsd*): Likewise.
1547 (ia64*-*-linux*): Likewise.
1548 (mips64*-*-linux*): Likewise.
1549 (mips*-*-linux*): Likewise.
1550 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1551 (sparc64-*-linux*): Likewise.
1552 (sparc64-*-freebsd*): Likewise.
1554 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1556 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1557 * config/darwin-crt3.c: Move to ../libgcc/config.
1558 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1559 ($(T)crt3$(objext)): Remove.
1560 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1561 ($(T)crt2$(objext)): Remove.
1562 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1563 (powerpc64-*-darwin*): Likewise.
1565 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1567 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1569 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1570 (addsi_1_zext): This.
1572 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1574 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1575 * doc/tm.texi: Regenerate.
1576 * target.def (mergeable_rodata_prefix): New defhookpod.
1577 * varasm.c (mergeable_string_section, mergeable_constant_section):
1578 Use it. Allocate name with alloca.
1580 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1582 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1584 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1586 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1589 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1591 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
1592 (count_type_elements): Delete.
1593 (complete_ctor_at_level_p): Declare.
1594 * expr.c (flexible_array_member_p): New function, split out from...
1595 (count_type_elements): ...here. Make static. Replace allow_flexarr
1596 parameter with for_ctor_p. When for_ctor_p is true, return the
1597 number of elements that should appear in the top-level constructor,
1598 otherwise return an estimate of the number of scalars.
1599 (categorize_ctor_elements): Replace p_must_clear with p_complete.
1600 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
1601 (complete_ctor_at_level_p): New function, borrowing union logic
1602 from old categorize_ctor_elements_1.
1603 (mostly_zeros_p): Return true if the constructor is not complete.
1604 (all_zeros_p): Update call to categorize_ctor_elements.
1605 * gimplify.c (gimplify_init_constructor): Update call to
1606 categorize_ctor_elements. Don't call count_type_elements.
1607 Unconditionally prevent clearing for variable-sized types,
1608 otherwise rely on categorize_ctor_elements to detect
1609 incomplete initializers.
1611 2011-07-13 Richard Guenther <rguenther@suse.de>
1613 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1614 the final type is integral.
1616 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1618 * sched-int.h (struct _dep): Add member cost.
1619 (DEP_COST, UNKNOWN_DEP_COST): New macros.
1620 * sched-deps.c (init_dep_1): Initialize DEP_COST.
1621 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1622 (sched_change_pattern): Reset it for dependent insns.
1624 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1626 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1627 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1628 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1629 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1630 (CRT0_S, MCRT0_S): Remove.
1631 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1634 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1636 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1638 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1640 * emit-rtl.c (push_to_sequence): Likewise.
1641 * haifa-sched.c (max_issue): Likewise.
1642 * matrix-reorg.c (add_allocation_site): Likewise.
1643 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1644 * reload.c (alternative_allows_const_pool_ref): Likewise.
1645 * sched-rgn.c (rgn_add_block): Likewise.
1646 (rgn_fix_recovery_cfg): Likewise.
1647 * tree.c (attribute_list_contained): Likewise.
1649 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
1651 * config/i386/i386.c: Tidy processor feature bitmasks.
1654 2011-07-12 Andrew Pinski <pinskia@gmail.com>
1657 * cprop.c (find_implicit_sets): Correct the condition.
1659 2011-07-12 Richard Henderson <rth@redhat.com>
1662 * dwarf2out.h (dwarf_frame_regnum): Remove.
1663 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1664 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1665 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1666 (execute_dwarf2_frame): Initialize them.
1667 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1668 users of the macros with the variables.
1669 (expand_builtin_dwarf_sp_column): Revert last change.
1670 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1671 result of DWARF_FRAME_REGNUM into a local variable.
1673 2011-07-12 Richard Henderson <rth@redhat.com>
1676 * config/i386/i386.c (x86_output_mi_thunk): Use
1677 machopic_indirect_call_target instead of machopic_indirection_name
1680 2011-07-12 Laurent GUERBY <laurent@guerby.net>
1681 Eric Botcazou <ebotcazou@adacore.com>
1683 * prefix.h: Wrap up in extern "C" block.
1685 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1687 AMD bdver2 Enablement
1688 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1689 (case ${target}): Add bdver2.
1690 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1691 -march=native recognize bdver2 processors.
1692 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1693 bdver2 def_and_undef
1694 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1696 (m_BDVER2): New definition.
1697 (m_AMD_MULTIPLE): Includes m_BDVER2.
1698 (initial_ix86_tune_features): Add bdver2 tuning.
1699 (processor_target_table): Add bdver2 entry.
1700 (static const char *const cpu_names): Add bdver2 entry.
1701 (ix86_option_override_internal): Add bdver2 instruction sets.
1702 (ix86_issue_rate): Add bdver2.
1703 (ix86_adjust_cost): Add bdver2.
1704 (has_dispatch): Add bdver2.
1705 * config/i386/i386.h (TARGET_BDVER2): New definition.
1706 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1707 (enum processor_type): Add PROCESSOR_BDVER2.
1708 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1709 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1712 2011-07-12 Richard Henderson <rth@redhat.com>
1715 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1716 destination address in memory on some paths.
1718 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1720 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1721 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1722 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1723 * function.c (locate_and_pad_parm): Take it into account.
1724 * target.def (function_arg_round_boundary): New hook.
1725 * targhooks.c (default_function_arg_round_boundary): New function.
1726 * targhooks.h (default_function_arg_round_boundary): Declare.
1727 * doc/tm.texi: Regenerate.
1729 2011-07-12 Richard Guenther <rguenther@suse.de>
1731 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1732 Do not perform no-op changes.
1734 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1736 * config/arm/predicates.md (neon_struct_operand): Make a normal
1738 (neon_struct_or_register_operand): New predicate.
1739 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1740 with neon_struct_or_register_operand.
1741 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1742 neon_struct_operand instead of memory_operand.
1744 2011-07-12 Martin Jambor <mjambor@suse.cz>
1746 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1747 * cgraph.c (cgraph_get_node_or_alias): Removed.
1748 (change_decl_assembler_name): Changed all calls to
1749 cgraph_get_node_or_alias to a call to cgraph_get_node.
1750 (cgraph_make_decl_local): Likewise.
1751 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1752 * varasm.c (default_binds_local_p_1): Likewise.
1753 (decl_binds_to_current_def_p): Likewise.
1755 2011-07-12 Jakub Jelinek <jakub@redhat.com>
1757 PR tree-optimization/49712
1758 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1760 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1762 * genautomata.c (add_arc): Return void. All callers changed.
1763 (make_automaton): Remove dead code.
1765 2011-07-11 Richard Henderson <rth@redhat.com>
1767 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1768 (DW_FRAME_POINTER_REGNUM): New.
1769 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1770 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1772 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1773 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1774 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1776 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1777 * dwarf2out.h (dwarf_frame_regnum): New.
1778 (struct cfa_loc): Document the domain of the reg member.
1780 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
1782 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1783 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1785 2011-07-11 Jakub Jelinek <jakub@redhat.com>
1788 * dwarf2out.c (int_shift_loc_descriptor): New function.
1789 (int_loc_descriptor): If shorter, emit i as
1790 (i >> shift), shift, DW_OP_shl for suitable shift value.
1791 Similarly, try to optimize large negative values using
1792 DW_OP_neg of a positive value if shorter.
1793 (size_of_int_shift_loc_descriptor): New function.
1794 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1796 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1797 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1798 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1800 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1801 addend as added DW_OP_plus if it is shorter.
1803 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1805 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1806 (DTORS_SECTION_ASM_OP): Define.
1808 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1810 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1811 * config/t-dfprules: Move to ../libgcc/config.
1812 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1813 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1814 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1815 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1817 (i[34567]86-*-cygwin*): Likewise.
1818 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1819 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1820 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1821 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1822 D64PBIT_FUNCS, D128PBIT_FUNCS.
1824 2011-07-11 Richard Guenther <rguenther@suse.de>
1826 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1827 translate the source value-range through the conversion chain.
1829 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1831 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1833 2011-07-11 Arthur Loiret <aloiret@debian.org>
1835 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1836 a bi-arch compiler defaulting to 31-bit. In this case:
1837 (tmake_file): Add s390/t-linux64.
1838 * doc/install.texi: Add s390-linux to the list of targets supporting
1839 --enable-targets=all.
1841 2011-07-11 Arthur Loiret <aloiret@debian.org>
1842 Matthias Klose <doko@debian.org>
1844 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1845 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1846 (tm_file): Add mips/linux64.h.
1847 (tmake_file): Add mips/t-linux64.
1848 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1849 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1850 instead of hardcoded mabi=n32.
1851 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1852 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1855 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1857 * passes.c (init_optimization_passes): Add invariant motion pass
1858 after induction variable optimization.
1860 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1863 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1864 offsets 1..5 set cc0 in a usable way.
1866 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
1868 * tree.h (call_expr_arg): Remove.
1869 (call_expr_argp): Likewise.
1871 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1873 * config/sparc/sparc.md (save_register_window_1): Rename to...
1874 (window_save): ...this.
1875 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1876 (emit_window_save): ...this.
1877 (sparc_expand_prologue): Adjust to above renaming.
1879 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1881 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1884 2011-07-10 Richard Henderson <rth@redhat.com>
1886 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1887 run final, instead of emitting text directly.
1889 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1891 * config/i386/i386.c (ix86_option_override_internal): Turn on
1892 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1893 small PIC models for TARGET_X32.
1895 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
1898 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1902 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1903 stray notes and debug insns by using prev_nonnote_nondebug_insn
1904 instead of PREV_INSN.
1906 2011-07-09 Richard Henderson <rth@redhat.com>
1908 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1909 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1910 * dwarf2out.c: ... here.
1911 (output_all_cfis): Remove.
1912 (dwarf2out_switch_text_section): Use output_cfis directly.
1913 (size_of_locs): Export.
1914 (output_loc_sequence, output_loc_sequence_raw): Export.
1915 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1916 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1917 output_cfa_loc_raw): Move to ...
1918 * dwarfcfi.c: ... here.
1919 * dwarf2out.h: Update decls.
1921 2011-07-09 Richard Henderson <rth@redhat.com>
1923 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1924 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1925 * dwarf2cfi.c: ... here.
1926 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1927 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1928 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1929 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1930 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1932 2011-07-09 Richard Henderson <rth@redhat.com>
1934 * dwarf2cfi.c (cie_return_save): New.
1935 (queue_reg_save): Use compare_reg_or_pc.
1936 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1937 (dwarf2out_frame_debug_expr): Likewise.
1938 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1939 (initial_return_save): Likewise.
1940 (execute_dwarf2_frame): Save and restore initial return save from
1942 * config/mips/mips.c (mips_frame_set): Remove special case for
1943 DWARF_FRAME_RETURN_COLUMN.
1945 2011-07-09 Richard Henderson <rth@redhat.com>
1947 * dwarf2cfi.c (lookup_cfa): Remove.
1948 (execute_dwarf2_frame): Assert queues are empty on entry.
1949 Setup initial cfa directly, not via lookup_cfa.
1950 Don't clear args_size state here.
1952 2011-07-09 Richard Henderson <rth@redhat.com>
1954 * dwarf2cfi.c (add_cfi_vec): New.
1955 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1956 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1957 (execute_dwarf2_frame): Set add_cfi_vec.
1959 2011-07-09 Richard Henderson <rth@redhat.com>
1961 * defaults.h (ASM_COMMENT_START): Move here...
1962 * dwarf2asm.c: ... from here.
1963 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1964 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1965 * varasm.c: Likewise.
1967 2011-07-09 Richard Henderson <rth@redhat.com>
1970 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1971 (create_cfi_notes): ... do it here instead.
1973 2011-07-09 Jakub Jelinek <jakub@redhat.com>
1976 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1977 (address_of_int_loc_descriptor): Use it.
1978 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1980 2011-07-09 Richard Henderson <rth@redhat.com>
1982 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1983 (prologue, epilogue): New.
1984 (return, *rts): New.
1985 (blockage, setd, seti): New.
1986 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1987 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1988 (pdp11_saved_regno): New.
1989 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1990 generate rtl instead of text.
1991 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1992 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1993 * config/pdp11/pdp11-protos.h: Update.
1995 2011-07-09 Richard Henderson <rth@redhat.com>
1997 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1998 try to insert an rtl prologue here.
1999 (rs6000_output_function_epilogue): Similarly.
2000 * config/rs6000/rs6000.md (prologue): Emit a barrier to
2001 satisfy !TARGET_SCHED_PROLOG.
2002 (epilogue, sibcall_epilogue): Likewise.
2004 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
2006 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
2008 (IN_OR_GLOBAL_P): Likewise.
2010 2011-07-08 Jason Merrill <jason@redhat.com>
2013 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
2014 compound assignment.
2016 * cgraph.c (cgraph_add_to_same_comdat_group): New.
2017 * cgraph.h: Declare it.
2018 * ipa.c (function_and_variable_visibility): Make sure thunks
2019 have the right visibility.
2021 2011-07-08 Richard Henderson <rth@redhat.com>
2024 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
2025 any tablejump vector.
2028 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
2029 end of the prologue.
2031 2011-07-08 Jakub Jelinek <jakub@redhat.com>
2034 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
2035 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
2036 * config/rs6000/vector.md (vector_select_<mode>,
2037 vector_select_<mode>_uns): Change second operand of NE to
2038 CONST0_RTX (<MODE>mode) instead of const0_rtx.
2039 * config/rs6000/altivec.md (*altivec_vsel<mode>,
2040 *altivec_vsel<mode>_uns): Expect second operand of NE to be
2041 zero_constant of the corresponding vector mode.
2042 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
2045 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
2047 * graphite-dependences.c (build_alias_set_powerset): Remove
2048 continue from loop, add one more assert.
2050 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
2053 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
2054 In particular, allow 8-bit values in r28 and r29.
2055 (avr_hard_regno_scratch_ok): Disallow any register that might be
2056 part of the frame pointer.
2057 (avr_hard_regno_rename_ok): Same.
2058 (avr_legitimate_address_p): Don't allow SUBREGs.
2060 2011-07-08 Julian Brown <julian@codesourcery.com>
2062 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
2064 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
2065 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
2066 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
2067 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
2068 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
2069 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
2070 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
2071 registers in big-endian mode.
2073 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
2075 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
2076 in terms of another.
2077 (write_attr_value): Write a cast if necessary.
2079 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
2080 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
2081 (REG_WORDS_BIG_ENDIAN): Document.
2082 * doc/tm.texi: Regenerate.
2083 * reload.c (operands_match_p): Take it into account.
2084 (reload_adjust_reg_for_mode): Likewise.
2085 * rtlanal.c (subreg_get_info): Likewise.
2087 2011-07-08 Richard Guenther <rguenther@suse.de>
2089 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
2092 2011-07-08 Kai Tietz <ktietz@redhat.com>
2094 * fold-const.c (fold_truth_andor): Factored out truth_andor
2095 label from fold_binary as function.
2096 (fold_binary_loc): Replace truth_andor lable
2097 by function fold_truth_andor.
2099 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
2102 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
2103 check if address is stored in register. If so - give up.
2104 (check_sibcall_argument_overlap_1): Do not perform check of
2105 overlapping when it is call to address.
2107 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
2109 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
2112 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
2114 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
2115 GET_MODE_BITSIZE where appropriate.
2116 (widen_leading, expand_parity, expand_ctz, expand_ffs,
2117 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
2118 expand_float, expand_fix): Likewise.
2119 * expr.c (convert_move, convert_modes, expand_expr_real_2,
2120 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2121 * stor-layout.c (get_mode_bounds): Likewise.
2122 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
2124 * convert.c (convert_to_integer): Likewise.
2125 * expmed.c (expand_shift_1): Likewise.
2127 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
2130 * optabs.c (expand_binop): Tighten conditions for doubleword
2132 (widen_bswap): Assert that mode bitsize and precision are the same.
2133 * stor-layout.c (get_best_mode): Skip modes that have lower
2134 precision than bitsize.
2135 * recog.c (simplify_while_replacing): Assert that bitsize and
2136 precision are the same.
2138 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2140 * Makefile.in (LIBGCOV): Remove.
2141 (libgcc.mvars): Remove LIBGCOV.
2142 * libgov.c: Move to ../libgcc.
2144 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2146 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
2148 2011-07-08 Martin Jambor <mjambor@suse.cz>
2150 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
2151 is too big for total scalarization.
2153 2011-07-07 Richard Henderson <rth@redhat.com>
2155 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
2156 (DBX_DEBUGGING_INFO): Undef.
2158 2011-07-07 Richard Henderson <rth@redhat.com>
2160 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
2161 Handle some opcodes specially for debugging.
2162 * print-rtl.c: Include dwarf2out.h
2163 (print_rtx): Handle NOTE_INSN_CFI.
2164 * Makefile.in (print-rtl.o): Update.
2166 2011-07-07 Richard Henderson <rth@redhat.com>
2168 * tree-pass.h (pass_dwarf2_frame): Declare.
2169 * passes.c (init_optimization_passes): Add it.
2170 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
2171 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
2172 make static, do not call add_cfis_to_fde.
2173 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
2174 dwarf2out_frame_init): Merge into...
2175 (execute_dwarf2_frame): ... here. New function.
2176 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
2177 saved_do_cfi_asm to a tri-state variable.
2178 (gate_dwarf2_frame, pass_dwarf2_frame): New.
2179 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
2180 if it has yet to be done. Don't call dwarf2cfi_function_init.
2181 * dwarf2out.h, debug.h: Update decls.
2182 * final.c (final_start_function): Don't call
2183 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
2184 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
2185 * toplev.c (lang_dependent_init): Likewise.
2187 2011-07-07 Richard Henderson <rth@redhat.com>
2189 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
2190 FDE_TABLE_INCREMENT): Replace with...
2191 (fde_vec): ... this, a new vector.
2192 (current_fde): Remove. Replace all users with cfun->fde.
2193 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
2194 (size_of_aranges, dwarf2out_finish): Likewise.
2195 (dwarf2out_alloc_current_fde): Break out from ...
2196 (dwarf2out_begin_prologue): ... here.
2197 (dwarf2out_frame_init): Remove.
2198 * dwarf2cfi.c: Update all users of current_fde.
2199 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
2200 * dwarf2out.h: Update decls.
2201 (dw_fde_node): Add fde_index member.
2202 * function.h (struct function): Add fde member.
2204 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2205 Richard Henderson <rth@redhat.com>
2207 * dwarf2cfi.c (add_cfi): Remove.
2208 (dwarf2out_cfi_label): Remove force argument. Only generate the
2210 (add_fde_cfi): Simplify the different code paths.
2212 (old_cfa, old_cfa_remember): New.
2213 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
2214 (last_reg_save_label): Remove.
2215 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
2216 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2217 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2218 dwarf2out_frame_debug_cfa_expression,
2219 dwarf2out_frame_debug_cfa_restore,
2220 dwarf2out_frame_debug_cfa_window_save,
2221 dwarf2out_frame_debug_expr): Remove label parameter.
2222 (cfi_label_required_p, add_cfis_to_fde): New.
2223 (dwarf2out_frame_debug_after_prologue): New.
2224 (dwarf2cfi_frame_init): Initialize old_cfa.
2225 (dwarf2out_frame_debug_restore_state): Likewise.
2226 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
2227 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
2228 * final.c (final_start_function): Call
2229 dwarf2out_frame_debug_after_prologue.
2231 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2232 Richard Henderson <rth@redhat.com>
2234 * dwarf2cfi.c (cfi_insn): New.
2235 (dwarf2out_cfi_label): Don't emit cfi label here.
2236 (add_fde_cfi): Create a NOTE_INSN_CFI.
2237 (dwarf2out_frame_debug): Setup cfi_insn.
2238 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
2239 (dwarf2out_cfi_begin_epilogue): Make static.
2240 (dwarf2out_frame_debug_restore_state): Make static.
2241 * dwarf2out.c (output_cfi_directive): Make static.
2242 (dwarf2out_emit_cfi): New.
2243 * dwarf2out.h: Update.
2244 * final.c (final): Remove CFI notes.
2245 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
2246 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
2247 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
2248 * insn-notes.def (NOTE_INSN_CFI): New.
2249 (NOTE_INSN_CFI_LABEL): New.
2250 * rtl.h (union rtunion_def): Add rt_cfi member.
2251 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
2253 2011-07-07 Richard Henderson <rth@redhat.com>
2255 * dwarf2cfi.c: New file.
2256 * Makefile.in (OBJS): Add it.
2257 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
2258 * gengtype.c (open_base_files): Include dwarf2out.h.
2259 * coretypes.h (enum var_init_status): Move from ...
2261 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
2262 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
2263 expand_builtin_dwarf_sp_column, init_return_column_size,
2264 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
2265 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
2266 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
2267 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
2268 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
2269 compute_barrier_args_size, dwarf2out_args_size,
2270 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
2271 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
2272 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
2273 queue_reg_save, dwarf2out_flush_queued_reg_saves,
2274 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
2275 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2276 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2277 dwarf2out_frame_debug_cfa_expression,
2278 dwarf2out_frame_debug_cfa_restore,
2279 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
2280 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
2281 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
2282 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
2283 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
2284 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
2285 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
2286 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
2287 dw_loc_descr_node): Move to dwarf2out.h.
2288 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
2289 mem_loc_descriptor): Export.
2290 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
2291 (dwarf2out_frame_init): Extract CIE generation code to
2292 dwarf2cfi_frame_init.
2294 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
2297 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
2298 MASK_V8PLUS, remove commented out flag and reorder.
2300 2011-07-07 Jakub Jelinek <jakub@redhat.com>
2303 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
2304 one non-complex and one complex argument, call c_save_expr on both
2307 2011-07-07 Martin Jambor <mjambor@suse.cz>
2310 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
2311 (verify_cgraph_node): Some functinality moved to
2312 verify_edge_corresponds_to_fndecl, call it.
2314 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2316 * config.gcc (*local*): Remove.
2317 * doc/install-old.texi: Don't mention local configurations.
2319 2011-07-07 Jakub Jelinek <jakub@redhat.com>
2322 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
2323 referencing debug insns that have been reset.
2324 (dead_debug_insert_before): Don't assert reg is non-NULL,
2325 instead return immediately if it is NULL.
2327 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2329 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2331 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2333 * hw-doloop.c: New file.
2334 * hw-doloop.h: New file.
2335 * Makefile.in (OBJS): Add hw-doloop.o.
2336 (hw-doloop.o): New rule.
2337 ($(obj_out_file)): Add hw-doloop.h dependency.
2338 * config/bfin/bfin.c: Include "hw-doloop.h".
2339 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
2340 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
2341 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
2342 type changed to hwloop_info. Return bool, true if the loop was
2343 successfully optimized. Remove code that was moved to
2344 hw-doloop.c, and adjust other parts.
2345 (hwloop_fail): New static function, containing parts that used
2346 to be in bfin_optimize_loop.
2347 (bfin_discover_loop, bfin_discover_loops, free_loops,
2348 bfin_reorder_loops): Remove.
2349 (hwloop_pattern_reg): New static function.
2350 (bfin_doloop_hooks): New variable.
2351 (bfin_reorg_loops): Remove most code, call reorg_loops.
2352 * config/bfin/bfin.md (doloop_end splitter): Also enable if
2353 loop counter is a memory_operand.
2355 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
2357 * config.gcc: Support --with-multilib-list for x86 Linux targets.
2359 * configure.ac: Mention x86-64 for --with-multilib-list.
2360 * configure: Regenerated.
2362 * config/i386/gnu-user64.h (SPEC_64): Support x32.
2363 (SPEC_32): Likewise.
2364 (ASM_SPEC): Likewise.
2365 (LINK_SPEC): Likewise.
2366 (TARGET_THREAD_SSP_OFFSET): Likewise.
2367 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
2370 * config/i386/i386.h (TARGET_X32): New.
2372 (LONG_TYPE_SIZE): Likewise.
2373 (POINTER_SIZE): Likewise.
2374 (POINTERS_EXTEND_UNSIGNED): Likewise.
2375 (OPT_ARCH64): Support x32.
2376 (OPT_ARCH32): Likewise.
2378 * config/i386/i386.opt (mx32): New.
2380 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
2381 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2382 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
2383 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2385 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
2386 (BIONIC_DYNAMIC_LINKERX32): Likewise.
2387 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
2389 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
2391 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
2393 * doc/invoke.texi: Document -mx32.
2395 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2397 * doc/invoke.texi (mwords-little-endian): Deprecate.
2398 * config/arm/arm.opt (mwords-little-endian): Likewise.
2399 * config/arm/arm.c (arm_option_override): Warn about the deprecation
2400 of -mwords-little-endian.
2402 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2404 * reload1.c (choose_reload_regs): Use mode sizes to check whether
2405 an old reload register completely defines the required value.
2407 2011-07-07 Richard Guenther <rguenther@suse.de>
2409 * fold-const.c (fold_unary_loc): Do not strip sign-changes
2412 2011-07-07 Richard Guenther <rguenther@suse.de>
2414 * tree-vrp.c (simplify_conversion_using_ranges): New function.
2415 (simplify_stmt_using_ranges): Call it.
2417 2011-07-07 Kai Tietz <ktietz@redhat.com>
2419 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
2420 (lookup_logical_inverted_value): Likewise.
2421 (simplify_bitwise_binary_1): Likewise.
2422 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
2424 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2426 * gcc.c (%[Spec]): Don't document.
2427 (struct spec_list): Update comment.
2428 (do_spec_1): Don't handle %[Spec].
2429 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
2431 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2433 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
2434 default based on TARGET_ASM_NAMED_SECTION.
2435 * common/common-target.def (have_named_sections): Default to true.
2436 * common/config/default-common.c: Don't include tm.h.
2437 * common/config/picochip/picochip-common.c
2438 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
2439 * common/config/m32c/m32c-common.c: Remove.
2440 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
2441 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2442 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2443 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2444 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2445 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2446 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2448 2011-07-07 Jakub Jelinek <jakub@redhat.com>
2451 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
2452 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
2454 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2457 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
2459 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2462 * configure.ac (gcc_cv_as_hidden): Also accept
2463 x86_64-*-solaris2.1[0-9]*.
2464 (gcc_cv_as_cfi_directive): Likewise.
2465 (gcc_cv_as_comdat_group_group): Likewise.
2466 (set_have_as_tls): Likewise.
2467 * configure: Regenerate.
2468 * config.gcc (i[34567]86-*-solaris2*): Also handle
2469 x86_64-*-solaris2.1[0-9]*.
2470 * config.host (i[34567]86-*-solaris2*): Likewise.
2471 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
2472 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
2473 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
2474 (TARGET_LD_EMULATION): Use it.
2475 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
2476 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
2477 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
2478 (ASM_CPU64_DEFAULT_SPEC): Define.
2479 (ASM_CPU_SPEC): Use %(asm_cpu_default).
2480 (ASM_SPEC): Redefine.
2481 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
2482 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
2483 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
2484 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
2486 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
2488 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2490 * config/sol2.h (ASM_SPEC): Split into ...
2491 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
2492 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2493 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2494 (ASM_SPEC): Use ASM_SPEC_BASE.
2495 * config/sparc/sol2.h (ASM_SPEC): Redefine.
2497 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
2499 * config/avr/avr.md (*reload_insi): Change predicate #1 to
2500 const_int_operand. Ditto for peep2 producing this insn.
2501 Add argument to output_reload_insisf call.
2502 (*movsi,*movsf): Add argument to output_movsisf call.
2503 (*reload_insf): New insn and new peep2 to produce it.
2504 * config/avr/avr-protos.h (output_movsisf): Change prototype.
2505 (output_reload_insisf): Change prototype.
2506 * config/avr/avr.c (avr_asm_len): New function.
2507 (output_reload_insisf): Rewrite.
2508 (output_movsisf): Change prototype. output_reload_insisf for
2509 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
2510 (adjust_insn_length): Add argument to output_movsisf and
2511 output_reload_insisf call.
2513 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2515 * emit-rtl.c (paradoxical_subreg_p): New function.
2516 * rtl.h (paradoxical_subreg_p): Declare.
2517 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2518 apply_distributive_law, simplify_comparison, simplify_set): Use it.
2519 * cse.c (record_jump_cond, cse_insn): Likewise.
2520 * expr.c (force_operand): Likewise.
2521 * rtlanal.c (num_sign_bit_copies1): Likewise.
2522 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2523 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2524 (push_reload): Use precision to check for paradoxical subregs.
2525 * expmed.c (extract_bit_field_1): Likewise.
2527 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2528 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2529 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2530 simplify_set, simplify_logical, expand_compound_operation,
2531 make_extraction, force_to_mode, if_then_else_cond, extended_count,
2532 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2533 record_value_for_reg): Likewise.
2534 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2535 * simplify-rtx. c (simplify_unary_operation_1,
2536 simplify_binary_operation_1, simplify_const_relational_operation):
2539 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2540 instead of GET_MODE_BITSIZE where appropriate.
2541 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2542 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2543 init_num_sign_bit_copies_in_rep): Likewise.
2544 * cse.c (fold_rtx, cse_insn): Likewise.
2545 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2546 * simplify-rtx.c (simplify_unary_operation_1,
2547 simplify_const_unary_operation, simplify_binary_operation_1,
2548 simplify_const_binary_operation, simplify_ternary_operation,
2549 simplify_const_relational_operation, simplify_subreg): Likewise.
2550 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2551 simplify_if_then_else, simplify_set, expand_compound_operation,
2552 expand_field_assignment, make_extraction, if_then_else_cond,
2553 make_compound_operation, force_to_mode, make_field_assignment,
2554 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2555 extended_count, try_widen_shift_mode, simplify_shift_const_1,
2556 simplify_comparison, record_promoted_value, simplify_compare_const,
2557 record_dead_and_set_regs_1): Likewise.
2560 * simplify-rtx.c (simplify_const_binary_operation): Use the
2561 shift_truncation_mask hook instead of performing modulo by width.
2562 Compare against mode precision, not bitsize.
2563 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2564 Use shift_truncation_mask instead of constructing the value manually.
2566 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2568 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2570 (rs6000_save_toc_in_prologue_p): Ditto.
2572 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2573 up the static chain (r11) during indirect function calls.
2574 (-msave-toc-indirect): New undocumented debug switch.
2576 * config/rs6000/rs6000.c (struct machine_function): Add
2577 save_toc_in_prologue field to note whether the prologue needs to
2578 save the TOC value in the reserved stack location.
2579 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
2580 to save the TOC in the prologue, do so.
2581 (rs6000_trampoline_init): Don't allow creating AIX style
2582 trampolines if -mno-r11 is in effect.
2583 (rs6000_call_indirect_aix): New function to create AIX style
2584 indirect calls, adding support for -mno-r11 to suppress loading
2585 the static chain, and saving the TOC in the prologue instead of
2587 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2588 TOC in the prologue.
2590 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2592 (TOC_REGNUM): Ditto.
2593 (STATIC_CHAIN_REGNUM): Ditto.
2594 (ARG_POINTER_REGNUM): Ditto.
2595 (SFP_REGNO): Delete, unused.
2596 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2597 function descriptor offsets.
2598 (TOC_SAVE_OFFSET_64BIT): Ditto.
2599 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2600 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2601 (AIX_FUNC_DESC_SC_32BIT): Ditto.
2602 (AIX_FUNC_DESC_SC_64BIT): Ditto.
2603 (ptrload): New mode attribute for the appropriate load of a pointer.
2604 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2605 (call_indirect_aix64): Ditto.
2606 (call_value_indirect_aix32): Ditto.
2607 (call_value_indirect_aix64): Ditto.
2608 (call_indirect_nonlocal_aix32_internal): Ditto.
2609 (call_indirect_nonlocal_aix32): Ditto.
2610 (call_indirect_nonlocal_aix64_internal): Ditto.
2611 (call_indirect_nonlocal_aix64): Ditto.
2612 (call): Rewrite AIX indirect function calls. Add support for
2613 eliminating the static chain, and for moving the save of the TOC
2614 to the function prologue.
2615 (call_value): Ditto.
2616 (call_indirect_aix<ptrsize>): Ditto.
2617 (call_indirect_aix<ptrsize>_internal): Ditto.
2618 (call_indirect_aix<ptrsize>_internal2): Ditto.
2619 (call_indirect_aix<ptrsize>_nor11): Ditto.
2620 (call_value_indirect_aix<ptrsize>): Ditto.
2621 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2622 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2623 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2624 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2625 (call_nonlocal_aix64): Ditto.
2627 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2628 -mno-r11 documentation.
2630 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2633 * doc/extend.texi (Compound Literals): Fix typo.
2635 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2637 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2639 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2641 * configure.ac (plugin-version.h): Generate
2642 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2643 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2646 * configure: Regenerate.
2648 * doc/plugins.texi (Building GCC plugins): Mention
2649 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2651 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2653 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2654 * combine.c (make_extraction, gen_lowpart_or_truncate,
2655 apply_distributive_law, simplify_comparison,
2656 reg_truncated_to_mode, record_truncated_value): Use it.
2657 * cse.c (notreg_cost): Likewise.
2658 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2659 * expr.c (convert_move, convert_modes): Likewise.
2660 * optabs.c (expand_binop, expand_unop): Likewise.
2661 * postreload.c (move2add_last_label): Likewise.
2662 * regmove.c (optimize_reg_copy_3): Likewise.
2663 * rtlhooks.c (gen_lowpart_general): Likewise.
2664 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2666 2011-07-06 Joseph Myers <joseph@codesourcery.com>
2668 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2670 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2672 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2673 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2674 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2675 (simplify_const_unary_operation, simplify_binary_operation_1,
2676 simplify_const_binary_operation, simplify_const_relational_operation):
2677 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2678 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2679 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2680 simplify_shift_const_1, simplify_comparison): Likewise.
2681 * expr.c (convert_modes): Likewise.
2682 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2683 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2684 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2686 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2688 2011-07-06 Richard Guenther <rguenther@suse.de>
2690 PR tree-optimization/49645
2691 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2693 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2694 in type qualification here ...
2695 (copy_reference_ops_from_ref): ... not here.
2696 (vn_reference_lookup_3): ... or here.
2697 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2698 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2700 2011-07-06 Ian Lance Taylor <iant@google.com>
2702 * doc/install.texi (Configuration): It's
2703 --enable-gnu-indirect-function, not --enable-indirect-function.
2705 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2707 * simplify-rtx.c (simplify_const_binary_operation): Use the
2708 shift_truncation_mask hook instead of performing modulo by width.
2709 Compare against mode precision, not bitsize.
2710 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2711 Use shift_truncation_mask instead of constructing the value manually.
2713 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2716 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2717 address computation and convert to address_mode if needed.
2719 2011-07-06 Richard Guenther <rguenther@suse.de>
2721 * tree.c (build_common_tree_nodes_2): Merge with
2722 build_common_tree_nodes.
2723 * tree.h (build_common_tree_nodes): Adjust prototype.
2724 (build_common_tree_nodes_2): Remove.
2725 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2726 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2728 2011-07-05 Jakub Jelinek <jakub@redhat.com>
2730 PR tree-optimization/49618
2731 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2732 t recurse on the decl.
2733 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2734 return true if expr isn't known to be defined in current
2735 TU or some other LTO partition.
2737 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2739 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2740 override CASE_VALUES_THRESHOLD.
2742 * stmt.c (toplevel): Include params.h.
2743 (case_values_threshold): Use the --param case-values-threshold
2744 value if non-zero, otherwise use machine dependent value.
2745 (expand_case): Use case_values_threshold.
2747 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2749 * doc/invoke.texi (--param case-values-threshold): Document.
2751 2011-07-05 Richard Henderson <rth@redhat.com>
2753 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2754 (dwarf2out_flush_queued_reg_saves): Make static.
2755 (dwarf2out_reg_save): Remove.
2756 (dwarf2out_return_save): Remove.
2757 (dwarf2out_return_reg): Remove.
2758 (dwarf2out_reg_save_reg): Remove.
2759 (dwarf2out_def_cfa): Merge into ...
2760 (dwarf2out_frame_init): ... here.
2761 * dwarf2out.h, tree.h: Remove declarations as necessary.
2763 2011-07-05 Richard Henderson <rth@redhat.com>
2765 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2766 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2767 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2770 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2771 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2772 (process_epilogue): Don't call dwarf2out_def_cfa.
2774 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2775 indicate the return address save.
2776 (process_cfa_register): Likewise.
2778 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2779 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2781 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2782 for ar.pfs save at alloc insn.
2784 2011-07-05 Richard Henderson <rth@redhat.com>
2786 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2787 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2788 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2790 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2791 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2792 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2793 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2795 2011-07-05 Richard Henderson <rth@redhat.com>
2797 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2798 VUNSPEC_* constants here instead of via define_constants.
2799 (VUNSPEC_PEM): New constant.
2800 (procedure_entry_mask): New insn.
2801 (prologue): New expander.
2802 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2803 (vax_expand_prologue): Rename from vax_output_function_prologue;
2804 emit rtl instead of text.
2805 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2806 (print_operand): Add 'x' prefix.
2808 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2811 * calls.c (precompute_register_parameters): Promote the function
2812 argument before checking non-legitimate constant.
2814 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2816 PR tree-optimization/47654
2817 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2818 (lst_do_strip_mine_loop): Return an int.
2819 (lst_do_strip_mine): Same.
2820 (scop_do_strip_mine): Same.
2821 (scop_do_block): Loop blocking should strip-mine at least two loops.
2822 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2823 (scop_do_interchange): Same.
2824 * graphite-poly.h (scop_do_interchange): Update declaration.
2825 (scop_do_strip_mine): Same.
2827 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2829 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2830 (precision_for_interval): Removed.
2831 (gcc_type_for_interval): Use mpz_sizeinbase.
2833 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2835 * graphite-ppl.h (value_max): Correct computation of max.
2837 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2839 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2841 2011-07-05 Richard Guenther <rguenther@suse.de>
2843 * c-decl.c (c_init_decl_processing): Defer building common
2844 tree nodes to c_common_nodes_and_builtins.
2846 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
2848 PR tree-optimization/49580
2849 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2850 the loop's number of iterations.
2851 * tree-parloops.c (transform_to_exit_first_loop): Add the
2852 handling of the loop's number of iterations before the call
2853 to gimple_duplicate_sese_tail.
2854 Insert the stmt caclculating the new rhs of the loop's
2855 condition stmt to the preheader instead of iters_bb.
2857 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2859 PR rtl-optimization/47449
2860 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2861 register nor zero/sign extended hard register.
2863 2011-07-05 Richard Guenther <rguenther@suse.de>
2865 PR tree-optimization/49518
2866 PR tree-optimization/49628
2867 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2868 irrelevant and invariant data-references.
2869 (vect_analyze_data_ref_access): For invariant loads clear the
2872 2011-07-04 Jakub Jelinek <jakub@redhat.com>
2874 PR rtl-optimization/49619
2875 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2876 pass VOIDmode as op0_mode to recursive call, and return temp even
2877 when different from tor, just if it is not IOR of the original
2880 PR rtl-optimization/49472
2881 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2882 negating MULT, negate the second operand instead of first.
2883 (simplify_binary_operation_1) <case MULT>: If one operand is
2884 a NEG and the other is MULT, don't attempt to optimize by negation
2885 of the MULT operand if it only moves the NEG operation around.
2888 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2889 get_current_def return value if it can't be trusted to be
2890 the current value of the variable in the current bb.
2892 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
2895 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2896 general register to memory for !TARGET_INTER_UNIT_MOVES.
2898 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2901 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2902 instead of TREE_READONLY.
2904 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2906 * doc/extend.texi (AVR Built-in Functions): Update documentation
2907 of __builtin_avr_fmul*.
2908 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2909 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2910 * config/avr/avr.md (fmul): Rename to fmul_insn.
2911 (fmuls): Rename to fmuls_insn.
2912 (fmulsu): Rename to fmulsu_insn.
2913 (fmul,fmuls,fmulsu): New expander.
2914 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2915 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2916 * config/avr/libgcc.S (__fmul): New function.
2917 (__fmuls): New function.
2918 (__fmulsu,__fmulsu_exit): New function.
2920 2011-07-04 Richard Guenther <rguenther@suse.de>
2922 PR tree-optimization/49615
2923 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2924 basic-block index check.
2926 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2928 * longlong.h (count_leading_zeros, count_trailing_zeros,
2929 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2932 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
2934 PR tree-optimization/49610
2935 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2938 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2939 Olivier Hainque <hainque@adacore.com>
2940 Nicolas Setton <setton@adacore.com>
2942 * tree.h (TYPE_ARTIFICIAL): New flag.
2943 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2944 the DIE of the type if it is artificial.
2945 (gen_array_type_die): Likewise.
2946 (gen_enumeration_type_die): Likewise.
2947 (gen_struct_or_union_type_die): Likewise.
2948 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2949 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2951 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2953 * tree-object-size.c (pass_through_call): Handle
2954 BUILT_IN_ASSUME_ALIGNED.
2956 2011-07-01 Martin Jambor <mjambor@suse.cz>
2958 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2960 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2963 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2964 for stack save area.
2965 * function.c (expand_function_start): Likewise.
2967 2011-07-01 Richard Guenther <rguenther@suse.de>
2970 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2971 may have unknown refs.
2973 2011-07-01 Kai Tietz <ktietz@redhat.com>
2975 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2977 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2979 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2980 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2981 (Specific, mips-sgi-irix6): Likewise.
2983 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2986 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2988 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2990 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2991 [idx]= and [idx1 ... idx2]= before initializers if needed for
2994 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2996 * config.gcc (score-*-elf): Remove score7.o.
2997 * config/score/t-score-elf: Likewise.
2998 * config/score/score.c: Merge score7 to score.c and
2999 remove forwarding functions.
3000 * config/score/score7.c: Deleted.
3001 * config/score/score7.h: Deleted.
3003 2011-07-01 Richard Guenther <rguenther@suse.de>
3005 PR tree-optimization/49603
3006 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
3008 2011-06-30 Martin Jambor <mjambor@suse.cz>
3010 * tree-sra.c (struct access): Rename total_scalarization to
3011 grp_total_scalarization
3012 (completely_scalarize_var): New function.
3013 (sort_and_splice_var_accesses): Set total_scalarization in the
3014 representative access.
3015 (analyze_access_subtree): Propagate total scalarization accross the
3016 tree, no holes in totally scalarized trees, simplify coverage
3018 (analyze_all_variable_accesses): Call completely_scalarize_var instead
3019 of completely_scalarize_record.
3021 2011-06-30 Richard Henderson <rth@redhat.com>
3023 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
3024 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
3025 * config/i386/i386.c: Don't include dwarf2out.h.
3026 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
3027 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
3028 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
3029 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
3030 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
3032 2011-06-30 Richard Henderson <rth@redhat.com>
3034 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
3035 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3036 * final.c (final_scan_insn): Look for it, and invoke
3037 dwarf2out_frame_debug before the insn if found.
3039 2011-06-30 Richard Henderson <rth@redhat.com>
3041 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
3042 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
3044 2011-06-30 Richard Henderson <rth@redhat.com>
3046 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
3047 Define a vector of this type.
3048 (regs_saved_in_regs): Use a VEC.
3049 (num_regs_saved_in_regs): Remove.
3050 (compare_reg_or_pc): New.
3051 (record_reg_saved_in_reg): Split out from...
3052 (dwarf2out_flush_queued_reg_saves): ... here.
3053 (clobbers_queued_reg_save): Update for VEC.
3054 (reg_saved_in): Likewise.
3055 (dwarf2out_frame_debug_init): Likewise.
3056 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
3057 (dwarf2out_frame_debug_cfa_register): Likewise.
3059 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
3061 PR tree-optimization/49572
3062 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
3063 type of the RHS instead of that of the LHS for the expression type.
3065 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
3067 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
3070 2011-06-30 Richard Guenther <rguenther@suse.de>
3072 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
3073 * tree-ssa-structalias.c (create_variable_info_for): Do not
3074 add initial constraints for non-var-decls. Properly handle
3075 globals in other ltrans partitions.
3076 (intra_create_variable_infos): Manually create constraints for
3077 the fake no-alias parameter.
3078 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
3079 and assert there are no clones.
3081 2011-06-30 Richard Guenther <rguenther@suse.de>
3083 PR tree-optimization/46787
3084 * tree-data-ref.c (dr_address_invariant_p): Remove.
3085 (find_data_references_in_stmt): Invariant accesses are ok now.
3086 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
3087 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3090 2011-06-30 Martin Jambor <mjambor@suse.cz>
3092 PR tree-optimization/49094
3093 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
3094 (build_accesses_from_assign): Use it.
3096 2011-06-30 Jakub Jelinek <jakub@redhat.com>
3098 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3099 handling of BUILT_IN_ASSUME_ALIGNED.
3102 * dwarf2out.c (output_abbrev_section): Don't return early
3103 if abbrev_die_table_in_use is 1.
3104 (dwarf2out_finish): Instead don't call output_abbrev_section
3105 nor emit abbrev_section_label in that case.
3107 2011-06-30 Nick Clifton <nickc@redhat.com>
3109 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
3112 2011-06-30 Jakub Jelinek <jakub@redhat.com>
3114 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3115 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
3117 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
3119 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3120 both pattern and original statements if necessary.
3121 (vect_transform_loop): Likewise.
3122 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
3123 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
3124 Mark the pattern statement only if the original statement doesn't
3126 (process_use): Call vect_mark_relevant with additional parameter.
3127 (vect_mark_stmts_to_be_vectorized): Likewise.
3128 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
3129 (vect_analyze_stmt): Handle both pattern and original statements
3131 (vect_transform_stmt): Don't store vectorized pattern statement
3132 in the original statement.
3133 (vect_is_simple_use_1): Use related pattern statement only if the
3134 original statement is irrelevant.
3135 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3137 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
3139 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
3141 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
3143 (TARGET_AVX128_OPTIMAL): New definition.
3144 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3145 X86_TUNE_AVX128_OPTIMAL entry.
3146 (ix86_option_override_internal): Enable the generation
3147 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
3148 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
3149 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
3151 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
3153 PR tree-optimization/49539
3154 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
3155 names by means of stmt_references_abnormal_ssa_name.
3156 (associate_plusminus): Call can_propagate_from before propagating
3157 from definition statements.
3158 (ssa_forward_propagate_and_combine): Remove superfluous newline.
3160 2011-06-29 Richard Guenther <rguenther@suse.de>
3162 * doc/invoke.texi: Document -scev dump modifier.
3163 * tree-pass.h (TDF_SCEV): New dump flag.
3164 * tree-dump.c (dump_option_value_in): Add scev.
3165 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
3166 * tree-scalar-evolution.c: Likewise.
3168 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
3170 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
3171 (cxa_type_match): Correct declaration.
3172 (__gnu_unwind_pr_common): Reconstruct additional indirection
3173 when __cxa_type_match returns succeeded_with_ptr_to_base.
3175 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3177 PR rtl-optimization/49114
3178 * reload.c (struct replacement): Remove SUBREG_LOC member.
3179 (push_reload): Do not set it.
3180 (push_replacement): Likewise.
3181 (subst_reload): Remove dead code.
3182 (copy_replacements): Remove assertion.
3183 (copy_replacements_1): Do not handle SUBREG_LOC.
3184 (move_replacements): Likewise.
3185 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
3186 Detect subregs via recursive descent instead of via SUBREG_LOC.
3188 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
3190 * config/avr/avr.c (avr_encode_section_info): Dispatch to
3191 default_encode_section_info.
3193 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
3195 PR tree-optimization/49545
3196 * builtins.c (get_object_alignment_1): Update function comment.
3197 Do not use DECL_ALIGN for functions, but test
3198 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
3199 * fold-const.c (get_pointer_modulus_and_residue): Don't check
3201 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3203 2011-06-29 Jakub Jelinek <jakub@redhat.com>
3206 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
3207 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
3209 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
3212 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
3213 about uninitialized data attributed 'progmem' from here...
3214 (avr_encode_section_info): ...to this new function.
3215 (TARGET_ENCODE_SECTION_INFO): New define.
3216 (avr_section_type_flags): For data in ".progmem.data", remove
3217 section flag SECTION_WRITE.
3219 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
3221 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
3223 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
3224 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
3225 (__umulhisi3): Ditto.
3226 * config/avr/avr.md (mulhisi3): New insn expender.
3227 (umulhisi3): New insn expender.
3228 (*mulhisi3_call): New insn.
3229 (*umulhisi3_call): New insn.
3231 2011-06-28 Joseph Myers <joseph@codesourcery.com>
3233 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
3235 2011-06-28 Richard Henderson <rth@redhat.com>
3237 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
3238 all code and arguments that handled pushes. Update all callers.
3240 2011-06-28 Richard Henderson <rth@redhat.com>
3242 * config/arm/arm.c (arm_output_function_prologue): Don't call
3243 thumb1_output_function_prologue.
3244 (arm_expand_prologue): Avoid dead store.
3245 (number_of_first_bit_set): Use ctz_hwi.
3246 (thumb1_emit_multi_reg_push): New.
3247 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
3248 to emit the entire prologue as rtl.
3249 (thumb1_output_interwork): Split out from
3250 thumb1_output_function_prologue.
3251 (thumb1_output_function_prologue): Remove.
3252 (arm_attr_length_push_multi): Handle thumb1.
3253 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
3254 (prologue_thumb1_interwork): New.
3255 (*push_multi): Allow thumb1; use push_mult_memory_operand.
3256 * config/arm/predicates.md (push_mult_memory_operand): New.
3258 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
3260 * config/sparc/sync.md (*stbar): Delete.
3261 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
3263 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
3265 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
3267 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3269 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
3270 (TARGET_64BIT_DEFAULT): Define.
3271 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
3273 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
3275 2011-06-28 Joseph Myers <joseph@codesourcery.com>
3277 * common.opt (in_lto_p): New Variable entry.
3278 * flags.h (in_lto_p): Move to common.opt.
3279 * gcc.c: Include params.h.
3280 (set_option_handlers): Also use common_handle_option and
3281 target_handle_option.
3282 (main): Call global_init_params, finish_params and init_options_struct.
3283 * opts.c (debug_type_names): Move from toplev.c.
3284 (print_filtered_help): Access quiet_flag through opts pointer.
3285 (common_handle_option): Return early in the driver for some options.
3286 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
3288 * toplev.c (in_lto_p): Move to common.opt.
3289 (debug_type_names): Move to opts.c.
3290 * Makefile.in (OBJS): Remove opts.o.
3291 (OBJS-libcommon-target): Add opts.o.
3292 (gcc.o): Update dependencies.
3294 2011-06-28 Kai Tietz <ktietz@redhat.com>
3296 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
3298 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3300 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
3301 with '=' constraint modifier.
3302 (*divdf3_vfp): Likewise.
3303 ("*mulsf3_vfp"): Likewise.
3304 ("*muldf3_vfp"): Likewise.
3305 ("*mulsf3negsf_vfp"): Likewise.
3306 ("*muldf3negdf_vfp"): Likewise.
3308 2011-06-28 Nick Clifton <nickc@redhat.com>
3310 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
3311 relaxation when performing an incremental link.
3313 2011-06-28 Kai Tietz <ktietz@redhat.com>
3315 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
3316 within BB from last to first.
3318 2011-06-28 Joseph Myers <joseph@codesourcery.com>
3320 * genattr-common.c: New. Based on genattr.c.
3321 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
3322 (MOSTLYCLEANFILES): Add insn-attr-common.h.
3323 (opts.o): Update dependencies.
3324 (.PRECIOUS): Add insn-attr-common.h.
3325 (simple_rtl_generated_h): Add insn-attr-common.h.
3326 (build/genattr-common.o): New.
3327 (genprogrtl): Add attr-common.
3328 * genattr.c (main): Include insn-attr-common.h. Don't generate
3329 definitions of DELAY_SLOTS or INSN_SCHEDULING.
3330 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
3332 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
3334 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
3335 avr-*-* and avr-*-rtems* targets.
3337 * config/avr/elf.h: New file.
3338 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
3339 (TARGET_ASM_SELECT_SECTION): Define.
3340 (INIT_SECTION_ASM_OP): Undefine.
3341 (FINI_SECTION_ASM_OP): Undefine.
3342 (READONLY_DATA_SECTION_ASM_OP): Undefine.
3343 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
3344 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
3346 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
3347 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
3348 (MAX_OFILE_ALIGNMENT): Move to elf.h.
3349 (STRING_LIMIT): Move to elf.h.
3350 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
3351 (ASM_DECLARE_OBJECT_NAME): Remove.
3353 (ASM_OUTPUT_SKIP): Remove.
3354 (DWARF2_DEBUGGING_INFO): Remove.
3355 (OBJECT_FORMAT_ELF): Remove.
3356 (USER_LABEL_PREFIX): Remove.
3357 (ASM_OUTPUT_EXTERNAL): Remove.
3358 (ASM_OUTPUT_ASCII): Remove.
3359 (TYPE_ASM_OP): Remove.
3360 (SIZE_ASM_OP): Remove.
3361 (WEAK_ASM_OP): Remove.
3362 (STRING_ASM_OP): Remove.
3363 (SET_ASM_OP): Remove.
3364 (ASM_WEAKEN_LABEL): Remove.
3365 (TYPE_OPERAND_FMT): Remove.
3366 (ASM_DECLARE_FUNCTION_SIZE): Remove.
3367 (ASM_FINISH_DECLARE_OBJECT): Remove.
3368 (NO_DOLLAR_IN_LABEL): Remove.
3369 (ASM_GENERATE_INTERNAL_LABEL): Remove.
3370 (ASM_OUTPUT_CASE_LABEL): Remove.
3371 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
3372 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
3373 (gas_output_ascii): Remove.
3374 (gas_output_limited_string): Remove.
3375 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3376 * config/avr/avr-protos.h
3377 (gas_output_ascii): Remove prototye.
3378 (gas_output_limited_string): Remove prototype.
3380 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
3383 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
3386 2011-06-27 Jan Hubicka <jh@suse.cz>
3388 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
3389 node instead of references in node.
3391 2011-06-27 Richard Henderson <rth@redhat.com>
3393 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
3394 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
3397 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3399 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
3401 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
3402 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
3403 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
3404 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
3405 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
3406 (evaluate_stmt, execute_fold_all_builtins): Handle
3407 BUILT_IN_ASSUME_ALIGNED.
3408 * tree-ssa-dce.c (propagate_necessity): Likewise.
3409 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3410 call_may_clobber_ref_p_1): Likewise.
3411 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
3412 (expand_builtin_assume_aligned): New function.
3413 * doc/extend.texi (__builtin_assume_aligned): Document.
3416 * cselib.c (promote_debug_loc): If cselib_preserve_constants
3417 and l has two DEBUG_INSN owned locs instead of just one, adjust
3418 the second location's setting_insn too.
3420 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3423 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
3425 2011-06-27 Nick Clifton <nickc@redhat.com>
3427 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
3428 bit position of highest bit set into a count of the high zero bits.
3430 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3432 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
3434 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3437 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
3440 2011-06-27 Richard Guenther <rguenther@suse.de>
3442 PR tree-optimization/49394
3443 * passes.c (execute_one_pass): Restore current_pass after
3444 applying IPA transforms.
3446 2011-06-27 Kai Tietz <ktietz@redhat.com>
3448 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
3449 out of type precision after operation.
3450 (find_bswap): Take for limit value the integer auto-promotion
3453 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3455 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
3456 forward scan as well.
3458 2011-06-27 Tristan Gingold <gingold@adacore.com>
3461 * config/vms/vms-protos.h: New file.
3462 * config/vms/vms-crtlmap.map: New file.
3463 * config/vms/vms.c: New file.
3464 * config/vms/make-crtlmap.awk: New file.
3465 * config/vms/vms-crtl.h: File removed.
3466 * config/vms/vms-crtl-64.h: File removed.
3467 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
3468 * config/alpha/vms64.h: Do not include vms-crtl-64.h
3469 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
3470 clear some builtins on VMS. Calls vms_patch_builtins.
3471 (avms_asm_output_external): Remove.
3472 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
3473 (struct crtl_name_spec): Remove
3474 (DO_CTRL_NAMES): Remove.
3475 * config/ia64/vms.h (struct crtl_name_spec): Remove
3476 (DO_CTRL_NAMES): Remove.
3477 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
3478 clear some builtins on VMS. Calls vms_patch_builtins.
3479 (ia64_asm_output_external): Remove DO_CRTL_NAME.
3480 * config/ia64/vms64.h: Do not include vms-crtl-64.h
3481 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
3483 2011-06-27 Tristan Gingold <gingold@adacore.com>
3485 * config/alpha/alpha.c (alpha_end_function): Always generate .end
3488 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3490 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
3491 the function receives nonlocal gotos.
3493 2011-06-27 Richard Guenther <rguenther@suse.de>
3495 PR tree-optimization/49536
3496 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3497 For non-scalar inner types use a scalar type according to
3498 the scalar inner mode.
3500 2011-06-27 Richard Guenther <rguenther@suse.de>
3502 PR tree-optimization/49365
3503 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3505 2011-06-27 Richard Guenther <rguenther@suse.de>
3507 PR tree-optimization/49169
3508 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3509 the alignment of function decls.
3511 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
3514 * config/darwin.c (darwin_mergeable_string_section): Place string
3515 constants in '.cstring' rather than '.const' when CF/NSStrings are
3518 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
3520 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3521 (emit_save_register_window): Likewise.
3522 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3523 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
3524 Swap back %o7/%i7 in register naming.
3526 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
3529 * config/darwin.c (darwin_override_options): Improve warning when
3530 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3531 is given with fpie/fPIE.
3532 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3533 * config/darwin9.h (PIE_SPEC): New.
3535 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
3537 * timevar.c (timevar_print): Increase width for display of timevar
3540 2011-06-24 Jakub Jelinek <jakub@redhat.com>
3543 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3544 instead of TYPE_CHAIN for chain_next for types.
3546 2011-06-24 Richard Henderson <rth@redhat.com>
3548 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3549 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3550 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3551 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3552 (sparc_flat_expand_prologue): Emit individual instructions
3553 instead of one of the above.
3555 2011-06-24 Easwaran Raman <eraman@google.com>
3557 PR rtl-optimization/49429
3559 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
3560 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3561 used to copy y into x.
3562 * calls.c (initialize_argument_information): Mark
3563 an argument addressable if it is passed by invisible reference.
3564 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
3565 if it is passed by reference.
3567 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
3569 PR rtl-optimization/49504
3570 * rtlanal.c (nonzero_bits1): Properly handle addition or
3571 subtraction of a pointer in Pmode if pointers extend unsigned.
3572 (num_sign_bit_copies1): Likewise.
3574 2011-06-24 Martin Jambor <mjambor@suse.cz>
3576 PR tree-optimizations/49516
3577 * tree-sra.c (sra_modify_assign): Choose the safe path for
3578 aggregate copies if we also did scalar replacements.
3580 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3583 * config/arm/predicates.md (add_operator): New.
3584 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3586 2011-06-24 Andi Kleen <ak@linux.intel.com>
3588 * tree-sra.c (type_internals_preclude_sra_p): Add msg
3589 parameter. Split up ifs and report reason in *msg.
3591 (find_var_candiate): Add msg variable.
3592 Split up ifs and report reason to reject.
3593 (find_param_candidates): Add msg variable.
3594 Pass msg to type_internals_preclude_sra_p.
3596 2011-06-23 Jeff Law <law@redhat.com>
3599 * reload.h (reload): Change to return a bool.
3600 * ira.c (ira): If requested by reload, run a fast DCE pass after
3601 reload has completed. Fix comment typo.
3602 * reload1.c (need_dce): New file scoped static.
3603 (reload): Set reload_completed here. Return whether or not a DCE
3604 pass after reload is needed.
3605 (delete_dead_insn): Set need_dce as needed.
3608 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3609 to detect threading through joiner block. If there was already
3610 an edge to the new target, then do not change the PHI nodes.
3612 2011-06-23 Jakub Jelinek <jakub@redhat.com>
3614 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3615 get_pointer_alignment to see if base isn't sufficiently aligned.
3617 2011-06-23 Jan Hubicka <jh@suse.cz>
3619 PR tree-optimize/49373
3620 * tree-pass.h (all_late_ipa_passes): Declare.
3621 * cgraphunit.c (init_lowered_empty_function): Fix properties.
3622 (cgraph_optimize): Execute late passes; remove unreachable funcions
3623 after materialization.
3624 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3626 * passes.c (all_late_ipa_passes): Declare.
3627 (dump_passes, register_pass): Handle late ipa passes.
3628 (init_optimization_passes): Move ipa_pta to late passes; schedule
3629 fixup_cfg at beggining of all_passes.
3630 (apply_ipa_transforms): New function.
3631 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3633 2011-06-23 Joseph Myers <joseph@codesourcery.com>
3635 * params.c: Include common/common-target.h. Don't include tm.h.
3636 (lang_independent_params): Move from toplev.c.
3637 (global_init_params): New.
3638 * params.h (global_init_params): Declare.
3639 * target.def (default_params): Move to common-target.def.
3640 * toplev.c (lang_independent_options): Remove.
3641 (lang_independent_params): Move to params.c.
3642 (general_init): Use global_init_params.
3643 * common/common-target.def (option_default_params): Move from
3645 * common/config/ia64/ia64-common.c: Include params.h.
3646 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3648 * common/config/rs6000/rs6000-common.c: Include params.h.
3649 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3651 * common/config/sh/sh-common.c: Include params.h.
3652 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3654 * common/config/spu/spu-common.c: Include params.h.
3655 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3657 * config/ia64/ia64.c (ia64_option_default_params,
3658 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3659 * config/rs6000/rs6000.c (rs6000_option_default_params,
3660 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3661 * config/sh/sh.c (sh_option_default_params,
3662 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3663 * config/spu/spu.c (spu_option_default_params,
3664 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3665 * Makefile.in (OBJS): Remove params.o.
3666 (OBJS-libcommon-target): Add params.o.
3667 (params.o, $(common_out_object_file)): Update dependencies.
3668 * doc/tm.texi: Regenerate.
3670 2011-06-23 Alan Modra <amodra@gmail.com>
3673 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3674 invocation for 2011-06-09 changes.
3676 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3679 * omp-low.c (expand_omp_for_static_nochunk): Only
3680 use n ceil/ nthreads size for the first n % nthreads threads in the
3681 team instead of all threads except for the last few ones which
3682 get less work or none at all.
3685 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3688 2011-06-22 Richard Guenther <rguenther@suse.de>
3690 PR tree-optimization/49493
3691 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3692 Refer to the alias target of variables.
3693 (associate_varinfo_to_alias_1): Remove.
3694 (ipa_pta_execute): Do not associate aliases with anything.
3695 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3696 (cgraph_function_node): Likewise.
3697 (cgraph_function_or_thunk_node): Likewise.
3698 (varpool_variable_node): Likewise.
3700 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3702 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3703 * config.gcc (arm*-*-linux*): Default to gnu tls.
3704 (arm*-*-*): Add --with-tls option.
3705 (all_defaults): Add 'tls'.
3707 2011-06-22 Richard Henderson <rth@redhat.com>
3709 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3710 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3711 (dwarf2out_frame_debug_cfa_window_save): Rename from
3712 dwarf2out_window_save; make static.
3713 * tree.h (dwarf2out_window_save): Don't declare.
3715 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3716 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3717 (emit_save_register_window): Rename from gen_save_register_window;
3718 emit the insn and add REG_CFA_* notes.
3719 (sparc_expand_prologue): Update to match.
3720 * config/sparc/sparc.md (save_register_window_1): Simplify from
3721 save_register_window<P:mode>.
3723 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3726 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3727 (*lea_general_2_zext): Likewise.
3728 (imul to lea peepholes): Use const359_operand and check
3729 TARGET_PARTIAL_REG_STALL.
3731 * config/i386/predicates.md (const359_operand): New.
3733 2011-06-22 Michael Matz <matz@suse.de>
3735 * cgraphunit.c (assemble_thunk): Use correct return type.
3737 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
3738 Dmitry Melnik <dm@ispras.ru>
3740 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3741 (neon_output_shift_immediate): Ditto.
3742 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3744 (neon_output_shift_immediate): Ditto.
3745 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3746 (vashr<mode>3_imm): New insn pattern.
3747 (vlshr<mode>3_imm): Ditto.
3748 (vashr<mode>3): Modified constraint.
3749 (vlshr<mode>3): Ditto.
3750 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3752 (imm_for_neon_rshift_operand): Ditto.
3753 (imm_lshift_or_reg_neon): Ditto.
3754 (imm_rshift_or_reg_neon): Ditto.
3756 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3758 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3760 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3761 builtin calls even if likelyvalue is not CONSTANT.
3762 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3763 Return get_value_for_expr of first operand
3764 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3765 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3766 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3767 their non-checking counterparts.
3768 (call_may_clobber_ref_p_1): Likewise.
3769 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3770 like their non-checking counterparts.
3771 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3772 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3773 like their non-checking counterparts.
3774 (find_func_clobbers): Likewise.
3775 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3776 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3778 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3779 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3780 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3781 of base type reference as argument.
3782 (resolve_addr_in_expr): Likewise. Fix keep computation.
3783 (convert_descriptor_to_signed): Renamed to...
3784 (convert_descriptor_to_mode): ... this. For wider types convert to
3785 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3786 (typed_binop): New function.
3787 (scompare_loc_descriptor, ucompare_loc_descriptor,
3788 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3789 default to unsigned type instead of signed.
3792 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3793 (gimple_build_debug_source_bind_stat): New prototype.
3794 (gimple_build_debug_source_bind): Define.
3795 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3796 gimple_debug_source_bind_get_value,
3797 gimple_debug_source_bind_get_value_ptr,
3798 gimple_debug_source_bind_set_var,
3799 gimple_debug_source_bind_set_value): New inlines.
3800 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3801 * gimple-pretty-print.c (dump_gimple_debug): Handle
3802 GIMPLE_DEBUG_SOURCE_BIND.
3803 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3804 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3805 * tree-parloops.c (eliminate_local_variables,
3806 separate_decls_in_region): Likewise.
3807 (separate_decls_in_region_debug): Renamed from
3808 separate_decls_in_region_debug_bind. Handle
3809 gimple_debug_source_bind_p.
3810 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3812 (DECL_HAS_DEBUG_ARGS_P): Define.
3813 (struct tree_function_decl): Add has_debug_args_flag field.
3814 * tree.c (debug_args_for_decl): New variable.
3815 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3816 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3817 (rewrite_debug_stmt_uses): New function.
3818 (rewrite_stmt): Use it to rewrite debug stmt uses.
3819 * rtl.def (DEBUG_PARAMETER_REF): New.
3820 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3821 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3822 DEBUG_PARAMETER_REF.
3823 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3824 * print-rtl.c (print_rtx): Likewise.
3825 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3826 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3827 debug stmts in the first bb.
3828 * tree-inline.c (remap_ssa_name): If remapping default def
3829 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3830 a source bind debug stmt.
3831 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3832 (maybe_move_debug_stmts_to_successors): Likewise.
3833 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3834 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3835 debug args vector from old_decl to new_decl.
3836 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3837 or modified parameters, add debug bind stmts before call
3838 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3839 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3840 on DECL_DEBUG_EXPRs from debug args vector.
3841 (expand_debug_source_expr): New function.
3842 (expand_debug_locations): Use it for source bind insns.
3843 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3844 * var-tracking.c (prepare_call_arguments): Add debug args
3845 to call_arguments if any.
3846 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3847 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3848 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3849 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3850 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3851 (gen_subprogram_die): Handle parameters identified by
3852 DEBUG_PARAMETER_REF.
3854 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3856 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3857 * doc/install.texi (Configuration): Document --with-tls.
3858 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3859 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3860 (arm_tls_descseq_addr): New.
3861 (legitimize_tls_address): Add tlsdesc support.
3862 (arm_cannot_copy_insn_p): Check for tlscall.
3863 (arm_emit_tls_decoration): Likewise.
3864 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3865 (OPTION_DEFAULT_SPECS): Add with-tls support.
3866 * config/arm/arm.md (R1_REGNUM): Define.
3868 * config/arm/arm.opt (tls_type): New enumeration type and values.
3869 (mtls-dialect): New switch.
3870 * config/arm/arm-opts.h (enum tls_type): New.
3872 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3874 * attribs.c (register_attribute): Added assert to check that all
3875 attribute specs are registered with a name that is not empty and
3876 does not start with '_'.
3877 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3878 if the function has no attributes.
3879 * tree.c (is_attribute_with_length_p): Removed.
3880 (is_attribute_p): Removed.
3881 (private_is_attribute_p): New.
3882 (private_lookup_attribute): New.
3883 (lookup_attribute): Removed.
3884 (lookup_ident_attribute): New.
3885 (remove_attribute): Require the first argument to be in the form
3886 'text', not '__text__'. Updated asserts.
3887 (merge_attributes): Use lookup_ident_attributes instead of
3889 (merge_dllimport_decl_attributes): Use remove_attribute.
3890 (attribute_list_contained): Likewise.
3891 (attribute_list_equal): Immediately return 1 if the arguments are
3893 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3894 'int'. Require the first argument to be in the form 'text', not
3895 '__text__'. Require the second argument to be an identifier.
3896 (lookup_attribute): Made inline. Require the first argument to be
3897 in the form 'text', not '__text__'.
3898 (private_is_attribute_p, private_lookup_attribute): New.
3901 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3903 * builtins.c: Add sync_ or SYNC__ to builtin names.
3904 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3905 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3907 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3910 * config/avr/avr.md (extzv): New expander.
3912 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3913 * config/avr/constraints.md (C04): New constraint.
3914 * doc/md.texi (Machine Constraints): Document it.
3916 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3919 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3920 unsignedp argument instead of 1 for clrsb_optab.
3921 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3922 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3923 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3924 * optabs.c (widen_leading): Call widen_operand and expand_unop
3925 with 0 as unsignedp argument instead of 1 for clrsb_optab.
3926 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3928 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3930 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3932 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3934 * gensupport.c (add_define_attr): New static function.
3935 (is_predicable): Allow multi-alternative lists for the "predicable"
3937 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3938 (process_one_cond_exec): Call alter_attrs_for_insn.
3939 * doc/md.texi (Defining Attributes): Mention some standard names.
3940 (Conditional Execution): Update documentation for "predicable".
3942 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3943 __builtin_clrsbll): Document.
3944 * doc/rtl.texi (clrsb): New entry.
3945 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3946 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3947 (expand_unop): Handle clrsb_optab.
3948 (init_optabs): Initialize it.
3949 * optabs.h (enum optab_index): New entry OTI_clrsb.
3950 (clrsb_optab): Define.
3951 * genopinit.c (optabs): Add an entry for it.
3952 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3953 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3954 BUILT_IN_CLRSBLL): New.
3955 * rtl.def (CLRSB): New code.
3956 * dwarf2out.c (mem_loc_descriptor): Handle it.
3957 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3958 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3960 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3961 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3962 (__ctzDI2): Move declaration.
3963 * config/bfin/bfin.md (clrsbsi2): New expander.
3964 (signbitssi2): Use the CLRSB rtx.
3965 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3966 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3968 2011-06-21 Richard Guenther <rguenther@suse.de>
3970 * ipa-inline-transform.c (inline_transform): Fix previous change.
3972 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
3974 PR tree-optimization/49478
3975 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3976 with constant operand.
3978 2011-06-21 Richard Guenther <rguenther@suse.de>
3980 * ipa-inline-transform.c (inline_transform): Fix typo.
3982 2011-06-21 Richard Guenther <rguenther@suse.de>
3984 PR tree-optimization/49483
3985 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3986 VIEW_CONVERT_EXPR conversions.
3988 2011-06-21 Joseph Myers <joseph@codesourcery.com>
3990 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3991 * config/avr/avr-tables.opt: New file (generated).
3992 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3993 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3995 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3996 (avr_option_override): Don't process -mmcu= argument here. Set
3997 avr_current_device using avr_mcu_index.
3998 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3999 * config/avr/avr.opt (mmcu=): Use Enum.
4000 * config/avr/t-avr (avr-devices.o): Update dependencies.
4001 ($(srcdir)/config/avr/avr-tables.opt): New.
4002 * target.def (help): Remove.
4003 * doc/tm.texi.in (TARGET_HELP): Remove.
4004 * doc/tm.texi: Regenerate.
4005 * opts.c: Don't include target.h.
4006 (common_handle_option): Don't call targetm.help.
4007 * system.h (TARGET_HELP): Poison.
4008 * Makefile.in (opts.o): Update dependencies.
4010 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4012 * config/usegld.h: New file.
4013 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
4014 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
4015 (LIB_SPEC): Likewise. Search /lib.
4016 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
4017 (RDYNAMIC_SPEC): Handle GNU ld.
4018 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
4020 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
4021 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
4022 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
4023 (STACK_CHECK_STATIC_BUILTIN): Define.
4024 * config/sol2.opt (compat-bsd): Remove.
4025 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
4026 * config/sol2-bi.h: New file.
4027 * config/sol2-gld.h: Remove.
4028 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
4029 (NO_DBX_BNSYM_ENSYM): Remove.
4030 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4031 (STACK_CHECK_STATIC_BUILTIN): Remove.
4032 Test USE_GLD instead of TARGET_GNU_LD.
4033 * config/i386/sol2-10.h: Rename to ...
4034 * config/i386/sol2-bi.h .. this.
4035 (SUBTARGET_EXTRA_SPECS): Redefine.
4036 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
4037 (MULTILIB_DEFAULTS): Remove.
4038 (DEFAULT_ARCH32_P): Define.
4039 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
4040 (ARCH64_SUBDIR): Define.
4041 Test USE_GLD instead of TARGET_GNU_LD.
4042 (I386_EMULATION): Rename to ...
4043 (ARCH32_EMULATION): ... this.
4044 (X86_64_EMULATION): Rename to ...
4045 (ARCH64_EMULATION): ... this.
4046 (TARGET_LD_EMULATION): Remove.
4047 (LINK_ARCH_SPEC): Remove.
4048 * config/i386/sol2-gas.h: Remove.
4049 * config/i386/t-sol2-10: Rename to ...
4050 * config/i386/t-sol2-64: ... this.
4051 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
4052 (AS_SPARC64_FLAG): Define.
4053 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
4054 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
4055 depending on TARGET_CPU_DEFAULT.
4056 (CPP_CPU_SPEC): Redefine.
4057 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
4058 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
4059 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
4060 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
4061 ASM_ARCH_DEFAULT_SPEC): Redefine.
4062 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4063 LINK_ARCH_DEFAULT_SPEC.
4064 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
4065 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
4066 (ARCH64_SUBDIR): Define.
4067 (LINK_ARCH64_SPEC): Redefine.
4068 (CC1_SPEC): Redefine.
4069 (OPTION_DEFAULT_SPECS): Redefine.
4070 (MULTILIB_DEFAULTS): Define.
4071 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
4072 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
4073 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
4074 (NO_DBX_BNSYM_ENSYM): Remove.
4075 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4076 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
4077 (TARGET_ASM_NAMED_SECTION): Likewise.
4078 (STACK_CHECK_STATIC_BUILTIN): Remove.
4079 * config/sparc/sol2-bi.h: Remove.
4080 * config/sparc/sol2-gas-bi.h: Remove.
4081 * config/sparc/sol2-gas.h: Remove.
4082 * config/sparc/sol2-gld-bi.h: Remove.
4083 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
4085 (*-*-solaris2*): ... here.
4087 2011-06-21 Christian Bruel <christian.bruel@st.com>
4090 * ipa-inline.c (can_inline_edge_p): Check
4091 !DECL_DISREGARD_INLINE_LIMITS.
4093 2011-06-21 Christian Bruel <christian.bruel@st.com>
4096 * cgraphunit.c (process_function_and_variable_attributes): warn when
4097 always_inline functions that are not inline.
4098 * ipa-inline-transform.c (inline_transform): Always call
4100 * tree-inline.c (tree_inlinable_function_p): Use error instead
4102 (expand_call_inline): Likewise.
4104 2011-06-21 Jakub Jelinek <jakub@redhat.com>
4106 * Makefile.in (dg_target_exps): Set.
4107 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
4108 instead of 7, try to divide it more evenly.
4110 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
4113 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
4114 (avx256_split_unaligned_store): New definition.
4115 (ix86_option_override_internal): Enable avx256 unaligned load/store
4116 splitting only when avx256_split_unaligned_load/store is set.
4118 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
4120 * regrename.c (scan_rtx_reg): Handle the case where we write to an
4121 open chain in a smaller mode without failing the entire block.
4123 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
4126 * combine.c (cant_combine_insn_p): Don't check zero/sign
4127 extended hard registers.
4129 2011-06-21 Alan Modra <amodra@gmail.com>
4131 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4132 CONST high part large-toc address.
4133 (rs6000_tls_referenced_p): Make static.
4134 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
4136 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
4139 * combine.c (cant_combine_insn_p): Check zero/sign extended
4142 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4145 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
4146 one of the operands is a register.
4148 2011-06-20 Kai Tietz <ktietz@redhat.com>
4150 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
4151 operations in combination with binary and.
4153 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
4155 * regrename.c (do_replace): Don't update notes.
4157 2011-06-20 Alan Modra <amodra@gmail.com>
4159 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
4160 of toc-relative address in CONST.
4161 (rs6000_delegitimize_address): Recognize changed address.
4162 (rs6000_legitimize_reload_address): Likewise.
4163 (rs6000_emit_move): Don't force these constants to memory.
4164 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
4165 toc-relative address in CONST.
4166 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
4167 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
4169 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
4171 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
4172 (count_trailing_zeros): Likewise.
4174 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
4177 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
4178 .init_array can be used with .ctors on targets.
4179 * configure: Regenerated.
4181 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
4183 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4184 if the element type is volatile.
4186 2011-06-18 Jan Hubicka <jh@suse.cz>
4188 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4190 (lto_symtab_resolve_can_prevail_p): Likewise.
4191 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
4192 * cgraphbuild.c (record_reference): Remove extra body alias code.
4193 (mark_load): Likewise.
4194 (mark_store): Likewise.
4195 * cgraph.h (varpool_node): Remove extra_name filed;
4196 add alias_of and extraname_alias.
4197 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
4198 (varpool_alias_aliased_node): New inline function.
4199 (varpool_variable_node): New function.
4200 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
4201 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
4202 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
4203 (input_varpool_node): Likewise.
4204 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
4205 (varpool_externally_visible_p): Remove extra body alias code.
4206 (function_and_variable_visibility): Likewise.
4207 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
4208 (ipa_pta_execute): Use it.
4209 * varpool.c (varpool_remove_node): Remove extra name alias code.
4210 (varpool_mark_needed_node): Likewise.
4211 (varpool_analyze_pending_decls): Analyze aliases.
4212 (assemble_aliases): New functoin.
4213 (varpool_assemble_decl): Use it.
4214 (varpool_create_variable_alias): New function.
4215 (varpool_extra_name_alias): Rewrite.
4216 (varpool_for_node_and_aliases): New function.
4218 2011-06-18 Jakub Jelinek <jakub@redhat.com>
4221 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
4222 last_arg_constant and last argument doesn't match its predicate,
4223 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
4224 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
4225 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
4226 spelling of error message.
4227 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
4228 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
4229 const_0_to_255_operand instead of const_int_operand.
4232 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4234 * config/i386/sse.md (blendbits): Remove mode attribute.
4235 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4236 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4237 Check integer value of operand 3 in insn constraint.
4239 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
4241 PR rtl-optimization/48542
4242 * reload.c (find_equiv_reg): Stop looking when finding a
4244 * reload1.c (reload_as_needed): Invalidate all reload
4245 registers when crossing a setjmp-type call.
4247 2011-06-16 Jeff Law <law@redhat.com>
4249 * tree-ssa-threadupdate.c (struct redirection_data): New field
4251 (THREAD_TARGET2): Define.
4252 (redirection_data_eq): Also check that the intermediate edge is equal.
4253 (lookup_redirection_data): Drop useless argument. Extract the
4254 outgoing_edge and intermediate edge from E. Callers updated.
4255 (copy_phi_args, update_destination_phis): New functions.
4256 (fix_duplicate_block_edges): Likewise.
4257 (create_edge_and_update_destination_phis): Duplicate all the edges
4258 hung off e->aux. Use copy_phi_args.
4259 (create_duplicates): Use fix_duplicate_block_edges.
4260 (fixup_template_block): Likewise.
4261 (redirect_edges): If necessary, redirect the joiner block's incoming
4262 edge to the duplicate of the joiner block.
4263 (thread_block): Don't muck up loops when threading through a joiner
4265 (thread_through_loop_header): Handle threading through a joiner block.
4266 (mark_threaded_blocks, register_jump_thread): Likewise.
4267 * tree-flow.h (register_jump_thread): Add new argument. Callers
4269 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
4270 (thread_across_edge): Handle threading through a joiner block.
4272 2011-06-16 Martin Jambor <mjambor@suse.cz>
4274 PR tree-optimization/49343
4275 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
4276 calculate offset, provide 2nd operand for the new COMPONENT_REF.
4278 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
4280 * config/darwin-protos.h (machopic_select_rtx_section): Move to
4281 inside RTX_CODE ifdef.
4283 2011-06-16 Tom de Vries <tom@codesourcery.com>
4286 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
4287 Disallow NULL pointer for pointer arithmetic.
4289 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4293 2011-06-10 Wei Guozhi <carrot@google.com>
4296 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4297 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4298 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4300 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4302 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4303 (arm_legitimate_ldrd_p): New prototype.
4304 (arm_output_ldrd): New prototype.
4305 * config/arm/arm.c (arm_check_ldrd_operands): New function.
4306 (arm_legitimate_ldrd_p): New function.
4307 (arm_output_ldrd): New function.
4309 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
4312 * doc/tm.texi.in: Update Copyright date.
4313 * doc/tm.texi: Regenerate.
4314 * targhooks.c (default_setup_incoming_varargs): Replace
4315 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4316 (default_pretend_outgoing_varargs_named): Likewise.
4317 (hook_pass_by_reference_must_pass_in_stack): Likewise.
4318 (hook_callee_copies_named): Likewise.
4319 (default_function_arg_advance): Likewise.
4320 (default_function_arg): Likewise.
4321 (default_function_incoming_arg): Likewise.
4322 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4323 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4324 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4325 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4326 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4327 * targhooks.h (default_setup_incoming_varargs): Likewise.
4328 (default_pretend_outgoing_varargs_named): Likewise.
4329 (hook_pass_by_reference_must_pass_in_stack): Likewise.
4330 (hook_callee_copies_named): Likewise.
4331 (default_function_arg_advance): Likewise.
4332 (default_function_arg): Likewise.
4333 (default_function_incoming_arg): Likewise.
4334 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4335 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4336 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4337 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4338 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4339 * target.def (pass_by_reference): Likewise.
4340 (setup_incoming_varargs, strict_argument_naming): Likewise.
4341 (pretend_outgoing_varargs_named, callee_copies): Likewise.
4342 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
4343 (function_incoming_arg): Likewise.
4344 * target.h: Don't include "tm.h" .
4345 (cumulative_args_t): New typedef.
4346 [GCC_TM_H] (get_cumulative_args): New static inline function.
4347 [GCC_TM_H] (pack_cumulative_args): Likewise.
4348 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
4349 argument type with cumulative_args_t.
4350 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
4351 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
4352 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4353 (frv_arg_partial_bytes, frv_function_arg): Likewise.
4354 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
4355 (frv_function_arg_1): Likewise.
4356 * config/s390/s390.c (s390_pass_by_reference): Likewise.
4357 (s390_function_arg_advance, s390_function_arg): Likewise.
4358 * config/m32c/m32c.c (m32c_function_arg): Likewise.
4359 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
4360 (m32c_strict_argument_naming): Likewise.
4361 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
4362 (spu_function_arg_advance): Likewise.
4363 (spu_setup_incoming_varargs): Likewise. Make static.
4364 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
4366 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
4367 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4368 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
4369 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
4370 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
4371 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
4372 (mep_pass_by_reference, mep_function_arg): Likewise.
4373 (mep_function_arg_advance): Likewise.
4374 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4375 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
4376 (m32r_function_arg, m32r_function_arg_advance): Likewise.
4377 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
4378 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4379 (ix86_function_arg, ix86_pass_by_reference): Likewise.
4380 (ix86_setup_incoming_varargs): Likewise.
4381 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4382 (sh_strict_argument_naming): Likewise.
4383 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
4384 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
4385 (sh_function_arg_advance, sh_function_arg): Likewise.
4386 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4387 (pdp11_function_arg_advance): Likewise.
4388 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4390 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
4391 * config/avr/avr.c (avr_function_arg): Likewise.
4392 (avr_function_arg_advance): Likewise.
4393 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4394 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
4395 (xtensa_function_arg_1): Likewise.
4396 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
4398 (xstormy16_function_arg): Likewise.
4399 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4400 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4401 (fr30_function_arg_advance): Likewise.
4402 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4403 (lm32_function_arg, lm32_function_arg_advance): Likewise.
4404 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4405 (moxie_function_arg, moxie_function_arg_advance): Likewise.
4406 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
4407 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4408 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
4409 (cris_function_arg, cris_function_incoming_arg): Likewise.
4410 (cris_function_arg_advance, cris_function_arg_1): Likewise.
4411 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4412 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
4413 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
4414 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4415 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
4416 (mn10300_arg_partial_bytes): Likewise.
4417 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4418 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
4419 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
4420 (ia64_function_arg_1): Likewise.
4421 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4422 (m68k_function_arg): Likewise.
4423 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
4424 (rs6000_function_arg, setup_incoming_varargs): Likewise.
4425 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
4426 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
4427 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
4428 (picochip_arg_advance): Likewise.
4429 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4430 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
4431 (mcore_function_arg_advance): Likewise.
4432 * config/score/score.c (score_pass_by_reference): Likewise.
4433 (score_function_arg_advance): Likewise.
4434 (score_arg_partial_bytes): Likewise. Make static.
4435 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
4436 * config/arm/arm.c (arm_arg_partial_bytes): Replace
4437 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4438 (arm_function_arg, arm_function_arg_advance): Likewise.
4439 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
4440 * config/pa/pa.c (pa_pass_by_reference): Likewise.
4441 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
4442 (pa_function_arg): Likewise.
4443 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
4444 (mips_function_arg, mips_function_arg_advance): Likewise.
4445 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
4446 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
4447 * config/vax/vax.c (vax_function_arg): Likewise.
4448 (vax_function_arg_advance): Likewise.
4449 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4450 (h8300_function_arg_advance): Likewise.
4451 * config/v850/v850.c (v850_pass_by_reference): Likewise.
4452 (v850_strict_argument_naming, v850_function_arg): Likewise.
4453 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
4454 (v850_setup_incoming_varargs): Likewise.
4455 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4456 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
4457 (mmix_function_arg, mmix_pass_by_reference): Likewise.
4458 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
4460 * config/bfin/bfin.c (setup_incoming_varargs): Replace
4461 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4462 (bfin_function_arg_advance, bfin_function_arg): Likewise.
4463 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
4464 * calls.c (emit_call_1): Change type of args_so_far to
4465 cumulative_args_t. Changed all callers.
4466 (initialize_argument_information): Likewise.
4467 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
4468 * dse.c (get_call_args): Likewise.
4469 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4470 * function.c (pass_by_reference, reference_callee_copied): Likewise.
4471 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
4472 New member args_so_far_v. Changed all users.
4473 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
4474 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4475 * config/mips/mips.c (mips_output_args_xfer): Likewise.
4476 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4477 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4478 * config/microblaze/microblaze.c (microblaze_expand_prologue):
4480 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
4481 m32r_pass_by_reference.
4483 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
4485 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
4486 argument to be a VEC of statements.
4487 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
4488 assert that pattern statements have to have their vector type set.
4489 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
4490 Change the first argument to be a VEC of statements. Update
4492 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4493 (vect_handle_widen_mult_by_const): New function.
4494 (vect_recog_widen_mult_pattern): Change the first argument to be a
4495 VEC of statements. Update documentation. Check that the constant is
4496 INTEGER_CST. Support multiplication by a constant that fits an
4497 intermediate type - call vect_handle_widen_mult_by_const.
4498 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4499 call. Handle additional pattern statements if necessary.
4501 2011-06-16 Nick Clifton <nickc@redhat.com>
4504 * config.gcc: Set cpu_type to v850 for any V850 architecture.
4505 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4506 md_file, extra_modes, out_file and extra_options are these are all
4507 deduced from cpu_type.
4509 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
4511 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4512 truncation mask to 63.
4514 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
4518 * longlong.h: Add AVR support:
4519 (count_leading_zeros): New macro.
4520 (count_trailing_zeros): New macro.
4521 (COUNT_LEADING_ZEROS_0): New macro.
4522 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4523 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4524 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4525 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4526 (LIB2FUNCS_EXCLUDE): Add _clz.
4527 * config/avr/libgcc.S (XCALL): Move up in file.
4528 (XJMP): New C Macro.
4529 (DEFUN): New asm macro.
4530 (ENDF): New asm macro.
4531 (__ffssi2): New function.
4532 (__ffshi2): New function.
4533 (__loop_ffsqi2): New function.
4534 (__ctzsi2): New function.
4535 (__ctzhi2): New function.
4536 (__clzdi2): New function.
4537 (__clzsi2): New function.
4538 (__clzhi2): New function.
4539 (__paritydi2): New function.
4540 (__paritysi2): New function.
4541 (__parityhi2): New function.
4542 (__parityqi2): New function.
4543 (__popcounthi2): New function.
4544 (__popcountsi2): New function.
4545 (__popcountdi2): New function.
4546 (__popcountqi2): New function.
4547 (__bswapsi2): New function.
4548 (__bswapdi2): New function.
4549 (__ashldi3): New function.
4550 (__ashrdi3): New function.
4551 (__lshrdi3): New function.
4552 Fix suspicous lines.
4554 2011-06-16 Richard Guenther <rguenther@suse.de>
4556 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4558 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4560 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4561 equality compares against zero for the lower bit.
4563 2011-06-16 Jakub Jelinek <jakub@redhat.com>
4565 PR tree-optimization/49419
4566 * tree-vrp.c (execute_vrp): Call init_range_assertions
4567 before estimate_numbers_of_iterations, call
4568 free_number_of_iterations_estimates before calling
4569 remove_range_assertions.
4571 2011-06-16 Revital Eres <revital.eres@linaro.org>
4573 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4574 (struct partial_schedule): Add rows_length field.
4575 (verify_partial_schedule): Check rows_length.
4576 (ps_insert_empty_row): Handle rows_length.
4577 (create_partial_schedule): Likewise.
4578 (free_partial_schedule): Likewise.
4579 (reset_partial_schedule): Likewise.
4580 (create_ps_insn): Remove rest_count argument.
4581 (remove_node_from_ps): Update rows_length.
4582 (add_node_to_ps): Update rows_length and call create_ps_insn
4583 without passing row_rest_count.
4584 (rotate_partial_schedule): Update rows_length.
4586 2011-06-16 Revital Eres <revital.eres@linaro.org>
4588 * ddg.c (add_intra_loop_mem_dep): New function.
4589 (build_intra_loop_deps): Call it.
4591 2011-06-13 Jeff Law <law@redhat.com>
4593 * df-problems.c (df_lr_local_compute): Manually CSE
4594 PIC_OFFSET_TABLE_REGNUM.
4595 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4596 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4598 2011-06-13 Jan Hubicka <jh@suse.cz>
4600 * cgraphunit.c (handle_alias_pairs): New function.
4601 (cgraph_finalize_compilation_unit): Use it.
4602 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4603 as externally visible.
4605 2011-06-15 Richard Guenther <rguenther@suse.de>
4607 * expr.c (expand_expr_real_2): Reduce all integral types to
4609 (expand_expr_real_1): Likewise.
4611 2011-06-15 Martin Jambor <mjambor@suse.cz>
4613 PR tree-optimization/48613
4614 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4615 ipa_node_params_vector is NULL.
4617 2011-06-15 Jakub Jelinek <jakub@redhat.com>
4620 * dwarf2out.c (dw_loc_list_node): Add force field.
4621 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4622 location in the list, even if it is modified before first real insn.
4623 (output_loc_list): Emit empty ranges with force flag set.
4624 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4626 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
4629 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4630 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4631 above a fence. Update comments.
4632 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4633 placed just above it. Do not allow NULL place_to_insert.
4635 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
4637 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4638 (slpeel_tree_peel_loop_to_edge): Don't call
4639 remove_dead_stmts_from_loop.
4640 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4641 remove irrelevant pattern statements. For irrelevant statements
4642 check if it is the last statement of a detected pattern, use
4643 corresponding pattern statement instead.
4644 (destroy_loop_vec_info): No need to remove pattern statements,
4645 only free stmt_vec_info.
4646 (vect_transform_loop): For irrelevant statements check if it is
4647 the last statement of a detected pattern, use corresponding
4648 pattern statement instead.
4649 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4650 pattern statements. Set basic block for the new statement.
4651 (vect_pattern_recog): Update documentation.
4652 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4653 operands of pattern statements.
4654 (vectorizable_call): Fix printing. In case of a pattern statement
4655 use the lhs of the original statement when creating a dummy
4656 statement to replace the original call.
4657 (vect_analyze_stmt): For irrelevant statements check if it is
4658 the last statement of a detected pattern, use corresponding
4659 pattern statement instead.
4660 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4661 statements use gsi of the original statement.
4663 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4665 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4666 common/common-target-def.h.
4667 * target.def (default_target_flags, handle_option,
4668 supports_split_stack, optimization_table, init_struct,
4669 except_unwind_info, unwind_tables_default, have_named_sections):
4670 Move to common/common-target.def.
4671 * target.h (enum opt_levels, struct default_options): Move to
4672 common/common-target.h.
4673 * targhooks.c (default_except_unwind_info,
4674 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4675 default_target_handle_option, empty_optimization_table): Move to
4676 common/common-targhooks.c.
4677 * targhooks.h (default_except_unwind_info,
4678 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4679 default_target_handle_option, empty_optimization_table): Move to
4680 common/common-targhooks.h.
4681 * common/common-target-def.h: Include common/common-targhooks.h.
4682 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4684 * common/common-target.def (handle_option, option_init_struct,
4685 option_optimization_table, default_target_flags,
4686 except_unwind_info, supports_split_stack, unwind_tables_default,
4687 have_named_sections): Move from target.def.
4688 (HOOK_PREFIX): Undefine at end of file.
4689 * common/common-target.h: Include input.h.
4690 (enum opt_levels, struct default_options): Move from target.h.
4691 * common/common-targhooks.c, common/common-targhooks.h: New.
4692 * config.gcc (target_has_targetm_common): Default to yes.
4693 (moxie*): Set target_has_targetm_common=no.
4694 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4695 * doc/tm.texi: Regenerate.
4696 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4697 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4698 (GCC_OBJS): Remove vec.o.
4699 (OBJS): Remove hooks.o and vec.o.
4700 (OBJS-libcommon-target): Add vec.o, hooks.o and
4701 common/common-targhooks.o.
4702 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4703 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4704 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4705 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4706 Update dependencies.
4707 (common/common-targhooks.o): New.
4708 * common/config/default-common.c: Include tm.h. Add FIXME comment.
4709 * common/config/pa/pa-common.c: Include more headers. Take
4710 copyright dates from pa.c.
4711 (pa_option_optimization_table, pa_handle_option,
4712 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4713 TARGET_HANDLE_OPTION): Move from pa.c.
4714 * common/config/alpha/alpha-common.c,
4715 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4716 common/config/bfin/bfin-common.c,
4717 common/config/cris/cris-common.c,
4718 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4719 common/config/h8300/h8300-common.c,
4720 common/config/i386/i386-common.c,
4721 common/config/ia64/ia64-common.c,
4722 common/config/iq2000/iq2000-common.c,
4723 common/config/lm32/lm32-common.c,
4724 common/config/m32c/m32c-common.c,
4725 common/config/m32r/m32r-common.c,
4726 common/config/m68k/m68k-common.c,
4727 common/config/mcore/mcore-common.c,
4728 common/config/mep/mep-common.c,
4729 common/config/microblaze/microblaze-common.c,
4730 common/config/mips/mips-common.c,
4731 common/config/mmix/mmix-common.c,
4732 common/config/mn10300/mn10300-common.c,
4733 common/config/pdp11/pdp11-common.c,
4734 common/config/picochip/picochip-common.c,
4735 common/config/rs6000/rs6000-common.c,
4736 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4737 common/config/score/score-common.c, common/config/sh/sh-common.c,
4738 common/config/sparc/sparc-common.c,
4739 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4740 common/config/vax/vax-common.c,
4741 common/config/xstormy16/xstormy16-common.c,
4742 common/config/xtensa/xtensa-common.c: New.
4743 * config/alpha/alpha.c: Include common/common-target.h.
4744 (alpha_option_optimization_table, alpha_handle_option,
4745 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4746 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4747 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4748 * config/arm/arm.c (arm_option_optimization_table,
4749 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4750 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4752 * config/avr/avr.c (avr_option_optimization_table,
4753 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4755 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4756 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4757 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4758 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4759 * config/cris/cris.c (cris_option_optimization_table,
4760 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4761 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4763 * config/fr30/fr30.c (fr30_option_optimization_table,
4764 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4766 * config/frv/frv.c (frv_option_optimization_table,
4767 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4768 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4769 * config/h8300/h8300.c (h8300_option_optimization_table,
4770 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4771 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4772 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4773 * config/i386/i386.c: Include common/common-target.h.
4774 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4775 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4776 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4777 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4778 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4779 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4780 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4781 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4782 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4783 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4784 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4785 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4786 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4787 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4788 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4789 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4790 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4791 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4792 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4793 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4794 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4795 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4796 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4797 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4798 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4799 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4800 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4801 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4802 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4803 ix86_option_optimization_table, ix86_option_init_struct,
4804 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4805 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4806 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4808 * config/i386/t-i386 (i386.o): Update dependencies.
4809 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4810 * config/ia64/ia64.c (ia64_option_optimization_table,
4811 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4812 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4813 ia64_handle_option): Move to ia64-common.c.
4814 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4815 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4816 * config/lm32/lm32.c (lm32_option_optimization_table,
4817 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4819 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4821 * config/m32r/m32r.c (m32r_option_optimization_table,
4822 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4823 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4824 m32r_handle_option): Move to m32r-common.c.
4825 (m32r_memory_move_cost): Remove comment referring to
4826 TARGET_HANDLE_OPTION.
4827 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4828 Move to m68k-common.c.
4829 * config/mcore/mcore.c (mcore_option_optimization_table,
4830 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4831 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4832 * config/mep/mep.c (mep_option_optimization_table,
4833 mep_handle_option, TARGET_HANDLE_OPTION,
4834 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4835 Move to mep-common.c.
4836 * config/microblaze/microblaze.c
4837 (microblaze_option_optimization_table,
4838 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4839 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4840 * config/mips/mips.c (mips_handle_option,
4841 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4842 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4844 * config/mmix/mmix.c (mmix_option_optimization_table,
4845 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4846 Move to mmix-common.c.
4847 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4848 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4849 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4850 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4851 * config/pa/pa.c: Include common/common-target.h.
4852 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4853 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4854 pa_handle_option): Move to pa-common.c.
4855 (pa_option_override): Use targetm_common.except_unwind_info.
4856 (pa_asm_output_mi_thunk, pa_function_section): Use
4857 targetm_common.have_named_sections.
4858 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4859 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4860 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4861 pdp11_handle_option, pdp11_option_init_struct): Move to
4863 * config/picochip/picochip.c (picochip_option_optimization_table,
4864 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4865 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4866 * config/rs6000/rs6000.c: Include common/common-target.h.
4867 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4868 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4869 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4870 rs6000_handle_option): Move to rs6000-common.c.
4871 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4872 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4873 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4874 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4875 * config/s390/s390.c (processor_flags_table,
4876 s390_option_optimization_table, s390_option_init_struct,
4877 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4878 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4879 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4880 * config/s390/s390.h (processor_flags_table): Declare.
4881 * config/score/score.c (score_option_optimization_table,
4882 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4883 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4884 score_handle_option): Move to score-common.c.
4885 * config/sh/sh.c (sh_option_optimization_table,
4886 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4887 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4888 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4889 * config/sparc/sparc.c: Include common/common-target.h.
4890 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4891 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4892 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4893 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4894 spu_option_init_struct): Move to spu-common.c.
4895 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4896 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4897 * config/v850/v850.c (small_memory_physical_max,
4898 v850_handle_memory_optionn v850_handle_option,
4899 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4900 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4902 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4903 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4904 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4905 Move to xtensa-common.c.
4906 * cfglayout.c: Include common/common-target.h.
4907 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4908 * cfgrtl.c: Include common/common-target.h.
4909 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4910 targetm_common.have_named_sections.
4911 * dbxout.c: Include common/common-target.h.
4912 (dbxout_function_end): Use targetm_common.have_named_sections.
4913 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4914 targetm_common.except_unwind_info.
4915 * dwarf2out.c: Include common/common-target.h.
4916 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4917 dwarf2out_begin_prologue, dwarf2out_frame_init,
4918 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4919 targetm_common.except_unwind_info.
4920 * except.c: Include common/common-target.h.
4921 (init_eh, finish_eh_generation,
4922 output_one_function_exception_table): Use
4923 targetm_common.except_unwind_info.
4924 (switch_to_exception_section): Use targetm_common.have_named_sections.
4925 * explow.c: Include common/common-target.h.
4926 * expr.c: Include common/common-target.h.
4927 (build_personality_function): Use targetm_common.except_unwind_info.
4928 * function.c: Include common/common-target.h.
4929 (expand_function_end): Use targetm_common.except_unwind_info.
4930 * haifa-sched.c: Include common/common-target.h.
4931 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4932 * lto-opts.c: Include common/common-target.h instead of target.h.
4933 (lto_reissue_options): Use targetm_common.handle_option.
4934 * opts.c: Include common/common-target.h.
4935 (target_handle_option): Use targetm_common.handle_option.
4936 (init_options_struct): Update comment referring to
4937 targetm.target_option.optimization. Use
4938 targetm_common.default_target_flags,
4939 targetm_common.unwind_tables_default and
4940 targetm_common.option_init_struct.
4941 (default_options_optimization): Use
4942 targetm_common.option_optimization_table.
4943 (finish_options): Use targetm_common.except_unwind_info,
4944 targetm_common.unwind_tables_default,
4945 targetm_common.have_named_sections and
4946 targetm_common.supports_split_stack.
4947 * toplev.c: Include common/common-target.h.
4948 (process_options): Use targetm_common.have_named_sections.
4949 * tree-tailcall.c: Include common/common-target.h.
4950 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4951 * tree.c: Include common/common-target.h.
4952 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4953 * varasm.c: Include common/common-target.h.
4954 (resolve_unique_section, hot_function_section,
4955 default_function_section): Use targetm_common.have_named_sections.
4957 2011-06-14 Easwaran Raman <eraman@google.com>
4959 PR rtl-optimization/44194
4960 * dse.c: Include tree-flow.h
4961 (insn_info): Add new field non_frame_wild_read.
4962 (group_info): Add new fields escaped_n and escaped_p.
4963 (kill_on_calls): New variable.
4964 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4965 (dse_step0): Initialize kill_on_calls.
4966 (can_escape): New function.
4967 (set_usage_bits): Add additional parameter; record information
4968 about escaped locations.
4969 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4970 (dse_step2_nospill): Set kill_on_calls based on
4971 group->escaped_n and group->escaped_n.
4972 (add_wild_read): Refactor into...
4973 (reset_active_stores): ... New function, and
4974 (free_read_records): ... New function.
4975 (add_non_frame_wild_read): New function.
4976 (scan_insn): Call add_non_frame_wild_read on non-const calls.
4977 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4978 (dse_step5_nospill): Call scan_reads_nospill for instructions
4979 marked as non_frame_wild_read.
4980 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4982 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4984 * common/common-target-def.h, common/common-target.def,
4985 common/common-target.h, common/config/default-common.c,
4986 common/config/pa/pa-common.c: New files.
4987 * Makefile.in (common_out_file, common_out_object_file,
4988 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4989 (OBJS-libcommon-target): Include $(common_out_object_file).
4990 (prefix.o): Update dependencies.
4991 ($(common_out_object_file), common/common-target-hooks-def.h,
4992 s-common-target-hooks-def-h): New.
4993 (s-tm-texi): Also check timestamp on common-target.def.
4994 (build/genhooks.o): Update dependencies.
4995 * config.gcc (common_out_file, target_has_targetm_common): Define.
4996 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4997 TARGET_ALWAYS_STRIP_DOTDOT.
4998 * configure.ac (common_out_object_file): Define.
4999 (common_out_file, common_out_object_file): Substitute.
5000 (common): Create directory.
5001 * configure: Regenerate.
5002 * doc/tm.texi.in (targetm_common): Document.
5003 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
5004 * doc/tm.texi: Regenerate.
5005 * genhooks.c (hook_array): Also include common/common-target.def.
5006 * prefix.c (tm.h): Don't include.
5007 (common/common-target.h): Include.
5008 (ALWAYS_STRIP_DOTDOT): Don't define.
5009 (update_path): Use targetm_common.always_strip_dotdot instead of
5010 ALWAYS_STRIP_DOTDOT.
5011 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
5013 2011-06-14 David Li <davidxl@google.com>
5015 * passes.c (execute_function_todo): Remove TODO_dump_func.
5016 (execute_one_pass): Remove TODO_dump_func.
5017 (execute_function_dump): New function.
5018 * tree-vrp.c: Remove TODO_dump_func.
5019 * regrename.c: Remove TODO_dump_func.
5020 * fwprop.c: Remove TODO_dump_func.
5021 * tree-into-ssa.c: Remove TODO_dump_func.
5022 * tree-complex.c: Remove TODO_dump_func.
5023 * tracer.c: Remove TODO_dump_func.
5024 * tree-loop-distribution.c: Remove TODO_dump_func.
5025 * postreload-gcse.c: Remove TODO_dump_func.
5026 * postreload.c: Remove TODO_dump_func.
5027 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
5028 * tree-tailcall.c: Remove TODO_dump_func.
5029 * ipa-cp.c: Remove TODO_dump_func.
5030 * final.c: Remove TODO_dump_func.
5031 * tree-emutls.c: Remove TODO_dump_func.
5032 * omp-low.c: Remove TODO_dump_func.
5033 * tree-ssa-dse.c: Remove TODO_dump_func.
5034 * tree-ssa-uncprop.c: Remove TODO_dump_func.
5035 * auto-inc-dec.c: Remove TODO_dump_func.
5036 * reorg.c: Remove TODO_dump_func.
5037 * tree-ssa-copyrename.c: Remove TODO_dump_func.
5038 * tree-ssa-ccp.c: Remove TODO_dump_func.
5039 * compare-elim.c: Remove TODO_dump_func.
5040 * mode-switching.c: Remove TODO_dump_func.
5041 * modulo-sched.c: Remove TODO_dump_func.
5042 * tree-call-cdce.c: Remove TODO_dump_func.
5043 * cse.c: Remove TODO_dump_func.
5044 * web.c: Remove TODO_dump_func.
5045 * tree-stdarg.c: Remove TODO_dump_func.
5046 * lto-streamer-out.c: Remove TODO_dump_func.
5047 * tree-ssa-math-opts.c: Remove TODO_dump_func.
5048 * tree-ssa-dom.c: Remove TODO_dump_func.
5049 * tree-nrv.c: Remove TODO_dump_func.
5050 * loop-init.c: Remove TODO_dump_func.
5051 * gimple-low.c: Remove TODO_dump_func.
5052 * ipa-inline.c: Remove TODO_dump_func.
5053 * tree-ssa-sink.c: Remove TODO_dump_func.
5054 * jump.c: Remove TODO_dump_func.
5055 * ifcvt.c: Remove TODO_dump_func.
5056 * tree-ssa-loop.c: Remove TODO_dump_func.
5057 * recog.c: Remove TODO_dump_func.
5058 * dse.c: Remove TODO_dump_func.
5059 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
5060 * matrix-reorg.c: Remove TODO_dump_func.
5061 * tree-eh.c: Remove TODO_dump_func.
5062 * regmove.c: Remove TODO_dump_func.
5063 * function.c: Remove TODO_dump_func.
5064 * tree-vectorizer.c: Remove TODO_dump_func.
5065 * ipa-split.c: Remove TODO_dump_func.
5066 * gcse.c: Remove TODO_dump_func.
5067 * tree-if-conv.c: Remove TODO_dump_func.
5068 * init-regs.c: Remove TODO_dump_func.
5069 * tree-ssa-phiopt.c: Remove TODO_dump_func.
5070 * implicit-zee.c: Remove TODO_dump_func.
5071 * lower-subreg.c: Remove TODO_dump_func.
5072 * bt-load.c: Remove TODO_dump_func.
5073 * tree-dfa.c: Remove TODO_dump_func.
5074 * except.c: Remove TODO_dump_func.
5075 * emit-rtl.c: Remove TODO_dump_func.
5076 * store-motion.c: Remove TODO_dump_func.
5077 * cfgexpand.c: Remove TODO_dump_func.
5078 * tree-cfgcleanup.c: Remove TODO_dump_func.
5079 * cfgcleanup.c: Remove TODO_dump_func.
5080 * tree-ssa-pre.c: Remove TODO_dump_func.
5081 * tree-sra.c: Remove TODO_dump_func.
5082 * tree-mudflap.c: Remove TODO_dump_func.
5083 * tree-ssa-copy.c: Remove TODO_dump_func.
5084 * cfglayout.c: Remove TODO_dump_func.
5085 * tree-ssa-forwprop.c: Remove TODO_dump_func.
5086 * tree-ssa-dce.c: Remove TODO_dump_func.
5087 * ira.c: Remove TODO_dump_func.
5088 * tree-ssa.c: Remove TODO_dump_func.
5089 * integrate.c: Remove TODO_dump_func.
5090 * tree-optimize.c: Remove TODO_dump_func.
5091 * tree-ssa-phiprop.c: Remove TODO_dump_func.
5092 * tree-object-size.c: Remove TODO_dump_func.
5093 * combine.c: Remove TODO_dump_func.
5094 * bb-reorder.c: Remove TODO_dump_func.
5095 * cprop.c: Remove TODO_dump_func.
5096 * var-tracking.c: Remove TODO_dump_func.
5097 * tree-profile.c: Remove TODO_dump_func.
5098 * tree-vect-generic.c: Remove TODO_dump_func.
5099 * reg-stack.c: Remove TODO_dump_func.
5100 * sched-rgn.c: Remove TODO_dump_func.
5101 * tree-ssa-structalias.c: Remove TODO_dump_func.
5102 * tree-switch-conversion.c: Remove TODO_dump_func.
5103 * tree-cfg.c: Remove TODO_dump_func.
5104 * tree-ssa-reassoc.c: Remove TODO_dump_func.
5105 * combine-stack-adj.c: Remove TODO_dump_func.
5106 * dce.c: Remove TODO_dump_func.
5107 * tree-ssanames.c: Remove TODO_dump_func.
5108 * regcprop.c: Remove TODO_dump_func.
5110 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
5113 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
5114 and properly handle result not in Pmode.
5116 2011-06-14 Robert Millan <rmh@gnu.org>
5118 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
5119 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
5122 * config/i386/kfreebsd-gnu64.h: New file.
5123 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
5124 with `i386/kfreebsd-gnu64.h'.
5126 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
5127 (GNU_USER_LINK_EMULATION64): New macros.
5128 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
5129 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
5130 of hardcoding `elf_i386' and `elf_x86_64'.
5132 2011-06-14 Nick Clifton <nickc@redhat.com>
5135 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
5138 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
5140 2011-06-14 Jakub Jelinek <jakub@redhat.com>
5143 * tree.h (DECL_NONSHAREABLE): Define.
5144 (struct tree_decl_common): Change decl_common_unused to
5145 decl_nonshareable_flag.
5146 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
5147 Ignore vars with DECL_NONSHAREABLE bit set.
5148 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
5149 on stores to automatic aggregate vars.
5151 PR rtl-optimization/49390
5153 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
5155 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5158 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
5159 Tom de Vries <tom@codesourcery.com>
5162 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
5163 Document changed semantics.
5164 (max_stmt_executions, max_stmt_executions_int): Declare.
5165 * tree-data-ref.c (estimated_loop_iterations)
5166 (estimated_loop_iterations_int): Move functions...
5167 * tree-ssa-loop-niter.c (estimated_loop_iterations)
5168 (estimated_loop_iterations_int): here.
5169 (record_estimate): Change nb_iterations_upper_bound and
5170 nb_iterations_estimate semantics.
5171 (max_stmt_executions, max_stmt_executions_int): New function.
5172 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
5173 (max_stmt_executions_tree): this.
5174 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
5175 estimated_loop_iterations_tree.
5176 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
5177 max_stmt_executions_int instead of estimated_loop_iterations_int.
5178 * predict.c (predict_loops): Idem.
5179 * tree-parloops.c (parallelize_loops): Idem.
5180 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
5181 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
5182 (init_omega_for_ddr_1): Idem.
5183 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
5184 (loop_prefetch_arrays): Idem
5185 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
5186 max_stmt_executions instead of estimated_loop_iterations.
5187 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
5188 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
5189 instead of nb_iterations_upper_bound.
5191 2011-06-13 Jan Hubicka <jh@suse.cz>
5193 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5195 2011-06-14 Richard Henderson <rth@redhat.com>
5198 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5199 (based_loc_descr): Assert it's true.
5200 (compute_frame_pointer_to_fb_displacement): Set it, rather than
5201 aborting immediately.
5203 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
5204 Mingfeng Wu <mingfeng@faraday-tech.com>
5206 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
5208 2011-06-13 Jan Hubicka <jh@suse.cz>
5210 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
5212 2011-06-13 Jan Hubicka <jh@suse.cz>
5214 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
5215 similarly to DECL_COMDAT.
5216 * cgraphunit.c (cgraph_analyze_function): Likewise.
5217 * ipa.c (function_and_variable_visibility): Likewise.
5219 2011-06-13 Jan Hubicka <jh@suse.cz>
5221 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
5222 BINFO_VIRTUALS when streaming for ltrans unit.
5224 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
5226 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
5227 (movdi_internal64): Same.
5229 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
5232 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
5233 a set of similar patterns, where the MATCH_OPERAND for the function
5234 argument is replaced with individual references to hardware registers.
5235 (save_fpregs_<mode>): Ditto
5236 (restore_gpregs_<mode>): Ditto
5237 (return_and_restore_gpregs_<mode>): Ditto
5238 (return_and_restore_fpregs_<mode>): Ditto
5239 (return_and_restore_fpregs_aix_<mode>): Ditto
5241 2011-06-13 Jan Hubicka <jh@suse.cz>
5243 * ipa-utils.c (postorder_stack): New structure.
5244 (ipa_reverse_postorder): Handle aliases.
5246 2011-06-13 Jan Hubicka <jh@suse.cz>
5248 * ipa-inline.c (reset_edge_caches): Walk aliases.
5249 (update_caller_keys): Do not test inlinability of aliases.
5250 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
5251 (do_estimate_growth): Fix typo.
5253 2011-06-13 Jan Hubicka <jh@suse.cz>
5255 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
5256 (can_remove_node_now_p): ... here; handle same comdat groups.
5257 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
5258 (inline_call): Update use of can_remove_node_now_p.
5260 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5262 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
5263 condition to disallow non-identical memory locations.
5264 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
5265 preference to bit manipulation instructions.
5267 2011-06-13 Jan Hubicka <jh@suse.cz>
5269 * cgraph.c (cgraph_for_node_thunks_and_aliases,
5270 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
5271 (nonremovable_p): New function.
5272 (cgraph_can_remove_if_no_direct_calls_p): New function.
5273 (used_from_object_file_p): New functoin.
5274 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
5275 references from aliases.
5276 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
5277 * ipa-inline.c (check_caller_edge): New function.
5278 (want_inline_function_called_once_p): Use it; accept aliases called
5280 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
5282 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5285 * config/arm/neon.md (vec_pack_trunc): Set the lengths
5286 correctly for the case with Quad vectors.
5288 2011-06-13 Jakub Jelinek <jakub@redhat.com>
5289 Ira Rosen <ira.rosen@linaro.org>
5291 PR tree-optimization/49352
5292 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
5293 all, make sure loop_use_stmt after the loop is a def stmt of a used
5294 SSA_NAME that is the only one defined inside of the loop. Don't
5295 check for COND_EXPR and GIMPLE_BINARY_RHS.
5296 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
5297 check_reduction is true.
5299 2011-06-11 Jan Hubicka <jh@suse.cz>
5302 * ipa.c (cgraph_externally_visible_p): Check resolution info.
5304 2011-06-11 Jan Hubicka <jh@suse.cz>
5307 * ipa-inline-transform.c: Include tree-pass.h
5308 (inline_transform): Set TODO_update_ssa_only_virtuals.
5309 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
5311 2011-06-11 Jan Hubicka <jh@suse.cz>
5314 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
5317 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
5319 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
5320 Take number of iterations to peel into account for equally frequent
5321 misalignment values.
5323 2011-06-11 Jan Hubicka <jh@suse.cz>
5325 * lto-streamer-out.c (produce_symtab): Stream out the newly
5326 represented aliases.
5328 2011-06-11 Jan Hubicka <jh@suse.cz>
5330 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
5332 (ipa_update_after_lto_read): Likewise.
5333 (ipa_write_node_info): Do not sream call_with_var_arguments.
5334 (ipa_read_node_info): Likewise.
5336 2011-06-11 Jan Hubicka <jh@suse.cz>
5338 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
5340 2011-06-11 Jan Hubicka <jh@suse.cz>
5342 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
5343 (lto_symtab_resolve_can_prevail_p): Likewise.
5344 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
5345 * cgraph.c (same_body_aliases_done): New global var.
5346 (cgraph_same_body_alias_1): Rename to ...
5347 (cgraph_create_function_alias): ... this one; reorg to new
5349 (cgraph_same_body_alias): Use cgraph_create_function_alias;
5350 record references when asked to.
5351 (cgraph_add_thunk): Fix formating.
5352 (cgraph_get_node): Kill same body alias code.
5353 (cgraph_node_for_asm): Likewise.
5354 (cgraph_remove_same_body_alias): Remove.
5355 (cgraph_remove_node): Kill same body alias code.
5356 (cgraph_mark_address_taken_node): Mark also the aliased function
5357 as having address taken.
5358 (dump_cgraph_node): Dump same body aliases.
5359 (cgraph_for_node_thunks_and_aliases): Update for new alias
5361 (cgraph_for_node_and_aliases): Likewise.
5362 * cgraph.h (same_body): Kll pointer.
5363 (same_body_alias): Update comment.
5364 (same_body_aliases_done): Declare.
5365 (cgraph_remove_same_body_alias): Remove declaration.
5366 (cgraph_create_function_alias): Declare.
5367 (cgraph_process_same_body_aliases): Declare.
5368 (cgraph_function_with_gimple_body_p): Check for alias.
5369 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
5370 (cgraph_alias_aliased_node): New function.
5371 (cgraph_function_node): Update for new aliases.
5372 (cgraph_function_or_thunk_node): Likewise.
5373 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
5374 (inline_call): Remove dead aliases.
5375 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
5376 name hack for same body aliases.
5377 (clone_of_p): Look through aliases.
5378 (verify_cgraph_node): Verify aliases.
5379 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
5380 (cgraph_process_same_body_aliases): New function.
5381 (process_function_and_variable_attributes): Disable weakref warning on
5383 (cgraph_analyze_functions): Handle aliases.
5384 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
5385 (assemble_thunks): Rename to ...
5386 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
5387 (cgraph_expand_function): Remove alias output code.
5388 (cgraph_output_in_order): Skip aliases.
5389 (cgraph_preserve_function_body_p): Aliases don't need preserving.
5390 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
5391 (ipa_record_reference): Do not assert on alias references.
5392 (ipa_ref_has_aliases_p): New function.
5393 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
5394 (ipa_ref_has_aliases_p): Declare.
5395 * lto-cgraph.c (lto_output_node): Handle aliases.
5396 (input_node): Likewise.
5397 * lto-streamer-out.c (lto_output): Skip aliases.
5398 (produce_symtab): Kill same_body_alias code.
5399 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
5400 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
5401 * ipa-inline.c (update_caller_keys): Walk aliases.
5402 (inline_small_functions): Fix thinko in previous patch.
5403 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
5404 (function_and_variable_visibility): Do not walk same body aliases.
5405 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
5406 (ipa_pta_execute): Use it.
5408 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
5410 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
5411 (*vec_dupv2df): Rename from vec_dupv2df.
5412 (vec_dupv2df): New expander.
5414 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
5416 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
5418 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
5420 * config/i386/i386.md: Use default value in "isa" attribute.
5421 * config/i386/sse.md: Ditto.
5422 * config/i386/mmx.md: Ditto.
5424 2011-06-10 Wei Guozhi <carrot@google.com>
5427 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5428 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5429 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5431 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5433 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5434 (arm_legitimate_ldrd_p): New prototype.
5435 (arm_output_ldrd): New prototype.
5436 * config/arm/arm.c (arm_check_ldrd_operands): New function.
5437 (arm_legitimate_ldrd_p): New function.
5438 (arm_output_ldrd): New function.
5440 2011-06-10 David Li <davidxl@google.com>
5442 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5443 * passes.c (passr_eq): New function.
5444 (create_pass_tab): New function.
5445 (pass_traverse): New function.
5446 (dump_one_pass): New function.
5447 (dump_pass_list): New function.
5448 (dump_passes): New function.
5450 2011-06-10 Jan Hubicka <jh@suse.cz>
5452 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
5453 setting the nothrow flag.
5454 * ipa-reference.c (propagate): Skip aliases.
5455 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
5456 (propagate_nothrow): Skip aliases; do not update cgraph.
5457 (local_pure_const): Do not update cgraph.
5458 * tree-profile.c (tree_profiling): Do fixup_cfg.
5460 2011-06-10 Jan Hubicka <jh@suse.cz>
5462 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
5463 (cgraph_local_node_p): ... here; handle aliases.
5464 (has_addr_references_p): Break out from ...;
5465 (cgraph_remove_unreachable_nodes) ... here.
5467 2011-06-10 Jan Hubicka <jh@suse.cz>
5469 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
5470 * common.opt (flag_inline_functions_called_once): Do not
5473 2011-06-10 Jan Hubicka <jh@suse.cz>
5475 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
5476 (ipcp_initialize_node_lattices): Do not deal with aliases;
5477 Do not try to propagate through thunks.
5478 (ipcp_change_tops_to_bottom): Do not deal with aliases.
5480 2011-06-10 Jan Hubicka <jh@suse.cz>
5482 * ipa-prop.c (ipa_write_node_info): Stream jump functions
5484 (ipa_read_node_info): Likewise.
5486 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5489 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5490 (build_and_insert_call): Likewise.
5491 (build_and_insert_ref): New.
5492 (gimple_expand_builtin_pow): Minor cleanup.
5493 (gimple_expand_builtin_cabs): New.
5494 (execute_cse_sincos): Add case for BUILT_IN_CABS.
5496 2011-06-10 Jan Hubicka <jh@suse.cz>
5498 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5499 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5500 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5501 (ipcp_propagate_stage): Skip aliases when propagating.
5502 (ipcp_need_redirect_p): Skip aliases.
5503 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5504 collect_callers_of_node.
5505 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5507 (ipa_compute_jump_functions): Look through aliases.
5509 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5511 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5513 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5515 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5517 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5519 2011-06-10 Jan Hubicka <jh@suse.cz>
5521 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5522 Update call of gimple_get_virt_method_for_binfo.
5523 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5524 refuse_thunks parameter.
5525 (gimple_fold_call): Update.
5526 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5528 2011-06-10 Jan Hubicka <jh@suse.cz>
5530 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5531 (not_all_callers_have_enough_arguments_p): ... this one; turn into
5532 worker for cgraph_for_node_and_aliases.
5533 (convert_callers_for_node): Break out from ...
5534 (convert_callers): ... here.
5535 (modify_function): Use collect_callers_of_node.
5536 (ipa_early_sra): Use cgraph_for_node_and_aliases.
5538 2011-06-10 Richard Guenther <rguenther@suse.de>
5540 PR tree-optimization/49361
5541 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5542 when not already in gimple form.
5544 2011-06-10 Richard Guenther <rguenther@suse.de>
5547 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5548 FOR_EACH_PHI_OR_STMT_USE.
5550 2011-06-10 Jan Hubicka <jh@suse.cz>
5552 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5553 (clone_inlined_nodes): ... here.
5554 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5555 to real destination prior inlining.
5556 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5557 can_early_inline_edge_p, want_early_inline_function_p,
5558 want_early_inline_function_p, want_inline_small_function_p,
5559 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5560 edge_badness, update_all_callee_keys, lookup_recursive_calls,
5561 add_new_edges_to_heap, inline_small_functions, flatten_function,
5562 inline_always_inline_functions, early_inline_small_functions): Use
5563 cgraph_function_or_thunk_node.
5564 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5565 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5566 (do_estimate_edge_growth_1): Break out from ...
5567 (do_estimate_growth) ... here; walk aliases.
5568 (inline_generate_summary): Skip aliases.
5570 2011-06-10 Richard Guenther <rguenther@suse.de>
5572 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5573 forward when combining, visit inserted stmts when a stmt was changed.
5575 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
5577 * tree.h (error_operand_p): Add.
5578 * dbxout.c (dbxout_type_fields): Use the latter.
5579 * c-decl.c (add_stmt): Likewise.
5580 * gimplify.c (omp_add_variable, omp_notice_variable,
5581 gimplify_scan_omp_clauses): Likewise.
5583 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
5585 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5586 when a value is actually passed in regs.
5588 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
5589 Laurent Rougé <laurent.rouge@menta.fr>
5591 * doc/invoke.texi (SPARC options): Add -mflat.
5592 * config/sparc/sparc.opt: Likewise.
5593 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5594 (sparc_flat_expand_prologue): Declare.
5595 (sparc_flat_expand_epilogue): Likewise.
5596 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5597 (CPP_ENDIAN_SPEC): Replace with...
5598 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
5599 (CPP_SPEC): Adjust to above change.
5600 (EXTRA_SPECS): Likewise.
5601 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5602 (INCOMING_REGNO): Likewise.
5603 (OUTGOING_REGNO): Likewise.
5604 (LOCAL_REGNO): Likewise.
5605 (SETUP_FRAME_ADDRESSES): Likewise.
5606 (FIXED_REGISTERS): Set 0 for %fp.
5607 (CALL_USED_REGISTERS): Likewise.
5608 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5609 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5610 (RETURN_ADDR_REGNUM): Define.
5611 (RETURN_ADDR_RTX): Use it.
5612 (INCOMING_RETURN_ADDR_REGNUM): Define.
5613 (INCOMING_RETURN_ADDR_RTX): Use it.
5614 (DWARF_FRAME_RETURN_COLUMN): Likewise.
5615 (EH_RETURN_REGNUM): Define.
5616 (EH_RETURN_STACKADJ_RTX): Use it.
5617 (EH_RETURN_HANDLER_RTX): Delete.
5618 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5619 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5621 (struct machine_function): Add frame_size, apparent_frame_size,
5622 frame_base_reg, frame_base_offset, n_global_fp_regs and
5623 save_local_in_regs_p fields.
5624 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5625 sparc_frame_base_offset, sparc_n_global_fp_regs,
5626 sparc_save_local_in_regs_p): New macros.
5627 (sparc_option_override): Error out if -fcall-saved-REG is specified
5629 (eligible_for_restore_insn): Fix formatting.
5630 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5631 (eligible_for_sibcall_delay): Likewise.
5632 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5633 (sparc_legitimate_address_p): Adjust to above change.
5634 (save_global_or_fp_reg_p): New predicate.
5635 (return_addr_reg_needed_p): Likewise.
5636 (save_local_or_in_reg_p): Likewise.
5637 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5638 (SORR_SAVE, SORR_RESTORE): Delete.
5639 (sorr_pred_t): New typedef.
5640 (sorr_act_t): New enum.
5641 (save_or_restore_regs): Rename to...
5642 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5643 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5644 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5645 mechanism. Add CFI information for double-word saves in 32-bit mode.
5646 (emit_adjust_base_to_offset): New function extracted from...
5647 (emit_save_or_restore_regs): ...this. Rename the rest to...
5648 (emit_save_or_restore_regs_global_fp_regs): ...this.
5649 (emit_save_or_restore_regs_local_in_regs): New function.
5650 (gen_create_flat_frame_[123]): New functions.
5651 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5652 (sparc_flat_expand_prologue): New function.
5653 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5654 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5655 (sparc_flat_expand_epilogue): New function.
5656 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5657 (output_return): Likewise.
5658 (output_sibcall): Likewise.
5659 (sparc_output_mi_thunk): Likewise.
5660 (sparc_frame_pointer_required): Likewise.
5661 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5662 function optimization.
5663 * config/sparc/sparc.md (flat): New attribute.
5664 (prologue): Add TARGET_FLAT handling.
5665 (save_register_window): Disable if TARGET_FLAT.
5666 (create_flat_frame_[123]): New patterns.
5667 (epilogue): Add TARGET_FLAT handling.
5668 (sibcall_epilogue): Likewise.
5669 (eh_return): New expander.
5670 (eh_return_internal): New insn and splitter.
5671 (return_internal): Add TARGET_FLAT handling.
5672 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5673 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5674 (nonlocal_goto): Add TARGET_FLAT handling.
5675 * config/sparc/t-elf: Add -mflat multilib.
5676 * config/sparc/t-leon: Likewise.
5678 2011-06-10 Jan Hubicka <jh@suse.cz>
5680 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5681 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5682 (self_recursive_p): Use cgraph_function_node.
5683 (propagate_pure_const): Likewise.
5684 (propagate_nothrow): Likewise.
5685 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5686 cgraph_function_node.
5687 (propagate_bits): Likewise.
5688 (propagate): Likewise.
5690 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5691 Richard Earnshaw <rearnsha@arm.com>
5693 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5694 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5695 (*thumb2_movdi_vfp): Delete.
5696 (*arm_movdi_vfp_cortexa8): Delete.
5697 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5698 (*movdi_vfp_cortexa8): Likewise.
5700 2011-06-10 Richard Guenther <rguenther@suse.de>
5702 * stor-layout.c (initialize_sizetypes): Give names to all
5705 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
5707 PR tree-optimization/49318
5708 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5709 irrelevant pattern statements.
5711 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5713 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5716 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5719 2011-06-09 Jan Hubicka <jh@suse.cz>
5721 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5722 do not recompute reachable flag.
5723 (cgraph_finalize_function, cgraph_analyze_functions): Set
5724 redefined_extern_inline here.
5726 2011-06-09 Jan Hubicka <jh@suse.cz>
5728 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5729 (cgraph_only_called_directly_p): ... this one; bring offline.
5730 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5731 varpool_used_from_object_file_p): Drop names from the declaratoin.
5732 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5733 collect_callers_of_node): New.
5734 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5735 (cgraph_edge_recursive_p): Use cgraph_function_node.
5736 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5737 (cgraph_node_cannot_be_local_p_1): Break out from ...
5738 (cgraph_node_can_be_local_p): ... here; walk aliases.
5739 (cgraph_for_node_thunks_and_aliases): New function.
5740 (cgraph_for_node_and_aliases): New function.
5741 (cgraph_make_node_local_1): Break out from ...
5742 (cgraph_make_node_local) ... here; use
5743 cgraph_for_node_thunks_and_aliases.
5744 (cgraph_set_nothrow_flag_1): Break out from ...
5745 (cgraph_set_nothrow_flag) ... here;
5746 use cgraph_for_node_thunks_and_aliases.
5747 (cgraph_set_const_flag_1): Break out from ...
5748 (cgraph_set_const_flag) ... here;
5749 use cgraph_for_node_thunks_and_aliases.
5750 (cgraph_set_pure_flag_1): Break out from ...
5751 (cgraph_set_pure_flag) ... here;
5752 use cgraph_for_node_thunks_and_aliases.
5753 (cgraph_propagate_frequency_1): Break out from ...
5754 (cgraph_propagate_frequency) ... here; use
5755 cgraph_for_node_thunks_and_aliases.
5756 (cgraph_used_from_object_file_p): Do not care about aliases.
5757 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5759 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5761 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5763 PR rtl-optimization/49154
5764 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5765 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5766 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5767 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5768 * config/cris/cris.h (cris_register_move_cost): Remove
5769 !TARGET_V32 code. Tweak comments.
5771 2011-06-09 Jan Hubicka <jh@suse.cz>
5773 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5776 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5778 PR rtl-optimization/49154
5779 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5780 is a matching slot in the hashtable, assign it to classes_ptr.
5782 PR rtl-optimization/49154
5783 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5785 * doc/tm.texi: Regenerate.
5787 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5790 * config/sh/sh.md (UNSPEC_CHKADD): New.
5791 (chk_guard_add): New define_insn_and_split.
5792 (symGOT_load): Use chk_guard_add instead of blockage.
5794 2011-06-09 Kai Tietz <ktietz@redhat.com>
5796 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5798 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5800 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5802 2011-06-09 Wei Guozhi <carrot@google.com>
5805 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5806 (peephole2 for conditional move): Generate 16 bit instructions.
5808 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
5810 * config/i386/i386.md (*movdi_internal_rex64): Merge
5811 alternatives 6 and 8.
5813 2011-06-09 David Li <davidxl@google.com>
5815 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5816 * passes.c (passr_eq): New function.
5817 (create_pass_tab): New function.
5818 (pass_traverse): New function.
5819 (dump_one_pass): New function.
5820 (dump_pass_list): New function.
5821 (dump_passes): New function.
5823 2011-06-09 David Li <davidxl@google.com>
5825 * tree-complex.c (tree_lower_complex): Gate cleanup.
5826 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5827 (execute_optimize_stdarg): Ditto.
5828 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5829 (execute_cleanup_eh_1): Ditto.
5830 (execute_cleanup_eh): Ditto.
5831 * gcse.c (gate_rtl_pre): Ditto.
5832 (execute_rtl_pre): Ditto.
5833 * except.c (finish_eh_generation): Ditto.
5834 (convert_to_eh_region_ranges): Ditto.
5835 * cprop.c (one_cprop_pass): Ditto.
5837 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5840 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5841 in all basic blocks.
5843 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5845 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5846 (HAVE_ENABLE_EXECUTE_STACK): Define.
5847 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5848 (HAVE_ENABLE_EXECUTE_STACK): Define.
5849 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5850 (HAVE_ENABLE_EXECUTE_STACK): Define.
5851 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5852 (ENABLE_EXECUTE_STACK): Remove.
5853 (HAVE_ENABLE_EXECUTE_STACK): Define.
5854 [IN_LIBGCC2]: Don't include <windows.h>.
5855 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5856 (HAVE_ENABLE_EXECUTE_STACK): Define.
5857 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5858 (HAVE_ENABLE_EXECUTE_STACK): Define.
5859 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5860 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5861 (HAVE_ENABLE_EXECUTE_STACK): Define.
5862 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5863 (HAVE_ENABLE_EXECUTE_STACK): Define.
5864 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5865 (HAVE_ENABLE_EXECUTE_STACK): Define.
5866 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5867 (HAVE_ENABLE_EXECUTE_STACK): Define.
5868 * config/alpha/alpha.c (alpha_trampoline_init): Test
5869 HAVE_ENABLE_EXECUTE_STACK.
5870 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5871 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5872 (sparc64_initialize_trampoline): Likewise.
5873 * libgcc2.c [L_enable_execute_stack]: Remove.
5874 * system.h (ENABLE_EXECUTE_STACK): Poison.
5875 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5876 * doc/tm.texi: Regenerate.
5877 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5879 2011-06-09 Jakub Jelinek <jakub@redhat.com>
5882 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5883 variable. After resetting and rescanning insn continue with previous
5886 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5888 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5889 (gcc_cv_ld_hidden): Likewise.
5890 * configure: Regenerate.
5891 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5892 (ix86_stack_protect_fail): Mark unused.
5893 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5894 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5895 [TARGET_MACHO]: Don't define.
5896 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5897 (TARGET_STACK_PROTECT_FAIL): Likewise.
5898 (rs6000_stack_protect_fail): Mark unused.
5899 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5900 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
5902 2011-06-08 Andi Kleen <ak@linux.intel.com>
5904 * varasm.c (get_section): Print location of other conflict
5905 for section conflicts.
5907 2011-06-08 Andi Kleen <ak@linux.intel.com>
5909 * config/i386/driver-i386.c (host_detect_local_cpu):
5910 Add model 0x2d Intel CPU.
5912 2011-06-08 Andi Kleen <ak@linux.intel.com>
5914 * reginfo.c (global_regs_decl): Add.
5915 (globalize_reg): Add decl parameter. Compute location. Pass location
5916 to warnings and add inform. Store decl in global_regs_decl.
5917 * rtl.h (globalize_reg): Update prototype.
5918 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5920 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5922 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5924 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5927 * config/sh/predicates.md (general_movsrc_operand): Check
5928 mode for memory with indexed address for QI and HImode.
5929 (general_movdst_operand): Likewise.
5931 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5933 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5935 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
5937 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5938 (num_ssa_operands): Likewise.
5939 (op_iter_init_phiuse): Forward-declare.
5940 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5942 2011-06-08 Nick Clifton <nickc@redhat.com>
5944 * doc/invoke.texi (ARM Options): Update description of
5947 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5949 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5950 unknown Intel family 0x6 CPUs.
5952 2011-06-08 Martin Jambor <mjambor@suse.cz>
5954 * tree-sra.c (mark_rw_status): Removed.
5955 (analyze_access_subtree): New parameter parent instead of
5956 mark_read and mark_write, propagate from that.
5958 2011-06-08 Julian Brown <julian@codesourcery.com>
5960 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5961 for double-precision helper functions in hard-float mode if only
5962 single-precision arithmetic is supported in hardware.
5964 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
5966 PR rtl-optimization/49303
5967 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5968 code_motion_path_driver returned 0 or 1.
5969 (sel_region_finish): Clear h_d_i_d.
5971 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5973 * config/sh/sh.c (prepare_move_operands): Set pic register
5974 appropriately for global and local dynamic tls models even
5975 if flag_pic is unset.
5977 2011-06-07 Jason Merrill <jason@redhat.com>
5979 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5981 2011-06-07 Xinliang David Li <davidxl@google.com>
5982 * passes.c (enable_disable_pass): Handle assembler name.
5983 (is_pass_explicitly_enabled_or_disabled): Ditto.
5985 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5987 PR tree-optimization/48497
5988 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5990 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5992 PR tree-optimization/46728
5993 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5994 to use gimple_val_nonnegative_real_p.
5995 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5996 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5998 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
6000 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
6002 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
6004 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
6007 2011-06-07 Richard Guenther <rguenther@suse.de>
6009 * stor-layout.c (initialize_sizetypes): Initialize all
6010 sizetypes based on target definitions.
6011 (set_sizetype): Remove.
6012 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
6013 * tree.h (set_sizetype): Remove.
6015 2011-06-07 Nick Clifton <nickc@redhat.com>
6017 * config.gcc: Unify V850 architecture options and add support for
6018 newer V850 architectures.
6019 * config/v850/t-v850e: Delete.
6021 2011-06-07 Richard Guenther <rguenther@suse.de>
6023 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
6024 Call set_sizetype from here.
6026 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
6028 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
6029 (*maddhisi4tb, *maddhisi4tt): New define_insns.
6031 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
6032 Andrew Stubbs <ams@codesourcery.com>
6034 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
6036 * doc/md.texi (Canonicalization of Instructions): Document widening
6037 multiply canonicalization.
6039 2011-06-07 Jakub Jelinek <jakub@redhat.com>
6041 PR gcov-profile/49299
6042 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
6044 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
6046 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
6048 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
6049 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
6050 vect_recog_pow_pattern): Likewise.
6051 (vect_pattern_recog_1): Remove declaration.
6052 (widened_name_p): Remove declaration. Add new argument to specify
6053 whether to check that both types are either signed or unsigned.
6054 (vect_recog_widen_mult_pattern): Update documentation. Handle
6055 unsigned patterns and multiplication by constants.
6056 (vect_pattern_recog_1): Update vect_recog_func references. Use
6057 statement information from the statement returned from pattern
6058 detection functions.
6059 (vect_pattern_recog): Update vect_recog_func reference.
6060 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
6061 multiplication by a constant use the type of the other operand.
6063 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
6065 PR rtl-optimization/49145
6066 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
6068 2011-06-06 Jakub Jelinek <jakub@redhat.com>
6071 * dwarf2out.c (native_encode_initializer): Decrement count in each
6075 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
6079 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
6080 if stmt folded into nothing.
6081 * tree-inline.c (fold_marked_statements): If a builtin at the end of
6082 a bb folded into nothing, just update cgraph edges and move to next bb.
6083 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
6084 to be NULL. Don't compute count and frequency if new_call is NULL.
6086 2011-06-04 Diego Novillo <dnovillo@google.com>
6088 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
6089 (cgraph.o): Likewise.
6090 (cgraphunit.o): Likewise.
6091 * cgraphunit.c: Include lto-streamer.h
6092 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
6094 * lto-streamer-in.c (unpack_value_fields): Call
6095 streamer_hooks.unpack_value_fields if set.
6096 (lto_materialize_tree): For unhandled nodes, first try to
6097 call lto_streamer_hooks.alloc_tree, if it exists.
6098 (lto_input_ts_decl_common_tree_pointers): Move reading of
6099 DECL_INITIAL to lto_streamer_read_tree.
6100 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
6101 (lto_streamer_read_tree): New.
6102 (lto_reader_init): Rename from lto_init_reader.
6103 Move initialization code to lto/lto.c.
6104 * lto-streamer-out.c (pack_value_fields): Call
6105 streamer_hooks.pack_value_fields if set.
6106 (lto_output_tree_ref): For tree nodes that are not normally indexable,
6107 call streamer_hooks.indexable_with_decls_p before giving up.
6108 (lto_output_ts_decl_common_tree_pointers): Move handling
6109 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
6110 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
6111 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
6112 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
6113 (lto_streamer_write_tree): New.
6114 (lto_output): Call lto_streamer_init directly.
6115 (lto_writer_init): Remove.
6116 * lto-streamer.c (streamer_hooks): New.
6117 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
6118 instead of lto_preload_common_nodes.
6119 (lto_is_streamable): Move from lto-streamer.h
6120 (lto_streamer_hooks_init): New.
6121 (streamer_hooks): New.
6122 (streamer_hooks_init): New.
6123 * lto-streamer.h (struct output_block): Forward declare.
6124 (struct lto_input_block): Likewise.
6125 (struct data_in): Likewise.
6126 (struct bitpack_d): Likewise.
6127 (struct streamer_hooks): Declare.
6128 (streamer_hooks): Declare.
6129 (lto_streamer_hooks_init): Declare.
6130 (lto_streamer_write_tree): Declare.
6131 (lto_streamer_read_tree): Declare.
6132 (streamer_hooks_init): Declare.
6133 (lto_is_streamable): Move to lto-streamer.c
6135 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6137 * longlong.h (smul_ppmm): The resulting register pair contains the
6138 higher order word first.
6140 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6142 PR tree-optimization/46728
6143 * builtins.c (powi_table): Remove.
6144 (powi_lookup_cost): Remove.
6145 (powi_cost): Remove.
6146 (expand_powi_1): Remove.
6147 (expand_powi): Remove.
6148 (expand_builtin_pow_root): Remove.
6149 (expand_builtin_pow): Remove.
6150 (expand_builtin_powi): Eliminate handling of constant exponent.
6151 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
6153 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6155 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
6157 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6159 * dce.c (reset_unmarked_insns_debug_uses): New.
6160 (delete_unmarked_insns): Skip debug insns.
6161 (prescan_insns_for_dce): Likewise.
6162 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
6163 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
6164 active reg can be found.
6165 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
6166 (convert_regs_1): Use it.
6168 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6170 * tree-pretty-print.c (dump_function_header): Add flags.
6171 Don't dump decl_uid with nouid.
6172 * tree-pretty-print.h (dump_function_header): Adjust.
6173 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
6174 * passes.c (pass_init_dump_file): Pass dump_flags on.
6175 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
6177 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6180 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
6182 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
6184 PR tree-optimization/49243
6185 * calls.c (setjmp_call_p): Also check if fndecl has the
6186 returns_twice attribute.
6188 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6190 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
6193 2011-06-06 Richard Henderson <rth@redhat.com>
6194 Georg-Johann Lay <avr@gjlay.de>
6197 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6199 * config/avr/avr.md ("insv"): New insn expander.
6200 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
6201 "*insv.not.io", "*insv.reg"): New insns.
6203 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
6206 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
6207 to nonimmediate_operand from memory_operand for the operand that is to
6208 be forced to memory by the expander. Lose the constraints.
6210 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
6212 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
6213 EH return when delayed branches are disabled.
6215 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
6217 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
6218 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
6220 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
6221 Simplify MODE_V1DF and MODE_V2SF handling.
6222 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
6223 Simplify MODE_SF handling.
6225 2011-06-04 Jan Hubicka <jh@suse.cz>
6227 PR tree-optimization/48893
6228 PR tree-optimization/49091
6229 PR tree-optimization/49179
6230 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
6233 2011-06-04 Jan Hubicka <jh@suse.cz>
6236 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
6239 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
6241 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
6243 2011-06-04 Jakub Jelinek <jakub@redhat.com>
6246 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
6247 to be strictly smaller than 1 << shiftcount.
6249 2011-06-04 Jan Hubicka <jh@suse.cz>
6251 PR tree-optimize/48929
6252 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
6255 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
6258 * calls.c (emit_call_1): Prefer the __builtin declaration of
6261 2011-06-03 Diego Novillo <dnovillo@google.com>
6263 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
6264 (lto_input_tree_pointers): Likewise.
6265 * lto-streamer-out.c (pack_value_fields): Likewise.
6266 (lto_output_tree_pointers): Likewise.
6267 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
6268 and OPTIMIZATION_NODE.
6270 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6272 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
6273 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
6274 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
6275 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
6276 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
6277 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
6278 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
6279 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
6280 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
6281 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
6282 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
6283 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
6284 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
6285 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
6286 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
6287 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
6288 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
6289 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
6290 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
6291 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
6292 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
6293 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
6294 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
6295 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
6296 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
6297 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
6298 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
6299 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
6300 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
6301 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
6302 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
6303 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
6304 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
6305 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
6306 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
6307 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
6308 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
6309 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
6310 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
6311 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
6312 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
6313 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
6314 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
6315 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
6316 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
6317 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
6318 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
6319 * system.h (MD_UNWIND_SUPPORT): Poison.
6320 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
6321 * doc/tm.texi: Regenerate.
6322 * unwind-dw2.c: Include md-unwind-support.h instead of
6324 * config/ia64/unwind-ia64.c: Likewise.
6325 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6327 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
6329 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
6331 2011-06-03 Richard Henderson <rth@redhat.com>
6332 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6334 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
6335 (sigill_hdlr): Correct insn, insn size.
6336 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
6338 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6340 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
6342 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
6343 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
6344 * config/mips/t-iris: Remove.
6345 * config/mips/t-irix6: New file.
6346 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
6348 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6350 * Makefile.in (LIB2ADDEHDEP): Remove.
6351 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
6352 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
6353 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
6354 * config/t-darwin (LIB2ADDEHDEP): Remove.
6355 * config/t-freebsd (LIB2ADDEHDEP): Remove.
6356 * config/t-linux (LIB2ADDEHDEP): Remove.
6358 2011-06-03 Diego Novillo <dnovillo@google.com>
6360 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
6361 (lto_register_var_decl_in_symtab): Likewise.
6362 (lto_register_function_decl_in_symtab): Likewise.
6363 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
6364 logic to uniquify_nodes.
6366 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6368 * config/alpha/t-osf5: Remove.
6369 * config/alpha/t-osf-pthread: Remove.
6370 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
6371 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
6373 2011-06-03 Julian Brown <julian@codesourcery.com>
6375 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
6376 (strongarm1110): Use strongarm tuning.
6377 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
6378 * config/arm/arm.c (arm_strongarm_tune): New.
6379 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6380 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
6381 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
6382 setting, using previous defaults or 1 for Cortex-A5.
6383 (arm_option_override): Set max_insns_skipped from current tuning.
6385 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
6387 * doc/install.texi (Options specification): Document --with-specs.
6389 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6391 * config/arm/neon.md (orndi3_neon): Actually split it.
6393 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
6395 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
6396 * var-tracking.c (reverse_op): Limite recurse depth to 5.
6398 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
6401 * target.def (delay_sched2, delay_vartrack): New.
6402 * doc/tm.texi.in: Update.
6403 * doc/tm.texi: Rebuild.
6404 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
6405 * var-tracking.c (gate_handle_var_tracking): Likewise.
6406 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
6407 (bfin_flag_var_tracking): Drop.
6408 (output_file_start): Don't save and override flag_var_tracking.
6409 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
6410 (bfin_reorg): Test original variables.
6411 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6412 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
6413 (ia64_flag_var_tracking): Drop.
6414 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6415 (ia64_file_start): Don't save and override flag_var_tracking.
6416 (ia64_override_options_after_change): Ditto
6417 flag_schedule_insns_after_reload.
6418 (ia64_reorg): Test original variables.
6419 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
6420 (picochip_flag_var_tracking): Drop.
6421 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6422 (picochip_option_override): Don't save and override
6423 flag_schedule_insns_after_reload.
6424 (picochip_asm_file_start): Ditto flag_var_tracking.
6425 (picochip_reorg): Test original variables.
6426 * config/spu/spu.c (spu_flag_var_tracking): Drop.
6427 (TARGET_DELAY_VARTRACK): Define.
6428 (spu_var_tracking): New.
6429 (spu_machine_dependent_reorg): Call it.
6430 (asm_file_start): Don't save and override flag_var_tracking.
6432 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
6435 * config/sh/predicates.md (general_movsrc_operand): Return 0
6436 for memory and memory subreg of which address is an invalid
6437 indexed address for QI and HImode.
6438 (general_movdst_operand): Likewise.
6440 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6442 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
6443 edges only, when there is a non-local label in the function.
6444 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
6446 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
6448 * config/i386/constraints.md (Y3): New register constraint.
6449 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
6450 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
6451 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
6452 *sse2_interleave_lowv2df.
6454 2011-06-02 Julian Brown <julian@codesourcery.com>
6456 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
6457 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
6458 (arm_cortex_a5_tune): New.
6460 2011-06-02 Julian Brown <julian@codesourcery.com>
6462 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
6463 * config/arm/arm.c (arm_default_branch_cost): New.
6464 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6465 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
6466 (arm_fa726_tune): Set branch_cost field using
6467 arm_default_branch_cost.
6468 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
6469 current_tune structure.
6470 * dojump.c (tm_p.h): Include file.
6472 2011-06-02 Julian Brown <julian@codesourcery.com>
6474 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
6476 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
6477 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6478 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
6480 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
6481 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
6482 (arm_fa726te_tune): Add prefer_constant_pool setting.
6483 (arm_v6t2_tune, arm_cortex_tune): New.
6484 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
6485 prefer_constant_pool setting.
6487 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
6489 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
6491 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
6492 (*movdf_internal) <case 6,7,8>: Ditto.
6494 * config/i386/constraints.md (Y4): New register constraint.
6495 * config/i386/sse.md (vec_set<mode>_0): Merge with
6496 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6497 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6498 *vec_extractv2di_1_sse.
6499 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6500 and *vec_concatv2di_rex64_sse.
6502 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
6505 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6506 of cgraph_local_info for null before attempting to use it.
6508 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6510 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6511 (current_function_dynamic_alloc_count): Delete.
6512 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6513 (expand_builtin_nonlocal_goto): Remove obsolete comment.
6514 (expand_builtin_update_setjmp_buf): Remove dead code.
6515 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6516 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6518 * function.c (instantiate_virtual_regs): Likewise.
6519 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6520 for a block with a single abnormal incoming edge.
6521 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
6522 (SETJMP_VIA_SAVE_AREA): Delete.
6523 * config/sparc/sparc-protos.h (load_got_register): Declare.
6524 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6525 (load_got_register): Make global.
6526 (sparc_frame_pointer_required): Add 'static'.
6527 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
6528 (sparc_builtin_setjmp_frame_value): New function.
6529 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6530 (save_stack_nonlocal): New expander.
6531 (restore_stack_nonlocal): Likewise.
6532 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6533 (nonlocal_goto_internal): New insn.
6534 (goto_handler_and_restore): Delete.
6535 (builtin_setjmp_setup): Likewise.
6536 (do_builtin_setjmp_setup): Likewise.
6538 (builtin_setjmp_receiver): New expander.
6540 2011-06-01 David Li <davidxl@google.com>
6543 * tree-pretty-print.c (dump_function_header): Format cleanup.
6545 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
6548 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6549 needed when original operands are used for msw_skip comparison.
6551 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6554 * var-tracking.c (add_uses, add_stores): Don't call
6555 cselib_subst_to_values on ENTRY_VALUE.
6557 2011-06-01 Diego Novillo <dnovillo@google.com>
6559 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6560 output_record_start with LTO_null instead of output_zero.
6561 (lto_output_ts_binfo_tree_pointers): Likewise.
6562 (lto_output_tree): Likewise.
6563 (output_eh_try_list): Likewise.
6564 (output_eh_region): Likewise.
6565 (output_eh_lp): Likewise.
6566 (output_eh_regions): Likewise.
6567 (output_bb): Likewise.
6568 (output_function): Likewise.
6569 (output_unreferenced_globals): Likewise.
6570 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6571 instead of NUM_TREE_CODES.
6572 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6573 (lto_output_int_in_range): Change << to >> when shifting VAL.
6575 2011-06-01 Diego Novillo <dnovillo@google.com>
6577 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6578 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6580 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6583 * optabs.h (valid_multiword_target_p): Declare.
6584 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6585 doing multi-word operations.
6586 * optabs.c (expand_binop): Likewise.
6587 (expand_doubleword_bswap): Likewise.
6588 (expand_absneg_bit): Likewise.
6589 (expand_unop): Likewise.
6590 (expand_copysign_bit): Likewise.
6591 (multiword_target_p): New function.
6593 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6595 PR rtl-optimization/48830
6596 PR rtl-optimization/48808
6597 PR rtl-optimization/48792
6598 * reload.c (push_reload): Check contains_reg_of_mode.
6599 * reload1.c (strip_paradoxical_subreg): New function.
6600 (gen_reload_chain_without_interm_reg_p): Use it to handle
6601 paradoxical subregs.
6602 (emit_output_reload_insns, gen_reload): Likewise.
6604 2011-06-01 David Li <davidxl@google.com>
6606 * predict.c : Change pass name
6609 * tree-profile.c: Ditto.
6612 2011-06-01 David Li <davidxl@google.com>
6614 * tree-pretty-print.c (dump_function_header): New function.
6615 * final.c (rest_of_clean_state): Use header dumper.
6616 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6617 * passes.c (pass_init_dump_file): Use header dumper.
6619 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6621 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6622 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6623 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6625 (mem_loc_descriptor): Use them.
6627 * var-tracking.c (create_entry_value): New function.
6628 (vt_add_function_parameter): Use it.
6630 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6632 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6633 Include <signal.h>, <ucontext.h>.
6634 (sigill_caught): Define.
6635 (sigill_hdlr): New function.
6636 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6637 insns can be executed.
6638 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6639 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6641 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6643 * config/t-slibgcc-darwin: Move to ...
6644 * config/t-slibgcc-dummy: ... this. Clarify comments.
6645 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6646 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6647 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6648 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
6649 Remove i386/t-crtstuff from tmake_file.
6650 (i[34567]86-*-solaris2*): Remove t-svr4,
6651 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6653 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6654 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6655 sparc/t-crtfm from tmake_file.
6656 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6657 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6659 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6660 * config/i386/t-nwld (SHLIB_LINK): Remove.
6661 * config/i386/t-rtems-i386: Rename to ...
6662 * config/i386/t-rtems: ... this.
6663 ($(T)crti.o, $(T)crtn.o): Remove.
6664 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6665 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6666 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6667 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6668 EXTRA_MULTILIB_PARTS): Remove.
6669 * config/sparc/t-sol2-64: Likewise.
6670 * config/sparc/t-sol2: Remove.
6671 * config/sparc/t-crtin: Remove.
6672 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6673 * config/i386/gmon-sol2.c: Remove.
6674 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6675 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6676 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6677 * config/i386/sol2-gc1.asm: Remove.
6678 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6679 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6680 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6681 * config/t-slibgcc-sld: Remove.
6683 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6685 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6686 base_type_for_mode with op_mode instead of mode.
6688 2011-06-01 Paul Brook <paul@cpodesourcery.com>
6690 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6692 * config/arm/arm-tune.md: Regenerate.
6693 * config/arm/arm-tables.opt: Regenerate.
6694 * config/arm/arm.c (FL_DIV): Rename...
6695 (FL_THUMB_DIV): ... to this.
6696 (FL_ARM_DIV): Define.
6697 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6698 (arm_arch_hwdiv): Remove.
6699 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6700 (arm_issue_rate): Add cortexr5.
6701 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6702 __ARM_ARCH_EXT_IDIV__.
6703 (TARGET_IDIV): Define.
6704 (arm_arch_hwdiv): Remove.
6705 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6706 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6707 (divsi3, udivsi3): New patterns.
6708 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6709 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6711 2011-06-01 Martin Jambor <mjambor@suse.cz>
6713 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6714 * ipa-utils.c (searchc): Set scc_no.
6716 2011-06-01 Martin Jambor <mjambor@suse.cz>
6718 * ipa-utils.c (searchc_env): New field allow_overwritable.
6719 (searchc): do not ignore edges to overwritable nodes if indicated
6720 by env->allow_overwritable.
6721 (ipa_reduced_postorder): Set env.allow_overwritable.
6723 2011-06-01 Richard Guenther <rguenther@suse.de>
6725 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6727 * lto-streamer.c (lto_record_common_node): Take node pointer,
6728 do not register types.
6729 (lto_preload_common_nodes): Explicitly skip preloading nodes
6730 that differ between frontends.
6732 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6734 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6737 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6739 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6740 parameter value for dump. Dump cost on outermost call only.
6741 (rs6000_memory_move_cost): Dump cost on outermost call only.
6743 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6745 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6746 DW_OP_GNU_convert ops.
6748 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6749 cselib_preserve_constants.
6750 (cselib_lookup_1): If cselib_preserve_constants,
6751 a new VALUE is being created for REG and there is a VALUE for the
6752 same register in wider mode, add another loc with lowpart SUBREG of
6754 (cselib_subst_to_values): Handle ENTRY_VALUE.
6755 * var-tracking.c (replace_expr_with_values): Return NULL for
6757 * dwarf2out.c (convert_descriptor_to_signed): New function.
6758 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6759 instead of two shifts.
6760 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6761 the right mode if needed.
6762 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6763 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6764 convert_descriptor_to_signed.
6765 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6766 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6769 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6771 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6773 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6774 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6775 (SWI248x): New mode iterator, rename from X87MODEI.
6776 (X87MODEI): Remove mode iterator.
6777 (X87MODEI12): Ditto.
6778 (SSEMODEI24): Ditto.
6780 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6782 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6783 * doc/invoke.texi: Document max-vartrack-expr-depth.
6784 * var-tracking.c (EXPR_DEPTH): New.
6785 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6787 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6789 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6790 * config/i386/sse.md: Add n to negated FMA pattern names.
6792 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6794 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6796 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6798 * gengtype-state.c (read_state_params_structs): Initialize previous.
6800 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6802 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6803 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6805 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6807 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6808 registers. Penalize F*r->o alternative to prevent partial memory
6809 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6810 CONST_DOUBLE immediates when optimizing function for size. Do not move
6811 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6812 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6813 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6814 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6816 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6818 (fp_register_operand splitters): Use fp_register_operand
6819 constraint. Do not use FP_REG_P in insn condition.
6820 (any_fp_register_operand splitters): Use any_fp_register_operand
6821 constraint. Do not use ANY_FP_REG_P in insn condition.
6823 2011-05-31 Jan Hubicka <jh@suse.cz>
6825 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6826 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6827 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6828 (lto_output_edge): Use output_enum and var_len_unsigned.
6829 (lto_output_varpool_node): Likewise.
6830 (input_overwrite_node): Do not take resolution parameter;
6831 extract it from a bitpack.
6832 (input_node): Do not read resolution; use input_enum and
6834 (input_varpool_node): Likewise.
6835 (input_edge): Likewise.
6836 (input_cgraph_1): Likewise.
6838 2011-05-31 Richard Guenther <rguenther@suse.de>
6840 * gimple.c (gimple_register_canonical_type): Do not register
6841 any types via gimple_register_type.
6843 2011-05-31 Jan Hubicka <jh@suse.cz>
6845 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6848 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6850 PR rtl-optimization/49235
6851 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6852 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6854 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
6856 PR tree-optimization/49093
6857 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6860 2011-05-31 Dodji Seketeli <dodji@redhat.com>
6863 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6864 for concrete functions containing the code of cloned functions.
6866 2011-05-31 Richard Guenther <rguenther@suse.de>
6868 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6870 (forward_propagate_into_comparison_1): ... this.
6871 (forward_propagate_comparison): Rename to ...
6872 (forward_propagate_into_comparison): ... this. Split out
6873 real forward propagation code to ...
6874 (forward_propagate_comparison): ... this.
6875 (forward_propagate_into_gimple_cond): Remove looping.
6876 (forward_propagate_into_cond): Likewise.
6877 (simplify_not_neg_expr): Return whether we have done something.
6878 (simplify_gimple_switch): Likewise.
6879 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6880 (ssa_forward_propagate_and_combine): ... this. Re-structure
6881 to do a forward forward-propagation walk on BBs and a backward
6882 stmt combining walk on BBs. Consistently re-scan changed statements.
6883 (pass_forwprop): Adjust.
6885 2011-05-30 Ian Lance Taylor <iant@google.com>
6887 * godump.c (go_format_type): Correct length of name added to
6888 obstack for anonymous field.
6890 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6893 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6894 part of the second operand is 0.
6896 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
6898 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6899 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6900 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6901 (*movdf_internal_rex64): Do not penalize F->r alternative.
6902 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6903 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6904 when optimizing function for size. Do not move CONST_DOUBLEs
6905 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6906 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6907 SUBREGs. Do not check for MEM_P operands in the insn condition,
6908 check for ANY_FP_REGNO_P instead.
6909 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6910 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6912 * config/i386/i386.c (ix86_option_override_internal): Do not
6913 set TARGET_INTEGER_DFMODE_MOVES here.
6915 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6918 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6920 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6922 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6923 DW_TAG_rvalue_reference_type even for
6924 -gdwarf-4 -fno-debug-types-section.
6926 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6928 PR tree-optimization/46728
6929 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6930 (build_and_insert_binop): New.
6931 (gimple_expand_builtin_pow): Reorder args for
6932 build_and_insert_call; use build_and_insert_binop; add more
6933 optimizations for fractional exponents.
6935 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6940 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6942 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6944 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6945 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6946 TS_BASE instead of TS_COMMON.
6947 * varasm.c (assemble_name): Remove assert.
6949 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6951 * config.gcc: Keep obselete list sorted.
6953 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6954 Eric Botcazou <ebotcazou@adacore.com>
6956 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6957 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6958 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6959 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6960 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6962 2011-05-30 Richard Guenther <rguenther@suse.de>
6964 * gimple.c (gimple_types_compatible_p_1): Compare record
6965 and union type members properly.
6967 2011-05-30 Richard Guenther <rguenther@suse.de>
6969 PR tree-optimization/49210
6970 * ipa-split.c (split_function): Care for the case where the call
6971 result is not trivially convertible to the result holding variable.
6973 2011-05-30 Richard Guenther <rguenther@suse.de>
6975 PR tree-optimization/49218
6976 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6979 2011-05-30 Richard Guenther <rguenther@suse.de>
6981 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6982 New function split out from ...
6983 (forward_propagate_into_gimple_cond): ... here. Adjust.
6984 (forward_propagate_into_cond): Likewise.
6985 (forward_propagate_comparison): Also propagate into
6986 comparisons on assignment RHS. Change return value to
6987 behave similar to forward_propagate_into_cond.
6988 (tree_ssa_forward_propagate_single_use_vars): Handle
6989 strict-overflow warnings properly for forward_propagate_comparison.
6991 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6993 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6995 * configure: Regenerate.
6997 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
6999 PR tree-optimization/49199
7000 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
7001 non-reduction operands are either defined in the loop or by induction.
7003 2011-05-29 Xinliang David Li <davidxl@google.com>
7005 * opts-global.c (handle_common_deferred_options): Handle new options.
7006 * passes.c (register_one_dump_file): Call register_pass_name.
7007 (execute_one_pass): Check explicit enable/disable flag.
7008 (passr_hash): New function.
7010 (register_pass_name): Ditto.
7011 (get_pass_by_name): Ditto.
7014 (enable_pass): Ditto.
7015 (disable_pass): Ditto.
7016 (is_pass_explicitly_enabled_or_disabled): Ditto.
7018 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
7020 * config/i386/i386.md (*movoi_internal_avx): Use
7021 standard_sse_constant_opcode for alternative 0.
7022 (*movti_internal_sse): Ditto.
7023 (*movti_internal_rex64): Use standard_sse_constant_opcode for
7025 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
7027 (*movsi_internal): Ditto.
7028 (*movdi_internal): Ditto. Add ssecvt type moves.
7030 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
7033 * rtlanal.c (simplify_subreg_regno): Adjust comment.
7035 2011-05-29 Jakub Jelinek <jakub@redhat.com>
7037 PR rtl-optimization/49095
7038 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
7039 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
7041 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
7044 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
7045 recurse_p argument. Only follow register copies if it is set,
7046 and prevent mips_find_pic_call_symbol from recursing.
7047 (mips_find_pic_call_symbol): Add a recurse_p argument.
7048 Pass it to mips_pic_call_symbol_from_set.
7049 (mips_annotate_pic_calls): Update accordingly.
7051 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
7053 * emit-rtl.c (try_split): Use a loop to search for
7054 NOTE_INSN_CALL_ARG_LOCATIONs.
7056 2011-05-29 Richard Guenther <rguenther@suse.de>
7058 PR tree-optimization/49217
7059 * ipa-pure-const.c (propagate_pure_const): Fix typos.
7061 2011-05-28 Jan Hubicka <jh@suse.cz>
7063 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
7065 (string_slot_free): Remove
7066 (create_output_block): Initialize obstack.
7067 (destroy_output_block): Free obstack.
7068 (lto_string_index): Add PERSISTENT parameter; do not duplicate
7069 the string unless it needs to be added into the hash.
7070 (lto_output_string_with_length): Add persistent attribute;
7071 handle NULL strings.
7072 (lto_output_string): Add PERSISTENT parameter.
7073 (output_string_cst, output_identifier): Simplify.
7074 (lto_output_location_bitpack): Update.
7075 (lto_output_builtin_tree): Update.
7076 * lto-streamer.h (struct output_block): Add obstack.
7077 (lto_output_string, lto_output_string_with_length): Remove
7078 declarations; functions are static now.
7080 2011-05-28 Jan Hubicka <jh@suse.cz>
7082 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
7083 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
7084 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
7085 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
7086 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
7087 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
7088 unpack_ts_decl_with_vis_value_fields,
7089 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
7090 lto_get_builtin_tree): Use enum and variable length i/o.
7091 * basic-block.h (profile_status_d): Add PROFILE_LAST.
7092 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
7094 (bp_pack_enum, bp_unpack_enum): New macros.
7096 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
7098 * genrecog.c: Remove redundant forward declarations.
7100 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
7102 * config.gcc: Deprecate mips*-*-openbsd*.
7104 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
7107 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
7110 2011-05-27 Andrew Pinski <pinskia@gmail.com>
7113 * gengtype.c (vec_prefix_type): New function.
7114 (note_def_vec): Use vec_prefix_type and change the length
7115 attribute to be based on the prefix.
7116 * vec.c: Include coretypes.h before vec.h.
7117 (struct vec_prefix): Remove.
7118 (vec_gc_p_reserve): Change the offsetof to sizeof.
7119 (vec_gc_p_reserve_exact): Likewise.
7120 (vec_heap_p_reserve): Likewise.
7121 (vec_heap_p_reserve_exact): Likewise.
7122 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
7123 (vec_stack_p_reserve): Change the offsetof to sizeof.
7124 (vec_stack_p_reserve_exact): Likewise.
7125 * vec.h (struct vec_prefix): New struct definition.
7126 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
7127 (VEC_T_GTY(T,B)): Likewise.
7128 (DEF_VEC_FUNC_P(T)): Use prefix field.
7129 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
7130 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
7132 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7134 PR tree-optimization/46728
7135 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
7136 (powi_as_mults): Add gimple_set_location.
7137 (build_and_insert_call): New.
7138 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
7139 0.5, 0.25, 0.75, 1./3., or 1./6.
7141 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
7143 * doc/contrib.texi: Update copyright years.
7144 (Contributors): Add Zdenek Sojka.
7146 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7148 * c-decl.c (c_push_function_context): Copy the current statement
7150 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
7151 (finish_struct): Call building_stmt_list_p instead of checking
7153 * c-parser.c (c_parser_postfix_expression): Likewise.
7154 * c-typeck.c (c_end_compound_stmt): Likewise.
7155 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
7156 * tree-iterator.c (stmt_list_cache): Change to a VEC.
7157 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
7158 (free_stmt_list): Likewise.
7159 * tree.h (struct tree_statement_list): Include typed_tree instead
7161 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
7162 as TS_TYPED instead of TS_COMMON.
7164 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7165 Uros Bizjak <ubizjak@gmail.com>
7167 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
7168 (HAVE_AS_IX86_TLSGDPTL): Define.
7169 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7170 (HAVE_AS_IX86_TLSLDMPLT): Define.
7171 * configure: Regenerate.
7172 * config.in: Regenerate.
7173 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
7174 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
7175 TARGET_SUN_TLS, use @tlsgdplt or @plt.
7176 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
7177 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
7179 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
7181 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
7183 * sched-int.h (struct _haifa_deps_insn_data): New members cond
7185 (INSN_COND, INSN_REVERSE_COND): New macros.
7186 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
7188 (sched_get_condition_with_rev): Cache the results, and look them up
7190 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
7191 are clobbered by the current insn.
7192 * target.def (exposed_pipline): New sched data hook.
7193 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
7194 * doc/tm.texi: Regenerate.
7196 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7198 PR tree-optimization/49170
7199 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
7202 2011-05-27 Richard Guenther <rguenther@suse.de>
7205 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
7208 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
7210 * haifa-sched.c (sched_scan_info): Remove.
7211 (schedule_block): Call sched_extend_luids rather than sched_init_luids
7213 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
7215 (sched_scan): Remove.
7216 (sched_extend_luids): Renamed from luids_extend_insn and no longer
7217 static. All callers changed.
7218 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
7219 static. All callers changed.
7220 (sched_init_luids): Remove all arguments except the first. All
7221 callers changed. Don't use sched_scan.
7222 (haifa_init_h_i_d): Likewise.
7223 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
7224 manually rather than using sched_init_luids. Likewise with
7225 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
7226 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
7227 rather than sched_init_luids with NULL args.
7228 * sel-sched-ir.c (new_insns): Remove variable.
7229 (sched_scan): New static function, previously in haifa-sched.c. Remove
7230 all arguments but the first two; all callers changed.
7231 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
7232 rather than sched_init_luids.
7233 (sel_init_bbs): Remove second argument. All callers changed.
7234 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
7235 with NULL arguments.
7236 (create_insn_rtx_from_pattern): Likewise.
7237 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
7238 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
7239 (sched_init_insn_luid, sched_extend_luids): Declare.
7240 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
7243 2011-05-27 Richard Guenther <rguenther@suse.de>
7246 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
7247 A CMP B ? (T) true : (T) false for non-integral types T again.
7249 2011-05-27 Jan Hubicka <jh@suse.cz>
7251 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
7252 so 0 means NULL string.
7253 (lto_output_string_with_length): ... here.
7254 (lto_output_string, output_string_cst, output_identifier): Update
7255 handling of NULL strings.
7256 (lto_output_location_bitpack): New function.
7257 (lto_output_location): Use it.
7258 (lto_output_tree_ref): Use output_record_start.
7259 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
7261 * lto-streamer-in.c (string_for_index): Break out from ...; offset
7263 (input_string_internal): ... here;
7264 (input_string_cst, input_identifier, lto_input_string): Update handling
7266 (lto_input_location_bitpack): New function
7267 (lto_input_location): Use it.
7268 (unpack_ts_type_common_value_fields): Pack align & alias in var len
7270 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
7271 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
7272 (bp_pack_value): Sanity check the value range.
7273 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
7275 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
7278 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
7280 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
7281 call_arg_location instructions down the floor.
7283 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
7285 PR rtl-optimization/49154
7286 * ira.c (setup_pressure_classes): Process class without sublcasses
7287 as a candidate for pressure classes.
7289 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
7291 PR rtl-optimization/48575
7292 * genrecog.c (position_type): New enum.
7293 (position): New structure.
7294 (decision): Use position structure instead of a string.
7295 (root_pos, peep2_insn_pos_list): New variables.
7296 (next_position, compare_positions): New functions.
7297 (new_decision): Use position structures instead of strings.
7298 (maybe_both_true): Likewise.
7299 (change_state): Likewise.
7300 (write_tree): Likewise.
7301 (make_insn_sequence): Likewise.
7303 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7305 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
7306 TS_BASE instead of TS_COMMON.
7307 (find_decls_types_r): Check for TS_TYPED structure before looking at
7309 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
7311 (BLOCK_CHAIN): Use new chain field.
7313 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
7315 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
7316 moves expensive on Power7 also.
7318 2011-05-26 Richard Guenther <rguenther@suse.de>
7320 * fold-const.c (fold_unary_loc): Remove bogus code.
7322 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7324 * tree.h (struct tree_identifier): Inherit from tree_typed, not
7326 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7327 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7328 TS_BASE instead of TS_COMMON.
7329 * varasm.c (assemble_name): Remove assert.
7331 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7333 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
7335 * libgcc-std.ver: Delete file.
7337 2011-05-26 Richard Guenther <rguenther@suse.de>
7339 PR tree-optimization/48702
7340 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
7341 only when we know the base address is within bounds.
7342 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
7343 assume the base address of TARGET_MEM_REFs is in bounds.
7345 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7348 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
7349 declaration in TARGET_SOLARIS.
7351 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
7353 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
7354 The instruction is then expanded explicitly.
7355 (supported_compare): Callable instruction.
7356 (compare): Likewise.
7358 2011-05-26 Jakub Jelinek <jakub@redhat.com>
7361 * gimplify.c (shortcut_cond_r): Don't special case
7362 COND_EXPRs if they have void type on one of their arms.
7364 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7366 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
7367 to reduce duplication, and to achieve a slightly more logical order
7370 2011-05-26 Jakub Jelinek <jakub@redhat.com>
7372 PR tree-optimization/49161
7373 * tree-vrp.c (struct case_info): New type.
7374 (compare_case_labels): Sort case_info structs instead of
7375 trees, and not primarily by CASE_LABEL uids but by
7376 label_for_block indexes.
7377 (find_switch_asserts): Put case labels into struct case_info
7378 array instead of TREE_VEC, adjust sorting, compare label_for_block
7379 values instead of CASE_LABELs.
7381 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7383 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
7384 ("orndi3_neon"): Likewise.
7385 ("bic<mode>3_neon"): Likewise.
7387 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
7389 PR tree-optimization/49038
7390 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
7391 Ensure at least one epilogue iteration if required by data
7393 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7394 to mark loops that require peeling for gaps.
7395 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
7396 (vect_get_known_peeling_cost): Take peeling for gaps into
7398 (vect_transform_loop): Generate epilogue if required by data
7400 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
7401 loop as requiring an epilogue if there are gaps in the end of
7404 2011-05-25 Ian Lance Taylor <iant@google.com>
7406 * godump.c (go_format_type): Output the first field with a usable
7409 2011-05-25 Ian Lance Taylor <iant@google.com>
7411 * godump.c (go_format_type): Check for invalid type names, pointer
7412 target types, and struct field types.
7414 2011-05-25 Jason Merrill <jason@redhat.com>
7416 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
7418 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
7420 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
7422 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7424 * config/i386/i386.md (*movqi_extv_1)): Put back
7425 "register_operand" check in "type" calculation.
7426 (*movqi_extzv_2): Likewise.
7428 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7430 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
7432 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7435 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
7436 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
7437 __divxc3, __divtc3): Wrap definitions in #ifndef.
7439 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7442 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
7443 "register_operand" check and replace q_regs_operand with
7444 QIreg_operand in "type" calculation.
7445 (*movqi_extv_1): Likewise.
7446 (*movqi_extzv_2_rex64): Likewise.
7447 (*movqi_extzv_2): Likewise.
7449 * config/i386/predicates.md (QIreg_operand): New.
7451 2011-05-25 Richard Guenther <rguenther@suse.de>
7453 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7454 type-based offset disambiguation, streamline MEM_REF and
7455 TARGET_MEM_REF handling.
7457 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7459 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
7460 (bdesc_special_args): Add pause intrinsic.
7462 * config/i386/i386.md (UNSPEC_PAUSE): New.
7465 * config/i386/ia32intrin.h (__pause): Likewise.
7467 * doc/extend.texi (X86 Built-in Functions): Add documentation for
7470 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7472 PR tree-optimization/46728
7473 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
7474 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
7476 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
7478 * tree.h (struct tree_exp): Inherit from struct tree_typed.
7479 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
7480 instead of TS_COMMON.
7482 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7484 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
7485 LIBGCC2_GNU_PREFIX is defined.
7487 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
7488 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
7489 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
7490 __clz_tab): Define using __N.
7491 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
7492 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7493 * target.def (libfunc_gnu_prefix): New hook.
7494 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7495 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7496 * doc/tm.texi: Regenerate.
7497 * system.h (LIBGCC2_GNU_PREFIX): Poison.
7498 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7500 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7501 (init_optabs): Likewise for the bswap libfuncs.
7502 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7504 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7505 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7506 * libgcc-std.ver: Remove.
7507 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7508 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7510 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7511 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7512 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7513 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7514 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7515 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7516 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7517 * config/fixed-bit.h (FIXED_OP): Define differently depending on
7518 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7519 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7521 2011-05-25 Jan Hubicka <jh@suse.cz>
7523 * lto-streamer-out.c (output_record_start): Use lto_output_enum
7524 (lto_output_tree): Use output_record_start.
7525 * lto-streamer-in.c (input_record_start): Use lto_input_enum
7526 (lto_get_pickled_tree): Use input_record_start.
7527 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7528 (lto_value_range_error): New function.
7529 * lto-streamer.h (lto_value_range_error): Declare.
7530 (lto_output_int_in_range, lto_input_int_in_range): New functions.
7531 (lto_output_enum, lto_input_enum): New macros.
7533 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
7535 * common.opt (flag_stack_usage_info): New variable.
7536 (-Wstack-usage): New option.
7537 * doc/invoke.texi (Warning options): Document -Wstack-usage.
7538 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7539 <OPT_fstack_usage>: Likewise.
7540 * toplev.c (output_stack_usage): Handle -Wstack-usage.
7541 * calls.c (expand_call): Test flag_stack_usage_info variable instead
7542 of flag_stack_usage.
7543 (emit_library_call_value_1): Likewise.
7544 * explow.c (allocate_dynamic_stack_space): Likewise.
7545 * function.c (instantiate_virtual_regs ): Likewise.
7546 (prepare_function_start): Likewise.
7547 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7548 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7549 * config/arm/arm.c (arm_expand_prologue): Likewise.
7550 (thumb1_expand_prologue): Likewise.
7551 * config/avr/avr.c (expand_prologue): Likewise.
7552 * config/i386/i386.c (ix86_expand_prologue): Likewise.
7553 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7554 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7555 * config/mips/mips.c (mips_expand_prologue): Likewise.
7556 * config/pa/pa.c (hppa_expand_prologue): Likewise.
7557 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7558 * config/s390/s390.c (s390_emit_prologue): Likewise.
7559 * config/sh/sh.c (sh_expand_prologue): Likewise.
7560 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7561 * config/spu/spu.c (spu_expand_prologue): Likewise.
7563 2011-05-25 Richard Guenther <rguenther@suse.de>
7565 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7566 (gimple_canonical_types_compatible_p): Likewise.
7568 2011-05-25 Jan Hubicka <jh@suse.cz>
7571 * ipa.c (function_and_variable_visibility): Only add to same
7572 comdat group list if DECL_ONE_ONLY.
7574 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
7576 PR rtl-optimization/49014
7577 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7579 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7582 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7584 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7586 PR rtl-optimization/48757
7587 * ira-build.c (loop_with_eh_edge_p): Rename to
7588 loop_with_complex_edge_p, check edges on complexity, make function
7590 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7593 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7595 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7596 force flag_ira_share_save_slots to 0.
7598 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7600 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7601 (vt_initialize): Set PROLOGUE_BB unconditionally.
7602 Add block comment about CFA_BASE_RTX machinery.
7603 Reset FP_CFA_OFFSET to -1 on all invalid paths.
7604 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7606 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
7609 * c-parser.c (c_parser_objc_class_instance_variables): More robust
7610 parsing of syntax error in ObjC instance variable lists. In
7611 particular, avoid an infinite loop if there is a stray ']'.
7612 Updated error message.
7614 2011-05-24 Ian Lance Taylor <iant@google.com>
7616 * godump.c (go_define): Don't accept a string immediately after
7619 2011-05-24 Ian Lance Taylor <iant@google.com>
7621 * godump.c (struct godump_container): Add invalid_hash field.
7622 (go_format_type): Return false if type is found in invalid_hash.
7623 (go_output_typedef): Add invalid type to invalid_hash.
7624 (go_finish): Create and delete invalid_hash.
7626 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7628 PR tree-optimization/46728
7629 * tree-ssa-math-opts.c (powi_table): New.
7630 (powi_lookup_cost): New.
7632 (powi_as_mults_1): New.
7633 (powi_as_mults): New.
7634 (gimple_expand_builtin_powi): New.
7635 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7636 (gate_cse_sincos): Remove sincos/cexp restriction.
7638 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7641 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7643 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7644 * mips-tdump.c: Likewise.
7646 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7649 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7650 add -mno-XXX. Handle FMA.
7652 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7654 PR rtl-optimization/48633
7655 * ira-build.c (loop_with_eh_edge_p): New function.
7656 (mark_loops_for_removal): Use it.
7658 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7660 PR rtl-optimization/48971
7661 * ira.c (setup_pressure_classes): Don't check register move cost
7662 for classes with one registers. Don't add pressure class if there
7663 is a pressure class with the same available hard registers.
7664 Check contains_reg_of_mode. Fix a typo in collecting
7665 temp_hard_regset. Ignore hard registers not belonging to a class.
7667 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
7670 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7672 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7673 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7675 PR gcov-profile/48845
7676 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7678 2011-05-24 Richard Guenther <rguenther@suse.de>
7680 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7681 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7682 (gimple_types_compatible_p_1): Adjust.
7683 (iterative_hash_canonical_type): Do not bother about complete vs.
7685 (gimple_canonical_types_compatible_p): Likewise.
7687 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7689 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7691 2011-05-24 Richard Guenther <rguenther@suse.de>
7694 * gimple.c (gimple_register_canonical_type): Revert
7696 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7697 does not for a tree for the case where it matters. Cache
7698 pointer-type alias-sets.
7700 2011-05-24 Joseph Myers <joseph@codesourcery.com>
7702 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7703 (OBJS): Remove options.o, opts-common.o and prefix.o.
7704 (OBJS-libcommon-target): New.
7705 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7706 (BACKEND): Include libcommon-target.a.
7707 (MOSTLYCLEANFILES): Include libcommon-target.a.
7708 (libcommon-target.a): New.
7709 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7712 2011-05-23 Joseph Myers <joseph@codesourcery.com>
7714 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7715 parts of output shared with the driver.
7716 * optc-gen.awk: Don't generate parts of output not shared with the
7718 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7719 * doc/options.texi (SourcerInclude): Mention options-save.c.
7720 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7721 (OBJS): Add options-save.o.
7722 (options-save.c, options-save.o): New.
7723 (options.o): Update dependencies.
7724 (gcc-options.o): Remove.
7725 (mostlyclean): Remove options-save.c.
7727 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7730 * dbxout.c: Include cgraph.h.
7731 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7732 and without value expr, return NULL if no varpool node exists for
7733 it or if it is not needed.
7734 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7737 * c-decl.c (start_decl): Convert expr to void_type_node.
7739 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7741 PR rtl-optimization/48826
7742 * emit-rtl.c (try_split): When splitting a call that is followed
7743 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7745 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7747 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7748 parameters passed in memory prefer using DECL_INCOMING_RTL over
7749 the pseudos it will be copied into.
7751 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7754 * config/i386/i386.c (ix86_option_override_internal): Save the
7755 initial options after checking vzeroupper.
7757 2011-05-23 David Li <davidxl@google.com>
7759 PR tree-optimization/48988
7760 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7761 Initialize has_valid_pred for each pred chain.
7763 2011-05-23 Richard Guenther <rguenther@suse.de>
7765 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7766 (iterative_hash_gimple_type): Always hash type names.
7768 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7770 * c-typeck.c (build_function_call_vec): Tweak call to
7771 check_function_arguments.
7773 2011-05-23 Richard Guenther <rguenther@suse.de>
7775 PR tree-optimization/49115
7776 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7777 is not necessarily carried out, do not claim it kills the ref.
7778 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7780 2011-05-23 Richard Guenther <rguenther@suse.de>
7783 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7784 what pointer types we accept for folding.
7786 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7788 * gthr-gnat.c: Remove.
7789 * gthr-gnat.h: Remove.
7790 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7791 * config/t-freebsd (LIB2ADDEH): Likewise.
7792 * config/t-linux (LIB2ADDEH): Likewise.
7793 * config/t-sol2 (LIB2ADDEH): Likewise.
7794 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7795 * configure.ac (target_thread_file): Remove gnat handling.
7796 * configure: Regenerate.
7797 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7799 2011-05-23 Tristan Gingold <gingold@adacore.com>
7800 Eric Botcazou <ebotcazou@adacore.com>
7802 * gcov.c (create_file_names): If no object directory is specified,
7803 keep the directory of the file.
7805 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7807 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7808 * configure: Regenerate.
7810 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7813 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7814 failed and the comparison has a single bit signed type, use
7815 constm1_rtx instead of const1_rtx for true value.
7816 (do_store_flag): If ops->type is single bit signed type, disable
7817 signel bit test optimization and pass -1 instead of 1 as last
7818 parameter to emit_store_flag_force.
7820 2011-05-23 Tom de Vries <tom@codesourcery.com>
7823 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7825 (infer_loop_bounds_from_undefined): Use new function.
7827 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7829 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7830 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7831 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7833 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7835 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7837 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7838 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7841 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7843 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7845 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7847 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7848 UNSPEC_MOVE_PIC pattern.
7850 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7852 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7853 (sparc-*-rtems*): Likewise.
7854 (sparc64-*-elf*): Likewise.
7855 (sparc64-*-rtems*): Likewise.
7856 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7857 * config/sparc/t-crtin: New file.
7858 * config/sparc/t-sol2 (crti.o): Delete rule.
7860 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7861 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7862 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7863 (ENDFILE_SPEC): Add crtn.o.
7865 2011-05-22 Tom de Vries <tom@codesourcery.com>
7868 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7869 CODE_CONTAINS_STRUCT (TS_COMMON).
7871 2011-05-22 Jakub Jelinek <jakub@redhat.com>
7874 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7875 only after deciding which mode to use.
7877 2011-05-22 Tom de Vries <tom@codesourcery.com>
7880 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7881 for call to get_shiftadd_cost.
7883 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
7886 * config/i386/cpuid.h (bit_MMXEXT): New define.
7888 2011-05-22 Nick Clifton <nickc@redhat.com>
7890 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7891 initialisation of non-existant args[2] element. Use args[] array
7892 not arg[] array to pass arguments to build_function_type_list.
7894 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
7896 PR tree-optimization/49087
7897 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7899 2011-05-21 Jason Merrill <jason@redhat.com>
7902 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7903 static storage duration.
7905 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7907 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7910 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7912 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7913 false if there are call-saved registers here...
7914 (sparc_can_use_return_insn_p): ...but here instead.
7915 (save_or_restore_regs): Fix thinko.
7916 (sparc_expand_prologue): Use current_function_is_leaf.
7917 (sparc_frame_pointer_required): Likewise.
7919 2011-05-21 Nick Clifton <nickc@redhat.com>
7922 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7924 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7926 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7927 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7929 2011-05-21 Joseph Myers <joseph@codesourcery.com>
7931 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7932 * optc-gen.awk: Move common code to opt-read.awk.
7933 * opth-gen.awk: Likewise.
7934 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7936 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7938 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7940 2011-05-20 Tom de Vries <tom@codesourcery.com>
7943 * tree-ssa-loop-ivopts.c: Include expmed.h.
7944 (get_shiftadd_cost): New function.
7945 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7947 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7950 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7951 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7953 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7955 * Makefile.in: Update comment referring to $(OBJS-common).
7957 2011-05-20 Ian Lance Taylor <iant@google.com>
7959 * godump.c (go_output_typedef): Put enum constants in the macro
7960 hash table to avoid duplicate Go const definitions.
7962 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7964 * Makefile.in (LIBDEPS): Add libcommon.a.
7966 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7967 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7968 pretty-print.o and version.o.
7969 (OBJS-libcommon): New.
7970 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7971 (BACKEND): Add libcommon.a.
7972 (MOSTLYCLEANFILES): Likewise.
7974 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7975 (cpp$(exeext)): Likewise.
7976 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7977 pretty-print.o and input.o.
7978 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7979 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7981 (mips-tfile): Don't explicitly use version.o.
7982 (mips-tdump): Likewise.
7983 (gcov.o): Depend on $(DIAGNOSTIC_H).
7984 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7985 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7986 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7987 * gcov-dump.c: Include intl.h and diagnostic.h.
7988 (main): Initialize diagnostics.
7989 * gcov.c: Include diagnostic.h.
7991 (main): Initialize diagnostics.
7992 * lto-wrapper.c: Include diagnostic.h.
7993 (main): Initialize diagnostics.
7995 2011-05-20 Michael Matz <matz@suse.de>
7997 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7999 2011-05-20 Michael Matz <matz@suse.de>
8000 Richard Guenther <rguenther@suse.de>
8002 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
8003 use lto_streamer_cache_append directly instead of returning a VEC.
8004 (preload_common_node): Remove.
8005 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
8007 (lto_streamer_cache_create): Call lto_preload_common_nodes.
8009 2011-05-20 Richard Guenther <rguenther@suse.de>
8011 PR tree-optimization/49079
8012 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
8013 MEM_REFs correctly for the trailing array access detection.
8014 Special case constants the same way as decls for overall size
8017 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
8019 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
8022 2011-05-20 Jakub Jelinek <jakub@redhat.com>
8024 PR tree-optimization/49073
8025 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
8026 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
8027 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
8029 2011-05-20 Richard Guenther <rguenther@suse.de>
8032 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
8033 of pointer types the same way the middle-end does.
8035 2011-05-20 Richard Guenther <rguenther@suse.de>
8037 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
8038 or pointer-to chains. Delay all fixup to uniquify_nodes.
8040 2011-05-19 Quentin Neill <quentin.neill@amd.com>
8042 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
8043 (fma4_fmaddsub): Likewise
8045 2011-05-19 Jan Hubicka <jh@suse.cz>
8047 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
8048 (GIMPLE_TYPE_PAIR_SIZE): New macro.
8049 (type_pair_cache): New static var.
8050 (lookup_type_pair): Use fixed sized custom hash; make inline.
8051 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
8052 calls of lookup_type_pair.
8053 (print_gimple_types_stats): Remove cache stats.
8054 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
8057 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
8059 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
8060 when TARGET_RDRND is active.
8061 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
8062 Generate dummy SImode target register when target is NULL.
8064 2011-05-19 Joseph Myers <joseph@codesourcery.com>
8066 * config/arm/arm-fpus.def: New.
8067 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
8069 * config/arm/arm-tables.opt: Regenerate.
8070 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
8071 (arm_option_override): Don't decode FPU name to string here.
8072 * config/arm/arm.opt (mfpu=): Use Enum.
8073 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
8074 Update dependencies.
8076 2011-05-19 Joseph Myers <joseph@codesourcery.com>
8078 * collect2.c: Include diagnostic.h.
8079 (fatal_perror, fatal, error, fancy_abort): Remove.
8080 (main): Set progname. Call xmalloc_set_program_name and
8081 diagnostic_initialize.
8082 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
8083 scan_libraries, resolve_lib_name): Call fatal_error instead of
8084 fatal and fatal_perror.
8085 * collect2.h (error, fatal, fatal_perror): Don't declare.
8086 * tlink.c: Include diagnostic-core.h.
8087 (recompile_files): Call fatal_error instead of fatal_perror.
8088 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
8089 pretty-print.o and input.o.
8090 (collect2.o, tlink.o): Update dependencies.
8092 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8094 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
8096 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8099 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
8100 COMDAT group syntax, both SPARC and x86 variants.
8101 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
8102 * configure: Regenerate.
8103 * config/sol2.h (TARGET_SOLARIS): Define.
8104 (PUSHSECTION_FORMAT): Remove.
8105 (SECTION_NAME_FORMAT): Define.
8106 * config/sol2.c: Include hashtab.h.
8107 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
8108 expansion, using SECTION_NAME_FORMAT.
8109 (solaris_comdat_htab): New variable.
8110 (struct comdat_entry): Define.
8111 (comdat_hash): New function.
8112 (comdat_eq): New function.
8113 (solaris_elf_asm_comdat_section): New function.
8114 (solaris_define_comdat_signature): New function.
8115 (solaris_code_end): New function.
8116 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
8117 (solaris_code_end): Declare.
8118 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
8119 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
8121 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
8122 Remove ATTRIBUTE_UNUSED.
8123 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
8124 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
8125 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
8126 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
8127 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
8128 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
8129 (PUSHSECTION_FORMAT): Remove.
8130 (SECTION_NAME_FORMAT): Redefine.
8132 2011-05-19 Kai Tietz <ktietz@redhat.com>
8134 * tree-cfg.c (verify_gimple_assign_binary): Barf on
8135 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
8136 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
8138 2011-05-19 Anatoly Sokolov <aesok@post.ru>
8139 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8141 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
8143 2011-05-19 Richard Guenther <rguenther@suse.de>
8146 * tree-object-size.c (addr_object_size): If the pointed-to
8147 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
8149 2011-05-19 Richard Guenther <rguenther@suse.de>
8151 * gimple.c (gimple_types_compatible_p_1): Compare names of
8152 the types themselves.
8153 (iterative_hash_gimple_type): And hash them that way.
8154 (gimple_register_type_1): If we register a main variant properly
8155 initialize the leader to ourselves.
8157 2011-05-19 Tom de Vries <tom@codesourcery.com>
8160 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
8161 get_loop_invariant_expr_id.
8162 (get_loop_invariant_expr_id): Use get_expr_id.
8163 (parm_decl_cost): New function.
8164 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
8165 Improve bound cost estimation. Use different inv_expr_id for elim and
8168 2011-05-19 Tom de Vries <tom@codesourcery.com>
8171 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
8172 cost_base.cost == 0.
8174 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
8177 * config/i386/sse.md
8178 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
8181 2011-05-18 Jakub Jelinek <jakub@redhat.com>
8183 PR tree-optimization/49039
8184 * tree-vrp.c (extract_range_from_binary_expr): For
8185 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
8186 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
8188 2011-05-18 Tom de Vries <tom@codesourcery.com>
8191 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
8193 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
8195 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
8196 (*tls_global_dynamic_64): Ditto.
8197 (*tls_local_dynamic_base_32_gnu): Ditto.
8198 (*tls_local_dynamic_base_64): Ditto.
8199 (tls_initial_exec_64_sun): Ditto.
8201 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
8203 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
8204 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8206 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8207 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8208 * config/bfin/bfin.c (bfin_cpus): Add bf592.
8209 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8210 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
8211 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
8212 * config/bfin/elf.h (LIB_SPEC): Add bf592.
8214 2011-05-18 Joseph Myers <joseph@codesourcery.com>
8216 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
8217 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8218 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
8219 target_thread_pointer, arm_structure_size_boundary, struct
8220 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
8221 struct abi_name, arm_all_abis): Remove.
8222 (arm_option_override) Don't process most enumerated option values here.
8223 Don't process target_fpe_name here. Work with integer not string for
8224 structure size boundary; use separate diagnostics for each case.
8225 * config/arm/arm.h (enum float_abi_type, enum
8226 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
8228 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
8229 arm_structure_size_boundary): Remove.
8230 * config/arm/arm.opt (mabi=): Use Enum and Init.
8231 (arm_abi_type): New Enum and EnumValue entries.
8232 (mfloat-abi=): Use Enum and Init.
8233 (float_abi_type): New Enum and EnumValue entries.
8234 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
8235 (mfp16-format=): Use Enum and Init.
8236 (arm_fp16_format_type): New Enum and EnumValue entries.
8237 (mstructure-size-boundary=): Use UInteger and Init.
8238 (mtp=): Use Enum and Init.
8239 (arm_tp_type): New Enum and EnumValue entries.
8241 2011-05-18 Richard Guenther <rguenther@suse.de>
8243 PR tree-optimization/49018
8244 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
8245 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
8246 gimple_has_side_effects.
8248 2011-05-18 Richard Guenther <rguenther@suse.de>
8250 * gimple.c (gimple_register_type_1): New function, split out from ...
8251 (gimple_register_type): ... here. Avoid infinite recursion.
8253 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
8255 PR tree-optimization/41881
8256 * tree-vectorizer.h (struct _loop_vec_info): Add new field
8257 reduction_chains along with a macro for its access.
8258 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
8259 (destroy_loop_vec_info): Free reduction chains.
8260 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
8261 (vect_is_slp_reduction): New function.
8262 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
8263 (vect_create_epilog_for_reduction): Support SLP reduction chains.
8264 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
8265 definition types for reduction chains.
8266 (vect_supported_load_permutation_p): Don't allow permutations for
8268 (vect_analyze_slp_instance): Support reduction chains.
8269 (vect_analyze_slp): Try to build SLP instance from reduction chains.
8270 (vect_get_constant_vectors): Handle reduction chains.
8271 (vect_schedule_slp_instance): Mark the first statement of the
8272 reduction chain as reduction.
8274 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
8276 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
8277 names for group elements access.
8278 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
8279 reduction chains as well. Remove data reference and interleaving
8280 related words from the fields names.
8281 * tree-vect-loop.c (vect_transform_loop): Use new names for group
8283 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
8284 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
8285 vect_update_interleaving_chain, vect_same_range_drs,
8286 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
8287 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
8288 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
8289 vect_analyze_group_access, vect_analyze_data_ref_access,
8290 vect_create_data_ref_ptr, vect_transform_strided_load,
8291 vect_record_strided_load_vectors): Likewise.
8292 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
8293 vect_model_load_cost, vectorizable_store, vectorizable_load,
8294 vect_remove_stores, new_stmt_vec_info): Likewise.
8295 * tree-vect-slp.c (vect_build_slp_tree,
8296 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
8298 2011-05-18 Richard Guenther <rguenther@suse.de>
8301 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
8302 operand verification.
8303 (verify_gimple_assign_binary): Likewise.
8304 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
8305 to non-1-precision BOOLEAN_TYPEs.
8307 2011-05-18 Tom de Vries <tom@codesourcery.com>
8310 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
8312 2011-05-18 Jakub Jelinek <jakub@redhat.com>
8314 PR tree-optimization/49000
8315 * tree-ssa.c (execute_update_addresses_taken): Call
8316 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
8317 be rewritten and decl has been marked for renaming, reset
8320 2011-05-17 Joseph Myers <joseph@codesourcery.com>
8322 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
8323 enum_opts_set when testing if attributes have set -mfpmath=.
8325 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
8327 * config/mips/mips.c (mips_handle_option): Remove unused variable.
8329 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
8331 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
8333 * tree-inline.c (maybe_inline_call_in_expr): Initialize
8334 id.transform_lang_insert_block with NULL.
8336 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
8338 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
8339 (output_fp_compare): Change args 3 and 4 to bool.
8340 (ix86_expand_call): Change arg 6 to bool.
8341 (ix86_attr_length_immediate_default): Change arg 2 to bool.
8342 (ix86_attr_length_vex_default): Change arg 3 to bool.
8343 * config/i386/i386.md: Update all uses.
8344 * config/i386/i386.c: Ditto.
8345 (ix86_flags_dependent): Change return type to bool.
8347 2011-05-17 Richard Guenther <rguenther@suse.de>
8349 * gimple.c (type_hash_pair_compare): Fix comparison.
8351 2011-05-17 Richard Guenther <rguenther@suse.de>
8353 * gimple.c (iterative_hash_gimple_type): Simplify singleton
8354 case some more, fix final hash value of the non-singleton case.
8356 2011-05-17 Richard Guenther <rguenther@suse.de>
8360 2011-05-16 Richard Guenther <rguenther@suse.de>
8362 * gimple.c (gimple_types_compatible_p_1): Use names of the
8363 type itself, not its main variant.
8364 (iterative_hash_gimple_type): Likewise.
8366 2011-05-17 Richard Guenther <rguenther@suse.de>
8368 * gimple.c (gimple_register_canonical_type): Use the main-variant
8369 leader for computing the canonical type.
8371 2011-05-17 Nick Clifton <nickc@redhat.com>
8373 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
8376 * config/rx/rx.md: Add peephole to remove redundant extensions
8378 (bitset_in_memory): Use rx_restricted_mem_operand.
8379 (bitinvert_in_memory): Likewise.
8380 (bitclr_in_memory): Likewise.
8382 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
8383 Nick Clifton <nickc@redhat.com>
8385 * config/rx/rx.md: Add peepholes to match a register move followed
8386 by a comparison of the moved register. Replace these with an
8387 addition of zero that does both actions in one instruction.
8389 2011-05-17 Jakub Jelinek <jakub@redhat.com>
8392 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
8393 predicate to allow CONST_INT.
8394 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
8396 2011-05-16 Joseph Myers <joseph@codesourcery.com>
8398 * opts-common.c (opt_enum_arg_to_value): New.
8399 * opts.h (opt_enum_arg_to_value): Declare.
8400 * config/i386/i386.opt (fpmath): Remove.
8401 (mfpmath=): Use Enum, Init and Save.
8402 (fpmath_unit): New Enum and EnumValue entries.
8403 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
8404 name for function fpmath state.
8405 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
8406 * config/i386/i386.c: Include diagnostic.h.
8407 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
8408 (ix86_target_string): Take enum fpmath_unit value instead of string.
8409 (ix86_debug_options): Update call to ix86_target_string.
8410 (ix86_option_override_internal): Don't process fpmath strings here.
8411 (x86_function_specific_save, ix86_function_specific_restore):
8412 Don't handle fpmath state specially.
8413 (ix86_function_specific_print): Pass fpmath state to
8414 ix86_target_string instead of printing in this function.
8415 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
8416 Handle enum attributes.
8417 (IX86_ATTR_ENUM, ix86_opt_enum): New.
8418 (ix86_valid_target_attribute_tree): Update option_strings
8419 handling. Handle fpmath as enum option.
8420 (ix86_can_inline_p): Update field names for function fpmath state.
8421 (ix86_expand_builtin): Update call to ix86_target_string.
8422 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
8423 (ix86_fpmath): Remove.
8424 * config/i386/t-i386 (i386.o): Update dependencies.
8426 2011-05-16 Joseph Myers <joseph@codesourcery.com>
8428 PR preprocessor/48677
8429 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
8430 from decoded_options[0], not from itself.
8432 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
8434 * config/i386/constraints.md (z): New constraint.
8435 * config/i386/i386.c (c): New mode attribute.
8436 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
8437 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
8438 constraint for operand 0.
8439 (*call_vzeroupper): Ditto.
8440 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
8441 (*call_rex64_ms_sysv_vzeroupper): Ditto.
8442 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
8443 Use "lzm" constraint for operand 0.
8444 (*call_pop_vzeroupper): Ditto.
8445 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
8446 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
8447 constraint for operand 0.
8448 (*sibcall_vzeroupper): Ditto.
8449 (*sibcall_rex64_ms_sysv): Ditto.
8450 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
8451 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
8452 *sibcall_pop_1. Use "Uz" constraint for operand 0.
8453 (*sibcall_pop_vzeroupper): Ditto.
8454 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
8455 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
8456 mode iterator. Use "<c>zm" constraint for operand 1.
8457 (*call_value_vzeroupper): Ditto.
8458 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
8460 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
8461 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
8462 *call_value_pop_1. Use "lzm" constraint for operand 1.
8463 (*call_value_pop_vzeroupper): Ditto.
8464 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
8465 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
8466 mode iterator. Use "Uz" constraint for operand 1.
8467 (*sibcall_value_vzeroupper): Ditto.
8468 (*sibcall_value_rex64_ms_sysv): Ditto.
8469 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
8470 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
8471 constraint for operand 1.
8472 (*sibcall_value_pop_vzeroupper): Ditto.
8473 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
8474 and "z" constraint for operand 2.
8475 (*tls_global_dynamic_32_gnu): Ditto.
8476 (*tls_local_dynamic_base_32_gnu): Ditto.
8477 (*tls_local_dynamic_base_64): Ditto.
8478 (*tls_local_dynamic_32_once): Ditto.
8479 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
8481 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
8483 2011-05-16 Richard Guenther <rguenther@suse.de>
8485 * gimple.c (gimple_types_compatible_p_1): Use names of the
8486 type itself, not its main variant.
8487 (iterative_hash_gimple_type): Likewise.
8489 2011-05-16 Richard Guenther <rguenther@suse.de>
8491 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
8492 always visit pointer target and function result and argument types.
8494 2011-05-16 Jason Merrill <jason@redhat.com>
8497 * tree-inline.c (copy_statement_list): Put back recursion.
8499 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
8503 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8504 * config/avr/avr.md ("*ior<mode>qi.byte0",
8505 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8507 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
8510 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8511 register is needed for a function argument.
8513 2011-05-16 Richard Guenther <rguenther@suse.de>
8515 * gimple.c (struct type_hash_pair): New type.
8516 (type_hash_pair_compare): New function.
8517 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
8519 2011-05-16 Revital Eres <revital.eres@linaro.org>
8521 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
8523 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
8525 * config/i386/i386.md (floating point move splitters): Fix
8526 usage of standard_80387_constant_p.
8527 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8529 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
8531 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8533 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
8535 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8536 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8537 (tree_ssa_lim_finalize): Likewise.
8539 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
8541 * config/i386/constraint.md (Yd, Yx): New register constraints.
8542 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
8543 Yd conditional register constraint.
8544 (*movtf_internal): Use standard_sse_constant_opcode.
8545 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
8546 Yx conditional register constraint.
8547 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
8548 Yd conditional register constraint. Use standard_sse_constant_p to
8549 check for valid SSE constants and call standard_sse_constant_opcode to
8551 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8552 constants and call standard_sse_constant_opcode to output SSE insn.
8553 * config/i386/i386.c (ix86_option_ovverride_internal): Set
8554 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
8555 optimize_size is set.
8556 (standard_sse_constant_opcode): Output conditional AVX insn templates.
8558 2011-05-14 Tobias Burnus <burnus@net-b.de>
8560 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8562 2011-05-13 Martin Jambor <mjambor@suse.cz>
8564 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8565 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8566 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8567 (evaluate_conditions_for_ipcp_clone): Removed.
8568 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8569 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8570 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8572 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
8574 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8575 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8576 lieu of MAY_HAVE_DEBUG_STMTS.
8577 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8578 debug statements if !MAY_HAVE_DEBUG_STMTS.
8580 2011-05-13 Martin Thuresson <martint@google.com>
8582 PR gcov-profile/47793
8583 * libgcov.c (gcov_exit): Support relative profile paths.
8584 * doc/invoke.texi (-fprofile-dir): Update for above change.
8586 2011-05-13 Richard Guenther <rguenther@suse.de>
8588 * gimple.c (gimple_canonical_types_compatible_p): Do not use
8589 type-pair caching, do not compare hashes.
8591 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
8594 * tree-cfg.c (edge_to_cases_cleanup): Return true.
8595 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8597 2011-05-13 Kai Tietz <ktietz@redhat.com>
8599 * gimplify.c (gimplify_expr): Make sure operand is boolified.
8600 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8601 compatible type for TRUTH_NOT_EXPR.
8603 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
8605 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8606 (ix86_hard_regno_mode_ok): Change return value to bool. Use
8607 can_create_pseudo_p ().
8609 2011-05-13 Richard Guenther <rguenther@suse.de>
8612 * gimple.c (iterative_hash_gimple_type): Revert change in
8613 pointer target and function result and argument hashing.
8615 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
8617 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8618 (*movxf_internal_nointeger): Ditto.
8619 (*movdf_internal_rex64): Ditto.
8620 (*movdf_internal): Ditto.
8621 (*movdf_internal_nointeger): Ditto.
8622 (*movsf_internal): Ditto.
8623 (sincos splitters): Use can_create_pseudo ().
8625 2011-05-13 Joseph Myers <joseph@codesourcery.com>
8627 * config/i386/i386-opts.h: New.
8628 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8629 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8630 ix86_section_threshold): Remove.
8631 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8632 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8634 (ix86_option_override_internal): Don't decode strings for options
8635 other than -march=, -mtune= and -mfpmath=. Don't allow for
8636 __attribute__ uses in remaining diagnostics for options with
8637 string arguments. Don't check for integer arguments being negative.
8638 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8639 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8640 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8641 ix86_branch_cost, ix86_section_threshold): Remove.
8642 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8644 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8646 (masm=): Use Enum and Init.
8647 (asm_dialect): New Enum and EnumValue entries.
8648 (mbranch-cost=): Use UInteger.
8649 (mlarge-data-threshold=): Use UInteger and Init.
8650 (mcmodel=): Use Enum and Init.
8651 (cmodel): New Enum and EnumValue entries.
8652 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8653 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8654 mregparm=): Use UInteger.
8655 (mstringop-strategy=): Use Enum and Init.
8656 (stringop_alg): New Enum and EnumValue entries.
8657 (mtls-dialect=): Use Enum and Init.
8658 (tls_dialect): New Enum and EnumValue entries.
8659 (mabi=): Use Enum and Init.
8660 (calling_abi): New Enum and EnumValue entries.
8661 (mveclibabi=): Use Enum and Init.
8662 (ix86_veclibabi): New Enum and EnumValue entries.
8664 2011-05-13 Nick Clifton <nickc@redhat.com>
8666 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8667 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8669 2011-05-13 Kai Tietz <ktietz@redhat.com>
8672 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8673 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8674 (gimple_boolify): Check for cast for boolean_type_node instead for
8677 2011-05-13 Richard Guenther <rguenther@suse.de>
8679 PR tree-optimization/48172
8680 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8681 multiplying by number of iterations for equal step.
8682 (vect_create_cond_for_alias_checks): Likewise.
8684 2011-05-13 Andreas Schwab <schwab@redhat.com>
8686 * configure.ac: Use AS_HELP_STRING throughout.
8687 * configure: Regenerate.
8689 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8691 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8692 (ix86_emit_restore_regs_using_mov): Likewise.
8693 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8695 2011-05-12 Anatoly Sokolov <aesok@post.ru>
8697 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8698 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8699 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8700 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8701 RTX_OK_FOR_OLO10_P): ...here.
8702 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8705 2011-05-12 Kai Tietz <ktietz@redhat.com>
8707 * gimplify.c (gimple_boolify): Re-boolify expression
8708 arguments even if expression type is of kind BOOLEAN_TYPE.
8709 (gimplify_boolean_expr): Removed.
8710 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8711 and XOR. Additional take care that we keep expression's type.
8712 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8713 of TRUTH_AND|OR|XOR_EXPR.
8715 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8717 PR tree-optimization/48975
8718 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8719 on all bbs here and free and clear ifc_bbs at the end.
8721 2011-05-12 Richard Guenther <rguenther@suse.de>
8723 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8724 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8725 until after simple checks.
8726 (gimple_types_compatible_p): Likewise.
8727 (iterative_hash_gimple_type): Always hash pointer targets
8728 and function return and argument types.
8729 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8730 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8731 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8732 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8733 completely in the simple compare section.
8734 (gimple_register_canonical_type): Query the cache again after
8737 2011-05-12 Richard Guenther <rguenther@suse.de>
8739 PR tree-optimization/48172
8740 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8741 the number of iterations from the segment size calculation.
8742 (vect_create_cond_for_alias_checks): Adjust.
8744 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8747 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8748 if validate_subreg fails.
8750 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
8752 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8753 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8756 2011-05-12 DJ Delorie <dj@redhat.com>
8758 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8759 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8760 created builtin into rx_builtins array.
8761 (rx_builtin_decl): New function.
8762 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
8764 2011-05-12 DJ Delorie <dj@redhat.com>
8765 Nick Clifton <nickc@redhat.com>
8767 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8768 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8769 (rx_is_legitimate_address): Add pre-decrement and post-increment
8770 addressing in HImode and QImode. Fix test for out of range
8772 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8773 (rx_align_for_label): Test label before extracting its usage count.
8774 (rx_adjust_insn_lengths): Fix selection of insn codes.
8775 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8777 2011-05-11 Jason Merrill <jason@redhat.com>
8779 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8781 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8783 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8784 reindent the subsequent block.
8786 2011-05-11 Satoru Takabayashi <satorux@google.com>
8787 Paul Pluzhnikov <ppluzhnikov@google.com>
8789 * doc/install.texi (Configuration): Document --with-linker-hash-style.
8790 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8791 * config.in: Add LINKER_HASH_STYLE.
8792 * configure.ac: Add --with-linker-hash-style.
8793 * configure: Regenerate.
8795 2011-05-11 Richard Guenther <rguenther@suse.de>
8798 * gimple.c (iterative_hash_canonical_type): Fix typo.
8800 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
8802 * config/i386/i386.c (legitimize_tls_address)
8803 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8804 expanders directly for TARGET_GNU2_TLS. Determine pic and
8805 __tls_get_addr symbol reference here. Update call to
8806 gen_tls_global_dynamic_{32,64} for added arguments.
8807 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8808 expanders directly for TARGET_GNU2_TLS. Determine
8809 __tls_get_addr symbol reference here. Update call to
8810 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8811 unique UNSPEC REG_EQUIV to libcall block.
8812 (ix86_tls_get_addr): Declare static.
8813 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8814 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8815 Do not determine pic and __tls_get_addr symbol reference here. Do not
8816 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8817 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8818 (tls_global_dynamic_64): Add operand 2. Do not determine
8819 __tls_get_addr symbol reference here. Do not call
8820 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8821 (tls_local_dynamic_base64): Ditto for operand 1.
8823 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8825 * function.c (expand_function_start): Initialize stack_check_probe_note
8826 only if the generic stack checking mechanism is used.
8828 2011-05-11 Richard Guenther <rguenther@suse.de>
8830 PR tree-optimization/15256
8831 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8832 (A & B) | C, combine (A op CST1) op CST2.
8833 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8834 visit assigns that have uses.
8836 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8838 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8839 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8840 (unpack_ts_type_common_value_fields): ...this. Update comment.
8841 (unpack_value_fields): Adjust for renaming.
8842 (lto_input_ts_type_tree_pointers): Split into...
8843 (lto_input_ts_type_common_tree_pointer): ...this and...
8844 (lto_input_ts_type_non_common_tree_pointers): ...this.
8845 (lto_input_tree_pointers): Adjust for above split.
8846 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8847 (pack_ts_type_common_value_fields): ...this. Update comment.
8848 (lto_output_ts_type_tree_pointers): Split into...
8849 (lto_output_ts_type_common_tree_pointers): ...this and...
8850 (lto_output_ts_type_non_common_tree_pointers): ...this.
8851 (lto_output_tree_pointers): Adjust for above split.
8852 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8853 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8854 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8855 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8857 (struct tree_type): Split into...
8858 (struct tree_type_common: ...this and...
8859 (struct tree_type_with_lang_specific): ...this and...
8860 (struct tree_type_non_common): ...this. Adjust accessor macros
8862 (TYPE_VALUES_RAW): Define.
8863 (union tree_node): Update for above changes.
8864 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8866 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8867 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8868 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8869 * treestructu.def (TS_TYPE): Remove.
8870 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8873 2011-05-11 Jakub Jelinek <jakub@redhat.com>
8876 * tree-ssa.c (reset_debug_uses): New function.
8877 * tree-flow.h (reset_debug_uses): New prototype.
8878 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8879 * tree-loop-distribution.c (generate_loops_for_partition): Call
8880 reset_debug_uses on the stmts that will be removed. Keep around
8881 all debug stmts, don't count them as bits in partition bitmap.
8882 (generate_builtin): Don't count debug stmts or labels as bits in
8885 2011-05-11 Richard Guenther <rguenther@suse.de>
8887 * gimple.c (gimple_type_hash_1): Merge with ...
8888 (gimple_type_hash): ... this.
8889 (gtc_visit): Remove mode parameter and simplify accordingly.
8890 (gimple_types_compatible_p_1): Likewise.
8891 (gimple_types_compatible_p): Likewise.
8892 (iterative_hash_gimple_type): Likewise.
8894 (gimple_type_eq): Adjust.
8896 2011-05-11 Revital Eres <revital.eres@linaro.org>
8898 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8899 enters the branch create an anti edge in the opposite direction
8900 to prevent the creation of reg-moves.
8901 * modulo-sched.c: Adjust comment to reflect the fact we are
8902 scheduling closing branch.
8903 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8904 (stage_count): New field in struct partial_schedule.
8905 (calculate_stage_count): New function.
8906 (normalize_sched_times): Rename to reset_sched_times and handle
8907 incrementing the sched time of the nodes by a constant value
8908 passed as parameter.
8909 (duplicate_insns_of_cycles): Skip closing branch.
8910 (sms_schedule_by_order): Schedule closing branch.
8911 (ps_insn_find_column): Handle closing branch.
8912 (sms_schedule): Call reset_sched_times and adjust the code to
8913 support scheduling of the closing branch.
8914 (ps_insert_empty_row): Update calls to normalize_sched_times
8915 and rotate_partial_schedule functions.
8917 2011-05-11 Richard Guenther <rguenther@suse.de>
8920 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8922 2011-05-11 Joseph Myers <joseph@codesourcery.com>
8924 * opts.c (finish_options): Move warning settings from process_options.
8925 * toplev.c (process_options): Move warning settings to finish_options.
8927 2011-05-11 Richard Guenther <rguenther@suse.de>
8929 PR tree-optimization/18041
8930 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8931 (simplify_bitwise_binary): ... this. Handle operand conversions
8932 by applying them to the result instead.
8933 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8935 2011-05-11 Richard Guenther <rguenther@suse.de>
8937 * gimple.c (gimple_canonical_types_compatible_p): Split out
8938 from gimple_types_compatible_p and friends. Do not recurse
8939 to pointed-to types.
8940 (gimple_canonical_type_eq): Use it.
8941 (iterative_hash_canonical_type): Split out from
8942 iterative_hash_gimple_type and friends. Do not recurse
8943 to pointed-to types.
8944 (gimple_canonical_type_hash): Use it, allocate the hash here.
8946 2011-05-11 Revital Eres <revital.eres@linaro.org>
8948 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8951 2011-05-11 Revital Eres <revital.eres@linaro.org>
8953 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8954 instead of PREV_INSN.
8956 2011-05-11 Revital Eres <revital.eres@linaro.org>
8958 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8959 * loop-doloop.c (doloop_condition_get): Likewise.
8960 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8962 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8964 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8966 * tree.def (CASE_LABEL_EXPR): Add an operand.
8967 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8969 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8971 * c-decl.c (c_override_global_bindings_to_false): Remove.
8972 (global_bindings_p): Don't check
8973 c_override_global_bindings_to_false.
8974 * c-tree.h (c_override_global_bindings_to_false): Remove.
8975 * c-typeck.c (composite_type): Don't set
8976 c_override_global_bindings_to_false.
8978 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8980 PR target/48857, 48495
8981 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8983 (VSX_MOVE_MODE): Ditto.
8984 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8985 VSX vector types. Add V2DImode.
8986 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8987 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8988 (MODES_TIEABLE_P): Ditto.
8990 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8991 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8993 (init_cumulative_args): Ditto.
8994 (rs6000_function_arg_boundary): Ditto.
8995 (rs6000_function_arg_advance_1): Ditto.
8996 (rs6000_function_arg): Ditto.
8997 (rs6000_function_ok_for_sibcall): Ditto.
8998 (emit_frame_save): Ditto.
8999 (rs6000_function_value): Ditto.
9000 (rs6000_libcall_value): Ditto.
9002 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9004 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9005 i386/darwin-lib.h to $libgcc_tm_file.
9006 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
9008 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9010 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
9012 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9014 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
9015 * config/rs6000/rs6000-tables.opt: New file (generated).
9016 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
9017 rs6000/rs6000-tables.opt to extra_options.
9018 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
9019 * config/rs6000/rs6000.c (rs6000_select): Remove.
9020 (processor_target_table): Move contents to rs6000-cpus.def.
9021 (darwin_rs6000_override_options): Check
9022 global_options_set.x_rs6000_cpu_index instead of
9023 rs6000_select[1].string.
9024 (rs6000_option_override_internal): Likewise.
9025 (rs6000_handle_option): Don't assert that global structures are in
9026 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
9027 (rs6000_default_cpu): New variable.
9028 (rs6000_file_start): Set it instead of local default_cpu. Check
9029 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
9030 global_options_set.x_rs6000_tune_index instead of rs6000_select.
9031 (rs6000_darwin_file_start): Check rs6000_default_cpu and
9032 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
9033 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
9034 rs6000_select): Remove.
9035 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
9037 (mcpu=, mtune=): Use Var, Init, Enum and Save.
9038 * config/rs6000/t-rs6000
9039 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
9040 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9041 global_options_set.x_rs6000_cpu_index instead of
9042 rs6000_select[1].string.
9043 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9044 global_options_set.x_rs6000_cpu_index instead of
9045 rs6000_select[1].string.
9047 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9049 * config.gcc (libgcc_tm_file): Define instead of including files
9050 from ../../libgcc/config/ in tm_file.
9051 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
9052 * configure: Regenerate.
9053 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
9054 libgcc_tm.h, cs-libgcc_tm.h): New.
9055 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
9056 (clean): Remove libgcc_tm.h.
9057 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
9058 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
9059 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
9061 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
9064 * config/avr/avr.c (avr_ret_register): Return unsigned int
9066 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
9067 it to avr_libcall_value.
9068 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
9070 (avr_expand_binop_builtin): Ditto.
9071 (avr_expand_unop_builtin): Ditto.
9073 2011-05-10 DJ Delorie <dj@redhat.com>
9075 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
9076 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
9077 * config/rx/rx.c (rx_align_for_label): Add label and
9078 uses_threshold parameters. Do not align when the label is not
9080 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
9082 2011-05-10 Richard Guenther <rguenther@suse.de>
9084 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
9085 a series of conversions and apply foldings similar to what
9087 (tree_ssa_forward_propagate_single_use_vars): Call it.
9089 2011-05-10 Jakub Jelinek <jakub@redhat.com>
9091 PR tree-optimization/48611
9092 PR tree-optimization/48794
9093 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
9094 referenced from RESX or EH_DISPATCH arguments.
9097 * dfp.c (decimal_to_decnumber): Handle conversion from
9098 dconst{1,2,m1,half}.
9100 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9102 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
9103 for !flag_prefer_avx128.
9104 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
9106 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
9108 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
9109 (fold_ternary_loc): Use expr_location_or.
9111 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
9114 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
9115 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
9116 Pmode and mem_mode is not VOIDmode.
9118 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
9120 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
9121 TYPE_QUAL_RESTRICT): Convert to enum.
9123 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9125 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
9126 (const_pow2_1_to_8_operand): Ditto.
9127 (const_pow2_1_to_128_operand): Ditto.
9128 (const_pow2_1_to_32768_operand): Ditto.
9129 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
9130 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
9131 in insn constraint to check integer value of operand 3.
9132 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
9134 (PINSR_MODE): New mode iterator.
9135 (sse2p4_1): New mode attribute.
9136 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
9137 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
9138 iterator. Use const_int_operand instead of
9139 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
9140 exact_log2 in insn constraint to check integer value of operand 3.
9142 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9144 * config/i386/sse.md (blendbits): Remove mode attribute.
9145 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9146 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9147 Check integer value of operand 3 in insn constraint.
9149 2011-05-09 Richard Guenther <rguenther@suse.de>
9151 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
9153 (lto_symtab_merge): Likewise. Do not register types here.
9154 (lto_symtab_merge_decls_2): Likewise.
9155 (lto_symtab_merge_decls_1): Likewise.
9156 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9157 * gimple.c (enum gtc_mode): Declare.
9158 (gimple_types_compatible_p): Make static.
9160 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9162 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
9163 temporary register to match Pmode.
9165 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9167 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
9168 and *vec_concatv4si_1_avx.
9170 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9172 PR rtl-optimization/48927
9173 * ira-conflicts.c (commutative_constraint_p): Use
9174 recog_data.alternative_enabled_p to disable alternatives where
9175 "enabled" attribute is false.
9176 (get_dup_num): Ditto.
9177 * ira-lives.c (single_reg_class): Ditto.
9178 (ira_implicitly_set_insn_hard_regs): Ditto.
9180 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
9182 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
9183 (dataflow_set_preserve_mem_locs): Likewise.
9185 2011-05-09 Philipp Thomas <pth@suse.de>
9187 * config/mep/mep.c (mep_validate_vliw): Syntax description
9188 should not be translated.
9190 2011-05-09 Joseph Myers <joseph@codesourcery.com>
9192 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
9193 * config/mips/mips-tables.opt: New file (generated).
9194 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
9195 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
9196 MIPS_ARCH_OPTION_NATIVE): Define.
9197 * config/mips/mips.c (mips_cpu_info_table): Move contents to
9199 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
9200 mips_parse_cpu): Remove.
9201 (mips_cpu_info_from_opt, mips_default_arch): New.
9202 (mips_handle_option): Don't assert that global structures are in
9203 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
9204 (mips_option_override): Use new variables and functions to set
9205 state of these options. Use strcmp to check for individual CPU names.
9206 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
9208 * config/mips/mips.opt (march=): Use ToLower and Enum.
9209 (mips): Use ToLower, Enum and Var.
9210 (mtune=): Use ToLower and Enum.
9211 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
9213 2011-05-08 Jan Hubicka <jh@suse.cz>
9215 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
9216 Arrange type pairs to be UID ordered.
9217 (gimple_lookup_type_leader): Make inline.
9219 2011-05-09 Nick Clifton <nickc@redhat.com>
9222 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
9226 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
9229 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
9231 * combine.c (simplify_comparison): Abstract out parts into...
9232 (simplify_compare_const): ... new function.
9233 (try_combine): Generalize parallel arithmetic/compare combining
9234 to call simplify_compare_const() and CANONICALIZE_COMPARE().
9236 2011-05-08 Jan Hubicka <jh@suse.cz>
9238 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
9239 (cgraph_create_virtual_clone): Call hooks once virtual clone
9241 * cgraph.h (cgraph_clone_node): Update prototype.
9242 * ipa-cp.c (ipcp_estimate_growth): Use
9243 estimate_ipcp_clone_size_and_time.
9244 * ipa-inline-transform.c (clone_inlined_nodes): Update.
9245 * lto-cgraph.c (input_node): Update.
9246 * ipa-inline.c (recursive_inlining): Update.
9247 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
9248 (evaluate_conditions_for_known_args): Break out from ...
9249 (evaluate_conditions_for_edge): ... here.
9250 (evaluate_conditions_for_ipcp_clone): New function.
9251 (inline_node_duplication_hook): Update clone summary based
9253 (estimate_callee_size_and_time): Rename to ...
9254 (estimate_node_size_and_time): take NODE instead of EDGE;
9255 take POSSIBLE_TRUTHS as argument.
9256 (estimate_callee_size_and_time): Update.
9257 (estimate_ipcp_clone_size_and_time): New function.
9258 (do_estimate_edge_time): Update.
9260 2011-05-08 Richard Guenther <rguenther@suse.de>
9264 * expmed.c (expand_shift_1): Compute adjusted constant shift
9267 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
9269 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
9271 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
9273 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
9275 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
9277 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
9279 2011-05-07 Jan Hubicka <jh@suse.cz>
9281 * ipa-inline-transform.c (inline_call): Account when program size
9283 * ipa-inline.c (relative_time_benefit): New function.
9284 (edge_badness): Reorganize to be power 2 based; fix thinko when
9285 computing badness for negative growth; update comments to match
9286 reality; better dumps.
9288 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
9290 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
9291 type to bool and adjust comment.
9292 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
9293 (fold_mathfn_compare): Remove calls to global_bindings_p.
9294 (fold_inf_compare): Likewise.
9295 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
9296 * c-tree.h (global_bindings_p): Adjust prototype.
9297 * c-decl.c (global_bindings_p): Return bool and simplify.
9299 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
9301 PR tree-optimization/48837
9302 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
9303 when accumulator transformation is performed.
9305 2011-05-06 Jan Hubicka <jh@suse.cz>
9307 * i386.h (ix86_tune_indices): Add
9308 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
9309 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
9310 * i386.c (initial_ix86_tune_features): Add
9311 X86_SOFTARE_PREFETCHING_BENEFICIAL.
9312 (software_prefetching_beneficial_p): Remove predicate.
9313 (ix86_option_override_internal): Use new macro.
9315 2011-05-06 Jan Hubicka <jh@suse.cz>
9317 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
9319 2011-05-06 Jan Hubicka <jh@suse.cz>
9321 * cgraph.c (cgraph_add_thunk): Create real function node instead
9322 of alias node; finalize it and mark needed/reachale; arrange visibility
9323 to be right and add it into the corresponding same comdat group list.
9324 (dump_cgraph_node): Dump thunks.
9325 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
9326 cgraph_function_with_gimple_body_p,
9327 cgraph_first_function_with_gimple_body,
9328 cgraph_next_function_with_gimple_body): New functions.
9329 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
9331 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
9332 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9333 * cgraphunit.c (cgraph_finalize_function): Only look into possible
9334 devirtualization when optimizing.
9335 (verify_cgraph_node): Verify thunks.
9336 (cgraph_analyze_function): Analyze thunks.
9337 (cgraph_mark_functions_to_output): Output thunks only in combination
9338 with function they are assigned to.
9339 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
9340 alias into normal node.
9341 (assemble_thunks): New functoin.
9342 (cgraph_expand_function): Use it.
9343 * lto-cgraph.c (lto_output_node): Stream thunks.
9344 (input_overwrite_node): Stream in thunks.
9345 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
9346 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
9347 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
9348 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
9349 (inline_analyze_function): Do not care about thunk jump functions.
9350 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
9351 * ipa-prop.c (ipa_prop_write_jump_functions): Use
9352 cgraph_function_with_gimple_body_p.
9353 * passes.c (do_per_function_toporder): Use
9354 cgraph_function_with_gimple_body_p.
9355 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9356 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
9357 (function_called_by_processed_nodes_p): Likewise.
9359 2011-05-06 Joseph Myers <joseph@codesourcery.com>
9361 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
9362 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
9364 (mabi=): Replace with separate entries for mabi=altivec,
9365 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
9366 mabi=ieeelongdouble and mabi=ibmlongdouble.
9367 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
9368 check for -mabi=spe without SPE ABI support here.
9369 (rs6000_handle_option): Replace OPT_mabi_ handling with
9370 OPT_mabi_altivec and OPT_mabi_spe handling.
9372 2011-05-06 Cary Coutant <ccoutant@google.com>
9374 * dwarf2out.c (contains_subprogram_definition): New function.
9375 (should_move_die_to_comdat): Call it.
9377 2011-05-06 Jeff Law <law@redhat.com>
9379 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
9380 remove_ctrl_stmt_and_useless_edges.
9381 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
9382 (fixup_template_block, thread_single_edge): Likewise.
9383 (mark_threaded_blocks): Use THREAD_TARGET.
9385 2011-05-06 Alan Modra <amodra@gmail.com>
9388 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9389 const0_rtx as the arg to the dummy __tls_get_addr libcall.
9391 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
9393 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
9394 constraint modifier to "r".
9396 2011-05-06 Joseph Myers <joseph@codesourcery.com>
9398 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9399 fall through for OPT_mcmodel_.
9401 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9403 * config/s390/s390.c (s390_asm_trampoline_template): Comment
9405 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
9407 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9410 * config/arm/arm.opt (marm): Document it.
9411 (mthumb): Reject negative variant.
9413 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
9416 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9417 Fix typo in "ccvt" variable name.
9419 2011-05-06 Tristan Gingold <gingold@adacore.com>
9422 * config/vms/vms-ar.c (main): Remove cwd variable.
9424 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9427 * var-tracking.c (prepare_call_arguments): Move else before #endif.
9429 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9431 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
9432 * gimplify.c (gimplify_switch_expr): Likewise.
9433 * omp-low.c (expand_omp_sections): Likewise.
9434 * tree-eh.c (lower_try_finally_switch): Likewise.
9435 (lower_eh_dispatch): Likewise.
9436 * tree.h (build_case_label): Declare.
9437 * tree.c (build_case_label): Define.
9439 2011-05-05 Jason Merrill <jason@redhat.com>
9442 * tree-inline.c (copy_tree_r): Use copy_statement_list.
9443 (copy_statement_list): Don't recurse.
9444 * stor-layout.c (copy_self_referential_tree_r): Don't allow
9447 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9449 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
9450 through from -mfpu= handling.
9451 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
9453 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
9455 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
9458 2011-05-05 Steve Ellcey <sje@cup.hp.com>
9460 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
9462 (hppa[12]*-*-hpux11*): Ditto.
9463 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
9464 * config/ia64/hpux-unix2003.h: New.
9465 * config/pa/pa-hpux1131.opt: New.
9466 * config/pa/pa-hpux1131.h: New.
9467 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
9468 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
9469 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
9471 2011-05-05 Jakub Jelinek <jakub@redhat.com>
9474 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
9475 instead of mode as 3rd argument to recursive call.
9476 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
9477 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
9479 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
9480 don't give up if mode is Pmode and mem_mode is not VOIDmode.
9481 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
9482 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
9484 2011-05-05 Julian Brown <julian@codesourcery.com>
9486 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
9487 parenthesis in D-register case.
9489 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9491 * opt-functions.awk (var_type_struct): Handle Enum options.
9492 * optc-gen.awk: Don't check range of variables of character type.
9493 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9494 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9495 rs6000_sdata_name, rs6000_explicit_options): Remove.
9496 (rs6000_option_override_internal): Check for -malign-power here.
9497 Use global_options_set instead of rs6000_explicit_options.
9498 (rs6000_parse_fpu_option): Remove.
9499 (rs6000_handle_option): Access variables via opts and opts_set
9500 pointers. Use error_at and warning_at. Add fall-through
9501 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9502 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9503 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9504 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9505 here. Don't use rs6000_parse_fpu_option.
9506 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9507 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9508 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9510 (mspe): Use Var and Save.
9511 (mtraceback=): Use Enum and Var.
9512 (rs6000_traceback_type): New Enum and EnumValue entries.
9513 (mfloat-gprs=): Use Enum, Var and Save.
9514 (rs6000_float_gprs): New Enum and EnumValue entries.
9515 (mlong-double-): use Var and Save.
9516 (msched-costly-dep=, minsert-sched-nops=): Use Var.
9517 (malign-): Use Enum and Var.
9518 (rs6000_alignment_flags): New Enum and EnumValue entries.
9520 (fpu_type_t): New Enum and EnumValue entries.
9521 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9522 global_options_set instead of rs6000_explicit_options.
9523 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9524 global_options_set instead of rs6000_explicit_options.
9525 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9526 global_options_set instead of rs6000_explicit_options.
9527 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9528 global_options_set instead of rs6000_explicit_options.
9529 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9530 global_options_set instead of rs6000_explicit_options.
9531 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9532 global_options_set instead of rs6000_explicit_options.
9533 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9535 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9536 global_options_set instead of rs6000_explicit_options.
9537 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9538 (rs6000_cmodel): New Enum and EnumValue entries.
9539 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9540 global_options_set instead of rs6000_explicit_options.
9541 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9542 (mtls-size=): Use Enum and Var.
9543 (rs6000_tls_size): New Enum and EnumValue entries.
9545 2011-05-05 Michael Matz <matz@suse.de>
9547 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9548 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9549 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9550 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9551 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9552 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9553 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9554 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9555 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9556 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9557 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9558 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9559 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9560 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9561 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9562 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9564 2011-05-05 Richard Guenther <rguenther@suse.de>
9566 * expmed.c (expand_variable_shift): Rename to ...
9567 (expand_shift_1): ... this. Take an expanded shift amount.
9568 For rotates recurse directly not building trees for the shift amount.
9569 (expand_variable_shift): Wrap around expand_shift_1.
9570 (expand_shift): Adjust.
9572 2011-05-05 Jakub Jelinek <jakub@redhat.com>
9574 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9576 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9578 * tree.h (get_pending_sizes): Remove prototype.
9579 (put_pending_size): Likewise.
9580 (put_pending_sizes): Likewise.
9581 * stor-layout.c (pending_sizes): Delete.
9582 (get_pending_sizes): Likewise.
9583 (put_pending_size): Likewise.
9584 (put_pending_sizes): Likewise.
9585 (variable_size): Do not call put_pending_size and tidy up.
9586 * function.h (struct function): Remove dont_save_pending_sizes_p.
9587 * lto-streamer-in.c (input_function): Do not stream it.
9588 * lto-streamer-out.c (output_function): Likewise.
9589 * tree-inline.c (initialize_cfun): Do not copy it.
9590 * c-decl.c (store_parm_decls): Do not set it.
9591 * omp-low.c (create_task_copyfn): Likewise.
9592 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9594 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
9596 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9598 (*movdf_internal): Ditto.
9599 (*movdf_internal_nointeger): Ditto.
9600 (*movsf_internal): Ditto.
9602 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9604 * c-decl.c (finish_decl): Don't call get_pending_sizes.
9605 (grokparm): Add parameter expr. Pass it to grokdeclarator.
9606 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
9607 (c_variable_size): Remove.
9608 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
9609 call put_pending_sizes.
9610 (get_parm_info): Add parameter expr. Use it to set
9611 arg_info->pending_sizes.
9612 (store_parm_decls): Use arg_info->pending_sizes instead or calling
9614 * c-parser.c (c_parser_parms_declarator): Update call to
9615 c_parser_parms_list_declarator.
9616 (c_parser_parms_list_declarator): Take parameter expr. Update
9617 call to push_parm_decl. Update recursive call. Don't call
9618 get_pending_sizes. Update calls to get_parm_info.
9619 (c_parser_objc_method_definition): Update calls to
9620 c_parser_objc_method_decl and objc_start_method_definition.
9621 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9622 (c_parser_objc_method_decl): Add parameter expr. Update call to
9624 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9625 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9626 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9628 2011-05-05 Michael Hope <michael.hope@linaro.org>
9631 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9634 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9636 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9637 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9638 (spu_output_mi_thunk): New function.
9640 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9642 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9643 targetm.asm_out.print_operand.
9644 * config/sol2.c: Include target.h.
9646 2011-05-04 Jan Hubicka <jh@suse.cz>
9648 * ipa-inline.c (reset_edge_caches): New function.
9649 (update_caller_keys): Add check_inlinablity_for; do not
9650 reset edge caches; remove now unnecesary loop.
9651 (update_callee_keys): Add comments; reset node_growth_cache of callee.
9652 (update_all_callee_keys): Likewise.
9653 (inline_small_functions): Sanity check cache; update code
9656 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9658 PR rtl-optimization/47612
9659 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9660 as the last insn of the sequence to be moved.
9662 2011-05-04 Tobias Burnus <burnus@net-b.de>
9665 * doc/invoke.texi (Ofast): Document that it
9666 enables Fortran's -fno-protect-parens.
9668 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9670 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9672 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9674 * stor-layout.c (variable_size): Do not issue errors.
9676 2011-05-04 Richard Guenther <rguenther@suse.de>
9678 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9679 for array-ref indices.
9680 (tree_coverage_counter_addr): Likewise.
9681 (build_fn_info_type): Use size_int for index types.
9682 (build_gcov_info): Likewise.
9684 2011-05-04 Richard Guenther <rguenther@suse.de>
9686 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9688 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9689 for constructor indices.
9690 (push_init_level): Likewise.
9692 2011-05-04 Richard Guenther <rguenther@suse.de>
9694 * explow.c (promote_mode): Move variable declarations before code.
9696 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9698 * tree.h (build_function_type_array): Declare.
9699 (build_varargs_function_type_array): Declare.
9700 (build_function_type_vec, build_varargs_function_type_vec): Define.
9701 * tree.c (build_function_type_array_1): New function.
9702 (build_function_type_array): New function.
9703 (build_varargs_function_type_array): New function.
9705 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9707 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9708 before setting STMT_VINFO_TYPE.
9710 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9712 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9713 instead of spu_pass_by_reference.
9715 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9717 * calls.c (emit_library_call_value_1): Invoke
9718 promote_function_mode hook on libcall arguments.
9719 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9720 argument being NULL.
9721 * targhooks.c (default_promote_function_mode): Lisewise.
9722 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9723 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9725 * doc/tm.texi: Document that TYPE argument might be NULL.
9727 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9729 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9731 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9734 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9736 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9738 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9739 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9741 * mips-tfile.c: ... here.
9742 Don't include coretypes.h, tm.h, filenames.h.
9743 (saber_stop): Remove definition and all calls.
9744 [__SABER__]: Remove.
9745 (__LINE__): Remove default.
9746 (Size_t, Ptrdiff_t): Remove definitions.
9747 Replace by size_t, ptrdiff_t.
9748 [!MIPS_DEBUGGING_INFO]: Remove.
9749 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9750 (progname): Add const.
9752 Replace all uses by static.
9753 (ALIGN_SYMTABLE_OFFSET): Remove default.
9754 * mips-tdump.c: Don't include coretypes.h, tm.h.
9755 Remove !MIPS_IS_STAB guard.
9756 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9757 $(TM_H), filenames.h dependencies.
9758 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9760 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9763 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9764 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9766 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9769 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9770 account and save/restore RETS.
9771 (PROFILE_BEFORE_PROLOGUE): Define.
9772 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9773 the push insn to use predecrement.
9775 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9778 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9780 2011-05-04 Nick Clifton <nickc@redhat.com>
9782 * config/mn10300/mn10300.c: Include cfgloop.h.
9784 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9785 Lcc or a FLcc insn into the instruction stream.
9786 (mn10300_block_contains_call): New function. Returns true if the
9787 given basic block contains a CALL insn.
9788 (mn10300_loop_contains_call_insn): New function. Returns true if
9789 the given loop contains a CALL insn.
9790 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9791 to use the SETLB and Lcc or FLcc insns.
9792 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9793 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9794 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9795 disable the SETLB optimization.
9796 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9797 __SETLB__ or __NO_SETLB__.
9798 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9799 (movsf_internal): Handle MDR register.
9800 (cmpsi): Make visible.
9801 (setlb): New pattern.
9803 (FLcc): New pattern.
9805 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9808 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9809 for reg<->xmm moves.
9810 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9811 (vec_concatv2di_rex64_sse): Ditto.
9812 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9813 (*vec_extractv2di_1_rex64): Ditto.
9816 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9818 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9820 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9822 2011-05-04 Richard Guenther <rguenther@suse.de>
9824 * tree.h (int_const_binop): Remove notrunc argument.
9825 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9826 create integer constants that are properly truncated.
9827 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9828 (const_binop): Remove zero notrunc argument to int_const_binop.
9829 (size_binop_loc): Likewise.
9830 (fold_div_compare): Likewise.
9831 (maybe_canonicalize_comparison_1): Likewise.
9832 (fold_comparison): Likewise.
9833 (fold_binary_loc): Likewise.
9834 (multiple_of_p): Likewise.
9835 * expr.c (store_constructor): Likewise.
9836 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9837 (maybe_fold_stmt_addition): Likewise.
9838 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9839 * stor-layout.c (layout_type): Likewise.
9840 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9841 * tree-sra.c (build_ref_for_offset): Likewise.
9842 (build_user_friendly_ref_for_offset): Likewise.
9843 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9844 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9845 * tree-ssa-loop-niter.c (inverse): Likewise.
9846 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9847 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9848 * tree-switch-conversion.c (check_range): Likewise.
9849 (build_constructors): Likewise.
9850 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9851 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9852 (extract_range_from_assert): Likewise.
9853 (vrp_int_const_binop): Likewise.
9854 (extract_range_from_binary_expr): Likewise.
9855 (extract_range_from_unary_expr): Likewise.
9856 (check_array_ref): Likewise.
9857 (find_case_label_range): Likewise.
9858 (simplify_div_or_mod_using_ranges): Likewise.
9859 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9860 comparing case labels for merging.
9862 2011-05-03 Mark Wielaard <mjw@redhat.com>
9864 * dwarf2out.c (debug_str_hash_forced): Removed.
9865 (gen_label_for_indirect_string): Removed.
9866 (get_debug_string_label): Removed.
9867 (AT_string_form): Generate label directly.
9868 (output_indirect_string): Test indirect_string_node for
9869 DW_FORM_strp instead of checking label and refcount.
9870 (prune_indirect_string): Removed.
9871 (prune_unused_types): Don't check debug_str_hash_forced or
9872 call prune_indirect_string.
9874 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9877 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9879 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9883 * combine.c (try_combine): Skip debug insns at m_split tests.
9885 2011-04-26 Mark Wielaard <mjw@redhat.com>
9888 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9889 when info_section_emitted.
9891 2011-05-03 Joseph Myers <joseph@codesourcery.com>
9893 * config/mips/mips-opts.h: New.
9894 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9896 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9897 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9898 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9900 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9902 (mips_abi, mips_code_readable): Don't declare.
9903 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9904 (mabi=): Use Enum and Var.
9905 (mips_abi): New Enum and EnumValue entries.
9906 (mcode-readable=): Use Enum and Var.
9907 (mips_code_readable_setting): New Enum and EnumValue entries.
9908 (mr10k-cache-barrier=): Use Enum and Var.
9909 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9911 2011-05-03 Jan Hubicka <jh@suse.cz>
9913 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9914 replace hash by pointer map.
9915 (cgraph_node_set_element_def, cgraph_node_set_element,
9916 const_cgraph_node_set_element, varpool_node_set_element_def,
9917 varpool_node_set_element, const_varpool_node_set_element): Remove.
9918 (free_cgraph_node_set, free_varpool_node_set): New function.
9919 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9920 * tree-emutls.c: Free varpool node set.
9921 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9922 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9923 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9924 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9925 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9926 Move here from ipa.c; implement using pointer_map
9927 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9928 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9929 debug_cgraph_node_set, varpool_node_set_new,
9930 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9931 dump_varpool_node_set, debug_varpool_node_set):
9932 Move to ipa-uitls.c.
9933 * passes.c (ipa_write_summaries): Update.
9935 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9937 From Mike Frysinger:
9938 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9939 bf542/bf544/bf547/bf548/bf549.
9941 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9943 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9945 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9948 * config/bfin/bfin.md (MOVCC): New mode_macro.
9949 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9950 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9951 comments from generated assembly.
9953 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9956 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9957 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9958 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9959 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9960 * config/bfin/lib1funcs.asm (___muldi3): New function.
9962 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9964 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9965 build_function_type_list instead of build_function_type.
9966 Rearrange initialization of `args' to do so.
9968 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9970 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9971 instead of build_function_type.
9973 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9975 * config/rs6000/rs6000.c (spe_init_builtins): Call
9976 build_function_type_list instead of build_function_type.
9977 (paired_init_builtins, altivec_init_builtins): Likewise.
9978 (builtin_function_type): Likewise.
9980 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9982 * config/sh/sh.c (sh_media_init_builtins): Call
9983 build_function_type_list instead of build_function_type.
9985 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9987 * config/sparc/sparc.c (sparc_file_end): Call
9988 build_function_type_list instead of build_function_type.
9990 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9992 * config/alpha/alpha.c (alpha_init_builtins): Call
9993 build_function_type_list instead of build_function_type.
9995 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9997 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9998 build_function_type_list instead of build_function_type.
10000 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10002 * config/iq2000/i2000.c (iq2000_init_builtins): Call
10003 build_function_type_list instead of build_function_type.
10004 Delete `endlink' variable.
10006 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10008 * config/avr/avr.c (avr_init_builtins): Call
10009 build_function_type_list instead of build_function_type.
10011 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10013 * config/picochip/picochip.c (picochip_init_builtins): Call
10014 build_function_type_list instead of build_function_type.
10015 Delete `endlink' variable.
10017 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10019 * config/bfin/bfin.c (bfin_init_builtins): Call
10020 build_function_type_list instead of build_function_type.
10022 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10025 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
10026 that's not CONST_INT. Seemingly redundant check is due to PR39768.
10028 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10031 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
10032 libbffastfp overrides libgcc when -mfast-fp.
10034 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10036 Originally from Bernd Schmidt
10037 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
10038 * config/bfin/bfin.c (override_options): Test it and error if
10041 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10043 Originally From Bernd Schmidt
10044 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
10047 2011-05-03 Jeff Law <law@redhat.com>
10049 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
10050 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
10051 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
10052 than accessing AUX field directly. Free the AUX field before
10054 (thread_block, thread_through_loop_header): Likewise.
10055 (thread_single_edge, mark_threaded_blocks): Likewise.
10056 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
10057 (register_jump_thread): Do not attempt to thread to a NULL edge.
10059 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
10061 * function.c (init_function_start): Call decide_function_section.
10062 * varasm.c (decide_function_section): New function.
10063 (assemble_start_function): When not using
10064 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
10065 or first_function_block_is_cold.
10066 * rtl.h (decide_function_section): Declare.
10068 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
10069 Jakub Jelinek <jakub@redhat.com>
10072 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
10073 only succeed if req_mode is the same as set_mode.
10075 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
10077 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
10078 * genemit.c (gen_exp): Handle RETURN.
10079 * emit-rtl.c (verify_rtx_sharing): Likewise.
10080 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
10081 * rtl.c (copy_rtx): RETURN is shared.
10082 * rtl.h (enum global_rtl_index): Add GR_RETURN.
10084 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
10085 * config/s390/s390.c (s390_emit_epilogue): Likewise.
10086 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
10087 * config/cris/cris.c (cris_expand_return): Likewise.
10088 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
10089 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
10090 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
10091 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
10092 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
10094 * config/v850/v850.c (expand_epilogue): Likewise.
10095 * config/bfin/bfin.c (bfin_expand_call): Likewise.
10096 * config/arm/arm.md (epilogue): Likewise.
10097 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
10098 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
10099 variable to ret_reg.
10101 2011-05-03 Richard Guenther <rguenther@suse.de>
10104 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
10105 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
10106 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10108 2011-05-03 Richard Guenther <rguenther@suse.de>
10110 * c-decl.c (grokdeclarator): Instead of looking at
10111 TREE_OVERFLOW check if the constant fits in the index type.
10113 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
10115 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
10116 (vec_store_lanes<mode><mode>): Likewise.
10118 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
10120 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
10121 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
10122 convert_optab_index values.
10123 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
10124 * genopinit.c (optabs): Initialize the new optabs.
10125 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
10126 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
10127 (expand_STORE_LANES): New functions.
10128 * tree.h (build_array_type_nelts): Declare.
10129 * tree.c (build_array_type_nelts): New function.
10130 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
10131 (vect_model_load_cost): Likewise.
10132 (vect_store_lanes_supported, vect_load_lanes_supported)
10133 (vect_record_strided_load_vectors): Declare.
10134 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
10135 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
10136 (vect_transform_strided_load): Split out statement recording into...
10137 (vect_record_strided_load_vectors): ...this new function.
10138 * tree-vect-stmts.c (create_vector_array, read_vector_array)
10139 (write_vector_array, create_array_ref): New functions.
10140 (vect_model_store_cost): Add store_lanes_p argument.
10141 (vect_model_load_cost): Add load_lanes_p argument.
10142 (vectorizable_store): Try to use store-lanes functions for
10143 interleaved stores.
10144 (vectorizable_load): Likewise load-lanes and loads.
10145 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
10146 to vect_model_store_cost.
10147 (vect_build_slp_tree): Likewise vect_model_load_cost.
10149 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
10151 * hooks.h (hook_bool_mode_uhwi_false): Declare.
10152 * hooks.c (hook_bool_mode_uhwi_false): New function.
10153 * target.def (array_mode_supported_p): New hook.
10154 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
10155 * doc/tm.texi: Regenerate.
10156 * stor-layout.c (mode_for_array): New function.
10157 (layout_type): Use it.
10158 * config/arm/arm.c (arm_array_mode_supported_p): New function.
10159 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
10161 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
10164 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
10165 for -fstack-check if the size to allocate is negative.
10167 2011-05-02 Lawrence Crowl <crowl@google.com>
10169 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
10170 (timevar_cond_start): New for starting a timer only when it is not
10172 (timevar_cond_stop): New for stopping a timer when it was not already
10175 * timevar.c (timevar_stop): Enable start/stop timers to start again.
10176 (timevar_cond_start): New as above.
10177 (timevar_cond_stop): New as above.
10179 * timevar.def: Add start/stop timers for compiler phases,
10180 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
10181 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
10182 and TV_PHASE_FINALIZE.
10183 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
10184 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
10185 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
10186 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
10187 Make unused TV_OVERLOAD into a start/stop timer.
10189 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
10190 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
10191 to indicate that they are start/stop timers.
10193 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
10194 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
10195 Move initialization to do_compile.
10196 (do_compile): Add initialization from above.
10197 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
10199 * c-decl.c (c_write_global_declarations): Add start/stop of
10200 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
10202 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
10203 or TV_PARSE_INLINE, as appropriate.
10204 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
10205 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
10207 2011-05-02 Jason Merrill <jason@redhat.com>
10210 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
10212 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
10215 * c-decl.c (finish_decl): Only create a composite if the types are
10218 2011-05-02 Joseph Myers <joseph@codesourcery.com>
10220 * config/fr30/fr30-protos.h (Mmode): Don't define.
10221 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
10222 definition where used.
10223 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
10224 define. Expand definitions where used.
10225 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
10226 Expand definitions where used.
10227 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
10228 rx_function_arg, rx_function_arg_advance,
10229 rx_function_arg_boundary): Expand definitions of those macros.
10230 * config/v850/v850-protos.h (Mmode): Don't define. Expand
10231 definition where used.
10233 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
10235 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10237 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
10238 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
10239 with *movv2sf_internal_rex64_avx.
10240 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
10241 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
10242 Use %v prefix in insn mnemonic to handle TARGET_AVX.
10243 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
10244 "vex" in "prefix" attribute calculation.
10245 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
10247 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
10250 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
10251 inputs match the output.
10253 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
10256 * config/m68k/m68k.c (m68k_expand_prologue): Set
10257 current_function_static_stack_size.
10259 2011-05-02 Jan Hubicka <jh@suse.cz>
10261 * lto-streamer.c (lto_streamer_cache_insert_1,
10262 lto_streamer_cache_lookup, lto_streamer_cache_create,
10263 lto_streamer_cache_delete): Use pointer map instead of hashtable.
10264 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
10266 2011-05-02 Joseph Myers <joseph@codesourcery.com>
10268 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
10269 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
10270 config/m68k/t-opts: New files.
10271 * config/m68k/m68k-tables.opt: New file (generated).
10272 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
10273 extra_options and m68k/t-opts to tmake_file.
10274 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
10275 (all_isas): Initialize using m68k-isas.def.
10276 (all_microarchs): Initialize using m68k-microarchs.def.
10277 (m68k_find_selection): Remove.
10278 (m68k_handle_option): Don't assert that global structures are in
10279 use. Use error_at. Access variables via opts pointer. Don't
10280 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
10281 directly for -m68020-40 and -m68020-60.
10282 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
10283 m68k_tune_entry here.
10284 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
10286 (m68k_library_id_string): Remove declaration.
10287 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
10288 (m68k_library_id_string): New Variable.
10289 (march=, mcpu=, mtune=): Use Enum and Var.
10291 2011-05-02 Richard Guenther <rguenther@suse.de>
10293 * varasm.c (output_constructor_regular_field): Compute zero-based
10294 index with double-ints. Make sure to ICE instead of producing
10296 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
10297 in asserts. Properly use a signed type.
10299 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
10301 * config/i386/sse.md (V): New mode iterator.
10302 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
10304 (V_256): Rename from AVX256MODE.
10305 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
10306 condition to all users.
10308 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
10309 condition to all users.
10310 (VF_128): Make V4SF mode unconditional.
10311 (VF_256): Rename from AVX256MODEF2P.
10312 (VI4F_128): Rename from SSEMODE4S.
10313 (VI8F_128): Rename from SSEMODE2D.
10314 (VI4F_256): Rename from AVX256MODE8P.
10315 (VI8F_256): Rename from AVX256MODE4P.
10316 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
10317 (ssescalarmodesuffix): Remove SF and DF modes.
10318 (SSEMODE124): Remove.
10319 (SSEMODE1248): Ditto.
10320 (SSEMODEF2P): Ditto.
10321 (AVXMODEF2P): Ditto.
10322 (AVXMODEFDP): Ditto.
10323 (AVXMODEFSP): Ditto.
10324 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
10326 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
10328 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
10329 xop_pcmov_<mode>256. Use V mode iterator.
10331 Adjust RTX patterns globally for renamed mode attributes.
10333 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10335 * haifa-sched.c (sched_emit_insn): Emit insn before first
10336 non-scheduled insn. Inform back-end about new insn. Add
10337 new insn to scheduled_insns list.
10339 2011-05-02 Richard Guenther <rguenther@suse.de>
10341 PR tree-optimization/48822
10342 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
10343 (process_scc): Indicate which iteration we start.
10345 2011-05-02 Jan Hubicka <jh@suse.cz>
10347 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
10348 (lto_section_overrun): New.
10349 * lto-section-out.c (append_block): Rename to ...
10350 (lto_append_block): ... this one; export.
10351 (lto_output_1_stream): Move lto lto-streamer.h
10352 (lto_output_data_stream): Update.
10353 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
10354 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
10357 2011-05-02 Richard Guenther <rguenther@suse.de>
10359 * tree.c (tree_code_counts): New global array.
10360 (record_node_allocation_statistics): Count individual tree codes.
10361 (dump_tree_statistics): Dump individual code stats.
10363 2011-05-01 Jan Hubicka <jh@suse.cz>
10365 * ipa-inline.c (caller_growth_limits): Fix thinko when
10366 looking for largest stack frame.
10367 * ipa-inline.h (dump_inline_summary): Declare.
10368 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
10370 (dump_inline_summary): Export.
10371 (debug_inline_summary): Declare as DEBUG_FUNCTION.
10373 2011-05-01 Anatoly Sokolov <aesok@post.ru>
10375 * reginfo.c (memory_move_cost): Change rclass argument type form
10376 'enum reg_class' to reg_class_t.
10377 * reload.h (memory_move_cost): Update prototype.
10378 * postreload.c reload_cse_simplify_set): Change type dclass var to
10380 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
10382 (ira_allocate_and_set_costs): Change aclass argument type form
10383 'enum reg_class' to reg_class_t.
10384 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
10385 Change aclass argument type to reg_class_t.
10386 (update_conflict_hard_reg_costs): Change type aclass and pref vars
10388 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
10389 memory_move_cost call.
10391 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
10392 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
10393 Change type tmp var to reg_class_t.
10395 2011-04-30 Jan Hubicka <jh@suse.cz>
10397 * ipa-inline.c (can_inline_edge_p): Disregard limits when
10398 inlining into function with flatten attribute.
10399 (want_inline_small_function_p): Be more realistic about inlining
10400 cold calls where callee size grows.
10402 2011-04-30 Jan Hubicka <jh@suse.cz>
10404 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
10407 2011-04-30 Anatoly Sokolov <aesok@post.ru>
10409 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10410 PRINT_OPERAND_PUNCT_VALID_P): Remove.
10411 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
10412 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
10413 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10414 (print_operand): Rename to...
10415 (sparc_print_operand): ...this. Make static. Adjust
10416 sparc_print_operand function call.
10417 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
10420 2011-04-30 Jan Hubicka <jh@suse.cz>
10422 PR middle-end/48752
10423 * ipa-inline.c (early_inliner): Disable when doing late
10424 addition of function.
10426 2011-04-30 Jakub Jelinek <jakub@redhat.com>
10428 * dwarf2out.c (get_address_mode): New inline.
10429 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
10430 if not dwarf_strict emit
10431 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
10432 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
10433 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
10434 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
10435 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
10436 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
10437 mem_loc_descriptor callers.
10438 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10439 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
10440 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
10441 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
10442 (base_types): New variable.
10443 (get_base_type_offset, calc_base_type_die_sizes,
10444 base_type_for_mode, mark_base_types, base_type_cmp,
10445 move_marked_base_types): New functions.
10446 (calc_die_sizes): Assert that die_offset is 0 or equal to
10448 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
10449 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
10450 callers. If not dwarf_strict, call mem_loc_descriptor even for
10451 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
10452 (gen_subprogram_die): Don't give up on call site parameters
10453 with non-integral or large integral modes. Adjust
10454 mem_loc_descriptor callers.
10455 (prune_unused_types): Call prune_unused_types_mark on base_types
10457 (resolve_addr): Call mark_base_types.
10458 (dwarf2out_finish): Call move_marked_base_types.
10460 PR tree-optimization/48809
10461 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
10463 (gen_inbound_check): Don't compute index_expr - range_min in utype
10464 again, instead reuse SSA_NAME initialized in build_arrays.
10465 Remove two useless gsi_for_stmt calls.
10467 2011-04-29 Jeff Law <law@redhat.com>
10469 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
10471 2011-04-29 Martin Jambor <mjambor@suse.cz>
10473 * cgraph.h (cgraph_postorder): Remove declaration.
10474 * ipa-utils.h (ipa_free_postorder_info): Declare.
10475 (ipa_reverse_postorder): Likewise.
10476 * cgraphunit.c: Include ipa-utils.h.
10477 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
10478 * ipa-inline.c: Include ipa-utils.h.
10479 (ipa_inline): Update call to ipa_reverse_postorder.
10480 * ipa-pure-const.c (propagate_pure_const): Update call to
10481 ipa_reduced_postorder and ipa_print_order. Call
10482 ipa_free_postorder_info to clean up.
10483 (propagate_nothrow): Likewise.
10484 * ipa-reference.c (propagate): Removed a useless call to
10485 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
10486 and ipa_print_order. Call ipa_free_postorder_info to clean up.
10487 * ipa.c: Include ipa-utils.h.
10488 (ipa_profile): Update call to ipa_reverse_postorder.
10489 (cgraph_postorder): Moved to...
10490 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
10491 (ipa_utils_print_order): Renamed to ipa_print_order.
10492 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10494 (ipa_free_postorder_info): New function.
10495 * passes.c: Include ipa-utils.h.
10496 (do_per_function_toporder): Update call to ipa_reverse_postorder.
10497 (ipa_write_summaries): Likewise.
10498 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10499 (cgraphunit.o): Likewise.
10501 (ipa-inline.o): Likewise.
10503 2011-04-29 Jan Hubicka <jh@suse.cz>
10505 * gcc.dg/tree-ssa/inline-10.c: New testcase.
10506 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10507 * ipa-inline.h (clause_t): Turn into unsigned int.
10508 * ipa-inline-analysis.c (add_clause): Do more simplification.
10509 (and_predicates): Shortcut more cases.
10510 (predicates_equal_p): Move forward; check that clauses are properly
10512 (or_predicates): Shortcut more cases.
10513 (edge_execution_predicate): Rewrite as...
10514 (set_cond_stmt_execution_predicate): ... this function; handle
10515 __builtin_constant_p.
10516 (set_switch_stmt_execution_predicate): New .
10517 (compute_bb_predicates): New.
10518 (will_be_nonconstant_predicate): Update TODO.
10519 (estimate_function_body_sizes): Use compute_bb_predicates
10520 and free them later, always try to estimate if stmt is constant.
10521 (estimate_time_after_inlining, estimate_size_after_inlining):
10522 Gracefully handle optimized out edges.
10523 (read_predicate): Fix off by one error.
10525 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
10527 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10529 2011-04-27 Xinliang David Li <davidxl@google.com>
10531 * tree-profile.c (init_ic_make_global_vars): Set
10532 tls attribute on ic vars.
10533 * coverage.c (coverage_end_function): Initialize
10534 function_list with zero.
10536 2011-04-29 Richard Guenther <rguenther@suse.de>
10538 * builtins.c (fold_builtin_classify_type): Use integer_type_node
10539 for the type of the result.
10540 (fold_builtin_isascii): Likewise.
10541 (fold_builtin_toascii): Use integer_type_node where appropriate.
10542 (fold_builtin_logb): Likewise.
10543 (fold_builtin_frexp): Likewise.
10544 (fold_builtin_strstr): Likewise.
10545 (fold_builtin_strpbrk): Likewise.
10546 (fold_builtin_fputs): Likewise.
10547 (fold_builtin_sprintf): Likewise.
10548 (fold_builtin_snprintf): Likewise.
10549 (fold_builtin_printf): Likewise.
10550 (do_mpfr_remquo): Use a proper type for the assigned constant.
10551 (do_mpfr_lgamma_r): Likewise.
10552 * dwarf2out.c (resolve_one_addr): Use size_int.
10553 * except.c (init_eh): Likewise.
10554 (assign_filter_values): Use integer_type_node for filter values.
10555 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10557 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10558 for EH region numbers.
10559 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10560 for the shift amount.
10562 2011-04-29 Richard Guenther <rguenther@suse.de>
10564 * expr.h (expand_shift): Rename to ...
10565 (expand_variable_shift): ... this.
10566 (expand_shift): Take a constant shift amount.
10567 * expmed.c (expand_shift): Rename to ...
10568 (expand_variable_shift): ... this.
10569 (expand_shift): New wrapper around expand_variable_shift.
10570 * expr.c (convert_move, emit_group_load_1, emit_group_store,
10571 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10572 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10573 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10574 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10575 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10576 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10577 emit_store_flag_1, emit_store_flag): Likewise.
10578 * builtins.c (expand_builtin_signbit): Likewise.
10579 * calls.c (load_register_parameters): Likewise.
10580 * function.c (assign_parm_setup_block): Likewise.
10581 * lower-subreg.c (resolve_shift_zext): Likewise.
10582 * optabs.c (widen_bswap, expand_abs_nojump,
10583 expand_one_cmpl_abs_nojump, expand_float): Likewise.
10584 * spu/spu.c (spu_expand_extv): Likewise.
10585 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10587 2011-04-29 Richard Guenther <rguenther@suse.de>
10589 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10590 for the remapped region number.
10591 * predict.c (build_predict_expr): Use integer_type_node for the
10593 * fold-const.c (fold_binary_loc): Use integer_type_node for
10594 the shift amount. Use a proper type for the PLUS_EXPR operand.
10596 2011-04-29 Michael Matz <matz@suse.de>
10598 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10599 other trees that just builtins.
10600 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10602 2011-04-29 Richard Guenther <rguenther@suse.de>
10604 * tree-nested.c (get_trampoline_type): Use size_int.
10605 (get_nl_goto_field): Likewise.
10606 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10608 (lower_eh_constructs_2): Likewise.
10609 (lower_resx): Likewise.
10610 (lower_eh_dispatch): Likewise.
10611 * tree-mudflap.c (mf_build_string): Use size_int.
10612 (mudflap_register_call): Use integer_type_node for the flag.
10613 (mudflap_enqueue_constant): Use size_int.
10614 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10615 instead of rebuilding it.
10617 2011-04-29 Richard Guenther <rguenther@suse.de>
10619 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10620 Handle OBJ_TYPE_REF.
10621 (find_func_aliases_for_call): Use it more consistently.
10623 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
10625 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10626 (rank_for_schedule): Use it.
10627 (schedule_block): Set it.
10629 2011-04-28 David Li <davidxl@google.com>
10631 * tree.c (crc32_string): Use crc32_byte.
10632 (crc32_byte): New function.
10633 * tree.h (crc32_byte): New function.
10634 * gcov.c (read_graph_file): Handle new cfg_cksum.
10635 (read_count_file): Ditto.
10636 * profile.c (instrument_values): Ditto.
10637 (get_exec_counts): Ditto.
10638 (read_profile_edge_counts): Ditto.
10639 (compute_branch_probabilities): Ditto.
10640 (compute_value_histograms): Ditto.
10641 (branch_prob): Ditto.
10642 (end_branch_prob): Ditto.
10643 * coverage.c (read_counts_file): Ditto.
10644 (get_coverage_counts): Ditto.
10645 (tree_coverage_counter_addr): Ditto.
10646 (coverage_checksum_string): Ditto.
10647 (coverage_begin_output): Ditto.
10648 (coverage_end_function): Ditto.
10649 (build_fn_info_type): Ditto.
10650 (build_fn_info_value): Ditto.
10651 * libgcov.c (gcov_exit): Ditto.
10652 * gcov-dump.c (tag_function): Ditto.
10653 (compute_checksum): Remove.
10655 2011-04-29 Alan Modra <amodra@gmail.com>
10657 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10658 unspec plus offset. Tidy macho code.
10660 2011-04-29 Martin Jambor <mjambor@suse.cz>
10662 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10663 node instead of a decl. Update all callers.
10664 * cgraph.h: Update declaration.
10666 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
10668 PR tree-optimization/48765
10669 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10670 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10671 to indicate if loop aware SLP is being used. Scan the statements
10672 and update the vectorization factor according to the type of
10673 vectorization before statement analysis.
10674 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10675 pass it to vect_analyze_loop_operations.
10676 (vectorizable_reduction): Set number of copies to 1 in case of pure
10678 * tree-vect-stmts.c (vectorizable_conversion,
10679 vectorizable_assignment, vectorizable_shift,
10680 vectorizable_operation, vectorizable_type_demotion,
10681 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10683 (vectorizable_condition): Move the check that it is not SLP
10684 vectorization before the number of copies check.
10685 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10686 to vectorize the loop using SLP.
10688 2011-04-28 Jakub Jelinek <jakub@redhat.com>
10690 PR middle-end/48597
10691 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10694 2011-04-28 Joseph Myers <joseph@codesourcery.com>
10696 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10697 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10698 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10699 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10700 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10702 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10703 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10704 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10705 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10706 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10707 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10709 * config/i386/linux.h (REG_NAME): Don't define.
10710 * config/i386/linux64.h (REG_NAME): Don't define.
10711 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10712 Undefine before defining.
10714 2011-04-28 Jan Hubicka <jh@suse.cz>
10716 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10717 nonconstant_names array.
10718 (estimate_function_body_sizes): Build nonconstant_names array; handle
10719 BUILT_IN_CONSTANT_P.
10721 2011-04-28 Richard Guenther <rguenther@suse.de>
10725 2011-04-28 Richard Guenther <rguenther@suse.de>
10727 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10728 as late as possible.
10730 2011-04-28 Richard Guenther <rguenther@suse.de>
10732 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10733 (debug_constraint): Do it here.
10734 (dump_constraints): And here.
10735 (rewrite_constraints): And here.
10736 (dump_constraint_edge): Remove.
10737 (dump_constraint_graph): Rewrite to produce DOT output.
10738 (solve_constraints): Build succ graph as late as possible.
10739 Dump constraint graphs before and after solving.
10741 2011-04-28 Richard Guenther <rguenther@suse.de>
10743 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10744 New function split out from ...
10745 (find_func_aliases): ... here. Call it.
10746 (find_func_aliases_for_call): Likewise.
10748 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10750 * internal-fn.h (internal_fn_name_array): Declare.
10751 (internal_fn_flags_array): Likewise.
10753 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10755 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10756 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10758 (ssemodefsuffix): Remove.
10759 (ssevecmodesuffix): New mode attribute.
10760 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10761 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10762 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10763 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10764 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10765 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10766 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10767 ssemodesuffix mode attribute.
10768 (float splitters): Use ssevecmodesuffix mode attribute.
10769 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10770 (sseinsmode): Rename from avxvecmode.
10771 (avxsizesuffix): Rename from avxmodesuffix.
10772 (sseintvecmode): Rename from avxpermvecmode.
10773 (ssedoublevecmode): Rename from ssedoublesizemode.
10774 (ssehalfvecmode): Rename from avxhalfvecmode.
10775 (ssescalarmode): Rename from avxscalarmode.
10776 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10777 templates for ssemodesuffix mode attribute.
10778 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10781 Adjust RTX patterns globally for renamed mode attributes.
10783 2011-04-27 Jan Hubcika <jh@suse.cz>
10785 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10786 * ipa-inline-analysis.c: Include alloc-pool.h.
10787 (edge_predicate_pool): New.
10788 (trye_predicate_p): New function
10789 (false_predicate_p): New function.
10790 (add_clause): Sanity check that false clauses are "optimized";
10791 never add clauses to predicate that is already known to be false.
10792 (and_predicate): Use flase_predicate_p.
10793 (evaulate_predicate): Rename to ...
10794 (evaluate_predicate): ... this one; update all callers; assert
10795 that false is not listed among possible truths.
10796 (dump_predicate): Use true_predicate_p.
10797 (account_size_time): Use false_predicate_p.
10798 (evaulate_conditions_for_edge): Rename to ...
10799 (evaluate_conditions_for_edge) ... this one.
10800 (edge_set_predicate): New function.
10801 (inline_edge_duplication_hook): Duplicate edge predicates.
10802 (inline_edge_removal_hook): Free edge predicates.
10803 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10804 (dump_inline_summary): Update.
10805 (estimate_function_body_sizes): Set edge predicates.
10806 (estimate_calls_size_and_time): Handle predicates.
10807 (estimate_callee_size_and_time): Update.
10808 (remap_predicate): Add toplev_predicate; update comment.
10809 (remap_edge_predicates): New function.
10810 (inline_merge_summary): Compute toplev predicate; update.
10811 (read_predicate): New function.
10812 (read_inline_edge_summary): Use it.
10813 (inline_read_section): Likewise.
10814 (write_predicate): New function.
10815 (write_inline_edge_summary): Use it.
10816 (inline_write_summary): Likewise.
10817 (inline_free_summary): Free alloc pool and edge summary vec.
10819 2011-04-27 Richard Guenther <rguenther@suse.de>
10821 * tree-ssa-structalias.c (changed_count): Remove.
10822 (changed): Use a bitmap.
10823 (unify_nodes): Adjust.
10824 (do_sd_constraint): Likewise.
10825 (do_ds_constraint): Likewise.
10826 (do_complex_constraint): Likewise.
10827 (solve_graph): Likewise.
10829 2011-04-27 Jan Hubicka <jh@suse.cz>
10831 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10833 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10835 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10836 (avx_vperm2f128_*_operand): Ditto.
10837 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10838 Use avx_vpermilp_parallel in insn condition.
10839 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10840 Use avx_vperm2f128_parallel in insn condition.
10842 2011-04-27 Richard Guenther <rguenther@suse.de>
10844 * Makefile.in (tree-ssa-structalias.o): Remove
10845 gt-tree-ssa-structalias.h dependency.
10846 (GTFILES): Remove tree-ssa-structalias.c.
10847 * tree.c (allocate_decl_uid): New function.
10848 (make_node_stat): Use it.
10849 (copy_node_stat): Likewise.
10850 * tree.h (allocate_decl_uid): Declare.
10851 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10852 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10853 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10854 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10855 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10856 (struct heapvar_map): Likewise.
10857 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10858 heapvar_insert): Likewise.
10859 (make_heapvar_for): Rename to ...
10860 (make_heapvar): ... this. Simplify.
10861 (fake_var_decl_obstack): New global var.
10862 (build_fake_var_decl): New function.
10863 (make_constraint_from_heapvar): Adjust.
10864 (handle_lhs_call): Likewise.
10865 (create_function_info_for): Likewise.
10866 (intra_create_variable_infos): Likewise.
10867 (init_alias_vars): Allocate fake_var_decl_obstack.
10868 (init_alias_heapvars, delete_alias_heapvars): Remove.
10869 (compute_points_to_sets): Do not call init_alias_heapvars.
10870 (ipa_pta_execute): Likewise.
10871 (delete_points_to_sets): Free fake_var_decl_obstack.
10873 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10875 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10876 (si_from_UTItype, si_to_UTItype): New functions.
10877 (__udivmodti4): Use them to implement type-punning.
10878 * config/spu/multi3.c (union qword_TItype): New data type.
10879 (si_from_TItype, si_to_TItype): New functions.
10880 (__multi3): Use them to implement type-punning.
10882 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10884 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10886 2011-04-27 Jan Hubicka <jh@suse.cz>
10888 * ipa-prop.c (function_insertion_hook_holder): New holder.
10889 (ipa_add_new_function): New function.
10890 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10891 Register/deregister holder.
10893 2011-04-27 Richard Guenther <rguenther@suse.de>
10895 PR tree-optimization/48772
10896 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10898 2011-04-27 Richard Guenther <rguenther@suse.de>
10900 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10901 TARGET_MEM_REF handling.
10903 2011-04-27 Nick Clifton <nickc@redhat.com>
10905 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10906 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10907 (REG_CLASS_NAMES): Likewise.
10908 (REG_CLASS_CONTENTS): Likewise.
10909 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10910 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10911 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10912 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10913 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10914 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10915 duplicate register classes.
10916 (frv_class_likely_spilled_p): Likewise.
10917 (frv_register_move_cost): Likewise.
10919 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10920 end of the regno_reg_class array.
10922 2011-04-27 Jakub Jelinek <jakub@redhat.com>
10925 * c-typeck.c (build_binary_op): Don't wrap arguments if
10926 int_operands is true.
10928 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10931 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10932 targetm.calls.must_pass_in_stack for void type.
10934 2011-04-26 Jan Hubicka <jh@suse.cz>
10936 * cgraphbuild.c (build_cgraph_edges): Update call
10937 of cgraph_create_edge and cgraph_create_indirect_edge.
10938 * cgraph.c (cgraph_create_edge_including_clones,
10939 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10940 cgraph_update_edges_for_call_stmt_node): Do not take nest
10941 argument; do not initialize call_stmt_size/time.
10942 (dump_cgraph_node): Do not dump nest.
10943 (cgraph_clone_edge): Do not take loop_nest argument;
10944 do not propagate it; do not clone call_stmt_size/time.
10945 (cgraph_clone_node): Likewise.
10946 (cgraph_create_virtual_clone): Update.
10947 * cgraph.h (struct cgraph_edge): Remove
10948 call_stmt_size/call_stmt_time/loop_nest.
10949 (cgraph_create_edge, cgraph_create_indirect_edge,
10950 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10952 * tree-emutls.c (gen_emutls_addr): Update.
10953 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10954 loop_nest; handle indirect calls, too.
10955 (clone_inlined_nodes): Do not care about updating inline summaries.
10956 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10957 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10958 stream call_stmt_size/call_stmt_time/loop_nest.
10959 * ipa-inline.c (edge_badness): Update.
10960 (ipa_inline): dump summaries after inlining.
10961 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10963 (inline_edge_summary): New function.
10964 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10965 (inline_edge_removal_hook): Handle edge summaries.
10966 (inline_edge_duplication_hook): New hook.
10967 (inline_summary_alloc): Alloc hooks.
10968 (initialize_growth_caches): Do not register removal hooks.
10969 (free_growth_caches); Do not free removal hook.
10970 (dump_inline_edge_summary): New function.
10971 (dump_inline_summary): Use it.
10972 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10973 (inline_update_callee_summaries): New function.
10974 (inline_merge_summary): Use it.
10975 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10976 (read_inline_edge_summary): New function.
10977 (inline_read_section): Use it.
10978 (write_inline_edge_summary): New function.
10979 (inline_write_summary): Use it.
10980 (inline_free_summary): Free edge new holders.
10981 * tree-inline.c (copy_bb): Update.
10983 2011-04-26 Jason Merrill <jason@redhat.com>
10985 * tree-eh.c (lower_try_finally_switch): Create the label along with
10986 the CASE_LABEL_EXPR.
10988 2011-04-26 David S. Miller <davem@davemloft.net>
10989 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10991 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10992 * configure: Regenerate.
10994 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10997 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10999 (VEC_reduc): New code iterator and splitters for vector reduction.
11000 (VEC_reduc_name): Ditto.
11001 (VEC_reduc_rtx): Ditto.
11002 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
11003 (reduc_<VEC_reduc_name>_v4sf): Ditto.
11005 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11006 support for extracting SF on VSX.
11008 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
11009 generating xscvspdp.
11010 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
11011 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
11012 double add, minimum, maximum vector reduction.
11013 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
11014 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
11015 optimize double vector reduction.
11016 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
11018 2011-04-26 Joseph Myers <joseph@codesourcery.com>
11020 * config/fr30/fr30.h (inhibit_libc): Don't define.
11021 * config/m32r/m32r-protos.h: Correct comment.
11022 * config/v850/v850.h (GHS_default_section_names,
11023 GHS_current_section_names): Use tree, not union tree_node *.
11025 2011-04-26 Xinliang David Li <davidxl@google.com>
11027 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
11028 * c-family/c-opts.c (c_common_handle_option): Set
11029 warn_maybe_uninitialized.
11030 * opts.c (common_handle_option): Ditto.
11031 * common.opt: New option.
11032 * tree-ssa.c (warn_uninit): Add one more parameter.
11033 (warn_uninitialized_var): Pass warning code.
11034 * tree-flow.h: Interface change.
11036 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11038 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
11039 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
11040 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
11042 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11044 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
11045 * config/mips/mips.opt (mmips-tfile): Remove.
11047 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
11048 mips-tdump reference to ...
11049 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
11050 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
11051 reference by Tru64 UNIX.
11053 2011-04-26 Jakub Jelinek <jakub@redhat.com>
11056 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
11057 is error_mark_node, set value to NULL.
11059 PR tree-optimization/48734
11060 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
11061 if return value from maybe_fold_*_comparsions isn't something
11062 the code is prepared to handle.
11064 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
11066 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
11068 (ext_QIreg_nomode_operands): Remove.
11069 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
11073 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
11075 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
11077 2011-04-26 Richard Guenther <rguenther@suse.de>
11079 * c-typeck.c (build_unary_op): Do not expand array-refs via
11080 pointer arithmetic. Only adjust qualifiers for function types.
11082 2011-04-26 Richard Guenther <rguenther@suse.de>
11084 PR middle-end/48694
11085 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
11086 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
11087 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
11088 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
11090 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
11092 * doc/extend.texi: Document __underlying_type.
11094 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
11096 * config/rs6000/titan.md (automata_option "progress"): Remove.
11098 2011-04-25 Jeff Law <law@redhat.com>
11100 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
11102 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11104 * system.h (ENUM_BITFIELD): Remove.
11106 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
11107 Eric Botcazou <ebotcazou@adacore.com>
11109 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
11110 for STORE_FLAG_VALUE==-1 case.
11112 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
11115 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11116 LEGITIMATE_PIC_OPERAND_P.
11118 2011-04-24 Jan Hubicka <jh@suse.cz>
11120 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
11122 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
11123 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
11124 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
11125 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
11126 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
11127 Sanity check predicate length.
11128 (remap_predicate): Likewise; sanity check jump functions.
11129 (inline_read_section, inline_write_summary): Sanity check
11132 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
11135 * doc/extend.texi (Type Traits): Document __is_standard_layout,
11136 __is_literal_type, and __is_trivial; update throughout about
11137 possibly cv-qualified void types.
11139 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11141 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11142 testsuite and make it version agnostic.
11144 2011-04-22 Jan Hubicka <jh@suse.cz>
11146 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
11148 2011-04-23 Jakub Jelinek <jakub@redhat.com>
11151 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
11152 to VOID_TYPE even around MODIFY_EXPR.
11154 2011-04-22 Mike Stump <mikestump@comcast.net>
11156 * gensupport.c (read_md_rtx): Fix typo in comment.
11157 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
11160 2011-04-22 Jan Hubicka <jh@suse.cz>
11162 * gengtype.c (open_base_files): Add ipa-inline.h include.
11163 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
11164 ipa-prop.c; update all uses.
11165 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
11166 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
11167 merge summary of inlined function into former caller.
11168 * ipa-inline.c (max_benefit): Remove.
11169 (edge_badness): Compensate for removal of benefits.
11170 (update_caller_keys): Use
11171 reset_node_growth_cache/reset_edge_growth_cache.
11172 (update_callee_keys): Likewise.
11173 (update_all_callee_keys): Likewise.
11174 (inline_small_functions): Do not collect max_benefit; do not reset
11175 estimated_growth; call free_growth_caches and initialize_growth_caches.
11176 * ipa-inline.h (struct condition, type clause_t, struct predicate,
11177 struct size_time_entry): New structures.
11178 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
11179 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
11180 and estimated_growth.
11181 (edge_growth_cache_entry): New structure.
11182 (node_growth_cache, edge_growth_cache): New global vars.
11183 (estimate_growth): Turn into inline.
11184 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
11185 initialize_growth_caches, free_growth_caches): Declare.
11186 (estimate_edge_growth): Rewrite.
11187 (estimate_edge_time): Implement as inline cache lookup.
11188 (reset_node_growth_cache, reset_edge_growth_cache): New inline
11190 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
11191 (NUM_CONDITIONS): New constant.
11192 (predicate_conditions): New enum.
11193 (IS_NOT_CONSTANT): New constant.
11194 (edge_removal_hook_holder): New var.
11195 (node_growth_cache, edge_growth_cache): New global vars.
11196 (true_predicate, single_cond_predicate, false_predicate,
11197 not_inlined_predicate, add_condition, add_clause, and_predicates,
11198 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
11199 dump_clause, dump_predicate, account_size_time,
11200 evaulate_conditions_for_edge): New functions.
11201 (inline_summary_alloc): Move to heap.
11202 (inline_node_removal_hook): Clear condition and entry vectors.
11203 (inline_edge_removal_hook): New function.
11204 (initialize_growth_caches, free_growth_caches): New function.
11205 (dump_inline_summary): Update.
11206 (edge_execution_predicate): New function.
11207 (will_be_nonconstant_predicate): New function.
11208 (estimate_function_body_sizes): Compute BB and constantness predicates.
11209 (compute_inline_parameters): Do not clear estimated_growth.
11210 (estimate_edge_size_and_time): New function.
11211 (estimate_calls_size_and_time): New function.
11212 (estimate_callee_size_and_time): New function.
11213 (remap_predicate): New function.
11214 (inline_merge_summary): New function.
11215 (do_estimate_edge_time): New function based on...
11216 (estimate_edge_time): ... this one.
11217 (do_estimate_edge_growth): New function.
11218 (do_estimate_growth): New function based on....
11219 (estimate_growth): ... this one.
11220 (inline_analyze_function): Analyze after deciding on jump functions.
11221 (inline_read_section): New function.
11222 (inline_read_summary): Use it.
11223 (inline_write_summary): Write all the new data.
11224 * ipa-prop.c (ipa_get_param_decl_index): Export.
11225 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
11226 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
11228 (ipa_get_lattice): Move here from ipa-cp.c
11229 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
11230 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
11231 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
11232 cgraph_edge_inlinable_p): Remove.
11233 * cgraphunit.c: Include ipainline.h
11234 (cgraph_process_new_functions): Update call of
11235 compute_inline_parameters.
11237 2011-04-22 Richard Guenther <rguenther@suse.de>
11239 * tree.c (build_int_cst): Properly create canonicalized integer
11241 (build_int_cst_type): Remove scary comments.
11243 2011-04-22 Xinliang David Li <davidxl@google.com>
11245 * toplev.c (process_options): Enable -Werror=coverage-mismatch
11246 by default when -Wno-error is not specified.
11247 * opts-global.c (decode_options): Remove call to
11248 control_warning_options.
11250 2011-04-22 Jakub Jelinek <jakub@redhat.com>
11252 PR tree-optimization/48717
11253 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
11254 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
11256 2011-04-22 Joseph Myers <joseph@codesourcery.com>
11258 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
11259 definition where used.
11261 2011-04-22 Jakub Jelinek <jakub@redhat.com>
11264 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
11265 TREE_STATIC variables declared inside of some OpenMP construct.
11267 2011-04-22 Martin Jambor <mjambor@suse.cz>
11269 PR middle-end/48585
11270 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
11272 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
11275 * c-typeck.c (pop_init_level): Do not warn about initializing
11278 2011-04-22 Alan Modra <amodra@gmail.com>
11280 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
11281 when returning call_cookie.
11282 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
11283 pointers, to functions with no more vector args than the current
11284 function, and some non-local calls for ABI_V4.
11285 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
11286 sibcall_nonlocal_aix64): Combine to ..
11287 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
11288 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
11289 (sibcall_value_nonlocal_aix<mode>): ..likewise.
11290 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
11291 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
11293 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
11294 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
11295 sibcall_value_symbolic_64): Delete.
11297 2011-04-21 Xinliang David Li <davidxl@google.com>
11299 * cgraph.h: Remove pid.
11300 * cgraph.c: Remove pid.
11301 * value-prof.c (init_node_map): New function.
11302 (del_node_map): New function.
11303 (find_func_by_funcdef_no): New function.
11304 (gimple_ic_transform): Call new function.
11305 * cgraphunit.c (cgraph_finalize_function): Remove pid.
11306 * function.c (get_last_funcdef_no): New function.
11307 * function.h (get_last_funcdef_no): New function.
11308 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
11309 to libgcov function.
11310 (tree-profiling): Call node map init and delete function.
11312 2011-04-21 Ian Lance Taylor <iant@google.com>
11314 * godump.c (go_format_type): Use exported Go name for anonymous
11317 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11319 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
11320 Call builtin_function_type_list instead of builtin_function_type.
11321 (UNARY, BINARY, TRINARY, QUAD): Likewise.
11323 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11325 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
11326 build_function_type_list instead of build_function_type.
11327 Delete variable `endlink'.
11329 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11331 * config/s390/s390.c (s390_init_builtins): Call
11332 build_function_type_list instead of build_function_type.
11334 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11336 * config/ia64/ia64.c (ia64_init_builtins): Call
11337 build_function_type_list instead of builtin_function_type.
11339 2011-04-21 Easwaran Raman <eraman@google.com>
11341 * cfgexpand.c (stack_var): Remove OFFSET...
11342 (add_stack_var): ...and its reference here...
11343 (expand_stack_vars): ...and here.
11344 (stack_var_cmp): Sort by descending order of size.
11345 (partition_stack_vars): Change heuristic.
11346 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
11347 (dump_stack_var_partition): Add newline after each partition.
11349 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
11350 Jeff Law <law@redhat.com>
11352 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
11353 * gengtype.c (matching_file_name_substitute): Likewise.
11355 2011-04-21 Richard Guenther <rguenther@suse.de>
11358 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
11360 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
11362 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
11364 2011-04-21 Richard Guenther <rguenther@suse.de>
11366 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
11369 2011-04-21 Richard Guenther <rguenther@suse.de>
11371 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11372 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
11373 Use DECL_P, not SSA_VAR_P.
11374 (ptr_derefs_may_alias_p): Likewise.
11375 (ptr_deref_may_alias_ref_p_1): Likewise.
11376 (decl_refs_may_alias_p): Likewise.
11377 (refs_may_alias_p_1): Likewise.
11378 (ref_maybe_used_by_call_p_1): Likewise.
11379 (call_may_clobber_ref_p_1): Likewise.
11380 (indirect_ref_may_alias_decl_p): Assume indirect refrences
11381 are either MEM_REF or TARGET_MEM_REF.
11382 (indirect_refs_may_alias_p): Likewise.
11383 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
11384 for MEM_EXPR of indirect calls.
11386 2011-04-21 Tristan Gingold <gingold@adacore.com>
11388 * vmsdbgout.c (write_srccorr): Compute file length from the string.
11389 (dst_file_info_struct): Remove flen field.
11390 (lookup_filename): Remove code that set flen field.
11392 2011-04-21 Tristan Gingold <gingold@adacore.com>
11394 * config/ia64/ia64.c (ia64_start_function): Add a guard.
11396 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
11399 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
11400 vec_extract and vec_concat for non-SSE4_1 targets.
11402 2011-04-21 Richard Guenther <rguenther@suse.de>
11404 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
11407 2011-04-21 Joseph Myers <joseph@codesourcery.com>
11409 * config/i386/cygming.h (union tree_node, TREE): Don't define or
11411 (FILE): Don't undefine.
11413 2011-04-21 Joseph Myers <joseph@codesourcery.com>
11415 * config/alpha/alpha.c (struct machine_function): Use rtx, not
11417 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
11419 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
11420 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
11421 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
11423 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
11424 definitions where used.
11425 * config/microblaze/microblaze.h (struct microblaze_args): Use
11426 rtx, not struct rtx_def *.
11427 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
11429 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
11430 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
11431 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
11432 not struct rtx_def *.
11433 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
11435 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
11437 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
11439 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11441 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
11442 operand_equal_p to compare DR_BASE_ADDRESSes.
11443 (vect_check_interleaving): Likewise.
11445 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11448 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
11449 for all Neon struct constants.
11451 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11453 * target.def (legitimate_constant_p): New hook.
11454 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
11455 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
11456 * doc/tm.texi: Regenerate.
11457 * hooks.h (hook_bool_mode_rtx_true): Declare.
11458 * hooks.c (hook_bool_mode_rtx_true): Define.
11459 * system.h (LEGITIMATE_CONSTANT_P): Poison.
11460 * calls.c (precompute_register_parameters): Replace uses of
11461 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
11462 (emit_library_call_value_1): Likewise.
11463 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
11464 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
11465 * ira-costs.c (scan_one_insn): Likewise.
11466 * recog.c (general_operand, immediate_operand): Likewise.
11467 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
11468 * reload1.c (init_eliminable_invariants): Likewise.
11470 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
11472 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
11473 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
11475 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11476 * config/alpha/predicates.md (input_operand): Update call to
11477 alpha_legitimate_constant_p.
11479 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
11480 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
11481 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
11482 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11483 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
11484 (arm_legitimate_constant_p): New functions.
11485 (arm_cannot_force_const_mem): Make static.
11487 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
11489 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
11490 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
11491 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
11492 instead of bfin_legitimate_constant_p.
11493 (bfin_legitimate_constant_p): Make static. Add a mode argument.
11494 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11496 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11498 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11500 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11501 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11502 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11503 (frv_legitimate_constant_p): Make static. Add a mode argument.
11505 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11506 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11507 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11509 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11510 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11511 * config/i386/i386.c (legitimate_constant_p): Rename to...
11512 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
11514 (ix86_cannot_force_const_mem): Update accordingly.
11515 (ix86_legitimate_address_p): Likewise.
11516 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11517 * config/i386/i386.md: Update commentary.
11519 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11520 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11521 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11522 (ia64_legitimate_constant_p): Make static. Add a mode argument.
11524 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11526 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11527 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11528 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11529 (lm32_legitimate_constant_p): Make static. Add a mode argument.
11531 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11532 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11533 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11535 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11536 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11537 (m32r_legitimate_constant_p): New function.
11539 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11540 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11541 LEGITIMATE_CONSTANT_P.
11542 (LEGITIMATE_CONSTANT_P): Delete.
11543 * config/m68k/m68k.c (m68k_expand_prologue): Call
11544 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11545 (m68k_legitimate_constant_p): New function.
11546 * config/m68k/m68k.md: Update comments.
11548 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11549 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11550 (mcore_legitimate_constant_p): New function.
11552 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11553 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11554 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11555 Add a mode argument.
11556 (mep_legitimate_address): Update accordingly.
11557 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11559 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11561 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11562 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11563 static. Check OP's mode for VOIDmode.
11564 (microblaze_legitimate_constant_p): New function.
11565 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11567 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11568 * config/mips/mips.c (mips_legitimate_constant_p): New function.
11569 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11570 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11571 * config/mips/predicates.md: Update comments.
11573 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11574 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11575 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11576 (mmix_legitimate_constant_p): Make static, return a bool, and take
11578 (mmix_print_operand_address): Update accordingly.
11580 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11582 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11583 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11584 static. Add a mode argument.
11585 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11587 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11589 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11590 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11591 (pa_legitimate_constant_p): New function.
11593 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11595 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11596 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11597 (pdp11_legitimate_constant_p): New function.
11599 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11600 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11601 (rs6000_legitimate_constant_p): New function.
11603 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11604 (rx_legitimate_constant_p): ...this.
11605 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11606 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11607 (rx_legitimate_constant_p): ...this.
11608 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11609 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11611 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11612 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11613 * config/s390/s390.c (legitimate_constant_p): Rename to...
11614 (s390_legitimate_constant_p): ...this. Make static, return a bool,
11615 and add a mode argument.
11616 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11618 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11620 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11621 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11622 (sh_legitimate_constant_p): New function.
11624 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11625 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11626 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11627 (legitimate_constant_p): Rename to...
11628 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11630 (constant_address_p): Update accordingly.
11632 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11633 argument and return a bool.
11634 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11635 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11636 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11637 (spu_rtx_costs): Update accordingly.
11638 * config/spu/predicates.md (vec_imm_operand): Likewise.
11640 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11642 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11643 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11644 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11646 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11647 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11648 * config/vax/vax.c (legitimate_constant_p): Likewise.
11650 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11651 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11652 (xtensa_legitimate_constant_p): New function.
11654 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11656 * target.def (cannot_force_const_mem): Add a mode argument.
11657 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11658 * doc/tm.texi: Regenerate.
11659 * hooks.h (hook_bool_mode_rtx_false): Declare.
11660 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11661 (hook_bool_mode_const_rtx_true): Likewise.
11662 (hook_bool_mode_rtx_false): New function.
11663 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11664 to be non-VOID. Update call to cannot_force_const_mem.
11665 (find_reloads): Update accordingly.
11666 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11667 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11669 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11670 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11671 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11672 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11673 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11674 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11675 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11676 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11677 (m68k_cannot_force_const_mem): ...this new function.
11678 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11680 (mips_const_insns, mips_legitimize_const_move): Update calls.
11681 (mips_secondary_reload_class): Likewise.
11682 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11683 (pa_cannot_force_const_mem): ...this new function.
11684 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11685 (rs6000_cannot_force_const_mem): ...this new function.
11686 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11688 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11689 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11691 (xtensa_cannot_force_const_mem): ...this new function.
11693 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11695 * config/mips/mips.c (mips16_build_function_stub): Call
11696 build_function_type_list instead of build_function_type.
11697 (mips16_build_call_stub): Likewise.
11699 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11701 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11702 instead of build_function_type.
11704 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11706 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11707 instead of build_function_type.
11709 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
11712 * config/i386/i386.md (insv): Change operand 0 constraint to
11713 "register_operand". Change operand 1 and 2 constraint to
11714 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11715 * config/i386/sse.md (sse4_1_pinsrb): Export.
11716 (sse2_pinsrw): Ditto.
11717 (sse4_1_pinsrd): Ditto.
11718 (sse4_1_pinsrq): Ditto.
11719 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11720 * config/i386/i386.c (ix86_expand_pinsr): New.
11722 2011-04-20 Easwaran Raman <eraman@google.com>
11724 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11725 containing union type only with -fstrict-aliasing.
11727 2011-04-20 Jim Meyering <meyering@redhat.com>
11729 Remove useless if-before-free tests.
11730 * calls.c (expand_call, save_area): Likewise.
11731 * cfgcleanup.c (try_forward_edges): Likewise.
11732 * collect2.c (collect_execute): Likewise.
11733 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11734 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11735 * coverage.c (coverage_checksum_string): Likewise.
11736 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11737 * cselib.c (cselib_init): Likewise.
11738 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11739 (df_set_clean_cfg): Likewise.
11740 * function.c (free_after_compilation): Likewise.
11741 * gcc.c (do_spec_1, main): Likewise.
11742 * gcov.c (create_file_names): Likewise.
11743 * gensupport.c (identify_predicable_attribute): Likewise.
11744 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11745 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11746 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11747 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11748 * ipa-pure-const.c (local_pure_const): Likewise.
11749 * ipa-reference.c (propagate): Likewise.
11750 * ira-costs.c (free_ira_costs): Likewise.
11751 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11752 * matrix-reorg.c (mat_free): Likewise.
11753 * prefix.c (get_key_value): Likewise.
11754 * profile.c (compute_value_histograms): Likewise.
11755 * reload1.c (free_reg_equiv): Likewise.
11756 * sched-deps.c (free_deps): Likewise.
11757 * sel-sched-ir.c (fence_clear): Likewise.
11758 * sese.c (set_rename, if_region_set_false_region): Likewise.
11759 * tree-data-ref.c (free_rdg): Likewise.
11760 * tree-eh.c (lower_try_finally): Likewise.
11761 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11762 * tree-ssa-live.c (delete_var_map): Likewise.
11763 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11764 * tree-ssa-pre.c (phi_trans_add): Likewise.
11766 2011-04-20 Jakub Jelinek <jakub@redhat.com>
11768 PR tree-optimization/48611
11769 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11770 beyond ERT_MUST_NOT_THROW region.
11772 2011-04-20 Catherine Moore <clm@codesourcery.com>
11774 * config/mips/mips.opt (mfix-24k): New.
11775 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11776 * config/mips/mips.md (length): Increase by 4 for stores if
11778 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11779 all noreorder if fixing 24K errata.
11780 * doc/invoke.texi: Document mfix-24k.
11782 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11784 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11785 quad-word modes, reduce to 9-bit index range when above 1016 limit.
11787 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11789 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11790 (const_ok_for_op): ... to here.
11792 2011-04-20 Kai Tietz <ktietz@redhat.com>
11794 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11795 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11797 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11799 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11801 2011-04-20 Richard Guenther <rguenther@suse.de>
11803 PR tree-optimization/47892
11804 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11805 are if-convertible.
11807 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11809 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11811 2011-04-20 Tristan Gingold <gingold@adacore.com>
11813 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11815 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
11819 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11820 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11821 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11822 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11823 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11825 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11828 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11829 (avr_asm_named_section, avr_asm_output_aligned_common,
11830 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11831 New functions to update...
11832 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11833 (avr_asm_init_sections): Overwrite section callbacks for
11834 data_section, bss_section.
11835 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11837 (avr_file_end): ...here.
11839 2011-04-20 Richard Guenther <rguenther@suse.de>
11841 PR middle-end/48695
11842 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11843 objects and types here. Adjust for their offset before comparing.
11845 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11847 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11848 statement per copy.
11850 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11852 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11853 (GIMPLE_H): Include $(INTERNAL_FN_H).
11854 (OBJS-common): Add internal-fn.o.
11855 (internal-fn.o): New rule.
11856 * internal-fn.def: New file.
11857 * internal-fn.h: Likewise.
11858 * internal-fn.c: Likewise.
11859 * gimple.h: Include internal-fn.h.
11860 (GF_CALL_INTERNAL): New gf_mask.
11861 (gimple_statement_call): Put fntype into a union with a new
11863 (gimple_build_call_internal): Declare.
11864 (gimple_build_call_internal_vec): Likewise.
11865 (gimple_call_same_target_p): Likewise.
11866 (gimple_call_internal_p): New function.
11867 (gimple_call_internal_fn): Likewise.
11868 (gimple_call_fntype): Return null for internal calls.
11869 (gimple_call_set_fntype): Assert that the function is not internal.
11870 (gimple_call_set_fn): Likewise.
11871 (gimple_call_set_fndecl): Likewise.
11872 (gimple_call_set_internal_fn): New function.
11873 (gimple_call_addr_fndecl): Handle null functions.
11874 (gimple_call_return_type): Likewise null types.
11875 * gimple.c (gimple_build_call_internal_1): New function.
11876 (gimple_build_call_internal): Likewise.
11877 (gimple_build_call_internal_vec): Likewise.
11878 (gimple_call_same_target_p): Likewise.
11879 (gimple_call_flags): Handle calls to internal functions.
11880 (gimple_call_fnspec): New function.
11881 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11882 (gimple_has_side_effects): Handle null functions.
11883 (gimple_rhs_has_side_effects): Likewise.
11884 (gimple_call_copy_skip_args): Handle calls to internal functions.
11885 * cfgexpand.c (expand_call_stmt): Likewise.
11886 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11887 * gimple-fold.c (gimple_fold_call): Handle null functions.
11888 (gimple_fold_stmt_to_constant_1): Don't fold
11889 calls to internal functions.
11890 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11892 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11893 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11894 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11895 (do_warn_unused_result): Likewise.
11896 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11897 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11898 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11899 the target of a call.
11900 (initialize_hash_element): Update accordingly.
11901 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11902 (iterative_hash_hashable_expr): Handle calls to internal functions.
11903 (print_expr_hash_elt): Likewise.
11904 * tree-ssa-pre.c (can_value_number_call): Likewise.
11905 (eliminate): Handle null functions.
11906 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11907 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11908 (find_func_aliases): Likewise.
11909 * value-prof.c (gimple_ic_transform): Likewise.
11910 (gimple_indirect_call_to_profile): Likewise.
11911 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11912 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11914 2011-04-19 Jan Hubicka <jh@suse.cz>
11916 * ipa-inline-transform.c (save_inline_function_body): Add comments.
11917 * ipa-inline.c (inline_small_functions): Compute summaries first,
11918 populate heap later.
11920 2011-04-19 Jan Hubicka <jh@suse.cz>
11922 * cgraph.h (save_inline_function_body): Remove.
11923 * ipa-inline-transform.c: New file, broke out of...
11924 * ipa-inline.c: ... this one; Update toplevel comment.
11925 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11927 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11928 (cgraph_mark_inline_edge): Rename to inline_call; move to
11929 ipa-inline-transform.c.
11930 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11931 move to ipa-inline-transform.c
11932 (recursive_inlining, inline_small_functions, flatten_function,
11933 ipa_inline, inline_always_inline_functions,
11934 early_inline_small_functions): Update.
11935 (inline_transform): Move to ipa-inline-transform.c.
11936 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11938 * Makefile.in (ipa-inline-transform.o): New file.
11939 * cgraphunit.c (save_inline_function_body): Move to
11940 ipa-inline-transform.c
11942 2011-04-19 DJ Delorie <dj@redhat.com>
11944 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11945 registers if we already know there aren't any.
11946 (m32c_emit_epilogue): Don't emit a barrier here.
11947 (m32c_emit_eh_epilogue): Likewise.
11948 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11949 operands at expand time.
11950 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11952 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11953 duplicates. Provide aliases instead.
11954 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11955 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11958 2011-04-19 Anatoly Sokolov <aesok@post.ru>
11960 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11961 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11962 (general_or_i64_p, sparc_register_move_cost): New function.
11964 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11966 * doc/install.texi (Configuration, --enable-threads): Remove mach.
11967 Add lynx, mipssde. Sort table.
11969 2011-04-19 Xinliang David Li <davidxl@google.com>
11971 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11974 2011-04-19 Jakub Jelinek <jakub@redhat.com>
11977 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11978 is a SUBREG with non-MODE_INT mode inside of it.
11980 2011-04-19 Martin Jambor <mjambor@suse.cz>
11982 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11983 also according to actual contants.
11984 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11985 (gimple_fold_call): Use it.
11986 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11988 2011-04-19 Martin Jambor <mjambor@suse.cz>
11990 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11991 non-pointer assignments.
11993 2011-04-19 Martin Jambor <mjambor@suse.cz>
11995 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11996 account anc_offset and otr_type from the indirect edge info.
11997 * ipa-prop.c (get_ancestor_addr_info): New function.
11998 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11999 get_ancestor_addr_info, call it.
12000 (ipa_note_param_call): Do not initialize information about polymorphic
12001 calls, return the indirect call graph edge. Remove the last
12002 parameter, adjust all callers.
12003 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
12004 parameters. Initialize polymorphic information in the indirect edge.
12006 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
12009 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
12010 the types if they have different enumeration identifiers.
12012 2011-04-19 Jan Hubicka <jh@suse.cz>
12014 * cgraph.h (cgraph_optimize_for_size_p): Declare.
12015 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
12016 * predict.c (cgraph_optimize_for_size_p): Break out from ...
12017 (optimize_function_for_size_p) ... here.
12019 2011-04-19 Richard Guenther <rguenther@suse.de>
12022 * tree.c (free_lang_data): Do not reset the decl-assembler-name
12025 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
12027 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
12028 if DECL_NO_INLINE_WARNING_P is set on the function.
12030 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
12033 * reload1.c (inc_for_reload): Return void. All callers changed.
12034 (emit_input_reload_insns): Don't try to delete previous output
12035 reloads to a register, or record spill_reg_store for autoincs.
12037 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
12039 * gengtype.h: Updated copyright year.
12040 (struct input_file_st): Add inpisplugin field.
12041 (type_fileloc): New function.
12043 (write_typed_struct_alloc_def): Add gcc_assert.
12044 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
12045 (write_typed_alloc_defns): Don't output for plugin files.
12046 (input_file_by_name): Clear inpisplugin field.
12047 (main): Set inpisplugin field for plugin files.
12049 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
12051 * gengtype-state.c (string_eq): New.
12052 (read_state): Use string_eq instead of strcmp when creating the
12055 2011-04-19 Wei Guozhi <carrot@google.com>
12058 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
12059 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
12061 * config/arm/constraints.md (Uu): New constraint.
12062 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
12064 2011-04-19 Tristan Gingold <gingold@adacore.com>
12066 * config.gcc (-*-*-*vms): Added.
12067 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
12069 * config/vms/vms-ld.c: New file.
12070 * config/vms/vms-ar.c: New file.
12071 * config/vms/t-vmsnative: New file.
12073 2011-04-18 Xinliang David Li <davidxl@google.com>
12075 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
12077 2011-04-18 Jakub Jelinek <jakub@redhat.com>
12079 PR middle-end/48661
12080 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
12081 if TREE_TYPE (v) is non-NULL.
12083 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
12084 gimple_get_virt_mehtod_for_binfo.
12085 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
12086 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
12088 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12090 2011-04-18 Michael Matz <matz@suse.de>
12091 Steve Ellcey <sje@cup.hp.com>
12093 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
12094 use its mode as source mode if it isn't VOIDmode.
12096 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
12098 * doc/passes.texi: Fill crossref nodes.
12100 2011-04-18 Jim Meyering <meyering@redhat.com>
12102 Fix doubled-word typos in comments and strings
12103 * config/alpha/vms-unwind.h: s/for for/for/
12104 * config/arm/unwind-arm.h: Likewise.
12105 * config/microblaze/microblaze.c: Likewise.
12106 * config/sh/constraints.md: s/in in/in/
12107 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
12109 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
12111 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
12112 (AVX_FLOAT_MODE_P): Ditto.
12113 (AVX128_VEC_FLOAT_MODE_P): Ditto.
12114 (AVX256_VEC_FLOAT_MODE_P): Ditto.
12115 (AVX_VEC_FLOAT_MODE_P): Ditto.
12116 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
12117 (UNSPEC_MASKSTORE): Ditto.
12118 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
12119 Merge from <sse>_movmsk<ssemodesuffix> and
12120 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
12121 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
12123 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
12124 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
12125 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
12127 2011-04-18 Jan Hubicka <jh@suse.cz>
12129 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
12131 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
12132 (want_inline_function_called_once_p): Break out the logic from
12134 (edge_badness): Ensure that profile is not misupdated.
12135 (lookup_recursive_calls): Prioritize by call frequencies.
12136 (inline_small_functions): Move program size estimates here;
12137 actually process whole queue even when unit growth has been
12138 met. (to properly compute inline_failed reasons and for the
12139 case unit size decrease.) Revisit comments on recursive inlining.
12140 (ipa_inline): Remove unit summary code; first inline hot calls
12141 of functions called once, cold calls next.
12142 (order, nnodes): Remove unused variables.
12143 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
12144 (GTFILES): Remove ipa-inline.c
12145 * sel-sched.c (fill_insns): Silence uninitialized var warning.
12147 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
12149 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
12151 2011-04-18 Jie Zhang <jie@codesourcery.com>
12152 Richard Earnshaw <rearnsha@arm.com>
12154 * arm.c (neon_builtin_type_bits): Remove.
12155 (typedef enum neon_builtin_mode): New.
12156 (T_MAX): Don't define.
12157 (typedef enum neon_builtin_datum): Remove bits, codes[],
12158 num_vars and base_fcode. Add mode, code and fcode.
12159 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
12160 VAR10): Change accordingly.
12161 (neon_builtin_data[]): Change accordingly
12162 (arm_init_neon_builtins): Change accordingly.
12163 (neon_builtin_compare): Remove.
12164 (locate_neon_builtin_icode): Remove.
12165 (arm_expand_neon_builtin): Change accordingly.
12167 * arm.h (enum arm_builtins): Move to ...
12168 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
12170 * arm.c (arm_builtin_decl): Declare.
12171 (TARGET_BUILTIN_DECL): Define.
12172 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
12173 (arm_builtin_decls[]): New.
12174 (arm_init_neon_builtins): Store builtin declarations in
12175 arm_builtin_decls[].
12176 (arm_init_tls_builtins): Likewise.
12177 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
12178 (arm_builtin_decl): New.
12180 2011-04-18 Richard Guenther <rguenther@suse.de>
12182 * tree.c (upper_bound_in_type): Build properly canonicalized
12184 (lower_bound_in_type): Likewise.
12186 2011-04-18 Richard Guenther <rguenther@suse.de>
12188 * gimple.h (gimple_call_addr_fndecl): New function.
12189 (gimple_call_fndecl): Use it.
12190 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12192 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
12193 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
12195 2011-04-18 Richard Guenther <rguenther@suse.de>
12197 PR middle-end/48650
12198 * tree.c (build_string): STRING_CST is now derived from tree_typed.
12200 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
12203 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
12204 DECL_IN_CONSTANT_POOL without RTL.
12206 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
12207 Ira Rosen <ira.rosen@linaro.org>
12210 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12211 to match neon_vzip/vuzp/vtrn_internal.
12212 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
12213 outputs explicitly dependent on both inputs.
12214 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
12216 2011-04-18 Jakub Jelinek <jakub@redhat.com>
12218 PR tree-optimization/48616
12219 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
12220 whether the shift is by scalar or vector based on whether all SLP
12221 scalar stmts have the same rhs.
12223 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
12225 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
12228 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
12231 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
12234 2011-04-17 Jan Hubicka <jh@suse.cz>
12236 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
12237 * cgrpahunit.c (cgraph_finalize_function): Do not set
12238 finalized_by_frontend.
12239 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12240 finalized_by_frontend.
12242 2011-04-17 Jan Hubicka <jh@suse.cz>
12244 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
12245 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
12246 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
12247 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
12249 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
12251 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
12253 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
12256 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
12257 is non-null before accessing it.
12258 (input_cgraph): Remove trailing spaces.
12260 2011-04-17 Revital Eres <revital.eres@linaro.org>
12262 * params.def (sms-min-sc): New param flag.
12263 * modulo-sched.c (sms_schedule): Use it.
12264 * doc/invoke.texi (sms-min-sc): Document it.
12266 2011-04-17 Jan Hubicka <jh@suse.cz>
12268 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
12269 present, also set gimple_call_set_cannot_inline.
12270 * ipa-inline.c: Update toplevel comment.
12271 (MAX_TIME): Remove.
12272 (cgraph_clone_inlined_nodes): Fix linebreaks.
12273 (cgraph_check_inline_limits): Restructure to ...
12274 (caller_growth_limits): ... this one; be more tolerant
12275 on growth in nested inline chains; add explanatory comment;
12276 fix stack accounting thinko introduced by previous patch.
12277 (cgraph_default_inline_p): Remove.
12278 (report_inline_failed_reason): New function.
12279 (can_inline_edge_p): New function.
12280 (can_early_inline_edge_p): New function.
12281 (leaf_node_p): Move upwards in file.
12282 (want_early_inline_function_p): New function.
12283 (want_inline_small_function_p): New function.
12284 (want_inline_self_recursive_call_p): New function.
12285 (cgraph_edge_badness): Rename to ...
12286 (edge_badness) ... this one; fix linebreaks.
12287 (update_edge_key): Update call of edge_baddness; add
12288 detailed dump about queue updates.
12289 (update_caller_keys): Use can_inline_edge_p and
12290 want_inline_small_function_p.
12291 (cgraph_decide_recursive_inlining): Rename to...
12292 (recursive_inlining): Use can_inline_edge_p and
12293 want_inline_self_recursive_call_p; simplify and remove no longer
12295 (cgraph_set_inline_failed): Remove.
12296 (add_new_edges_to_heap): Use can_inline_edge_p and
12297 want_inline_small_function_p.
12298 (cgraph_decide_inlining_of_small_functions): Rename to ...
12299 (inline_small_functions): ... this one; cleanup; use
12300 can/want predicates; cleanup debug ouput; work edges till fibheap
12301 is exhausted and do not stop once unit growth is reached; remove
12302 later loop processing remaining edges.
12303 (cgraph_flatten): Rename to ...
12304 (flatten_function): ... this one; use can_inline_edge_p
12305 and can_early_inline_edge_p predicates.
12306 (cgraph_decide_inlining): Rename to ...
12307 (ipa_inline): ... this one; remove unreachable nodes before
12308 inlining functions called once; simplify the pass.
12309 (cgraph_perform_always_inlining): Rename to ...
12310 (inline_always_inline_functions): ... this one; use
12311 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
12312 (cgraph_decide_inlining_incrementally): Rename to ...
12313 (early_inline_small_functions): ... this one; simplify
12314 using new predicates; cleanup; make dumps prettier.
12315 (cgraph_early_inlining): Rename to ...
12316 (early_inliner): newer inline regular functions into always-inlines;
12317 fix updating of call stmt summaries.
12318 (pass_early_inline): Update for new names.
12319 (inline_transform): Fix formating.
12320 (gate_cgraph_decide_inlining): Rename to ...
12321 (pass_ipa_inline): ... this one.
12322 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
12323 * ipa-inline-analysis.c (dump_inline_summary): Update.
12324 (compute_inline_parameters): Do not compute disregard_inline_limits;
12325 look for mismatching arguments.
12326 (estimate_growth): Fix handlig of non-trivial self recursion.
12327 (inline_read_summary): Do not read info->disregard_inline_limits.
12328 (inline_write_summary): Do not write info->disregard_inline_limits.
12329 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
12330 and move all checks into can_inline_edge_p predicate; re-enable code
12331 comparing optimization levels.
12332 (expand_call_inline): Do not test inline_forbidden_into_p.
12333 * Makefile.in (ipa-inline.o): Update arguments.
12335 2011-04-17 Revital Eres <revital.eres@linaro.org>
12337 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
12339 2011-04-17 Revital Eres <revital.eres@linaro.org>
12341 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
12343 2011-04-17 Michael Matz <matz@suse.de>
12345 PR tree-optimization/48622
12347 * ipa-inline-analysis.c (inline_read_summary): Read size/time
12348 in same order as they're written.
12350 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12352 * config/pa/predicates.md: Reorganize and simplify predicates.
12353 Eliminate duplicate code checks.
12354 (arith_operand): Rename to arith14_operand
12355 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
12356 * config/pa/pa.md: Use renamed operands.
12357 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
12358 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
12359 arith11_operand, adddi3_operand, indexed_memory_operand,
12360 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
12361 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
12362 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
12363 move_dest_operand, move_src_operand, prefetch_cc_operand,
12364 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
12365 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
12366 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
12367 div_operand, int5_operand, movb_comparison_operator,
12368 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
12369 arith_double_operand, ireg_operand, lhs_lshift_operand,
12370 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
12371 integer_store_memory_operand): Likewise.
12372 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
12373 (integer_store_memory_operand, read_only_operand,
12374 function_label_operand, borx_reg_operand,
12375 non_hard_reg_operand): Likewise.
12376 (eq_neq_comparison_operator): Delete unused operator.
12377 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
12378 function_label_operand.
12379 (emit_move_sequence): Likewise.
12381 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
12383 * config/i386/sse.md (sseunpackmode): New mode attribute.
12384 (ssepackmode): Ditto.
12385 (vec_pack_trunc_<mode>): Macroize expander from
12386 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
12387 (vec_unpacks_lo_<mode>): Macroize expander from
12388 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12389 (vec_unpacks_hi_<mode>): Macroize expander from
12390 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12391 (vec_unpacku_lo_<mode>): Macroize expander from
12392 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12393 (vec_unpacku_hi_<mode>): Macroize expander from
12394 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12395 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
12396 ix86_expand_sse4_unpack.
12397 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
12399 2011-04-16 Jan Hubicka <jh@suse.cz>
12401 * cgraphbuild.c: Include ipa-inline.h.
12402 (reset_inline_failed): Use initialize_inline_failed.
12403 * cgraph.c: Include ipa-inline.h.
12404 (cgraph_create_node_1): Do not initialize estimated_growth.
12405 (initialize_inline_failed): More to ipa-inline-analysis.c
12406 (dump_cgraph_node): Do not dump inline flags.
12407 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
12408 and disregard_inline_limits flags.
12409 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
12410 time, size, estimated_growth.
12411 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
12413 * cgraphunit.c (cgraph_decide_is_function_needed): Use
12414 DECL_DISREGARD_INLINE_LIMITS.
12415 (cgraph_analyze_function): Do not initialize
12416 node->local.disregard_inline_limits.
12417 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12418 inlinable, versionable and disregard_inline_limits.
12419 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
12420 cgraph_check_inline_limits, cgraph_default_inline_p,
12421 cgraph_edge_badness, update_caller_keys, update_callee_keys,
12422 add_new_edges_to_heap): Update.
12423 (cgraph_decide_inlining_of_small_function): Update; set
12424 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
12425 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
12426 cgraph_decide_inlining_incrementally): Update.
12427 * ipa-inline.h (inline_summary): Add inlinable, versionable,
12428 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
12429 time, size and estimated_growth parameters.
12430 (estimate_edge_growth): Update.
12431 (initialize_inline_failed): Declare.
12432 * ipa-split.c: Include ipa-inline.h
12433 (execute_split_functions): Update.
12434 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
12435 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
12436 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
12437 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
12438 estimated_growth to INT_MIN.
12439 (inline_node_duplication_hook): Likewise.
12440 (dump_inline_summary): Dump new fields.
12441 (compute_inline_parameters): Update.
12442 (estimate_edge_time, estimate_time_after_inlining,
12443 estimate_size_after_inlining, estimate_growth, inline_read_summary,
12444 inline_write_summary):
12445 (initialize_inline_failed): Move here from cgraph.c.
12446 * tree-sra.c: Include ipa-inline.h.
12447 (ipa_sra_preliminary_function_checks): Update.
12448 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
12451 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
12453 * config/i386/sse.md (V16): New mode iterator.
12455 (AVXMODEQI, AVXMODEDI): Remove.
12456 (sse2, sse3): New mode attribute.
12457 (mov<mode>): Use V16 mode iterator.
12458 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
12459 (push<mode>1): Use V16 mode iterator.
12460 (movmisalign<mode>): Ditto.
12461 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12462 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
12463 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12464 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
12465 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
12466 avx_movdqu<avxmodesuffix>.
12467 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
12468 *avx_movdqu<avxmodesuffix>.
12469 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
12470 avx_lddqu<avxmodesuffix>.
12471 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
12472 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
12473 avx_movnt<AVXMODEDI:mode>.
12474 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
12475 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
12477 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
12480 * haifa-sched.c (prune_ready_list, schedule_block): Use
12481 sched_pressure_p rather than flag_sched_pressure.
12483 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
12485 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12486 cgraph_get_node instead of cgraph_get_create_node.
12488 2011-04-15 Jakub Jelinek <jakub@redhat.com>
12490 * cfgexpand.c (expand_debug_expr): Use
12491 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
12493 2011-04-15 Michael Matz <matz@suse.de>
12495 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12496 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12497 * function.c (gimplify_parameters): Ditto.
12498 * gimplify.c (gimplify_vla_decl): Ditto.
12500 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12501 (gimple_call_set_alloca_for_var): New inline function.
12502 (gimple_call_alloca_for_var_p): Ditto.
12503 * gimple.c (gimple_build_call_from_tree): Remember
12504 CALL_ALLOCA_FOR_VAR_P state.
12505 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12507 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12508 calls if they were for VLA objects.
12510 2011-04-15 Martin Jambor <mjambor@suse.cz>
12512 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12515 2011-04-15 Martin Jambor <mjambor@suse.cz>
12517 PR middle-end/48601
12518 * tree-emutls.c (lower_emutls_function_body): Call
12519 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
12520 result is non-NULL.
12522 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
12524 * c-decl.c (detect_field_duplicates): Call
12525 objc_detect_field_duplicates instead of objc_get_interface_ivars.
12527 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
12529 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12530 * gimple.c (gimple_asm_clobbers_memory_p): Define.
12531 * ipa-pure-const.c (check_stmt): Call it.
12532 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12534 2011-04-15 Richard Guenther <rguenther@suse.de>
12536 PR tree-optimization/48290
12537 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12538 Properly decide inhibiting propagation based on the valueized
12539 operand. Do loop-closed SSA form preserving here ...
12540 (init_copy_prop): ... not here.
12542 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
12545 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12546 (*ieee_smax<mode>3): Likewise.
12548 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12550 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12551 Replace match_operand with match_dup for the third operand in
12554 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12556 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12557 to track processing of conditionals. Update all callers.
12558 (try_combine, simplify_if_then_else): Update.
12560 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12562 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12565 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
12567 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12568 instead of match_operand for operand 3.
12570 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
12572 * recog.h (insn_operand_data): Add an "allows_mem" field.
12573 * genoutput.c (output_operand_data): Initialize it.
12574 * optabs.c (maybe_legitimize_operand_same_code): New function.
12575 (maybe_legitimize_operand): Use it when matching the original
12578 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12580 * gimplify.c: Fix issues in comments throughout.
12581 (voidify_wrapper_expr): Fix long line.
12582 (build_stack_save_restore): Likewise.
12583 (gimplify_loop_expr): Likewise.
12584 (gimplify_compound_lval): Likewise.
12585 (gimplify_init_ctor_eval): Likewise.
12586 (gimplify_modify_expr_rhs): Likewise.
12587 (omp_notice_threadprivate_variable): Likewise.
12589 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12591 * cfgexpand.c (expand_call_stmt): Convert the function type to the
12592 original one if this is not a builtin function.
12594 2011-04-14 Jakub Jelinek <jakub@redhat.com>
12597 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12598 offset it as needed based on top 2 bits in operands[3], change
12599 MEM mode to SFmode and mask those 2 bits away from operands[3].
12601 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12603 * c-parser.c (c_parser_objc_protocol_definition): Updated for
12604 change from objc_declare_protocols() to objc_declare_protocol().
12606 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
12608 * config/i386/sse.md (sse4_1): New mode attribute.
12609 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12610 avx_blend<ssemodesuffix><avxmodesuffix> and
12611 sse4_1_blend<ssemodesuffix> using VF mode iterator.
12612 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12613 avx_blendv<ssemodesuffix><avxmodesuffix> and
12614 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12615 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12616 avx_dp<ssemodesuffix><avxmodesuffix> and
12617 sse4_1_dp<ssemodesuffix> using VF mode iterator.
12618 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12619 (sse4_1_packusdw): Merge with *avx_packusdw.
12620 (sse4_1_pblendvb): Merge with *avx_pblendvb.
12621 (sse4_1_pblendw): Merge with *avx_pblendw.
12622 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12623 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12624 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12626 (sse4_1_round<ssescalarmodesuffix>): Merge with
12627 *avx_round<ssescalarmodesuffix>.
12628 (aesenc): Merge with *avx_aesenc.
12629 (aesenclast): Merge with *avx_aesenclast.
12630 (aesdec): Merge with *avx_aesdec.
12631 (aesdeclast): Merge with *avx_aesdeclast.
12632 (pclmulqdq): Merge with *pclmulqdq.
12633 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12635 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12637 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12639 PR middle-end/48608
12640 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12641 (align_local_variable): This. Update DECL_ALIGN.
12642 (add_stack_var): Updated.
12643 (expand_one_stack_var): Likewise.
12645 2011-04-14 Richard Guenther <rguenther@suse.de>
12647 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12649 (dse_initialize_block_local_data, dse_leave_block,
12650 record_voperand_set, get_stmt_uid): Likewise.
12651 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12652 (dse_optimize_stmt): Remove voperand set handling code.
12653 Simplify and improve to handle any kind of killing stmt.
12654 (dse_record_phi): Remove.
12655 (dse_enter_block): Simplify.
12656 (tree_ssa_dse): Likewise.
12657 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12659 2011-04-14 Jan Hubicka <jh@suse.cz>
12661 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12662 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12663 (cgraph_local_info): Remove inline_summary.
12664 * ipa-cp.c: Include ipa-inline.h.
12665 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12666 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12668 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12669 (input_overwrite_node): Do not set inline summary.
12670 (input_node): Do not stream inline summary.
12671 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12672 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12673 growth; we do not have inline parameters computed for that anyway.
12674 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12675 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12676 (inline_summary_t): New type and VECtor.
12677 (debug_inline_summary, dump_inline_summaries): Declare.
12678 (inline_summary): Use VOCtor.
12679 (estimate_edge_growth): Kill hack computing call stmt size directly.
12680 * lto-section-in.c (lto_section_name): Add inline section.
12681 * ipa-inline-analysis.c: Include lto-streamer.h
12682 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12683 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12684 (inline_summary_vec): Define.
12685 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12686 dump_inline_summaries): New functions.
12687 (estimate_function_body_sizes): Properly compute size/time of outgoing
12689 (compute_inline_parameters): Alloc inline_summary; do not compute
12690 size/time of incomming calls.
12691 (estimate_edge_time): Avoid missing time summary hack.
12692 (inline_read_summary): Read inline summary info.
12693 (inline_write_summary): Write inline summary info.
12694 (inline_free_summary): Free all hooks and inline summary vector.
12695 * lto-streamer.h: Add LTO_section_inline_summary section.
12696 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12697 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12699 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12701 * tree-vectorizer.h (vect_strided_store_supported): Add a
12702 HOST_WIDE_INT argument.
12703 (vect_strided_load_supported): Likewise.
12704 (vect_permute_store_chain): Return void.
12705 (vect_transform_strided_load): Likewise.
12706 (vect_permute_load_chain): Delete.
12707 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12708 count argument. Check that the count is a power of two.
12709 (vect_strided_load_supported): Likewise.
12710 (vect_permute_store_chain): Return void. Update after above changes.
12711 Assert that the access is supported.
12712 (vect_permute_load_chain): Likewise.
12713 (vect_transform_strided_load): Return void.
12714 * tree-vect-stmts.c (vectorizable_store): Update calls after
12715 above interface changes.
12716 (vectorizable_load): Likewise.
12717 (vect_analyze_stmt): Don't check for strided powers of two here.
12719 2011-04-14 Richard Guenther <rguenther@suse.de>
12721 PR tree-optimization/48590
12722 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12723 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12724 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12725 BUILT_IN_STACK_SAVE.
12726 * tree-ssa-dce.c (propagate_necessity): Handle
12727 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12729 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12731 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12732 objc_declare_class.
12734 2011-04-14 Richard Guenther <rguenther@suse.de>
12736 * tree.h (get_object_alignment_1): Declare.
12737 * builtins.c (get_object_alignment_1): Split out worker from ...
12738 (get_object_alignment): ... here.
12739 * fold-const.c (get_pointer_modulus_and_residue): Use
12740 get_object_alignment_1.
12742 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12744 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12746 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12747 parameter. Generalise code to handle arrays as well as vectors.
12748 (vect_setup_realignment): Update accordingly.
12749 * tree-vect-stmts.c (vectorizable_store): Likewise.
12750 (vectorizable_load): Likewise.
12752 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12754 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12755 within the per-copy loop.
12757 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12759 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12762 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12764 * doc/options.texi (Negative): Explicitly mention that the
12765 Negative chain must be circular.
12767 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12769 * function.h (block_chainon): Declare.
12770 * function.c (block_chainon): Define.
12772 2011-04-14 Anatoly Sokolov <aesok@post.ru>
12773 Eric Weddington <eric.weddington@atmel.com>
12774 Georg-Johann Lay <avr@gjlay.de>
12776 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12778 (avr_init_builtins, avr_expand_builtin,
12779 avr_expand_delay_cycles, avr_expand_unop_builtin,
12780 avr_expand_binop_builtin ): New functions.
12781 (avr_builtin_id): New enum
12782 (struct avr_builtin_description): New struct
12783 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12784 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12786 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12787 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12788 UNSPECV_DELAY_CYCLES): new enumeration values
12789 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12790 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12791 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12792 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12793 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12794 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12795 "fmulsu"): New insns
12797 * config/avr/avr-c.c: fix line endings
12798 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12799 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12800 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12801 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12802 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12804 * doc/extend.texi (AVR Built-in Functions): New node
12805 (Target Builtins): Add documentation of AVR
12806 built-in functions.
12808 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
12811 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12812 alone. Error if non-const data has attribute progmem.
12814 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12816 * tree.h (struct tree_constructor): Include tree_typed instead of
12818 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12819 TS_TYPED instead of TS_COMMON.
12821 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12823 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12824 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12825 (sse2_psadbw): Merge with *avx_psadbw.
12826 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12827 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12828 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12829 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12830 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12831 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12832 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12833 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12834 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12835 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12836 (ssse3_palignrti): Merge with *avx_palignrti.
12838 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12840 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12841 * tree-ssanames.c (fini_ssanames): VEC_free it.
12842 (make_ssa_name_fn): Update for VECness of free_ssanames.
12843 (release_ssa_name, release_dead_ssa_names): Likewise.
12844 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12846 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12847 TS_TYPED instead of TS_COMMON.
12849 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12851 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12852 statistics_counter_event.
12853 * tree-ssa-copyrename.c (stats): Define.
12854 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12855 statistics_counter_event.
12856 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12857 (bswap_stats, widen_mul_stats): Define.
12858 (insert_reciprocals): Increment rdivs_inserted.
12859 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12860 rfuncs_inserted. Add calls to statistics_counter_event.
12861 (execute_cse_sincos_1): Increment inserted.
12862 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12863 statistics_counter_event.
12864 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12865 of bswap_stats. Add calls to statistics_counter_event.
12866 (convert_mult_to_widen): Increment widen_mults_inserted.
12867 (convert_plusminus_to_widen): Increment maccs_inserted.
12868 (convert_mult_to_fma): Increment fmas_inserted.
12869 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12870 calls to statistics_counter_event.
12872 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12874 PR rtl-optimization/48455
12875 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12876 `temp_costs->mem_cost'.
12878 2011-04-13 Jan Hubicka <jh@suse.cz>
12880 * ipa-inline.h: New file.
12881 * ipa-inline-analysis.c: New file. Broken out of ...
12882 * ipa-inline.c: ... this file; update toplevel comment;
12883 include ipa-inline.h
12884 (inline_summary): Move to ipa-inline.h
12885 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12886 ipa-inline-analysis.c.
12887 (cgraph_estimate_time_after_inlining): Rename to
12888 estiamte_time_after_inlining; move to ipa-inline-analysis.c
12889 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12890 to estimate_edge_growth.
12891 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12892 rename to estimate_size_after_inlining.
12893 (cgraph_mark_inline_edge): Update for new naming convention.
12894 (cgraph_check_inline_limits): Likewise.
12895 (cgraph_edge_badness): Likewise.
12896 (cgraph_decide_recursive_inlining): Likewise.
12897 (cgraph_decide_inlining_of_small_functions): Likewise.
12898 (cgraph_decide_inlining_incrementally): Likewise.
12899 (cgraph_estimate_growth): Rename to estimate_growth; move to
12900 ipa-inline-analysis.c.
12901 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12902 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12903 (compute_inline_parameters): Likewise.
12904 (compute_inline_parameters_for_current): Likewise.
12905 (pass_inline_parameters): Likewise.
12906 (inline_indirect_intraprocedural_analysis): Likewise.
12907 (analyze_function): Rename to inline_analyze_function; likewise.
12908 (add_new_function): Move to ipa-inline-analysis.c.
12909 (inline_generate_summary): Likewise.
12910 (inline_read_summary): Likewise.
12911 (inline_write_summary): Likewise.
12912 * Makefile.in (ipa-inline-analysis.c): New file.
12914 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12916 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12917 * configure: Regenerate.
12919 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12921 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12922 instead of tree_common.
12923 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12925 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12926 TS_TYPED rather than TS_COMMON.
12927 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12929 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
12932 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12933 r20 around calls of __tablejump_elpm__
12935 2011-04-13 Jakub Jelinek <jakub@redhat.com>
12937 PR middle-end/48591
12938 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12940 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12942 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12944 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12945 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12946 (cfi_vec): New typedef.
12947 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12948 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12949 (cie_cfi_vec): New static variable.
12950 (cie_cfi_head): Delete.
12951 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12952 declaration changed. Use vector rather than list operations.
12953 (new_cfi): Don't initialize the dw_cfi_next field.
12954 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12955 rather than list operations.
12956 (lookup_cfa): Use vector rather than list operations.
12957 (output_cfis): New argument upto. Accept a cfi_vec rather than
12958 a dw_cfi_ref list head as argument. All callers changed.
12959 Iterate over the vector using upto as a maximum index.
12960 (output_all_cfis): New static function.
12961 (output_fde): Use vector rather than list operations. Use the
12962 new upto argument for output_cfis rather than manipulating a
12964 (dwarf2out_begin_prologue): Change initializations to match
12965 new struct members.
12966 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12967 from the vector length rather than searching for the end of a list.
12968 Use output_all_cfis.
12969 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12971 2011-04-13 Nick Clifton <nickc@redhat.com>
12973 * config/rx/rx.md (movmemsi): Do not use this pattern when
12974 volatile pointers are involved.
12976 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12978 * config/i386/sse.md (pinsrbits): Remove.
12979 (sse2_packsswb): Merge with *avx_packsswb.
12980 (sse2_packssdw): Merge with *avx_packssdw.
12981 (sse2_packuswb): Merge with *avx_packuswb.
12982 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12983 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12984 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12985 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12986 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12987 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12988 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12989 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12990 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12991 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12992 (sse2_loadld): Merge with *avx_loadld.
12993 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12994 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12995 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12996 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12997 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12999 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13001 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
13002 calling TREE_CHAIN.
13003 * print-tree.c (print_node): Likewise.
13004 * tree-inline.c (copy_tree_r): Likewise.
13005 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
13006 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
13007 instead of TS_COMMON.
13008 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
13009 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
13010 (copy_node_stat): Zero TREE_CHAIN only if necessary.
13011 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
13012 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
13014 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
13016 (TREE_CHAIN): Check for a TS_COMMON structure.
13017 (TREE_TYPE): Check for a TS_TYPED structure.
13019 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
13021 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13022 cgraph_get_create_node instead of cgraph_node.
13024 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
13026 * c-parser.c (c_parser_initelt): Updated call to
13027 objc_build_message_expr.
13028 (c_parser_postfix_expression): Likewise.
13030 2011-04-12 Kai Tietz <ktietz@redhat.com>
13032 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
13033 MASK_MS_BITFIELD_LAYOUT bit.
13035 2011-04-12 Jakub Jelinek <jakub@redhat.com>
13037 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
13038 assert it is always true.
13039 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
13042 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
13044 * c-parser.c (c_lex_one_token): Rewritten conditional used when
13045 compiling Objective-C to be more efficient.
13047 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
13049 * opts-common.c (decode_cmdline_options_to_array): Remove variable
13052 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13054 * recog.h, genoutput.c, optabs.c: Revert last patch.
13056 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13059 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
13061 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13063 * recog.h (insn_operand_data): Add an "allows_mem" field.
13064 * genoutput.c (output_operand_data): Initialize it.
13065 * optabs.c (maybe_legitimize_operand_same_code): New function.
13066 (maybe_legitimize_operand): Use it when matching the original
13069 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13071 * genpreds.c (process_define_predicate): Move most processing
13072 to gensupport.c. Continue to validate the expression.
13073 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
13074 (process_define_predicate): Move processing to gensupport.c.
13075 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
13076 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
13077 (compute_predicate_codes): Moved from genrecog.c. Add lineno
13079 (valid_predicate_name_p): New function, split out from old
13080 genpreds.c:process_define_predicate.
13081 (process_define_predicate): New function, combining code from
13082 old genpreds.c and genrecog.c functions.
13083 (process_rtx): Call it for DEFINE_PREDICATE and
13084 DEFINE_SPECIAL_PREDICATE.
13086 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13088 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
13089 size of a '%A' memory reference.
13090 (T_DREG, T_QREG): New neon_builtin_type_bits.
13091 (arm_init_neon_builtins): Assert that the load and store operands
13092 are neon_struct_operands.
13093 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
13094 (NEON_ARG_MEMORY): New builtin_arg.
13095 (neon_dereference_pointer): New function.
13096 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
13097 Handle NEON_ARG_MEMORY.
13098 (arm_expand_neon_builtin): Update after above interface changes.
13099 Use NEON_ARG_MEMORY for loads and stores.
13100 * config/arm/predicates.md (neon_struct_operand): New predicate.
13101 * config/arm/iterators.md (V_two_elem): Tweak formatting.
13102 (V_three_elem): Use BLKmode for accesses that have no associated mode.
13103 (V_four_elem): Tweak formatting.
13104 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
13105 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
13106 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
13107 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
13108 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
13109 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
13110 (neon_vst4<mode>): Replace pointer operand with a memory operand.
13111 Use %A in the output template.
13112 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
13113 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
13114 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
13115 the width of the memory access. Remove post-increment.
13116 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
13118 2011-04-12 Nick Clifton <nickc@redhat.com>
13120 * config/v850/v850.c (expand_prologue): Do not use the CALLT
13121 instruction for interrupt handlers if the target is the basic V850
13123 (expand_epilogue): Likewise.
13125 2011-04-12 Jakub Jelinek <jakub@redhat.com>
13127 PR rtl-optimization/48549
13128 * combine.c (propagate_for_debug): Also stop after BB_END of
13129 this_basic_block. Process LAST and just stop processing after it.
13130 (combine_instructions): If last_combined_insn has been deleted,
13131 set last_combined_insn to its PREV_INSN.
13133 2011-04-12 Richard Guenther <rguenther@suse.de>
13135 PR tree-optimization/46076
13136 * gimple.h (struct gimple_statement_call): Add fntype field.
13137 (gimple_call_fntype): Adjust.
13138 (gimple_call_set_fntype): New function.
13139 * gimple.c (gimple_build_call_1): Set the call function type.
13140 * gimplify.c (gimplify_call_expr): Preserve the function
13141 type the frontend used for the call.
13142 (gimplify_modify_expr): Likewise.
13143 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
13145 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
13147 * tree-ssa.c (useless_type_conversion_p): Function pointer
13148 conversions are useless.
13150 2011-04-12 Martin Jambor <mjambor@suse.cz>
13152 * cgraph.h (cgraph_node): Remove function declaration.
13153 (cgraph_create_node): Declare.
13154 (cgraph_get_create_node): Likewise.
13155 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
13156 Updated all callers.
13157 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
13158 the decl does not already exist. Call cgraph_get_create_node instead
13160 (cgraph_get_create_node): New function.
13161 (cgraph_same_body_alias): Update comment.
13162 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
13163 assert it does not return NULL.
13164 (cgraph_update_edges_for_call_stmt): Likewise.
13165 (cgraph_clone_edge): Likewise.
13166 (cgraph_create_virtual_clone): Likewise.
13167 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
13168 instead of cgraph_node.
13169 (cgraph_add_new_function): Call cgraph_create_node or
13170 cgraph_get_create_node instead of cgraph_node.
13171 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
13172 instead of cgraph_node.
13173 (record_eh_tables): Likewise.
13174 (mark_address): Likewise.
13175 (mark_load): Likewise.
13176 (build_cgraph_edges): Call cgraph_get_create_node instead
13178 (rebuild_cgraph_edges): Likewise.
13179 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
13180 instead of cgraph_node.
13181 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
13183 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
13184 cgraph_create_node instead of cgraph_node.
13185 * c-decl.c (finish_function): Call cgraph_get_create_node instead
13187 * lto-cgraph.c (input_node): Likewise.
13188 * lto-streamer-in.c (input_function): Likewise.
13189 * varasm.c (mark_decl_referenced): Likewise.
13190 (assemble_alias): Likewise.
13192 2011-04-12 Martin Jambor <mjambor@suse.cz>
13194 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
13195 instead of cgraph_node and assert it does not return NULL.
13196 * lto-streamer-in.c (lto_read_body): Likewise.
13197 * omp-low.c (new_omp_context): Likewise.
13198 (create_task_copyfn): Likewise.
13199 * tree-emutls.c (lower_emutls_function_body): Likewise.
13200 * matrix-reorg.c (transform_allocation_sites): Likewise.
13202 2011-04-12 Jakub Jelinek <jakub@redhat.com>
13205 * c-typeck.c (build_asm_expr): Error out on attempts to use
13206 void type outputs or inputs for constraints that allow reg or
13207 don't allow memory.
13209 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
13210 Richard Earnshaw <rearnsha@arm.com>
13213 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
13214 to use sign-magnitude offsets. Reject unsupported unaligned
13215 cases. Add detailed description in comments.
13216 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
13217 condition from TARGET_32BIT to TARGET_ARM.
13219 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
13221 * tree.h (struct typed_tree): New.
13222 (struct tree_common): Include it instead of tree_base.
13223 (TREE_TYPE): Update for new location of type field.
13224 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
13225 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
13226 (union tree_node): Add typed field.
13227 * treestruct.def (TS_TYPED): New.
13228 * lto-streamer.c (check_handled_ts_structures): Handle it.
13229 * tree.c (MARK_TS_TYPED): New macro.
13230 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
13232 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
13234 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
13235 (force_nonfallthru): Do not alter the loop nest if no basic block
13238 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
13240 * config/i386/sse.md (VI): New mode iterator.
13241 (SSEMODEI): Remove.
13242 (AVX256MODEI): Ditto.
13243 (AVXMODEF4P): Ditto.
13244 (avxvecpsmode): Ditto.
13245 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
13246 (sse2_andnot<mode>3): New expander.
13247 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
13248 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
13249 (<any_logic:code><mode>3): Use VI mode iterator.
13250 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
13251 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
13252 (*andnottf3): Handle AVX three-operand constraints.
13253 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
13255 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13256 Robert Millan <rmh@gnu.org>
13258 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
13259 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
13260 GNU_USER_DYNAMIC_LINKER64): Define.
13261 (REG_NAME): Don't undefine.
13262 (MD_UNWIND_SUPPORT): Undefine.
13263 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
13264 (REG_NAME): Don't undefine.
13265 (MD_UNWIND_SUPPORT): Undefine.
13266 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
13268 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13270 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
13271 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
13273 2011-04-11 Xinliang David Li <davidxl@google.com>
13275 * value-profile.c (check_ic_target): New function.
13276 (gimple_ic_transform): Sanity check indirect call target.
13277 * gimple-low.c (gimple_check_call_args): Interface change.
13278 (gimple_check_call_matching_types): New function.
13279 * tree-inline.c (tree_can_inline_p): Call new function.
13281 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
13283 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
13284 tree-pretty-print.h & realmpfr.h.
13286 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
13288 PR middle-end/48464
13289 * ira.c (setup_pressure_classes): Fix typo in loop condition.
13290 (setup_allocno_and_important_classes): Ditto.
13292 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13294 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
13295 GNU_USER_DYNAMIC_LINKER.
13296 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
13297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13298 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
13299 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13300 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13301 GNU_USER_TARGET_OS_CPP_BUILTINS.
13302 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
13303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13304 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13306 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
13307 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13308 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13309 GNU_USER_TARGET_OS_CPP_BUILTINS.
13310 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13311 GNU_USER_DYNAMIC_LINKER.
13312 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13313 GNU_USER_TARGET_OS_CPP_BUILTINS.
13314 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
13315 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13316 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
13317 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13318 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
13319 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
13320 GNU_USER_DYNAMIC_LINKER64): Remove.
13321 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
13322 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13323 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13324 GNU_USER_DYNAMIC_LINKER.
13325 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13326 GNU_USER_TARGET_OS_CPP_BUILTINS.
13327 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13328 GNU_USER_TARGET_OS_CPP_BUILTINS.
13329 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
13330 to GNU_USER_TARGET_OS_CPP_BUILTINS.
13331 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13332 GNU_USER_TARGET_OS_CPP_BUILTINS.
13333 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
13334 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
13335 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13336 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
13337 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13338 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13339 GNU_USER_DYNAMIC_LINKER.
13340 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13341 GNU_USER_TARGET_OS_CPP_BUILTINS.
13342 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
13343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13344 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13345 GNU_USER_DYNAMIC_LINKER.
13346 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13347 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13348 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
13349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13350 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13351 GNU_USER_DYNAMIC_LINKER.
13352 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
13353 GNU_USER_DYNAMIC_LINKERN32.
13354 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
13355 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
13356 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
13357 GNU_USER_DYNAMIC_LINKER32.
13358 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
13359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13360 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13361 GNU_USER_DYNAMIC_LINKER.
13362 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13364 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
13365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13366 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13367 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
13368 GNU_USER_DYNAMIC_LINKER32.
13369 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13370 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
13371 GNU_USER_DYNAMIC_LINKER.
13372 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
13373 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13374 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13375 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
13376 GNU_USER_DYNAMIC_LINKER64.
13377 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
13378 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13379 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13380 GNU_USER_DYNAMIC_LINKER.
13381 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
13382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13383 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13384 GNU_USER_DYNAMIC_LINKER.
13385 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
13386 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13387 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13388 GNU_USER_DYNAMIC_LINKER32.
13389 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13390 GNU_USER_DYNAMIC_LINKER64.
13391 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13392 GNU_USER_DYNAMIC_LINKER64.
13393 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
13394 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13395 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
13396 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13397 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13399 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13401 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
13402 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
13403 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
13404 GNU_USER_DYNAMIC_LINKER.
13405 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13406 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
13407 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
13408 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
13409 GNU_USER_DYNAMIC_LINKER64.
13410 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13411 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
13412 GNU_USER_LINK_EMULATION.
13413 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
13414 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
13415 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
13416 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
13417 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
13418 CPP_SPEC, CC1_SPEC): Remove.
13419 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
13420 (GNU_USER_DYNAMIC_LINKER): Define.
13421 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
13422 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
13423 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
13424 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
13425 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
13426 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
13427 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13428 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
13429 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
13430 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
13431 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
13432 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
13433 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
13434 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
13435 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
13436 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13437 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13438 GNU_USER_DYNAMIC_LINKER.
13439 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13440 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13441 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13442 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13443 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13444 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13445 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
13446 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
13447 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
13448 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
13450 2011-04-11 Kai Tietz <ktietz@redhat.com>
13454 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
13455 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
13457 (ix86_is_msabi_thiscall): Removed.
13458 (ix86_is_type_thiscall): Likewise.
13459 (ix86_get_callcvt): New function.
13460 (ix86_comp_type_attributes): Simplify check.
13461 (ix86_function_regparm): Use ix86_get_callcvt for calling
13462 convention attribute checks.
13463 (ix86_return_pops_args): Likewise.
13464 (ix86_static_chain): Likewise.
13465 (x86_this_parameter): Likewise.
13466 (x86_output_mi_thunk): Likewise.
13467 (ix86_function_type_abi): Optimize check for types without attributes.
13468 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
13469 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
13470 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
13472 (IX86_BASE_CALLCVT): Helper macro.
13473 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13474 Use ix86_get_callcvt for calling convention attribute checks and avoid
13475 symbol-decoration for stdcall in TARGET_RTD case.
13476 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13478 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
13481 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
13483 * config/i386/sse.md (VI_128): New mode iterator.
13484 (VI12_128): Rename from SSEMODE12.
13485 (VI14_128): Rename from SSEMODE14.
13486 (VI124_128): New mode iterator.
13487 (VI24_128): Rename from SSEMODE248.
13488 (VI248_128): Rename from SSEMODE248.
13489 (SSEMODE124C8): Remove.
13490 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13491 (*sse2_<plusminus_insn><mode>3): Merge with
13492 *avx_<plusminus_insn><mode>3.
13493 (*mulv8hi3): Merge with *avx_mulv8hi3.
13494 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13495 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13496 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13497 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13498 (ashr<mode>3): Merge with *avx_ashr<mode>3.
13499 (lshr<mode>3): Merge with *avx_lshr<mode>3.
13500 (ashl<mode>3): Merge with *avx_ashl<mode>3.
13501 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13502 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13503 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13504 (*<smaxmin:code>v8hi3): Ditto.
13505 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13506 (*<smaxmin:code>v16qi3): Ditto.
13507 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13508 (*sse2_eq<mode>3): Ditto.
13509 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13510 (*sse2_gt<mode>3): Ditto.
13511 (vcondv2di): Split out of vcond<mode>.
13512 (vconduv2di): Split out of vcondu<mode>.
13514 2011-04-11 Richard Guenther <rguenther@suse.de>
13516 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13517 before calling tree_low_cst.
13519 2011-04-11 Richard Guenther <rguenther@suse.de>
13521 * stor-layout.c (layout_type): Compute all array index size operations
13522 in the original type.
13523 (initialize_sizetypes): Add comment.
13524 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13526 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13528 * common.opt (Tbss=, Tdata=, Ttext=): New options.
13530 2011-04-11 Martin Jambor <mjambor@suse.cz>
13532 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13533 of cgraph_node, handle NULL return value.
13534 (cgraph_global_info): Likewise.
13535 (cgraph_rtl_info): Likewise.
13536 * tree-inline.c (estimate_num_insns): Likewise.
13537 * gimplify.c (unshare_body): Likewise.
13538 (unvisit_body): Likewise.
13539 (gimplify_body): Likewise.
13540 * predict.c (optimize_function_for_size_p): Likewise.
13541 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13542 (call_may_clobber_ref_p_1): Likewise.
13543 * varasm.c (function_section_1): Likewise.
13544 (assemble_start_function): Likewise.
13546 2011-04-11 Martin Jambor <mjambor@suse.cz>
13548 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13550 * final.c (rest_of_clean_state): Likewise.
13551 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13552 * passes.c (pass_init_dump_file): Likewise.
13553 (execute_all_ipa_transforms): Likewise.
13554 (function_called_by_processed_nodes_p): Likewise.
13555 * predict.c (maybe_hot_frequency_p): Likewise.
13556 (probably_never_executed_bb_p): Likewise.
13557 (compute_function_frequency): Likewise.
13558 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13559 (unnest_nesting_tree_1): Likewise.
13560 (lower_nested_functions): Likewise.
13561 * tree-optimize.c (execute_fixup_cfg): Likewise.
13562 (tree_rest_of_compilation): Likewise.
13563 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13564 * tree-sra.c (ipa_early_sra): Likewise.
13565 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13566 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13567 * ipa.c (record_cdtor_fn): Likewise.
13568 * ipa-inline.c (cgraph_early_inlining): Likewise.
13569 (compute_inline_parameters_for_current): Likewise.
13570 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13571 * ipa-pure-const.c (local_pure_const): Likewise.
13572 * ipa-split.c (split_function): Likewise.
13573 (execute_split_functions): Likewise.
13574 * cgraphbuild.c (build_cgraph_edges): Likewise.
13575 (rebuild_cgraph_edges): Likewise.
13576 (cgraph_rebuild_references): Likewise.
13577 (remove_cgraph_callee_edges): Likewise.
13578 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13579 (verify_cgraph_node): Likewise.
13580 (cgraph_analyze_functions): Likewise.
13581 (cgraph_preserve_function_body_p): Likewise.
13582 (save_inline_function_body): Likewise.
13583 (save_inline_function_body): Likewise.
13584 * tree-inline.c (copy_bb): Likewise.
13585 (optimize_inline_calls): Likewise.
13587 2011-04-11 Martin Jambor <mjambor@suse.cz>
13589 PR tree-optimization/48195
13590 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13591 ipa_check_create_edge_args.
13592 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13593 ipa_check_create_edge_args.
13594 * ipa-inline.c (inline_generate_summary): Do not call
13595 ipa_check_create_node_params and ipa_check_create_edge_args.
13596 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13597 ipa_check_create_edge_args.
13599 2011-04-09 Anatoly Sokolov <aesok@post.ru>
13601 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13603 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13604 * function.c (record_hard_reg_sets): Likewise.
13605 * ira.c (compute_regs_asm_clobbered): Likewise.
13606 * sched-deps.c (sched_analyze_1): Likewise.
13607 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13609 2011-04-09 Xinliang David Li <davidxl@google.com>
13611 PR tree-optimization/PR48484
13612 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13613 has_valid_pred lazily
13615 2011-04-09 Duncan Sands <baldrick@free.fr>
13617 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13619 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13621 * combine.c (combine_validate_cost): Adjust comments. Set registered
13622 cost of I0 to zero at the end, if any.
13624 2011-04-08 Xinliang David Li <davidxl@google.com>
13626 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13627 to insane profile data.
13629 2011-04-08 Xinliang David Li <davidxl@google.com>
13631 * ipa-cp.c (ipcp_update_profiling): Correct
13632 negative scale factor due to insane profile data.
13634 2011-04-08 Xinliang David Li <davidxl@google.com>
13636 * final.c (dump_basic_block_info): New function.
13637 (final): Dump basic block.
13638 (final_scan_insn): Remove old dump.
13640 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13643 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13646 2011-04-08 Michael Matz <matz@suse.de>
13648 PR middle-end/48389
13649 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13651 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13652 * rtl.h (rebuild_jump_labels_chain): Declare.
13653 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13654 insns inserted on edges.
13656 2011-04-08 Joseph Myers <joseph@codesourcery.com>
13658 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13659 * config/arm/arm-arches.def: New.
13660 * config/arm/arm-opts.h: New.
13661 * config/arm/genopt.sh: New.
13662 * config/arm/arm-tables.opt: New (generated).
13663 * config/arm/arm.c (arm_handle_option, arm_target_help,
13664 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13665 (all_architectures): Get most table contents from arm-arches.def.
13666 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13667 arm_selected_tune here.
13668 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13669 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13670 (march=, mcpu=, mtune=): Use Enum and Var.
13671 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13672 (arm.o): Update dependencies.
13674 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
13676 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13678 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13679 (write_typed_alloc_defns): Likewise.
13680 (main): Calls write_typed_alloc_defns with output_header.
13682 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13684 PR inline-asm/48435
13685 * ira-color.c (setup_profitable_hard_regs): Add comments.
13686 Don't take prohibited hard regs into account.
13687 (setup_conflict_profitable_regs): Rename to
13688 get_conflict_profitable_regs.
13689 (check_hard_reg_p): Check prohibited hard regs.
13691 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13693 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13694 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13695 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13697 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13700 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13701 move from floating point to shift amount register.
13702 (emit_move_sequence): Remove secondary reload support for floating
13703 point to shift amount amount register copies.
13704 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13705 amount register copies.
13706 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13707 register, return false if mode isn't a scalar integer mode.
13708 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13710 2011-04-08 Richard Guenther <rguenther@suse.de>
13712 * gimple.c (gimple_call_flags): Remove kludge.
13714 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13716 * sel-sched.c (sel_region_init): Move call to
13717 sel_setup_region_sched_flags after setup_current_loop_nest.
13719 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
13721 PR rtl-optimization/48272
13722 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13723 init_insn_reg_pressure_info. Adjust a caller.
13724 * sched-int.h (init_insn_reg_pressure_info): Declare.
13725 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13726 when sched-pressure is enabled.
13728 2011-04-08 Richard Guenther <rguenther@suse.de>
13730 * gimple.c (gimple_set_modified): Do not queue calls to
13731 MODIFIED_NORETURN_CALLS here ...
13732 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13734 2011-04-08 Richard Guenther <rguenther@suse.de>
13737 * toplev.c (lang_dependent_init): Do not open asm_out_file
13738 in WPA mode, nor perform debug machinery initialization.
13739 (finalize): Do not unlink asm_out_file in WPA mode.
13741 2011-04-08 Richard Guenther <rguenther@suse.de>
13743 * gimple.h (gimple_call_fntype): New function.
13744 (gimple_call_return_type): Use it.
13745 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13746 * gimple-low.c (gimple_check_call_args): Likewise.
13747 * gimple.c (gimple_call_flags): Likewise.
13748 (gimple_call_arg_flags): Likewise.
13749 (gimple_call_return_flags): Likewise.
13750 * tree-cfg.c (verify_gimple_call): Likewise.
13751 (do_warn_unused_result): Likewise.
13752 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13753 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13755 2011-04-08 Dmitry Melnik <dm@ispras.ru>
13757 PR rtl-optimization/48235
13758 * sel-sched.c (code_motion_process_successors): Recompute the last
13759 insn in basic block if control flow changed.
13760 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13761 Update condition for ilist_remove.
13763 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13765 PR rtl-optimization/48302
13766 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13767 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13768 it to record added preheader blocks.
13769 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13770 on to sel_add_loop_preheaders.
13771 (sel_region_init): Move call to setup_current_loop_nest after
13774 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13777 * cfgloop.h (loop_has_exit_edges): New helper.
13778 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13780 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13781 that have no exit edges.
13783 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13785 PR rtl-optimization/48442
13786 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13787 all callers. Adjust assert.
13789 2011-04-08 Jakub Jelinek <jakub@redhat.com>
13791 PR tree-optimization/48377
13792 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13793 is_packed to true even for types with smaller TYPE_ALIGN than
13796 2011-04-08 Richard Guenther <rguenther@suse.de>
13799 * doc/tm.texi: Re-generate.
13801 2011-04-08 Wei Guozhi <carrot@google.com>
13804 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13805 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13806 * config/arm/arm.md (*push_multi): Change the length computation to
13809 2011-04-08 Anatoly Sokolov <aesok@post.ru>
13811 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13812 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13813 * doc/tm.texi: Regenerate.
13814 * system.h (ASM_OUTPUT_BSS): Poison.
13815 * varasm.c (asm_output_bss): Remove function.
13816 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13818 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13819 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13820 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13821 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13823 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13825 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13827 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13829 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13831 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13834 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13836 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13837 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13838 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13840 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13841 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13842 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13843 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13844 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13845 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13846 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13847 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13848 options. Don't map other m68k options manually. Don't handle
13849 old-style options as canonical.
13850 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13851 * doc/install.texi (m68k-*-*): Document binutils version requirement.
13853 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13855 * basic-block.h (force_nonfallthru): Move to...
13856 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13857 (force_nonfallthru): ...here.
13858 * cfghooks.c (force_nonfallthru): New function.
13859 * cfgrtl.c (force_nonfallthru): Rename into...
13860 (rtl_force_nonfallthru): ...this.
13861 (commit_one_edge_insertion): Do not set AUX field.
13862 (commit_edge_insertions): Do not discover new basic blocks.
13863 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13864 (cfg_layout_rtl_cfg_hooks): Likewise.
13865 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13866 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13867 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13869 2011-04-07 Anatoly Sokolov <aesok@post.ru>
13871 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13874 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
13876 * config/i386/sse.md: Update copyright year.
13877 (avxcvtvecmode): Remove.
13878 (sse_movhlps): Merge with *avx_movhlps.
13879 (sse_movlhps): Merge with *avx_movlhps.
13880 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13881 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13882 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13883 (sse_loadhps): Merge with *avx_loadhps.
13884 (sse_storelps): Merge with *avx_storelps.
13885 (sse_loadlps): Merge with *avx_loadlps.
13886 (sse_movss): Merge with *avx_movss.
13887 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13888 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13889 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13890 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13891 (vec_set<mode>_0): Ditto.
13892 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13893 (sse4_1_insertps): Merge with *avx_insertps.
13894 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13895 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13896 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13897 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13898 (sse2_storehpd): Merge with *avx_storehpd.
13899 (sse2_loadhpd): Merge with *avx_loadhpd.
13900 (sse2_loadlpd): Merge with *avx_loadlpd.
13901 (sse2_movsd): Merge with *avx_movsd.
13902 (*vec_concatv2df): Merge with *vec_concatv2df.
13904 2011-04-07 Jakub Jelinek <jakub@redhat.com>
13907 * combine.c (combine_instructions): Add last_combined_insn,
13908 update it if insn is after it, pass it to all try_combine calls.
13909 (try_combine): Add last_combined_insn parameter, pass it instead of
13910 i3 to propagate_for_debug.
13912 2011-04-07 Nick Clifton <nickc@redhat.com>
13914 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13915 to handle MDR <-> data register transfers.
13916 (movhi_internal): Likewise.
13918 2011-04-07 Alan Modra <amodra@gmail.com>
13920 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13921 previous stack info.
13923 2011-04-07 Tom de Vries <tom@codesourcery.com>
13926 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13927 flow_find_cross_jump. Swap variables to implement backward replacement.
13928 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13930 2011-04-07 Tom de Vries <tom@codesourcery.com>
13933 * cfgcleanup.c (walk_to_nondebug_insn): New function.
13934 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13936 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13937 src1 or src2. Redirect edges to the last basic block. Update
13938 frequency and count on multiple basic blocks in case of fallthru.
13940 2011-04-07 Tom de Vries <tom@codesourcery.com>
13943 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13945 (old_insns_match_p): Change return type. Replace return false/true
13946 with return dir_none/dir_both. Use can_replace_by.
13947 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13948 direction from dir_p. Register replacement direction in dir, last_dir
13949 and afterlast_dir. Handle new return type of old_insns_match_p using
13950 merge_dir. Return replacement direction in dir_p.
13951 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13952 return type of old_insns_match_p.
13953 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13954 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13955 flow_find_cross_jump.
13956 * basic-block.h (enum replace_direction): New type.
13957 (flow_find_cross_jump): Add parameter to declaration.
13959 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13961 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13962 (AVXMODEDCVTPS2DQ): Ditto.
13963 (VEC_FLOAT_MODE): Ditto.
13964 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13965 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13966 (<any_logic:code><mode>3): Use VF mode iterator.
13967 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13968 Use VF mode iterator.
13969 (copysign<mode>3): Use VF mode iterator.
13970 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13971 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13972 (*<any_logic:code><MODEF:mode>3): Merge with
13973 *avx_<any_logic:code><MODEF:mode>3.
13974 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13975 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13976 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13977 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13978 (sse2_cvtdq2ps): Use %v modifier.
13979 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13980 (avx_cvtps2dq<avxmodesuffix>): Remove.
13981 (sse2_cvtps2dq): Use %v modifier.
13982 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13983 (avx_cvttps2dq<avxmodesuffix>): Remove.
13984 (sse2_cvttps2dq): Use %v modifier.
13985 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13986 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13987 (sse2_cvtsd2siq): Fix insn template.
13988 (sse2_cvtsd2siq_2): Ditto.
13989 (sse2_cvttsd2siq): Ditto.
13990 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13991 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13993 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13995 * gcov-io.c: Use GCC Runtime Library Exception.
13997 2011-04-06 Jakub Jelinek <jakub@redhat.com>
14000 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
14001 as base_reg whatever register reg has been eliminated to, instead
14002 of hardcoding STACK_POINTER_REGNUM.
14004 2011-04-06 Joseph Myers <joseph@codesourcery.com>
14006 * doc/tm.texi.in: Document C target hooks as separate from general
14008 * doc/tm.texi: Regenerate.
14009 * genhooks.c (struct hook_desc): Add docname field.
14010 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
14012 (hook_array): Include c-target.def.
14013 (emit_documentation): Use docname field in output.
14014 (emit_init_macros): Take docname argument. Only emit definitions
14015 for hooks matching docname.
14016 (main): Expect additional arguments in all cases. Pass argument
14017 to emit_init_macros.
14018 * target.def: Move initial macro definitions and comments to
14019 target-hooks-macros.h.
14020 (gcc_targetcm): Move to c-family/c-target.def.
14021 * target.h (targetcm): Move declaration to c-family/c-target.h.
14022 * targhooks.c (default_handle_c_option): Move to
14024 * targhooks.h (default_handle_c_option): Move declaration to
14025 c-family/c-common.h.
14026 * target-hooks-macros.h: New file.
14027 * config.gcc (target_has_targetcm): Define and use to add to
14028 c_target_objs and cxx_target_objs.
14029 * config/default-c.c: New file.
14030 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
14031 of target.h and target-def.h.
14032 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
14033 (darwin_objc_construct_string, darwin_cfstring_ref_p,
14034 darwin_check_cfstring_format_arg): Make static.
14035 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14036 TARGET_STRING_OBJECT_REF_TYPE_P,
14037 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
14038 * config/darwin-protos.h (darwin_objc_construct_string,
14039 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
14041 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14042 TARGET_STRING_OBJECT_REF_TYPE_P,
14043 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
14044 * config/t-darwin (darwin-c.o): Update dependencies.
14045 * system.h (TARGET_HAS_TARGETCM): Poison.
14046 * Makefile.in (TARGET_H): Update.
14047 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
14048 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
14049 (default-c.o): New target.
14050 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
14051 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
14052 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
14054 (build/genhooks.o): Update dependencies.
14056 2011-04-06 Richard Guenther <rguenther@suse.de>
14058 * ipa-inline.c (enum inlining_mode): Remove.
14059 (cgraph_flatten): Use some other token.
14060 (cgraph_edge_early_inlinable_p): New function, split out from ...
14061 (cgraph_perform_always_inlining): New function, split out from ...
14062 (cgraph_decide_inlining_incrementally): ... here.
14063 (cgraph_mark_inline_edge): Adjust.
14064 (cgraph_early_inlining): Re-structure.
14065 (pass_early_inline): Require SSA form.
14067 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
14068 Julian Brown <julian@codesourcery.com>
14069 Mark Shinwell <shinwell@codesourcery.com>
14071 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
14072 LO_REGS only for Thumb-1.
14073 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
14074 be used in short instructions when optimising for size on Thumb-2.
14076 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
14078 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
14079 associated with user returns to be preserved.
14081 2011-04-06 Tristan Gingold <gingold@adacore.com>
14083 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
14084 symbol_queue_size, DBXOUT_DECR_NESTING,
14085 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
14086 if XCOFF_DEBUGGING_INFO.
14088 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
14090 * config/i386/i386.md (attribute isa): New.
14091 (attribute enabled): New.
14092 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
14093 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
14094 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
14095 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
14096 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
14097 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14098 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
14099 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
14101 * config/i386/sse.md (VF): New mode iterator.
14105 (SSEMODEF4): Remove.
14106 (attribute sse): Handle V8SF and V4DF modes.
14107 (<absneg:code><mode>2): Use VF mode iterator.
14108 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
14110 (<plusminus_insn><mode>3): Use VF mode iterator.
14111 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14112 Use VF mode iterator.
14113 (<sse>_vm<plusminus_insn><mode>3): Merge with
14114 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
14115 (mul<mode>3): Use VF mode iterator.
14116 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
14117 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
14119 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
14120 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
14121 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
14122 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
14124 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
14125 Use VF1 mode iterator.
14126 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
14127 (sqrt<VF2:mode>2): New expander.
14128 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
14129 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
14130 and sqrtv2df2. Use VF mode iterator.
14131 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
14133 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
14134 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
14135 Use VF1 mode iterator.
14136 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
14137 (<smaxmin:code><mode>3): Use VF mode iterator.
14138 (*<smaxmin:code><mode>3_finite): Merge with
14139 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
14140 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14141 (<sse>_vm<smaxmin:code><mode>2): Merge with
14142 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
14143 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
14145 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
14147 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
14148 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
14149 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
14150 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
14151 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
14153 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
14154 Use VF_128 mode iterator.
14155 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
14157 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
14158 VF_128 mode iterator.
14159 (vcond<mode>): Use VF mode iterator.
14160 * config/i386/predicates.md (sse_comparison_operator): Merge with
14161 avx_comparison_float_operator. Do not declare as special_predicate.
14162 * config/i386/i386.c (struct builtin_description): Update for renamed
14164 (ix86_expand_args_builtin): Ditto.
14165 (ix86_expand_sse_compare_mask): Ditto.
14167 2011-04-06 Richard Guenther <rguenther@suse.de>
14169 * tree-inline.c (estimate_num_insns): For calls simply account
14170 for all passed arguments and a used return value.
14172 2011-04-06 Richard Guenther <rguenther@suse.de>
14174 PR tree-optimization/47663
14175 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
14176 call_stmt_time fields.
14177 (cgraph_edge_inlinable_p): Declare.
14178 (cgraph_edge_recursive_p): New inline function.
14179 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
14180 (cgraph_clone_edge): Copy it.
14181 * ipa-inline.c (cgraph_estimate_edge_time): New function.
14182 Account for call stmt time.
14183 (cgraph_estimate_time_after_inlining): Take edge argument.
14184 (cgraph_estimate_edge_growth): Account call stmt size.
14185 (cgraph_estimate_size_after_inlining): Take edge argument.
14186 (cgraph_mark_inline_edge): Adjust.
14187 (cgraph_check_inline_limits): Likewise.
14188 (cgraph_recursive_inlining_p): Remove.
14189 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
14190 (cgraph_decide_recursive_inlining): Take edge argument and
14192 (cgraph_decide_inlining_of_small_functions): Do not avoid
14193 diags for recursive inlining here.
14194 (cgraph_flatten): Adjust.
14195 (cgraph_decide_inlining_incrementally): Likewise.
14196 (estimate_function_body_sizes): Remove call cost handling.
14197 (compute_inline_parameters): Initialize caller edge call costs.
14198 (cgraph_estimate_edge_growth): New function.
14199 (cgraph_estimate_growth): Use it.
14200 (cgraph_edge_badness): Likewise.
14201 (cgraph_check_inline_limits): Take an edge argument.
14202 (cgraph_decide_inlining_of_small_functions): Adjust.
14203 (cgraph_decide_inlining): Likewise.
14204 * tree-inline.c (estimate_num_insns): Only account for call
14205 return value if it is used.
14206 (expand_call_inline): Avoid diagnostics on recursive inline
14208 * lto-cgraph.c (lto_output_edge): Output edge call costs.
14209 (input_edge): Input edge call costs.
14211 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14213 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
14215 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
14217 * doc/invoke.texi (Spec Files): Fix typo.
14219 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
14221 * profile.c (branch_prob): Move declaration of local variable. Remove
14222 obsolete ??? comment. Expand the location explicitly instead of using
14223 the LOCATION_FILE and LOCATION_LINE macros.
14225 2011-04-06 Wei Guozhi <carrot@google.com>
14228 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
14229 (arm_cond_branch): Likewise.
14230 (arm_cond_branch_reversed): Likewise.
14231 (arm_jump): Likewise.
14232 (push_multi): Likewise.
14233 * config/arm/constraints.md (Py): New constraint.
14235 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14238 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
14240 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
14241 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
14242 #ifdef DBX_DEBUGGING_INFO.
14244 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
14247 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
14248 if old and new states differ.
14250 2011-04-05 Joseph Myers <joseph@codesourcery.com>
14252 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
14253 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
14254 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14255 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
14256 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
14257 mcfv4e): Use Alias.
14258 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
14259 ColdFire options to -mcpu= options.
14261 2011-04-05 Jeff Law <law@redhat.com>
14263 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
14264 check if BB is a successor of LOOP->header and return
14265 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
14267 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
14269 * cprop.c (struct reg_use): Remove.
14270 (reg_use_table): Make an array of RTX.
14271 (find_used_regs, constprop_register, local_cprop_pass,
14272 bypass_block): Simplify users of reg_use_table.
14273 (cprop_insn): Likewise. Iterate if copy propagation succeeded
14274 on one of the uses found by find_used_regs.
14276 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14279 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
14282 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14284 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
14286 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
14288 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
14290 PR middle-end/48441
14291 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
14293 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14295 * combine.c: Include obstack.h.
14296 (struct insn_link): Define.
14297 (uid_log_links): Adjust type.
14298 (FOR_EACH_LOG_LINK): New macro.
14299 (insn_link_obstack): Declare.
14300 (alloc_insn_link): Define.
14301 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
14302 type of link variables.
14303 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
14304 (try_combine, record_promoted_values, distribute_notes): Likewise.
14305 (distribute_links): Likewise. Tweak prototype.
14306 (clear_log_links): Delete.
14307 (adjust_for_new_dest): Call alloc_insn_link.
14308 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
14310 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14312 * gcse.c (modify_mem_list): Convert to an array of VECs.
14313 (canon_modify_mem_list, compute_transp): Tweak formatting.
14314 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
14315 (load_killed_in_block_p): Likewise.
14316 (record_last_mem_set_info): Likewise.
14317 (clear_modify_mem_tables): Likewise.
14319 2011-04-05 Tom de Vries <tom@codesourcery.com>
14321 PR middle-end/48461
14322 * function.c (emit_use_return_register_into_block): Only define if
14325 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
14327 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
14329 2011-04-05 Joseph Myers <joseph@codesourcery.com>
14331 * config/rx/rx-opts.h: New.
14332 * config/rx/rx.c (rx_cpu_type): Remove.
14333 (rx_handle_option): Don't assert that global structures are in
14334 use. Access variables via opts pointer. Defer most handling of
14335 OPT_mint_register_. Use error_at.
14336 (rx_option_override): Handle deferred OPT_mint_register_ here.
14337 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
14338 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
14339 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
14340 (rx_cpu_types): New Enum and EnumValue entries.
14341 (mint-register=): Use Defer and use Var accordingly.
14343 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14345 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
14346 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
14347 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
14349 (debug_free_queue, debug_nesting, symbol_queue_index):
14351 * dbxout.c: ...to here. Make static.
14353 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14355 * gcse.c (modify_pair): Define. Define a VEC of it.
14356 (canon_modify_mem_list): Convert to an array of VECs.
14357 (free_insn_expr_list_list): Delete.
14358 (clear_modify_mem_tables): Call VEC_free instead.
14359 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
14360 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
14361 (canon_list_insert, compute_transp): Likewise.
14363 2011-04-05 Tom de Vries <tom@codesourcery.com>
14366 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
14369 2011-04-05 Tom de Vries <tom@codesourcery.com>
14372 * function.c (emit_use_return_register_into_block): New function.
14373 (thread_prologue_and_epilogue_insns): Use
14374 emit_use_return_register_into_block.
14376 2011-04-05 Tom de Vries <tom@codesourcery.com>
14379 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
14382 2011-04-05 Tom de Vries <tom@codesourcery.com>
14384 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
14386 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
14388 * config/arm/arm.md (define_constants for unspec): Replace with
14390 (define_constants for unspecv): Replace with define_c_enum.
14391 * config/arm/neon.md (define_constants for unspec): Replace with
14394 2011-04-04 Richard Henderson <rth@redhat.com>
14397 * dwarf2out.c (output_line_info): Always emit line info from
14398 at least one section.
14399 (dwarf2out_init): Create text_section_line_info here ...
14400 (set_cur_line_info_table): ... not here.
14402 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
14405 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
14408 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
14410 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
14412 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
14413 (expr_equiv_p): Remove.
14414 (insert_set_in_table): Look at <dest, src> pair instead of expr.
14415 (hash_scan_set): Update call to insert_set_in_table.
14416 (dump_hash_table): Dump <dest, src> pair.
14417 (lookup_set): Simplify. Lookup <dest, src> pair.
14418 (compute_transp): Remove, fold heavily simplified code into...
14419 (compute_local_properties): ...here. Expect COMP and TRANSP
14421 (find_avail_set): Take set directly from struct expr.
14422 (find_bypass-set): Likewise.
14423 (bypass_block): Likewise.
14424 (cprop_insn): Likewise. Remove redundant INSN_P test.
14426 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
14427 checks on form of COND from find_implicit_sets to here.
14428 (find_implicit_sets): Cleanup control flow. Split critical edges
14429 if it exposes implicit sets. Allocate/resize implicit_sets as
14431 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
14432 changed something. Run df_analyze after find_implicit_sets if any
14433 edges were split. Do not allocate implicit_sets here.
14435 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
14436 (gcse_obstack): Renamed to cprop_obstack.
14437 (GNEW, GNEWVEC, GNEWVAR): Remove.
14439 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
14440 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
14441 (gcse_alloc): Likewise, and rename to cprop_alloc.
14442 (alloc_gcse_men, free_gcse_mem): Remove.
14443 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
14444 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
14445 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
14447 * cprop.c (oprs_not_set_p): Remove.
14448 (mark_set, mark_clobber): Remove.
14449 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
14450 (reg_not_set_p): New function.
14451 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
14452 (cprop_insn): Likewise.
14453 (cprop_jump): Use FOR_EACH_EDGE.
14455 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
14458 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
14459 (rank_for_schedule): Use scheduled_insns vector instead of
14460 last_scheduled_insn.
14461 (ok_for_early_queue_removal): Likewise.
14462 (queue_to_ready): Search forward in nonscheduled_insns_begin if
14464 (choose_ready): Likewise.
14465 (commit_schedule): Use VEC_iterate.
14466 (schedule_block): Initialize nonscheduled_insns_begin. If we have
14467 a dbg_cnt, use it and ensure the first insn is in the ready list.
14468 (haifa_sched_init): Allocate scheduled_insns.
14469 (sched_extend_ready_list): Don't allocate it; reserve space.
14470 (haifa_sched_finish): Free it.
14472 2011-04-04 Joseph Myers <joseph@codesourcery.com>
14474 * optc-gen.awk: Always remove type from Variable entry before
14475 recording in var_seen.
14477 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14479 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
14480 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
14481 call to tidy_fallthru_edges.
14483 2011-04-04 Joseph Myers <joseph@codesourcery.com>
14485 * doc/options.texi (ToLower): Document.
14486 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
14487 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
14488 * opts.h (cl_option): Add cl_tolower field.
14489 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
14490 arguments with lowercase strings.
14491 * config/rx/rx.opt (mcpu=): Add ToLower.
14492 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14495 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14497 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14499 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14501 * config/vax/vax.c: Include reload.h.
14503 2011-04-04 Anatoly Sokolov <aesok@post.ru>
14505 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14506 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14507 (sparc_preferred_reload_class): New function.
14509 2011-04-04 Jakub Jelinek <jakub@redhat.com>
14512 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14513 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14515 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
14517 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14518 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14520 2011-04-03 Anatoly Sokolov <aesok@post.ru>
14522 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14523 (ASM_OUTPUT_ALIGNED_BSS): Define.
14525 2011-04-03 Michael Matz <matz@suse.de>
14527 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14528 and next_slot members.
14529 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14530 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14531 (lto_streamer_cache_append): Declare.
14532 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14533 unsigned index, remove offset parameter, ensure that we append
14534 or update existing entries.
14535 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14536 parameter, update next_slot for append.
14537 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14539 (lto_streamer_cache_insert_at): Likewise.
14540 (lto_streamer_cache_append): New function.
14541 (lto_streamer_cache_lookup): Use unsigned index.
14542 (lto_streamer_cache_get): Likewise.
14543 (lto_record_common_node): Don't test tree_node_can_be_shared.
14544 (preload_common_node): Adjust call to lto_streamer_cache_insert.
14545 (lto_streamer_cache_delete): Don't free offsets member.
14546 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14547 (lto_output_string_with_length): Use lto_output_data_stream.
14548 (lto_output_tree_header): Remove ix parameter, don't write it.
14549 (lto_output_builtin_tree): Likewise.
14550 (lto_write_tree): Adjust callers to above, don't track and write
14551 offset, write unsigned index.
14552 (output_unreferenced_globals): Don't emit all global vars.
14553 (write_global_references): Use unsigned indices.
14554 (lto_output_decl_state_refs): Likewise.
14555 (write_symbol): Likewise.
14556 * lto-streamer-in.c (lto_input_chain): Move earlier.
14557 (input_function): Use unsigned index.
14558 (input_alias_pairs): Don't read and then ignore all global vars.
14559 (lto_materialize_tree): Remove ix_p parameter, don't read index,
14560 don't pass it back, use lto_streamer_cache_append.
14561 (lto_register_var_decl_in_symtab): Use unsigned index.
14562 (lto_register_function_decl_in_symtab): Likewise.
14563 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14565 (lto_get_builtin_tree): Don't read index, use
14566 lto_streamer_cache_append.
14567 (lto_read_tree): Adjust call to lto_materialize_tree.
14569 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14570 don't use function calls in arguments to MIN.
14572 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14575 * gimple.c (gimple_type_leader_entry): Mark deletable.
14577 2011-04-03 Alan Modra <amodra@gmail.com>
14579 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14581 2011-04-03 Michael Matz <matz@suse.de>
14583 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14585 * tree.h (tree_decl_non_common.vindex): Adjust comment.
14587 2011-04-03 Michael Matz <matz@suse.de>
14589 * cgraphbuild.c (record_reference): Canonicalize constructor values.
14590 * gimple-fold.c (canonicalize_constructor_val): Accept being called
14591 without function context.
14592 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14593 current_function_decl and cfun.
14595 2011-04-03 Michael Matz <matz@suse.de>
14597 * tree.c (decl_init_priority_insert): Don't create entry for
14599 (decl_fini_priority_insert): Ditto.
14600 (fields_compatible_p, find_compatible_field): Remove.
14601 * tree.h (fields_compatible_p, find_compatible_field): Remove.
14602 * gimple.c (gimple_compare_field_offset): Adjust block comment.
14604 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
14606 * combine.c (try_combine): Remove useless local variable.
14608 2011-04-03 Richard Guenther <rguenther@suse.de>
14609 Ira Rosen <ira.rosen@linaro.org>
14611 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14612 non-variable offsets and compare the remaining bases of the two
14613 accesses instead of looking for exact same data-ref.
14615 2011-04-02 Kai Tietz <ktietz@redhat.com>
14618 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14620 * i386.c (ix86_is_msabi_thiscall): New helper function.
14621 (ix86_is_type_thiscall): New helper function.
14622 (ix86_comp_type_attributes): Handle thiscall for method-functions
14624 (init_cumulative_args): Likewise.
14625 (find_drap_reg): Likewise.
14626 (ix86_static_chain): Likewise.
14627 (x86_this_parameter): Likewise.
14628 (x86_output_mi_thunk): Likewise.
14630 2011-04-01 Olivier Hainque <hainque@adacore.com>
14631 Nicolas Setton <setton@adacore.com>
14632 Eric Botcazou <ebotcazou@adacore.com>
14634 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14635 (add_gnat_descriptive_type_attribute): New function.
14636 (gen_array_type_die): Call it.
14637 (gen_enumeration_type_die): Likewise.
14638 (gen_struct_or_union_type_die): Likewise.
14639 (modified_type_die): Likewise.
14640 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14641 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14642 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14644 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14647 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14648 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14651 2011-03-17 Richard Guenther <rguenther@suse.de>
14654 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14655 origin for decls in other ltrans units.
14656 (input_varpool_node): Likewise.
14658 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14660 PR middle-end/48335
14661 * expr.c (expand_assignment): Handle all possibilities
14662 if TO_RTX is CONCAT.
14663 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14664 (store_split_bit_field): If SUBREG_REG (op0) or
14665 op0 itself has smaller mode than word, return it
14666 for offset 0 and const0_rtx for out-of-bounds stores.
14667 If word is const0_rtx, skip it.
14669 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14671 * config/h8300/h8300.c (print_operand_address): Rename to...
14672 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14673 Call h8300_print_operand and h8300_print_operand_address instead of
14674 print_operand and print_operand_address. Declare.
14675 (print_operand): Renake to...
14676 (h8300_print_operand): ...this. Make static. Adjust comments.
14677 Call h8300_print_operand instead of print_operand. Declare.
14678 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14679 (h8300_register_move_cost): Likewise.
14680 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14681 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14682 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14683 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14684 * config/h8300/h8300-protos.h (print_operand): Delete.
14685 (print_operand_address): Delete.
14687 2011-04-01 Richard Henderson <rth@redhat.com>
14690 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14691 in strict mode before dwarf4. Re-order tests to early out
14692 before switching sections.
14694 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14696 * config/h8300/constraints.md: New file.
14697 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14698 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14699 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14700 * config/h8300/predicates.md (bit_operand): Likewise.
14701 (incdec_operand): Use satisfies_constraint_M and
14702 satisfies_constraint_O. Don't use C code block.
14703 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14704 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14705 (compute_mov_length): Use satisfies_constraint_G.
14706 (fix_bit_operand): Use satisfies_constraint_U.
14707 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14708 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14709 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14710 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14711 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14712 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14713 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14714 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14715 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14716 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14717 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14718 (EXTRA_MEMORY_CONSTRAINT): Delete.
14720 2011-04-01 Andrew Pinski <pinskia@gmail.com>
14721 Michael Meissner <meissner@linux.vnet.ibm.com>
14724 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14725 operands, as per the specifications.
14727 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14728 (vec_extract_evenv4sf): Ditto.
14729 (vec_extract_evenv8hi): Ditto.
14730 (vec_extract_evenv16qi): Ditto.
14731 (vec_extract_oddv4si): Ditto.
14733 2011-03-31 Mark Wielaard <mjw@redhat.com>
14735 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14736 high_pc attribute if the CU has no associated code. Only output
14737 DW_AT_entry_pc for CU if not generating strict dwarf and
14740 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14742 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14743 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14745 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14746 * final.c (final_start_function): Call the new function rather
14747 than using a NULL argument for dwarf2out_frame_debug.
14749 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14750 that contains the prologue.
14752 * haifa-sched.c (queue_insn): New arg REASON. All callers
14753 changed. Print it in debugging output.
14755 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14757 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14758 Split most of the code into...
14759 (begin_move_insn): ... here. New function.
14760 (ebb_sched_info): Add a pointer to it.
14761 * haifa-sched.c (scheduled_insns): New static variable.
14762 (sched_extend_ready_list): Allocate it.
14763 (schedule_block): Use it to record the order of scheduled insns.
14764 Perform RTL changes to move insns only after all scheduling
14765 decisions have been made.
14766 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14767 begin_move_insn field.
14768 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14769 * sched-int.h (struct haifa_sched_info): Remove second argument
14770 from begin_schedule_ready hook. Add new member begin_move_insn.
14771 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14772 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14774 * haifa-sched.c (prune_ready_list): New function, broken out of
14776 (schedule_block): Use it.
14778 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14780 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14782 2011-04-01 Kai Tietz <ktietz@redhat.com>
14784 * config.gcc (*-*-mingw*): Allow as option the
14785 posix threading model.
14786 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
14787 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14789 (CPP_SPEC): Add pthread/no-pthread handling.
14790 (LIB_SPEC): Likewise.
14791 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14792 (LIB_SPEC): Likewise.
14793 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14794 flag to pass -pthread option for shared libgcc build.
14795 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14796 for shared libgcc build.
14797 * config/i386/t-mingw-pthread: New file.
14798 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14799 New define to enable use of library pthread by default.
14800 * config/i386/mingw.opt (pthread): New driver option.
14801 (no-pthread): New driver option.
14802 * config/i386/cygming.opt: Make sure trailing empty line is retained.
14803 * config/i386/mingw-w64.opt: Likewise.
14805 2011-04-01 Gary Funck <gary@intrepid.com>
14807 * c-decl.c (grokdeclarator): Fix formatting.
14809 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14811 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14812 instead of n_operands.
14813 (set_storage_via_setmem): Likewise.
14814 * optabs.c (maybe_gen_insn): Likewise.
14815 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14816 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14817 (mips_expand_builtin_direct): Likewise.
14818 * config/spu/spu.c (expand_builtin_args): Likewise.
14820 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14822 * recog.h (insn_data_d): Add n_generator_args.
14823 * genoutput.c (data): Likewise.
14824 (output_insn_data): Print it.
14825 (max_opno, num_dups): Delete.
14826 (scan_operands): Just fill in "d->operand[...]".
14827 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14829 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14831 * gensupport.h (pattern_stats): New structure.
14832 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14833 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14834 (max_operand_1, max_operand_vec): Delete.
14835 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14837 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14839 * emit-rtl.c (emit_pattern_after_setloc): New function.
14840 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14841 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14842 (emit_pattern_after): New function.
14843 (emit_insn_after, emit_jump_insn_after): Call it.
14844 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14845 (emit_pattern_before_setloc): New function.
14846 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14847 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14849 (emit_pattern_before): New function.
14850 (emit_insn_before, emit_jump_insn_before): Call it.
14851 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14853 2011-03-31 Richard Henderson <rth@redhat.com>
14855 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14856 (dw_separate_line_info_entry): Remove.
14857 (enum dw_line_info_opcode): New.
14858 (dw_line_info_entry): Use it.
14859 (dw_line_info_table, dw_line_info_table_p): New.
14860 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14861 (line_info_table, line_info_label_num): Remove.
14862 (line_info_table_in_use): Remove.
14863 (separate_line_info_table): Remove.
14864 (separate_line_info_table_allocated): Remove.
14865 (separate_line_info_table_in_use): Remove.
14866 (LINE_INFO_TABLE_INCREMENT): Remove.
14867 (line_info_label_num): New.
14868 (cur_line_info_table): New.
14869 (text_section_line_info, cold_text_section_line_info): New.
14870 (separate_line_info): New.
14871 (SEPARATE_LINE_CODE_LABEL): Remove.
14872 (print_dwarf_line_table): Remove.
14873 (debug_dwarf): Don't dump it.
14874 (output_one_line_info_table): New.
14875 (output_line_info): Use it.
14876 (new_line_info_table): New.
14877 (set_cur_line_info_table): New.
14878 (dwarf2out_switch_text_section): Use it.
14879 (dwarf2out_begin_function): Likewise.
14880 (push_dw_line_info_entry): New.
14881 (dwarf2out_source_line): Rewrite for new line info tables.
14882 (dwarf2out_init): Remove dead initailizations.
14884 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14886 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14888 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14889 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14890 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14891 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14892 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14893 * opt-functions.awk (flag_init, switch_bit_fields): New.
14894 (switch_flags): Don't handle flags moved to bit-fields. Don't
14895 generate CL_MISSING_OK or CL_SAVE.
14896 * optc-gen.awk: Update to generate bit-field output as well as
14898 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14899 bit-field instead of CL_REJECT_DRIVER flag.
14900 * opts-common.c (generate_canonical_option,
14901 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14902 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14903 instead of CL_REJECT_NEGATIVE flag.
14904 * toplev.c (print_switch_values): Use cl_report bit-field instead
14907 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14909 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14910 a zero minimum index only if it is redundant.
14912 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14914 PR rtl-optimization/48381
14915 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14916 instead of ira_class_hard_reg_index for calculating conflicting
14919 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14921 * cprop.c: Clean up hash table building.
14922 (reg_avail_info): Remove.
14923 (oprs_available_p): Remove.
14924 (record_last_reg_set_info): Remove.
14925 (record_last_set_info): Remove.
14926 (reg_available_p): New function.
14927 (gcse_constant_p): Do not treat unfolded conditions as constants.
14928 (make_set_regs_unavailable): New function.
14929 (hash_scan_set): Simplify with new reg_available_p.
14930 (compute_hash_table_work): Traverse insns stream only once.
14931 Do not compute reg_avail_info. Traverse insns in reverse order.
14932 Record implicit sets after recording explicit sets from the block.
14934 2011-03-31 Michael Matz <matz@suse.de>
14936 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14938 2011-03-31 Anatoly Sokolov <aesok@post.ru>
14940 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14941 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14942 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14943 (h8300_mode_dependent_address_p): New function.
14944 (h8300_get_index): Make static.
14946 2011-03-31 Jeff Law <law@redhat.com>
14948 * reload1.c (elimination_effects): Fix typo in recent change.
14950 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14951 typo potentially leading to null pointer dereference.
14953 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14954 (setup_save_areas): Corresponding changes to avoid useless
14957 * jump.c (reversed_comparison_code_parts): Avoid successive return
14958 statements when REVERSE_CONDITION is defined.
14960 * expr.c (expand_assignment): Avoid useless assignments.
14961 (expand_expr_real_1): Likewise.
14962 (expand_expr_real_2): Avoid useless statements.
14964 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14966 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14968 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14971 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14973 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14976 * doc/tm.texi.in (TARGET_VERSION): Remove.
14977 * doc/tm.texi: Regenerate.
14978 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14979 * collect2.c (main): Don't use TARGET_VERSION.
14980 * mips-tdump.c (main): Don't use TARGET_VERSION.
14981 * mips-tfile.c (main): Don't use TARGET_VERSION.
14982 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14983 * config/rs6000/vxworksae.h: Remove.
14984 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14985 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14986 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14987 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14988 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14989 * config/arm/arm.h (TARGET_VERSION): Remove.
14990 * config/arm/coff.h (TARGET_VERSION): Remove.
14991 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14992 * config/arm/elf.h (TARGET_VERSION): Remove.
14993 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14994 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14995 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14996 * config/arm/pe.h (TARGET_VERSION): Remove.
14997 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14998 * config/arm/semi.h (TARGET_VERSION): Remove.
14999 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
15000 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
15001 * config/arm/vxworks.h (TARGET_VERSION): Remove.
15002 * config/avr/avr.h (TARGET_VERSION): Remove.
15003 * config/bfin/bfin.h (TARGET_VERSION): Remove.
15004 * config/fr30/fr30.h (TARGET_VERSION): Remove.
15005 * config/frv/frv.h (TARGET_VERSION): Remove.
15006 * config/h8300/h8300.h (TARGET_VERSION): Remove.
15007 * config/i386/cygwin.h (TARGET_VERSION): Remove.
15008 * config/i386/darwin.h (TARGET_VERSION): Remove.
15009 * config/i386/darwin64.h (TARGET_VERSION): Remove.
15010 * config/i386/djgpp.h (TARGET_VERSION): Remove.
15011 * config/i386/freebsd.h (TARGET_VERSION): Remove.
15012 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
15013 * config/i386/gnu.h (TARGET_VERSION): Remove.
15014 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
15015 * config/i386/i386elf.h (TARGET_VERSION): Remove.
15016 * config/i386/linux.h (TARGET_VERSION): Remove.
15017 * config/i386/linux64.h (TARGET_VERSION): Remove.
15018 * config/i386/lynx.h (TARGET_VERSION): Remove.
15019 * config/i386/mingw32.h (TARGET_VERSION): Remove.
15020 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
15021 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
15022 * config/i386/netware.h (TARGET_VERSION): Remove.
15023 * config/i386/nto.h (TARGET_VERSION): Remove.
15024 * config/i386/openbsd.h (TARGET_VERSION): Remove.
15025 * config/i386/vxworks.h (TARGET_VERSION): Remove.
15026 * config/ia64/elf.h (TARGET_VERSION): Remove.
15027 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
15028 * config/ia64/hpux.h (TARGET_VERSION): Remove.
15029 * config/ia64/linux.h (TARGET_VERSION): Remove.
15030 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15031 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
15032 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15033 * config/lm32/lm32.h (TARGET_VERSION): Remove.
15034 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
15035 * config/m32c/m32c.h (TARGET_VERSION): Remove.
15036 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
15037 * config/m32r/m32r.h (TARGET_VERSION): Remove.
15038 * config/m68k/linux.h (TARGET_VERSION): Remove.
15039 * config/m68k/m68k.h (TARGET_VERSION): Remove.
15040 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
15041 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
15042 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
15043 * config/mep/mep.h (TARGET_VERSION): Remove.
15044 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
15045 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15046 * config/mips/iris6.h (MACHINE_TYPE): Remove.
15047 * config/mips/linux.h (TARGET_VERSION): Remove.
15048 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
15049 * config/mips/vxworks.h (TARGET_VERSION): Remove.
15050 * config/mmix/mmix.h (TARGET_VERSION): Remove.
15051 * config/mn10300/linux.h (TARGET_VERSION): Remove.
15052 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
15053 * config/pa/pa.h (TARGET_VERSION): Remove.
15054 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
15055 * config/picochip/picochip.h (TARGET_VERSION): Remove.
15056 * config/rs6000/aix.h (TARGET_VERSION): Remove.
15057 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
15058 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
15059 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
15060 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
15061 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
15062 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
15063 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
15064 * config/rs6000/linux.h (TARGET_VERSION): Remove.
15065 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
15066 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
15067 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
15068 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
15069 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
15070 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
15071 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
15072 * config/s390/linux.h (TARGET_VERSION): Remove.
15073 * config/s390/s390.h (TARGET_VERSION): Remove.
15074 * config/s390/tpf.h (TARGET_VERSION): Remove.
15075 * config/score/score.h (TARGET_VERSION): Remove.
15076 * config/sh/linux.h (TARGET_VERSION): Remove.
15077 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
15078 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
15079 * config/sh/sh.h (TARGET_VERSION): Remove.
15080 * config/sh/sh64.h (TARGET_VERSION): Remove.
15081 * config/sh/superh.h (TARGET_VERSION): Remove.
15082 * config/sh/vxworks.h (TARGET_VERSION): Remove.
15083 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
15084 * config/sparc/linux.h (TARGET_VERSION): Remove.
15085 * config/sparc/linux64.h (TARGET_VERSION): Remove.
15086 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
15087 TARGET_NAME32, TARGET_NAME): Remove.
15088 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
15089 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
15090 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
15091 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
15092 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
15093 * config/spu/spu.h (TARGET_VERSION): Remove.
15094 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
15095 * config/v850/v850.h (TARGET_VERSION): Remove.
15096 * config/vax/linux.h (TARGET_VERSION): Remove.
15097 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
15098 * config/xtensa/elf.h (TARGET_VERSION): Remove.
15099 * config/xtensa/linux.h (TARGET_VERSION): Remove.
15101 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
15104 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
15105 frame-related from frame-unrelated adjustments to the stack pointer.
15107 2011-03-31 Jakub Jelinek <jakub@redhat.com>
15109 * common.opt (fdebug-types-section): Move earlier.
15110 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
15112 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
15114 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
15117 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
15119 * tree.h (CASE_CHAIN): Define.
15120 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
15121 (gimple_redirect_edge_and_branch): Likewise.
15123 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
15125 PR middle-end/48367
15126 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
15129 2011-03-30 Jeff Law <law@redhat.com>
15131 * PR bootstrap/48371
15132 * reload1.c (reload): Fix botch in last change.
15134 * reload.h (struct reload): Fix typo introduced in last change.
15136 2011-03-30 Joseph Myers <joseph@codesourcery.com>
15138 * config/arm/arm.opt (mhard-float, msoft-float): Mark
15139 Undocumented. Remove help text.
15140 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
15143 2011-03-30 Joseph Myers <joseph@codesourcery.com>
15145 * doc/options.texi (NegativeAlias): Document.
15146 (Alias): Mention NegativeAlias.
15147 * opt-functions.awk: Handle NegativeAlias.
15148 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
15149 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
15150 * opts.h (CL_NEGATIVE_ALIAS): Define.
15151 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
15152 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
15154 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
15156 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15157 mno-spe and mno-isel instead of mspe=no and -misel=no.
15159 2011-03-29 Mark Wielaard <mjw@redhat.com>
15161 * common.opt (fdebug-types-section): New flag.
15162 * doc/invoke.texi: Document new -fno-debug-types-section flag.
15163 * dwarf2out.c (use_debug_types): New define.
15164 (struct die_struct): Mark die_id with GTY desc use_debug_types.
15165 (print_die): Guard output of type unit signatures using
15167 (build_abbrev_table): Replace assert of dwarf_version >= 4
15168 with assert on use_debug_types.
15169 (size_of_die): Likewise.
15170 (unmark_dies): Likewise.
15171 (value_format): Decide AT_ref_external form on use_debug_types.
15172 (output_die): Replace dwarf_version version check guard with
15173 use_debug_types where appropriate.
15174 (modified_type_die): Likewise.
15175 (gen_reference_type_die): Likewise.
15176 (dwarf2out_start_source_file): Likewise.
15177 (dwarf2out_end_source_file): Likewise.
15178 (prune_unused_types_walk_attribs): Likewise.
15179 (dwarf2out_finish): Likewise.
15181 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
15183 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
15185 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
15187 PR rtl-optimization/48332
15188 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
15189 mode of input operand N and modeN to its actual mode.
15191 2011-03-30 Jeff Law <law@redhat.com>
15193 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
15194 define accessor macro.
15195 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
15196 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
15197 (reg_equiv_init): Likewise.
15198 (reg_equivs_size): New variable.
15199 (reg_equiv_init_size): Remove.
15200 (allocate_initial_values): Move prototype to here from....
15201 * integrate.h (allocate_initial_values): Remove prototype.
15202 * integrate.c: Include reload.h.
15203 (allocate_initial_values): Corresponding changes.
15204 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
15205 (fix_reg_equiv_init, no_equiv): Corresponding changes.
15206 (update_equiv_regs): Corresponding changes.
15207 (ira): Corresponding changes.
15208 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
15209 (push_secondary_reload): Corresponding changes.
15210 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
15211 (make_memloc, find_reloads_address): Corresponding changes.
15212 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
15213 (find_reloads_address_1): Corresponding changes.
15214 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
15215 (refers_to_regno_for_reload_p): Corresponding changes.
15216 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
15217 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
15218 * reload1.c: Include ggc.h.
15219 (grow_reg_equivs): New function.
15220 (replace_pseudos_in, reload): Corresponding changes.
15221 (calculate_needs_all_insns, alter_regs): Corresponding changes.
15222 (eliminate_regs_1, elimination_effects): Corresponding changes.
15223 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
15224 (delete_output_reload): Likewise.
15225 * caller-save.c (mark_referenced_regs): Corresponding changes.
15226 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
15227 * frv/predicates.md (frv_load_operand): Corresponding changes.
15228 * microblaze/microblaze.c (double_memory_operand): Corresponding
15230 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
15231 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
15232 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
15233 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
15234 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
15236 * pa/pa.c (emit_move_sequence): Corresponding changes.
15237 * vax/vax.c (nonindexed_address_p): Corresponding changes.
15239 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
15242 * config/arm/arm.c (coproc_secondary_reload_class): Handle
15243 structure modes. Don't check neon_vector_mem_operand for
15244 vector or structure modes.
15246 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
15247 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15250 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
15251 operand 1 and reshuffle the operands to match.
15252 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
15254 2011-03-30 Christian Schüler <cschueler@gmx.de>
15257 * config/c.opt (F): Added 'Driver' to -F option.
15260 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
15262 * config/darwin.opt: Added '-arch' option.
15264 2011-03-30 Nick Clifton <nickc@redhat.com>
15266 * config/rx/rx.md: Add peepholes and patterns to combine
15267 extending loads and simple arithmetic instructions.
15268 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
15269 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
15270 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
15271 modes to use pre-decrement and post-increment addressing.
15272 (rx_is_restricted_memory_address): Add range checking of REG+INT
15274 (rx_print_operand): Add support for %Q. Fix handling of %Q.
15275 (rx_memory_move_cost): Adjust cost of stores.
15276 (rx_adjust_insn_length): New function.
15278 2011-03-30 Jakub Jelinek <jakub@redhat.com>
15281 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15282 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
15283 matching arg00/arg01 types.
15285 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
15287 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
15288 last_location to UNKNOWN_LOCATION.
15290 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
15293 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
15296 2011-03-30 Joseph Myers <joseph@codesourcery.com>
15297 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15300 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
15301 Init(PROCESSOR_V7).
15302 (sparc_cpu): Likewise.
15303 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
15306 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15309 PR middle-end/48342
15310 PR rtl-optimization/48345
15311 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
15312 hard regs for given mode from profitable regs when doing secondary
15315 2011-03-29 Jeff Law <law@redhat.com>
15318 * tree-ssa-threadupdate.c (struct redirection_data): Remove
15319 do_not_duplicate field.
15320 (lookup_redirection_data): Corresponding changes.
15321 (create_duplicates): Always create a template block.
15322 (redirect_edges): Remove code which reused the original block
15323 when it was going to become unreachable code.
15324 (thread_block): Don't set do_not_duplicate field.
15326 2011-03-29 Joseph Myers <joseph@codesourcery.com>
15328 * lto-opts.c (register_user_option_p, lto_register_user_option):
15329 Make type argument unsigned.
15330 * lto-streamer.h (lto_register_user_option): Make type argument
15332 * opth-gen.awk: Make CL_* macros unsigned.
15333 * opts-common.c (find_opt): Make lang_mask argument unsigned.
15334 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
15335 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
15336 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
15337 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
15338 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
15339 (find_opt): Make lang_mask argument unsigned.
15341 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15343 PR rtl-optimization/48331
15344 PR rtl-optimization/48334
15345 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
15346 for any used algorithm.
15348 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15350 * ira-conflicts.c (build_object_conflicts): Add unused attribute
15353 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
15355 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
15356 (alpha_option_override): Don't set alpha_sr_alias_set.
15357 (emit_frame_store_1): Use gen_frame_mem rather than calling
15359 (alpha_expand_epilogue): Ditto.
15361 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
15363 PR tree-optimization/48290
15364 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
15365 vectorization, check that relevant phis in the basic block after
15366 the inner loop are really inner loop's exit phis.
15368 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
15371 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
15372 (cached_dw_loc_list_def): New structure.
15373 (cached_dw_loc_list): New typedef.
15374 (cached_dw_loc_list_table): New variable.
15375 (cached_dw_loc_list_table_hash): New function.
15376 (cached_dw_loc_list_table_eq): Likewise.
15377 (add_location_or_const_value_attribute): Take a bool cache_p.
15378 Cache the list when the parameter is true.
15379 (gen_formal_parameter_die): Update caller.
15380 (gen_variable_die): Likewise.
15381 (dwarf2out_finish): Likewise.
15382 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
15383 while generating debug info for the decl.
15384 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
15385 (dwarf2out_init): Initialize cached_dw_loc_list_table.
15386 (resolve_addr): Cache the result of resolving a chain of
15389 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
15391 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
15392 conflict object hard regset nodes have intersecting hard reg sets.
15394 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
15395 after regstat_init_n_sets_and_refs.
15397 * ira.c: Add more comments at the top.
15398 (setup_stack_reg_pressure_class, setup_pressure_classes):
15399 Add comments how we compute the register pressure classes.
15400 (setup_allocno_and_important_classes): Add more comments.
15401 (setup_class_translate_array, reorder_important_classes)
15402 (setup_reg_class_relations): Add comments.
15404 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
15407 * ira-color.c: Add 2011 to the Copyright line.
15408 (assign_hard_reg): Add more comments.
15409 (improve_allocation): Ditto.
15411 * ira-costs.c: Add 2011 to the Copyright line.
15412 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
15414 (setup_regno_cost_classes_by_mode): Ditto.
15416 Initial patches from ira-improv branch:
15418 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15420 * ira-build.c (ira_create_object): Remove initialization of
15421 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
15422 (ira_create_allocno): Remove initialization of
15423 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
15424 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
15425 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15426 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
15427 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
15428 Initialize ALLOCNO_ADD_DATA.
15429 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
15430 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
15432 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
15433 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
15435 * ira.c (ira_reallocate): Remove.
15436 (setup_pressure_classes): Call
15437 ira_init_register_move_cost_if_necessary. Use
15438 ira_register_move_cost instead of ira_get_register_move_cost.
15439 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
15440 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
15442 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
15443 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15444 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
15445 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
15446 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
15447 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
15449 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
15450 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15451 (struct allocno_color_data): New.
15452 (allocno_color_data_t): New typedef.
15453 (allocno_color_data): New definition.
15454 (ALLOCNO_COLOR_DATA): New macro.
15455 (struct object_color_data): New.
15456 (object_color_data_t): New typedef.
15457 (object_color_data): New definition.
15458 (OBJECT_COLOR_DATA): New macro.
15459 (update_copy_costs, calculate_allocno_spill_cost): Call
15460 ira_init_register_move_cost_if_necessary. Use
15461 ira_register_move_cost instead of ira_get_register_move_cost.
15462 (move_spill_restore, update_curr_costs): Ditto.
15463 (allocno_spill_priority): Make it inline.
15464 (color_pass): Allocate and free allocno_color_dat and object_color_data.
15465 (struct coalesce_data, coalesce_data_t): New.
15466 (allocno_coalesce_data): New definition.
15467 (ALLOCNO_COALESCE_DATA): New macro.
15468 (merge_allocnos, coalesced_allocno_conflict_p): Use
15469 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
15470 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
15471 (coalesce_allocnos): Ditto.
15472 (setup_coalesced_allocno_costs_and_nums): Ditto.
15473 (collect_spilled_coalesced_allocnos): Ditto.
15474 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
15475 (setup_slot_coalesced_allocno_live_ranges): Ditto.
15476 (coalesce_spill_slots): Ditto.
15477 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
15478 free allocno_coalesce_data.
15480 * ira-conflicts.c: Fix formatting.
15481 (process_regs_for_copy): Call
15482 ira_init_register_move_cost_if_necessary. Use
15483 ira_register_move_cost instead of ira_get_register_move_cost.
15484 (build_object_conflicts): Optimize.
15486 * ira-costs.c (record_reg_classes): Optimize. Call
15487 ira_init_register_move_cost_if_necessary. Use
15488 ira_register_move_cost, ira_may_move_in_cost, and
15489 ira_may_move_out_cost instead of ira_get_register_move_cost and
15490 ira_get_may_move_cost.
15491 (record_address_regs): Ditto.
15492 (scan_one_insn): Optimize.
15493 (find_costs_and_classes): Optimize.
15494 (process_bb_node_for_hard_reg_moves): Call
15495 ira_init_register_move_cost_if_necessary. Use
15496 ira_register_move_cost instead of ira_get_register_move_cost.
15498 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15499 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15500 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15501 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15503 (ira_initiate_emit_data, ira_finish_emit_data)
15504 (create_new_allocno): New functions.
15505 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
15506 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15507 Use ira_register_move_cost instead of ira_get_register_move_cost.
15509 * ira-int.h: Fix some comments.
15510 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15511 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15512 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15513 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
15515 (struct ira_allocno): Make mode and aclass a bitfield. Move other
15516 bitfield after mode. Make hard_regno a short int. Make
15517 hard_regno short. Remove first_coalesced_allocno and
15518 next_coalesced_allocno. Move mem_optimized_dest_p,
15519 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15520 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
15521 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15522 temp, colorable_p. Add new member add_data.
15523 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15524 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15525 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15526 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15527 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15528 (ALLOCNO_ADD_DATA): New macro.
15529 (ira_emit_data_t): New typedef.
15530 (struct ira_emit_data): New. Move mem_optimized_dest_p,
15531 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15532 from struct ira_allocno.
15533 (ALLOCNO_EMIT_DATA): New macro.
15534 (ira_allocno_emit_data, allocno_emit_reg): New.
15535 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15536 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15537 (OBJECT_ADD_DATA): New macro.
15538 (ira_reallocate): Remove.
15539 (ira_initiate_emit_data, ira_finish_emit_data): New.
15540 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15541 (ira_init_register_move_cost_if_necessary): New.
15542 (ira_object_conflict_iter_next): Merge into
15543 ira_object_conflict_iter_cond.
15544 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15546 * ira-live.c (process_single_reg_class_operands): Call
15547 ira_init_register_move_cost_if_necessary. Use
15548 ira_register_move_cost instead of ira_get_register_move_cost.
15550 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15552 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15554 * ira-costs.c: Fix formatting.
15555 (cost_classes, cost_classes_num): Remove.
15556 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15557 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15558 (cost_classes_del, cost_classes_htab): New.
15559 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15560 (initiate_regno_cost_classes, setup_cost_classes): New.
15561 (setup_regno_cost_classes_by_aclass): New.
15562 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15563 (record_reg_classes): Use regno_cost_classes instead of
15564 cost_classes. Move checking opposite operand up.
15565 (record_address_regs): Use regno_cost_classes
15566 instead of cost_classes.
15567 (scan_one_insn): Ditto. Use always general register.
15568 (print_allocno_costs): Use regno_cost_classes instead of
15570 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
15571 (find_costs_and_classes): Set up cost classes for each registers.
15572 Use also their mode for this. Use regno_cost_classes instead of
15574 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15576 (free_ira_costs, ira_init_costs): Don't use cost_classes.
15577 (ira_costs, ira_set_pseudo_classes): Call
15578 initiate_regno_cost_classes and finish_regno_cost_classes.
15580 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
15582 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15584 * target.def (ira_cover_classes): Remove.
15586 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15588 * doc/tm.texi.in: Ditto.
15590 * ira-conflicts.c: Remove mentioning cover classes from the file.
15591 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
15592 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
15594 * targhooks.c (default_ira_cover_classes): Remove.
15596 * targhooks.h (default_ira_cover_classes): Ditto.
15598 * haifa-sched.c: Remove mentioning cover classes from the file.
15599 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15600 ira_pressure_classes and ira_pressure_classes_num instead of
15601 ira_reg_class_cover_size and ira_reg_class_cover. Use
15602 sched_regno_pressure_class instead of sched_regno_cover_class.
15603 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15604 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15606 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
15607 classes from the file.
15608 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15609 (struct object_hard_regs, struct object_hard_regs_node): New.
15610 (struct ira_object): New members profitable_hard_regs,
15611 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15612 (struct ira_allocno): Rename cover_class to aclass. Rename
15613 cover_class_cost and updated_cover_class_cost to class_cost and
15614 updated_class_cost. Remove splay_removed_p and
15615 left_conflict_size. Add new members colorable_p.
15616 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15617 (ALLOCNO_COLORABLE_P): New macro.
15618 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15619 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15620 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15621 (OBJECT_...): Rename parameter C to O.
15622 (OBJECT_PROFITABLE_HARD_REGS): New macro.
15623 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15624 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15625 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15626 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15627 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15628 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15629 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15630 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15631 x_ira_reg_class_subunion.
15632 (ira_max_memory_move_cost, ira_max_register_move_cost)
15633 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15634 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15635 (ira_important_class_nums, ira_reg_class_superunion): New macros.
15636 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15637 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15638 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15639 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15640 (ira_tune_allocno_costs_and_cover_classes): Rename to
15641 ira_tune_allocno_costs.
15642 (ira_debug_hard_regs_forest): New.
15643 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15644 (ira_object_conflict_iter_next): Fix comments.
15645 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15646 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15647 cover_class to aclass.
15648 (ira_allocate_and_accumulate_costs): Ditto.
15649 (ira_allocate_and_set_or_copy_costs): Ditto.
15651 * opts.c (decode_options): Remove ira_cover_class check.
15653 * ira-color.c: Remove mentioning cover classes from the file. Use
15654 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15655 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15656 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15657 (splay-tree.h): Remove include.
15658 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15659 before copy_freq_compare_func.
15660 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15661 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15663 (hard_regs_roots, hard_regs_node_vec): Ditto.
15664 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15665 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15666 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15667 (create_new_object_hard_regs_node): Ditto.
15668 (add_new_object_hard_regs_node_to_forest): Ditto.
15669 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15670 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15672 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15673 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15674 (remove_unused_object_hard_regs_nodes): Ditto.
15675 (enumerate_object_hard_regs_nodes): Ditto.
15676 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15677 (object_hard_regs_subnode_t): Ditto.
15678 (struct object_hard_regs_subnode): Ditto.
15679 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15680 (setup_object_hard_regs_subnode_index): Ditto.
15681 (get_object_hard_regs_subnodes_num): Ditto.
15682 (form_object_hard_regs_nodes_forest): Ditto.
15683 (finish_object_hard_regs_nodes_tree): Ditto.
15684 (finish_object_hard_regs_nodes_forest): Ditto.
15685 (allocnos_have_intersected_live_ranges_p): Rename to
15686 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15687 (pseudos_have_intersected_live_ranges_p): Rename to
15688 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15689 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15690 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15691 (update_copy_costs): Remove assert. Skip cost update if the hard
15692 reg does not belong the class.
15693 (assign_hard_reg): Process only profitable hard regs.
15694 (uncolorable_allocnos_num): Make it scalar.
15695 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15696 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15697 and ira_reg_class_max_nregs.
15698 (bucket_allocno_compare_func): Check frequency first.
15699 (sort_bucket): Add compare function as a parameter.
15700 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15701 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15702 (push_allocno_to_stack): Rewrite for checking new allocno
15704 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
15705 (push_only_colorable): Pass new parameter to sort_bucket.
15706 (push_allocno_to_spill): Remove.
15707 (allocno_spill_priority_compare): Make it inline and rewrite.
15708 (splay_tree_allocate, splay_tree_free): Remove.
15709 (allocno_spill_sort_compare): New function.
15710 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15711 build and use splay tree. Choose first allocno in uncolorable
15712 allocno bucket to spill. Remove setting spill cost.
15713 (all_conflicting_hard_regs): Remove.
15714 (setup_allocno_available_regs_num): Check only profitable hard
15715 regs. Print info about hard regs nodes.
15716 (setup_allocno_left_conflicts_size): Remove.
15717 (put_allocno_into_bucket): Don't call
15718 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
15719 (improve_allocation): New.
15720 (color_allocnos): Call setup_profitable_hard_regs,
15721 form_object_hard_regs_nodes_forest, improve_allocation,
15722 finish_object_hard_regs_nodes_forest. Setup spill cost.
15723 (print_loop_title): Use pressure classes.
15724 (color_allocnso): Ditto.
15725 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15726 and allocnos_for_spilling.
15727 (ira_sort_regnos_for_alter_reg): Don't setup members
15728 {first,next}_coalesced_allocno.
15729 (color): Remove allocating and freeing removed_splay_allocno_vec.
15730 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15731 prohibited_class_mode_regs.
15733 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15735 (update_allocno_pressure_excess_length): Use pressure classes.
15736 (inc_register_pressure, dec_register_pressure): Check for pressure
15738 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15739 pressure class. Use ira_reg_class_nregs instead of
15740 ira_reg_class_max_nregs.
15741 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15742 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15743 (single_reg_class): Use ira_reg_class_nregs instead of
15744 ira_reg_class_max_nregs.
15745 (process_bb_node_lives): Use pressure classes.
15747 * ira-emit.c: Remove mentioning cover classes from the file. Use
15748 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15749 (change_loop): Use pressure classes.
15750 (modify_move_list): Call ira_set_allocno_class instead of
15751 ira_set_allocno_cover_class.
15753 * ira-build.c: Remove mentioning cover classes from the file. Use
15754 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15755 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15756 ALLOCNO_UPDATED_CLASS_COST instead of
15757 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15758 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15759 (ira_create_allocno): Remove initialization of
15760 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15761 ALLOCNO_COLORABLE_P.
15762 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15763 Update conflict regs for the objects.
15764 (create_cap_allocno): Remove assert. Don't propagate
15765 ALLOCNO_AVAILABLE_REGS_NUM.
15766 (ira_free_allocno_costs): New function.
15767 (finish_allocno): Change a part of code into call of
15768 ira_free_allocno_costs.
15769 (low_pressure_loop_node_p): Use pressure classes.
15770 (object_range_compare_func): Don't compare classes.
15771 (setup_min_max_conflict_allocno_ids): Ditto.
15773 * loop-invariant.c: Remove mentioning cover classes from the file.
15774 Use ira_pressure_classes and ira_pressure_classes_num instead of
15775 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
15776 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15777 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15778 Use reg_allocno_class instead of reg_cover_class.
15779 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15780 STACK_REG_COVER_CLASS.
15781 (get_regno_cover_class): Rename to get_regno_pressure_class.
15782 (move_loop_invariants): Initialize and finalize regstat.
15784 * ira.c: Remove mentioning cover classes from the file. Add
15785 comments about coloring without cover classes. Use ALLOCNO_CLASS
15786 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15787 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15788 setup_class_subset_and_memory_move_costs.
15789 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15790 (setup_cover_and_important_classes): Rename to
15791 setup_allocno_and_important_classes.
15792 (setup_class_translate_array): New.
15793 (setup_class_translate): Call it for allocno and pressure classes.
15794 (cover_class_order): Rename to allocno_class_order.
15795 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15796 of ira_class_translate.
15797 (reorder_important_classes): Set up ira_important_class_nums.
15798 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15799 (print_class_cover): Rename to print_classes. Add parameter.
15800 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15801 Print pressure classes too.
15802 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15803 setup_reg_subclasses.
15804 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15805 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15806 (setup_prohibited_class_mode_regs): Use
15807 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15808 (clarify_prohibited_class_mode_regs): New function.
15809 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15810 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15811 (ira_init_once): Initialize them.
15812 (free_register_move_costs): Process them.
15813 (ira_init): Move calls of find_reg_classes and
15814 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15815 Call clarify_prohibited_class_mode_regs.
15816 (ira_no_alloc_reg): Remove.
15817 (too_high_register_pressure_p): Use pressure classes.
15819 * sched-deps.c: Remove mentioning cover classes from the file.
15820 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15821 ira_pressure_classes and ira_pressure_classes_num instead of
15822 ira_reg_class_cover_size and ira_reg_class_cover.
15823 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15824 sched_regno_pressure_class instead of sched_regno_cover_class.
15825 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15826 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15828 * ira.h: Add 2010 to Copyright.
15829 (ira_no_alloc_reg): Remove external.
15830 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15831 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15832 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15833 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15834 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15835 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15836 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15837 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15838 x_ira_no_alloc_regs.
15839 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15840 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15841 ira_allocno_classes_num and ira_allocno_classes.
15842 (ira_class_translate): Rename to ira_allocno_class_translate.
15843 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15844 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15845 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15846 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15847 (ira_no_alloc_regs): New.
15849 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15850 classes from the file. Use ALLOCNO_CLASS instead of
15851 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15852 ALLOCNO_COVER_CLASS_COST.
15853 (regno_cover_class): Rename to regno_aclass.
15854 (record_reg_classes): Use ira_reg_class_subunion instead of
15855 ira_reg_class_union.
15856 (record_address_regs): Check overflow.
15857 (scan_one_insn): Ditto.
15858 (print_allocno_costs): Print total mem cost fore regional allocation.
15859 (print_pseudo_costs): Use REG_N_REFS.
15860 (find_costs_and_classes): Use classes intersected with them on the
15861 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15862 ira_reg_class_union. Use ira_allocno_class_translate and
15863 regno_aclass instead of ira_class_translate and regno_cover_class.
15864 Modify code for finding regno_aclass. Setup preferred classes for
15866 (setup_allocno_cover_class_and_costs): Rename to
15867 setup_allocno_class_and_costs. Use regno_aclass instead of
15868 regno_cover_class. Use ira_set_allocno_class instead of
15869 ira_set_allocno_cover_class.
15870 (init_costs, finish_costs): Use regno_aclass instead of
15872 (ira_costs): Use setup_allocno_class_and_costs instead of
15873 setup_allocno_cover_class_and_costs.
15874 (ira_tune_allocno_costs_and_cover_classes): Rename to
15875 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15876 by processing objects. Use ira_reg_class_max_nregs instead of
15877 ira_reg_class_nregs.
15879 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15881 * sched-int.h: Remove mentioning cover classes from the file.
15882 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15884 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15885 classes from the file.
15886 (struct reg_pref): Rename coverclass into allocnoclass.
15887 (reg_cover_class): Rename to reg_allocno_class.
15889 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15891 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15893 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15895 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15897 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15899 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15901 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15903 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15905 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15907 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15909 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15910 (i386_ira_cover_classes): Ditto.
15912 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15914 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15916 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15918 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15920 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15922 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15924 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15925 (mips_ira_cover_classes): Ditto.
15927 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15929 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15931 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15933 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15935 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15937 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15938 (IRA_COVER_CLASSES_VSX): Ditto.
15940 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15941 (rs6000_ira_cover_classes): Ditto.
15943 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15945 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15947 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15949 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15951 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15953 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15955 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15957 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15959 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15961 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15963 2011-03-29 Jakub Jelinek <jakub@redhat.com>
15966 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15967 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15968 dw_fde_unlikely_section_end_label, cold_in_std_section,
15969 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15970 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15972 (output_fde): Use dw_fde_second_{begin,end} if second is
15973 true, otherwise dw_fde_{begin,end}.
15974 (output_call_frame_info): Test dw_fde_second_begin != NULL
15975 instead of dw_fde_switched_sections.
15976 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15977 fields, initialize new fields. Initialize in_std_section
15978 unconditionally from the first partition.
15979 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15980 dw_fde_second_begin is non-NULL.
15981 (dwarf2out_switch_text_section): Stop initializing removed
15982 dw_fde_struct fields, initialize new fields, initialize
15983 also dw_fde_end here. Set dw_fde_switch_cfi even when
15984 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15985 (struct var_loc_list_def): Add last_before_switch field.
15986 (arange_table, arange_table_allocated, arange_table_in_use,
15987 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15988 (size_of_aranges): Count !in_std_section and !second_in_std_section
15989 hunks in fdes, instead of looking at arange_table_in_use.
15990 (output_aranges): Add aranges_length argument, don't call
15991 size_of_aranges here. Instead of using aranges_table*
15992 emit ranges for fdes when !in_std_section resp.
15993 !second_in_std_section.
15994 (dw_loc_list): Break ranges crossing section switch.
15995 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
15996 use dw_fde_second_end instead of dw_fde_end as end of last range.
15997 (gen_subprogram_die): Don't call add_arange. Use
15998 dw_fde_{begin,end} for first partition and if switched
15999 section dw_fde_second_{begin,end} for the second.
16000 (var_location_switch_text_section_1,
16001 var_location_switch_text_section): New functions.
16002 (dwarf2out_begin_function): Initialize cold_text_section even
16003 when function_section () isn't text_section.
16004 (prune_unused_types): Don't walk arange_table.
16005 (dwarf2out_finish): Don't needlessly test
16006 flag_reorder_blocks_and_partition when testing cold_text_section_used.
16007 If info_section_emitted, call size_of_aranges and if it indicates
16008 non-empty .debug_aranges, call output_aranges with the computed
16009 size. Stop using removed dw_fde_struct fields, use
16010 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
16014 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
16015 create ENTRY_VALUE if incoming or address of incoming's MEM
16017 * dwarf2out.c (mem_loc_descriptor): Don't emit
16018 DW_OP_GNU_entry_value of DW_OP_fbreg.
16019 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
16020 on ENTRY_VALUE is able to find the canonical parameter VALUE.
16021 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
16022 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
16024 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
16025 is a REG_P or MEM_P with REG_P address, compute hash directly
16026 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
16027 (preserve_only_constants): Don't clear VALUES forwaring
16028 ENTRY_VALUE to some other VALUE.
16030 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
16032 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
16033 instead of GEN_INT.
16035 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
16037 * cfgexpand.c (expand_gimple_cond): Always set the source location and
16038 block before expanding the statement.
16039 (expand_gimple_stmt_1): Likewise. Set them here...
16040 (expand_gimple_stmt): ...and not here. Tidy.
16041 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
16044 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
16046 * Makefile.in: New rule for cprop.o.
16047 * gcse.c: Move constant/copy propagation to cprop.c.
16048 (compute_local_properties): Only handle expression tables.
16049 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
16050 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
16051 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
16052 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
16053 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
16054 compute_cprop_data, find_used_regs, try_replace_reg,
16055 find_avail_set, cprop_jump, constprop_register, cprop_insn,
16056 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
16057 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
16058 find_bypass_set, reg_killed_on_edge, bypass_block,
16059 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
16060 execute_rtl_cprop, pass_rtl_cprop): Move to...
16061 * cprop.c: ...here. New file, constant/copy propagation for RTL
16062 moved from gcse.c to here with minor cleanups in duplicated code.
16064 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
16066 * config/i386/i386.c (flag_opts): Fix a typo in
16067 -mavx256-split-unaligned-store.
16069 2011-03-28 Anatoly Sokolov <aesok@post.ru>
16071 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16072 LIBCALL_VALUE): Remove macros.
16073 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16074 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16075 (h8300_function_value, h8300_libcall_value,
16076 h8300_function_value_regno_p): New functions.
16078 2011-03-28 Anatoly Sokolov <aesok@post.ru>
16080 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
16082 2011-03-28 Jeff Law <law@redhat.com>
16084 * tree-ssa-threadupdate.c (redirect_edges): Call
16085 create_edge_and_update_destination_phis as needed.
16086 (create_edge_and_update_destination_phis): Accept new BB argument.
16087 All callers updated.
16088 (thread_block): Do not update the profile when threading around
16089 intermediate blocks.
16090 (thread_single_edge): Likewise.
16091 (determine_bb_domination_status): If BB is not a successor of the
16092 loop header, return NONDOMINATING.
16093 (register_jump_thread): Note when we register a jump thread around
16094 an intermediate block.
16095 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
16096 (thread_across_edge): Use it.
16098 2011-03-28 Tristan Gingold <gingold@adacore.com>
16100 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
16101 when for_return is 2.
16103 2011-03-28 Jeff Law <law@redhat.com>
16105 * var-tracking.c (canonicalize_values_mark): Delete unused
16107 (canonicalize_values_star, set_variable_part): Likewise.
16108 (clobber_variable_part, delete_variable_part): Likewise.
16110 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
16112 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
16114 2011-03-28 Martin Jambor <mjambor@suse.cz>
16116 * tree-inline.c (expand_call_inline): Do not check that destination
16118 (optimize_inline_calls): Assert that destination node is analyzed.
16119 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
16120 not call tree_lowering_passes.
16121 * cgraph.h (cgraph_analyze_function): Declare.
16122 * cgraphunit.c (cgraph_analyze_function): Make public.
16124 2011-03-28 Joseph Myers <joseph@codesourcery.com>
16126 * config/sparc/sparc-opts.h: New.
16127 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
16128 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
16129 (sparc_option_override): Store processor_type enumeration rather
16130 than string in cpu_default. Remove name and enumeration from
16131 cpu_table. Directly default -mcpu then default -mtune from -mcpu
16132 without using sparc_select. Use target_flags_explicit instead of
16134 * config/sparc/sparc.h (enum processor_type): Move to
16136 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
16137 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
16138 HeaderInclude entry.
16139 (mcpu=, mtune=): Use Var and Enum.
16140 (sparc_processor_type): New Enum and EnumValue entries.
16142 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16143 Iain Sandoe <iains@gcc.gnu.org>
16146 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
16148 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
16150 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
16151 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
16152 Insert new statements at it in lieu of STMT.
16153 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
16154 * tree-vect-stmts.c (vectorizable_store): Likewise.
16155 (vectorizable_load): Likewise.
16157 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
16159 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
16164 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
16166 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
16167 unaligned 256bit load/store.
16168 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
16169 (*avx_movdqu<avxmodesuffix>): Likewise.
16171 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16174 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
16175 * config/pa/pa.md (iordi3): Use new predicate in expander.
16176 (iorsi3): Likewise.
16178 2011-03-27 Anatoly Sokolov <aesok@post.ru>
16180 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
16181 FUNCTION_VALUE_REGNO_P): Remove macros.
16182 * config/mips/mips-protos.h (mips_function_value): Remove.
16183 * config/mips/mips.c (mips_function_value): Rename to...
16184 (mips_function_value_1): ... this. Make static. Handle receiving
16185 the function type in 'fn_decl_or_type' argument.
16186 (mips_function_value, mips_libcall_value,
16187 mips_function_value_regno_p): New function.
16188 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16189 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16191 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
16193 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
16194 and -mavx256-split-unaligned-store.
16195 (ix86_option_override_internal): Split 32-byte AVX unaligned
16196 load/store by default.
16197 (ix86_avx256_split_vector_move_misalign): New.
16198 (ix86_expand_vector_move_misalign): Use it.
16200 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
16201 -mavx256-split-unaligned-store.
16203 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
16204 256bit load/store. Generate unaligned store on misaligned memory
16206 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
16208 (*avx_movdqu<avxmodesuffix>): Likewise.
16210 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
16211 -mavx256-split-unaligned-store.
16213 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
16216 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
16219 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
16221 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
16222 opno arguments with an expand_operand. Use create_input_operand.
16223 (mips_prepare_builtin_target): Delete.
16224 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
16226 (mips_expand_builtin_direct): Use create_output_operand and
16227 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
16228 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
16229 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
16231 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
16233 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
16235 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16237 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
16239 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
16240 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
16241 basic blocks and call commit_edge_insertions directly.
16242 (fixup_abnormal_edges): Move from here to...
16243 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
16244 on the edges and return whether some have actually been inserted.
16245 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
16248 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
16250 PR rtl-optimization/48144
16251 * sel-sched-ir.c (merge_history_vect): Factor out from ...
16252 (merge_expr_data): ... here.
16253 (av_set_intersect): Rename to av_set_code_motion_filter.
16254 Update all callers. Call merge_history_vect when an expression
16255 is found in both sets.
16256 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
16258 2011-03-26 Alan Modra <amodra@gmail.com>
16260 * config/rs6000/predicates.md (word_offset_memref_op): Handle
16261 cmodel medium addresses.
16262 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
16263 64-bit gpr loads and stores.
16264 (rs6000_secondary_reload_ppc64): New function.
16265 * config/rs6000/rs6000-protos.h: Declare it.
16266 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
16268 2011-03-26 Alan Modra <amodra@gmail.com>
16271 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
16272 GNU Go in traceback table.
16274 2011-03-25 Richard Henderson <rth@redhat.com>
16276 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
16277 if there are exactly 6 operands.
16278 (set_storage_via_setmem): Similarly.
16280 2011-03-25 Kai Tietz <ktietz@redhat.com>
16282 * collect2.c (write_c_file_stat): Handle backslash
16283 as right-hand directory separator.
16284 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
16285 checking just for slash.
16286 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
16287 instead of checking for trailing slash.
16288 * gcc.c (record_temp_file): Use filename_cmp instead
16290 (do_spec_1): Likewise.
16291 (replace_outfile_spec_function): Likewise.
16292 (is_directory): Use filename_ncmp instead of strncmp.
16293 (print_multilib_info): Likewise.
16294 * gcov.c (find_source): Use filename_cmp instead
16296 (make_gcov_file_name): Fix order of slash/backslash
16298 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
16299 (add_standard_paths): Likewise.
16300 * mips-tfile.c (saber_stop): Handle backslash.
16301 * prefix.c (update_path): Use filename_ncmp instead of
16303 * profile.c (output_location): Use filename_cmp instead
16305 * read-md.c (handle_toplevel_file): Handle backslash.
16306 * tlink.c (frob_extension): Likewise.
16307 * tree-cfg.c (same_line_p): Use filename_cmp instead of
16309 * tree-dump.c (dequeue_and_dump): Handle backslash.
16310 * tree.c (get_file_function_name): Likewise.
16311 * gengtype.c (read_input_list): Likewise.
16312 (get_file_realbasename): Likewise.
16313 (get_output_file_with_visibility): Use filename_cmp
16316 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
16318 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
16321 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16323 * fold-const.c (expr_location_or): New function.
16324 (fold_truth_not_expr): Call it.
16326 2011-03-25 Jeff Law <law@redhat.com>
16328 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
16330 * c-family/c-common.c (def_fn_type): Likewise.
16331 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
16332 * emit-rtl.c (gen_rtvec): Likewise.
16333 * lto/lto-lang.c (def_fn_type): Likewise.
16335 2011-03-25 Richard Guenther <rguenther@suse.de>
16337 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
16338 also generate copies.
16339 (fini_copy_prop): Handle constant values properly.
16341 2011-03-25 Jakub Jelinek <jakub@redhat.com>
16343 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
16344 mode size instead of bitsize with DWARF2_ADDR_SIZE.
16345 (hash_loc_operands, compare_loc_operands): Handle
16346 DW_OP_GNU_entry_value.
16348 2011-03-25 Kai Tietz <ktietz@redhat.com>
16350 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
16351 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
16352 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
16353 comment and use macro TARGET_64BIT_MS_ABI instead.
16354 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
16355 and change default behavior for 32-bit MS_ABI.
16356 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
16357 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
16359 (ix86_cfun_abi): Likewise.
16360 (ix86_maybe_switch_abi): Adjust comment.
16361 (init_cumulative_args): Check for bit-ness in MS_ABI case.
16362 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
16363 instead of checking for SYSV_ABI.
16364 (ix86_nsaved_sseregs): Likewise.
16365 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
16367 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
16368 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
16369 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
16370 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
16371 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
16373 2011-03-25 Richard Guenther <rguenther@suse.de>
16375 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
16376 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16377 (verify_gimple): Remove.
16378 * tree-cfg.c (verify_gimple_call): Merge verification
16380 (verify_gimple_phi): Merge verification from verify_stmts.
16381 (verify_gimple_label): New function.
16382 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
16383 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16384 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
16385 (verify_stmts): Rename to verify_gimple_in_cfg.
16386 (verify_gimple_in_cfg): New function.
16387 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
16388 * tree-ssa.c (verify_ssa): Likewise.
16389 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
16391 2011-03-25 Richard Guenther <rguenther@suse.de>
16393 * passes.c (init_optimization_passes): Add FRE pass after
16396 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
16397 Andrew Stubbs <ams@codesourcery.com>
16399 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
16401 (arm_movdi_vfp_cortexa8): New pattern.
16402 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
16403 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
16404 instructions when tuning for Cortex-A8. Set attribute "arch".
16405 * config/arm/arm.md: Move include arm-tune.md up a bit.
16406 (define_attr "arch"): Add "onlya8" and "nota8" values.
16407 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
16409 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16413 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16415 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16416 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16417 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16418 * passes.c (init_optimization_passes): Move
16419 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16421 2011-03-25 Kai Tietz <ktietz@redhat.com>
16423 * c-typeck.c (comptypes_internal): Replace target
16424 hook call of comp_type_attributes by version in tree.c file.
16425 * gimple.c (gimple_types_compatible_p_1): Likewise.
16426 * tree-ssa.c (useless_type_conversion_p): Likewise.
16427 * tree.c (build_type_attribute_qual_variant): Likewise.
16428 (attribute_value_equal): New static helper function.
16429 (comp_type_attributes): New function.
16430 (merge_attributes): Use attribute_value_equal for comparison.
16431 (attribute_list_contained): Likewise.
16432 * tree.h (comp_type_attributes): New prototype.
16434 2011-03-25 Richard Guenther <rguenther@suse.de>
16436 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
16437 of complex types at -O0.
16438 (verify_gimple_assign_binary): Likewise.
16439 (verify_gimple_assign_ternary): Likewise.
16441 2011-03-24 Mark Wielaard <mjw@redhat.com>
16443 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
16444 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
16446 2011-03-24 Mark Wielaard <mjw@redhat.com>
16449 * dwarf2out.c (output_abbrev_section): Only write table when
16450 abbrev_die_table_in_use > 1.
16452 2011-02-24 Richard Henderson <rth@redhat.com>
16454 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
16455 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
16456 (alpha_expand_unaligned_load_words): Use extql.
16457 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
16458 (emit_insxl): Handle all modes for consistency.
16460 2011-02-24 Richard Henderson <rth@redhat.com>
16462 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
16463 (alpha_expand_unaligned_load): Likewise.
16464 (alpha_expand_unaligned_store): Likewise.
16465 (alpha_expand_unaligned_load_words): Likewise.
16466 (alpha_expand_unaligned_store_words): Likewise.
16467 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
16468 (alpha_split_lock_test_and_set_12): Likewise.
16469 (print_operand, alpha_fold_builtin_extxx): Likewise.
16470 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
16471 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
16472 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
16473 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
16474 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
16475 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
16476 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
16477 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
16478 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
16479 (extwl, extll, extql): Similarly.
16480 (inswh, inslh, insqh): Similarly.
16481 (mskbl, mskwl, mskll, mskql): Similarly.
16482 (mskwh, msklh, mskqh): Similarly.
16484 2011-02-24 Richard Henderson <rth@redhat.com>
16486 * config/alpha/alpha.md (attribute isa): Add er, ner.
16487 (attribute enabled): Handle them.
16488 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
16490 2011-02-24 Richard Henderson <rth@redhat.com>
16492 * config/alpha/alpha.md (attribute isa): Add vms.
16493 (attribute enabled): Handle it.
16494 (*movsf): Merge *movsf_{nofix,fix,nofp}.
16495 (*movdf): Merge *movdf_{nofix,fix,nofp}.
16496 (*movtf): Rename from *movtf_internal for consistency.
16497 (*movsi): Merge with *movsi_nt_vms.
16498 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16499 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16500 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16501 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16503 2011-02-24 Richard Henderson <rth@redhat.com>
16505 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16506 (extendqisi2, extendhisi2): Likewise.
16507 (extendqidi2): Simplify BWX/non-BWX expansions.
16508 (extendhidi2): Similarly.
16510 2011-02-24 Richard Henderson <rth@redhat.com>
16512 * config/alpha/alpha.md (attribute isa): New.
16513 (attribute enabled): New.
16514 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16515 (zero_extendqisi2, zero_extendqidi2): Similarly.
16516 (zero_extendhisi2, zero_extendhidi2): Similarly.
16517 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16519 2011-02-24 Richard Henderson <rth@redhat.com>
16521 * config/alpha/predicates.md (input_operand): Revert last change;
16522 update comment to mention 32-bit VMS rather than Windows.
16524 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16526 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16527 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16528 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16529 * passes.c (init_optimization_passes): Move
16530 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16532 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16534 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16536 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16538 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16541 2011-03-24 Jakub Jelinek <jakub@redhat.com>
16544 * simplify-rtx.c (simplify_const_unary_operation): Call
16545 real_convert when changing mode class with FLOAT_EXTEND.
16547 2011-03-24 Nick Clifton <nickc@redhat.com>
16549 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16550 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16551 * config/rx/rx.c (rx_option_override): Set align_jumps,
16552 align_loops and align_labels if not set by the user.
16553 (rx_align_for_label): New function.
16554 (rx_max_skip_for_label): New function.
16555 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16556 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16557 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16558 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16559 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16561 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16563 PR rtl-optimization/48263
16564 * optabs.c (expand_binop_directly): Reinstate convert_modes code
16565 and original commutative_p handling. Use maybe_gen_insn.
16567 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16569 * reload.c (find_reloads_subreg_address): Add address_reloaded
16570 parameter and return true there if the full address has been
16572 (find_reloads_toplev): Pass address_reloaded flag.
16573 (find_reloads_address_1): Don't use address_reloaded parameter.
16575 2011-03-24 Jeff Law <law@redhat.com>
16577 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16578 unused variable "ann".
16579 (remove_unused_locals): Likewise.
16581 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16584 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16587 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16589 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16590 for invalid symbolic addresses.
16591 (s390_secondary_reload): Don't use s390_check_symref_alignment for
16594 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16596 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16597 the argument in calls to fold_truth_not_expr.
16599 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16601 * tree.c (record_node_allocation_statistics): New function.
16602 (make_node_stat, copy_node_stat, build_string): Call it.
16603 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16604 (build1_stat, build_omp_clause): Likewise.
16606 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16608 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16611 2011-03-24 Richard Guenther <rguenther@suse.de>
16613 PR tree-optimization/48271
16614 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16615 blocks that still exist.
16617 2011-03-24 Richard Guenther <rguenther@suse.de>
16619 PR tree-optimization/48270
16620 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16621 not free datarefs before ddrs.
16623 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16625 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16626 from the address built for a reference with variable offset.
16628 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16631 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16632 alternatives that can be handled with movq or movabsq insn.
16633 (*movdf_internal): Disable for !TARGET_64BIT.
16634 (*movdf_internal_nointeger): Ditto.
16635 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16637 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16639 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16640 (FUNCTION_ARG_ADVANCE): Likewise.
16641 * tm.texi.in: Change references to them to hook references.
16642 * tm.texi: Regenerate.
16643 * targhooks.c (default_function_arg): Eliminate check for target macro.
16644 (default_function_incoming_arg): Likewise.
16645 (default_function_arg_advance): Likewise.
16646 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16647 (function_arg_advance): Likewise.
16648 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16650 2011-03-24 Richard Guenther <rguenther@suse.de>
16652 PR middle-end/48269
16653 * tree-object-size.c (addr_object_size): Do not double-account
16654 for MEM_REF offsets.
16656 2011-03-24 Diego Novillo <dnovillo@google.com>
16658 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16659 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16660 (lto_input_data_block): Move from lto-opts.c. Make extern.
16662 (lto_input_string): Rename from input_string. Make extern.
16664 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16665 output_string_with_length.
16666 Output 0 to indicate a non-NULL string. Update all callers to
16668 (lto_output_string): Rename from output_string. Make extern.
16670 (lto_output_decl_state_streams): Make extern.
16671 (lto_output_decl_state_refs): Make extern.
16672 * lto-streamer.h (lto_input_string): Declare.
16673 (lto_input_data_block): Declare.
16674 (lto_output_string): Declare.
16675 (lto_output_string_with_length): Declare.
16676 (lto_output_decl_state_streams): Declare.
16677 (lto_output_decl_state_refs): Declare.
16679 2011-03-24 Richard Guenther <rguenther@suse.de>
16681 PR tree-optimization/46562
16682 * tree.c (build_invariant_address): New function.
16683 * tree.h (build_invariant_address): Declare.
16684 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16685 a renamed function moved ...
16686 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16687 Take valueization callback parameter.
16688 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16689 * gimple-fold.h: New file.
16690 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16691 (ccp_fold, fold_const_aggregate_ref,
16692 fold_ctor_reference, fold_nonarray_ctor_reference,
16693 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16694 get_base_constructor): Move ...
16695 * gimple-fold.c: ... here.
16696 (gimple_fold_stmt_to_constant_1): New function
16697 split out from ccp_fold. Take a valueization callback parameter.
16698 Valueize all operands.
16699 (gimple_fold_stmt_to_constant): New wrapper function.
16700 (fold_const_aggregate_ref_1): New function split out from
16701 fold_const_aggregate_ref. Take a valueization callback parameter.
16702 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16703 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16704 invariant POINTER_PLUS_EXPRs to invariant form.
16705 (vn_valueize): New function.
16706 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16707 * tree-vrp.c (vrp_valueize): New function.
16708 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16709 to fold statements to constants.
16710 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16711 function declarations.
16712 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16713 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16715 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16717 * config/h8300/predicates.md (jump_address_operand): Fix register
16720 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
16722 * doc/invoke.texi (max-stores-to-sink): Document.
16723 * params.h (MAX_STORES_TO_SINK): Define.
16724 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16725 if either vectorization or if-conversion is disabled.
16726 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16727 tree-vect-data-refs.c vect_equal_offsets.
16728 (dr_equal_offsets_p): New function.
16729 (find_data_references_in_bb): Remove static.
16730 * tree-data-ref.h (find_data_references_in_bb): Declare.
16731 (dr_equal_offsets_p): Likewise.
16732 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16733 (vect_drs_dependent_in_basic_block): Update calls to
16734 vect_equal_offsets.
16735 (vect_check_interleaving): Likewise.
16736 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16737 (cond_if_else_store_replacement): Rename to...
16738 (cond_if_else_store_replacement_1): ... this. Change arguments and
16740 (cond_if_else_store_replacement): New function.
16741 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16742 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16744 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16747 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16748 to subtract lower bound instead of GEN_INT().
16750 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16755 * doc/extend.texi (Alignment): Move section to match order in TOC.
16756 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16757 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16759 2011-03-23 Jeff Law <law@redhat.com>
16761 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16762 before removing the edge.
16764 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16765 it may have been freed by redirect_branch_edge or
16766 redirect_edge_succ_nodup.
16768 2011-03-23 Richard Guenther <rguenther@suse.de>
16770 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16771 (check_va_list_escapes): Likewise.
16772 (check_all_va_list_escapes): Likewise.
16774 2011-03-23 Richard Guenther <rguenther@suse.de>
16776 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16777 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16778 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16779 (alias.o): Likewise.
16780 (ipa-type-escape.o): Remove.
16781 (ipa-struct-reorg.o): Likewise.
16782 (GTFILES): Remove ipa-struct-reorg.c.
16783 * alias.c: Do not include ipa-type-escape.h.
16784 * tree-ssa-alias.c: Likewise.
16785 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16786 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16787 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16788 and ipa-type-escape passes.
16789 * tree-pass.h (pass_ipa_type_escape): Remove.
16790 (pass_ipa_struct_reorg): Likewise.
16791 * ipa-struct-reorg.h: Remove.
16792 * ipa-struct-reorg.c: Likewise.
16793 * ipa-type-escape.h: Likewise.
16794 * ipa-type-escape.c: Likewise.
16795 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16796 (--param struct-reorg-cold-struct-ratio): Likewise.
16797 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16798 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16799 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16801 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16803 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16804 cpu attribute value.
16805 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16806 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16807 * config/s390/s390.c (processor_flags_table): New constant array.
16808 (s390_handle_arch_option): Remove.
16809 (s390_handle_option): Remove s390_handle_arch_option invocations
16810 and OPT_mwarn_framesize_ handling.
16811 (s390_option_override): Remove s390_handle_arch_option invocation.
16812 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16814 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16815 * config/s390/s390.opt (s390_tune, s390_arch)
16816 (march=): Replace s390_arch_option enum and values with
16817 processor_type. Set variable name to s390_arch. Set
16818 initialization value.
16819 (mtune=): Replace s390_arch_option with processor_type. Set
16820 variable name to s390_tune. Set initialization value.
16822 2011-03-23 Julian Brown <julian@codesourcery.com>
16824 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16825 accesses which are not naturally aligned.
16827 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16830 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16832 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16834 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16835 parameter from "int" to "enum insn_code".
16836 (expand_operand_type): New enum.
16837 (expand_operand): New structure.
16838 (create_expand_operand): New function.
16839 (create_fixed_operand, create_output_operand): Likewise
16840 (create_input_operand, create_convert_operand_to): Likewise.
16841 (create_convert_operand_from, create_address_operand): Likewise.
16842 (create_integer_operand): Likewise.
16843 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16844 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16845 (expand_insn, expand_jump_insn): Likewise.
16846 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16847 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16848 (expand_movstr, expand_builtin___clear_cache): Likewise.
16849 (expand_builtin_lock_release): Likewise.
16850 * explow.c (allocate_dynamic_stack_space): Likewise.
16851 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16852 and use the default handling in that case.
16853 * expmed.c (check_predicate_volatile_ok): Delete.
16854 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16855 (emit_cstore): Likewise.
16856 * expr.c (emit_block_move_via_movmem): Likewise.
16857 (set_storage_via_setmem, expand_assignment): Likewise.
16858 (emit_storent_insn, try_casesi): Likewise.
16859 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16860 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16861 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16862 (expand_twoval_unop, expand_twoval_binop): Likewise.
16863 (expand_unop_direct, emit_indirect_jump): Likewise.
16864 (emit_conditional_move, vector_compare_rtx): Likewise.
16865 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16866 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16867 (expand_sync_lock_test_and_set): Likewise.
16868 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16869 (emit_unop_insn): Likewise.
16870 (expand_copysign_absneg): Change icode to an insn_code.
16871 (create_convert_operand_from_type): New function.
16872 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16873 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16874 (expand_insn, expand_jump_insn): Likewise.
16875 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16876 than const_int_operand for operand 2.
16878 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16880 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16883 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16885 * emit-rtl.c (emit_pattern_before_noloc): New function.
16886 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16887 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16888 (emit_pattern_after_noloc): New function.
16889 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16890 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16892 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16894 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16895 (__ffsDI2): Likewise.
16897 2011-03-22 Richard Henderson <rth@redhat.com>
16899 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16900 of !TARGET_ABI_OPEN_VMS.
16901 (alpha_trampoline_init, alpha_start_function): Likewise.
16902 (alpha_expand_epilogue, alpha_file_start): Likewise.
16903 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16904 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16905 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16906 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16907 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16911 * config/s390/s390-opts.h: New.
16912 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16913 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16914 s390_stack_guard): Remove.
16915 (s390_handle_arch_option): Return void. Take enum
16916 s390_arch_option value instead of string and searching array.
16917 (s390_handle_option): Don't assert that global structures are in
16918 use. Access variables via opts pointer. Use error_at. Don't use
16919 sscanf for -mstack-guard= or -mstack-size=. Update call to
16920 s390_handle_arch_option.
16921 (s390_option_override): Update call to s390_handle_arch_option.
16922 (s390_emit_prologue): Use %d format for s390_stack_size in
16923 diagnostic. Use %wd for HOST_WIDE_INT.
16924 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16925 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16926 * config/s390/s390.opt (config/s390/s390-opts.h): New
16927 HeaderInclude entry.
16928 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16929 s390_arch_flags, s390_warn_framesize): New Variable entries.
16930 (s390_arch_option): New Enum and EnumValue entries.
16931 (march=): Use Enum instead of Var.
16932 (mstack-guard=, mstack-size=): Use UInteger and Var.
16933 (mtune=): Use Enum.
16935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16937 * config/score/score.c (score_handle_option): Don't assert that
16938 global structures are in use. Access target_flags via opts
16939 pointer. Use value of -march= option to determine target_flags
16941 * config/score/score.opt (march=): Use Enum.
16942 (score_arch): New Enum and EnumValue entries.
16944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16946 * config/mep/mep.c (option_mtiny_specified): Remove.
16947 (mep_option_override): Move register handling for -mivc2 from
16948 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16949 instead of option_mtiny_specified.
16950 (mep_handle_option): Access target_flags via opts pointer. Don't
16951 assert that global structures are in use. Defer part of -mivc2
16952 handling and move it to mep_option_override.
16953 * config/mep/mep.opt (IVC2): New Mask entry.
16954 (mivc2): Use Var and Defer instead of Mask.
16956 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16958 * config/v850/v850-opts.h: New.
16959 * config/v850/v850.c (small_memory): Replace with
16960 small_memory_physical_max array. Make that array static const.
16961 (v850_handle_memory_option): Take integer value of argument. Take
16962 gcc_options pointer, option text and location. Return void.
16963 Update for changes to small memory structures.
16964 (v850_handle_option): Access target_flags via opts pointer. Don't
16965 assert that global structures are in use. Update calls to
16966 v850_handle_memory_option.
16967 (v850_encode_data_area): Update references to small memory settings.
16968 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16969 (enum small_memory_type): Move to v850-opts.h.
16970 * config/v850/v850.opt (config/v850/v850-opts.h): New
16971 HeaderInclude entry.
16972 (small_memory_max): New Variable entry.
16973 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16974 (mtda, mzda): Likewise.
16976 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16978 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16979 pointer. Don't assert that global structures are in use.
16981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16983 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16984 via opts pointer. Don't assert that global structures are in use.
16986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16988 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16989 (munix=93): Use Var.
16990 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16991 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16992 * config/pa/pa-opts.h: New.
16993 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16994 (pa_handle_option): Don't assert that global structures are in
16995 use. Access target_flags via opts pointer. Don't handle
16996 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16998 (pa_option_override): Handle deferred OPT_mfixed_range_.
17000 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17002 * config/mn10300/mn10300-opts.h: New.
17003 * config/mn10300/mn10300.c (mn10300_processor,
17004 mn10300_tune_string): Remove.
17005 (mn10300_handle_option): Don't assert that global structures are
17006 in use. Access mn10300_processor via opts pointer. Don't handle
17008 * config/mn10300/mn10300.h (enum processor_type): Move to
17010 (mn10300_processor): Remove.
17011 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
17012 HeaderInclude entry.
17013 (mn10300_processor): New Variable entry.
17016 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17018 * config/microblaze/microblaze.c: Don't include opts.h.
17019 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
17020 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
17021 (mno-clearbss): Use Var and Warn.
17023 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17025 * config/m32r/m32r-opts.h: New.
17026 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
17027 (m32r_handle_option): Don't assert that global structures are in
17028 use. Access target_flags and m32r_cache_flush_func via opts
17029 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
17030 OPT_mno_flush_trap here.
17031 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
17032 include of m32r-opts.h.
17033 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
17034 HeaderInclude entry.
17035 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
17036 (mmodel=): Use Enum and Var.
17037 (m32r_model): New Enum and EnumValue entries.
17038 (mno-flush-trap): Use Var.
17039 (msdata=): Use Enum and Var.
17040 (m32r_sdata): New Enum and EnumValue entries.
17042 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17044 * config/m32c/m32c.c: Don't include opts.h.
17045 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
17046 m32c_handle_option): Remove.
17047 (m32c_option_override): Check global_options_set.x_target_memregs
17048 instead of target_memregs_set.
17049 * config/m32c/m32c.h (target_memregs): Remove.
17050 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
17053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17055 * config/iq2000/iq2000-opts.h: New.
17056 * config/iq2000/iq2000.c: Don't include opts.h.
17057 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
17058 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
17059 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
17060 HeaderInclude entry.
17061 (iq2000_tune): New Variable entry.
17062 (march=): Add comment. Use Enum.
17063 (iq2000_arch): New Enum and EnumValue entries.
17064 (mcpu=): Use Enum and Var.
17065 (iq2000_tune): New Enum and EnumValue entries.
17067 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17069 * config/ia64/ia64-opts.h: New.
17070 * config/ia64/ia64.c (ia64_tune): Remove.
17071 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
17072 here. Use error_at.
17073 (ia64_option_override): Handle deferred OPT_mfixed_range_.
17074 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
17075 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
17076 HeaderInclude entry.
17077 (ia64_tune): New Variable entry.
17078 (mfixed-range=): Use Defer and Var.
17079 (mtune=): Use Enum and Var.
17080 (ia64_tune): New Enum and EnumValue entries.
17082 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17084 * config/frv/frv-opts.h: New.
17085 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
17087 (frv_cpu_type): Remove.
17088 * config/frv/frv.c: Don't include opts.h.
17089 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
17090 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
17091 (frv_cpu_type): New Variable entry.
17092 (frv_cpu): New Enum and EnumValue entries.
17094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17096 * config/cris/cris.c (cris_handle_option): Access target_flags via
17097 opts pointer. Don't assert that global structures are in use.
17098 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
17099 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
17101 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17103 * config/bfin/bfin-opts.h: New.
17104 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
17105 bfin_si_revision, bfin_workarounds): Remove.
17106 (bfin_cpus): Make static const.
17107 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
17108 not bfin_lib_id_given.
17109 (bfin_handle_option): Don't set bfin_lib_id_given. Access
17110 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
17111 pointer. Use error_at. Don't assert that global structures are in use.
17112 * config/bfin/bfin.h: Include bfin-opts.h.
17113 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
17114 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
17115 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
17116 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
17119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17121 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
17122 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
17123 or -msoft-float here.
17124 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
17125 -msoft-float and -mhard-float.
17126 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
17127 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17129 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
17131 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
17132 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
17134 (LIBGCC_SPEC): Don't handle -msoft-float.
17135 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
17137 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17139 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
17140 -mfloat-abi=*, not -msoft-float and -mhard-float.
17141 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
17143 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
17144 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
17145 mhard-float and msoft-float.
17146 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
17147 mfloat-abi=soft in comments, not mhard-float and msoft-float.
17148 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17149 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
17151 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
17152 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
17154 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
17156 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
17159 2011-03-22 Richard Henderson <rth@redhat.com>
17161 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
17162 TARGET_ABI_WINDOWS_NT.
17163 (alpha_output_function_end_prologue): Likewise.
17164 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
17165 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17166 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
17167 (trap, *movsi_nt_vms): Likewise.
17168 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
17169 (*tablejump_osf_nt_internal): Remove.
17170 * config/alpha/predicates.md (input_operand): Only test Pmode.
17172 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17174 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
17175 via opts pointer. Use error_at. Don't assert that global
17176 structures are in use.
17178 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17180 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
17181 (ix86_handle_option): Access ix86_isa_flags and
17182 ix86_isa_flags_explicit via opts pointer. Don't assert that
17183 global structures are in use.
17184 (ix86_function_specific_save, ix86_function_specific_restore):
17185 Update ix86_isa_flags_explicit field name.
17186 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
17187 (ix86_isa_flags_explicit): Rename TargetSave entry to
17188 x_ix86_isa_flags_explicit.
17190 2011-03-22 Richard Henderson <rth@redhat.com>
17192 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
17193 (alpha_option_override, direct_return): Likewise.
17194 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
17195 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
17196 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
17197 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17198 (alpha_expand_epilogue, alpha_end_function): Likewise.
17199 (alpha_init_libfuncs): Likewise.
17200 (struct machine_function): Remove unicosmk members.
17201 (print_operand) ['t']: Remove.
17202 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
17203 unicosmk_output_module_name, unicosmk_output_common,
17204 current_section_align, unicosmk_output_text_section_asm_op,
17205 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
17206 unicosmk_section_type_flags, unicosmk_unique_section,
17207 unicosmk_asm_named_section, unicosmk_insert_attributes,
17208 unicosmk_output_align, unicosmk_defer_case_vector,
17209 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
17210 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
17211 unicosmk_output_ssib, unicosmk_add_call_info_word,
17212 unicosmk_extern_head, unicosmk_output_default_externs,
17213 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
17214 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
17215 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
17216 * config/alpha/alpha-protos.h: Update.
17217 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
17218 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
17219 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
17220 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
17221 (*mulsi_se, mulvsi3): Likewise.
17222 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
17223 (*divmodsi_internal, call, call_value, realign): Likewise.
17224 (moddi3, umoddi3): Likewise; remove duplicate expander.
17225 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
17226 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
17227 (*movdi_nofix): Remove r/U alternative.
17228 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
17229 * config/alpha/constraints.md ("U"): Remove.
17230 * config/alpha/predicates.md (call_operand"): Don't test
17231 TARGET_ABI_UNICOSMK.
17233 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17235 * target.def (handle_option): Take gcc_options and
17236 cl_decoded_option pointers and location_t.
17237 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
17238 * doc/tm.texi: Regenerate.
17239 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
17240 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
17241 * lto-opts.c (lto_reissue_options): Generate option structure for
17242 targetm.handle_option call.
17243 * opts.c (target_handle_option): Update call to
17244 targetm.handle_option. Remove assertions about values now passed
17246 * targhooks.c (default_target_handle_option): New.
17247 * targhooks.h (default_target_handle_option): Declare.
17248 * config/alpha/alpha.c: Include opts.h.
17249 (alpha_handle_option): Update to new hook interface.
17250 * config/arm/arm.c: Include opts.h.
17251 (arm_handle_option): Update to new hook interface.
17252 * config/arm/t-arm (arm.o): Update dependencies.
17253 * config/bfin/bfin.c: Include opts.h.
17254 (bfin_handle_option): Update to new hook interface.
17255 * config/cris/cris.c: Include opts.h.
17256 (cris_handle_option): Update to new hook interface.
17257 * config/frv/frv.c: Include opts.h.
17258 (frv_handle_option): Update to new hook interface.
17259 * config/i386/i386.c: Include opts.h.
17260 (ix86_handle_option): Update to new hook interface.
17261 (ix86_valid_target_attribute_inner_p): Generate option structure
17262 for call to ix86_handle_option.
17263 * config/i386/t-i386 (i386.o): Update dependencies.
17264 * config/ia64/ia64.c: Include opts.h.
17265 (ia64_handle_option): Update to new hook interface.
17266 * config/ia64/t-ia64 (ia64.o): Update dependencies.
17267 * config/iq2000/iq2000.c: Include opts.h.
17268 (iq2000_handle_option): Update to new hook interface.
17269 * config/m32c/m32c.c: Include opts.h.
17270 (m32c_handle_option): Update to new hook interface.
17271 * config/m32r/m32r.c: Include opts.h.
17272 (m32r_handle_option): Update to new hook interface.
17273 * config/m68k/m68k.c: Include opts.h.
17274 (m68k_handle_option): Update to new hook interface.
17275 * config/mep/mep.c: Include opts.h.
17276 (mep_handle_option): Update to new hook interface.
17277 * config/microblaze/microblaze.c: Include opts.h.
17278 (microblaze_handle_option): Update to new hook interface.
17279 * config/mips/mips.c: Include opts.h.
17280 (mips_handle_option): Update to new hook interface.
17281 * config/mn10300/mn10300.c: Include opts.h.
17282 (mn10300_handle_option): Update to new hook interface.
17283 * config/pa/pa.c: Include opts.h.
17284 (pa_handle_option): Update to new hook interface.
17285 * config/pdp11/pdp11.c: Include opts.h.
17286 (pdp11_handle_option): Update to new hook interface.
17287 * config/rs6000/rs6000.c: Include opts.h.
17288 (rs6000_handle_option): Update to new hook interface.
17289 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17290 * config/rx/rx.c: Include opts.h.
17291 (rx_handle_option): Update to new hook interface.
17292 * config/s390/s390.c: Include opts.h.
17293 (s390_handle_option): Update to new hook interface.
17294 * config/score/score.c: Include opts.h.
17295 (score_handle_option): Update to new hook interface.
17296 * config/sh/sh.c: Include opts.h.
17297 (sh_handle_option): Update to new hook interface.
17298 * config/sparc/sparc.c: Include opts.h.
17299 (sparc_handle_option): Update to new hook interface.
17300 * config/v850/v850.c: Include opts.h.
17301 (v850_handle_option): Update to new hook interface.
17303 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17305 * gcc.c (driver_unknown_option_callback): Only permit and save
17306 unknown -Wno- options.
17307 (driver_wrong_lang_callback): Save options directly instead of via
17308 driver_unknown_option_callback.
17310 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
17312 * combine.c (simplify_set): Try harder to find the best CC mode when
17313 simplifying a nested COMPARE on the RHS.
17315 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17317 * config/alpha/gnu.h: Remove.
17318 * config/arc: Remove directory.
17319 * config/arm/netbsd.h: Remove.
17320 * config/arm/t-pe: Remove.
17321 * config/crx: Remove directory.
17322 * config/i386/netbsd.h: Remove.
17323 * config/m68hc11: Remove directory.
17324 * config/m68k/uclinux-oldabi.h: Remove.
17325 * config/mcore/mcore-pe.h: Remove.
17326 * config/mcore/t-mcore-pe: Remove.
17327 * config/netbsd-aout.h: Remove.
17328 * config/rs6000/gnu.h: Remove.
17329 * config/sh/sh-symbian.h: Remove.
17330 * config/sh/symbian-base.c: Remove.
17331 * config/sh/symbian-c.c: Remove.
17332 * config/sh/symbian-cxx.c: Remove.
17333 * config/sh/symbian-post.h: Remove.
17334 * config/sh/symbian-pre.h: Remove.
17335 * config/sh/t-symbian: Remove.
17336 * config/svr3.h: Remove.
17337 * config/vax/netbsd.h: Remove.
17338 * config.build: Don't handle i[34567]86-*-pe.
17339 * config.gcc: Remove handling of deprecations for most deprecated
17341 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
17342 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
17343 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
17344 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
17345 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
17346 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
17348 * config.host: Don't handle i[34567]86-*-pe.
17349 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
17350 (ASM_SPEC32): Don't handle -mcall-gnu.
17351 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
17353 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
17354 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
17355 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17356 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
17357 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
17358 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
17359 conditional on SYMBIAN.
17360 * configure.ac: Don't handle powerpc*-*-gnu*.
17361 * configure: Regenerate.
17362 * doc/extend.texi (interrupt attribute): Don't mention CRX.
17363 * doc/install-old.texi (m6811, m6812): Don't mention.
17364 * doc/install.texi (arc-*-elf*): Don't document multilib option.
17365 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
17366 (m68k-uclinuxoldabi): Don't mention.
17367 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
17369 (-mcall-gnu): Remove.
17370 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
17371 families): Remove constraint documentation.
17373 2011-03-22 Marius Strobl <marius@FreeBSD.org>
17375 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
17376 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
17377 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
17379 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17382 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
17383 vector when peeking at the next token for vector, don't expand the
17386 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
17388 * config/avr/avr-protos.h (expand_epilogue): Change prototype
17389 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
17390 * config/avr/avr.c (init_cumulative_args)
17391 (avr_function_arg_advance): Use it.
17392 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
17394 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
17395 (avr_function_ok_for_sibcall): ...this new function.
17396 (avr_lookup_function_attribute1): New static Function.
17397 (avr_naked_function_p, interrupt_function_p)
17398 (signal_function_p, avr_OS_task_function_p)
17399 (avr_OS_main_function_p): Use it.
17400 * config/avr/avr.md ("sibcall", "sibcall_value")
17401 ("sibcall_epilogue"): New expander.
17402 ("*call_insn", "*call_value_insn"): New insn.
17403 ("call_insn", "call_value_insn"): Remove
17404 ("call", "call_value", "epilogue"): Change expander to handle
17407 2011-03-21 Nick Clifton <nickc@redhat.com>
17409 * doc/invoke.texi (Overall Options): Move closing brace to end of
17411 (Optimization Options): Add missing @gol.
17412 (Directory Options): Likewise.
17413 (i386 and x86-64 Options): Likewise.
17414 (RS6000 and PowerPC Options): Likewise.
17415 (i386 and x86-64 Windows Options): Likewise.
17416 (V850 Options): Add text missing from descriptions.
17418 2011-03-22 Richard Henderson <rth@redhat.com>
17420 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
17421 (avr_incoming_return_addr_rtx): New.
17422 (emit_push_byte): New.
17423 (expand_prologue): Use it. Remove incorrect dwarf annotation for
17424 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
17425 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
17426 (emit_pop_byte): New.
17427 (expand_epilogue): Use it. Pop frame pointer by bytes.
17428 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
17429 (INCOMING_RETURN_ADDR_RTX): New.
17430 (INCOMING_FRAME_SP_OFFSET): New.
17431 (ARG_POINTER_CFA_OFFSET): New.
17432 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
17433 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
17436 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
17438 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17440 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17441 (FUNCTION_ARG_ADVANCE): Likewise.
17442 * tm.texi.in: Change references to them to hook references.
17443 * tm.texi: Regenerate.
17444 * targhooks.c (default_function_arg): Eliminate check for target
17446 (default_function_incoming_arg): Likewise.
17447 (default_function_arg_advance): Likewise.
17448 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17449 (function_arg_advance): Likewise.
17450 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17452 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17454 * tree.c (build_call_1): New function.
17455 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
17457 2011-03-22 Richard Guenther <rguenther@suse.de>
17459 PR tree-optimization/48228
17460 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
17461 for single-arg PHIs.
17463 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
17465 PR rtl-optimization/48143
17466 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
17467 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
17468 sse2_cvtps2pd): Likewise.
17470 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17472 * recog.c (canonicalize_change_group): Use validate_unshare_change.
17474 2011-03-22 Richard Guenther <rguenther@suse.de>
17476 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
17477 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
17478 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
17479 and REALIGN_LOAD_EXPR.
17480 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
17481 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
17482 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
17483 DOT_PROD_EXPR case ...
17484 (expand_expr_real_2): ... here.
17485 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
17486 and REALIGN_LOAD_EXPR.
17487 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
17488 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
17489 (vect_create_epilog_for_reduction): Likewise.
17490 (vectorizable_reduction): Likewise.
17491 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
17492 * tree-vect-stmts.c (vectorizable_load): Likewise.
17494 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
17496 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17498 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17500 * config/s390/s390.c (s390_delegitimize_address): Fix offset
17501 handling for PLTOFF/GOTOFF.
17503 2011-03-22 Nick Clifton <nickc@redhat.com>
17505 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17506 trailing backslash from the end of the macro definition.
17508 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17510 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17513 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
17515 * expr.h (prepare_operand): Move to...
17516 * optabs.h (prepare_operand): ...here and change the insn code
17517 parameter from "int" to "enum insn_code".
17518 (insn_operand_matches): Declare.
17519 * expr.c (init_expr_target): Use insn_operand_matches.
17520 (compress_float_constant): Likewise.
17521 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17522 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17523 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
17524 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17526 (gen_cond_trap): Likewise.
17527 (prepare_operand): Likewise. Change icode to an insn_code.
17528 (insn_operand_matches): New function.
17529 * reload.c (find_reloads_address_1): Use insn_operand_matches.
17530 * reload1.c (gen_reload): Likewise.
17531 * targhooks.c (default_secondary_reload): Likewise.
17533 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
17535 * config/alpha/alpha.md (unspec): New define_c_enum.
17538 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
17541 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17542 between a call and its CALL_ARG_LOCATION note.
17544 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17546 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17548 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17552 * c-common.c (shorten_compare): If primopN is first sign-extended
17553 to opN and then zero-extended to result type, set primopN to opN.
17555 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
17557 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17558 for barrier handlers.
17560 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17562 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17563 UNSPEC constants to be in the unspec enumeration, and redefine
17564 all UNSPECV constants to be in the unspecv enumeration, so that
17565 dumps print which unspec/unspec_volatile this is.
17566 * config/rs6000/vector.md (UNSPEC_*): Ditto.
17567 * config/rs6000/paired.md (UNSPEC_*): Ditto.
17568 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17569 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17570 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17572 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17573 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17574 UNSPECV_LWSYNC, since these are used as unspec_volatile.
17575 * config/rs6000/sync.md (isync, lwsync): Ditto.
17577 2011-03-21 Richard Guenther <rguenther@suse.de>
17579 * params.def (lto-min-partition): Fix typo.
17581 2011-03-21 Richard Guenther <rguenther@suse.de>
17584 * c-decl.c (grokdeclarator): Drop to the main variant only
17585 for array types. Drop flag_gen_aux_info check.
17587 2011-03-21 Richard Guenther <rguenther@suse.de>
17589 PR translation/47911
17590 * params.def (lto-partitions): Fix typo.
17591 (lto-min-partition): Fix wording.
17593 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
17595 * config/rs6000/t-freebsd: Remove duplication from file.
17597 2011-03-21 Richard Guenther <rguenther@suse.de>
17599 PR middle-end/47661
17600 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17602 2011-03-21 Richard Guenther <rguenther@suse.de>
17605 * params.def (lto-partitions): Require at least 1 partition.
17607 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17609 * gthr-solaris.h: Remove.
17610 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17611 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17612 (LIB_SPEC): Likewise.
17613 * config/sol2.opt (threads): Remove.
17614 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17615 (sparc*-*-solaris2*): Likewise.
17616 * configure.ac (enable_threads): Enable solaris support.
17617 * configure: Regenerate.
17618 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17619 * doc/install.texi (Configuration, --enable-threads=lib): Remove
17622 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17624 * config.gcc: Obsolete *-*-solaris2.8*.
17625 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17627 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17630 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17631 reference. Solaris 8 perl works.
17633 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17636 * doc/install.texi (Prerequisites): Move jar etc. up.
17637 Explain support library version requirements.
17639 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17642 * doc/install.texi (Prerequisites): Move Perl to build
17643 requirements. Always necessary on Solaris 2 with Sun ld.
17645 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17647 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17649 (Specific, i?86-*-solaris2.[89]): Likewise.
17650 (Specific, i?86-*-solaris2.10): Likewise.
17651 (Specific, mips-sgi-irix6): Likewise.
17652 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17653 Update for binutils 2.21.
17655 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17657 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17658 Allow -fuse-linker-plugin for non-default plugin linker.
17659 * configure: Regenerate.
17661 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17664 * gengtype.c (files_rules): Added rule for cp/parser.h.
17666 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17669 * config/s390/s390.c (s390_delegitimize_address): Don't call
17670 lowpart_subreg if orig_x has BLKmode.
17672 2011-03-21 Kai Tietz <ktietz@redhat.com>
17675 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17676 * tree.h (attribute_spec): Add new member affects_type_identity.
17677 * attribs.c (empty_attribute_table): Adjust attribute_spec
17679 * config/alpha/alpha.c: Likewise.
17680 * config/arc/arc.c: Likewise.
17681 * config/arm/arm.c: Likewise.
17682 * config/avr/avr.c: Likewise.
17683 * config/bfin/bfin.c: Likewise.
17684 * config/crx/crx.c: Likewise.
17685 * config/darwin.h: Likewise.
17686 * config/h8300/h8300.c: Likewise.
17687 * config/i386/cygming.h: Likewise.
17688 * config/i386/i386.c: Likewise.
17689 * config/ia64/ia64.c: Likewise.
17690 * config/m32c/m32c.c: Likewise.
17691 * config/m32r/m32r.c: Likewise.
17692 * config/m68hc11/m68hc11.c: Likewise.
17693 * config/m68k/m68k.c: Likewise.
17694 * config/mcore/mcore.c: Likewise.
17695 * config/mep/mep.c: Likewise.
17696 * config/microblaze/microblaze.c: Likewise.
17697 * config/mips/mips.c: Likewise.
17698 * config/rs6000/rs6000.c: Likewise.
17699 * config/rx/rx.c: Likewise.
17700 * config/sh/sh.c: Likewise.
17701 * config/sol2.h: Likewise.
17702 * config/sparc/sparc.c: Likewise.
17703 * config/spu/spu.c: Likewise.
17704 * config/stormy16/stormy16.c: Likewise.
17705 * config/v850/v850.c: Likewise.
17707 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17709 * simplify-rtx.c (simplify_binary_operation_1): Handle
17710 (xor (and A B) C) case when B and C are both constants.
17712 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17714 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17716 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17719 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17721 2011-03-20 Jakub Jelinek <jakub@redhat.com>
17723 PR rtl-optimization/48156
17724 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17725 assume df and df_lr are not NULL.
17727 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17730 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17731 between a call and its CALL_ARG_LOCATION note.
17733 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17736 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17737 between a call and its corresponding CALL_ARG_LOCATION note.
17739 2011-03-19 Anatoly Sokolov <aesok@post.ru>
17741 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17742 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17743 * haifa-sched.c (setup_ref_regs): Ditto.
17744 * caller-save.c (add_used_regs_1): Ditto.
17745 * dse.c (look_for_hardregs): Ditto.
17746 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17747 * sched-rgn.c (check_live_1): Ditto.
17749 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17751 * c-decl.c (diagnose_mismatched_decls): Give an error for
17752 redefining a typedef with variably modified type.
17754 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17756 * c-decl.c (grokfield): Don't allow typedefs for structures or
17757 unions with no tag by default.
17758 * doc/extend.texi (Unnamed Fields): Update.
17760 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
17762 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17763 Rewrite using indirect functions.
17764 (lwp_slwpcb): Ditto.
17765 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17766 (avx_vinsertf128<mode>): Ditto.
17768 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17770 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17773 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17775 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17776 splitting between a call and its corresponding CALL_ARG_LOCATION note.
17778 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17780 PR rtl-optimization/48170
17781 * gcse.c (hoist_code): Remove bogus asserts.
17783 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
17785 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17786 computation for prologue/epilogue.
17788 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17790 * Makefile.in (check-consistency): Remove.
17792 2011-03-18 Jakub Jelinek <jakub@redhat.com>
17795 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17796 arange_table_in_use is 0, but either text_section_used or
17797 cold_text_section_used is true. Don't call it if
17798 !info_section_emitted.
17800 2011-03-18 Anatoly Sokolov <aesok@post.ru>
17802 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17803 FUNCTION_VALUE_REGNO_P): Remove.
17804 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17806 * config/avr/avr.c (avr_ret_register): Make static inline.
17807 (avr_function_value_regno_p): New function.
17808 (avr_libcall_value): Make static. Add 'func' argument.
17809 (avr_function_value): Make static. Rename 'func' argument to
17810 'fn_decl_or_type', forward it to avr_libcall_value. Call
17811 avr_ret_register function instead of RET_REGISTER macro.
17812 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17814 2011-03-18 Jason Merrill <jason@redhat.com>
17817 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17819 2011-03-18 Richard Guenther <rguenther@suse.de>
17821 * doc/install.texi (--enable-gold): Remove.
17822 (--with-plugin-ld): Document.
17823 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17825 2011-03-18 Andrew Pinski <pinskia@gmail.com>
17827 PR middle-end/47790
17828 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17829 again after expansion changes.
17831 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17833 * combine.c (try_combine): Do simplification only call of
17834 subst() on i2 even when i1 is present. Update comments.
17836 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17838 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17839 and UNSPEC_PCREL_SYMOFF.
17841 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17843 * config/s390/s390.md: Use define_c_enum for the unspec constant
17846 2011-03-18 Richard Henderson <rth@redhat.com>
17847 Jakub Jelinek <jakub@redhat.com>
17850 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17851 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17853 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17855 PR middle-end/47725
17856 * combine.c (cant_combine_insn_p): Don't check zero/sign
17857 extended hard registers.
17859 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17861 PR middle-end/47725
17862 * combine.c (cant_combine_insn_p): Check zero/sign extended
17865 2011-03-17 Anatoly Sokolov <aesok@post.ru>
17867 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17868 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17869 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17870 Change return type to bool.
17871 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17873 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17876 * var-tracking.c (prepare_call_arguments): If CALL target
17877 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17878 pc instead of looking it up using cselib_lookup and use
17879 Pmode for it if x has VOIDmode.
17880 * dwarf2out.c (gen_subprogram_die): If also both first and
17881 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17884 * function.c (assign_parms): For data.passed_pointer parms
17885 use MEM of data.entry_parm instead of data.entry_parm itself
17886 as DECL_INCOMING_RTL.
17887 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17888 also when passed and declared mode is the same, DECL_RTL
17889 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17892 2011-03-16 Jeff Law <law@redhat.com>
17894 PR rtl-optimization/37273
17895 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17896 handle them like argument loads from stack slots. Do not double
17897 count memory for memory constants and argument loads from stack slots.
17899 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17902 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17904 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17907 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17909 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17912 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17914 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17915 Clear call_arg_locations and call_arg_loc_last always.
17917 PR middle-end/48152
17918 * var-tracking.c (prepare_call_arguments): If argument needs to be
17919 passed by reference, adjust argtype and mode.
17921 2011-03-17 Richard Guenther <rguenther@suse.de>
17923 PR middle-end/48134
17924 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17925 a value make sure to fold the statement.
17927 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17930 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17931 return condition with !cfun->calls_alloca.
17933 2011-03-17 Richard Guenther <rguenther@suse.de>
17936 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17937 origin for decls in other ltrans units.
17938 (input_varpool_node): Likewise.
17940 2011-03-17 Richard Guenther <rguenther@suse.de>
17942 PR middle-end/48165
17943 * tree-object-size.c (compute_object_offset): Properly return
17944 the offset operand of MEM_REFs as sizetype.
17946 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17948 PR rtl-optimization/48141
17949 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17950 * dse.c: Include params.h.
17951 (active_local_stores_len): New variable.
17952 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17954 (record_store, check_mem_read_rtx): Decrease it when removing
17956 (scan_insn): Likewise. Increase it when adding to chain, if it
17957 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17958 set active_local_stores to NULL before the addition.
17959 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17961 PR rtl-optimization/48141
17962 * dse.c (record_store): If no positions are needed in an insn
17963 that cannot be deleted, at least unchain it from active_local_stores.
17965 2011-03-16 Dodji Seketeli <dodji@redhat.com>
17968 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17969 (lookup_type_die_strip_naming_typedef): ... here.
17970 (get_context_die): Use it.
17971 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17972 the anonymous struct named by the naming typedef.
17974 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17977 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17978 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17980 2011-03-16 Jeff Law <law@redhat.com>
17982 * tree-vrp.c (identify_jump_threads): Slightly simplify type
17983 check for operands of conditional. Allow type to be a pointer.
17985 2011-03-16 Richard Guenther <rguenther@suse.de>
17987 PR tree-optimization/48149
17988 * fold-const.c (fold_binary_loc): Fold
17989 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17991 2011-03-16 Richard Guenther <rguenther@suse.de>
17993 PR tree-optimization/26134
17994 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17995 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17996 (non_rewritable_mem_ref_base): Handle complex type component
17997 accesses, constrain offsets for vector and complex extracts
18000 2011-03-16 Richard Guenther <rguenther@suse.de>
18002 PR tree-optimization/48146
18003 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
18004 operands avoiding the need for renaming.
18006 2011-03-16 Richard Guenther <rguenther@suse.de>
18008 * gimple-fold.c (maybe_fold_reference): Open-code relevant
18009 constant folding. Move MEM_REF canonicalization first.
18010 Rely on fold_const_aggregate_ref for initializer folding.
18011 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
18013 2011-03-16 Jakub Jelinek <jakub@redhat.com>
18015 PR middle-end/48136
18016 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18017 arg0/arg1 or their arguments are always fold converted to matching
18020 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
18023 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18026 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
18027 Handle in-tree gold.
18028 (ld_vers): Extract binutils version for gold.
18029 (gcc_cv_ld_hidden): Handle gold here.
18030 (gcc_cv_lto_plugin): Determine level of linker plugin support.
18031 * configure: Regenerate.
18032 * config.in: Regenerate.
18033 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
18034 -fuse-linker-plugin otherwise.
18035 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
18036 (LINK_COMMAND_SPEC): Use it.
18037 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
18039 2011-03-16 Jakub Jelinek <jakub@redhat.com>
18041 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
18042 * calls.c: Remove debug.h include.
18043 (emit_call_1): Don't call virtual_call_token debug hook.
18044 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
18045 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
18046 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
18047 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
18048 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
18049 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
18050 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
18051 dwarf2out_virtual_call): Remove.
18052 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
18053 copy_call_info and virtual_call hooks.
18054 (dwarf2out_init): Don't initialize vcall_insn_table,
18055 debug_dcall_section and debug_vcall_section.
18056 (prune_unused_types): Don't mark nodes from dcall_table.
18057 (dwarf2out_finish): Don't output dcall or vcall tables.
18058 * final.c (final_scan_insn): Don't call direct_call or
18059 virtual_call debug hooks.
18060 * debug.h (struct gcc_debug_hooks): Remove direct_call,
18061 virtual_call_token, copy_call_info and virtual_call hooks.
18062 (debug_nothing_uid): Remove prototype.
18063 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
18064 copy_call_info and virtual_call hooks.
18065 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18066 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
18067 * debug.c (do_nothing_debug_hooks): Likewise.
18068 (debug_nothing_uid): Remove.
18069 * doc/invoke.texi (-fenable-icf-debug): Remove.
18070 * common.opt (-fenable-icf-debug): Likewise.
18072 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
18073 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
18074 call's MEM. Handle functions returning aggregate through a hidden
18075 first pointer. For virtual calls add clobbered pc to call arguments
18077 * dwarf2out.c (gen_subprogram_die): Emit
18078 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
18082 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
18083 * rtl.h (ENTRY_VALUE_EXP): Define.
18084 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
18085 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
18086 * print-rtl.c (print_rtx): Likewise.
18087 * gengtype.c (adjust_field_rtx_def): Likewise.
18088 * var-tracking.c (vt_add_function_parameter): Adjust
18089 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
18090 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
18091 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
18092 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
18093 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
18095 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
18096 Call var_location debug hook even on CALL_INSNs.
18097 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
18098 * rtl.def (ENTRY_VALUE): New.
18099 * dwarf2out.c: Include cfglayout.h.
18100 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18101 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
18102 (struct call_arg_loc_node): New type.
18103 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
18104 tail_call_site_count): New variables.
18105 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
18106 DW_TAG_GNU_call_site_parameter.
18107 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
18108 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
18109 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
18110 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
18111 and DW_AT_GNU_all_source_call_sites.
18112 (mem_loc_descriptor): Handle ENTRY_VALUE.
18113 (add_src_coords_attributes): Don't add enything if
18114 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
18115 (dwarf2out_abstract_function): Save and clear call_arg_location,
18116 call_site_count and tail_call_site_count around dwarf2out_decl call.
18117 (gen_call_site_die): New function.
18118 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
18119 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
18120 (dwarf2out_function_decl): Clear call_arg_locations,
18121 call_arg_loc_last, set call_site_count and tail_call_site_count
18122 to -1 and free block_map.
18123 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
18124 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
18125 followed by any real instructions.
18126 (dwarf2out_begin_function): Set call_site_count and
18127 tail_call_site_count to 0.
18128 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
18129 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
18130 attempt to force a DIE for it and worst case remove the attribute.
18131 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
18132 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
18134 * var-tracking.c: Include tm_p.h.
18135 (vt_stack_adjustments): For calls call note_register_arguments.
18136 (argument_reg_set): New variable.
18137 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
18138 ensure the VALUE is resolved.
18139 (call_arguments): New variable.
18140 (prepare_call_arguments): New function.
18141 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
18142 (struct expand_loc_callback_data): Add ignore_cur_loc field.
18143 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
18144 always use the best expression.
18145 (vt_expand_loc): Add ignore_cur_loc argument.
18146 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
18147 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
18148 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
18149 note for all calls.
18150 (vt_add_function_parameter): Use cselib_lookup_from_insn.
18151 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
18152 argument. Don't call cselib_preserve_only_values and
18153 cselib_reset_table.
18154 (note_register_arguments): New function.
18155 (vt_initialize): Compute argument_reg_set. Call
18156 vt_add_function_parameters before processing basic blocks instead of
18157 afterwards. For calls call prepare_call_arguments before calling
18158 cselib_process_insn.
18159 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
18160 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
18161 (var-tracking.o): Depend on $(TM_P_H).
18162 * cfglayout.h (insn_scope): New prototype.
18163 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
18164 * cfglayout.c (insn_scope): No longer static.
18165 * insn-notes.def (CALL_ARG_LOCATION): New.
18166 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
18167 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
18168 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
18169 nothing for DECL_EXTERNAL BLOCK_VARS.
18171 2011-03-16 Alan Modra <amodra@gmail.com>
18174 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18175 create invalid offset address for vsx splat insn.
18176 * config/rs6000/predicates.md (splat_input_operand): New.
18177 * config/rs6000/vsx.md (vsx_splat_*): Use it.
18179 2011-03-15 Xinliang David Li <davidxl@google.com>
18182 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
18183 (normalize_preds): New function.
18184 (is_use_properly_guarded): Normalize def predicates.
18186 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18189 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
18190 in the output template.
18192 2011-03-15 Richard Guenther <rguenther@suse.de>
18194 PR middle-end/47650
18195 * tree-pretty-print.c (dump_function_declaration): Properly
18196 dump unprototyped and varargs function types.
18198 2011-03-15 Richard Guenther <rguenther@suse.de>
18200 PR tree-optimization/13954
18201 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
18204 2011-03-15 Richard Guenther <rguenther@suse.de>
18206 PR tree-optimization/48037
18207 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
18208 selects into BIT_FIELD_REFs.
18209 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
18212 2011-03-15 Jakub Jelinek <jakub@redhat.com>
18214 PR tree-optimization/48129
18215 * builtins.c (fold_builtin_snprintf): Convert to type of
18216 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
18217 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
18219 2011-03-15 Richard Guenther <rguenther@suse.de>
18221 PR tree-optimization/41490
18222 * tree-ssa-dce.c (propagate_necessity): Handle returns without
18223 value but with VUSE.
18224 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
18226 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
18227 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
18228 * tree-tailcall.c (find_tail_calls): Ignore returns.
18230 2011-03-15 Richard Guenther <rguenther@suse.de>
18232 PR middle-end/48031
18233 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
18234 or variable-indexed array accesses when in gimple form.
18236 2011-03-15 Richard Guenther <rguenther@suse.de>
18238 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
18240 2011-03-15 Alan Modra <amodra@gmail.com>
18243 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
18244 presume symbol_refs without a symbol_ref_decl are suitably
18245 aligned, nor other trees we may see here. Handle anchor symbols.
18246 (legitimate_constant_pool_address_p): Comment. Add mode param.
18247 Check cmodel=medium addresses. Adjust all calls.
18248 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
18249 creating cmodel=medium optimized access to locals.
18250 * config/rs6000/constraints.md (R): Pass QImode to
18251 legitimate_constant_pool_address_p.
18252 * config/rs6000/predicates.md (input_operand): Pass mode to
18253 legitimate_constant_pool_address_p.
18254 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
18257 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18260 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
18261 64-bit constants being loaded into registers other than GPRs such
18262 as loading 0 into a VSX register.
18264 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18266 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
18268 2011-03-14 Jakub Jelinek <jakub@redhat.com>
18270 PR middle-end/47917
18271 * builtins.c (fold_builtin_snprintf): New function.
18272 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
18273 (fold_builtin_4): Likewise.
18275 PR middle-end/38878
18276 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
18277 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
18278 and C - X == X also strip nops from +/-/p+ operand.
18279 When optimizing -X == C, fold C to arg0's type.
18282 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
18283 emit it as add_AT_int instead of add_AT_unsigned.
18285 2011-03-14 Tom Tromey <tromey@redhat.com>
18287 * unwind-dw2.c: Include sys/sdt.h if it exists.
18288 (_Unwind_DebugHook): Use STAP_PROBE2.
18289 * config.in, configure: Rebuild.
18290 * configure.ac: Check for sys/sdt.h.
18292 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
18294 * config/i386/i386.md (ROUND_FLOOR): New constant.
18295 (ROUND_CEIL): Ditto.
18296 (ROUND_TRUNC): Ditto.
18297 (ROUND_MXCSR): Ditto.
18298 (ROUND_NO_EXC): Ditto.
18299 (rint<mode>2): Use new defines instead of numerical constants.
18300 (floor<mode>2): Ditto.
18301 (ceil<mode>2): Ditto.
18302 (btrunc<mode>2): Ditto.
18303 * config/i386/i386-builtin-types.def: Define ROUND function type
18305 * config/i386/i386.c (enum ix86_builtins): Add
18306 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
18307 (struct builtin_description): Add
18308 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
18309 (ix86_expand_sse_round): New static function.
18310 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
18312 (ix86_builtin_vectorized_function): Handle
18313 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18315 2011-03-14 Tom Tromey <tromey@redhat.com>
18317 * c-parser.c (c_parser_asm_string_literal): Clear
18318 warn_overlength_strings.
18320 2011-03-14 Tom Tromey <tromey@redhat.com>
18322 * c-parser.c (disable_extension_diagnostics): Save
18323 warn_overlength_strings.
18324 (restore_extension_diagnostics): Restore warn_overlength_strings.
18326 2011-03-14 Jakub Jelinek <jakub@redhat.com>
18328 * BASE-VER: Change to 4.7.0.
18330 2011-03-14 Richard Guenther <rguenther@suse.de>
18332 PR middle-end/48098
18333 * tree.c (build_vector_from_val): Adjust assert to requirements
18336 2011-03-14 Jakub Jelinek <jakub@redhat.com>
18339 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
18341 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
18343 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
18344 terms of target_flags_explicit. Adjust copyright year.
18346 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
18347 * config/rs6000/t-freebsd: New file. Add override for
18350 2011-03-13 Chris Demetriou <cgd@google.com>
18352 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
18353 (-fno-diagnostics-show-option): this, to reflect current default.
18354 (-Werror=): Update text about -fno-diagnostics-show-option.
18356 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
18359 * config/rs6000/predicates.md (easy_vector_constant_add_self,
18360 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
18361 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
18362 mode is not V2DImode or V2DFmode.
18363 (vspltis_constant): Do not handle V2DImode and V2DFmode.
18364 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
18365 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
18367 (movdi_internal64): Likewise.
18369 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
18371 PR tree-optimization/47127
18372 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
18374 (set_cloog_options): Same.
18375 (scop_to_clast): Same.
18376 (print_clast_stmt): Do not call cloog_state_malloc and
18378 (print_generated_program): Same.
18380 * graphite-clast-to-gimple.h (cloog_state): Declared.
18381 (scop_to_clast): Adjust declaration.
18382 * graphite.c (cloog_state): Defined here.
18383 (graphite_initialize): Call cloog_state_malloc.
18384 (graphite_finalize): Call cloog_state_free.
18386 2011-03-11 Jason Merrill <jason@redhat.com>
18388 * attribs.c (lookup_attribute_spec): Take const_tree.
18391 2011-03-11 Joseph Myers <joseph@codesourcery.com>
18393 * config/sparc/sparc.c (sparc_option_override): Use
18394 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
18396 2011-03-11 Richard Guenther <rguenther@suse.de>
18398 PR tree-optimization/48067
18399 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
18400 multiplication result will be only used once on the target
18403 2011-03-11 Richard Guenther <rguenther@suse.de>
18405 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
18407 2011-03-11 Richard Guenther <rguenther@suse.de>
18410 * tree.c (find_decls_types_r): Do not walk types only reachable
18411 from IDENTIFIER_NODEs.
18413 2011-03-11 Jakub Jelinek <jakub@redhat.com>
18415 PR middle-end/48044
18416 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
18417 all vnode->force_output nodes as needed.
18419 2011-03-11 Jason Merrill <jason@redhat.com>
18422 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
18423 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
18425 2011-03-11 Martin Jambor <mjambor@suse.cz>
18427 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
18430 2011-03-11 Jakub Jelinek <jakub@redhat.com>
18432 PR tree-optimization/48063
18433 * ipa-inline.c (cgraph_decide_inlining): Don't try to
18434 inline functions called once if !tree_can_inline_p (node->callers).
18436 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
18438 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
18440 * config/score/score3.c: Delete.
18441 * config/score/score3.h: Delete.
18442 * config/score/mul-div.S: Delete.
18443 * config/score/sfp-machine.h: Add new file.
18444 * config/score/constraints.md: Add new file.
18445 * config/score/t-score-softfp: Add new file.
18446 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
18447 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
18448 (score7_extra_constraint): Delete.
18449 (score7_option_override): Remove unused code.
18450 * config/score/score.c: Remove score3 and score5 define and code.
18451 * config/score/score.h: Remove score3 and score5 define and code.
18452 * config/score/score.md: Remove score3 template and unusual insn.
18453 * config/score/score.opt: Remove score3 and score5 options.
18455 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18457 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
18458 when _HPUX_SOURCE is defined.
18459 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
18461 2011-03-10 Jason Merrill <jason@redhat.com>
18464 * stor-layout.c (layout_type): Don't set structural equality
18465 on arrays of incomplete type.
18466 * tree.c (type_hash_eq): Handle comparing them properly.
18468 2011-03-10 Jakub Jelinek <jakub@redhat.com>
18471 * config/s390/s390.c (s390_delegitimize_address): Make sure the
18472 result mode matches original rtl mode.
18474 2011-03-10 Nick Clifton <nickc@redhat.com>
18476 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
18477 (andsi3, andsi3_flags): Fix timings for three operand alternative.
18479 2011-03-09 Jakub Jelinek <jakub@redhat.com>
18481 PR rtl-optimization/47866
18482 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
18483 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
18484 if target wasn't scalar.
18485 * function.c (assign_stack_temp_for_type): Assert that neither
18486 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
18487 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
18489 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
18491 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18493 * config/s390/s390-protos.h (s390_label_align): New prototype.
18494 * config/s390/s390.c (s390_label_align): New function.
18495 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18497 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18500 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18501 V2DI/V2DF constants. Only all 0's or all 1's are easy.
18502 (output_vec_const_move): Ditto.
18504 2011-03-08 Anatoly Sokolov <aesok@post.ru>
18506 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18507 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18508 * config/mips/mips.c (mips_preferred_reload_class): Make static.
18509 Change 'rclass' argument and result type to reg_class_t.
18510 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18512 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
18514 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18515 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18516 (TARGET_MEMORY_MOVE_COST): Define.
18517 (avr_register_move_cost, avr_memory_move_cost): New Functions.
18519 2011-03-08 Jakub Jelinek <jakub@redhat.com>
18522 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18525 PR tree-optimization/48022
18526 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18529 2011-03-07 Jakub Jelinek <jakub@redhat.com>
18532 * var-tracking.c (find_use_val): Return NULL for
18533 cui->sets && cui->store_p BLKmode MEMs.
18535 2011-03-07 Anatoly Sokolov <aesok@post.ru>
18537 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18539 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18540 xstormy16_print_operand_address): Remove.
18541 * config/stormy16/stormy16.c (xstormy16_print_operand,
18542 xstormy16_print_operand_address): Make static.
18543 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18545 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
18548 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18549 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18552 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
18555 * cfgloopmanip.c (fix_bb_placements): Return immediately
18556 if FROM is BASE_LOOP's header.
18558 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
18560 * gimplify.c (gimplify_function_tree): Fix building calls
18561 to __builtin_return_address.
18563 2011-03-07 Alan Modra <amodra@gmail.com>
18565 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18566 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18567 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18568 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18570 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18571 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18572 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18573 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18574 * config/rs6000/rs6000.c
18575 (rs6000_elf_end_indicate_exec_stack): Rename to..
18576 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
18577 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
18578 (rs6000_file_start): ..here.
18579 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18580 file scope variables.
18581 (call_ABI_of_interest): New function.
18582 (init_cumulative_args): Set above vars when function return value
18583 is a float, vector, or small struct.
18584 (rs6000_function_arg_advance_1): Likewise for function args.
18585 (rs6000_va_start): Set rs6000_passes_float if variable arg function
18586 references float args.
18588 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
18590 * doc/cfg.texi: Remove "See" before @ref.
18591 * doc/invoke.texi: Likewise.
18593 2011-03-05 Jason Merrill <jason@redhat.com>
18595 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18597 2011-03-05 Anthony Green <green@moxielogic.com>
18599 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18601 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
18603 PR rtl-optimization/47899
18604 * cfgloopmanip.c (fix_bb_placements): Fix first argument
18605 to flow_loop_nested_p when moving the loop upward.
18607 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
18610 * arm.md (movhi_insn_arch4): Accept any immediate constant.
18612 2011-03-05 Jakub Jelinek <jakub@redhat.com>
18614 PR tree-optimization/47967
18615 * ipa-cp.c (build_const_val): Return NULL instead of creating
18616 VIEW_CONVERT_EXPR for mismatching sizes.
18617 (ipcp_create_replace_map): Return NULL if build_const_val failed.
18618 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18619 give up on versioning.
18621 2011-03-05 Alan Modra <amodra@gmail.com>
18624 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18625 full cmodel medium/large lo_sum + high addresses.
18627 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18629 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18630 pool references in UNSPEC_LTREL_OFFSET.
18632 2011-03-04 Jan Hubicka <jh@suse.cz>
18635 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18636 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18637 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18639 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18640 cgraph_add_thunk): Add node pointers.
18641 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18642 associated to right node.
18643 (input_node): Update use of cgraph_same_body_alias
18644 and cgraph_add_thunk.
18646 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18648 * config/i386/i386.opt (mprefer-avx128): New flag.
18649 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18650 modes when the flag -mprefer-avx128 is on.
18652 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18654 * dwarf2out.c (compare_loc_operands): Fix address handling.
18656 2011-03-04 Alan Modra <amodra@gmail.com>
18658 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18660 2011-03-04 Richard Guenther <rguenther@suse.de>
18662 PR middle-end/47968
18663 * expmed.c (extract_bit_field_1): Prefer vector modes that
18664 vec_extract patterns can handle.
18666 2011-03-04 Richard Guenther <rguenther@suse.de>
18668 PR middle-end/47975
18669 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18671 2011-03-04 Richard Henderson <rth@redhat.com>
18673 * explow.c (emit_stack_save): Remove 'after' parameter.
18674 (emit_stack_restore): Likewise.
18675 * expr.h: Update to match.
18676 * builtins.c, calls.c, stmt.c: Likewise.
18677 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18678 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18679 * function.c (expand_function_end): Insert the emit_stack_save
18680 sequence before parm_birth_insn instead of after.
18682 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
18684 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18685 (ssse3_pmaddubsw128): Ditto.
18686 (ssse3_pmaddubsw): Ditto.
18688 2011-03-03 Steve Ellcey <sje@cup.hp.com>
18690 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18692 2011-03-03 Jakub Jelinek <jakub@redhat.com>
18695 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18696 on TYPE_SIZE_UNIT if it is a DECL.
18699 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18700 first operand is not is_gimple_mem_ref_addr, try to fold it.
18701 If the operand still isn't is_gimple_mem_ref_addr, clear
18704 2011-03-03 Richard Guenther <rguenther@suse.de>
18706 PR middle-end/47283
18707 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18709 (refs_may_alias_p_1): For release branches return true if
18710 we are confused by our input.
18712 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18714 * config/s390/s390.c (s390_function_value): Rename to ...
18715 (s390_function_and_libcall_value): ... this.
18716 (s390_function_value): New function.
18717 (s390_libcall_value): New function.
18718 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18719 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18720 target macro definitions.
18721 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18723 2011-03-02 Joseph Myers <joseph@codesourcery.com>
18725 * config/i386/freebsd64.h (CC1_SPEC): Define.
18726 * config/i386/linux64.h (CC1_SPEC): Define.
18727 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18729 2011-03-02 Anatoly Sokolov <aesok@post.ru>
18731 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18733 * config/stormy16/stormy16.c: Include reload.h.
18734 (xstormy16_memory_move_cost): New function.
18735 (TARGET_MEMORY_MOVE_COST): Define.
18737 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18739 PR rtl-optimization/47925
18740 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18741 with side effects. Remove the more-specific check for volatile asms.
18743 2011-03-02 Alan Modra <amodra@gmail.com>
18746 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18747 toc relative addresses for valid offsets.
18749 2011-03-01 Richard Guenther <rguenther@suse.de>
18751 PR tree-optimization/47890
18752 * tree-vect-loop.c (get_initial_def_for_induction): Set
18753 related stmt properly.
18755 2011-03-01 Richard Guenther <rguenther@suse.de>
18758 * lto-streamer.c (lto_record_common_node): Also register
18759 the canonical type.
18761 2011-03-01 Richard Guenther <rguenther@suse.de>
18764 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18765 Do not stream DECL_ABSTRACT_ORIGIN.
18766 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18767 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18768 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18769 Do not stream DECL_ABSTRACT_ORIGIN.
18770 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18771 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18773 2011-02-28 Anatoly Sokolov <aesok@post.ru>
18775 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18776 FUNCTION_VALUE_REGNO_P): Remove.
18777 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18778 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18779 Add 'outgoing' argument.
18780 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18782 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18783 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18785 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
18788 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18789 (lookup_filename): Likewise.
18790 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18792 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18793 Jakub Jelinek <jakub@redhat.com>
18795 PR middle-end/47893
18796 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18797 (assign_stack_local_1): Change last argument type to int.
18798 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18799 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
18800 don't record padding space into frame_space_list nor use those areas.
18801 (assign_stack_local): Adjust caller.
18802 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18803 of assign_stack_local, pass 0 as last argument.
18804 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18807 2011-02-28 Jakub Jelinek <jakub@redhat.com>
18810 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18811 Use target address_mode and pointer_mode hooks instead of hardcoded
18812 Pmode and ptr_mode. Handle some simple cases of extending if
18813 POINTERS_EXTEND_UNSIGNED < 0.
18814 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18815 Call convert_debug_memory_address.
18816 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18817 convert_debug_memory_address.
18819 PR middle-end/46790
18820 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18821 * configure: Regenerated.
18822 * config.in: Regenerated.
18823 * varasm.c (default_function_section): Return NULL
18824 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18826 2011-02-28 Martin Jambor <mjambor@suse.cz>
18828 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18829 the description to match the printed values.
18831 2011-02-28 Richard Guenther <rguenther@suse.de>
18833 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18834 of the copied scope tree.
18836 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18838 * doc/extend.texi (Function Attributes): Avoid deeply (and
18839 wrongly) nested tables.
18841 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18843 PR middle-end/47903
18844 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18845 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18846 r isn't op0 nor op1.
18848 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18850 * config/avr/avr.md: Remove magic comment for emacs.
18852 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18855 * config/avr/avr.c (avr_option_override): Use error on bad options.
18856 (avr_help): New function.
18857 (TARGET_HELP): Define.
18859 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
18862 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18863 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18865 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18867 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18868 (ARM Options): Ditto.
18869 (i386 and x86-64 Options): Ditto.
18870 (RX Options): Ditto.
18871 (SPARC Options): Ditto.
18873 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
18875 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18876 FreeBSD 6 and later. Generally use cpu generic.
18878 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18880 * doc/cpp.texi: Update copyright years.
18882 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
18885 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18887 2011-02-25 Jon Beniston <jon@beniston.com>
18890 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18891 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18892 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18893 (lm32_block_move_inline): Add type cast to remove warning.
18894 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18895 (gen_int_relational): Move declarations to start of function.
18897 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18899 PR tree-optimization/45470
18900 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18901 can throw internally only.
18902 * tree-vect-stmts.c (vectorizable_call): Likewise.
18904 2011-02-24 Anatoly Sokolov <aesok@post.ru>
18906 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18907 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18908 * config/stormy16/stormy16-protos.h
18909 (xstormy16_preferred_reload_class): Remove.
18910 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18911 static. Change 'rclass' argument and return type to reg_class_t.
18912 (TARGET_PREFERRED_RELOAD_CLASS,
18913 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18915 2011-02-24 Richard Guenther <rguenther@suse.de>
18917 * lto-streamer-in.c (input_bb): Do not find referenced vars
18918 in debug statements.
18920 2011-02-23 Jason Merrill <jason@redhat.com>
18922 * common.opt (fabi-version): Document v5 and v6.
18924 2011-02-23 Richard Guenther <rguenther@suse.de>
18926 PR tree-optimization/47849
18927 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18929 2011-02-23 Jie Zhang <jie@codesourcery.com>
18931 * opts-common.c (decode_cmdline_option): Print empty string
18932 argument as "" in decoded->orig_option_with_args_text.
18933 * gcc.c (execute): Print empty string argument as ""
18934 in the verbose output.
18935 (do_spec_1): Keep empty string argument.
18937 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18939 * config.gcc: Declare score-* and crx-* obsolete.
18941 2011-02-23 Jie Zhang <jie@codesourcery.com>
18943 PR rtl-optimization/47763
18944 * web.c (web_main): Ignore naked clobber when replacing register.
18946 2011-02-22 Anatoly Sokolov <aesok@post.ru>
18948 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18951 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18954 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18956 2011-02-22 Mike Stump <mikestump@comcast.net>
18958 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18960 * configure: Regenerate.
18962 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18964 PR rtl-optimization/46002
18965 * ira-color.c (update_copy_costs): Change class intersection
18966 test to reg_class_contents[] test of 'hard_regno'.
18968 2011-02-21 Joseph Myers <joseph@codesourcery.com>
18970 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18971 than Driver option.
18972 * config/hpux11.opt (mt): Likewise.
18973 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18974 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18975 * config/vax/elf.opt (mno-asm-pic): Likewise.
18976 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18978 2011-02-21 Mike Stump <mikestump@comcast.net>
18981 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18982 tree so we can get save the type.
18983 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18984 for CFString instead of trying to use past the end of the builtins.
18985 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18986 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18987 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18988 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18989 Rename to darwin_builtin_cfstring.
18990 (darwin_init_cfstring_builtins): Return the built type.
18992 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
18995 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18996 (_mm256_insert_epi64): Use _mm_insert_epi64.
18998 2011-02-21 Anatoly Sokolov <aesok@post.ru>
19000 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19001 * config/stormy16/stormy16-protos.h
19002 (xstormy16_mode_dependent_address_p): Remove.
19003 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
19004 Make static. Change return type to bool. Change argument type to
19005 const_rtx. Remove dead code.
19006 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19008 2011-02-21 Richard Guenther <rguenther@suse.de>
19011 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19012 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19013 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
19015 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19016 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19018 2011-02-20 Richard Guenther <rguenther@suse.de>
19021 * tree.c (free_lang_data_in_decl): Clean builtins from
19022 the TU decl BLOCK_VARS.
19024 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
19028 * haifa-sched.c (fix_tick_ready): Skip tick computation
19031 2011-02-19 Richard Guenther <rguenther@suse.de>
19034 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
19035 Remove lazy BLOCK_VARS streaming.
19036 (lto_input_ts_block_tree_pointers): Likewise.
19037 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
19039 2011-02-19 Joseph Myers <joseph@codesourcery.com>
19041 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
19043 2011-02-19 Joseph Myers <joseph@codesourcery.com>
19045 * config/i386/biarch32.h, config/i386/mach.h,
19046 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
19048 2011-02-19 Jakub Jelinek <jakub@redhat.com>
19051 * config/i386/i386.md (peephole2 for shift and plus): Use
19052 operands[1] original mode in the first insn.
19054 2011-02-18 Mike Stump <mikestump@comcast.net>
19056 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
19058 2011-02-18 Jan Hubicka <jh@suse.cz>
19060 PR middle-end/47788
19061 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
19062 to zero when the function is not inlinable at all.
19064 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19066 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
19067 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19068 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
19069 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
19070 * config/pa/t-pa64: Likewise.
19071 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19073 2011-02-18 Jakub Jelinek <jakub@redhat.com>
19076 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
19078 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19081 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
19083 2011-02-18 Anatoly Sokolov <aesok@post.ru>
19085 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19086 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
19087 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
19088 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19089 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
19090 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
19091 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
19092 m32r_load_postinc_p, m32r_store_preinc_predec_p,
19093 m32r_legitimate_address_p): New functions.
19094 * config/m32r/constraints.md (constraint "S"): Don't use
19095 STORE_PREINC_PREDEC_P.
19096 (constraint "U"): Don't use LOAD_POSTINC_P.
19098 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
19100 PR rtl-optimization/46178
19101 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
19102 compute ira_hard_regno_cover_class[].
19104 2011-02-18 Richard Guenther <rguenther@suse.de>
19107 * lto-streamer.h (lto_global_var_decls): Declare.
19108 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
19109 statics for global var processing.
19111 2011-02-18 Richard Guenther <rguenther@suse.de>
19113 PR tree-optimization/47737
19114 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
19115 edge dominance check.
19117 2011-02-18 Jakub Jelinek <jakub@redhat.com>
19120 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
19121 avoid invalid rtx sharing.
19123 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
19125 * doc/cpp.texi (Obsolete Features): Add background on the
19126 origin of assertions.
19128 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
19130 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
19132 * config/darwin.c (output_objc_section_asm_op): Added support for
19134 (is_objc_metadata): New.
19135 (darwin_objc2_section): New.
19136 (darwin_objc1_section): New.
19137 (machopic_select_section): Added support for ABI v1 and v2.
19138 (darwin_emit_objc_zeroed): New.
19139 (darwin_output_aligned_bss): Detect objc metadata and treat it
19141 (darwin_asm_output_aligned_decl_common): Same.
19142 (darwin_asm_output_aligned_decl_local): Same.
19143 * config/darwin-sections.def: Updated for ABI v1 and v2.
19144 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
19145 compiling Objective-C code for the NeXT runtime, default to using
19146 ABI version 0 for 32-bit, and version 2 for 64-bit.
19148 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19150 * common.opt (optimize_fast): New Variable.
19151 * opts.c (default_options_optimization): Use opts->x_optimize_fast
19152 instead of local variable ofast.
19154 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
19156 * doc/invoke.texi (fobjc-abi-version): Documented.
19157 (fobjc-nilcheck): Documented.
19158 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
19161 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19164 * common.opt (export-dynamic): New Driver option.
19165 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
19167 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19169 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
19171 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
19172 Jan Hubicka <jh@suse.cz>
19176 * cfgexpand.c (account_used_vars_for_block): Remove.
19177 (estimated_stack_frame_size): Use referenced vars.
19178 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
19179 that were referenced in the original function. Test src_fn
19180 rather than cfun. Drop redundant get_var_ann.
19181 (setup_one_parameter): Drop redundant get_var_ann.
19182 (declare_return_variable): Likewise.
19183 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
19184 (copy_arguments_for_versioning): Drop redundant get_var_ann.
19185 * ipa-inline.c (compute_inline_parameters): Do not compute
19186 disregard_inline_limits here.
19187 (compute_inlinable_for_current, pass_inlinable): New.
19188 (pass_inline_parameters): Require PROP_referenced_vars.
19189 * cgraphunit.c (cgraph_process_new_functions): Don't run
19190 compute_inline_parameters explicitly unless function is in SSA form.
19191 (cgraph_analyze_function): Set .disregard_inline_limits.
19192 * tree-sra.c (convert_callers): Compute inliner parameters
19193 only for functions already in SSA form.
19195 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19197 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
19198 -mlittle-endian-data.
19200 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19202 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
19203 -mno-fpu, not -fpu and -no-fpu.
19204 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
19205 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
19207 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
19210 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
19211 input reload with PLUS RTX.
19213 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19215 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
19216 of InverseVar(MDMX).
19218 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19220 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
19223 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19225 * config/mn10300/mn10300.opt (mno-crt0): New.
19227 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19229 * config/m68k/uclinux.opt (static-libc): New Driver option.
19231 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19233 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
19235 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19237 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
19238 %{muser-extend-enabled}.
19240 2011-02-16 Richard Guenther <rguenther@suse.de>
19242 PR tree-optimization/47738
19243 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
19244 the TODO from tree_predictive_commoning.
19246 2011-02-15 Jeff Law <law@redhat.com>
19249 2011-01-25 Jeff Law <law@redhat.com>
19251 PR rtl-optimization/37273
19252 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19253 handle them like argument loads from stack slots. Do not double
19254 count memory for memory constants and argument loads from stack slots.
19256 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
19258 PR middle-end/47725
19259 * combine.c (cant_combine_insn_p): Revert the last change.
19261 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19264 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
19265 mode for vector constants. Remove code that checks for TImode.
19267 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19271 * cgraph.h (compute_inline_parameters): Return void.
19272 * ipa-inline.c (compute_inline_parameters): Adjust.
19274 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19278 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
19280 * cfgexpand.c (estimated_stack_frame_size): Likewise.
19281 * ipa-inline.c (compute_inline_parameters): Adjust.
19283 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19287 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
19288 Adjust all users. Pass FN to...
19289 * tree-flow-inline.h (first_referenced_var): ... this. Add
19291 * ipa-struct-reorg.c: Adjust.
19292 * tree-dfa.c: Adjust.
19293 * tree-into-ssa.c: Adjust.
19294 * tree-sra.c: Adjust.
19295 * tree-ssa-alias.c: Adjust.
19296 * tree-ssa-live.c: Adjust.
19297 * tree-ssa.c: Adjust.
19298 * tree-ssanames.c: Adjust.
19299 * tree-tailcall.c: Adjust.
19301 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19305 * tree-flow.h (referenced_var_lookup): Add fn parameter.
19306 Adjust all callers.
19307 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
19308 * tree-flow-inline.h: Adjust.
19309 * gimple-pretty-print.c: Adjust.
19310 * tree-into-ssa.c: Adjust.
19311 * tree-ssa.c: Adjust.
19312 * cfgexpand.c: Adjust.
19314 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19316 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
19317 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19318 (EXTRA_CONSTRAINT): Delete.
19319 * config/iq2000/constraints.md: New file.
19320 * config/iq2000/iq2000.md: Include it.
19321 (define_insn ""): Delete.
19322 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
19323 unsupported constraint letters from patterns.
19324 (call_value, call_value_internal1): Likewise.
19325 (call_value_multiple_internal1): Likewise.
19327 2011-02-15 Nick Clifton <nickc@redhat.com>
19329 * config/mn10300/mn10300.c: Include tm-constrs.h.
19330 (struct liw_data): New data structure describing an LIW candidate
19332 (extract_bundle): Use struct liw_data. Allow small integer
19333 operands for some instructions.
19334 (check_liw_constraints): Use struct liw_data. Remove swapped
19335 parameter. Add comments describing the checks. Fix bug when
19336 assigning the source of liw1 to the source of liw2.
19337 (liw_candidate): Delete. Code moved into extract_bundle.
19338 (mn10300_bundle_liw): Use struct liw_data. Check constraints
19340 * config/mn10300/predicates.md (liw_operand): New predicate.
19341 Allows registers and small integer constants.
19342 * config/mn10300/constraints.md (O): New constraint. Accetps
19343 integers in the range -8 to +7 inclusive.
19344 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
19345 for moving a small integer into a register. Give this alternative
19347 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
19348 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
19349 using the J,K,L and M constraints,
19350 (liw): Remove SI mode on second operands to allow for HI and QI
19352 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
19355 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
19357 PR middle-end/47725
19358 * combine.c (cant_combine_insn_p): Check zero/sign extended
19361 2011-02-15 Richard Guenther <rguenther@suse.de>
19363 PR tree-optimization/47743
19364 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
19365 for a non-type-compatible VN lookup bail out.
19367 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19369 * config/fr30/constraints.md: New file.
19370 * config/fr30/fr30.md: Include it.
19371 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
19372 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19373 (EXTRA_CONSTRAINT): Delete.
19375 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19377 * config/frv/constraints.md: New file.
19378 * config/frv/predicates.md: Include it.
19379 * config/frv/frv.c (reg_class_from_letter): Delete.
19380 (frv_option_override): Don't initialize it.
19381 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
19382 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
19383 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
19384 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19385 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
19386 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19387 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
19388 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
19389 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
19390 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
19391 (REG_CLASS_FROM_CONSTRAINT): Delete.
19393 2011-02-15 Jakub Jelinek <jakub@redhat.com>
19395 PR middle-end/47581
19396 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
19397 if frame size is 0 in a leaf function.
19399 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19402 * config/alpha/host-osf.c: New file.
19403 * config/alpha/x-osf: New file.
19404 * config.host (alpha*-dec-osf*): Use it.
19406 2011-02-14 Anatoly Sokolov <aesok@post.ru>
19408 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19409 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
19410 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
19411 (rx_mode_dependent_address_p): ...this. Make static. Change argument
19413 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19415 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19417 * config/stormy16/constraints.md: New file.
19418 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
19419 Use satisfies_constraint_Q and satisfies_constraint_R.
19420 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
19422 (xstormy16_legitiamte_address_p): Declare.
19423 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
19424 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19425 (EXTRA_CONSTRAINT): Delete.
19426 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19428 (xstormy16_extra_constraint_p): Delete.
19430 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
19432 PR tree-optimization/46494
19433 * loop-unroll.c (split_edge_and_insert): Adjust comment.
19434 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
19435 (pass_rtl_loop_done): Add TODO_verify_flow.
19436 * fwprop.c (pass_rtl_fwprop): Likewise.
19437 * modulo-sched.c (pass_sms): Likewise.
19438 * tree-ssa-dom.c (pass_dominator): Likewise.
19439 * tree-ssa-loop-ch.c (pass_ch): Likewise.
19440 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
19441 (pass_tree_loop_done): Likewise.
19442 * tree-ssa-pre.c (execute_pre): Likewise.
19443 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19444 * tree-ssa-sink.c (pass_sink_code): Likewise.
19445 * tree-vrp.c (pass_vrp): Likewise.
19447 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19449 * config/v850/constraints.md: New file.
19450 * config/v850/v850.md: Include it.
19451 * config/v850/predicates.md (reg_or_0_operand): Use
19452 satisfies_constraint_G.
19453 (special_symbolref_operand): Use satisfies_constraint_K.
19454 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
19455 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
19456 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
19457 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19458 (EXTRA_CONSTRAINT): Delete.
19459 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
19460 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
19461 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
19463 2011-02-14 Anatoly Sokolov <aesok@post.ru>
19466 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
19469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19471 * config/mcore/constraints.md: New file.
19472 * config/mcore/mcore.md: Include it.
19473 * config/mcore/mcore.c (reg_class_from_letter): Delete.
19474 * config/mcore/mcore.h (reg_class_from_letter): Delete.
19475 (REG_CLASS_FROM_LETTER): Delete.
19476 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
19477 insn_const_int_ok_for_constraint.
19478 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
19479 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
19480 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19481 (EXTRA_CONSTRAINT): Delete.
19483 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19486 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
19487 (IS_SIGHANDLER): Define.
19488 (sparc64_is_sighandler): New function, split off from
19489 sparc64_fallback_frame_state.
19490 (sparc_is_sighandler): New function, split off from
19491 sparc_fallback_frame_state.
19492 (sparc64_fallback_frame_state): Merge with ...
19493 (sparc_fallback_frame_state): ... this into ...
19494 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
19495 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
19496 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
19497 stack instead of hardcoded offsets.
19499 2011-02-14 Andriy Gapon <avg@freebsd.org>
19502 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19504 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19506 * configure: Regenerate.
19508 2011-02-12 Joseph Myers <joseph@codesourcery.com>
19511 * gcc.c (asm_options): Correct spec matching --target-help.
19513 2011-02-12 Martin Jambor <mjambor@suse.cz>
19515 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19516 to gimple call error.
19518 2011-02-12 Mike Stump <mikestump@comcast.net>
19520 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19521 comments in backslash regions.
19523 2011-02-12 Mike Stump <mikestump@comcast.net>
19524 Jakub Jelinek <jakub@redhat.com>
19525 Iain Sandoe <iains@gcc.gnu.org>
19528 * dwarf2out.c (output_cfa_loc): When required, apply the
19529 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19530 (output_loc_sequence): Likewise.
19531 (output_loc_operands_raw): Likewise.
19532 (output_loc_sequence_raw): Likewise.
19533 (output_cfa_loc): Likewise.
19534 (output_loc_list): Suppress register number adjustment when
19535 calling output_loc_sequence()
19536 (output_die): Likewise.
19538 2011-02-12 Anatoly Sokolov <aesok@post.ru>
19540 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19542 * config/xtensa/xtensa.c (xtensa_register_move_cost,
19543 xtensa_memory_move_cost): New functions.
19544 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19546 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
19549 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19550 in the current directory.
19551 * configure: Rebuilt.
19553 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19555 * config/darwin.c (darwin_override_options): Add a hunk missed
19556 from the commit of r168571. Trim comment line lengths and
19557 correct indents of the preceding block.
19559 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19561 * gcc.c (driver_handle_option): Concatenate the argument to -F with
19564 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19566 * common.opt (nostartfiles): New Driver option.
19568 2011-02-11 Xinliang David Li <davidxl@google.com>
19570 PR tree-optimization/47707
19571 * tree-chrec.c (convert_affine_scev): Keep type precision.
19573 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
19575 PR tree-optimization/47420
19576 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19578 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
19580 PR rtl-optimization/47614
19581 * rtl.h (check_for_inc_dec): Declare.
19582 * dse.c (check_for_inc_dec): Externalize...
19583 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19584 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19586 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19589 * gcc.c (main): Do not compile inputs if there were errors in
19591 * opts-common.c (read_cmdline_option): Check for wrong language
19592 after other error checks.
19594 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
19596 * cgraph.c: Fix comment typos.
19597 * cgraph.h: Likewise.
19598 * cgraphunit.c: Likewise.
19599 * ipa-cp.c: Likewise.
19600 * ipa-inline.c: Likewise.
19601 * ipa-prop.c: Likewise.
19602 * ipa-pure-const.c: Likewise.
19603 * ipa-ref.c: Likewise.
19604 * ipa-reference.c: Likewise.
19606 2011-02-11 Jakub Jelinek <jakub@redhat.com>
19609 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19611 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19614 * doc/sourcebuild.texi (Require Support): Document
19615 dg-require-ascii-locale.
19617 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
19619 * doc/lto.texi (Write summary): Fix missing parentheses.
19621 2011-02-10 DJ Delorie <dj@redhat.com>
19623 * config/m32c/m32c.c (m32c_option_override): Disable
19624 -fcombine-stack-adjustments until flag value tracking and compare
19625 optimization can be rewritten.
19627 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19629 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19631 (PROCESSOR_DEFAULT64): Likewise.
19633 2011-02-10 Richard Henderson <rth@redhat.com>
19635 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19636 change from 2011-02-03.
19637 * config/rx/rx.c (flags_from_code): Likewise.
19638 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19639 is valid, n/pz otherwise.
19640 (rx_select_cc_mode): Return CCmode if Y is not zero.
19642 2011-02-10 Richard Guenther <rguenther@suse.de>
19644 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19646 2011-02-10 Richard Guenther <rguenther@suse.de>
19648 PR tree-optimization/47677
19649 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19651 2011-02-10 Jakub Jelinek <jakub@redhat.com>
19654 * combine.c (make_compound_operation): Only change shifts into
19655 multiplication for SCALAR_INT_MODE_P.
19657 2011-02-10 Jie Zhang <jie@codesourcery.com>
19661 2011-02-05 Jie Zhang <jie@codesourcery.com>
19663 * web.c (entry_register): Don't clobber the number of the
19664 first uninitialized reference in used[].
19666 2011-02-09 Richard Guenther <rguenther@suse.de>
19668 PR tree-optimization/47664
19669 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19672 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
19676 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19678 (PROCESSOR_DEFAULT64): Same.
19679 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19681 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19683 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19685 2011-02-09 Martin Jambor <mjambor@suse.cz>
19687 PR middle-end/45505
19688 * tree-sra.c (struct access): New flags grp_scalar_read and
19689 grp_scalar_write. Changed description of assignment read and write
19691 (dump_access): Dump new flags, reorder all of them.
19692 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19693 to detect multiple scalar reads.
19694 (analyze_access_subtree): Use the new scalar read write flags instead
19695 of the old flags. Adjusted comments.
19697 2011-02-08 DJ Delorie <dj@redhat.com>
19700 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19703 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19705 * config/m68k/uclinux.opt: New.
19706 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19708 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19710 * config/cris/elf.opt (sim): New Driver option.
19712 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19714 * config/xtensa/elf.opt: New.
19715 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19717 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19719 * config/vax/elf.opt: New.
19720 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19722 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19724 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19726 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19728 * config/gnu-user.opt: New.
19729 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19730 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19731 *-*-uclinux*): Use gnu-user.opt.
19733 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
19735 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19736 * config/i386/gnu.h (CPP_SPEC): Likewise.
19738 2011-02-08 Ian Lance Taylor <iant@google.com>
19740 * common.opt (fcx-limited-range): Add SetByCombined flag.
19741 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19742 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19743 (fassociative-math, freciprocal-math): Likewise.
19744 (funsafe-math-optimizations): Likewise.
19745 * opth-gen.awk: Handle SetByCombined.
19746 * optc-gen.awk: Likewise.
19747 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19748 (set_unsafe_math_optimizations_flags): Likewise.
19749 * doc/options.texi (Option properties): Document SetByCombined.
19751 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19753 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19754 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19755 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19756 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19757 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19759 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19761 PR tree-optimization/46834
19762 PR tree-optimization/46994
19763 PR tree-optimization/46995
19764 * graphite-sese-to-poly.c (used_outside_reduction): New.
19765 (detect_commutative_reduction): Call used_outside_reduction.
19766 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19767 translate_scalar_reduction_to_array only when at least one
19768 loop-phi/close-phi tuple has been detected.
19770 2011-02-08 Richard Guenther <rguenther@suse.de>
19772 PR middle-end/47639
19773 * tree-vect-generic.c (expand_vector_operations_1): Update
19775 (expand_vector_operations): ... not here. Cleanup EH info
19776 and the CFG if required.
19778 2011-02-08 Richard Guenther <rguenther@suse.de>
19780 PR tree-optimization/47641
19781 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19782 require type compatibility.
19784 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19786 * gimple-low.c (lower_function_body): Don't remove the location of
19787 the return statement here.
19788 (lower_gimple_return): Do it here instead but only if the return
19789 statement is actually used twice.
19791 2011-02-08 Richard Guenther <rguenther@suse.de>
19793 PR tree-optimization/47632
19794 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19795 unused up_to_stmt parameter, return whether cfg-cleanup is
19796 necessary, remove EH info properly.
19797 (forward_propagate_into_gimple_cond): Adjust caller.
19798 (forward_propagate_into_cond): Likewise.
19799 (forward_propagate_comparison): Likewise.
19800 (tree_ssa_forward_propagate_single_use_vars): Make
19801 forward_propagate_comparison case similar to the two others.
19803 2011-02-08 Nick Clifton <nickc@redhat.com>
19805 * config/mn10300/mn10300.opt (mliw): New command line option.
19806 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19807 (liw_bundling): New automaton.
19808 (liw): New attribute.
19809 (liw_op): New attribute.
19810 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19811 (movsi_internal): Add LIW attributes.
19812 (andsi3): Likewise.
19813 (iorsi3): Likewise.
19814 (xorsi3): Likewise.
19815 (addsi3): Separate register and immediate alternatives.
19816 Add LIW attributes.
19817 (subsi3): Likewise.
19819 (aslsi3): Likewise.
19820 (lshrsi3): Likewise.
19821 (ashrsi3): Likewise.
19822 (liw): New pattern.
19823 * config/mn10300/mn10300.c (liw_op_names): New
19824 (mn10300_print_operand): Handle 'W' operand descriptor.
19825 (extract_bundle): New function.
19826 (check_liw_constraints): New function.
19827 (liw_candidate): New function.
19828 (mn10300_bundle_liw): New function.
19829 (mn10300_reorg): New function.
19830 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19831 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19832 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19833 __LIW__ or __NO_LIW__.
19834 * doc/invoke.texi: Describe the -mliw command line option.
19836 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19838 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19839 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19840 pthread_mutex_unlock): Remove.
19841 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19842 * config/pa/t-pa64: Likewise.
19843 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19844 shared libc if not linking against libpthread.
19845 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19847 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19850 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19851 on 10.6 and later to ensure that we always use the unwinder from
19852 the system. Only add -no_compact_unwind when tarteting darwin
19855 2011-02-07 Steve Ellcey <sje@cup.hp.com>
19858 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19859 (vec_interleave_lowv2sf): Ditto.
19860 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19861 (vec_extract_oddv2sf): Ditto.
19863 2011-02-07 Mike Stump <mikestump@comcast.net>
19866 Add __ieee_divdc3 entry point.
19867 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19869 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19870 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19871 * config/darwin.c (darwin_rename_builtins): Add.
19872 * config/darwin-protos.h (darwin_rename_builtins): Add.
19874 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19877 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19880 2011-02-07 Mike Stump <mikestump@comcast.net>
19882 * config/darwin.opt (mmacosx-version-min): Update default OS version.
19884 2011-02-07 Denis Chertykov <chertykov@gmail.com>
19887 * config/avr/libgcc.S (exit): Move .endfunc
19889 2011-02-07 Richard Guenther <rguenther@suse.de>
19891 PR tree-optimization/47615
19892 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19893 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19894 (run_scc_vn): Initialize it.
19895 (visit_reference_op_load): Use it.
19896 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19898 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19900 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19901 DImode trapping arithmetic libfuncs.
19903 2011-02-07 Richard Guenther <rguenther@suse.de>
19905 PR tree-optimization/47621
19906 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19908 (execute_update_addresses_taken): ... here. Make it more
19909 conservative in what we accept.
19911 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19913 * config/sparc/freebsd.h (ASM_SPEC): Define.
19914 * config/sparc/vxworks.h (ASM_SPEC): Define.
19916 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19918 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19920 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19922 * doc/invoke.texi: Remove reference to compiler internals from
19923 user documentation.
19925 * reg-notes.def: Remove REG_VALUE_PROFILE.
19926 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19928 2011-02-05 Jakub Jelinek <jakub@redhat.com>
19930 PR middle-end/47610
19931 * varasm.c (default_section_type_flags): If decl is NULL,
19932 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19934 2011-02-05 Jie Zhang <jie@codesourcery.com>
19937 * web.c (entry_register): Don't clobber the number of the
19938 first uninitialized reference in used[].
19940 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19942 PR tree-optimization/46194
19943 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19944 (build_classic_dist_vector_1): Do not represent classic distance
19945 vectors when the access functions are variating in different loops.
19947 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19949 * config/mips/iris6.opt: New.
19950 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19952 2011-02-04 Richard Henderson <rth@redhat.com>
19953 Steve Ellcey <sje@cup.hp.com>
19956 * config/ia64/predicates.md (mux1_brcst_element): New.
19957 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19958 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19959 (ia64_unpack_sign): New.
19960 (ia64_expand_unpack): Rewrite using new routines.
19961 (ia64_expand_widen_sum): Ditto.
19962 (ia64_expand_dot_prod_v8qi): Ditto.
19963 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19964 routines, add endian check.
19965 (pmpy2_even): Rename from pmpy2_r, add endian check.
19966 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19967 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19968 (vec_widen_smult_hi_v4hi): Ditto.
19969 (vec_widen_umult_lo_v4hi): Ditto.
19970 (vec_widen_umult_hi_v4hi): Ditto.
19971 (mulv2si3): Change endian checks.
19972 (sdot_prodv4hi): Rewrite with new calls.
19973 (udot_prodv4hi): New.
19974 (vec_pack_ssat_v4hi): Add endian check.
19975 (vec_pack_usat_v4hi): Ditto.
19976 (vec_pack_ssat_v2si): Ditto.
19977 (max1_even): Rename from max1_r, add endian check.
19978 (max1_odd): Rename from max1_l, add endian check.
19979 (*mux1_rev): Format change.
19980 (*mux1_mix): Ditto.
19981 (*mux1_shuf): Ditto.
19982 (*mux1_alt): Ditto.
19983 (*mux1_brcst_v8qi): Use new predicate.
19984 (vec_extract_evenv8qi): Remove endian check.
19985 (vec_extract_oddv8qi): Ditto.
19986 (vec_interleave_lowv4hi): Format change.
19987 (vec_interleave_highv4hi): Ditto.
19988 (mix2_even): Rename from mix2_r, add endian check.
19989 (mix2_odd): Rename from mux2_l, add endian check.
19990 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19991 (vec_extract_evenodd_helper): Format change.
19992 (vec_extract_evenv4hi): Remove endian check.
19993 (vec_extract_oddv4hi): Remove endian check.
19994 (vec_interleave_lowv2si): Format change.
19995 (vec_interleave_highv2si): Format change.
19996 (vec_initv2si): Remove endian check.
19997 (vecinit_v2si): Add endian check.
19998 (reduc_splus_v2sf): Add endian check.
19999 (reduc_smax_v2sf): Ditto.
20000 (reduc_smin_v2sf): Ditto.
20001 (vec_initv2sf): Remove endian check.
20002 (fpack): Add endian check.
20003 (fswap): Add endian check.
20004 (vec_interleave_highv2sf): Add endian check.
20005 (vec_interleave_lowv2sf): Add endian check.
20006 (fmix_lr): Add endian check.
20007 (vec_setv2sf): Format change.
20008 (*vec_extractv2sf_0_be): Use shift to extract operand.
20009 (*vec_extractv2sf_1_be): New.
20010 (vec_pack_trunc_v4hi): Add endian check.
20011 (vec_pack_trunc_v2si): Format change.
20013 2011-02-04 Jakub Jelinek <jakub@redhat.com>
20015 PR inline-asm/23200
20016 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
20017 do bb, locus and block comparison and disallow loads if it is not set.
20018 (stmt_is_replaceable_p): New function.
20019 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
20021 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
20022 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
20024 * tree-flow.h (stmt_is_replaceable_p): New prototype.
20026 2011-02-04 Joseph Myers <joseph@codesourcery.com>
20028 * config/rs6000/xilinx.opt: New.
20029 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
20031 2011-02-04 Joseph Myers <joseph@codesourcery.com>
20033 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
20035 2011-02-03 Anatoly Sokolov <aesok@post.ru>
20037 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
20038 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20039 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
20040 secondary_reload_info, xtensa_secondary_reload): Remove.
20041 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
20042 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20043 (xtensa_preferred_reload_class): Make static. Change return and
20044 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
20045 Use CONST_DOUBLE_P predicate.
20046 (xtensa_preferred_output_reload_class): New function.
20047 (xtensa_secondary_reload): Make static.
20049 2011-02-03 Joseph Myers <joseph@codesourcery.com>
20051 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
20052 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
20053 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
20055 2011-02-03 Jakub Jelinek <jakub@redhat.com>
20057 PR middle-end/31490
20058 * output.h (SECTION_RELRO): Define.
20059 (SECTION_MACH_DEP): Adjust.
20060 (get_variable_section): New prototype.
20061 * varpool.c (varpool_finalize_named_section_flags): New function.
20062 (varpool_assemble_pending_decls): Call it.
20063 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
20064 * cgraphunit.c (cgraph_output_in_order): Call
20065 varpool_finalize_named_section_flags.
20066 * varasm.c (get_section): Allow section flags conflicts between
20067 relro and read-only sections if the section hasn't been declared yet.
20068 Set SECTION_OVERRIDE after diagnosing section type conflict.
20069 (get_variable_section): No longer static.
20070 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
20071 readonly sections that need relocations.
20072 (decl_readonly_section_1): New function.
20073 (decl_readonly_section): Use it.
20076 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
20077 Steve Ellcey <sje@cup.hp.com>
20079 PR middle-end/31490
20080 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
20081 if section attribute used.
20083 2011-02-03 Jakub Jelinek <jakub@redhat.com>
20085 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
20086 * config/darwin.c (SECTION_NO_ANCHOR): Define.
20087 (darwin_init_sections): Remove assertion.
20089 2011-02-03 Nick Clifton <nickc@redhat.com>
20091 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
20093 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
20094 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
20095 instead of "n" and "pz".
20096 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
20099 2011-02-03 Jakub Jelinek <jakub@redhat.com>
20102 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
20103 fma, expand FMA_EXPR as fma{,f,l} call.
20106 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
20107 copy them into a unsigned char variable and pass address of it to
20108 lto_output_data_stream.
20111 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
20112 around backend_init_target and lang_dependent_init_target calls.
20113 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
20114 (verify_cgraph_node): Don't call set_cfun here. Use
20115 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
20116 Set error_found for incorrectly represented calls to thunks.
20118 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
20121 PR rtl-optimization/43494
20122 * rtl.h (for_each_inc_dec_fn): New type.
20123 (for_each_inc_dec): Declare.
20124 * rtlanal.c (struct for_each_inc_dec_ops): New type.
20125 (for_each_inc_dec_find_inc_dec): New fn.
20126 (for_each_inc_dec_find_mem): New fn.
20127 (for_each_inc_dec): New fn.
20128 * dse.c (struct insn_size): Remove.
20129 (replace_inc_dec, replace_inc_dec_mem): Remove.
20130 (emit_inc_dec_insn_before): New fn.
20131 (check_for_inc_dec): Use it, along with for_each_inc_dec.
20132 (canon_address): Pass mem modes to cselib_lookup.
20133 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
20134 (cselib_lookup_from_insn): Likewise.
20135 (cselib_subst_to_values): Likewise.
20136 * cselib.c (find_slot_memmode): New var.
20137 (cselib_find_slot): New fn. Use it instead of
20138 htab_find_slot_with_hash everywhere.
20139 (entry_and_rtx_equal_p): Use find_slot_memmode.
20140 (autoinc_split): New fn.
20141 (rtx_equal_for_cselib_p): Rename and implement in terms of...
20142 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
20143 Deal with autoinc. Special-case recursion into MEMs.
20144 (cselib_hash_rtx): Likewise.
20145 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
20146 address and MEM modes.
20147 (cselib_subst_to_values): Add memmode, pass it on.
20149 (cselib_lookup): Add memmode argument, pass it on.
20150 (cselib_lookup_from_insn): Add memmode.
20151 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
20152 (struct cselib_record_autoinc_data): New.
20153 (cselib_record_autoinc_cb): New fn.
20154 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
20155 mode to cselib_lookup. Reset autoinced REGs here instead of...
20156 (cselib_process_insn): ... here.
20157 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
20159 (add_uses): Likewise, also to cselib_subst_to_values.
20160 (add_stores): Likewise.
20161 * sched-deps.c (add_insn_mem_dependence): Pass mode to
20162 cselib_subst_to_values.
20163 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
20164 * gcse.c (do_local_cprop): Adjusted.
20165 * postreload.c (reload_cse_simplify_set): Adjusted.
20166 (reload_cse_simplify_operands): Adjusted.
20167 * sel-sched-dump (debug_mem_addr_value): Pass mode.
20169 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
20171 PR tree-optimization/45122
20172 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
20173 unsafe assumptions when there's more than one loop exit.
20175 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20178 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20179 Document using vector double with the load/store builtins, and
20180 that the load/store builtins always use Altivec instructions.
20182 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
20183 to use altivec memory instructions, even on VSX.
20184 (vector_altivec_store_<mode>): Ditto.
20186 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
20189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20190 V2DF, V2DI support to load/store overloaded builtins.
20192 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
20193 altivec load/store builtins for V2DF/V2DI types.
20195 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20196 set avoid indexed addresses on power6 if -maltivec.
20197 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
20198 vector_altivec_load/vector_altivec_store builtins.
20199 (altivec_expand_st_builtin): Ditto.
20200 (altivec_expand_builtin): Add VSX memory builtins.
20201 (rs6000_init_builtins): Add V2DI types to internal types.
20202 (altivec_init_builtins): Add support for V2DF/V2DI altivec
20203 load/store builtins.
20204 (rs6000_address_for_altivec): Insure memory address is appropriate
20207 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
20208 vec_vsx_ld and vec_vsx_st.
20209 (vsx_store_<mode>): Ditto.
20211 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
20212 variables to hold long long types for VSX vector memory builtins.
20213 (RS6000_BTI_unsigned_long_long): Ditto.
20214 (long_long_integer_type_internal_node): Ditti.
20215 (long_long_unsigned_type_internal_node): Ditti.
20217 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
20218 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
20219 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
20221 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
20223 (vec_vsx_st): Ditto.
20225 2011-02-02 Joseph Myers <joseph@codesourcery.com>
20227 * config/pa/pa-hpux10.opt: New.
20228 * config/hpux11.opt (pthread): New Driver option.
20229 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
20230 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
20232 2011-02-02 Joseph Myers <joseph@codesourcery.com>
20234 * config/ia64/vms.opt: New.
20235 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
20237 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20240 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
20241 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
20242 generator functions.
20243 (vsx_floatuns<VSi><mode>2): Ditto.
20244 (vsx_fix_trunc<mode><VSi>2): Ditto.
20245 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
20247 2011-02-02 Joseph Myers <joseph@codesourcery.com>
20249 * config/i386/djgpp.opt (posix): New Driver option.
20251 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
20253 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
20254 Move to the unsupported targets list.
20256 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
20258 PR rtl-optimization/47525
20259 * df-scan.c: Update copyright years.
20260 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
20261 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
20263 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20265 * config/i386/sysv4.h (TARGET_VERSION): Remove.
20266 (SUBTARGET_RETURN_IN_MEMORY): Remove.
20267 (ASM_OUTPUT_ASCII): Remove.
20268 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
20270 2011-02-02 Jeff Law <law@redhat.com>
20272 PR middle-end/47543
20273 * reload.c (find_reloads_address): Handle reg+d address where both
20274 components are invalid by reloading the entire address.
20276 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
20277 Richard Guenther <rguenther@suse.de>
20279 PR tree-optimization/40979
20281 * passes.c (init_optimization_passes): After LIM call copy_prop
20282 and DCE to clean up.
20283 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
20285 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
20287 PR tree-optimization/47576
20288 PR tree-optimization/47555
20289 * doc/invoke.texi (scev-max-expr-complexity): Documented.
20290 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20291 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
20292 * tree-scalar-evolution.c (follow_ssa_edge): Use
20293 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
20295 2011-02-02 Richard Guenther <rguenther@suse.de>
20297 PR tree-optimization/47566
20298 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
20300 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
20304 * tree-inline.c (declare_return_variable): Remove unused caller
20309 * tree-flow-inline.h (clear_is_used, is_used_p): New.
20310 * cfgexpand.c (account_used_vars_for_block): Use them.
20311 * tree-nrv.c (tree_nrv): Likewise.
20312 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
20313 (dump_scope_block): Likewise.
20314 (remove_unused_locals): Likewise.
20318 * tree-inline.c (declare_return_variable): Add result decl to
20319 local decls only once.
20320 * gimple-low.c (record_vars_into): Mark newly-created variables
20323 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
20329 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20331 (no_real_insns_p, schedule_block, set_priorities): Drop special
20332 treatment of boundary debug insns.
20333 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20334 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
20335 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20336 (BOUNDARY_DEBUG_INSN_P): Likewise.
20337 (SCHEDULE_DEBUG_INSN_P): Likewise.
20338 * sched-rgn.c (init_ready_list): Drop special treatment of
20339 boundary debug insns.
20340 * final.c (rest_of_clean_state): Clear notes' BB.
20342 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20344 * config/openbsd.opt (assert=): New Driver option.
20346 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20348 * config/i386/nto.opt: New.
20349 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
20351 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20353 * config/i386/netware.opt: New.
20354 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
20356 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20358 * config/interix.opt (posix): New Driver option.
20360 2011-02-01 DJ Delorie <dj@redhat.com>
20362 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
20364 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
20367 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
20369 PR tree-optimization/47561
20370 * toplev.c (process_options): Print the Graphite flags. Add
20371 flag_loop_flatten to the list of options requiring Graphite.
20373 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20375 * config/i386/cygming.opt (posix): New Driver option.
20377 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20379 * config/arm/vxworks.opt: New.
20380 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
20382 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20384 * config/alpha/elf.opt: New.
20385 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
20386 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
20388 2011-02-01 Richard Guenther <rguenther@suse.de>
20390 PR tree-optimization/47559
20391 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
20392 store-motion on references that can throw.
20394 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
20396 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
20397 * tree-pass.h (TDF_CSELIB): New macro.
20398 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
20399 cselib_lookup): Check for it rather than for TDF_DETAILS.
20401 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
20404 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
20405 is HOST_BIT_BUCKET.
20407 * opts.c (finish_options): Don't add x_aux_base_name if it is
20410 2011-02-01 Richard Guenther <rguenther@suse.de>
20412 PR tree-optimization/47555
20414 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
20416 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20418 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
20421 * config/lm32/t-lm32: Add multilib for all CPU options.
20423 2011-02-01 Richard Guenther <rguenther@suse.de>
20425 PR tree-optimization/47541
20426 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
20427 sure to have a field at offset zero.
20429 2011-01-31 Joseph Myers <joseph@codesourcery.com>
20431 * config/arc/arc.opt (EB, EL): New Driver options.
20433 2011-01-31 Joseph Myers <joseph@codesourcery.com>
20435 * config/alpha/osf5.opt: New.
20436 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
20438 2011-01-31 Joseph Myers <joseph@codesourcery.com>
20440 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
20442 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
20444 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
20445 -floop-interchange.
20446 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
20447 is an alias of -floop-interchange and that it requires the
20448 Graphite infrastructure.
20449 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
20450 flag_loop_interchange based on the value of flag_tree_loop_linear.
20452 2011-01-31 Jakub Jelinek <jakub@redhat.com>
20453 Richard Guenther <rguenther@suse.de>
20455 PR tree-optimization/47538
20456 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
20457 type instead of r1type, except for comparisons. For right
20458 shifts and comparisons punt if there are mismatches in
20459 sizetype vs. non-sizetype types.
20461 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20463 * doc/sourcebuild.texi (Effective-Target Keywords): Document
20466 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20468 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
20470 * configure: Regenerate.
20472 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20474 * configure.ac (gcc_cv_ld_static_option): Define.
20475 (gcc_cv_ld_dynamic_option): Define.
20476 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
20478 (HAVE_LD_STATIC_DYNAMIC): Update message.
20479 (LD_STATIC_OPTION): Define.
20480 (LD_DYNAMIC_OPTION): Define.
20481 * configure: Regenerate.
20482 * config.in: Regenerate.
20483 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
20484 HAVE_LD_STATIC_DYNAMIC]: Use them.
20486 2011-01-31 Nick Clifton <nickc@redhat.com>
20488 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
20489 registers inside interrupt handlers if the handler is not a leaf
20492 2011-01-31 Nick Clifton <nickc@redhat.com>
20494 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20495 reg_renumber returning an INVALID_REGNUM.
20497 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
20500 * doc/install.texi: Document host options discarded when cross
20501 configuring target libraries.
20503 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
20506 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20509 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20511 (no_real_insns_p, schedule_block, set_priorities): Drop special
20512 treatment of boundary debug insns.
20513 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20514 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20515 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20516 (BOUNDARY_DEBUG_INSN_P): Likewise.
20517 (SCHEDULE_DEBUG_INSN_P): Likewise.
20518 * sched-rgn.c (init_ready_list): Drop special treatment of
20519 boundary debug insns.
20520 * final.c (rest_of_clean-state): Clear notes' BB.
20522 2011-01-31 Alan Modra <amodra@gmail.com>
20524 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20525 toc relative expressions as we do in print_operand_address.
20527 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
20529 * doc/extend.texi: Follow spelling conventions.
20530 * doc/invoke.texi: Fix a typo.
20532 2011-01-30 Joseph Myers <joseph@codesourcery.com>
20534 * config/hpux11.opt: New.
20535 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20536 ia64*-*-hpux*): Use hpux11.opt.
20538 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
20540 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20543 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20545 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20548 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20550 * doc/install.texi (Binaries): Remove outdated reference for
20551 Motorola 68HC11/68HC12 downloads.
20553 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20555 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20558 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
20561 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20564 2011-01-28 Ahmad Sharif <asharif@google.com>
20566 * value-prof.c (check_counter): Corrected error message.
20568 2011-01-29 Jie Zhang <jie@codesourcery.com>
20570 * config/arm/arm.c (arm_legitimize_reload_address): New.
20571 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20572 arm_legitimize_reload_address.
20573 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20575 2011-01-28 Ian Lance Taylor <iant@google.com>
20577 * godump.c (go_define): Ignore macros whose definitions include
20578 two adjacent operands.
20580 2011-01-28 Jakub Jelinek <jakub@redhat.com>
20583 * varasm.c (force_const_mem): Store copy of x in desc->constant
20584 instead of x itself.
20585 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20586 itself into REG_EQUAL note.
20588 2011-01-28 Joseph Myers <joseph@codesourcery.com>
20590 * config/freebsd.opt (posix, rdynamic): New Driver options.
20592 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20594 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20595 -Bstatic/-Bdynamic.
20596 * configure: Regenerate.
20598 2011-01-27 Joseph Myers <joseph@codesourcery.com>
20600 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20601 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20603 2011-01-27 Anatoly Sokolov <aesok@post.ru>
20605 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20606 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20607 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20608 (s390_preferred_reload_class): Make static. Change return and
20609 'rclass' argument type to reg_class_t.
20611 2011-01-27 Jan Hubicka <jh@suse.cz>
20613 PR middle-end/46949
20614 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20615 (process_function_and_variable_attributes): Check defined weakrefs.
20617 2011-01-27 Martin Jambor <mjambor@suse.cz>
20619 PR tree-optimization/47228
20620 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20621 build_ref_for_offset.
20623 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20625 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20627 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
20629 PR rtl-optimization/46856
20630 * postreload.c (reload_combine_recognize_const_pattern): Do not
20631 separate cc0 setter and user on cc0 targets.
20633 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20636 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20637 passed a VOID_TYPE expression, immediately emit an error and
20638 return error_mark_node.
20640 2011-01-26 Jeff Law <law@redhat.com>
20642 PR rtl-optimization/47464
20643 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20644 rather than may_trap_p as needed.
20646 2011-01-26 DJ Delorie <dj@redhat.com>
20648 PR rtl-optimization/46878
20649 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20650 setter/user dependency as well.
20652 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20654 PR rtl-optimization/44469
20655 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20656 after removing trivially dead basic blocks.
20658 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20660 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20661 * config/frv/frv.h (LINK_SPEC): Likewise.
20662 * config/i386/netware.h (LINK_SPEC): Likewise.
20663 * config/m68k/linux.h (ASM_SPEC): Likewise.
20664 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20665 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20666 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20667 * config/sparc/linux.h (ASM_SPEC): Likewise.
20668 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20669 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20671 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20673 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20674 * config/frv/frv.h (ASM_SPEC): Likewise.
20675 * config/m68k/linux.h (ASM_SPEC): Likewise.
20676 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20677 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20678 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20679 * config/sparc/linux.h (ASM_SPEC): Likewise.
20680 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20681 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20683 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20685 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20686 * config/frv/frv.h (LINK_SPEC): Likewise.
20687 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20689 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20691 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20692 * config/frv/frv.h (ASM_SPEC): Likewise.
20693 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20694 * config/m68k/linux.h (ASM_SPEC): Likewise.
20695 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20696 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20697 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20698 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20699 * config/sparc/linux.h (ASM_SPEC): Likewise.
20700 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20701 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20702 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20704 2011-01-26 Steve Ellcey <sje@cup.hp.com>
20707 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20709 (vec_extract_evenodd_help): Ditto.
20710 (vec_extract_evenv4hi): Ditto.
20711 (vec_extract_oddv4hi): Ditto.
20712 (vec_interleave_lowv2si): Ditto.
20713 (vec_interleave_highv2si): Ditto.
20714 (vec_extract_evenv2si): Ditto.
20715 (vec_extract_oddv2si: Ditto.
20716 (vec_pack_trunc_v2si): Ditto.
20718 2011-01-22 Jan Hubicka <jh@suse.cz>
20721 * cgraph.h (cgraph_local_info): New field can_change_signature.
20722 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20723 signature can change.
20724 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20726 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20727 (cgraph_function_versioning): We can not change signature of functions
20728 that don't allow that.
20729 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20730 (lto_input_node): Likewise.
20731 * ipa-inline.c (compute_inline_parameters): Compute
20732 local.can_change_signature.
20733 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20734 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20735 functions that can not change signature.
20736 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20737 init_cumulative_args): Do not use local calling conventions
20738 for functions that can not change signature.
20740 2011-01-22 Jan Hubicka <jh@suse.cz>
20742 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20744 2011-01-26 Richard Guenther <rguenther@suse.de>
20746 PR tree-optimization/47190
20747 * cgraphunit.c (process_common_attributes): New function.
20748 (process_function_and_variable_attributes): Use it.
20750 2011-01-26 Richard Guenther <rguenther@suse.de>
20753 * cgraphbuild.c (record_eh_tables): Record reference to personality
20756 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
20759 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20760 non-debug insns from moving up.
20762 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20765 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20766 t-dlldir{,-x} fragment for build and add it to tmake_file.
20767 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20768 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20769 * config/i386/t-dlldir: New file.
20770 (SHLIB_DLLDIR): Define.
20771 * config/i386/t-dlldir-x: New file.
20772 (SHLIB_DLLDIR): Define.
20773 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20774 (SHLIB_INSTALL): Use it.
20776 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20779 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20780 lower bound of the allowed Thumb-2 coprocessor load/store
20781 index range to -256. Add explaining comment.
20783 2011-01-25 Ian Lance Taylor <iant@google.com>
20785 * godump.c (go_define): Improve lexing of macro expansion to only
20786 accept expressions which match Go spec.
20788 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20791 * tree.c (handle_dll_attribute): Handle it.
20792 * doc/extend.texi (@item dllexport): Mention it.
20793 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20795 2011-01-25 Ian Lance Taylor <iant@google.com>
20797 PR tree-optimization/26854
20798 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20799 (decl_jump_unsafe): Move higher in file, with no other change.
20800 (bind): Set has_jump_unsafe_decl if appropriate.
20801 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20802 (check_earlier_gotos): Likewise.
20803 (c_check_switch_jump_warnings): Likewise.
20805 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20807 * doc/invoke.texi (Warning Options): Add missing hyphen.
20808 (-fprofile-dir): Minor grammatical fixes.
20809 (-fbranch-probabilities): Likewise.
20811 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20815 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20817 (no_real_insns_p, schedule_block, set_priorities): Drop special
20818 treatment of boundary debug insns.
20819 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20820 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20821 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20822 (BOUNDARY_DEBUG_INSN_P): Likewise.
20823 (SCHEDULE_DEBUG_INSN_P): Likewise.
20824 * sched-rgn.c (init_ready_list): Drop special treatment of
20825 boundary debug insns.
20826 * final.c (rest_of_clean-state): Clear notes' BB.
20828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20830 * Makefile.in (LAMBDA_H): Removed.
20831 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20832 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20833 lambda-trans.o, and tree-loop-linear.o.
20834 (lto-symtab.o): Remove dependence on LAMBDA_H.
20835 (tree-loop-linear.o): Remove rule.
20836 (lambda-mat.o): Same.
20837 (lambda-trans.o): Same.
20838 (lambda-code.o): Same.
20839 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20840 (tree-vect-slp.o): Same.
20841 * hwint.h (gcd): Moved here.
20842 (least_common_multiple): Same.
20843 * lambda-code.c: Removed.
20844 * lambda-mat.c: Removed.
20845 * lambda-trans.c: Removed.
20846 * lambda.h: Removed.
20847 * tree-loop-linear.c: Removed.
20848 * lto-symtab.c: Do not include lambda.h.
20849 * omega.c (gcd): Removed.
20850 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20851 * tree-data-ref.c (print_lambda_vector): Moved here.
20852 (lambda_vector_copy): Same.
20853 (lambda_matrix_copy): Same.
20854 (lambda_matrix_id): Same.
20855 (lambda_vector_first_nz): Same.
20856 (lambda_matrix_row_add): Same.
20857 (lambda_matrix_row_exchange): Same.
20858 (lambda_vector_mult_const): Same.
20859 (lambda_vector_negate): Same.
20860 (lambda_matrix_row_negate): Same.
20861 (lambda_vector_equal): Same.
20862 (lambda_matrix_right_hermite): Same.
20863 * tree-data-ref.h: Do not include lambda.h.
20864 (lambda_vector): Moved here.
20865 (lambda_matrix): Same.
20866 (dependence_level): Same.
20867 (lambda_transform_legal_p): Removed declaration.
20868 (lambda_collect_parameters): Same.
20869 (lambda_compute_access_matrices): Same.
20870 (lambda_vector_gcd): Same.
20871 (lambda_vector_new): Same.
20872 (lambda_vector_clear): Same.
20873 (lambda_vector_lexico_pos): Same.
20874 (lambda_vector_zerop): Same.
20875 (lambda_matrix_new): Same.
20876 * tree-flow.h (least_common_multiple): Removed declaration.
20877 * tree-parloops.c (lambda_trans_matrix): Moved here.
20878 (LTM_MATRIX): Same.
20879 (LTM_ROWSIZE): Same.
20880 (LTM_COLSIZE): Same.
20881 (LTM_DENOMINATOR): Same.
20882 (lambda_trans_matrix_new): Same.
20883 (lambda_matrix_vector_mult): Same.
20884 (lambda_transform_legal_p): Same.
20885 * tree-pass.h (pass_linear_transform): Removed declaration.
20886 * tree-ssa-loop.c (tree_linear_transform): Removed.
20887 (gate_tree_linear_transform): Removed.
20888 (pass_linear_transform): Removed.
20889 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20890 flag_loop_interchange.
20892 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20894 PR tree-optimization/47265
20895 PR tree-optimization/47443
20896 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20897 if name still has some uses.
20899 2011-01-25 Martin Jambor <mjambor@suse.cz>
20901 PR tree-optimization/47382
20902 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20903 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20905 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
20907 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20908 sjlj_except_unwind_info.
20910 2011-01-25 Richard Guenther <rguenther@suse.de>
20912 PR tree-optimization/47426
20913 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20914 visible functions results escape.
20916 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20919 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20920 (arm_get_frame_offsets): Use it.
20922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20923 Jakub Jelinek <jakub@redhat.com>
20925 PR tree-optimization/47271
20926 * tree-if-conv.c (bb_postdominates_preds): New.
20927 (if_convertible_bb_p): Call bb_postdominates_preds.
20928 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20929 (predicate_scalar_phi): Call bb_postdominates_preds.
20931 2011-01-25 Nick Clifton <nickc@redhat.com>
20933 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20934 * config/rx/rx.c (rx_function_value): Likewise.
20935 (rx_promote_function_mode): Likewise.
20936 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20937 in order to make it legitimate.
20938 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20939 make sure that the first operand is the same as the result register.
20940 (addsi3_unspec): Delete.
20941 (subdi3): Do not accept immediate operands.
20942 (subdi3_internal): Likewise.
20944 2011-01-25 Jeff Law <law@redhat.com>
20946 PR rtl-optimization/37273
20947 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20948 handle them like argument loads from stack slots. Do not double
20949 count memory for memory constants and argument loads from stack slots.
20951 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20953 PR tree-optimization/47427
20954 PR tree-optimization/47428
20955 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20956 coalesce if the new root var would be TREE_READONLY.
20958 2011-01-25 Richard Guenther <rguenther@suse.de>
20960 PR middle-end/47414
20961 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20962 correct type for TBAA.
20964 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20966 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20967 (close_phi_written_to_memory): Call for_each_index with
20968 dr_indices_valid_in_loop.
20970 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20972 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20973 when it is initialized.
20975 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20977 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20978 call to graphite_find_data_references_in_stmt.
20979 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20980 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20981 call to graphite_find_data_references_in_stmt.
20982 (analyze_drs_in_stmts): Same.
20983 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20984 in which the scalar analysis of indices is performed.
20985 (create_data_ref): Same. Update call to dr_analyze_indices.
20986 (find_data_references_in_stmt): Update call to create_data_ref.
20987 (graphite_find_data_references_in_stmt): Same.
20988 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20990 (create_data_ref): Same.
20991 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20992 call to create_data_ref.
20994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20996 * graphite-sese-to-poly.c (build_poly_scop): Move
20997 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20999 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21001 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
21002 VAR_DECL, PARM_DECL, and RESULT_DECL.
21004 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21006 * graphite-dependences.c (reduction_dr_1): Allow several reductions
21007 in a reduction PBB.
21008 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
21009 that have already been marked as PBB_IS_REDUCTION.
21011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21013 * graphite-scop-detection.c (same_close_phi_node): New.
21014 (remove_duplicate_close_phi): New.
21015 (make_close_phi_nodes_unique): New.
21016 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
21018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21020 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
21021 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
21022 of both data references to be the same.
21024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21026 * graphite-dependences.c (build_lexicographical_constraint): Remove
21027 the gdim parameter.
21028 (build_lexicographical_constraint): Adjust call to
21029 ppl_powerset_is_empty.
21030 (dependence_polyhedron): Same.
21031 (graphite_legal_transform_dr): Same.
21032 (graphite_carried_dependence_level_k): Same.
21033 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
21035 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
21037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21039 * graphite-sese-to-poly.c
21040 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
21041 (close_phi_written_to_memory): New.
21042 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
21045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21047 * doc/install.texi: Update the expected version number of PPL to 0.11.
21048 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
21049 #if PPL_VERSION_MINOR < 11.
21051 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21053 * graphite-dependences.c: Include graphite-cloog-util.h.
21054 (new_poly_ddr): Inlined into dependence_polyhedron.
21055 (free_poly_ddr): Moved close by new_poly_ddr.
21056 (dependence_polyhedron_1): Renamed dependence_polyhedron.
21057 Early return NULL when ppl_powerset_is_empty returns true.
21058 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
21059 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
21060 (graphite_legal_transform_dr): Call new_poly_ddr.
21061 (graphite_carried_dependence_level_k): Same.
21062 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
21063 (dot_transformed_deps_stmt_1): Removed.
21064 (dot_deps_stmt_1): Call dot_deps_stmt_2.
21065 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
21066 (dot_deps_1): Call dot_deps_2.
21067 * Makefile.in (graphite-dependences.o): Add missing dependence on
21068 graphite-cloog-util.h.
21070 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21072 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
21073 (build_lexicographical_constraint): Same.
21074 (dependence_polyhedron_1): Same.
21075 (graphite_legal_transform_dr): Same.
21076 (graphite_carried_dependence_level_k): Same.
21077 * graphite-ppl.c (ppl_powerset_is_empty): New.
21078 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
21079 * tree-data-ref.c (dump_data_reference): Print the basic block index.
21081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21083 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
21084 the "a followed by b" relation and document it.
21086 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21088 * graphite-dependences.c (build_lexicographical_constraint): Stop the
21089 iteration when the bag of constraints is empty.
21091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21093 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
21095 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21097 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
21098 nest and two loop depths as parameters.
21099 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
21100 lst_perfect_nestify.
21102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21104 * graphite-dependences.c (print_pddr): Call
21105 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
21107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21109 * graphite-ppl.c (debug_gmp_value): New.
21110 * graphite-ppl.h (debug_gmp_value): Declared.
21112 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
21114 * doc/install.texi: Document availability of cloog-0.16.
21116 2011-01-25 Vladimir Kargov <kargov@gmail.com>
21118 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
21119 invalid postdominance info.
21121 2011-01-24 Jan Hubicka <jh@suse.cz>
21124 * doc/extend.texi (weak pragma): Drop claim that it must
21125 appear before definition.
21126 * varasm.c (merge_weak, declare_weak): Only sanity check
21127 that DECL is not output at a time it is declared weak.
21129 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
21131 * machmode.def: Fixed comments.
21133 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
21135 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
21137 2011-01-24 Paul Koning <ni1d@arrl.net>
21139 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
21142 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
21145 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
21146 (block_info): Add scanned and prev.
21147 (move_or_delete_vzeroupper_2): Return if the basic block
21148 has been scanned and the upper 128bit state is unchanged
21149 from the last scan.
21150 (move_or_delete_vzeroupper_1): Return true if the exit
21152 (move_or_delete_vzeroupper): Visit basic blocks using the
21153 work-list based algorithm based on vt_find_locations in
21156 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
21158 2011-01-24 Nick Clifton <nickc@redhat.com>
21160 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
21161 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
21162 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
21163 then define __v850e1__.
21164 * doc/invoke.texi: Document -mv850es.
21166 2011-01-24 Richard Henderson <rth@redhat.com>
21168 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
21169 compound unordered comparisons.
21170 * config/rx/rx.c (rx_split_fp_compare): Remove.
21171 * config/rx/rx-protos.h: Update.
21172 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
21173 (cbranchsf4): Don't call rx_split_fp_compare.
21174 (*cbranchsf4): Use rx_split_cbranch.
21175 (*cmpsf): Don't accept "i" constraint.
21176 (*conditional_branch): Only valid after reload.
21177 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
21179 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21182 * config/rs6000/altivec.md (vector constant splitters): Add
21183 support for creating vector single precision constants if -mvsx is
21184 used and we would create the constant using Altivec primitives.
21186 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
21187 Richard Sandiford <rdsandiford@googlemail.com>
21189 PR rtl-optimization/47166
21190 * reload1.c (emit_reload_insns): Disable the spill_reg_store
21191 mechanism for PRE_MODIFY and POST_MODIFY.
21192 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
21195 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
21197 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
21199 2011-01-22 Jan Hubicka <jh@suse.cz>
21202 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
21204 2011-01-22 Jan Hubicka <jh@suse.cz>
21206 PR tree-optimization/43884
21208 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
21209 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
21211 2011-01-22 Anatoly Sokolov <aesok@post.ru>
21213 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21214 * config/s390/s390.c (s390_register_move_cost,
21215 s390_memory_move_cost): New.
21216 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
21218 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21220 PR middle-end/47401
21221 * except.c (sjlj_assign_call_site_values): Move setting the
21222 crtl->uses_eh_lsda flag to ...
21223 (sjlj_mark_call_sites): ... here.
21224 (sjlj_emit_function_enter): Support NULL dispatch label.
21225 (sjlj_build_landing_pads): In a function with no landing pads
21226 that still has must-not-throw regions, generate code to register
21227 a personality function with empty LSDA.
21229 2011-01-21 Richard Henderson <rth@redhat.com>
21231 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
21233 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
21235 * compare-elim.c: New file.
21236 * Makefile.in (OBJS-common): Add it.
21237 (compare-elim.o): New.
21238 * common.opt (fcompare-elim): New.
21239 * opts.c (default_options_table): Add OPT_fcompare_elim.
21240 * tree-pass.h (pass_compare_elim_after_reload): New.
21241 * passes.c (init_optimization_passes): Add it.
21242 * recog.h: Protect against re-inclusion.
21243 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
21244 * doc/invoke.texi (-fcompare-elim): Document it.
21245 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
21246 * doc/tm.texi: Rebuild.
21248 2011-01-22 Nick Clifton <nickc@redhat.com>
21250 * config/rx/rx.md (cstoresf4): Pass comparison operator to
21251 rx_split_fp_compare.
21253 2011-01-22 Nick Clifton <nickc@redhat.com>
21255 * config/rx/rx.md (UNSPEC_CONST): New.
21256 (deallocate_and_return): Wrap the amount popped off the stack in
21257 an UNSPEC_CONST in order to stop it being rejected by
21258 -mmax-constant-size.
21259 (pop_and_return): Add a "(return)" rtx.
21260 (call): Drop the immediate operand.
21261 (call_internal): Likewise.
21262 (call_value): Likewise.
21263 (call_value_internal): Likewise.
21264 (sibcall_internal): Likewise.
21265 (sibcall_value_internal): Likewise.
21266 (sibcall): Likewise. Generate an explicit call using
21268 (sibcall_value): Likewise.
21269 (mov<>): FAIL if a constant operand is not legitimate.
21270 (addsi3_unpsec): New pattern.
21272 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
21273 (ok_for_max_constant): New function.
21274 (gen_safe_add): New function.
21275 (rx_expand_prologue): Use gen_safe_add.
21276 (rx_expand_epilogue): Likewise.
21277 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
21280 2011-01-21 Jeff Law <law@redhat.com>
21282 PR tree-optimization/47053
21283 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
21284 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
21285 statements are deleted.
21286 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
21287 is nonempty, then purge dead edges and cleanup the CFG.
21289 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21292 Temporarily revert:
21293 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21295 * tree-dfa.c (create_var_ann): Mark variable as used.
21297 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21299 PR middle-end/45566
21300 * except.c (convert_to_eh_region_ranges): Emit queued no-region
21301 notes from other section in hot/cold partitioning even if
21302 last_action is -3. Increment call_site_base.
21304 PR rtl-optimization/47366
21305 * fwprop.c (forward_propagate_into): Return bool. If
21306 any changes are made, -fnon-call-exceptions is used and
21307 REG_EH_REGION note is present, call purge_dead_edges
21308 and return true if it purged anything.
21309 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
21310 any EH edges were purged.
21312 2011-01-21 Jeff Law <law@redhat.com>
21314 PR rtl-optimization/41619
21315 * caller-save.c (setup_save_areas): Break out code to determine
21316 which hard regs are live across calls by examining the reload chains
21317 so that it is always used.
21318 Eliminate code which checked REG_N_CALLS_CROSSED.
21320 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21322 PR tree-optimization/47355
21323 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
21324 NOP has non-debug uses beyond PHIs in new_bb.
21326 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21329 * cfgexpand.c (account_used_vars_for_block): Only account vars
21330 that are annotated as used.
21331 (estimated_stack_frame_size): Don't set TREE_USED.
21332 * tree-dfa.c (create_var_ann): Mark variable as used.
21334 2011-01-21 Richard Guenther <rguenther@suse.de>
21336 PR middle-end/47395
21337 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
21339 2011-01-21 Richard Guenther <rguenther@suse.de>
21341 PR tree-optimization/47365
21342 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
21343 (vn_reference_lookup_pieces): Adjust.
21344 (vn_reference_lookup): Likewise.
21345 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
21346 (vn_reference_lookup_3): Only look through kills if in
21347 VN_WALKREWRITE mode.
21348 (vn_reference_lookup_pieces): Adjust.
21349 (vn_reference_lookup): Likewise.
21350 (visit_reference_op_load): Likewise.
21351 (visit_reference_op_store): Likewise.
21352 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
21353 (compute_avail): Likewise.
21354 (eliminate): Likewise.
21356 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21358 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
21359 DECL_IGNORED_P non-reg vars if they are used.
21361 PR tree-optimization/47391
21362 * varpool.c (const_value_known_p): Return false if
21365 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
21368 * config/i386/i386.c (ix86_local_alignment): Handle
21369 case for va_list_type_node is nil.
21370 (ix86_canonical_va_list_type): Likewise.
21372 2011-01-21 Alan Modra <amodra@gmail.com>
21374 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
21375 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
21377 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21379 * config/arm/arm.md (define_attr type): Rename f_load
21380 and f_store to f_fpa_load and f_fpa_store. Update.
21381 (write_conflict): Deal with rename fallout.
21382 (*push_fp_multi): Likewise.
21383 * config/arm/fpa.md (f_load): Use f_fpa_load.
21384 (f_store): Use f_fpa_store.
21385 (*movsf_fpa): Likewise.
21386 (*movdf_fpa): Likewise.
21387 (*movxf_fpa): Likewise.
21388 (*thumb2_movsf_fpa): Likewise.
21389 (*thumb2_movdf_fpa): Likewise.
21390 (*thumb2_movxf_fpa): Likewise.
21391 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
21392 f_loadd and f_stored.
21393 (*thumb2_movdi_vfp): Likewise.
21394 (*thumb2_movsf_vfp): Fix attribute to f_loads.
21395 (*thumb2_movsi_vfp): Likewise.
21396 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
21397 Use f_loads instead of f_load.
21398 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
21400 2011-01-20 Anatoly Sokolov <aesok@post.ru>
21402 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21403 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
21404 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21405 (xtensa_mode_dependent_address_p): New function.
21406 (constantpool_address_p): Make static. Change return type to bool.
21407 Change argument type to const_rtx. Use CONST_INT_P predicate.
21409 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
21412 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
21414 2011-01-20 Jakub Jelinek <jakub@redhat.com>
21417 * cfgexpand.c (expand_debug_expr): Instead of generating
21418 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
21421 2011-01-20 Richard Guenther <rguenther@suse.de>
21423 PR middle-end/47370
21424 * tree-inline.c (remap_gimple_op_r): Recurse manually for
21425 the pointer operand of MEM_REFs.
21427 2011-01-20 Jakub Jelinek <jakub@redhat.com>
21429 PR tree-optimization/46130
21430 * ipa-split.c (consider_split): If return_bb contains non-virtual
21431 PHIs other than for retval or if split_function would not adjust it,
21434 2011-01-20 Richard Guenther <rguenther@suse.de>
21436 PR tree-optimization/47167
21437 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21438 Revert previous change, only avoid enumeral type changes.
21440 2011-01-19 Mike Stump <mikestump@comcast.net>
21442 * doc/tm.texi.in (BRANCH_COST): Englishify.
21443 * doc/tm.texi (BRANCH_COST): Likewise.
21445 2011-01-19 Dodji Seketeli <dodji@redhat.com>
21448 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
21449 (gen_scheduled_generic_parms_dies): New functions.
21450 (gen_struct_or_union_type_die): Schedule template parameters DIEs
21451 generation for the end of CU compilation.
21452 (dwarf2out_finish): Generate template parameters DIEs here.
21454 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
21457 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
21458 debug bind stmt on merge edges.
21460 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
21464 * function.c (instantiate_expr): Instantiate incoming rtl of
21465 implicit arguments, and recurse on VALUE_EXPRs.
21466 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
21467 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
21469 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
21471 * c-parser.c (c_parser_for_statement): Initialize
21472 collection_expression.
21474 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21476 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
21478 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21480 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
21481 (LINK_SHLIB_SPEC): Don't use %(link_path).
21482 (SUBTARGET_EXTRA_SPECS): Remove link_path.
21484 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21486 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
21487 (NO_SHARED_LIB_SUPPORT): Remove.
21488 (LINK_SHLIB_SPEC): Remove one conditional definition.
21490 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21492 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21494 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21495 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21496 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21497 %{call_shared} and conditionals on these options not being passed.
21498 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21501 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21503 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21506 * ipa-split.c: Spelling fixes.
21508 2011-01-19 Richard Henderson <rth@redhat.com>
21510 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21511 (*mulsi3): Likewise.
21513 * longlong.h [__mn10300__] (count_leading_zeros): New.
21514 [__mn10300__] (umul_ppmm, smul_ppmm): New.
21515 [__mn10300__] (add_ssaaaa, subddmmss): New.
21516 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21517 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21519 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21521 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21523 2011-01-19 Richard Henderson <rth@redhat.com>
21525 * config/mn10300/mn10300.md (addsi3_flags): New.
21526 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21527 (subsi3_flags, subc_internal, subdi3): New.
21528 (subdi3_internal, *subdi3_degenerate): New.
21529 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21531 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21532 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21533 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
21534 * config/mn10300/mn10300-protos.h: Update.
21535 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21536 (return_ret): Likewise. Rename from return_internal_regs.
21537 (return_internal): Remove.
21539 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21540 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21541 (mn10300_legitimate_constant_p): Likewise.
21542 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21543 (mn10300_frame_size): New.
21544 (mn10300_expand_prologue): Use it.
21545 (mn10300_expand_epilogue): Likewise.
21546 (mn10300_initial_offset): Likewise.
21547 * config/mn10300/mn10300-protos.h: Update.
21548 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21549 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21550 (prologue, epilogue, return_internal): Tidy output code.
21551 (mn10300_store_multiple_operation, return): Likewise.
21552 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21553 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21554 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21555 (load_pic, am33_load_pic): New.
21556 (mn10300_load_pic0, mn10300_load_pic1): New.
21558 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21559 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21560 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21561 (cc_flags_for_mode, cc_flags_for_code): New.
21562 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21563 overflow flag is not valid. Validate that the flags we need
21564 for the comparison are valid.
21565 (mn10300_output_cmp): Remove.
21566 (mn10300_output_add): New.
21567 (mn10300_select_cc_mode): Use cc_flags_for_code.
21568 (mn10300_split_cbranch): New.
21569 (mn10300_match_ccmode): New.
21570 (mn10300_split_and_operand_count): New.
21571 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21573 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21574 (addsi3): ... here. Use mn10300_output_add.
21575 (*addsi3_flags): New.
21576 (*am33_subsi3, *mn10300_subsi3): Merge...
21577 (subsi3): ... here. Use attribute isa.
21578 (*subsi3_flags): New.
21579 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
21581 (*am33_andsi3, *mn10300_andsi3): Merge...
21582 (andsi3): ... here.
21583 (*andsi3_flags): New.
21584 (andsi3 splitters): New.
21585 (*am33_iorsi3, *mn10300_iorsi3): Merge...
21586 (iorsi3): ... here.
21587 (*iorsi3_flags): New.
21588 (*am33_xorsi3, *mn10300_xorsi3): Merge...
21589 (xorsi3): ... here.
21590 (*xorsi3_flags): New.
21591 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21592 (one_cmplsi2): ... here.
21593 (*one_cmplsi2_flags): New.
21594 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
21595 instead of "dax" in constraints. Use mn10300_split_cbranch.
21596 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
21597 use matching constraints to eliminate a self-comparison.
21598 (*integer_conditional_branch): Rename from integer_conditional_branch.
21599 Use int_mode_flags to match CC_REG.
21600 (*cbranchsi4_btst, *btstsi): New.
21601 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
21602 mn10300_split_cbranch.
21603 (*am33_cmpsf): Rename from am33_cmpsf.
21604 (*float_conditional_branch): Rename from float_conditional_branch.
21605 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21606 (zero_extendqisi2): ... here.
21607 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21608 (zero_extendhisi2): ... here.
21609 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21610 (extendqisi2): ... here.
21611 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21612 (extendhisi2): ... here.
21613 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21614 (ashlsi3): ... here.
21615 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21616 (lshrsi3): ... here.
21617 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21618 (ashrsi3): ... here.
21619 (consecutive add peephole): Remove.
21620 * config/mn10300/predicates.md (label_ref_operand): New.
21621 (int_mode_flags): New.
21622 (CCZN_comparison_operator): New.
21624 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21625 (throughput_42_latency_43): New reservation.
21626 (mulsidi3, umulsidi3): New expanders.
21627 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21628 the MDR register to allocation; separately allocate the low and
21629 high parts of the DImode result.
21630 (umulsidi3_internal): Similarly.
21631 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21632 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21633 (udivsi3, umodsi3): Remove.
21634 (udivmodsi4, divmodsi4): New expanders.
21635 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21636 (*divmodsi4): Simiarly.
21637 (ext_internal): New.
21639 * config/mn10300/constraints.md ("z"): New constraint.
21640 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21641 (FIXED_REGISTERS): Don't fix MDR.
21642 (CALL_USED_REGSITERS): Reformat nicely.
21643 (REG_ALLOC_ORDER): Add MDR.
21644 (enum regclass): Add MDR_REGS.
21645 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21646 (IRA_COVER_CLASSES): Add MDR_REGS.
21647 (REGNO_REG_CLASS): Handle MDR_REG.
21648 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21649 (mn10300_register_move_cost): Likewise.
21650 * config/mn10300/mn10300.md (MDR_REG): New.
21651 (*movsi_internal): Handle moves to/from MDR_REGS.
21653 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21655 (mn10300_secondary_reload): Tidy combination reload classes.
21656 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21657 addresses for AM33. Allow symbolic offsets for reg+imm.
21658 (mn10300_regno_in_class_p): New.
21659 (mn10300_legitimize_reload_address): New.
21660 * config/mn10300/mn10300.h (enum reg_class): Remove
21661 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21662 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21663 SP_OR_GENERAL_REGS.
21664 (REG_CLASS_NAMES): Update to match.
21665 (REG_CLASS_CONTENTS): Likewise.
21666 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21667 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21668 (REGNO_IN_RANGE_P): Remove.
21669 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21670 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21671 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21672 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21673 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21674 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21675 (REGNO_GENERAL_P): New.
21676 (HAVE_POST_MODIFY_DISP): New.
21677 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21678 (LEGITIMIZE_RELOAD_ADDRESS): New.
21679 * config/mn10300/mn10300-protos.h: Update.
21681 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21682 DATA_REGS for AM33 stack-pointer destination.
21683 (mn10300_preferred_output_reload_class): Likewise.
21684 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21685 into a form appropriate for ...
21686 (TARGET_SECONDARY_RELOAD): New.
21687 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21688 * config/mn10300/mn10300-protos.h: Update.
21689 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21690 reload_insi; use the "A" constraint for the scratch; handle AM33
21691 moves of sp to non-address registers.
21693 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21694 (*movqi_internal): ... here.
21695 (*am33_movhi, *mn10300_movhi): Merge into...
21696 (*movhi_internal): ... here.
21697 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21698 as the source/destination of moves from/to SP.
21699 (movsf): Only allow for AM33-2.
21700 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21701 any integer constant constraint. Only allow for AM33-2. Tidy
21702 all of the alternative outputs.
21703 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21704 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21706 (udivsi3, umodsi3): New patterns for MN103 only.
21708 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
21710 * doc/tm.texi.in: Spell out that a lack of register class unions
21712 * doc/tm.texi: Regenerate.
21714 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21716 PR rtl-optimization/47337
21717 * dce.c (check_argument_store): New function.
21718 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21720 PR tree-optimization/47290
21721 * tree-eh.c (infinite_empty_loop_p): New function.
21722 (cleanup_empty_eh): Use it.
21724 2011-01-18 Steve Ellcey <sje@cup.hp.com>
21727 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21728 (a64_expand_widen_sum): Ditto.
21729 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21730 (vec_extract_evenodd_help): Ditto.
21731 (vec_extract_evenv4hi): Ditto.
21732 (vec_extract_oddv4hi): Ditto.
21733 (vec_extract_evenv2si): Ditto.
21734 (vec_extract_oddv2si): Ditto.
21735 (vec_extract_evenv2sf): Ditto.
21736 (vec_extract_oddv2sf): Ditto.
21737 (vec_pack_trunc_v4hi: Ditto.
21738 (vec_pack_trunc_v2si): Ditto.
21739 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21740 (vec_interleave_highv8qi): Ditto.
21742 (vec_extract_oddv8qi): Ditto.
21743 (vec_interleave_lowv4hi): Ditto.
21744 (vec_interleave_highv4hi): Ditto.
21745 (vec_interleave_lowv2si): Ditto.
21746 (vec_interleave_highv2si): Ditto.
21748 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21750 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21751 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21752 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21753 (pa_c_mode_for_suffix): New.
21754 (TARGET_EXPAND_BUILTIN): Define.
21755 (TARGET_C_MODE_FOR_SUFFIX): Define.
21756 (pa_builtins): Define.
21757 (pa_init_builtins): Register __float128 type and init new support
21759 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21760 * config/pa/quadlib.c (_U_Qfcopysign): New.
21762 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21764 PR middle-end/46894
21765 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21766 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21769 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21771 PR tree-optimization/47179
21772 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21773 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21775 2011-01-18 Richard Guenther <rguenther@suse.de>
21777 PR rtl-optimization/47216
21778 * emit-rtl.c: Include tree-flow.h.
21779 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21780 of replicating it with different semantics.
21781 * Makefile.in (emit-rtl.o): Adjust.
21783 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21785 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21786 (cortex_a9_dp): Handle neon types correctly.
21788 2011-01-18 Jakub Jelinek <jakub@redhat.com>
21790 PR rtl-optimization/47299
21791 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21792 subtarget. Use normal multiplication if both operands are constants.
21793 * expmed.c (expand_widening_mult): Don't try to optimize constant
21794 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21797 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21799 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21800 spacing after 'e.g.', typos, comma, hyphenation.
21802 2011-01-17 Richard Henderson <rth@redhat.com>
21804 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21805 (rx_restricted_mem_operand): New.
21806 (rx_shift_operand): Use register_operand.
21807 (rx_source_operand, rx_compare_operand): Likewise.
21808 * config/rx/rx.md (addsi3_flags): New expander.
21809 (adddi3): Rewrite as expander.
21810 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21811 (subsi3_flags): New expander.
21812 (subdi3): Rewrite as expander.
21813 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21815 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21816 (rx_init_builtins): Remove sat builtin.
21817 (rx_expand_builtin): Likewise.
21818 * config/rx/rx.md (ssaddsi3): New.
21819 (*sat): Rename from sat. Represent the CC_REG input.
21821 * config/rx/predicates.md (rshift_operator): New.
21822 * config/rx/rx.c (rx_expand_insv): Remove.
21823 * config/rx/rx-protos.h: Update.
21824 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21825 operand to the canonical position.
21826 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21827 (*bitclr, *bitclr_in_memory): Similarly.
21828 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21829 (insv): Retain the zero_extract in the expansion.
21831 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21832 (bswaphi2, bitinvert, revw): Likewise.
21834 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21835 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21836 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21837 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21838 (bitset, bitset_in_memory): Likewise.
21839 (bitinvert, bitinvert_in_memory): Likewise.
21840 (bitclr, bitclr_in_memory): Likewise.
21841 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21842 (rx_strend, rx_cmpstrn): Likewise.
21843 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21844 (bitop peep2 patterns): Remove.
21846 * config/rx/rx.c (rx_match_ccmode): New.
21847 * config/rx/rx-protos.h: Update.
21848 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21849 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21850 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21851 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21852 (fix_truncsfsi2, floatsisf2): Likewise.
21853 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21854 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21855 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21856 (*subsi3_flags, *xorsi3_flags): New.
21858 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21860 * config/rx/rx.c (rx_print_operand): Remove workaround for
21861 unsplit comparison operations.
21863 * config/rx/rx.md (movsicc): Split after reload.
21864 (*movsicc): Merge *movsieq and *movsine via match_operator.
21865 (*stcc): New pattern.
21867 * config/rx/rx.c (rx_float_compare_mode): Remove.
21868 * config/rx/rx.h (rx_float_compare_mode): Remove.
21869 * config/rx/rx.md (cstoresi4): Split after reload.
21870 (*sccc): New pattern.
21872 * config/rx/predicates.md (label_ref_operand): New.
21873 (rx_z_comparison_operator): New.
21874 (rx_zs_comparison_operator): New.
21875 (rx_fp_comparison_operator): New.
21876 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21877 Validate that the flags are set properly for the comparison.
21878 (rx_gen_cond_branch_template): Remove.
21879 (rx_cc_modes_compatible): Remove.
21880 (mode_from_flags): New.
21881 (flags_from_code): Rename from flags_needed_for_conditional.
21882 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21883 (rx_select_cc_mode): Likewise.
21884 (rx_split_fp_compare): New.
21885 (rx_split_cbranch): New.
21886 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21887 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21888 (*cbranchsf4): Similarly.
21889 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21890 match_operator and rx_split_cbranch.
21891 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21892 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21893 (*cmpsi): Rename from cmpsi.
21894 (*tstsi): Rename from tstsi.
21895 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21896 (*conditional_branch): Rename from conditional_branch.
21897 (*reveresed_conditional_branch): Remove.
21898 (b<code>): Remove expander.
21899 * config/rx/rx-protos.h: Update.
21901 * config/rx/rx.c (rx_compare_redundant): Remove.
21902 * config/rx/rx.md (cmpsi): Don't use it.
21903 * config/rx/rx-protos.h: Update.
21905 * config/rx/rx-modes.def (CC_F): New mode.
21906 * config/rx/rx.c (rx_select_cc_mode): New.
21907 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21908 * config/rx/rx-protos.h: Update.
21910 2011-01-17 Richard Henderson <rth@redhat.com>
21912 * except.c (dump_eh_tree): Fix stray ; after for statement.
21914 2011-01-17 Richard Guenther <rguenther@suse.de>
21916 PR tree-optimization/47313
21917 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21918 handling before copying the body. Properly deal with
21919 by-reference result in SSA form.
21921 2011-01-17 Ian Lance Taylor <iant@google.com>
21924 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21925 (struct_value_alias_set): Don't define.
21926 (sparc_option_override): Don't set sparc_sr_alias_set and
21927 struct_value_alias_set.
21928 (save_or_restore_regs): Use gen_frame_mem rather than calling
21930 (sparc_struct_value_rtx): Likewise.
21932 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21935 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21936 (_mm_maskstore_pd): Likewise.
21937 (_mm_maskload_ps): Likewise.
21938 (_mm_maskstore_ps): Likewise.
21939 (_mm256_maskload_pd): Change mask to __m256i.
21940 (_mm256_maskstore_pd): Likewise.
21941 (_mm256_maskload_ps): Likewise.
21942 (_mm256_maskstore_ps): Likewise.
21944 * config/i386/i386-builtin-types.def: Updated.
21945 (ix86_expand_special_args_builtin): Likewise.
21947 * config/i386/i386.c (bdesc_special_args): Update
21948 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21949 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21950 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21951 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21953 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21954 Use <avxpermvecmode> on mask register.
21955 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21957 2011-01-17 Olivier Hainque <hainque@adacore.com>
21958 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21959 Eric Botcazou <ebotcazou@adacore.com>
21962 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21963 if <= USHRT_MAX in 32-bit mode.
21965 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21967 * doc/install.texi (Configuration, Specific): Wrap long
21968 lines in examples. Allow line wrapping in long options
21969 and URLs where beneficial for PDF output.
21971 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21973 * config/mips/mips.c (mips_classify_symbol): Don't return
21974 SYMBOL_PC_RELATIVE for nonlocal labels.
21976 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
21978 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21980 2011-01-15 Jan Hubicka <jh@suse.cz>
21982 PR tree-optimization/47276
21983 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21984 declarations as needed.
21986 2011-01-15 Martin Jambor <mjambor@suse.cz>
21988 * common.opt (fdevirtualize): New flag.
21989 * doc/invoke.texi (Option Summary): Document it.
21990 * opts.c (default_options_table): Add devirtualize flag.
21991 * ipa-prop.c (detect_type_change): Return immediately if
21992 devirtualize flag is not set.
21993 (detect_type_change_ssa): Likewise.
21994 (compute_known_type_jump_func): Likewise.
21995 (ipa_analyze_virtual_call_uses): Likewise.
21997 2011-01-14 Martin Jambor <mjambor@suse.cz>
21999 PR tree-optimization/45934
22000 PR tree-optimization/46302
22001 * ipa-prop.c (type_change_info): New type.
22002 (stmt_may_be_vtbl_ptr_store): New function.
22003 (check_stmt_for_type_change): Likewise.
22004 (detect_type_change): Likewise.
22005 (detect_type_change_ssa): Likewise.
22006 (compute_complex_assign_jump_func): Check for dynamic type change.
22007 (compute_complex_ancestor_jump_func): Likewise.
22008 (compute_known_type_jump_func): Likewise.
22009 (compute_scalar_jump_functions): Likewise.
22010 (ipa_analyze_virtual_call_uses): Likewise.
22011 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
22013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22015 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
22016 * config/i386/i386.opt (msse5): New Alias.
22018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22020 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22021 * config/sparc/linux64.h (CC1_SPEC): Likewise.
22022 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22023 * config/sparc/sparc.h (CC1_SPEC): Likewise.
22025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22027 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
22029 * config/sparc/linux64.h (CC1_SPEC): Likewise.
22030 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22031 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
22032 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
22034 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
22036 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22038 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
22040 2011-01-14 Mike Stump <mikestump@comcast.net>
22042 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
22043 * config/fr30/fr30.md: Likweise
22044 (movsi_push): Likewise.
22045 (movsi_pop): Likewise.
22046 (enter_func): Likewise.
22047 * config/moxie/moxie.md (movsi_push): Likewise.
22048 (movsi_pop): Likewise.
22050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22052 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
22053 %{no_archive} %{exact_version}.
22054 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
22055 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
22056 %{no_archive} %{exact_version}.
22057 * config/mips/openbsd.h (LINK_SPEC): Likewise.
22058 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
22059 * config/mips/vxworks.h: Likewise.
22061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22063 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
22065 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22067 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
22068 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
22070 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22072 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
22075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22077 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
22079 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
22080 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
22082 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
22083 Don't handle -shlib.
22085 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22087 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
22088 (CC1_SPEC): Don't handle -profile.
22090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22092 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
22093 * config/mips/mips.h (CC1_SPEC): Likewise.
22095 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22097 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
22098 * config/mips/mips.h (CC1_SPEC): Likewise.
22100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22102 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
22103 * config/m32r/linux.h (LINK_SPEC): Likewise.
22104 * config/mips/linux.h (LINK_SPEC): Likewise.
22105 * config/mips/linux64.h (LINK_SPEC): Likewise.
22106 * config/sparc/linux.h (LINK_SPEC): Likewise.
22107 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
22108 LINK_SPEC): Likewise.
22109 * config/xtensa/linux.h (LINK_SPEC): Likewise.
22111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22113 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
22115 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
22117 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22119 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
22120 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22124 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
22126 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22128 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
22129 supports -Bstatic/-Bdynamic.
22130 * configure: Regenerate.
22132 2011-01-14 Jan Hubicka <jh@suse.cz>
22133 Jack Howarth <howarth@bromo.med.uc.edu>
22136 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
22137 when checking debug_info_level. Test write_symbols instead of
22138 debug_hooks->var_location when setting flag_var_tracking_uninit.
22140 2011-01-14 Richard Guenther <rguenther@suse.de>
22142 PR tree-optimization/47179
22143 * target.def (ref_may_alias_errno): New target hook.
22144 * targhooks.h (default_ref_may_alias_errno): Declare.
22145 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
22146 (default_ref_may_alias_errno): New function.
22147 * target.h (struct ao_ref_s): Declare.
22148 * tree-ssa-alias.c: Include target.h.
22149 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
22150 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
22151 (targhooks.o): Likewise.
22152 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
22153 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
22155 2011-01-14 Richard Guenther <rguenther@suse.de>
22157 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
22159 2011-01-14 Richard Guenther <rguenther@suse.de>
22161 PR tree-optimization/47280
22162 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
22163 return CFG changes.
22164 (tree_ssa_forward_propagate_single_use_vars): Deal with
22165 CFG changes from associate_plusminus.
22167 2011-01-14 Richard Guenther <rguenther@suse.de>
22169 PR middle-end/47281
22171 2011-01-11 Richard Guenther <rguenther@suse.de>
22173 PR tree-optimization/46076
22174 * tree-ssa.c (useless_type_conversion_p): Conversions from
22175 unprototyped to empty argument list function types are useless.
22177 2011-01-14 Richard Guenther <rguenther@suse.de>
22179 PR tree-optimization/47286
22180 * tree-ssa-structalias.c (new_var_info): Register variables are global.
22182 2011-01-14 Martin Jambor <mjambor@suse.cz>
22184 PR middle-end/46823
22185 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
22187 2011-01-13 Anatoly Sokolov <aesok@post.ru>
22189 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
22190 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22191 * config/xtensa/xtensa.c (xtensa_libcall_value,
22192 xtensa_function_value_regno_p): New functions.
22193 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22195 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
22198 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
22200 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
22201 New function prototype.
22202 * config/i386/winnt.c (i386_pe_assemble_visibility):
22203 Warn only if attribute was specified by user.
22205 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
22208 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
22210 (floatunsdidf2_fcfidu): Ditto.
22212 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22214 * config/s390/s390.c (print_operand_address): Replace 'error' with
22215 'output_operand_lossage'.
22216 (print_operand): Likewise.
22218 2011-01-13 Jeff Law <law@redhat.com>
22220 PR rtl-optimization/39077
22221 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
22222 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
22223 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
22224 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
22225 * gcse.c (prune_insertions_deletions): New function.
22226 (compute_pre_data): Use it.
22228 2011-01-13 Dodji Seketeli <dodji@redhat.com>
22231 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
22233 (prune_unused_types_mark): Use it.
22235 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
22237 PR rtl-optimization/45352
22238 * sel-sched.c: Update copyright years.
22239 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
22240 in the advancing loop when we have issued issue_rate insns.
22242 2011-01-12 Richard Henderson <rth@redhat.com>
22244 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
22245 (TARGET_MD_ASM_CLOBBERS): New.
22247 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
22248 (TARGET_DELEGITIMIZE_ADDRESS): New.
22250 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
22251 (clzsi2, *bsch): New patterns.
22253 * config/mn10300/mn10300.md (INT): New mode iterator.
22254 (*mov<INT>_clr): New pattern, and peep2 to generate it.
22256 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
22257 flag_split_wide_types.
22259 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
22260 (mn10300_trampoline_init): Rewrite without a template, an immediate
22261 load and a direct branch.
22262 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
22264 2011-01-12 Anatoly Sokolov <aesok@post.ru>
22266 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22267 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
22268 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
22269 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22271 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
22274 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
22277 2011-01-12 Jan Hubicka <jh@suse.cz>
22280 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
22281 (PLUGIN_COND_CLOSE): New macro.
22282 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
22284 2011-01-12 Richard Guenther <rguenther@suse.de>
22287 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
22288 register variables in a MEM_REF.
22290 2011-01-12 Joseph Myers <joseph@codesourcery.com>
22292 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
22293 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
22294 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
22295 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22296 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22297 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
22298 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
22299 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
22300 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
22301 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
22302 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
22303 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
22304 * config/gnu-user.h: New. Copied from linux.h.
22305 (LINUX_TARGET_STARTFILE_SPEC): Rename to
22306 GNU_USER_TARGET_STARTFILE_SPEC.
22307 (LINUX_TARGET_ENDFILE_SPEC): Rename to
22308 GNU_USER_TARGET_ENDFILE_SPEC.
22309 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
22310 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
22311 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
22312 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
22313 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
22314 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
22315 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
22316 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
22317 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
22318 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
22319 * config/arm/linux-eabi.h (CC1_SPEC): Use
22320 GNU_USER_TARGET_CC1_SPEC.
22321 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
22322 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
22323 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
22324 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
22325 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
22326 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
22327 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
22328 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
22330 2011-01-12 Richard Guenther <rguenther@suse.de>
22333 * doc/invoke.texi (ffast-math): Document it is turned on
22336 2011-01-12 Jan Hubicka <jh@suse.cz>
22338 PR tree-optimization/47233
22339 * opts.c (common_handle_option): Disable ipa-reference with profile
22342 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
22344 * c-parser.c (c_parser_objc_at_property_declaration): Improved
22347 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
22349 * c-parser.c (c_lex_one_token): Updated and reindented some
22350 comments. No changes in code.
22352 2011-01-11 Ian Lance Taylor <iant@google.com>
22354 * godump.c (go_output_var): Don't output the variable if there is
22355 already a type with the same name.
22357 2011-01-11 Ian Lance Taylor <iant@google.com>
22359 * godump.c (go_format_type): Don't generate float80.
22361 2011-01-11 Richard Henderson <rth@redhat.com>
22363 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
22364 declaration. Rewrite for both speed and size.
22365 (mn10300_address_cost_1): Remove.
22366 (mn10300_register_move_cost): New.
22367 (mn10300_memory_move_cost): New.
22368 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
22369 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
22370 extensions, shifts, BSWAP, CLZ.
22371 (mn10300_wide_const_load_uses_clr): Remove.
22372 (TARGET_REGISTER_MOVE_COST): New.
22373 (TARGET_MEMORY_MOVE_COST): New.
22374 * config/mn10300/mn10300-protos.h: Update.
22375 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
22377 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
22378 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
22379 * config/mn10300/mn10300-protos.h: Update.
22380 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
22381 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
22382 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
22383 (*test_int_bitfield, *test_byte_bitfield): Remove.
22384 (*bit_test, *subreg_bit_test): Remove.
22385 * config/mn10300/predicates.md (const_8bit_operand): Remove.
22387 * config/mn10300/constraints.md ("c"): Rename from "A".
22388 ("A", "D"): New constraint letters.
22389 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
22390 (fmssf4, fnmasf4, fnmssf4): Likewise.
22392 * config/mn10300/mn10300.md (isa): New attribute.
22393 (enabled): New attribute.
22395 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
22396 (abssf2, negsf2): Define only for hardware fp.
22397 (sqrtsf2): Reformat.
22398 (addsf3, subsf3, mulsf3): Merge expander and insn.
22400 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
22401 (DEBUGGER_AUTO_OFFSET): Remove.
22402 (DEBUGGER_ARG_OFFSET): Remove.
22404 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
22405 Emit register stores with the same offsets as the hardware.
22406 (mn10300_store_multiple_operation): Don't check that the register
22407 save offsets are monotonic.
22408 * config/mn10300/mn10300-protos.h: Update.
22410 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
22412 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
22413 in terms of the value on the stack, not the MDR register.
22415 2011-01-11 Jan Hubicka <jh@suse.cz>
22419 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
22420 (symbol_alias_set_destroy, symbol_alias_set_contains,
22421 propagate_aliases_backward): Declare.
22422 * lto-streamer-out.c (struct sets): New sturcture.
22423 (trivally_defined_alias): New function.
22424 (output_alias_pair_p): Rewrite.
22425 (output_unreferenced_globals): Fix output of alias pairs.
22426 (produce_symtab): Likewise.
22427 * ipa.c (function_and_variable_visibility): Set weak alias destination
22429 * varasm.c (symbol_alias_set_t): Remove.
22430 (symbol_alias_set_destroy): Export.
22431 (propagate_aliases_forward, propagate_aliases_backward): New functions
22433 (compute_visible_aliases): ... this one; remove.
22434 (trivially_visible_alias): New
22435 (trivially_defined_alias): New.
22436 (remove_unreachable_alias_pairs): Rewrite.
22437 (finish_aliases_1): Reorganize code checking if alias is defined.
22438 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
22441 2011-01-11 Richard Guenther <rguenther@suse.de>
22443 PR tree-optimization/46076
22444 * tree-ssa.c (useless_type_conversion_p): Conversions from
22445 unprototyped to empty argument list function types are useless.
22447 2011-01-11 Richard Guenther <rguenther@suse.de>
22449 PR middle-end/45235
22450 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
22451 volatile MEMs as MEM_READONLY_P.
22453 2011-01-11 Richard Guenther <rguenther@suse.de>
22455 PR tree-optimization/47239
22456 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
22458 2011-01-11 Jeff Law <law@redhat.com>
22460 PR tree-optimization/47086
22461 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
22462 IVs from statements that might throw.
22464 2011-01-10 Jan Hubicka <jh@suse.cz>
22467 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
22469 2011-01-10 Jan Hubicka <jh@suse.cz>
22472 * profile.c (read_profile_edge_counts): Ignore profile inconistency
22473 when correcting profile.
22475 2011-01-10 Jan Hubicka <jh@suse.cz>
22478 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
22479 DECL_FINI_PRIORITY.
22480 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
22481 Restore DECL_FINI_PRIORITY.
22483 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22485 * doc/gimple.texi: Fix quoting of multi-word return values in
22486 @deftypefn statements. Ensure presence of return value. Wrap
22487 overlong @deftypefn lines.
22488 (is_gimple_operand, is_gimple_min_invariant_address): Remove
22489 descriptions of removed functions.
22490 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
22491 of multi-word return value in @deftypefn statement.
22493 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22495 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22496 (Conditional Expressions, Logical Operators)
22497 (Statement and operand traversals): Do not indent smallexample
22498 code. Fix duplicate function argument in example.
22500 2011-01-10 Jeff Law <law@redhat.com>
22502 PR tree-optimization/47141
22503 * ipa-split.c (split_function): Handle case where we are
22504 returning a value and the return block has a virtual operand phi.
22506 2011-01-10 Jan Hubicka <jh@suse.cz>
22508 PR tree-optimization/47234
22509 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22510 (pass_feedback_split_functions): Declare.
22511 * passes.c (init_optimization_passes): Add ipa-split as subpass of
22513 * ipa-split.c (gate_split_functions): Update comments; disable
22514 split-functions for profile_arc_flag and branch_probabilities.
22515 (gate_feedback_split_functions): New function.
22516 (execute_feedback_split_functions): New function.
22517 (pass_feedback_split_functions): New global var.
22519 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
22522 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22523 calling gimple_call_set_cannot_inline.
22525 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
22527 * config/darwin-sections.def: Remove unused section.
22529 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
22532 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22534 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
22537 * c-parser.c (c_parser_declaration_or_fndef): Improved
22540 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
22542 * config/i386/winnt.c (i386_pe_start_function): Make sure
22543 to switch back to function's section.
22545 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
22549 * plugin.c: Move include of dlfcn.h from here...
22550 * system.h: ... to here.
22552 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22554 * doc/cpp.texi (C++ Named Operators): Fix markup for header
22556 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22557 two extra empty pages in PDF output.
22559 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
22562 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22563 for error recovery purposes behave as if it was not specified so
22564 that the default type is usd.
22566 2011-01-07 Jan Hubicka <jh@suse.cz>
22568 PR tree-optmization/46469
22569 * ipa.c (function_and_variable_visibility): Clear needed flags on
22570 nodes with external decls; handle weakrefs merging correctly.
22572 2011-01-07 Joseph Myers <joseph@codesourcery.com>
22574 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22577 2011-01-07 Jan Hubicka <jh@suse.cz>
22579 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22580 and no longer claim that gold is required for linker plugin.
22581 * configure: Regenerate.
22582 * gcc.c (PLUGIN_COND): New macro.
22583 (LINK_COMMAND_SPEC): Use it.
22584 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22585 * config.in (HAVE_LTO_PLUGIN): New.
22586 * configure.ac (--with-lto-plugin): New parameter; autodetect
22589 2011-01-07 Jan Hubicka <jh@suse.cz>
22591 PR tree-optimization/46367
22592 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22593 when we can update original.
22594 (cgraph_mark_inline_edge): Sanity check.
22595 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22597 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22599 * config/spu/spu.h (ASM_COMMENT_START): Define.
22601 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
22604 * gcc.c (%>S): New.
22605 (SWITCH_KEEP_FOR_GCC): Likewise.
22606 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22607 (do_spec_1): Handle "%>".
22609 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22611 2011-01-07 Jakub Jelinek <jakub@redhat.com>
22614 * config/i386/i386.c (ix86_delegitimize_address): If
22615 simplify_gen_subreg fails, return orig_x.
22618 * value-prof.c (gimple_stringop_fixed_value): Handle
22619 lhs of the call properly.
22621 2011-01-07 Jan Hubicka <jh@suse.cz>
22624 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22626 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22628 * target.def (function_switched_text_sections): New hook.
22629 * doc/tm.texi: Regenerated.
22630 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22631 * final.c (default_function_switched_text_sections): New.
22632 (final_scan_insn): Call function_switched_text_sections when a
22633 mid-function section change occurs.
22634 * output.h (default_function_switched_text_sections): Declare.
22635 * config/darwin-protos.h (darwin_function_switched_text_sections):
22637 * config/darwin.c (darwin_function_switched_text_sections): New.
22638 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22640 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22642 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22643 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22644 the secondary code fragment when outputting for DWARF == 2.
22646 2011-01-07 Anatoly Sokolov <aesok@post.ru>
22648 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22649 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22651 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22652 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22654 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22657 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22658 when it is not empty.
22660 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
22663 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22664 (case ${target}): Add btver1.
22665 * config/i386/driver-i386.c (host_detect_local_cpu): Let
22666 -march=native recognize btver1 processors.
22667 * config/i386/i386-c.c (ix86_target_macros_internal): Add
22668 btver1 def_and_undef
22669 * config/i386/i386.c (struct processor_costs btver1_cost): New
22671 (m_BTVER1): New definition.
22672 (m_AMD_MULTIPLE): Includes m_BTVER1.
22673 (initial_ix86_tune_features): Add btver1 tune.
22674 (processor_target_table): Add btver1 entry.
22675 (static const char *const cpu_names): Add btver1 entry.
22676 (software_prefetching_beneficial_p): Add btver1.
22677 (ix86_option_override_internal): Add btver1 instruction sets.
22678 (ix86_issue_rate): Add btver1.
22679 (ix86_adjust_cost): Add btver1.
22680 * config/i386/i386.h (TARGET_BTVER1): New definition.
22681 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22682 (enum processor_type): Add PROCESSOR_BTVER1.
22683 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22685 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22688 * config/i386/i386.c (legitimize_tls_address)
22689 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22690 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22691 (tls_initial_exec_64_sun): New pattern.
22693 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22695 * doc/invoke.texi (Overall Options): Improve wording and markup
22696 of the description of -wrapper.
22698 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22700 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22701 rdynamic, threads): New Driver options.
22703 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22706 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22707 if coming from .tdata.
22708 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22710 2011-01-06 Jan Hubicka <jh@suse.cz>
22713 * collect2.c (main): Do not enable LTOmode when plugin is active.
22715 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22718 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22719 --version output if supported.
22720 * configure: Regenerate.
22722 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22724 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22727 2011-01-06 Jakub Jelinek <jakub@redhat.com>
22730 * c-convert.c (convert): When converting a complex expression
22731 other than COMPLEX_EXPR to a different complex type, ensure
22732 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22733 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22734 when converting COMPLEX_TYPE.
22736 2011-01-06 Ira Rosen <irar@il.ibm.com>
22738 PR tree-optimization/47139
22739 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22740 only the last reduction value is used outside the loop. Update
22743 2011-01-05 Joseph Myers <joseph@codesourcery.com>
22745 * config/rtems.opt: New.
22746 * config.gcc (*-*-rtems*): Use rtems.opt.
22748 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22750 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22751 processors do not support 3DNow instructions.
22753 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22755 * config/spu/spu.c (spu_option_override): Set parameter
22756 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22758 2011-01-05 Jan Hubicka <jh@suse.cz>
22760 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22761 at the command line.
22763 2011-01-05 Martin Jambor <mjambor@suse.cz>
22766 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22767 deltas on streamed outgoing edges.
22768 (output_node_opt_summary): Output info for outgoing edges only when
22769 the node is in new parameter set.
22770 (output_cgraph_opt_summary): New parameter set, passed to the two
22771 aforementioned functions. Update its forward declaration and its
22774 2011-01-05 Tom Tromey <tromey@redhat.com>
22776 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22777 operator to c_finish_omp_atomic.
22778 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22779 (build_unary_op): Update.
22780 (build_modify_expr): Update.
22781 (build_asm_expr): Update.
22783 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22785 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22786 newly inserted insns.
22787 (pad_bb): Likewise.
22788 (spu_emit_branch_hint): Likewise.
22789 (insert_hbrp_for_ilb_runout): Likewise.
22790 (spu_machine_dependent_reorg): Call df_finish_pass after
22791 schedule_insns returns.
22793 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22795 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22797 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22799 PR tree-optimization/47005
22800 * tree-sra.c (struct access): Add 'non_addressable' bit.
22801 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22802 (decide_one_param_reduction): Return 0 if the parameter is passed by
22803 reference and one of the accesses in the group is non_addressable.
22805 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22807 PR tree-optimization/47056
22808 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22809 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22810 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22812 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22814 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22815 initializer. Skip view conversions from aggregate types.
22817 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
22820 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22822 2011-01-04 Philipp Thomas <pth@suse.de>
22824 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22827 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22829 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22830 on empty epilogue sequences.
22832 2011-01-04 Joseph Myers <joseph@codesourcery.com>
22834 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22835 non-static): New Driver options.
22837 2011-01-04 Jie Zhang <jie@codesourcery.com>
22840 * gcc.c (default_compilers[]): Set combinable field to 0
22841 for all assembly languages.
22843 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22845 * config/mips/loongson3a.md: New file.
22846 * config/mips/mips.md: Include loongson3a.md.
22847 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22850 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22852 PR middle-end/47017
22853 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22854 instead of convert_memory_address_addr_space on the base expression.
22856 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22858 * config/spu/spu.c (spu_option_override): Update error text
22859 for bad -march= / -mtune= values.
22861 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22863 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22864 if branch-hint optimization will be performed.
22866 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22868 PR tree-optimization/47148
22869 * ipa-split.c (split_function): Convert arguments to
22870 DECL_ARG_TYPE if possible.
22872 PR tree-optimization/47155
22873 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22874 when computing uns.
22876 PR rtl-optimization/47157
22877 * combine.c (try_combine): If undobuf.other_insn becomes
22878 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22879 and set *new_direct_jump_p too.
22881 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22883 PR tree-optimization/47021
22884 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22886 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22888 * gcc.c (process_command): Update copyright notice dates.
22889 * gcov.c (print_version): Likewise.
22890 * gcov-dump.c (print_version): Likewise.
22891 * mips-tfile.c (main): Likewise.
22892 * mips-tdump.c (main): Likewise.
22894 2011-01-03 Martin Jambor <mjambor@suse.cz>
22896 PR tree-optimization/46801
22897 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22898 aggregate fields start at byte boundary instead of the bit-field flag.
22900 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22903 * gcc.c (main): Revert revision 168407.
22905 2011-01-03 Martin Jambor <mjambor@suse.cz>
22907 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22909 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22911 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22912 vector optab to expand vector/scalar shift, update gimple to vector.
22914 2011-01-03 Martin Jambor <mjambor@suse.cz>
22916 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22919 2011-01-03 Martin Jambor <mjambor@suse.cz>
22921 PR tree-optimization/46984
22922 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22924 (cgraph_create_indirect_edge): Fixed line length.
22925 (cgraph_indirect_call_info): Declare.
22926 (cgraph_make_edge_direct) Update declaration.
22927 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22928 (cgraph_create_indirect_edge): Use it.
22929 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22931 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22932 the new thunk_delta representation.
22933 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22935 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22936 (ipa_read_indirect_edge_info): Likewise.
22937 * lto-cgraph.c (output_edge_opt_summary): New function.
22938 (output_node_opt_summary): Call it on all outgoing edges.
22939 (input_edge_opt_summary): New function.
22940 (input_node_opt_summary): Call it on all outgoing edges.
22942 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22945 * gcc.c (main): Don't check have_o when settting combine_inputs.
22947 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22949 * regrename.c: Add general comment describing the pass.
22950 (struct du_head): Remove 'length' field.
22951 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22952 (regrename_optimize): Do not sort chains. Rework comments, add others.
22953 Force renaming to the preferred class (if any) in the first pass and do
22954 not consider registers that belong to it in the second pass.
22955 (create_new_chain): Do not set 'length' field.
22956 (scan_rtx_reg): Likewise.
22958 2011-01-02 Jakub Jelinek <jakub@redhat.com>
22960 PR tree-optimization/47140
22961 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22962 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22963 to bit_value_binop.
22965 PR rtl-optimization/47028
22966 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22967 parm_birth_insn instead of at the beginning of first bb.
22969 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
22971 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22972 Remove the word "see" before "@pxref".
22973 * doc/rtl.texi: Remove the word "see" before "@pxref".
22975 2011-01-01 Jan Hubicka <jh@suse.cz>
22977 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22980 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
22983 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22986 Copyright (C) 2011 Free Software Foundation, Inc.
22988 Copying and distribution of this file, with or without modification,
22989 are permitted in any medium without royalty provided the copyright
22990 notice and this notice are preserved.