1 2011-09-05 David S. Miller <davem@davemloft.net>
3 * config.host: Add driver-sparc.o and sparc/x-sparc on
4 native sparc*-*-linux* builds.
5 * config/sparc/driver-sparc.c: Correct Linux strings.
6 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
7 * config/sparc/linux64.h: Likewise.
8 * doc/invoke.texi: Document that Linux also supports
9 -mcpu=native and -mtune=native on sparc.
11 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
12 PROCESSOR_NIAGARA4): New.
13 * config/sparc/sparc.opt: Handle new processor types.
14 * config/sparc/sparc.md: Add to "cpu" attribute.
15 * config/sparc/sparc.h (TARGET_CPU_niagara3,
16 TARGET_CPU_niagara4): New, treat as niagara2.
17 * config/sparc/linux64.h: Handle niagara3 and niagara4
19 * config/sparc/sol2.h: Likewise.
20 * config/sparc/niagara2.md: Schedule niagara3 like
22 * config/sparc/sparc.c (sparc_option_override): Add
23 niagara3 and niagara4 handling.
24 (sparc32_initialize_trampoline): Likewise.
25 (sparc64_initialize_trampoline): Likewise.
26 (sparc_use_sched_lookahead): Likewise.
27 (sparc_issue_rate): Likewise.
28 (sparc_register_move_cost): Likewise.
29 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
30 and niagara4 as appropriate.
31 * doc/invoke.texi: Document new processor types.
33 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
36 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
37 that contain global register variable.
39 2011-09-05 Richard Guenther <rguenther@suse.de>
41 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
43 2011-09-05 Richard Guenther <rguenther@suse.de>
45 * stor-layout.c (layout_type): Use size_binop for array size
48 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
50 * config/avr/avr.h (progmem_section): Remove Declaration.
51 * config/avr/avr.c (progmem_section): Make static and rename to
52 progmem_swtable_section.
53 (avr_output_addr_vec_elt): No need to switch sections.
54 (avr_asm_init_sections): Use output_section_asm_op as section
55 callback for progmem_swtable_section.
56 (avr_output_progmem_section_asm_op): Remove Function.
57 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
58 (avr_asm_function_rodata_section): New static Function.
59 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
60 alignment 2**1 for jump tables.
62 2011-09-04 Jan Hubicka <jh@suse.cz>
64 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
65 parameter is SSA name.
67 2011-09-04 Richard Guenther <rguenther@suse.de>
70 2011-08-31 Richard Guenther <rguenther@suse.de>
72 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
75 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
78 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
80 2011-09-04 Jakub Jelinek <jakub@redhat.com>
81 Ira Rosen <ira.rosen@linaro.org>
83 PR tree-optimization/50208
84 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
85 argument. Check that def_stmt is inside the loop.
86 (vect_recog_widen_mult_pattern): Update calls to
87 vect_handle_widen_mult_by_cons.
88 (vect_operation_fits_smaller_type): Check that def_stmt is
91 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
93 * tree-vectorizer.c (vect_print_dump_info): Print line
94 number when dumping to a file.
95 (vectorize_loops): Add new messages to dump file.
97 2011-09-03 Martin Jambor <mjambor@suse.cz>
99 * ipa-prop.h (ipa_jump_func_t): New typedef.
100 (struct ipa_edge_args): Removed field argument_count, field
101 jump_functions turned into a vector.
102 (ipa_set_cs_argument_count): Removed.
103 (ipa_get_cs_argument_count): Updated to work on vectors.
104 (ipa_get_ith_jump_func): Likewise.
105 * ipa-prop.c (ipa_count_arguments): Removed.
106 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
107 jump functions. Update caller.
108 (compute_pass_through_member_ptrs): Likewise.
109 (compute_cst_member_ptr_arguments): Likewise.
110 (ipa_compute_jump_functions_for_edge): Get number of arguments from
111 the statement, allocate vector.
112 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
113 (duplicate_ipa_jump_func_array): Removed.
114 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
115 (ipa_read_node_info): Allocate vector.
117 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
120 * config/pa/pa.md (return): Define "return" insn pattern.
121 (epilogue): Use it when no epilogue is needed.
122 * config/pa/pa.c (pa_can_use_return_insn): New function.
123 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
125 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
127 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
128 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
129 Force at least BITS_PER_UNIT alignment on the new variable.
131 2011-09-02 Gary Funck <gary@intrepid.com>
133 * opts.c (print_specific_help): Fix off-by-one compare in
135 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
136 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
137 Increase by +5 to allow for more languages.
138 * optc-gen.awk: Generate #if that ensures that the number of
139 languages is within the implementation-defined limit.
141 2011-09-02 Michael Matz <matz@suse.de>
144 * ipa-split.c (split_function): Call add_referenced_var.
146 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
147 (cond_if_else_store_replacement_1): Ditto.
148 * tree-ssa-pre.c (get_representative_for): Ditto.
149 (create_expression_by_pieces): Ditto.
150 (insert_into_preds_of_block): Ditto.
151 * tree-sra.c (create_access_replacement): Ditto.
152 (get_replaced_param_substitute): Ditto.
154 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
156 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
158 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
159 (l1w, s1w, l2w, s2w): Define in the main automaton.
160 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
162 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
163 (c6x_unit_names): Add the new units.
164 (c6x_unit_codes): New static array.
165 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
166 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
167 UNIT_QID_SIDE_OFFSET): New macros.
168 (RESERVATION_S2): Adjust value.
169 (c6x_option_override): Compute c6x_unit_codes.
170 (assign_reservations): Take the unit_mask of the last instruction
171 into account. Detect floating point reservations by looking for
172 the new units. Don't assign reservations if the field is already
174 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
175 (init_sched_state): Initialize it.
176 (c6x_clear_sched_context): Free it.
177 (insn_set_clock): Clear reservation.
178 (prev_cycle_state): New static variable.
179 (c6x_init_sched_context): Save it.
180 (c6x_sched_init): Allocate space for it and clear it.
181 (c6x_sched_dfa_pre_cycle_insn): New static function.
182 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
183 (c6x_variable_issue): Only record units in the unit_mask that
184 were not set at the start of the cycle.
185 (c6x_variable_issue): Compute and store the unit_mask from the
187 (reorg_split_calls): Ensure the new information remains correct.
188 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
189 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
190 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
191 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
192 Add special reservations.
193 * config/c6x/c6x-sched.md: Regenerate.
195 2011-09-02 Martin Jambor <mjambor@suse.cz>
197 * ipa-prop.h (ipa_node_params): Removed fields
198 called_with_var_arguments and node_versionable.
199 (ipa_set_called_with_variable_arg): Removed.
200 (ipa_is_called_with_var_arguments): Likewise.
201 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
202 (determine_versionability): Do not check for type attributes and va
203 builtins. Record versionability into inline summary.
204 (initialize_node_lattices): Do not check
205 ipa_is_called_with_var_arguments.
206 (propagate_constants_accross_call): Likewise, ignore arguments we do
207 not have PARM_DECLs for, set variable flag for parameters that were
209 (create_specialized_node): Dump info that we cannot change signature.
210 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
212 (ipa_make_edge_direct_to_target): Likewise.
213 (ipa_update_after_lto_read): Likewise.
214 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
215 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
218 2011-09-02 Richard Guenther <rguenther@suse.de>
220 PR tree-optimization/27460
222 * doc/md.texi (vcond): Document.
223 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
224 optab with two modes.
225 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
226 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
227 (vcond_optab): Adjust.
228 (vcondu_optab): Likewise.
229 (expand_vec_cond_expr_p): Adjust prototype.
230 * optabs.c (get_vcond_icode): Adjust.
231 (expand_vec_cond_expr_p): Likewise.
232 (expand_vec_cond_expr): Likewise.
233 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
235 (vectorizable_condition): Allow differing types for comparison
237 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
239 * config/i386/sse.md (vcond<mode>): Split to
240 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
241 vcond<V_128:mode><VI124_128:mode> and
242 vcondu<V_128:mode><VI124_128:mode>.
243 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
244 (vconduv2di): Likewise.
245 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
246 (vcondu<mode>): Likewise.
247 * config/ia64/vect.md (vcond<mode>): Likewise.
248 (vcondu<mode>): Likewise.
249 (vcondv2sf): Likewise.
250 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
251 * config/rs6000/paired.md (vcondv2sf): Likewise.
252 * config/rs6000/vector.md (vcond<mode>): Likewise.
253 (vcondu<mode>): Likewise.
254 * config/spu/spu.md (vcond<mode>): Likewise.
255 (vcondu<mode>): Likewise.
257 2011-09-02 Richard Guenther <rguenther@suse.de>
259 * pretty-print.h (pp_unsigned_wide_integer): New.
260 * tree-pretty-print.c (dump_generic_node): Print unsigned
261 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
263 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
266 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
267 valid CONST_VECTOR operands.
268 (rs6000_expand_vector_init): Likewise.
270 2011-09-02 Martin Jambor <mjambor@suse.cz>
272 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
273 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
274 BINFO_VTABLE. Parameter delta removed, all callers updated.
275 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
277 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
279 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
280 handling of thunk_delta.
281 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
282 (devirtualization_time_bonus): Do not handle thunk deltas.
283 (ipcp_discover_new_direct_edges): Likewise.
284 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
285 (try_make_edge_direct_simple_call): Likewise.
286 (try_make_edge_direct_virtual_call): Likewise.
287 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
288 parameter set as unused.
289 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
290 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
291 parameter set as unused.
292 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
293 (input_edge_opt_summary): Likewise.
294 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
295 BINFO_VIRTUALS at all.
296 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
298 2011-09-02 Richard Guenther <rguenther@suse.de>
300 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not
302 (ccp_fold_stmt): Continue replacing args when folding
305 2011-08-31 Richard Guenther <rguenther@suse.de>
307 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
308 handling here, from ...
309 (expand_expr_real_1): ... here.
310 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
312 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
313 a GIMPLE_TERNARY_RHS.
314 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
315 and VEC_COND_EXPR here ...
316 (verify_gimple_assign_single): ... not here.
317 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
318 * tree-object-size.c (cond_expr_object_size): Adjust.
319 (collect_object_sizes_for): Likewise.
320 * tree-scalar-evolution.c (interpret_expr): Don't handle
322 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and
324 (ssa_forward_propagate_and_combine): Adjust.
325 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
327 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
328 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
329 * tree-vect-stmt.c (vectorizable_condition): Likewise.
330 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
331 (extract_range_from_assignment): Likewise.
333 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
335 * config/i386/i386.md: Use (match_test ...) for attribute tests.
336 * config/i386/mmx.md: Likewise.
337 * config/i386/sse.md: Likewise.
338 * config/i386/predicates.md (call_insn_operand): Use
339 (not (match_test "...")) instead of (match_test "!...")
340 * config/i386/constraints.md (w): Likewise.
342 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
344 * doc/md.texi: Describe the use of match_tests in attribute tests.
345 * rtl.def (MATCH_TEST): Update commentary.
346 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
347 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
349 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
351 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
352 (attr_string): Use copy_md_ptr_loc.
354 2011-08-31 Martin Jambor <mjambor@suse.cz>
357 * ipa-inline-analysis.c (compute_inline_parameters): Set
358 can_change_signature of noes with typde attributes.
359 * ipa-split.c (split_function): Do not skip any arguments if
360 can_change_signature is set.
362 2011-08-31 Martin Jambor <mjambor@suse.cz>
364 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
367 2011-08-31 Richard Guenther <rguenther@suse.de>
369 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
372 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
374 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
376 2011-08-31 Tom de Vries <tom@codesourcery.com>
379 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
380 * tree-ssa-ccp.c (params.h): Include.
381 (fold_builtin_alloca_for_var): New function.
382 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
384 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
386 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
389 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
391 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
394 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
396 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
399 2011-08-30 Richard Guenther <rguenther@suse.de>
402 * gimple.h (maybe_fold_offset_to_address): Remove.
403 (maybe_fold_offset_to_reference): Likewise.
404 (maybe_fold_stmt_addition): Likewise.
405 (may_propagate_address_into_dereference): Likewise.
406 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
408 * gimple-fold.c (canonicalize_constructor_val): Likewise.
409 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
411 (may_propagate_address_into_dereference): Remove.
412 (maybe_fold_offset_to_array_ref): Likewise.
413 (maybe_fold_offset_to_reference): Likewise.
414 (maybe_fold_offset_to_address): Likewise.
415 (maybe_fold_stmt_addition): Likewise.
416 (fold_gimple_assign): Do not reconstruct array references but
417 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
419 (gimple_fold_stmt_to_constant_1): Likewise.
420 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
421 * gimplify.c (gimplify_conversion): Likewise.
422 (gimplify_expr): Likewise.
424 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
426 * config/i386/fmaintrin.h: New.
427 * config.gcc: Add fmaintrin.h.
429 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
430 <IX86_BUILTIN_VFMADDSD3>: Likewise.
431 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
432 (*fmai_fmadd_<mode>): Likewise.
433 (*fmai_fmsub_<mode>): Likewise.
434 (*fmai_fnmadd_<mode>): Likewise.
435 (*fmai_fnmsub_<mode>): Likewise.
436 * config/i386/immintrin.h: Add fmaintrin.h.
438 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
440 * genautomata.c (NO_COMB_OPTION): New macro.
441 (no_comb_flag): New static variable.
442 (gen_automata_option): Handle NO_COMB_OPTION.
443 (comb_vect_p): False if no_comb_flag.
444 (add_vect): Move computation of min/max values. Return early if
446 * doc/md.texi (automata_option): Document no-comb-vect.
448 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
449 "__x86.get_pc_thunk".
451 * bb-reorder.c (insert_section_boundary_note): Only do it if
452 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
454 2011-08-30 Christian Bruel <christian.bruel@st.com>
456 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
459 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
461 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
462 to off. Document switch.
463 * doc/invoke.texi (-msave-toc-indirect): Ditto.
465 2011-08-29 Jakub Jelinek <jakub@redhat.com>
467 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
468 conditionals and comments inside macro arguments.
470 20011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
471 Richard Guenther <rguenther@suse.de>
473 * tree.h (constant_boolean_node): Adjust prototype.
474 * fold-const.c (fold_convert_loc): Move aggregate conversion
476 (constant_boolean_node): Make value parameter boolean, add
477 vector type handling.
478 (fold_unary_loc): Use constant_boolean_node.
479 (fold_binary_loc): Preserve types properly when folding
480 COMPLEX_EXPR <__real x, __imag x>.
481 * gimplify.c (gimplify_expr): Handle vector comparison.
482 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
484 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
487 2011-08-29 Jakub Jelinek <jakub@redhat.com>
490 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
491 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
492 (verify_rtl_sharing): Likewise and verify_rtx_sharing
494 (unshare_all_rtl_in_chain): For CALL_INSNs
495 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
497 2011-08-29 Richard Guenther <rguenther@suse.de>
499 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
500 on the built ADDR_EXPR.
502 2011-08-29 Jakub Jelinek <jakub@redhat.com>
505 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
506 before adding ENTRY_VALUE to val->locs.
508 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
511 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
514 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
516 * doc/rtl.texi (simple_return): Document.
517 (parallel, PATTERN): Here too.
518 * doc/md.texi (return): Mention it's allowed to expand to simple_return
520 (simple_return): Document standard pattern.
521 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
522 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
523 * reorg.c (function_return_label, function_simple_return_label):
524 New static variables, replacing...
525 (end_of_function_label): ... this.
526 (simplejump_or_return_p): New static function.
527 (optimize_skip, steal_delay_list_from_fallthrough,
528 fill_slots_from_thread): Use it.
529 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
530 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
531 (find_end_label): Take a new arg which is one of the two return
532 rtxs. Depending on which, set either function_return_label or
533 function_simple_return_label. All callers changed.
534 (make_return_insns): Make both kinds.
535 (dbr_schedule): Adjust for two kinds of end labels.
536 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
537 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
538 (gen_expand, gen_split): Use ANY_RETURN_P.
539 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
540 * rtl.def (SIMPLE_RETURN): New code.
541 * ifcvt.c (find_if_case_1): Be more careful about
542 redirecting jumps to the EXIT_BLOCK.
543 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
544 returnjump_p_1): Handle SIMPLE_RETURNs.
545 * print-rtl.c (print_rtx): Likewise.
546 * rtl.c (copy_rtx): Likewise.
547 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
548 * combine.c (simplify_set): Likewise.
549 * resource.c (find_dead_or_set_registers, mark_set_resources):
551 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
552 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
553 (init_emit_regs): Initialize simple_return_rtx.
554 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
555 force_nonfallthru_and_redirect.
556 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
557 (GR_SIMPLE_RETURN): New enum value.
558 (simple_return_rtx): New macro.
559 * basic-block.h (force_nonfallthru_and_redirect): Adjust
561 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
562 argument. All callers changed. Be careful about what kinds of
563 returnjumps to generate.
564 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
565 ix86_pad_short_function): Likewise.
566 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
568 * config/mips/mips.md (any_return): New code_iterator.
569 (optab): Add cases for return and simple_return.
570 (return): Expand to a simple_return.
571 (simple_return): New pattern.
572 (*<optab>, *<optab>_internal for any_return): New patterns.
573 (return_internal): Remove.
574 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
575 a simple_return_internal.
577 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
579 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
580 (vec_extract_lo_<mode>): Prevent both operands in memory.
581 (vec_extract_lo_v16hi): Ditto.
582 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
584 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
586 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
587 (*sse2_mulv4si3): Ditto.
589 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
592 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
595 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
596 when all outputs are unused.
597 (sse4_2_pcmpistr): Ditto.
599 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
601 * config/i386/i386.md (round<mode>2): New expander.
602 * config/i386/i386.c (enum ix86_builtins): Add
603 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
604 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
606 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
607 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
609 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
612 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
613 only when TARGET_C99_FUNCTIONS.
614 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
615 <BUILT_IN_RINT{,F,L}>: Ditto.
617 2011-08-26 Michael Matz <matz@suse.de>
618 Jakub Jelinek <jakub@redhat.com>
621 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
622 don't call strlen twice, use memcpy.
624 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
626 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
627 * config/i386/bmiintrin.h: Likewise.
628 * config/i386/lzcntintrin.h: Likewise.
630 * config/i386/immintrin.h: Include <lzcntintrin.h>,
631 <bmiintrin.h> and <bmi2intrin.h>.
633 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
636 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
637 * configure: Regenerate.
639 2011-08-26 Jakub Jelinek <jakub@redhat.com>
642 * c-typeck.c (c_process_expr_stmt): Skip over nops and
643 call mark_exp_read even if exprv is ADDR_EXPR.
645 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
647 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
648 to df_set_dead_notes_for_mw.
650 2011-08-26 Richard Guenther <rguenther@suse.de>
652 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
654 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
655 Tom de Vries <tom@codesourcery.com>
657 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
658 (struct ivopts_data): Add loop_single_exit_p field.
659 (niter_for_exit): Change parameter desc_p into return value. Return
660 desc if desc->may_be_zero. Free desc if unused.
661 (niter_for_single_dom_exit): Change return type.
662 (find_induction_variables): Handle changed return type of
663 niter_for_single_dom_exit. Dump may_be_zero.
664 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
665 (set_use_iv_cost): Add and handle comp parameter.
666 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
667 comp argument to set_use_iv_cost.
668 (strip_wrap_conserving_type_conversions, expr_equal_p)
669 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
670 (may_eliminate_iv): Add comp parameter. Handle new return type of
671 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
672 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
673 and may_eliminate_iv.
674 (rewrite_use_compare): Move call to iv_elimination_compare to ...
675 (may_eliminate_iv): Here.
676 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
678 2011-08-26 Tom de Vries <tom@codesourcery.com>
680 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
683 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
685 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
686 (*ior_scc_scc_cmp): Likewise
687 (*and_scc_scc): Likewise.
688 (*and_scc_scc_cmp): Likewise.
689 (*and_scc_scc_nodom): Likewise.
690 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
692 2011-08-26 Jakub Jelinek <jakub@redhat.com>
694 * rtlanal.c (nonzero_bits1): Handle CLRSB.
696 2011-08-26 Richard Guenther <rguenther@suse.de>
698 * expr.c (string_constant): Handle &MEM_REF.
700 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
702 * config/arm/arm.c (struct four_ints): New type.
703 (count_insns_for_constant): Delete function.
704 (find_best_start): Delete function.
705 (optimal_immediate_sequence): New function.
706 (optimal_immediate_sequence_1): New function.
707 (arm_gen_constant): Move constant splitting code to
708 optimal_immediate_sequence.
709 Rewrite constant negation/invertion code.
711 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
713 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
714 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
715 Remove prototype. Remove static function type.
716 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
718 * config/arm/constraints.md (Pj, PJ): New constraints.
720 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
722 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
723 ("cortex_a9_multiply_long"): New and use above. Handle all
725 ("cortex_a9_multiply"): Handle smmul and smmulr.
726 ("cortex_a9_mac"): Handle smmla.
728 2011-08-25 Richard Henderson <rth@redhat.com>
732 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
733 non-constant stack adjutment.
734 * expr.c (find_args_size_adjust): Break out from ...
735 (fixup_args_size_notes): ... here.
736 * rtl.h (find_args_size_adjust): Declare.
738 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
740 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
742 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
743 (*pushdf_rex64): Change Y2 register constraint to x.
744 (*movdf_internal_rex64): Ditto.
745 (*zero_extendsidi2_rex64): Ditto.
746 (*movdi_internal): Change Y2 register constraint to x
747 and update "isa" attribute.
749 (*movdf internal): Ditto.
750 (zero_extendsidi2_1): Ditto.
751 (*truncdfdf_mixed): Ditto.
752 (*truncxfdf2_mixed): Ditto.
753 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
754 register constraint to x.
755 (*movv2sf_internal_rex64): Ditto.
756 (*mov<mode>_internal): Change Y2 register constraint to x
757 and add "isa" attribute.
758 (*movv2sf_internal): Ditto.
759 (*vec_extractv2si_1): Ditto.
760 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
761 constraints to x and update "isa" attribute.
762 (*vec_interleave_highv2df): Change Y3 registerconstraint
763 to x and update "isa" attribute.
764 (*vec_interleave_lowv2df): Ditto.
765 (*vec_concatv2df): Change Y2 register constraint to x and
766 update "isa" attribute.
767 (sse2_loadld): Ditto.
768 (*vec_extractv2di_1): Ditto.
769 (*vec_dupv4si): Ditto.
770 (*vec_dupv2di): Ditto.
771 (*vec_concatv4si): Ditto.
772 (vec_concatv2di): Ditto.
773 * config/i386/constraints.md (Y2): Remove.
777 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
779 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
780 dump_def_use_chain): Don't declare.
781 (mark_conflict, create_new_chain): Move before users.
782 (regrename_optimize): Move to near end of file.
784 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
786 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
787 (secondary_input_reload_class): Remove Prototype.
788 * config/avr/avr.c (byte_immediate_operand): Remove Function.
789 * config/avr/avr.md (setmemhi): Use u8_operand.
790 (strlenhi): Use const0_rtx for comparison.
791 * config/avr/avr.h (avr_reg_order): Remove Declaration.
793 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
795 * config/avr/avr.c (reg_class_tab): Make local to
796 avr_regno_reg_class. Return smallest register class available.
798 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
800 * config/avr/avr.c (STR_PREFIX_P): New Define.
801 (avr_asm_declare_function_name): Use it.
802 (avr_asm_named_section): Use it.
803 (avr_section_type_flags): Use it.
805 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
807 * doc/md.texi (automata_option): Document collapse-ndfa.
808 * genautomata.c (COLLAPSE_OPTION): New macro.
809 (collapse_flag): New static variable.
810 (struct description): New member normal_decls_num.
811 (struct automaton): New members advance_ainsn and collapse_ainsn.
812 (gen_automata_option): Check for COLLAPSE_OPTION.
813 (collapse_ndfa_insn_decl): New static variable.
814 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
815 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
816 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
817 necessary. Use normal_decls_num rather than decls_num, remove
818 test for special decls.
819 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
820 (make_automaton); Likewise. Use the new advance_cycle_insn member
822 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
824 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
825 transition. Create the necessary transitions for it.
826 (create_ainsns): Return void. Take an automaton_t argument, and
827 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
829 (COLLAPSE_NDFA_VALUE_NAME): New macro.
830 (output_tables): Output code to define it.
831 (output_internal_insn_code_evaluation): Output code to accept
832 const0_rtx as collapse-ndfa transition.
833 (output_default_latencies, output_print_reservation_func,
834 output_print_description): Reorganize loops to use normal_decls_num
835 as loop bound; remove special case for advance_cycle_insn_decl.
836 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
837 (check_automata_insn_issues): Check for collapse_ainsn.
838 (expand_automate): Allocate sufficient space. Initialize
841 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
843 * config/avr/avr.md: Fix indentation from r177991.
845 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
847 * regrename.c (struct du_head): Remove member terminated.
848 (create_new_chain): Don't initialize it.
849 (scan_rtx_reg): Don't set or test it, test the open_chains_set
851 (tick, this_tick): New global variables, moved out of
853 (current_id, open_chains, closed_chains, open_chains_set,
854 live_in_chains, live_hard_regs): Reorder declarations.
855 (dump_def_use_chain): Move function earlier in the file.
856 (rename_chains): New static function, broken out of
858 (regrename_optimize): Use it. Remove #if 0'ed code.
860 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
862 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
864 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
867 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
869 2011-08-24 Richard Guenther <rguenther@suse.de>
871 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
872 ref in the basic-block case. Move stripping array-refs
873 to the place we create an access-function for it. Remove
874 bogus stripping down a MEM_REF to its base.
876 2011-08-24 Richard Guenther <rguenther@suse.de>
878 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
879 with -fno-strict-overflow.
881 2011-08-24 Richard Guenther <rguenther@suse.de>
883 * tree-vectorizer.c (vect_print_dump_info): Avoid the
884 file and location clutter when dumping to dump files.
886 2011-08-24 Simon Baldwin <simonb@google.com>
888 * gengtype-state.c (write_state): Remove timestamped header line.
890 2011-08-24 Joseph Myers <joseph@codesourcery.com>
892 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
893 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
894 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
895 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
896 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
897 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
898 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
900 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
902 2011-08-24 Joseph Myers <joseph@codesourcery.com>
904 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
906 2011-08-24 Richard Guenther <rguenther@suse.de>
908 PR tree-optimization/50067
909 * tree-data-ref.c (dr_analyze_indices): Do not add an access
910 function for a MEM_REF base that has no evolution in the loop
911 nest or that is not analyzable.
913 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
915 * ira.c (ira_init_register_move_cost): Check small subclasses
916 through ira_reg_class_max_nregs and ira_available_class_regs.
918 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
920 * config/i386/constraints.md (Yp): New register constraint.
921 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
922 Yp register constraint.
923 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
924 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
925 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
927 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
929 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
931 2011-08-23 Mark Heffernan <meheff@google.com>
934 * common.opt (Wfree-nonheap-object): New option.
935 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
936 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
938 (expand_builtin): Make warning conditional.
940 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
942 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
943 (length_immediate): Handle imulx, ishiftx and rotatex.
946 (enabled): Handle bmi2.
947 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
948 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
949 (*bmi2_umulditi3_1): New insn pattern.
950 (*bmi2_umulsidi3_1): Ditto.
951 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
952 (*bmi2_ashl<mode>3_1): New insn pattern.
953 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
954 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
955 (*bmi2_ashlsi3_1_zext): New insn pattern.
956 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
957 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
958 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
959 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
960 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
962 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
963 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
964 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
966 (*bmi2_rorx<mode>3_1): New insn pattern.
967 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
968 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
969 (*rotatert<mode>3_1 splitter): Ditto.
970 (*bmi2_rorxsi3_1_zext): New insn pattern.
971 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
972 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
973 (*rotatertsi3_1_zext splitter): Ditto.
975 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
977 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
978 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
979 (ix86_handle_option): Handle OPT_mbmi2 case.
980 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
981 (x86_64-*-*): Likewise.
982 * config/i386/bmi2intrin.h: New file.
983 * config/i386/cpuid.h (bit_BMI2): New.
984 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
986 * config/i386/i386-c.c (ix86_target_macros_internal):
987 Conditionally define __BMI2__.
988 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
990 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
991 (print_reg): New code.
992 (ix86_print_operand): Likewise.
993 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
994 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
996 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
997 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
999 * config/i386/i386.h (TARGET_BMI2): New.
1000 * config/i386/i386.md (UNSPEC_PDEP): New.
1001 (UNSPEC_PEXT): Likewise.
1002 (*bmi2_bzhi_<mode>3): Likewise.
1003 (*bmi2_pdep_<mode>3): Likewise.
1004 (*bmi2_pext_<mode>3): Likewise.
1005 * config/i386/i386.opt (mbmi2): New.
1006 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1008 * doc/extend.texi: Document BMI2 built-in functions.
1009 * doc/invoke.texi: Document -mbmi2.
1011 2011-08-23 Jakub Jelinek <jakub@redhat.com>
1014 * simplify-rtx.c (simplify_const_unary_operation): If
1015 op is CONST_INT, don't look at op_mode, but use instead mode.
1016 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1017 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1018 operation and TRUNCATE/ZERO_EXTEND if needed.
1019 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1020 Document that operand mode must be same as operation mode,
1022 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1023 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1024 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1025 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1026 use the mode of operand for the operation and add truncate
1027 or zero_extend around if needed.
1028 * config/c6x/c6x.md (ctzdi2): Likewise.
1029 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1031 2011-08-12 Michael Matz <matz@suse.de>
1033 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1034 (gimple_expand_cfg): Merge alignment info for coalesced pointer
1037 2011-08-23 Richard Guenther <rguenther@suse.de>
1039 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1040 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1041 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1043 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1044 (mem_refs_may_alias_p): Adjust.
1045 * tree-data-ref.h (dr_may_alias_p): Adjust.
1046 * tree-data-ref.c: Include tree-affine.h.
1047 (dr_analyze_indices): Do nothing for the non-loop case.
1048 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
1049 more cases in the non-loop case.
1050 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1051 calls to dr_may_alias_p.
1052 (write_alias_graph_to_ascii_ecc): Likewise.
1053 (write_alias_graph_to_ascii_dot): Likewise.
1054 (build_alias_set_optimal_p): Likewise.
1056 2011-08-23 Richard Guenther <rguenther@suse.de>
1058 PR tree-optimization/50162
1059 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1061 2011-08-23 Richard Guenther <rguenther@suse.de>
1063 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1064 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1065 (create_data_ref): Also dump access functions for the created data-ref.
1067 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
1068 Kirill Yukhin <kirill.yukhin@intel.com>
1071 * config/i386/sse.md (VI_AVX2): New.
1072 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1073 (*<plusminus_insn><mode>3): Ditto.
1074 (<sse2_avx2>_andnot<mode>3): Ditto.
1075 (*andnot<mode>3): Fix order of cond operands.
1076 Add asserts for correct TARGET_xxx.
1077 (*<any_logic:code><mode>3): Ditto.
1079 2011-08-22 Anatoly Sokolov <aesok@post.ru>
1081 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1082 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1083 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1084 regclass argument type to reg_class_t. Change 'max' and 'v' vars
1085 and return types to unsigned char. Use reg_class_contents instead
1087 (TARGET_CLASS_MAX_NREGS): Define.
1089 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
1091 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1092 to make computed_jump_p return true.
1094 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1096 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1097 (PICFLAG_FOR_TARGET): Substitute.
1098 * aclocal.m4: Regenerate.
1099 * configure: Regenerate.
1101 2011-08-22 Dodji Seketeli <dodji@redhat.com>
1103 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1104 after reading in the pch.
1106 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
1108 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1109 * configure: Regenerated.
1111 2011-08-22 Jakub Jelinek <jakub@redhat.com>
1113 PR tree-optimization/50133
1114 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1115 from stmt instead of some statement around gsi.
1118 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1119 innerdecl is a VAR_DECL.
1121 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
1123 * config/i386/avx2intrin.h: New file.
1124 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1125 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1126 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1127 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1128 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1129 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1130 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1131 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1132 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1133 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1134 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1135 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1136 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1137 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1138 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1139 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1140 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1141 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1142 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1143 VOID_FTYPE_PV8SI_V8SI_V8SI,
1144 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1145 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1146 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1147 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1148 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1149 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1150 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1151 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1152 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1153 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1154 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1155 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1156 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1157 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1158 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1159 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1160 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1161 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1162 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1163 V4DI_FTYPE_V4DI_INT_CONVERT,
1164 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1165 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1166 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1167 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1168 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1169 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1170 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1171 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1172 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1173 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1174 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1175 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1176 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1177 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1178 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1179 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1180 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1181 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1182 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1183 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1184 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1185 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1186 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1187 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1188 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1189 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1190 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1191 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1192 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1193 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1194 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1195 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1196 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1197 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1198 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1199 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1200 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1201 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1202 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1203 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1204 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1205 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1206 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1207 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1208 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1209 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1210 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1211 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1212 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1213 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1214 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1215 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1216 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1217 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1218 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1219 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1220 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1221 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1222 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1223 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1224 IX86_BUILTIN_VBROADCASTSS_PS256,
1225 IX86_BUILTIN_VBROADCASTSD_PD256,
1226 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1227 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1228 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1229 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1230 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1231 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1232 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1233 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1234 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1235 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1236 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1237 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1238 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1239 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1240 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1241 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1242 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1243 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1244 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1245 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1246 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1247 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1248 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1249 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1250 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1251 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1252 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1253 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1254 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1255 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1256 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1257 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
1258 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1259 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1260 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1261 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1262 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1263 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1264 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1265 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1266 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1267 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1268 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1269 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1270 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1271 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1272 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1273 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1274 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1275 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1276 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1277 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1278 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1279 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1280 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1281 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1282 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1283 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1284 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1285 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1286 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1287 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1288 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1289 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1290 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1291 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1292 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1293 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1294 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1295 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1296 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1297 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1298 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1299 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1300 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1301 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1302 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1303 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1304 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1305 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1306 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1307 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1308 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1309 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1310 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1311 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1312 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1313 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1314 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1315 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1316 IX86_BUILTIN_VBROADCASTSD_PD256,
1317 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1318 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1319 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1320 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1321 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1322 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1323 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1324 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1325 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1326 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1327 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1328 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1329 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1330 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1331 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1332 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1333 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1334 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1335 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1336 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1337 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1338 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1339 IX86_BUILTIN_GATHERDIV8SI.
1340 (ix86_preferred_simd_mode): Support AVX2 modes.
1341 (ix86_expand_args_builtin): Support AVX2 builtins.
1342 (ix86_expand_special_args_builtin): Likewise.
1343 (ix86_expand_builtin): Likewise.
1344 * config/i386/i386.md (UNSPEC_VPERMSI): New.
1345 (UNSPEC_VPERMDF): Likewise.
1346 (UNSPEC_VPERMSF): Likewise.
1347 (UNSPEC_VPERMDI): Likewise.
1348 (UNSPEC_VPERMTI): Likewise.
1349 (UNSPEC_GATHER): Likewise.
1350 (ssemodesuffix): Extend.
1351 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1353 * config/i386/predicates.md (const1248_operand): New.
1354 * config/i386/sse.md (VI1_AVX2): New mode iterator.
1355 (VI2_AVX2): Likewise.
1356 (VI4_AVX2): Likewise.
1357 (VI8_AVX2): Likewise.
1358 (VIMAX_AVX2): Likewise.
1359 (SSESCALARMODE): Likewise.
1360 (VI12_AVX2): Likewise.
1361 (VI24_AVX2): Likewise.
1362 (VI124_AVX2): Likewise.
1363 (VI248_AVX2): Likewise.
1364 (VI48_AVX2): Likewise.
1365 (VI4SD_AVX2): Likewise.
1366 (V48_AVX2): Likewise.
1367 (AVX256MODE2P): Likewise.
1368 (AVXMODE48P_DI): Likewise.
1369 (sse2_avx2): New mode attribute.
1370 (ssse3_avx2): Likewise.
1371 (sse4_1_avx2): Likewise.
1372 (avx_avx2): Likewise.
1373 (ssebytemode): Likewise.
1374 (AVXTOSSEMODE): Likewise.
1375 (AVXMODE48P_DI): Likewise.
1376 (gthrfirstp): Likewise.
1377 (gthrlastp): Likewise.
1378 (lshift): New code_iterator
1379 (lshift): New code attribute.
1381 (ssescalarmodesuffix): Update.
1382 (sseunpackmode): Likewise.
1383 (ssepackmode): Likewise.
1384 (avx2_vec_dupv4sf): New insn pattern.
1385 (avx2_vec_dupv8sf): Likewise.
1386 (avx2_interleave_highv4di): Likewise.
1387 (avx2_interleave_lowv4di): Likewise.
1388 (avx2_umulv4siv4di3): Likewise
1389 (*avx2_umulv4siv4di3): Likewise
1390 (avx2_pmaddwd): Likewise.
1391 (*avx2_pmaddwd): Likewise.
1392 (avx2_lshrqv4di3): Likewise.
1393 (avx2_lshlqv4di3): Likewise.
1394 (avx2_lshl<mode>3): Likewise.
1395 (avx2_<umaxmin:code><mode>3): Likewise.
1396 (*avx2_<umaxmin:code><mode>3): Likewise.
1397 (avx2_<smaxmin:code><mode>3): Likewise.
1398 (*avx2_<smaxmin:code><mode>3): Likewise.
1399 (avx2_eq<mode>3): Likewise.
1400 (*avx2_eq<mode>3): Likewise.
1401 (avx2_gt<mode>3): Likewise.
1402 (avx2_interleave_highv32qi): New.
1403 (avx2_interleave_lowv32qi): Likewise.
1404 (avx2_interleave_highv16hi): Likewise.
1405 (avx2_interleave_lowv16hi): Likewise.
1406 (avx2_interleave_highv8si): Likewise.
1407 (avx2_interleave_lowv8si): Likewise.
1408 (avx2_pshufd): Likewise.
1409 (avx2_pshufd_1): Likewise.
1410 (avx2_pshuflwv3): Likewise.
1411 (avx2_pshuflw_1): Likewise.
1412 (avx2_pshufhwv3): Likewise.
1413 (avx2_pshufhw_1): Likewise.
1414 (avx2_uavgv32qi3): Likewise.
1415 (*avx2_uavgv32qi3): Likewise.
1416 (avx2_uavgv16hi3): Likewise.
1417 (*avx2_uavgv16hi3): Likewise.
1418 (avx2_pmovmskb): Likewise.
1419 (avx2_phaddwv16hi3): Likewise.
1420 (avx2_phadddv8si3): Likewise.
1421 (avx2_phaddswv16hi3): Likewise.
1422 (avx2_phsubwv16hi3): Likewise.
1423 (avx2_phsubdv8si3): Likewise.
1424 (avx2_phsubswv16hi3): Likewise.
1425 (avx2_pmaddubsw256): Likewise.
1426 (avx2_umulhrswv16hi3): Likewise.
1427 (*avx2_umulhrswv16hi3): Likewise.
1428 (avx2_packusdw): Likewise.
1429 (avx2_pblendd<mode>): Likewise.
1430 (avx2_<code>v16qiv16hi2): Likewise.
1431 (avx2_<code>v8qiv8si2): Likewise.
1432 (avx2_<code>v8hiv8si2): Likewise.
1433 (avx2_<code>v4qiv4di2): Likewise.
1434 (avx2_<code>v4hiv4di2): Likewise.
1435 (avx2_<code>v4siv4di2): Likewise.
1436 (avx2_pbroadcast<mode>): Likewise.
1437 (avx2_permvarv8si): Likewise.
1438 (avx2_permv4df): Likewise.
1439 (avx2_permvarv8sf): Likewise.
1440 (avx2_permv4di): Likewise.
1441 (avx2_permv2ti): Likewise.
1442 (avx2_vec_dupv4df): Likewise.
1443 (avx2_vbroadcasti128_<mode>): Likewise.
1444 (avx2_vec_set_lo_v4di): Likewise.
1445 (avx2_vec_set_hi_v4di): Likewise.
1446 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1447 (avx2_extracti128): Likewise.
1448 (avx2_inserti128): Likewise.
1449 (avx2_ashrvv8si): Likewise.
1450 (avx2_ashrvv4si): Likewise.
1451 (avx2_<lshift>vv8si): Likewise.
1452 (avx2_<lshift>v<mode>): Likewise.
1453 (avx2_<lshift>vv2di): Likewise.
1454 (avx2_gathersi<mode>): Likewise.
1455 (*avx2_gathersi<mode>): Likewise.
1456 (avx2_gatherdi<mode>): Likewise.
1457 (*avx2_gatherdi<mode>): Likewise.
1458 (avx2_gatherdi<mode>256): Likewise.
1459 (*avx2_gatherdi<mode>256): Likewise.
1460 (<plusminus_insn><mode>3): Use VI mode iterator.
1461 (*<plusminus_insn><mode>3): Use VI mode iterator.
1462 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1463 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
1464 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1465 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
1466 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
1467 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
1468 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1469 Use VI2_AVX2 mode iterator.
1470 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1471 Use VI2_AVX2 mode iterator.
1472 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
1473 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
1474 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1475 Use VI4_AVX2 mode iterator.
1476 (ashr<mode>3): Use VI24_AVX2 mode iterator.
1477 (lshr<mode>3): Use VI248_AVX2 mode iterator.
1478 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1479 Use VIMAX_AVX2 mode iterator.
1480 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1481 Use VI mode iterator.
1482 (*andnot<mode>3): Update for AVX2.
1483 (*<any_logic:code><mode>3): Likewise.
1484 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1485 Use VI1_AVX mode iterator.
1486 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
1487 Use VI2_AVX mode iterator.
1488 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1489 Use VI1_AVX mode iterator.
1490 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1491 Use VI8_AVX2 mode iterator.
1492 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1493 Use VI1_AVX2 mode iterator.
1494 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1495 Use VI124_AVX2 mode iterator.
1496 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1497 Use SSESCALARMODE mode iterator.
1498 (abs<mode>2): Use VI124_AVX2 mode iterator.
1499 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1500 Use VI8_AVX2 mode iterator.
1501 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1502 Use VI1_AVX2 mode iterator.
1503 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1504 Use VI1_AVX2 mode iterator.
1505 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1506 Use VI2_AVX2 mode iterator.
1507 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1508 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1509 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1510 avx_maskstore<ssemodesuffix><avxsizesuffix>.
1511 Use V48_AVX2 mode iterator.
1512 * doc/extend.texi: Document AVX2 built-in functions.
1513 * doc/invoke.texi: Document -mavx2.
1515 2011-08-22 Matthias Klose <doko@debian.org>
1518 2011-07-11 Arthur Loiret <aloiret@debian.org>
1519 Matthias Klose <doko@debian.org>
1520 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1521 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1523 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1525 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
1528 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1529 to #ifndef HONOR_REG_ALLOC_ORDER block.
1531 2011-08-21 Richard Henderson <rth@redhat.com>
1533 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1534 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1535 * resource.c (next_insn_no_annul): Likewise.
1536 (mark_set_resources): Likewise.
1537 * reorg.c (delete_from_delay_slot): Likewise.
1538 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1539 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1541 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
1543 * config/i386/i386.md (any_div): Remove.
1544 (sgnprefix): Update for removal.
1547 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
1549 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1550 for ira_reg_class_max_nregs. Increase pressure by 1.
1551 (mark_pseudo_regno_subword_dead): Use allocno class
1552 for ira_reg_class_max_nregs.
1554 2011-08-20 Richard Henderson <rth@redhat.com>
1556 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1557 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1558 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1559 config/c6x/ltf.c: Adjust include path for soft-fp.
1561 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
1564 * config.gcc (tm_file): Add initfini-array.h if
1565 .init_arrary/.fini_array are supported.
1567 * crtstuff.c: Don't generate .ctors nor .dtors sections if
1568 USE_INITFINI_ARRAY is defined.
1570 * output.h (default_elf_init_array_asm_out_constructor): New.
1571 (default_elf_fini_array_asm_out_destructor): Likewise.
1572 * varasm.c (elf_init_array_section): Likewise.
1573 (elf_fini_array_section): Likewise.
1574 (get_elf_initfini_array_priority_section): Likewise.
1575 (default_elf_init_array_asm_out_constructor): Likewise.
1576 (default_elf_fini_array_asm_out_destructor): Likewise.
1578 * config/initfini-array.h: New.
1580 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
1582 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1583 OK for ST_REGS and FP_REGS before taking those classes into account.
1585 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
1587 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1588 before checking for annulled branches.
1590 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
1592 * config/i386/i386.c (ix86_binary_operator_ok): Use
1593 satisfies_constraint_L.
1595 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
1596 Michael Matz <matz@suse.de>
1598 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1599 trunc (a + copysign (nextafter (0.5, 0.0), a)).
1601 2011-08-20 Anatoly Sokolov <aesok@post.ru>
1603 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1604 * doc/tm.texi: Regenerate.
1605 * targhooks.c (default_preferred_output_reload_class): Don't use
1606 PREFERRED_OUTPUT_RELOAD_CLASS macro.
1607 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1609 2011-08-20 Jakub Jelinek <jakub@redhat.com>
1611 PR tree-optimization/48739
1612 * tree-ssa.c: Include cfgloop.h.
1613 (execute_update_addresses_taken): When updating ssa, if in loop closed
1614 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1615 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1617 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
1619 PR rtl-optimization/49936
1620 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1621 for calculation of max register move costs.
1623 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1625 * c-parser.c (c_parser_postfix_expression): Convert operands of
1626 __builtin_complex to their semantic types.
1628 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1631 * explow.c (convert_memory_address_addr_space): Also permute the
1632 conversion and addition of constant for zero-extend.
1634 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1636 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1637 * doc/extend.texi (__builtin_complex): Document.
1639 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1641 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1643 (convert_mult_to_widen): Convert constant inputs to the right type.
1644 (convert_plusminus_to_widen): Don't automatically reject inputs that
1645 are not an SSA_NAME.
1646 Convert constant inputs to the right type.
1648 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1650 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1651 to the correct type.
1653 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1655 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1656 unsigned inputs of different modes.
1657 (convert_plusminus_to_widen): Likewise.
1659 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1661 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1663 Use 'type' from caller, not inferred from 'rhs'.
1664 Don't reject non-conversion statements. Do return lhs in this case.
1665 (is_widening_mult_p): Add new argument 'type'.
1666 Use 'type' from caller, not inferred from 'stmt'.
1667 Pass type to is_widening_mult_rhs_p.
1668 (convert_mult_to_widen): Pass type to is_widening_mult_p.
1669 (convert_plusminus_to_widen): Likewise.
1671 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1673 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1674 Ensure the the larger type is the first operand.
1676 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1678 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1679 unsupported unsigned multiplies to signed.
1680 (convert_plusminus_to_widen): Likewise.
1682 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1684 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1685 conversion statement separating multiply-and-accumulate.
1687 2011-08-19 Richard Guenther <rguenther@suse.de>
1689 PR tree-optimization/50067
1690 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1691 offset only if we accounted for it.
1693 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1695 * config/arm/arm.md (maddhidi4): Remove '*' from name.
1696 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1697 * optabs.c (find_widening_optab_handler_and_mode): New function.
1698 (expand_widen_pattern_expr): Use find_widening_optab_handler.
1699 (expand_binop_directly): Likewise.
1700 (expand_binop): Likewise.
1701 * optabs.h (find_widening_optab_handler): New macro define.
1702 (find_widening_optab_handler_and_mode): New prototype.
1703 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1704 type precision rules.
1705 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1706 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1707 (is_widening_mult_rhs_p): Allow widening by more than one mode.
1708 Explicitly disallow mis-matched input types.
1709 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1710 input types to fit the new handler.
1711 (convert_plusminus_to_widen): Likewise.
1713 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1715 * expr.c (expand_expr_real_2): Use widening_optab_handler.
1716 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1717 (gen_insn): $N now means $a must be wider than $b, not consecutive.
1718 * optabs.c (widened_mode): New function.
1719 (expand_widen_pattern_expr): Use widening_optab_handler.
1720 (expand_binop_directly): Likewise.
1721 (expand_binop): Likewise.
1722 * optabs.h (widening_optab_handlers): New struct.
1723 (optab_d): New member, 'widening'.
1724 (widening_optab_handler): New function.
1725 (set_widening_optab_handler): New function.
1726 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1727 widening_optab_handler.
1728 (convert_plusminus_to_widen): Likewise.
1730 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1732 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1734 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1735 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1737 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1739 * opth-gen.awk: Do not declare target save/restore structures and
1740 functions if IN_RTS defined.
1742 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1745 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1746 when stack was realigned in interrupt handler prologue.
1748 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1750 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1751 (quals_from_declspecs): Assert _Noreturn not present.
1752 (grokdeclarator): Handle _Noreturn.
1753 (build_null_declspecs): Initialize noreturn_p.
1754 (declspecs_add_scspec): Handle RID_NORETURN.
1755 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1756 (c_parser_attributes): Handle RID_NORETURN.
1757 * c-tree.h (struct c_declspecs): Add noreturn_p.
1758 * ginclude/stdnoreturn.h: New.
1759 * Makefile.in (USER_H): Add stdnoreturn.h.
1761 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
1763 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1764 (OPTION_MASK_ISA_AVX_UNSET): Update.
1765 (OPTION_MASK_ISA_AVX2_UNSET): New.
1766 (ix86_handle_option): Handle OPT_mavx2 case.
1767 * config/i386/cpuid.h (bit_AVX2): New.
1768 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1770 * config/i386/i386-c.c (ix86_target_macros_internal):
1771 Conditionally define __AVX2__.
1772 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1773 Define "core-avx2" processor alias. Handle avx2 option.
1774 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1775 * config/i386/i386.h (TARGET_AVX2): New.
1776 * config/i386/i386.opt (mavx2): New.
1777 * doc/invoke.texi: Document -mavx2.
1779 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
1781 PR rtl-optimization/49890
1782 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1783 subclasses of class which is superset of a pressure class.
1785 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
1786 Igor Zamyatin <igor.zamyatin@intel.com>
1788 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1789 with HOST_WIDE_INT for isa_flag.
1790 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1793 * config/i386/i386.c (ix86_target_string): Replace int with
1794 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
1795 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1796 (pta_flags): Removed.
1797 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1798 (pta): Use HOST_WIDE_INT on flags.
1799 (builtin_isa): Use HOST_WIDE_INT on isa.
1800 (ix86_add_new_builtins): Likewise.
1801 (def_builtin): Use HOST_WIDE_INT on mask.
1802 (def_builtin_const): Likewise.
1803 (builtin_description): Likewise.
1805 * config/i386/i386.opt (ix86_isa_flags): Replace int with
1807 (ix86_isa_flags_explicit): Likewise.
1808 (x_ix86_isa_flags_explicit): Likewise.
1810 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
1812 PR rtl-optimization/50107
1813 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1814 (ira_hard_reg_in_set_p): New.
1816 * ira-color.c (calculate_saved_nregs): New.
1817 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
1819 (allocno_reload_assign, fast_allocation): Use
1820 ira_hard_reg_set_intersection_p instead of
1821 ira_hard_reg_not_in_set_p.
1823 * ira.c (setup_reg_renumber): Use
1824 ira_hard_reg_set_intersection_p instead of
1825 ira_hard_reg_not_in_set_p.
1826 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1827 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1829 * ira-costs.c (ira_tune_allocno_costs): Use
1830 ira_hard_reg_set_intersection_p instead of
1831 ira_hard_reg_not_in_set_p.
1833 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
1834 Igor Zamyatin <igor.zamyatin@intel.com>
1836 * hwint.h (HOST_WIDE_INT_1): New.
1838 * opt-functions.awk (switch_bit_fields): Initialize the
1839 host_wide_int field.
1840 (host_wide_int_var_name): New.
1841 (var_type_struct): Check and return HOST_WIDE_INT.
1843 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1845 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1847 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
1848 check masks for HOST_WIDE_INT.
1850 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1851 (option_enabled): Likewise.
1852 (get_option_state): Likewise.
1854 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
1857 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1858 Marc Glisse <marc.glisse@normalesup.org>
1860 PR libstdc++-v3/1773
1861 * target.def (decl_mangling_context): New C++ hook.
1862 * doc/tm.texi: Regenerate.
1863 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1864 * config/sol2-protos.h: Group by source file.
1865 (solaris_cxx_decl_mangling_context): Declare.
1866 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1867 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1869 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1870 Add sol2-stubs.o to extra_objs.
1872 2011-08-18 Jakub Jelinek <jakub@redhat.com>
1875 * stor-layout.c (update_alignment_for_field): Don't ICE on
1876 packed flexible array members if ms_bitfield_layout_p.
1879 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1880 on the result before returning it.
1883 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1884 is a debug stmt, use location of the first non-debug stmt after it.
1886 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1888 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1889 (arm_size_rtx_costs): Likewise.
1891 2011-08-18 Richard Guenther <rguenther@suse.de>
1893 * tree.h (tree_int_cst_msb): Remove.
1894 * tree.c (tree_int_cst_msb): Likewise.
1895 (tree_int_cst_sign_bit): Move from ...
1896 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1898 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1900 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1901 * doc/tm.texi: Regenerate.
1902 * target.def (rtx_costs): Add an opno parameter.
1903 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1904 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1905 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1906 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1907 * cse.c (COST_IN): Add an opno parameter.
1908 (notreg_cost): Likewise. Update call to rtx_cost.
1909 (COST, fold_rtx): Update accordingly.
1910 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1911 * expmed.c (emit_store_flag): Likewise.
1912 * optabs.c (avoid_expensive_constant): Add an opno parameter.
1913 Update call to rtx_cost.
1914 (expand_binop_directly, expand_binop): Likewise.
1915 (expand_twoval_binop, prepare_cmp_insn): Likewise.
1916 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1917 (set_src_cost, get_full_set_src_cost): Update accordingly.
1918 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
1920 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
1921 (default_adress_cost): Update calls to rtx_cost.
1923 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1924 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1925 (arm_rtx_costs): Add an opno parameter.
1926 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1927 adjust any recursive rtx-cost calls.
1928 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1929 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1930 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1931 * config/cris/cris.c (cris_rtx_costs): Likewise.
1932 * config/frv/frv.c (frv_rtx_costs): Likewise.
1933 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1934 * config/i386/i386.c (ix86_rtx_costs): Likewise.
1935 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1936 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1937 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1938 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1939 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1940 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1941 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1942 * config/mep/mep.c (mep_rtx_cost): Likewise.
1943 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1944 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1945 (mips_zero_extend_cost): Add an opno parameter.
1946 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1947 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1949 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1951 * config/pa/pa.c (hppa_rtx_costs): Likewise.
1952 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1953 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1954 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1955 (rs6000_debug_rtx_costs): Likewise.
1956 * config/s390/s390.c (s390_rtx_costs): Likewise.
1957 * config/score/score-protos.h (score_rtx_costs): Likewise.
1958 * config/score/score.c (score_rtx_costs): Likewise.
1959 * config/sh/sh.c (andcosts): Update call to rtx_cost.
1960 (sh_rtx_costs): Add an opno parameter.
1961 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1962 * config/spu/spu.c (spu_rtx_costs): Likewise.
1963 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1964 * config/v850/v850.c (v850_rtx_costs): Likewise.
1965 * config/vax/vax.c (vax_rtx_costs): Likewise.
1966 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1968 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1970 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1971 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1973 * calls.c (precompute_register_parameters): Likewise.
1974 * combine.c (expand_compound_operation, make_extraction): Likewise.
1975 (force_to_mode, distribute_and_simplify_rtx): Likewise.
1976 * dse.c (find_shift_sequence): Likewise.
1977 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1978 * expr.c (compress_float_constant): Likewise.
1979 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1980 * gcse.c (want_to_gcse_p): Likewise.
1981 * ifcvt.c (noce_try_sign_mask): Likewise.
1982 * loop-doloop.c (doloop_optimize): Likewise.
1983 * loop-invariant.c (create_new_invariant): Likewise.
1984 * optabs.c (avoid_expensive_constant): Likewise.
1985 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1986 (try_replace_in_use, reload_cse_move2add): Likewise.
1987 * reload1.c (calculate_elim_costs_all_insns): Likewise.
1988 (note_reg_elim_costly): Likewise.
1989 * rtlanal.c (insn_rtx_cost): Likewise.
1990 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1991 * stmt.c (lshift_cheap_p): Likewise.
1992 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1993 * config/avr/avr.c (final_prescan_insn): Likewise.
1994 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1995 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1997 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1999 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2000 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2001 * cfgloopanal.c (seq_cost): Likewise.
2002 * loop-invariant.c (create_new_invariant): Likewise.
2003 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2004 (reload_cse_move2add): Use get_full_set_rtx_cost.
2006 2011-08-18 Richard Guenther <rguenther@suse.de>
2008 * expr.c (get_inner_reference): Fix typo in last change.
2010 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2011 Joseph Myers <joseph@codesourcery.com>
2013 PR tree-optimization/49963
2014 * hwint.c (absu_hwi): Define.
2015 * hwint.h (absu_hwi): Declare.
2016 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2018 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2019 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2021 2011-08-18 Richard Guenther <rguenther@suse.de>
2023 * expr.c (get_inner_reference): Sign-extend the constant
2024 twos-complement offset before doing arbitrary precision
2026 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2027 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2028 to get_constraint_for_ptr_offset.
2030 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
2033 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2035 2011-08-17 Richard Guenther <rguenther@suse.de>
2037 * tree.h (convert_to_ptrofftype_loc): New function.
2038 (convert_to_ptrofftype): Define.
2039 * builtins.c (expand_builtin_bzero): Use size_type_node.
2040 (fold_builtin_bzero): Likewise.
2041 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2042 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2043 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2044 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2045 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2046 * fold-const.c (build_range_check): Negate using the original type.
2047 (fold_unary_loc): Use fold_build_pointer_plus_loc.
2048 * gimple-fold.c (gimple_adjust_this_by_delta): Use
2049 convert_to_ptrofftype.
2050 * gimplify.c (gimplify_self_mod_expr): Likewise.
2051 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2052 (graphite_create_new_loop_guard): Likewise.
2053 * graphite-sese-to-poly.c (my_long_long): Remove.
2054 (scop_ivs_can_be_represented): Adjust.
2055 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2056 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2057 * tree-loop-distribution.c (build_size_arg_loc): Use
2059 (generate_memset_zero): Simplify.
2060 * tree-mudflap.c: Use fold_convert, not convert.
2061 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2063 (determine_offset): Likewise for DR_STEP.
2064 (valid_initializer_p): Likewise.
2065 * tree-profile.c (prepare_instrumented_value): Convert the pointer
2066 to an integer type of same size.
2067 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2068 to sizetype without need.
2069 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2070 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2071 * tree-ssa-loop-manip.c (create_iv): Likewise.
2072 (determine_exit_conditions): Adjust comment.
2073 * tree-ssa-pre.c (create_expression_by_pieces): Use
2074 convert_to_ptrofftype.
2075 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2076 * varasm.c (array_size_for_constructor): Compute using double_ints.
2078 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2080 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2081 when generating an integer result where possible. Short-cut
2082 comparison against 0 also for QImode.
2084 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2086 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2087 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2089 * config/spu/spu.c (spu_legitimize_reload_address): New function.
2090 (spu_legitimate_address_p): Do not check displacement if the base
2091 is an eliminable stack register.
2093 2011-08-16 Anatoly Sokolov <aesok@post.ru>
2095 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2096 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2097 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2098 m32c_preferred_output_reload_class): Remove.
2099 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2100 Change rclass argument and return types to reg_class_t. Use
2101 reg_class_subset_p instead of class_sizes.
2102 (m32c_preferred_output_reload_class): Make static. Change rclass
2103 argument and return types to reg_class_t.
2104 (TARGET_PREFERRED_RELOAD_CLASS,
2105 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2107 2011-08-16 Kai Tietz <ktietz@redhat.com>
2109 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2111 2011-08-16 Richard GUenther <rguenther@suse.de>
2113 PR tree-optimization/50082
2114 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2115 warnings here, instead of ...
2116 (ssa_forward_propagate_and_combine): ... here.
2117 (forward_propagate_into_comparison_1): Adjust.
2118 (forward_propagate_into_comparison): Likewise.
2119 (forward_propagate_into_gimple_cond): Likewise.
2120 (forward_propagate_into_cond): Likewise.
2122 2011-08-16 Andreas Schwab <schwab@redhat.com>
2124 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2125 instead of ggc_alloc_zone_vec_rtvec_def.
2127 2011-08-16 Richard Guenther <rguenther@suse.de>
2129 * tree.h (ptrofftype_p): New helper function.
2130 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2131 offset verification.
2132 (verify_gimple_assign_binary): Likewise.
2133 * tree.c (build2_stat): Likewise.
2134 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2135 (reset_evolution_in_loop): Likewise.
2136 * tree-chrec.h (build_polynomial_chrec): Likewise.
2138 2011-08-16 Liang Wang <lwang1@marvell.com>
2140 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2141 ggc_alloc_zone_vec_rtvec_def.
2143 2011-08-16 Richard Guenther <rguenther@suse.de>
2145 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2146 helper factored out from ...
2147 (extract_range_from_binary_expr_1): ... here. Re-structure
2148 to not glob handling too different tree codes.
2150 2011-08-15 Richard Henderson <rth@redhat.com>
2153 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2154 setting out to include allocate_stack named pattern as well.
2155 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2156 * stmt.c (expand_stack_restore): Likewise.
2158 2011-08-15 Richard Guenther <rguenther@suse.de>
2161 * fold-const.c (maybe_canonicalize_comparison_1): Properly
2162 convert the modified operand to the other operand type.
2163 (fold_comparison): Call maybe_canonicalize_comparison_1 with
2164 useless conversions stripped from comparison operands.
2166 2011-08-15 Richard Guenther <rguenther@suse.de>
2168 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2169 (extract_range_from_unary_expr_1): Restructure.
2171 2011-08-15 Richard Guenther <rguenther@suse.de>
2173 PR tree-optimization/50058
2174 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2177 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2180 * config/arm/arm.c (output_move_double): Add 2 parameters
2181 to count the number of insns emitted and whether to emit or not.
2182 Use the flag to decide when to emit and count number of instructions
2183 that will be emitted.
2184 Handle case where output_move_double might be called for calculating
2185 lengths with an invalid constant.
2186 (arm_count_output_move_double_insns): Define.
2187 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2188 (output_move_double): Adjust prototype.
2189 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2191 ("*movdi_vfp_cortexa8"): Likewise and add attribute
2193 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2194 ("*movdf_soft_insn"): Likewise.
2195 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2196 ("*cirrus_thumb2_movdi"): Likewise.
2197 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2198 ("*cirrus_movdf_hard_insn"): Likewise.
2199 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2200 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2201 ("mov<mode>_internal VMMX"): Likewise.
2202 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2204 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
2206 * config/i386/i386.c (ix86_expand_round_sse4): New function.
2207 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2208 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2211 (rint<mode>2): Simplify TARGET_ROUND check.
2212 (floor<mode>2): Ditto.
2213 (ceil<mode>2): Ditto.
2214 (btrunc<mode>2): Ditto.
2216 2011-08-14 Anatoly Sokolov <aesok@post.ru>
2218 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2219 as mmix_preferred_output_reload_class.
2221 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
2224 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2225 (branch_unspec): New insn.
2226 (branch): Beauty farm.
2227 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
2229 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2230 New static functions.
2231 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
2232 Use CONST_INT_P. Beauty.
2234 2011-08-12 Richard Henderson <rth@redhat.com>
2237 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2238 * sched-deps.c (init_deps): Clear it.
2239 (deps_analyze_insn): Consume it.
2240 (sched_analyze_insn): Fill it.
2242 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2245 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2246 for tbh instructions.
2248 2011-08-12 Diego Novillo <dnovillo@google.com>
2250 * data-streamer.h (streamer_write_zero): Rename from output_zero.
2251 (streamer_write_uhwi): Rename from lto_output_uleb128.
2252 (streamer_write_hwi): Rename from output_sleb128.
2253 (streamer_write_string): Rename from lto_output_string.
2254 (streamer_string_index): Rename from lto_string_index.
2255 (streamer_write_string_with_length): Rename from
2256 lto_output_string_with_length.
2257 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2258 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2259 (streamer_read_string): Rename from lto_input_string.
2260 (streamer_read_indexed_string): Rename from input_string_internal.
2261 (streamer_read_uhwi): Rename from lto_input_uleb128.
2262 (streamer_read_hwi): Rename from lto_input_sleb128.
2263 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2264 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2265 (streamer_write_enum): Rename from lto_output_enum.
2266 (streamer_read_enum): Rename from lto_input_enum.
2267 (streamer_write_record_start): Rename from output_record_start.
2268 (streamer_read_record_start): Rename from input_record_start.
2269 (streamer_write_bitpack): Rename from lto_output_bitpack.
2270 (streamer_read_bitpack): Rename from lto_input_bitpack.
2271 (streamer_write_char_stream): Rename from lto_output_1_stream.
2272 (streamer_read_uchar): Rename from lto_input_1_unsigned.
2273 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2274 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2275 (streamer_read_string_cst): Rename from input_string_cst.
2276 (streamer_read_chain): Rename from lto_input_chain.
2277 (streamer_alloc_tree): Rename from lto_materialize_tree.
2278 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2279 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2280 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2281 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2282 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2283 (streamer_write_chain): Rename from lto_output_chain.
2284 (streamer_write_tree_header): Rename from lto_output_tree_header.
2285 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2286 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2287 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2288 (streamer_write_builtin): Rename from lto_output_builtin_tree.
2289 (streamer_check_handled_ts_structures): Rename from
2290 check_handled_ts_structures.
2291 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2292 (streamer_tree_cache_insert_at): Rename from
2293 lto_streamer_cache_insert_at.
2294 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2295 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2296 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2297 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2298 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2299 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2300 (write_identifier): Rename from output_identifier.
2301 (write_ts_common_tree_pointers): Rename from
2302 lto_output_ts_common_tree_pointers.
2303 (write_ts_vector_tree_pointers): Rename from
2304 lto_output_ts_vector_tree_pointers.
2305 (write_ts_complex_tree_pointers): Rename from
2306 lto_output_ts_complex_tree_pointers.
2307 (write_ts_decl_minimal_tree_pointers): Rename from
2308 lto_output_ts_decl_minimal_tree_pointers.
2309 (write_ts_decl_common_tree_pointers): Rename from
2310 lto_output_ts_decl_common_tree_pointers.
2311 (write_ts_decl_non_common_tree_pointers): Rename from
2312 lto_output_ts_decl_non_common_tree_pointers.
2313 (write_ts_decl_with_vis_tree_pointers): Rename from
2314 lto_output_ts_decl_with_vis_tree_pointers.
2315 (write_ts_field_decl_tree_pointers): Rename from
2316 lto_output_ts_field_decl_tree_pointers.
2317 (write_ts_function_decl_tree_pointers): Rename from
2318 lto_output_ts_function_decl_tree_pointers.
2319 (write_ts_type_common_tree_pointers): Rename from
2320 lto_output_ts_type_common_tree_pointers.
2321 (write_ts_type_non_common_tree_pointers): Rename from
2322 lto_output_ts_type_non_common_tree_pointers.
2323 (write_ts_list_tree_pointers): Rename from
2324 lto_output_ts_list_tree_pointers.
2325 (write_ts_vec_tree_pointers): Rename from
2326 lto_output_ts_vec_tree_pointers.
2327 (write_ts_exp_tree_pointers): Rename from
2328 lto_output_ts_exp_tree_pointers.
2329 (write_ts_block_tree_pointers): Rename from
2330 lto_output_ts_block_tree_pointers.
2331 (write_ts_binfo_tree_pointers): Rename from
2332 lto_output_ts_binfo_tree_pointers.
2333 (write_ts_constructor_tree_pointers): Rename from
2334 lto_output_ts_constructor_tree_pointers.
2335 (write_ts_target_option): Rename from lto_output_ts_target_option.
2336 (write_ts_translation_unit_decl_tree_pointers): Rename from
2337 lto_output_ts_translation_unit_decl_tree_pointers.
2338 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2339 Rename from lto_streamer_cache_add_to_node_array.
2340 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2341 (record_common_node): Rename from lto_record_common_node.
2343 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2345 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2347 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2349 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2350 (ipa-reference.o): Likewise.
2351 * lto-section-out.c: Include data-streamer.h.
2352 * ipa-reference.c: Include data-streamer.h.
2354 2011-08-12 Nick Clifton <nickc@redhat.com>
2356 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2357 * doc/md.texi (cmpstrn): Note that the comparison stops if both
2358 fetched bytes are zero.
2360 (cmpmem): Note that the comparison does not stop if both of the
2361 fetched bytes are zero.
2363 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
2365 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2366 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2367 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2368 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2369 to integer_type_node.
2370 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2371 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2372 * builtins.c (expand_builtin_in): Ditto.
2373 (mathfn_built_in_1): Ditto.
2374 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2376 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2378 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2379 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2380 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2382 2011-08-12 Richard Guenther <rguenther@suse.de>
2384 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2386 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
2388 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2390 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
2392 * config/arm/arm.c (get_label_padding): New function.
2393 (create_fix_barrier, arm_reorg): Use it.
2395 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
2398 * config/i386/i386.md (*lea_5_zext): New.
2399 (*lea_6_zext): Ditto.
2400 * config/i386/predicates.md (const_32bit_mask): New predicate.
2401 (lea_address_operand): Reject AND.
2402 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2403 const_32bit_mask immediate.
2404 (ix86_print_operand_address): Handle AND.
2405 (memory_address_length): Ditto.
2407 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
2408 Brian Hackett <bhackett1024@gmail.com>
2410 * plugin.def: Add event for finish_decl.
2411 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2412 * c-decl.c (finish_decl): Invoke callbacks on above event.
2413 * doc/plugins.texi: Document above event.
2415 2011-08-11 Richard Guenther <rguenther@suse.de>
2417 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2418 lookups, make looking through aggregate copies stronger.
2420 2011-08-11 Richard Henderson <rth@redhat.com>
2423 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2425 2011-08-11 Richard Guenther <rguenther@suse.de>
2427 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2428 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2429 (vrp_visit_stmt): Likewise.
2431 2011-08-11 Richard Guenther <rguenther@suse.de>
2434 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2435 load of the other piece with TREE_NO_WARNING.
2436 * tree-flow.h (warn_uninit): Adjust prototype.
2437 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2438 the base variable and the expression that is used separately.
2439 Properly query all TREE_NO_WARNING flags.
2440 (struct walk_data): Remove.
2441 (warn_uninitialized_var): Likewise.
2442 (warn_uninitialized_vars): Do not walk gimple pieces but simply
2443 look at all SSA uses of the statement. Handle unused memory
2445 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2447 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
2449 * config/rx/rx.md (movsicc): Allow register to register transfers.
2450 (*movsicc): Likewise.
2451 (*stcc): Restrict this pattern to EQ and NE compares.
2452 (*stcc_reg): New pattern. Works for any comparison but only for
2455 2011-08-11 Diego Novillo <dnovillo@google.com>
2457 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2458 Call stream_write_tree instead of output_record_start.
2459 (lto_output_ts_binfo_tree_pointers): Likewise.
2461 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2462 Convert it to a macro.
2463 (stream_read_tree): Likewise.
2465 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2466 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2468 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2469 and tree_read_bitfields.
2470 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2471 (lto_write_tree): Call it.
2472 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2473 * streamer-hooks.h (struct streamer_hooks): Remove fields
2474 name, is_streamable and alloc_tree. Update all users.
2475 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2476 (lto_materialize_tree): ... here.
2477 Handle CALL_EXPR codes.
2478 Remove call to lto_streamer_cache_append.
2479 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2480 * tree-streamer.h (tree_read_bitfields): Declare.
2482 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2483 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2484 * tree-streamer.h (stream_read_tree): New. Replace all calls
2485 to lto_input_tree with it.
2486 (stream_write_tree): New. Replace all calls to lto_output_tree,
2487 lto_output_tree_ref and lto_output_tree_or_ref with it.
2488 * lto-streamer-in.c (lto_read_tree): Inline code from
2489 lto_streamer_read_tree.
2490 (lto_input_tree): Move from tree-streamer-in.c.
2491 * lto-streamer-out.c (lto_output_tree_ref): Make static.
2492 Remove handling of NULL values for EXPR.
2493 Do not handle EXPRs that are not indexable.
2494 (lto_write_tree): Move from tree-streamer-out.c.
2495 Inline lto_streamer_write_tree.
2496 (lto_output_tree): Move from tree-streamer-out.c.
2497 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2498 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2499 (lto_preload_common_nodes): Likewise.
2500 Remove assertions and adjustments for nodes
2501 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2502 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2503 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2504 * lto-streamer.h (lto_input_tree): Declare.
2505 (lto_output_tree_ref): Remove.
2506 * streamer-hooks.h (struct streamer_hooks): Remove fields
2507 preload_common_nodes, indexable_with_decls_p,
2508 pack_value_fields, unpack_value_fields and output_tree_header.
2510 * tree-streamer-in.c (lto_materialize_tree): Make extern.
2511 (lto_input_tree_pointers): Likewise.
2512 (lto_read_tree): Move to lto-streamer-in.c.
2513 (lto_input_integer_cst): Make extern.
2514 (lto_get_pickled_tree): Likewise.
2515 (lto_get_builtin_tree): Likewise.
2516 (lto_input_tree): Move to lto-streamer-in.c.
2517 * tree-streamer-out.c (pack_value_fields): Make extern.
2518 (lto_output_tree_or_ref): Remove. Replace all callers with
2519 calls to stream_write_tree.
2520 (lto_output_builtin_tree): Make extern.
2521 (lto_streamer_write_tree): Inline into lto_write_tree.
2522 (lto_output_tree_pointers): Make extern.
2523 (lto_output_tree_header): Likewise.
2524 (lto_output_integer_cst): Likewise.
2525 (lto_write_tree): Move to lto-streamer-out.c.
2526 (lto_output_tree): Likewise.
2527 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2528 (preload_common_nodes): Likewise.
2529 (lto_streamer_cache_create): Call it.
2530 * tree-streamer.h: Include streamer-hooks.h.
2531 (stream_write_tree): New.
2532 (stream_read_tree): New.
2533 (lto_input_tree): Remove.
2534 (lto_materialize_tree): Declare.
2535 (lto_input_tree_pointers): Declare.
2536 (lto_get_pickled_tree): Declare.
2537 (lto_get_builtin_tree): Declare.
2538 (lto_input_integer_cst): Declare.
2539 (lto_output_tree_header): Declare.
2540 (pack_value_fields): Declare.
2541 (lto_output_tree_pointers): Declare.
2542 (lto_output_integer_cst): Declare.
2543 (lto_output_builtin_tree): Declare.
2545 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2547 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2548 only if producer writes to the register given by regno.
2550 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2551 Alexander Monakov <amonakov@ispras.ru>
2553 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2554 (sched_get_condition_with_rev_uncached): ... this. Factor out
2555 condition caching logic into ...
2556 (sched_get_condition_with_rev): ... this. Reimplement. Do not
2557 attempt to use cache for instructions with zero luid.
2558 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2559 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2561 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2563 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2564 get_seqno_for_a_jump. Update the caller.
2565 (get_seqno_by_succs): New. Use it ...
2566 (get_seqno_for_a_jump): ... here to find a seqno if looking at
2567 predecessors was not sufficient.
2568 (get_seqno_by_preds): Include head in iteration range, exclude insn.
2570 2011-08-11 Dmitry Melnik <dm@ispras.ru>
2572 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2574 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2576 * sel-sched-ir.h (register_unavailable_p): Declare.
2577 * sel-sched-ir.c (register_unavailable_p): New. Use it...
2578 (set_unavailable_target_for_expr): ... here to properly test
2579 availability of a register.
2580 (speculate_expr): Ditto.
2581 * sel-sched.c (substitute_reg_in_expr): Ditto.
2582 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2584 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2586 * sel-sched.c (verify_target_availability): Fix usage of
2589 2011-08-11 Dmitry Melnik <dm@ispras.ru>
2591 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2592 recognized by cannot_copy_insn_p hook and volatile instructions.
2594 2011-08-11 Dmitry Melnik <dm@ispras.ru>
2596 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2598 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
2600 * doc/md.texi (define_bypass): Say that the instruction names can
2601 be filename-style globs.
2602 * Makefile.in (FNMATCH_H): Define.
2603 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2604 * genattrtab.c: Include fnmatch.h.
2605 (bypass_list): Change field name from "insn" to "pattern".
2606 (gen_bypass_1): Update accordingly.
2607 (process_bypasses): Use fnmatch to check for matches between
2608 insn reservations and define_bypasses.
2609 * genautomata.c: Include fnmatch.h.
2610 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2611 and out_pattern respectively.
2612 (gen_bypass, insert_bypass): Update accordingly.
2613 (for_each_matching_insn, process_bypass_2, process_bypass_1)
2614 (process_bypass): New functions.
2615 (process_decls): Use process_bypass. Update after field name changes.
2617 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
2620 * config/avr/avr.md (smulqi3_highpart): New insn.
2621 (umulqi3_highpart): New insn.
2622 (*subqi3.ashiftrt7): New insn.
2623 (smulhi3_highpart): New expander.
2624 (umulhi3_highpart): Nex expander.
2625 (*smulhi3_highpart_call): New insn.
2626 (*umulhi3_highpart_call): New insn.
2627 (extend_u): New code attribute.
2628 (extend_prefix): Rename code attribute to extend_su.
2629 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2630 widening QI/HI multiply.
2632 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
2634 PR tree-optimization/50039
2635 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2636 that DEF_STMT has a stmt_vec_info.
2638 2011-08-10 Richard Guenther <rguenther@suse.de>
2640 * tree.h (can_trust_pointer_alignment): Remove.
2641 * builtins.c (can_trust_pointer_alignment): Remove.
2643 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2645 * c-typeck.c (scalar_to_vector): New function. Try scalar to
2647 (stv_conv): New enum for scalar_to_vector return type.
2648 (build_binary_op): Adjust.
2649 * doc/extend.texi: Description of scalar to vector expansion.
2651 2011-08-10 Richard Guenther <rguenther@suse.de>
2653 * tree.h (get_pointer_alignment): Remove max-align argument.
2654 (get_object_alignment): Likewise.
2655 * builtins.c (get_object_alignment_1): Adjust.
2656 (get_object_alignment): Remove max-align argument.
2657 (get_pointer_alignment): Likewise.
2658 (expand_builtin_strlen): Adjust.
2659 (expand_builtin_memcpy): Likewise.
2660 (expand_builtin_mempcpy_args): Likewise.
2661 (expand_builtin_strncpy): Likewise.
2662 (expand_builtin_memset_args): Likewise.
2663 (expand_builtin_memcmp): Likewise.
2664 (expand_builtin_strcmp): Likewise.
2665 (expand_builtin_strncmp): Likewise.
2666 (get_builtin_sync_mem): Likewise.
2667 (fold_builtin_memset): Likewise.
2668 (fold_builtin_memory_op): Likewise.
2669 (expand_builtin_memory_chk): Likewise.
2670 * emit-rtl.c (get_mem_align_offset): Likewise.
2671 (set_mem_attributes_minus_bitpos): Likewise.
2672 * expr.c (expand_assignment): Likewise.
2673 (expand_expr_real_1): Likewise.
2674 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2675 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2676 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2677 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2678 * value-prof.c (gimple_stringops_transform): Likewise.
2680 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
2682 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2683 * doc/tm.texi: Regenerate.
2685 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
2688 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2689 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2690 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2691 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2692 shift target is unused.
2694 2011-08-10 Richard Guenther <rguenther@suse.de>
2696 PR tree-optimization/49937
2697 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2698 using get_object_alignment_1.
2700 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
2702 * config/i386/i386.c (ix86_emit_i387_round): New function.
2703 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2704 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2705 Use ix86_emit_i387_round to expand round function for i387 math.
2706 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2707 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2709 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2711 * config/sync.c: Move to ../libgcc.
2712 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2713 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2716 2011-08-09 Anatoly Sokolov <aesok@post.ru>
2718 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2719 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2720 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2721 Change 'from' and 'to' arguments type to reg_class_t.
2722 (TARGET_REGISTER_MOVE_COST): Define.
2724 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
2728 PR rtl-optimization/49990
2729 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2730 ignore classes which can not change mode.
2731 (find_costs_and_classes): Ditto.
2733 2011-08-09 Richard Guenther <rguenther@suse.de>
2735 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2736 information for ranges with only negative values.
2737 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2738 BIT_AND_EXPR handling to handle ranges with negative values.
2740 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
2742 * config/i386/i386.c: Remove traling spaces.
2743 * config/i386/sse.md: Likewise.
2744 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2745 (*fma_fmsub_<mode>): Likewise.
2746 (*fma_fnmadd_<mode>): Likewise.
2747 (*fma_fnmsub_<mode>): Likewise.
2749 2011-08-09 Nick Clifton <nickc@redhat.com>
2751 * config/rx/rx.md: Disable extender peepholes at -O3.
2753 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
2756 * config/i386/i386.md (reload_noff_load): New.
2757 (reload_noff_store): Ditto.
2758 * config/i386/i386.c (ix86_secondary_reload): Use
2759 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2760 double-word moves from/to non-offsetable addresses instead of
2761 generating XMM temporary.
2763 2011-08-09 Anatoly Sokolov <aesok@post.ru>
2765 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2767 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
2769 PR tree-optimization/50014
2770 * tree-vect-loop.c (vectorizable_reduction): Get def type before
2771 calling vect_get_vec_def_for_stmt_copy ().
2773 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
2775 PR rtl-optimization/49990
2776 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2777 ignore classes which can not change mode.
2778 (find_costs_and_classes): Ditto.
2780 2011-08-08 Richard Henderson <rth@redhat.com>
2783 * config/i386/i386.c (ix86_expand_prologue): Call
2784 for SEH target gen_prologue_use instead of gen_blockage
2787 2011-08-08 Martin Jambor <mjambor@suse.cz>
2790 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2793 2011-08-08 Diego Novillo <dnovillo@google.com>
2795 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2796 (DATA_STREAMER_H): New.
2797 (GIMPLE_STREAMER_H): New.
2798 (TREE_STREAMER_H): New.
2799 (STREAMER_HOOKS_H): New.
2800 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2801 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2802 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2803 (data-streamer.o): New.
2804 (data-streamer-in.o): New.
2805 (data-streamer-out.o): New.
2806 (gimple-streamer-in.o): New.
2807 (gimple-streamer-out.o): New.
2808 (streamer-hooks.o): New.
2809 (tree-streamer.o): New.
2810 (tree-streamer-in.o): New.
2811 (tree-streamer-out.o): New.
2812 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2813 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2814 GIMPLE_STREAMER_H and TREE_STREAMER_H.
2815 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2816 GIMPLE_STREAMER_H and TREE_STREAMER_H.
2817 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2818 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2819 (ipa-inline-analysis.o): Likewise.
2820 (ipa-pure-const.o): Likewise.
2821 * data-streamer-in.c: New.
2822 * data-streamer-out.c: New.
2823 * data-streamer.c: New.
2824 * data-streamer.h: New.
2825 * gimple-streamer-in.c: New.
2826 * gimple-streamer-out.c: New.
2827 * gimple-streamer.h: New.
2828 * ipa-inline-analysis.c: Include data-streamer.h.
2829 * ipa-prop.c: Include data-streamer.h.
2830 * ipa-pure-const.c: Include data-streamer.h.
2831 * lto-cgraph.c: Include data-streamer.h.
2832 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2833 (lto_input_widest_uint_uleb128): Likewise.
2834 (lto_input_sleb128): Likewise.
2835 (bp_unpack_var_len_unsigned): Likewise.
2836 (bp_unpack_var_len_int): Likewise.
2837 * lto-section-out.c (lto_output_uleb128_stream): Move to
2838 data-streamer-out.c.
2839 (lto_output_widest_uint_uleb128_stream): Likewise.
2840 (lto_output_sleb128_stream): Likewise.
2841 (bp_pack_var_len_unsigned): Likewise.
2842 (bp_pack_var_len_int): Likewise.
2843 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2844 (struct string_slot): Remove. Update all users.
2845 (lto_tag_check_set): Make extern.
2846 (lto_tag_check_range): Move to lto-streamer.h.
2847 (lto_tag_check): Likewise.
2848 (hash_string_slot_node): Remove. Update all users.
2849 (eq_string_slot_node): Remove. Update all users.
2850 (string_for_index): Move to data-streamer-in.c
2851 (input_string_internal): Likewise.
2852 (input_string_cst): Move to tree-streamer-in.c.
2853 (input_identifier): Likewise.
2854 (lto_input_string): Move to data-streamer-in.c
2855 (input_record_start): Move to data-streamer.h
2856 (canon_file_name): Use new definition of struct string_slot
2857 from data-streamer.h. Set S_SLOT.LEN.
2858 (lto_input_location): Make extern.
2859 (lto_input_chain): Move to tree-streamer-in.c.
2860 (lto_init_eh): Make extern.
2861 (input_phi): Move to gimple-streamer-in.c.
2862 (input_gimple_stmt): Likewise.
2863 (input_bb): Likewise.
2864 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2865 (unpack_ts_real_cst_value_fields): Likewise.
2866 (unpack_ts_fixed_cst_value_fields): Likewise.
2867 (unpack_ts_decl_common_value_fields): Likewise.
2868 (unpack_ts_decl_wrtl_value_fields): Likewise.
2869 (unpack_ts_decl_with_vis_value_fields): Likewise.
2870 (unpack_ts_function_decl_value_fields): Likewise.
2871 (unpack_ts_type_common_value_fields): Likewise.
2872 (unpack_ts_block_value_fields): Likewise.
2873 (unpack_ts_translation_unit_decl_value_fields): Likewise.
2874 (unpack_value_fields): Likewise.
2875 (lto_materialize_tree): Likewise.
2876 (lto_input_ts_common_tree_pointers): Likewise.
2877 (lto_input_ts_vector_tree_pointers): Likewise.
2878 (lto_input_ts_complex_tree_pointers): Likewise.
2879 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2880 (lto_input_ts_decl_common_tree_pointers): Likewise.
2881 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2882 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2883 (lto_input_ts_field_decl_tree_pointers): Likewise.
2884 (lto_input_ts_function_decl_tree_pointers): Likewise.
2885 (lto_input_ts_type_common_tree_pointers): Likewise.
2886 (lto_input_ts_type_non_common_tree_pointers): Likewise.
2887 (lto_input_ts_list_tree_pointers): Likewise.
2888 (lto_input_ts_vec_tree_pointers): Likewise.
2889 (lto_input_ts_exp_tree_pointers): Likewise.
2890 (lto_input_ts_block_tree_pointers): Likewise.
2891 (lto_input_ts_binfo_tree_pointers): Likewise.
2892 (lto_input_ts_constructor_tree_pointers): Likewise.
2893 (lto_input_ts_target_option): Likewise.
2894 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2895 (lto_input_tree_pointers): Likewise.
2896 (lto_get_pickled_tree): Likewise.
2897 (lto_get_builtin_tree): Likewise.
2898 (lto_read_tree): Likewise.
2899 (lto_input_integer_cst): Likewise.
2900 (lto_input_tree): Likewise.
2901 * lto-streamer-out.c: Include data-streamer.h,
2902 gimple-streamer.h and streamer-hooks.h.
2903 (struct string_slot): Move to data-streamer.h.
2904 (hash_string_slot_node): Likewise.
2905 (eq_string_slot_node): Likewise.
2906 (lto_string_index): Move to data-streamer-out.c.
2907 (lto_output_string_with_length): Likewise.
2908 (lto_output_string): Likewise.
2909 (output_string_cst): Move to tree-streamer-out.c.
2910 (output_identifier): Likewise.
2911 (output_zero): Move to data-streamer-out.c
2912 (output_uleb128): Likewise.
2913 (output_sleb128): Likewise.
2914 (output_record_start): Move to data-streamer.h
2915 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2916 (pack_ts_real_cst_value_fields): Likewise.
2917 (pack_ts_fixed_cst_value_fields): Likewise.
2918 (pack_ts_decl_common_value_fields): Likewise.
2919 (pack_ts_decl_wrtl_value_fields): Likewise.
2920 (pack_ts_decl_with_vis_value_fields): Likewise.
2921 (pack_ts_function_decl_value_fields): Likewise.
2922 (pack_ts_type_common_value_fields): Likewise.
2923 (pack_ts_block_value_fields): Likewise.
2924 (pack_ts_translation_unit_decl_value_fields): Likewise.
2925 (pack_value_fields): Likewise.
2926 (lto_output_chain): Likewise.
2927 (lto_output_ts_common_tree_pointers): Likewise.
2928 (lto_output_ts_vector_tree_pointers): Likewise.
2929 (lto_output_ts_complex_tree_pointers): Likewise.
2930 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2931 (lto_output_ts_decl_common_tree_pointers): Likewise.
2932 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2933 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2934 (lto_output_ts_field_decl_tree_pointers): Likewise.
2935 (lto_output_ts_function_decl_tree_pointers): Likewise.
2936 (lto_output_ts_type_common_tree_pointers): Likewise.
2937 (lto_output_ts_type_non_common_tree_pointers): Likewise.
2938 (lto_output_ts_list_tree_pointers): Likewise.
2939 (lto_output_ts_vec_tree_pointers): Likewise.
2940 (lto_output_ts_exp_tree_pointers): Likewise.
2941 (lto_output_ts_block_tree_pointers): Likewise.
2942 (lto_output_ts_binfo_tree_pointers): Likewise.
2943 (lto_output_ts_constructor_tree_pointers): Likewise.
2944 (lto_output_ts_target_option): Likewise.
2945 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2946 (lto_output_tree_pointers): Likewise.
2947 (lto_output_tree_header): Likewise.
2948 (lto_output_builtin_tree): Likewise.
2949 (lto_write_tree): Likewise.
2950 (lto_output_integer_cst): Likewise.
2951 (lto_output_tree): Likewise.
2952 (output_phi): Move to gimple-streamer-out.c.
2953 (output_gimple_stmt): Likewise.
2954 (output_bb): Likewise.
2955 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2956 (streamer_hooks): Move to streamer-hooks.c.
2957 (check_handled_ts_structures): Move to tree-streamer.c
2958 (lto_streamer_cache_add_to_node_array): Likewise.
2959 (lto_streamer_cache_insert_1): Likewise.
2960 (lto_streamer_cache_insert): Likewise.
2961 (lto_streamer_cache_insert_at): Likewise.
2962 (lto_streamer_cache_append): Likewise.
2963 (lto_streamer_cache_lookup): Likewise.
2964 (lto_streamer_cache_get): Likewise.
2965 (lto_record_common_node): Likewise.
2966 (lto_preload_common_nodes): Likewise.
2967 (lto_streamer_cache_create): Likewise.
2968 (lto_streamer_cache_delete): Likewise.
2969 (streamer_hooks_init): Move to streamer-hooks.c.
2970 * lto-streamer.h: Include diagnostic.h
2971 (struct output_block, struct lto_input_block,
2972 struct data_in, struct bitpack_d): Remove forward declarations.
2973 (struct bitpack_d): Move to data-streamer.h.
2974 (struct lto_streamer_cache_d): Move to tree-streamer.h.
2975 (struct streamer_hooks): Move to streamer-hooks.h.
2976 (bp_pack_var_len_unsigned): Move to data-streamer.h.
2977 (bp_pack_var_len_int): Likewise.
2978 (bp_unpack_var_len_unsigned): Likewise.
2979 (bp_unpack_var_len_int): Likewise.
2980 (lto_input_location): Declare.
2981 (lto_tag_check_set): Declare.
2982 (lto_init_eh): Declare.
2983 (lto_output_tree_ref): Declare.
2984 (lto_output_location): Declare.
2985 (bitpack_create): Move to data-streamer.h.
2986 (bp_pack_value): Likewise.
2987 (lto_output_bitpack): Likewise.
2988 (lto_input_bitpack): Likewise.
2989 (bp_unpack_value): Likewise.
2990 (lto_output_1_stream): Likewise.
2991 (lto_input_1_unsigned): Likewise.
2992 (lto_output_int_in_range): Likewise.
2993 (lto_input_int_in_range): Likewise.
2994 (bp_pack_int_in_range): Likewise.
2995 (bp_unpack_int_in_range): Likewise.
2996 (lto_output_enum): Likewise.
2997 (lto_input_enum): Likewise.
2998 (bp_pack_enum): Likewise.
2999 (bp_unpack_enum): Likewise.
3000 * streamer-hooks.c: New.
3001 * streamer-hooks.h: New.
3002 * tree-streamer-in.c: New.
3003 * tree-streamer-out.c: New.
3004 * tree-streamer.c: New.
3005 * tree-streamer.h: New.
3007 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3009 * gthr-posix95.h: Remove.
3010 * gthr.h [_PTHREADS95]: Remove.
3011 * configure.ac (enable_threads): Remove posix95.
3012 * configure: Regenerate.
3013 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3015 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
3018 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3020 (ix86_print_operand_address): Handle zero-extended addresses.
3021 (memory_address_length): Add length of addr32 prefix for
3022 zero-extended addresses.
3023 (ix86_secondary_reload): Handle moves to/from double-word general
3024 registers from/to zero-extended addresses.
3025 * config/i386/predicates.md (lea_address_operand): Reject
3026 zero-extended operands.
3028 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
3031 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3033 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3034 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3036 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3037 (_Unwind_Context_Reg_Val): Likewise.
3038 (_Unwind_Get_Unwind_Word): Likewise.
3039 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3040 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3041 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3042 for EXTENDED_CONTEXT_BIT.
3043 (__frame_state_for): Likewise.
3044 (uw_init_context_1): Likewise.
3045 (_Unwind_GetGR): Updated.
3046 (_Unwind_SetGR): Likewise.
3047 (_Unwind_GetGRPtr): Likewise.
3048 (_Unwind_SetGRPtr): Likewise.
3049 (_Unwind_SetGRValue): Likewise.
3050 (_Unwind_GRByValue): Likewise.
3051 (uw_install_context_1): Likewise.
3053 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3054 ASSUME_EXTENDED_UNWIND_CONTEXT.
3055 * doc/tm.texi: Regenerated.
3057 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3059 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3061 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3063 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3065 (DEC Alpha Options, -mtune): Likewise.
3066 (MIPS Options, -march): native is supported on IRIX.
3068 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3070 * config/sparc/driver-sparc.c: New file.
3071 * config/sparc/x-sparc: New file.
3072 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3073 * config/sparc/sparc.opt (native): New value for enum processor_type.
3074 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3075 * config/sparc/sparc.c (sparc_option_override): Abort if
3076 PROCESSOR_NATIVE gets here.
3077 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3078 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3079 DRIVER_SELF_SPECS): Define.
3080 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3081 (SPARC Options, -mtune): Likewise.
3082 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3084 * configure: Regenerate.
3085 * Makefile.in (EXTRA_GCC_LIBS): Set.
3086 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3087 (cpp$(exeext)): Likewise.
3089 2011-08-08 Richard Guenther <rguenther@suse.de>
3091 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3093 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
3096 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
3098 PR tree-optimization/50005
3099 * ipa-inline-analysis (remap_predicate): Add cast to
3100 silence signed/unsigned comparison warning.
3102 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3104 * modulo-sched.c (get_sched_window): Use a table for the debug output.
3105 Print the current ii.
3106 (sms_schedule_by_order): Reduce whitespace in dump line.
3108 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3110 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3111 and one loop for successors. Fix upper bound of memory range.
3113 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3116 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3117 (TARGET_INSTANTIATE_DECLS): New define.
3119 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
3120 Mikael Morin <mikael.morin@sfr.fr>
3122 * Makefile.in (INCLUDES_FOR_TARGET): New.
3123 (LIBGCC2_CFLAGS): Use it.
3124 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3126 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3128 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3129 frame->save_regs_using_mov calculation.
3131 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3133 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3134 * config/i386/sse.md (castmode): New mode attribute.
3135 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3136 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3138 2011-08-05 Jan Hubicka <jh@suse.cz>
3141 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3143 2011-08-05 Jan Hubicka <jh@suse.cz>
3146 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3148 (create_emultls_var):New function.
3149 (ipa_lower_emutls): Handle aliases correctly.
3151 2011-08-05 Jan Hubicka <jh@suse.cz>
3154 * ipa-inline.c (recursive_inlining): Look through aliases.
3156 2011-08-05 Jason Merrill <jason@redhat.com>
3158 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3159 declarations to beginning of function.
3161 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
3163 PR rtl-optimization/49900
3164 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3165 ensure basic blocks stay in the same order.
3167 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
3169 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3171 (s390_expand_atomic): Same.
3173 2011-08-05 Richard Henderson <rth@redhat.com>
3176 * dwarf2cfi.c (scan_insn_after): Split out of ...
3177 (scan_trace): ... here. Correctly place notes wrt sequences.
3179 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
3180 Richard Henderson <rth@redhat.com>
3183 * expr.c (fixup_args_size_notes): Look through no-op moves.
3185 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
3187 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3188 of "m" for operand 0. Add type and mode attribute.
3189 (*pushxf_nointeger"): Use "<" constraint for operand 0.
3190 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
3191 constraint instead of "o" for opreand 1.
3192 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
3193 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3194 operand 0, alternative 4.
3195 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3197 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
3199 * config/i386/predicates.md (lea_address_operand): Rename from
3200 no_seg_address_operand.
3201 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3202 (*lea_1_zext): Ditto.
3204 (*lea_2_zext): Ditto.
3206 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3209 parts.base and parts.index.
3210 * config/i386/predicates.md (aligned_operand): Ditto.
3211 (cmpxchg8b_pic_memory_operand): Ditto.
3213 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3215 * config/soft-fp: Move to ../libgcc.
3216 * Makefile.in (SFP_MACHINE): Remove.
3217 (libgcc-support): Remove $(SFP_MACHINE) dependency.
3218 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3219 * config/arm/t-arm-softfp: Move to
3220 ../libgcc/config/arm/t-softfp.
3221 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3222 * config/c6x/t-c6x-softfp: Remove.
3223 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3224 * config/i386/t-fprules-softfp: Move to
3225 ../libgcc/config/t-softfp-tf.
3226 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3227 * config/ia64/t-fprules-softfp: Remove.
3228 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3229 * config/lm32/t-fprules-softfp: Remove.
3230 * config/moxie/sfp-machine.h: Remove.
3231 * config/moxie/t-moxie-softfp: Remove.
3232 * config/rs6000/darwin-ldouble-format: Move to
3233 ../libgcc/config/rs6000/ibm-ldouble-format.
3234 * config/rs6000/darwin-ldouble.c: Move to
3235 ../libgcc/config/rs6000/ibm-ldouble.c
3236 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3237 * config/rs6000/libgcc-ppc64.ver: Likewise.
3238 * config/rs6000/sfp-machine.h: Likewise.
3239 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3240 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3241 (LIB2FUNCS_EXTRA): Remove.
3242 (TARGET_LIBGCC2_CFLAGS): Remove.
3243 * config/rs6000/t-aix52: Likewise
3244 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3245 $(srcdir)/config/rs6000/darwin-ldouble.c.
3246 (SHLIB_MAPFILES): Remove.
3247 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3248 $(srcdir)/config/rs6000/darwin-ldouble.c.
3249 * config/rs6000/t-fprules-softfp: Move to
3250 ../libgcc/config/t-softfp-sfdf.
3251 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3252 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3253 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3254 $(srcdir)/config/rs6000/darwin-ldouble.c.
3255 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3256 * config/score/t-score-softfp: Remove.
3257 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3258 soft-fp/t-softfp from tmake_file.
3259 (arm*-*-uclinux*): Likewise.
3260 (arm*-*-ecos-elf): Likewise.
3261 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3262 (arm*-*-rtems*): Likewise.
3263 (arm*-*-elf): Likewise.
3264 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3266 (moxie-*-uclinux*): Likewise.
3267 (moxie-*-rtems*): Likewise.
3268 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3270 (lm32-*-rtems*): Likewise.
3271 (lm32-*-uclinux*): Likewise.
3272 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3273 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3274 (powerpc-*-linux*, powerpc64-*-linux*): Remove
3275 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3276 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3278 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3280 (tic6x-*-uclinux): Likewise.
3281 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3282 soft-fp/t-softfp from tmake_file.
3283 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3284 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3285 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3286 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3287 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3289 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3291 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3292 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3293 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3295 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3296 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3298 * config/arm/t-vxworks: Likewise.
3299 * config/arm/t-wince-pe: Likewise.
3300 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3301 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3302 * config/bfin/t-bfin-elf: Likewise.
3303 * config/bfin/t-bfin-linux: Likewise.
3304 * config/bfin/t-bfin-uclinux: Likewise.
3305 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3307 * config/fr30/t-fr30: Likewise.
3308 * config/frv/t-frv: Likewise.
3309 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3310 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3311 * config/m32c/t-m32c: Likewise.
3312 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3313 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3314 * config/mcore/t-mcore: Likewise.
3315 * config/mep/t-mep: Likewise.
3316 * config/microblaze/t-microblaze: Likewise.
3317 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3318 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3319 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3320 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3321 * config/mn10300/t-linux: Remove.
3322 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3323 * config/pdp11/t-pdp11: Likewise.
3324 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3325 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3326 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3327 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3328 * config/rs6000/t-aix52: Likewise.
3329 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3330 $(srcdir)/config/rs6000/ppc64-fp.c.
3331 * config/rs6000/t-fprules-fpbit: Remove.
3332 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3333 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3334 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3335 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3336 * config/sparc/t-elf: Likewise.
3337 * config/sparc/t-leon: Likewise.
3338 * config/sparc/t-leon3: Likewise.
3339 * config/spu/t-spu-elf: Likewise.
3340 (DPBIT_FUNCS): Remove.
3341 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3342 * config/v850/t-v850: Likewise.
3343 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3344 (avr-*-*): Likewise.
3345 (h8300-*-rtems*): Set libgcc_tm_file.
3346 (h8300-*-elf*): Likewise.
3347 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3349 (powerpc-*-eabisim*): Likewise.
3350 (powerpc-*-elf*): Likewise.
3351 (powerpc-*-eabialtivec*): Likewise.
3352 (powerpc-xilinx-eabi*): Likewise.
3353 (powerpc-*-eabi*): Likewise.
3354 (powerpc-*-rtems*): Likewise.
3355 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3356 (powerpcle-*-elf*): Likewise.
3357 (powerpcle-*-eabisim*): Likewise.
3358 (powerpcle-*-eabi*): Likewise.
3359 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3360 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3361 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3364 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3366 * Makefile.in (UNWIND_H): Remove.
3367 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3368 ../libgcc/Makefile.in.
3369 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3370 (LIBUNWINDDEP): Remove.
3371 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3372 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3373 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3374 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3375 Don't copy $(UNWIND_H).
3376 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3377 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3378 * aclocal.m4: Regenerate.
3379 * configure: Regenerate.
3380 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3381 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3382 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3383 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3384 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3385 * config/arm/libunwind.S, config/arm/pr-support.c,
3386 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3387 ../libgcc/config/arm.
3388 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3389 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3390 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3391 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3392 ($(T)frvend$(objext)): Likewise.
3393 * config/ia64/t-glibc (LIB2ADDEH): Remove.
3394 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3395 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3396 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3397 ../libgcc/config/ia64.
3398 * config/ia64/t-hpux (LIB2ADDEH): Remove.
3399 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3400 * config/ia64/t-vms (LIB2ADDEH): Remove.
3401 * config/ia64/vms.h (UNW_IVMS_MODE,
3402 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3403 * config/picochip/t-picochip (LIB2ADDEH): Remove.
3404 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3405 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3406 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3407 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3408 $(srcdir)/../libgcc to refer to unwinder sources.
3409 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3410 * config/t-darwin (LIB2ADDEH): Remove.
3411 * config/t-freebsd (LIB2ADDEH): Remove.
3412 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3413 * config/t-libunwind-elf: Move to ../libgcc/config.
3414 * config/t-linux (LIB2ADDEH): Remove.
3415 * config/t-sol2 (LIB2ADDEH): Remove.
3416 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3417 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3419 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
3421 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3423 * doc/invoke.texi: Document core-avx-i.
3425 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3427 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3429 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
3431 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3432 result of multiple results reduction when extracting the final
3433 value using scalar code.
3435 2011-08-05 Richard Guenther <rguenther@suse.de>
3437 PR tree-optimization/49984
3438 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3440 2011-08-05 Richard Guenther <rguenther@suse.de>
3442 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3443 return true for constant integer ranges.
3444 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3445 BIT_IOR_EXPR handling.
3447 2011-08-04 Kai Tietz <ktietz@redhat.com>
3449 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3450 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3452 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
3454 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3455 pattern def statement, and its access macro.
3456 (NUM_PATTERNS): Set to 5.
3457 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3458 pattern def statement.
3459 (vect_transform_loop): Likewise.
3460 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3461 function vect_recog_over_widening_pattern ().
3462 (vect_operation_fits_smaller_type): New function.
3463 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3465 (vect_pattern_recog_1): Move the code that marks pattern
3466 statements to vect_mark_pattern_stmts (), and call it. Update
3468 * tree-vect-stmts.c (vect_supportable_shift): New function.
3469 (vect_analyze_stmt): Handle pattern def statement.
3470 (new_stmt_vec_info): Initialize pattern def statement.
3472 2011-08-04 Richard Henderson <rth@redhat.com>
3475 * config/i386/i386.c (ix86_expand_call): Don't create nested
3476 PARALLELs for TARGET_VZEROUPPER.
3477 (ix86_split_call_vzeroupper): Fix extraction of the original call.
3478 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3479 recognize nested PARALLELs.
3480 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3481 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3482 *sibcall_value_pop_vzeroupper): Likewise.
3484 2011-08-04 Richard Henderson <rth@redhat.com>
3487 * calls.c (expand_call): Use fixup_args_size_notes for
3489 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3490 in non-standard modes.
3492 2011-08-04 Jakub Jelinek <jakub@redhat.com>
3494 * gcc.c (self_spec): New variable.
3495 (static_specs): Add self_spec.
3496 (main): Call do_self_spec on "self_spec" specs after reading
3497 user specs files. Move compare_debug handling right after that.
3499 2011-08-04 Richard Guenther <rguenther@suse.de>
3501 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3502 (value_range_nonnegative_p): New function.
3503 (ssa_name_nonnegative_p): Use it.
3504 (value_range_constant_singleton): New function.
3505 (op_with_constant_singleton_value_range): Use it.
3506 (extract_range_from_binary_expr_1): New function, split out from ...
3507 (extract_range_from_binary_expr): ... this. Remove fallback
3508 constant folding done here.
3510 2011-08-04 Richard Guenther <rguenther@suse.de>
3512 PR tree-optimization/49806
3513 * tree-vrp.c (op_with_boolean_value_range_p): New function.
3514 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
3515 a new statement for a final conversion to bool.
3517 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
3519 * gengtype-state.c: Include "bconfig.h" if
3520 GENERATOR_FILE is defined, "config.h" otherwise.
3521 * gengtype.c: Likewise.
3522 * gengtype-lex.l: Likewise.
3523 * gengtype-parse.c: Likewise.
3524 * Makefile.in (gengtype-lex.o-warn): New variable.
3525 (plugin_resourcesdir): Likewise.
3526 (plugin_bindir): Likewise.
3527 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3528 (MOSTLYCLEANFILES): Add gengtype$(exeext).
3529 (native): Depend on gengtype$(exeext) is $enable_plugin
3531 (gtype.state): Depend on s-gtype. Use temporary file.
3532 (gengtype-lex.o): New rule.
3533 (gengtype-parse.o): Likewise.
3534 (gengtype-state.o): Likewise.
3535 (gengtype$(exeext)): Likewise.
3536 (install-gengtype): Likewise.
3537 (gengtype.o): Likewise.
3538 (build/gengtype.o): Depend on version.h.
3539 (build/gengtype-state): Depend on double-int.h, version.h,
3540 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3541 (install-plugin): Depend on install-gengtype.
3543 2011-08-04 Jakub Jelinek <jakub@redhat.com>
3546 * tree.h (init_attributes): New prototype.
3547 * attribs.c (init_attributes): No longer static.
3549 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3551 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3554 2011-08-03 David Li <davidxl@google.com>
3556 * tree-optimize.c (execute_fixup_cfg): Fix up entry
3557 outgoing edge counts after inlining.
3559 2011-08-03 David Li <davidxl@google.com>
3561 * profile.c (compute_branch_probabilities): Compute
3562 function frequency after profile annotation.
3564 2011-08-04 Alan Modra <amodra@gmail.com>
3566 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3567 use_backchain_to_restore_sp initialisation.
3568 (rs6000_legitimate_offset_address_p): Simplify offset test.
3570 2011-08-03 Richard Henderson <rth@redhat.com>
3572 * config/spu/spu.md: Use define_c_enum instead of define_constants.
3573 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3576 2011-08-03 Richard Henderson <rth@redhat.com>
3579 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3581 2011-08-03 Jakub Jelinek <jakub@redhat.com>
3583 PR tree-optimization/49948
3584 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3586 2011-08-03 Anatoly Sokolov <aesok@post.ru>
3588 * config/m32c/m32c.c (class_sizes): Remove.
3589 (reduce_class): Change arguments and return type to reg_class_t.
3590 Change type cc var to HARD_REG_SET. Change type best var to
3591 reg_class_t. Change type best_size var to unsigned int. Remove
3592 initialization class_sizes var. Use reg_class_size array instead
3593 of class_sizes. Use reg_class_contents array instead
3596 2011-08-03 Richard Guenther <rguenther@suse.de>
3599 * fold-const.c (fold_binary_loc): Only associate
3600 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3603 2011-08-03 Alan Modra <amodra@gmail.com>
3605 PR rtl-optimization/49941
3606 * jump.c (mark_jump_label): Comment.
3607 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3608 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3609 (mark_used_flags): Don't mark RETURN.
3611 2011-08-03 Richard Guenther <rguenther@suse.de>
3613 PR tree-optimization/49938
3614 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3615 deal with a POLYNOMIAL_CHREC.
3617 2011-08-03 Revital Eres <revital.eres@linaro.org>
3619 * modulo-sched.c (calculate_stage_count,
3620 calculate_must_precede_follow, get_sched_window,
3621 try_scheduling_node_in_cycle, remove_node_from_ps): Add
3623 (update_node_sched_params, set_must_precede_follow, optimize_sc):
3625 (reset_sched_times): Call update_node_sched_params.
3626 (sms_schedule): Call optimize_sc.
3627 (get_sched_window): Change function arguments.
3628 (sms_schedule_by_order): Update call to get_sched_window.
3629 Call set_must_precede_follow.
3630 (calculate_stage_count): Add function argument.
3632 2011-08-02 Richard Henderson <rth@redhat.com>
3636 * reg-notes.def (REG_ARGS_SIZE): New.
3637 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3638 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3639 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3640 different stack levels.
3641 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3642 (maybe_move_args_size_note): New.
3643 (combine_stack_adjustments_for_block): Use it.
3644 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3645 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3646 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3647 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3649 (queued_args_size): Remove.
3650 (add_cfi_args_size): Assert size is non-negative.
3651 (stack_adjust_offset, dwarf2out_args_size): Remove.
3652 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3653 (notice_args_size, notice_eh_throw): New.
3654 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3655 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3656 (dwarf2out_frame_debug_cfa_offset): Likewise.
3657 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
3658 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3659 (change_cfi_row): Don't emit args_size.
3660 (maybe_record_trace_start_abnormal): Split out from ...
3661 (maybe_record_trace_start): Here. Set args_size_undefined.
3662 (create_trace_edges): Update to match.
3663 (scan_trace): Handle REG_ARGS_SIZE.
3664 (connect_traces): Connect args_size between EH insns.
3665 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3666 * explow.c (suppress_reg_args_size): New.
3667 (adjust_stack_1): Split out from ...
3668 (adjust_stack): ... here.
3669 (anti_adjust_stack): Use it.
3670 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3671 * expr.c (mem_autoinc_base): New.
3672 (fixup_args_size_notes): New.
3673 (emit_single_push_insn_1): Rename from emit_single_push_insn.
3674 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
3675 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3676 * reload1.c (reload_as_needed): Likewise.
3677 * rtl.h (fixup_args_size_notes): Declare.
3679 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
3682 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3684 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3685 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3687 2011-08-02 Richard Henderson <rth@redhat.com>
3689 * config/h8300/h8300.c (push, pop): Return the insn.
3690 (h8300_swap_into_er6): Generate correct unwind info.
3691 (h8300_swap_out_of_er6): Likewise.
3692 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3693 complex cfa expression.
3694 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3696 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
3698 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3700 2011-08-02 Richard Henderson <rth@redhat.com>
3703 * config/h8300/h8300.c (h8300_move_ok): New.
3704 * config/h8300/h8300-protos.h: Declare it.
3705 * config/h8300/h8300.md (P): New mode iterator.
3706 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3707 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3708 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3709 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3710 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3711 and pushqi1_h8300hs_normal; use PRE_MODIFY and
3712 register_no_sp_elim_operand.
3713 (*pushhi1_h8300hs_<P>): Similarly.
3714 (pushqi1, pushhi1, pushhi1_h8300): Remove.
3715 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3717 2011-08-02 Richard Henderson <rth@redhat.com>
3720 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3722 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3724 * c-parser.c (enum c_parser_prec): New enum, moved from within
3725 c_parser_binary_expression.
3726 (c_parser_binary_expression): Add PREC argument. Stop parsing
3727 if operator has lower or equal precedence than PREC.
3728 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3730 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3731 Adjust c_finish_omp_atomic caller.
3732 (c_parser_omp_taskyield): New function.
3733 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3734 (c_parser_omp_clause_name): Handle final and mergeable clauses.
3735 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3737 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3738 and PRAGMA_OMP_CLAUSE_MERGEABLE.
3739 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3740 (c_parser_omp_clause_reduction): Handle min and max.
3741 * c-typeck.c (c_finish_omp_clauses): Don't complain about
3742 const qualified predetermined vars in firstprivate clause.
3743 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3744 Handle MIN_EXPR and MAX_EXPR.
3745 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3746 and OMP_CLAUSE_MERGEABLE.
3747 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3748 and OMP_ATOMIC_CAPTURE_NEW.
3749 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3750 OMP_CLAUSE_MERGEABLE.
3751 (omp_clause_code_name): Likewise.
3752 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3753 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3754 and OMP_CLAUSE_MERGEABLE.
3755 (OMP_CLAUSE_FINAL_EXPR): Define.
3756 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3757 OMP_CLAUSE_MERGEABLE.
3758 (expand_task_call): Likewise.
3759 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3760 (expand_omp_atomic_fetch_op): Handle cases where old or new
3761 value is needed afterwards.
3762 (expand_omp_atomic): Call expand_omp_atomic_load resp.
3763 expand_omp_atomic_store.
3764 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3765 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3766 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3767 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3768 * tree-nested.c (convert_nonlocal_omp_clauses,
3769 convert_local_omp_clauses): Likewise.
3770 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3771 OMP_ATOMIC_CAPTURE_NEW): New.
3772 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3773 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3775 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3776 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3777 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3779 2011-08-02 Kai Tietz <ktietz@redhat.com>
3781 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3783 (ssa_forward_propagate_and_combine): Interprete result of
3784 forward_propagate_comparison.
3785 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3786 boolean-typed operands for comparisons.
3788 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
3790 * config/avr/libgcc.S: Gather related function in the
3792 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3793 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3795 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3796 __udivmodsi4, __divmodsi4, __prologue_saves__,
3797 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3798 __do_copy_data, __do_clear_bss, __do_global_ctors,
3799 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3801 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
3804 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3805 (stack_protect_test): The pattern compares ptr_mode value.
3807 2011-08-02 Alan Modra <amodra@gmail.com>
3809 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3810 note for save_LR_around_toc_setup sequence.
3812 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
3814 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3816 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
3817 Joseph Myers <joseph@codesourcery.com>
3819 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3820 * hwint.c: Include diagnostic-core.h.
3822 (gcd): Moved here...
3825 (least_common_multiple): Moved here...
3826 * hwint.h (gcd): ... from here.
3827 (least_common_multiple): ... from here.
3828 (HOST_WIDE_INT_MIN): New.
3829 (HOST_WIDE_INT_MAX): New.
3830 (abs_hwi): Declared.
3832 (pos_mul_hwi): Declared.
3833 (mul_hwi): Declared.
3834 (least_common_multiple): Declared.
3835 * omega.c (check_pos_mul): Removed.
3836 (check_mul): Removed.
3837 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3838 mul_hwi instead of check_mul.
3840 2011-08-01 Richard Henderson <rth@redhat.com>
3843 * config/avr/avr.h (PUSH_ROUNDING): New.
3844 * config/avr/avr.md (pushqi1): Rename from *pushqi.
3845 (*pushhi, *pushsi, *pushsf): Remove.
3846 (MPUSH): New mode iterator.
3847 (push<MPUSH>1): New expander.
3849 2011-08-01 Anatoly Sokolov <aesok@post.ru>
3851 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3852 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3853 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3854 mmix_preferred_output_reload_class): Remove.
3855 * config/mmix/mmix.c (mmix_preferred_reload_class,
3856 mmix_preferred_output_reload_class): Make static. Change rclass
3857 argument and return type to reg_class_t.
3858 (TARGET_PREFERRED_RELOAD_CLASS,
3859 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3861 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
3863 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3866 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
3869 * config/i386/i386.md (PTR): New.
3870 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3871 (stack_protect_test): Likewise.
3872 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3873 (stack_tls_protect_set_<mode>): Likewise.
3874 (stack_tls_protect_test_<mode>): Likewise.
3876 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
3879 * config/i386/i386.c (ix86_address_subreg_operand): New.
3880 (ix86_decompose_address): Use ix86_address_subreg_operand.
3881 (ix86_legitimate_address_p): Do not assert that subregs satisfy
3882 register_no_elim_operand in DImode.
3884 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
3886 PR tree-optimization/49926
3887 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3888 in a chain doesn't have uses both inside and outside the loop.
3890 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
3892 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3893 * config/avr/avr-devices.c (avr_mcu_types): Use it.
3894 * config/avr/avr-mcus.def (AVR_MCU): Use it.
3895 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3896 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3897 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3898 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3899 to detect if XJMP must not be skipped.
3901 2011-08-02 Alan Modra <amodra@gmail.com>
3903 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3905 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3906 (rs6000_emit_prologue): Don't prematurely return when
3907 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
3908 save_toc_in_prologue case.
3909 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3912 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
3914 * config/avr/avr-devices.c: Delete SVN property svn:executable.
3915 * config/avr/predicates.md: Ditto.
3916 * config/avr/driver-avr.c: Ditto.
3917 * config/avr/genopt.sh: Set SVN property svn:executable to *.
3919 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
3921 * calls.c (emit_library_call_value_1): Declare size only if
3922 BLOCK_REG_PADDING is defined.
3924 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
3927 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3928 (x86_64-*-*): Likewise.
3929 * config/i386/i386.opt (mlzcnt): New.
3930 * config/i386/abmintrin.h: File removed.
3931 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3932 * config/i386/lzcntintrin.h: ... here. New file.
3933 (__lzcnt): Rename to ...
3934 (__lzcnt32): ... this.
3935 * config/i386/bmiintrin.h (head): Update copyright year.
3936 (__lzcnt_u16): Removed.
3937 (__lzcnt_u32): Likewise.
3938 (__lzcnt_u64): Likewise.
3939 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3940 is defined, remove abmintrin.h.
3941 * config/i386/cpuid.h (bit_LZCNT): New.
3942 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3944 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3945 __LZCNT__ if needed.
3946 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3947 (ix86_option_override_internal): Handle LZCNT option.
3948 (ix86_valid_target_attribute_inner_p): Likewise.
3949 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3950 * config/i386/i386.h (TARGET_LZCNT): New.
3951 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3952 * config/i386/i386.md (clz<mode>2): Update insn constraint.
3953 (clz<mode>2_lzcnt): Likewise.
3954 * doc/invoke.texi: Mention -mlzcnt option.
3955 * doc/extend.texi: Likewise.
3957 2011-08-01 Julian Brown <julian@codesourcery.com>
3959 * configure.ac (fixed-point): Add ARM support.
3960 * configure: Regenerate.
3961 * config/arm/arm.c (arm_fixed_mode_set): New struct.
3962 (arm_set_fixed_optab_libfunc): New.
3963 (arm_set_fixed_conv_libfunc): New.
3964 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3966 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3967 return values in SImode.
3968 (arm_return_in_msb): Return fixed-point types in the msb.
3969 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3971 (arm_scalar_mode_supported_p): Support fixed-point modes.
3972 (arm_vector_mode_supported_p): Support vector fixed-point modes.
3973 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3974 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3975 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3976 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3977 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3979 (qaddsub_suf): New mode attribute.
3980 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3982 * config/arm/predicates.md (sat_shift_operator): New predicate.
3983 * config/arm/arm-fixed.md: New.
3984 * config/arm/arm.md: Include arm-fixed.md.
3985 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3987 2011-08-01 Julian Brown <julian@codesourcery.com>
3989 * calls.c (emit_library_call_value_1): Support padding for libcall
3990 arguments and return values.
3991 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3992 downwards in big-endian mode.
3994 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3997 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
3998 * config/sol2-protos.h: Likewise.
3999 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4001 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4002 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4004 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4006 2011-08-01 Julian Brown <julian@codesourcery.com>
4008 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4010 2011-08-01 Julian Brown <julian@codesourcery.com>
4012 * final.c (output_addr_const): Print fixed-point constants as
4015 2011-08-01 Richard Guenther <rguenther@suse.de>
4017 * stor-layout.c (initialize_sizetypes): Properly sign-extend
4018 bitsiztype TYPE_MAX_VALUE.
4020 2011-08-01 Julian Brown <julian@codesourcery.com>
4022 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4025 2011-07-31 Richard Henderson <rth@redhat.com>
4027 * config/h8300/crti.asm: Add flags to .section directive.
4028 * config/h8300/crtn.asm: Likewise.
4030 2011-07-31 Richard Henderson <rth@redhat.com>
4032 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4033 * tree.c (build_common_tree_nodes): Likewise.
4035 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4038 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4039 (divsi3_i1): Likewise.
4041 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4043 PR tree-optimization/49749
4044 * tree-ssa-reassoc.c (get_rank): New forward declaration.
4045 (PHI_LOOP_BIAS): New macro.
4046 (phi_rank): New function.
4047 (loop_carried_phi): Likewise.
4048 (propagate_rank): Likewise.
4049 (get_rank): Add calls to phi_rank and propagate_rank.
4051 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
4053 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4055 (PTRDIFF_TYPE): Likewise.
4057 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
4060 * config/i386/i386.md (strset): Do not expand strset_singleop
4061 when %eax or $edi are fixed.
4062 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4063 (*strsetsi_1): Ditto.
4064 (*strsethi_1): Ditto.
4065 (*strsetqi_1): Ditto.
4066 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4067 (*rep_stossi): Ditto.
4068 (*rep_stosqi): Ditto.
4069 (*strlenqi_1): Ditto.
4070 (cmpstrnsi): Also fail when %ecx is fixed.
4071 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4072 (*cmpstrnqi_1): Ditto.
4073 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4074 (*strmovsi_1): Ditto.
4075 (*strmovhi_1): Ditto.
4076 (*strmovqi_1): Ditto.
4077 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4078 (*rep_movsi): Ditto.
4079 (*rep_movqi): Ditto.
4081 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
4084 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4085 Disable instruction scheduling for non-ColdFire targets.
4086 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4088 2011-07-31 Revital Eres <revital.eres@linaro.org>
4090 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4091 of anti-dep edge from a branch.
4092 (add_cross_iteration_register_deps): Create anti-dep edge from
4095 2011-07-31 Revital Eres <revital.eres@linaro.org>
4097 * modulo-sched.c: Change comment.
4098 (reset_sched_times): Fix print message.
4099 (print_partial_schedule): Add print info.
4101 2011-07-31 Tom de Vries <tom@codesourcery.com>
4104 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4105 get_object_alignment and TYPE_ALIGN.
4107 2011-07-30 Tom de Vries <tom@codesourcery.com>
4110 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4111 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4113 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4115 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4117 (cpu_types): New array.
4118 (cputype): New function.
4119 (host_detect_local_cpu): Only define buf, f if !__sgi__.
4120 Use scaninvent instead of /proc/cpuinfo if __sgi__.
4121 * config.host: Also use driver-native.o, mips/x-native on
4123 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4124 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4125 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4127 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4131 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4132 in nested parallel and outer is a gimple_reg, mark it as addressable
4133 and set its bit in task_shared_vars bitmap too.
4135 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4137 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4139 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4141 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4142 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4143 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4144 AMASK_LOCKPFTCHOK): Define.
4145 (host_detect_local_cpu): Remove buf, f, cpu_names.
4146 Define cpu_types, implver, amask.
4147 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4149 * config.host: Also use driver-alpha.o, alpha/x-alpha on
4151 * config/alpha/osf5.h [__alpha__ || __alpha]
4152 (host_detect_local_cpu): Declare.
4153 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4154 (DRIVER_SELF_SPECS): Define.
4156 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4159 * config/i386/i386.md (*load_tp_x32): New.
4160 (*load_tp_x32_zext): Ditto.
4161 (*add_tp_x32): Ditto.
4162 (*add_tp_x32_zext): Ditto.
4163 (*load_tp_<mode>): Disable for TARGET_X32 targets.
4164 (*add_tp_<mode>): Ditto.
4165 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4166 ptr_mode and convert to Pmode if needed.
4168 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
4171 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4172 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4173 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4174 Add X to register footprint: Clobber r26/r27.
4176 2011-07-29 Richard Guenther <rguenther@suse.de>
4178 * builtins.c (fold_builtin_signbit): Build the comparison
4181 2011-07-29 Richard Guenther <rguenther@suse.de>
4183 PR tree-optimization/49893
4184 * tree-predcom.c (suitable_reference_p): Volatile references
4187 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
4190 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4191 (__ctzsi2): Result for 0 may be undefined.
4192 (__ctzhi2): Result for 0 may be undefined.
4193 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4194 (__popcountsi2): Ditto. And don't clobber r26.
4195 (__popcountdi2): Ditto. And don't clobber r27.
4196 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4197 (parityhi2): New expand.
4198 (paritysi2): New expand.
4199 (popcounthi2): New expand.
4200 (popcountsi2): New expand.
4201 (clzhi2): New expand.
4202 (clzsi2): New expand.
4203 (ctzhi2): New expand.
4204 (ctzsi2): New expand.
4205 (ffshi2): New expand.
4206 (ffssi2): New expand.
4207 (copysignsf3): New insn.
4208 (bswapsi2): New expand.
4209 (*parityhi2.libgcc): New insn.
4210 (*parityqihi2.libgcc): New insn.
4211 (*paritysihi2.libgcc): New insn.
4212 (*popcounthi2.libgcc): New insn.
4213 (*popcountsi2.libgcc): New insn.
4214 (*popcountqi2.libgcc): New insn.
4215 (*popcountqihi2.libgcc): New insn-and-split.
4216 (*clzhi2.libgcc): New insn.
4217 (*clzsihi2.libgcc): New insn.
4218 (*ctzhi2.libgcc): New insn.
4219 (*ctzsihi2.libgcc): New insn.
4220 (*ffshi2.libgcc): New insn.
4221 (*ffssihi2.libgcc): New insn.
4222 (*bswapsi2.libgcc): New insn.
4224 2011-07-29 Richard Guenther <rguenther@suse.de>
4226 * tree-vrp.c (get_value_range): Only set parameter default
4227 definitions to varying, leave others at undefined.
4228 (extract_range_from_binary_expr): Fix undefined handling.
4229 (vrp_visit_phi_node): Handle merged undefined state.
4231 2011-07-29 Wei Guozhi <carrot@google.com>
4233 PR rtl-optimization/49799
4234 * combine.c (make_compound_operation): Check if the bit field is valid
4235 before change it to bit field extraction.
4237 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
4239 PR rtl-optimization/49891
4240 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4241 newly created returnjumps.
4243 2011-07-28 DJ Delorie <dj@redhat.com>
4245 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4246 local frame in a naked function, and produce a suitable error for
4249 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4250 registers to be reloaded in HI classes when the target is HI.
4252 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
4254 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4255 bound_one, bound_two.
4257 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
4260 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4262 (translate_clast): Same.
4263 (translate_clast_assignment): New.
4265 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
4267 PR tree-optimization/49876
4268 * sese.c (rename_uses): Do not return false on gloog_error: set
4269 the new_expr to integer_zero_node and continue code generation.
4270 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4272 2011-07-28 Jakub Jelinek <jakub@redhat.com>
4275 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4276 arguments also check if they aren't initialized with a MODE_INT
4277 mode of the same size.
4279 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
4281 * expr.c (get_bit_range): Handle *MEM_REF's.
4283 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
4285 * rtlanal.c (tablejump_p): False for returns.
4286 * reorg.c (first_active_target_insn): New static function.
4287 (find_end_label): Set JUMP_LABEL for a new returnjump.
4288 (optimize_skip, get_jump_flags, rare_destination,
4289 mostly_true_jump, get_branch_condition,
4290 steal_delay_list_from_target, own_thread_p,
4291 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4292 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4293 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4294 * jump.c (delete_related_insns): Likewise.
4295 (jump_to_label_p): New function.
4296 (redirect_target): New static function.
4297 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
4298 (redirect_jump_1): Assert that the new label is nonnull.
4299 (redirect_jump): Likewise.
4300 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4301 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4303 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
4304 changed. Ensure that the right label is passed to redirect_jump.
4305 * function.c (emit_return_into_block,
4306 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4307 ret_rtx in their JUMP_LABEL.
4308 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4309 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4310 pass ret_rtx as label.
4311 * cfglayout.c (fixup_reorder_chain): Use
4312 force_nonfallthru_and_redirect rather than force_nonfallthru.
4313 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4314 * rtl.h (ANY_RETURN_P): New macro.
4315 (jump_to_label_p): Declare.
4316 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4318 (mark_target_live_regs): Likewise.
4319 * basic-block.h (force_nonfallthru_and_redirect): Declare.
4320 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4321 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4322 alpha_tablejump_best_label): Remove functions.
4323 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4324 alpha_tablejump_best_label): Remove declarations.
4325 * config/sh/sh.c (barrier_align, split_branches): Adjust for
4326 ret_rtx in JUMP_LABELs.
4327 * config/arm/arm.c (is_jump_table): Likewise.
4329 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
4331 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4332 special predicate. Remove explicit mode checks.
4334 2011-07-28 Jakub Jelinek <jakub@redhat.com>
4336 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4337 DW_AT_data_member_location containing just DW_OP_plus_uconst.
4340 * dwarf2out.c (size_of_die, value_format, output_die): Use
4341 DW_FORM_udata instead of DW_FORM_data[48] for
4342 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4344 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4346 * config/i386/i386.md (*tls_global_dynamic_64): Update
4349 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
4352 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4353 tls_symbolic_operand check. Update code sequence for TARGET_X32.
4354 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4355 (tls_dynamic_gnu2_64): Ditto.
4356 (*tls_dynamic_gnu2_lea_64): Ditto.
4357 (*tls_dynamic_gnu2_call_64): Ditto.
4358 (*tls_dynamic_gnu2_combine_64): Ditto.
4360 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4362 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4364 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4367 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4369 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4371 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4372 before the core constraints. Adjust attributes.
4373 ("*thumb2_movdf_vfp"): Likewise.
4375 2011-07-28 Kai Tietz <ktietz@redhat.com>
4377 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4378 (simplify_truth_ops_using_ranges): Likewise.
4379 (build_assert_expr_for): Likewise.
4380 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4381 and handle BIT_NOT_EXPR for truth-operation.
4383 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
4386 Undo r176835 from trunk
4387 2011-07-27 Georg-Johann Lay
4389 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
4392 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4393 Add _muluhisi3, _mulshisi3, _usmulhisi3.
4394 * config/avr/libgcc.S (__mulsi3): Rewrite.
4395 (__mulhisi3): Rewrite.
4396 (__umulhisi3): Rewrite.
4397 (__usmulhisi3): New.
4401 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4403 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4404 (pseudo_register_or_const_int_operand): New.
4405 (combine_pseudo_register_operand): New.
4409 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4410 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4411 (any_extend, any_extend2): New code iterators.
4412 (extend_prefix): New code attribute.
4413 (mulsi3): Rewrite. Turn insn to expander.
4416 (usmulhisi3): New expander.
4417 (*mulsi3): New insn-and-split.
4418 (mulu<mode>si3): New insn-and-split.
4419 (muls<mode>si3): New insn-and-split.
4420 (mulohisi3): New insn-and-split.
4421 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4422 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4423 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4424 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4426 (*mulsi3_call): Rewrite.
4427 (*mulhisi3_call): Rewrite.
4428 (*umulhisi3_call): Rewrite.
4429 (*usmulhisi3_call): New insn.
4430 (*muluhisi3_call): New insn.
4431 (*mulshisi3_call): New insn.
4432 (*mulohisi3_call): New insn.
4433 (extendqihi2): Use combine_pseudo_register_operand as predicate
4435 (extendqisi2): Ditto.
4436 (zero_extendqihi2): Ditto.
4437 (zero_extendqisi2): Ditto.
4438 (zero_extendhisi2): Ditto.
4439 (extendhisi2): Ditto. Don't early-clobber operand 0.
4441 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
4443 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4445 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
4447 PR tree-optimization/49471
4448 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4449 iv only when the largest type is unsigned. Do not call
4450 lang_hooks.types.type_for_size.
4452 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
4455 * graphite-poly.c (apply_poly_transforms): Disable legality check
4456 after an openscop read.
4458 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
4461 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4462 copy_bb_and_scalar_dependences.
4463 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
4464 (graphite_copy_stmts_from_block): Update call to rename_uses.
4465 (copy_bb_and_scalar_dependences): Update call to
4466 graphite_copy_stmts_from_block.
4467 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4469 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
4472 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4473 (__ctzsi2): Result for 0 may be undefined.
4474 (__ctzhi2): Result for 0 may be undefined.
4475 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4476 (__popcountsi2): Ditto. And don't clobber r26.
4477 (__popcountdi2): Ditto. And don't clobber r27.
4478 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4479 (parityhi2): New expand.
4480 (paritysi2): New expand.
4481 (popcounthi2): New expand.
4482 (popcountsi2): New expand.
4483 (clzhi2): New expand.
4484 (clzsi2): New expand.
4485 (ctzhi2): New expand.
4486 (ctzsi2): New expand.
4487 (ffshi2): New expand.
4488 (ffssi2): New expand.
4489 (copysignsf3): New insn.
4490 (bswapsi2): New expand.
4491 (*parityhi2.libgcc): New insn.
4492 (*parityqihi2.libgcc): New insn.
4493 (*paritysihi2.libgcc): New insn.
4494 (*popcounthi2.libgcc): New insn.
4495 (*popcountsi2.libgcc): New insn.
4496 (*popcountqi2.libgcc): New insn.
4497 (*popcountqihi2.libgcc): New insn-and-split.
4498 (*clzhi2.libgcc): New insn.
4499 (*clzsihi2.libgcc): New insn.
4500 (*ctzhi2.libgcc): New insn.
4501 (*ctzsihi2.libgcc): New insn.
4502 (*ffshi2.libgcc): New insn.
4503 (*ffssihi2.libgcc): New insn.
4504 (*bswapsi2.libgcc): New insn.
4506 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
4508 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4509 the mode of symbolic_opreand RTXes.
4511 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
4513 * config/i386/predicates.md (x86_64_movabs_operand): Return false
4514 for pic_32bit_operand RTXes.
4515 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4518 2011-07-27 Kai Tietz <ktietz@redhat.com>
4520 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4522 (ix86_handle_abi_attribute): Allow function attributes
4523 ms_abi/sysv_abi in 32-bit mode, too.
4524 * doc/extend.texi: Adjust attribute documentation.
4526 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4527 expression handling.
4528 (and_var_with_comparison_1): Likewise.
4530 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
4532 * params.h (ALLOW_STORE_DATA_RACES): New.
4533 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4534 * Makefile.in (expr.o): Depend on PARAMS_H.
4535 * machmode.h (get_best_mode): Add argument.
4536 * fold-const.c (optimize_bit_field_compare): Add argument to
4538 (fold_truthop): Same.
4539 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4540 * expr.c (emit_group_store): Same.
4541 (copy_blkmode_from_reg): Same.
4542 (write_complex_part): Same.
4543 (optimize_bitfield_assignment_op): Add argument.
4544 Add argument to get_best_mode.
4545 (get_bit_range): New.
4546 (expand_assignment): Calculate maxbits and pass it down accordingly.
4547 (store_field): New argument.
4548 (expand_expr_real_2): New argument to store_field. Include params.h.
4549 * expr.h (store_bit_field): New argument.
4550 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4551 into account maxbits.
4552 * calls.c (store_unaligned_arguments_into_pseudos): New argument
4554 * expmed.c (store_bit_field_1): New argument. Use it.
4555 (store_bit_field): Same.
4556 (store_fixed_bit_field): Same.
4557 (store_split_bit_field): Same.
4558 (extract_bit_field_1): Pass new argument to get_best_mode.
4559 (extract_bit_field): Same.
4560 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4561 * doc/invoke.texi: Document parameter allow-store-data-races.
4563 2011-07-27 Jakub Jelinek <jakub@redhat.com>
4565 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4567 2011-07-27 Kai Tietz <ktietz@redhat.com>
4569 * tree-vrp.c (extract_range_from_binary_expr): Remove
4570 TRUTH-binary cases and add new bitwise-cases.
4571 (extract_range_from_assignment): Likewise.
4572 (register_edge_assert_for_1): Likeiwise.
4573 (register_edge_assert_for): Likewise.
4574 (simplify_truth_ops_using_ranges): Likewise.
4575 (simplify_stmt_using_ranges): Likewise.
4577 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
4580 * config/i386/i386.c (ix86_delegitimize_address): Call
4581 simplify_gen_subreg for PIC with mode of x only if modes of
4582 x and orig_x are different.
4584 2011-07-26 Jakub Jelinek <jakub@redhat.com>
4586 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4587 to GC allocated copy of the string.
4588 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4589 before .debug_line, not after it.
4591 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4594 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4595 evolution_function_is_affine_p on CHREC_RIGHT.
4597 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4599 * tree-data-ref.c (max_stmt_executions_tree): Do not call
4600 lang_hooks.types.type_for_size.
4602 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4605 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4606 loops using wrapping semantics.
4608 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4611 * tree-scalar-evolution.c (instantiate_scev_r): Return
4612 chrec_dont_know for ADDR_EXPR.
4614 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
4615 H.J. Lu <hongjiu.lu@intel.com>
4619 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4620 if legitimize_tls_address returned operand in wrong mode. Allow
4621 SImode and DImode symbolic operand for PIC. Call convert_to_mode
4622 if legitimize_pic_address returned operand in wrong mode.
4624 2011-07-26 Martin Jambor <mjambor@suse.cz>
4626 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4627 return false for invariants.
4629 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
4631 * config/i386/i386.md (add->lea splitter): Implement using SWI
4632 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
4633 (add->lea zext splitter): Change operand 2 predicate to
4634 x86_64_nonmemory_operand.
4636 2011-07-26 Richard Guenther <rguenther@suse.de>
4638 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4639 frequency makes everything hot.
4641 2011-07-26 Richard Guenther <rguenther@suse.de>
4643 PR tree-optimization/49840
4644 * tree-vrp.c (range_fits_type_p): Properly handle full
4645 double-int precision.
4647 2011-07-26 Martin Jambor <mjambor@suse.cz>
4650 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4652 (update_specialized_profile): Likewise.
4654 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
4655 H.J. Lu <hongjiu.lu@intel.com>
4660 * config/i386/i386.md (i): Change SImode attribute to "e".
4661 (g): Change SImode attribute to "rme".
4662 (di): Change SImode attribute to "nF".
4663 (general_operand): Change SImode attribute to x86_64_general_operand.
4664 (general_szext_operand): Change SImode attribute to
4665 x86_64_szext_general_operand.
4666 (immediate_operand): Change SImode attribute to
4667 x86_64_immediate_operand.
4668 (nonmemory_operand): Change SImode attribute to
4669 x86_64_nonmemory_operand.
4670 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4671 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
4672 (*lea_1): Use SWI48 mode iterator.
4673 (*lea_1_zext): New insn pattern.
4674 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4676 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4677 Update operand constraints.
4678 (addsi_1_zext): Ditto.
4679 (*add<mode>2): Ditto.
4680 (*addsi_3_zext): Ditto.
4681 (*subsi_1_zext): Ditto.
4682 (*subsi_2_zext): Ditto.
4683 (*subsi_3_zext): Ditto.
4684 (*addsi3_carry_zext): Ditto.
4685 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4686 (*mulsi3_1_zext): Ditto.
4688 (*andsi_1_zext): Ditto.
4689 (*andsi_2_zext): Ditto.
4690 (*<any_or:code>si_1_zext): Ditto.
4691 (*<any_or:code>si_2_zext): Ditto.
4692 (*test<mode>_1): Use <general_operand> predicate for operand 1.
4693 (*and<mode>_2): Ditto.
4694 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
4695 (add->lea splitter): Check operand modes in insn constraint. Extend
4696 operands less than SImode wide to SImode.
4697 (add->lea zext splitter): Do not extend input operands to DImode.
4698 (*lea_general_1): Handle only QImode and HImode operands.
4699 (*lea_general_2): Ditto.
4700 (*lea_general_3): Ditto.
4701 (*lea_general_1_zext): Remove.
4702 (*lea_general_2_zext): Ditto.
4703 (*lea_general_3_zext): Ditto.
4704 (*lea_general_4): Check operand modes in insn constraint. Extend
4705 operands less than SImode wide to SImode.
4706 (ashift->lea splitter): Ditto.
4707 * config/i386/i386.c (ix86_print_operand_address): Print address
4708 registers with 'q' modifier on 64bit targets.
4709 * config/i386/predicates.md (pic_32bit_opreand): Define as special
4710 predicate. Reject non-SI and non-DI modes.
4712 2011-07-25 Andrew Pinski <apinski@cavium.com>
4715 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4716 TREE_THIS_NOTRAP into the inner most MEM_REF.
4717 Always copy TREE_THIS_VOLATILE.
4718 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4719 arguments are not volatile references.
4721 2011-07-25 Richard Henderson <rth@redhat.com>
4723 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4724 * final.c (final_scan_insn): Don't test for it.
4725 (rest_of_clean_state): Likewise.
4727 2011-07-25 Richard Henderson <rth@redhat.com>
4730 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4731 (emit_frame_save): Likewise.
4732 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4733 insn onto a dummy blockage insn after the join label.
4735 2011-07-25 Richard Henderson <rth@redhat.com>
4737 * dwarf2cfi.c (dw_trace_info): Add ID member.
4738 (get_trace_index): Remove. Change users to use ID member.
4739 (before_next_cfi_note): New.
4740 (connect_traces): Remove unreachable traces before the main loop.
4741 Look across one trace and generate remember/restore_state if needed.
4743 2011-07-25 Richard Henderson <rth@redhat.com>
4745 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4747 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
4749 * genattr.c (write_upcase, gen_attr <enum definition writing>):
4751 * genattr-common.c ... here.
4752 (main): Call gen_attr.
4753 * optc-gen.awk: Make generated program include insn-attr-common.h .
4754 * Makefile.in (oprions.o): Depend on insn-attr-common.h
4756 2011-07-25 Anatoly Sokolov <aesok@post.ru>
4758 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4759 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4760 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4761 m32c_print_operand, m32c_print_operand_address): Remove.
4762 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4763 Change return type to bool. Change argument type to bool.
4764 (m32c_print_operand, m32c_print_operand_address): Make static.
4765 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4766 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4768 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4770 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4771 attributes): Document mmap.
4773 2011-07-25 Anatoly Sokolov <aesok@post.ru>
4775 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4776 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4777 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4778 mmix_print_operand, mmix_print_operand_address): Remove.
4779 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4780 Change return type to bool. Change argument type to bool.
4781 (mmix_print_operand, mmix_print_operand_address): Make static.
4782 (mmix_intval, mmix_output_condition): Change 'x' argument type
4784 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4785 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4787 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
4790 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4791 shift counter for x << x and x >> x shifts.
4793 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4796 * config.gcc: Reject *-*-solaris2 configuration.
4798 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
4800 PR tree-optimization/49809
4801 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4802 gimple_get_lhs instead of gimple_assign_lhs.
4804 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4806 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4808 2011-07-25 Richard Guenther <rguenther@suse.de>
4810 PR tree-optimization/49822
4811 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4812 more. Make sure to preserve stmts with side-effects. Properly
4813 handle virtual defs, follow a longer def chain.
4815 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
4820 * Makefile.in: Do not flatten c-family directory when installing
4823 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
4825 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4826 original nodes if we are dealing with virtual clones.
4828 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
4830 * common/config/c6x/c6x-common.c: New file.
4832 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
4834 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4836 2011-07-25 Richard Guenther <rguenther@suse.de>
4838 PR tree-optimization/49715
4839 * tree-vrp.c: Include expr.h and optabs.h.
4840 (range_fits_type_): New function.
4841 (simplify_float_conversion_using_ranges): Likewise.
4842 (simplify_stmt_using_ranges): Call it.
4843 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4844 * optabs.c (can_float_p): Export.
4845 * optabs.h (can_float_p): Declare.
4847 2011-07-25 Richard Guenther <rguenther@suse.de>
4849 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4850 (get_value_range): For out-of-range SSA names or names created
4851 after propagation return a read-only varying range.
4852 (dump_all_value_ranges): Adjust.
4853 (vrp_initialize): Likewise.
4854 (vrp_finalize): Likewise.
4856 2011-07-24 Richard Henderson <rth@redhat.com>
4859 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
4862 2011-07-24 Richard Henderson <rth@redhat.com>
4865 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4866 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4868 2011-07-24 Richard Henderson <rth@redhat.com>
4871 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4873 2011-07-24 Richard Henderson <rth@redhat.com>
4875 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4876 Zero args_size for abnormal edges. Adjust all callers.
4878 2011-07-24 Richard Henderson <rth@redhat.com>
4881 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4883 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
4886 * collect2.c (demangle_flag): Removed.
4888 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
4890 * configure.ac (demangler_in_ld): Default to yes.
4891 * configure: Regenerated.
4892 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4893 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4894 --no-demangle options straight through to ld. When
4895 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4896 way that has the intended effect on Windows.
4898 2011-07-23 Richard Henderson <rth@redhat.com>
4900 * dwarf2cfi.c: Include basic-block.h.
4901 (dw_label_info): Remove.
4902 (trace_work_list, trace_index): New.
4903 (remember_row, emit_cfa_remember): Remove.
4904 (dw_trace_info_hash, dw_trace_info_eq): New.
4905 (get_trace_index, get_trace_info): New.
4906 (save_point_p): New.
4907 (free_cfi_row): Remove.
4908 (add_cfi): Do not emit DW_CFA_remember_state.
4909 (cfa_row_equal_p): New.
4910 (barrier_args_size): Remove.
4911 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4912 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4913 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4914 (dwarf2out_cfi_begin_epilogue): Remove.
4915 (dwarf2out_frame_debug_restore_state): Remove.
4916 (connect_traces, create_pseudo_cfg): New.
4917 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4918 * Makefile.in (dwarf2cfi.o): Update.
4920 2011-07-23 Richard Henderson <rth@redhat.com>
4922 * dwarf2cfi.c (dw_trace_info): New.
4923 (dw_label_info): New.
4924 (cie_return_save): New.
4926 (queued_args_size): Rename from args_size. Update all users.
4927 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4928 (def_cfa_1): Use cur_trace instead of cfa_*.
4929 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4930 (clobbers_queued_reg_save, reg_saved_in): Likewise.
4931 (dwarf2out_frame_debug_expr): Likewise.
4932 (create_cie_data): Split out from ...
4933 (execute_dwarf2_frame): ... here. Initialize cur_trace.
4935 2011-07-23 Richard Henderson <rth@redhat.com>
4937 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4938 Update all users to match.
4939 (execute_dwarf2_frame): Free reg_saved_in_data.
4941 2011-07-23 Richard Henderson <rth@redhat.com>
4943 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
4944 (queued_reg_saves): Don't GTY. Change to a VEC.
4945 (queue_reg_save): Update to match.
4946 (dwarf2out_flush_queued_reg_saves): Likewise.
4947 (clobbers_queued_reg_save): Likewise.
4948 (reg_saved_in): Likewise.
4949 (execute_dwarf2_frame): Free queued_reg_saves.
4951 2011-07-23 Richard Henderson <rth@redhat.com>
4953 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
4955 2011-07-23 Richard Henderson <rth@redhat.com>
4957 * dwarf2cfi.c (add_cfi_args_size): Split out from...
4958 (dwarf2out_args_size): ... here.
4959 (add_cfi_restore): Split out from ...
4960 (dwarf2out_frame_debug_cfa_restore): ... here.
4961 (def_cfa_0): Split out from ...
4962 (def_cfa_1): ... here.
4963 (cfi_oprnd_equal_p, cfi_equal_p): New.
4964 (change_cfi_row): New.
4965 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4966 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4967 (output_cfis): Remove.
4968 * dwarf2out.c (output_fde): Simplify output_cfi loop.
4969 (dwarf2out_switch_text_section): Don't call output_cfis.
4970 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4971 * dwarf2out.h: Update decls.
4972 (enum dw_val_class): Add dw_val_class_none.
4974 2011-07-23 Richard Henderson <rth@redhat.com>
4976 * dwarf2cfi.c (update_row_reg_save): New.
4977 (dwarf2out_frame_debug_cfa_expression): Use it.
4978 (dwarf2out_frame_debug_cfa_restore): Likewise.
4979 (reg_save): Likewise. Do not emit DW_CFA_same_value.
4981 2011-07-23 Richard Henderson <rth@redhat.com>
4983 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
4985 2011-07-23 Richard Henderson <rth@redhat.com>
4987 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4989 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4990 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4991 (cur_row, remember_row): New.
4992 (def_cfa_1): Use cur_row instead of the old_* variables.
4993 (dwarf2out_frame_debug_restore_state): Similarly.
4994 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4995 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4996 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4997 (dwarf2out_frame_debug_cfa_offset): Likewise.
4998 (dwarf2out_frame_debug_expr): Likewise.
4999 (execute_dwarf2_frame): Set up cur_row.
5000 * dwarf2out.h (struct cfa_loc): Mark for GTY.
5002 2011-07-23 Richard Henderson <rth@redhat.com>
5004 * basic-block.h (EDGE_PRESERVE): New.
5005 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5006 * bb-reorder.c: Include except.h.
5007 (fix_up_crossing_landing_pad): New.
5008 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5009 landing pads in the right partition. Duplicate as necessary.
5010 (partition_hot_cold_basic_blocks): Fix up DF info after
5011 duplicating landing pads.
5012 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5013 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5014 is set properly. Validate that EH edges are not CROSSING.
5015 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5016 (dw2_build_landing_pads): ... here.
5017 (convert_to_eh_region_ranges): Remove code to fixup crossing
5019 * except.h (expand_dw2_landing_pad_for_region): Declare.
5020 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5022 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
5025 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5027 2011-07-22 Jason Merrill <jason@redhat.com>
5029 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5031 2011-07-22 Richard Henderson <rth@redhat.com>
5033 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5035 2011-07-22 Richard Henderson <rth@redhat.com>
5037 * jump.c (maybe_propagate_label_ref): Split out of...
5038 (mark_all_labels): ... here. Do not attempt label_ref
5039 propagation while in cfglayout mode.
5041 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5043 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5044 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5045 (dwarf_attr_name): Handle DW_AT_GNU_macros.
5046 (dwarf2out_define): If the vector is empty and
5047 lineno is 0, emit a dummy entry first.
5048 (dwarf2out_undef): Likewise. Remove redundant semicolon.
5049 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5050 optimize_macinfo_range): New functions.
5051 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
5052 mergeable, optimize longer strings using
5053 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5054 optimize longer sequences of define/undef ops from headers
5055 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
5056 emit a section headers.
5057 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5058 and macinfo_section_label to DEBUG_MACRO_SECTION
5059 resp. DEBUG_MACRO_SECTION_LABEL.
5060 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5061 instead of DW_AT_macro_info.
5064 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5066 * dwarf2out.c: Include opts.h.
5067 (dchar_p): New typedef. Define heap VEC for it.
5068 (producer_string): New variable.
5069 (gen_producer_string): New function.
5070 (gen_compile_unit_die): Use it.
5071 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5072 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5073 * doc/invoke.texi: Document -grecord-gcc-switches and
5074 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5075 to -frecord-gcc-switches description.
5077 2011-07-22 Jason Merrill <jason@redhat.com>
5080 * c-decl.c (c_linkage_bindings): Define.
5082 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
5085 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5087 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
5089 * config/i386/i386.c (ix86_option_override_internal): Disallow
5091 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5092 only for TARGET_LP64.
5093 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5095 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5097 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5098 avoid warnings when GCC is built with a C++ compiler.
5100 2011-07-22 Martin Jambor <mjambor@suse.cz>
5103 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5104 if decl node is in another partition, call cgraph_get_node only once.
5106 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
5108 * config.gcc (x86_64-*-linux*): Set
5109 default_gnu_indirect_function to yes.
5111 2011-07-22 Richard Guenther <rguenther@suse.de>
5113 PR tree-optimization/45819
5114 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5115 preserve volatile and notrap flags.
5117 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5118 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5121 * configure.ac: Test AM_ICONV with CXX.
5122 * configure: Regenerate.
5123 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5125 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5128 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5129 (set_cloog_options): Use it.
5131 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5134 * gcc.c (main): Call stack_limit_increase (64MB).
5135 * toplev.c (toplev_main): Likewise.
5137 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5139 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5140 instead of force_reg.
5142 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5144 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5145 needed and use force_reg after convert.
5146 (ix86_expand_call): Likewise.
5147 (ix86_expand_special_args_builtin): Likewise.
5148 (ix86_expand_builtin): Likewise.
5150 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5154 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5155 in parameter. Initialize v1 and v2 based on the values returned
5156 by clast_name_to_lb_ub.
5157 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5159 (type_for_clast_bin): Same.
5160 (type_for_clast_expr): Same.
5161 (type_for_clast_eq): Update calls to type_for_clast_expr.
5162 (type_for_clast_for): Same.
5163 (build_iv_mapping): Same.
5164 * graphite-ppl.h (value_min): New.
5166 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5168 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5169 types whenever possible.
5171 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5173 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5175 (new_clast_name_index): Add lb and ub parameters.
5176 (free_clast_name_index): New.
5177 (clast_name_to_lb_ub): New.
5178 (save_clast_name_index): Add lb and ub parameters.
5179 (compute_bounds_for_param): New.
5180 (type_for_level): Removed.
5181 (type_for_clast_for): Removed level parameter. Do not call
5183 (graphite_create_new_loop): Store the lb and ub for the clast_name
5184 of the iterator of the loop that has been generated.
5185 (graphite_create_new_loop_guard): Remove parameter level.
5186 (create_params_index): Store the lb and ub of each parameter.
5187 (gloog): Use free_clast_name_index. Pass to create_params_index
5190 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5192 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5193 (max_precision_type): Inline max_signed_precision_type.
5194 (type_for_clast_red): Use max_precision_type.
5195 (type_for_clast_bin): Same.
5196 (type_for_clast_for): Same.
5198 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5200 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5202 (gcc_type_for_value): Renamed type_for_value.
5203 (gcc_type_for_clast_term): Renamed type_for_clast_term.
5204 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5205 (gcc_type_for_clast_red): Renamed type_for_clast_red.
5206 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5207 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5208 (graphite_translate_clast_equation): Update calls.
5209 (compute_type_for_level): Renamed type_for_level.
5210 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5211 (build_iv_mapping): Update calls.
5212 (graphite_create_new_loop_guard): Same.
5214 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5216 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5219 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5221 * graphite-clast-to-gimple.c (struct ivs_params): New.
5222 (clast_name_to_gcc): Use ivs_params to pass around parameters.
5223 (clast_to_gcc_expression): Same.
5224 (clast_to_gcc_expression_red): Same.
5225 (gcc_type_for_clast_term): Same.
5226 (gcc_type_for_clast_expr): Same.
5227 (gcc_type_for_clast_red): Same.
5228 (gcc_type_for_clast_bin): Same.
5229 (gcc_type_for_clast_eq): Same.
5230 (graphite_translate_clast_equation): Same.
5231 (graphite_create_guard_cond_expr): Same.
5232 (graphite_create_new_guard): Same.
5233 (graphite_create_new_loop): Same.
5234 (build_iv_mapping): Same.
5235 (translate_clast_user): Same.
5236 (graphite_create_new_loop_guard): Same.
5237 (translate_clast): Same.
5238 (translate_clast_for_loop): Same.
5239 (translate_clast_for): Same.
5240 (translate_clast_guard): Same.
5241 (initialize_cloog_names): Fix typo.
5242 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5244 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5246 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5247 (new_clast_name_index): Add level parameter.
5248 (clast_name_to_level): New.
5249 (save_clast_name_index): Add level parameter.
5250 (newivs_to_depth_to_newiv): Removed.
5251 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5252 (graphite_create_new_loop): Add level parameter. Pass level to
5253 save_clast_name_index.
5254 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5255 (create_params_index): Pass level to save_clast_name_index.
5257 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5259 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5260 recompute type, lb, and ub. Get them from...
5261 (graphite_create_new_loop_guard): ...here. Pass in parameter
5262 pointers to type, lb, and ub.
5263 (translate_clast_for_loop): Update function calls.
5264 (translate_clast_for): Same.
5266 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5268 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5270 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5271 (gcc_type_for_iv_of_clast_loop): Update use of level.
5272 (gloog): Start counting nesting level from 0.
5273 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5274 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5275 psct_dynamic_dim on level.
5277 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5279 * config/i386/i386.c (ix86_legitimize_address): Convert to
5282 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5284 * config/i386/i386.c (function_value_64): Always return pointers
5286 (ix86_promote_function_mode): New.
5287 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5289 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5291 PR tree-optimization/49749
5292 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5293 remove no-longer-used maxrank variable.
5295 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
5297 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5299 2011-07-21 Jason Merrill <jason@redhat.com>
5301 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5302 * recog.h (struct insn_data_d): Check it instead of
5303 HAVE_DESIGNATED_INITIALIZERS.
5304 * genoutput.c (output_insn_data): Likewise.
5306 2011-07-21 Richard Guenther <rguenther@suse.de>
5308 PR tree-optimization/49770
5309 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5310 valueized any operand. Renamed from ...
5311 (valueize_refs): ... this. New wrapper around valueize_refs_1.
5312 (valueize_shared_reference_ops_from_ref): Return whether we
5313 valueized any operand.
5314 (vn_reference_lookup): Only when we valueized any operand
5315 use the valueized reference for alias analysis. Do not preserve
5316 the original reference tree in this case.
5318 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
5320 * config/i386/i386.c (ix86_decompose_address): Reject all but
5321 register operands and subregs of DImode hard registers in index.
5323 2011-07-21 Kai Tietz <ktietz@redhat.com>
5325 * fold-const.c (fold_unary_loc): Preserve indirect
5326 comparison cast to none-boolean type.
5327 * tree-ssa.c (useless_type_conversion_p): Preserve cast
5328 from/to boolean-type.
5329 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5330 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5331 * tree-cfg.c (verify_gimple_comparison): Check result
5332 type of comparison expression.
5333 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5334 of condition result and disallow type-cast sinking into comparison.
5336 2011-07-21 Richard Guenther <rguenther@suse.de>
5338 * tree-ssa-forwprop.c (combine_conversions): Return whether
5339 we have to run cfg-cleanup. Properly remove dead stmts.
5340 (ssa_forward_propagate_and_combine): Adjust.
5342 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
5344 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5346 2011-07-21 Kai Tietz <ktietz@redhat.com>
5348 * tree-ssa-propagate.c (substitute_and_fold): Use
5349 do_dce flag to deside, if BB's statements are scanned
5350 in last to first, or first to last order.
5352 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
5354 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5356 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
5357 Uros Bizjak <ubizjak@gmail.com>
5358 Richard Henderson <rth@redhat.com>
5360 * config/i386/constraints.md (w): New.
5362 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5363 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5365 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5366 instead of TARGET_64BIT.
5368 * config/i386/i386.md (indirect_jump): Replace
5369 nonimmediate_operand with indirect_branch_operand.
5370 (*indirect_jump): Likewise. Replace constraint "m" with "w".
5371 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5372 Convert operand 0 to Pmode for x32 if not PIC.
5373 (*tablejump_1): Replace nonimmediate_operand with
5374 indirect_branch_operand. Replace constraint "m" with "w".
5375 (*call_vzeroupper): Replace constraint "m" with "w".
5377 (*call_rex64_ms_sysv_vzeroupper): Likewise.
5378 (*call_rex64_ms_sysv): Likewise.
5379 (*call_value_vzeroupper): Likewise.
5380 (*call_value): Likewise.
5381 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5382 (*call_value_rex64_ms_sysv): Likewise.
5383 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5385 * config/i386/predicates.md (indirect_branch_operand): New.
5386 (call_insn_operand): Support x32.
5388 2011-07-20 Michael Eager <eager@eagercon.com>
5390 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5392 2011-07-20 Richard Henderson <rth@redhat.com>
5394 * cfg.c (dump_bb_info): Dump basic_block->flags.
5395 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5397 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
5399 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5400 of DImode hard registers in index.
5401 (ix86_legitimate_address_p): Allow subregs of base and index to span
5402 more than a word. Assert that subregs of base and index satisfy
5403 register_no_elim_operand predicates. Reject addresses where
5404 base and index have different modes.
5406 2011-07-20 Robert Millan <rmh@gnu.org>
5408 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5410 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5412 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5413 removing now-unnecessary assignment.
5415 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5417 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5418 memory address space to the type's address space.
5420 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
5424 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5425 and expand appropriately if there is a CONST_INT in operand2.
5426 (usmulqihi3): New insn.
5427 (*sumulqihi3): New insn.
5428 (*osmulqihi3): New insn.
5429 (*oumulqihi3): New insn.
5430 (*muluqihi3.uconst): New insn_and_split.
5431 (*muluqihi3.sconst): New insn_and_split.
5432 (*mulsqihi3.sconst): New insn_and_split.
5433 (*mulsqihi3.uconst): New insn_and_split.
5434 (*mulsqihi3.oconst): New insn_and_split.
5435 (*ashifthi3.signx.const): New insn_and_split.
5436 (*ashifthi3.signx.const7): New insn_and_split.
5437 (*ashifthi3.zerox.const): New insn_and_split.
5438 (mulsqihi3): New insn.
5439 (muluqihi3): New insn.
5440 (muloqihi3): New insn.
5441 * config/avr/predicates.md (const_2_to_7_operand): New.
5442 (const_2_to_6_operand): New.
5447 (register_or_s9_operand): New.
5449 2011-07-20 Kai Tietz <ktietz@redhat.com>
5451 * builtins.c (fold_builtin_expect): See through the cast
5452 from truthvalue_type_node to long.
5454 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5456 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5457 where we can use them from the standard and altivec instruction
5458 sets, instead of always using the 3 operand VSX forms that require
5459 the destination to overlap one of the inputs.
5464 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5466 (fmsdf4_fpr): Ditto.
5467 (nfmadf4_fpr): Ditto.
5468 (nfmsdf4_fpr): Ditto.
5470 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
5472 * genrecog.c (make_insn_sequence): Correct position numbering
5473 when filtering out match_scratch and match_dup.
5475 2011-07-20 Richard Guenther <rguenther@suse.de>
5477 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5478 against already removed statements.
5479 (forward_propagate_into_comparison): Remove dead defining stmts.
5480 (forward_propagate_into_gimple_cond): Likewise.
5481 (forward_propagate_into_cond): Simplify.
5482 (ssa_forward_propagate_and_combine): Handle changed cfg from
5483 forward_propagate_into_comparison.
5484 * tree-ssa-phiopt.c (conditional_replacement): Use proper
5485 locations for newly built statements.
5487 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
5489 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5491 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5493 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5494 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5496 2011-07-20 Richard Guenther <rguenther@suse.de>
5499 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5500 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5501 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
5503 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
5505 * config/frv/frv.c (frv_register_move_cost): Define explicitly
5506 costs for subclasses of GR_REGS.
5508 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
5511 * config/i386/predicates.md (no_seg_addres_operand): No more special.
5512 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5513 of DImode hard registers in base.
5514 (ix86_legitimate_address_p): Allow SImode and DImode base and index
5517 2011-07-20 Richard Guenther <rguenther@suse.de>
5519 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5520 (unify_nodes): Deal with that.
5521 (solve_graph): Likewise.
5523 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
5525 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5526 canonicalize left operand from ZERO_EXTEND to AND.
5528 2011-07-20 Anatoly Sokolov <aesok@post.ru>
5530 * target.def (class_max_nregs): New hook.
5531 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5532 * doc/tm.texi: Regenerate.
5533 * targhooks.c (default_class_max_nregs): New function.
5534 * targhooks.h (default_class_max_nregs): Declare.
5535 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5536 x_ira_reg_class_min_nregs arrays to unsigned char.
5537 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5538 hook instead of CLASS_MAX_NREGS macro.
5539 * reginfo.c (restore_register_info): Ditto.
5540 * ira-conflicts.c (process_regs_for_copy): Use
5541 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5542 Change type rclass and aclass vars to reg_class_t.
5543 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5544 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5546 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5547 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5549 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5550 * config/i386/i386.c (ix86_class_max_nregs): New function.
5551 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5552 instead of CLASS_MAX_NREGS macro.
5553 (TARGET_CLASS_MAX_NREGS): Define.
5554 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5555 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5556 * config/avr/avr.c (class_max_nregs): Remove function.
5557 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5558 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5559 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5560 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5561 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5562 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5563 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5564 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5565 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5566 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5567 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5568 * config/score/score.h (CLASS_MAX_NREGS): Remove.
5569 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5570 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5571 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5573 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
5575 * cif-code.def (OVERWRITABLE): Fix typo and move around.
5576 (TARGET_OPTIMIZATION_MISMATCH): Delete.
5577 (EH_PERSONALITY): Fix typo.
5578 (NON_CALL_EXCEPTIONS): Fix message.
5579 (OPTIMIZATION_MISMATCH): Adjust message.
5580 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5582 2011-07-19 Ian Lance Taylor <iant@google.com>
5584 * doc/install.texi (Configuration): Document
5585 --enable-build-poststage1-with-cxx.
5587 2011-07-19 Robert Millan <rmh@gnu.org>
5589 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
5590 (GLIBC_DYNAMIC_LINKER): Remove.
5592 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
5593 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5594 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5595 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5596 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5597 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5599 * config/mips/linux.h: Remove everything except for ...
5600 (GLIBC_DYNAMIC_LINKER): ... this macro.
5602 * config/mips/linux64.h: Remove everything except for ...
5603 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5604 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5605 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5606 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5607 (GNU_USER_LINK_EMULATIONN32): New macros.
5609 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5610 Use the new headers.
5612 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5614 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5615 Add offset_known_p and size_known_p fields.
5616 (MEM_OFFSET_KNOWN_P): Update accordingly.
5617 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5618 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5619 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5620 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5621 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5622 (init_emit_regs): Likewise.
5624 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5626 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5627 (MEM_OFFSET): Change from returning an rtx to returning a
5629 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5630 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5631 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5632 (clear_mem_offset): Declare.
5633 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5634 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5635 MEM_OFFSET to get a HOST_WIDE_INT offset.
5636 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
5637 (adjust_offset_for_component_ref): Take a bool "known_p"
5638 parameter and a HOST_WIDE_INT "offset" parameter.
5639 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5640 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5641 than an rtx. Use clear_mem_offset to clear the offset.
5642 * cfgcleanup.c (merge_memattrs): Likewise.
5643 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5644 * function.c (assign_parm_find_stack_rtl): Likewise.
5645 (assign_parm_setup_stack): Likewise.
5646 * print-rtl.c (print_rtx): Likewise.
5647 * reload.c (find_reloads_subreg_address): Likewise.
5648 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5649 * var-tracking.c (INT_MEM_OFFSET): Likewise.
5650 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5651 (get_mem_align_offset): Likewise.
5652 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5653 (clear_mem_offset): New function.
5654 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5655 offset rather than an rtx. Assume both the expressio and offset
5657 (r10k_needs_protection_p_1): Update accordingly, checking the
5658 expression and offset availability here instead.
5660 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5662 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5663 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5664 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5665 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5666 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5667 (clear_mem_size): Declare.
5668 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5669 (clear_mem_size): New function.
5670 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5671 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5672 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
5673 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
5675 (nonoverlapping_memrefs_p): Likewise.
5676 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5677 (expand_builtin_init_trampoline): Likewise.
5678 * calls.c (compute_argument_addresses): Likewise.
5679 * cfgcleanup.c (merge_memattrs): Likewise.
5680 * dce.c (find_call_stack_args): Likewise.
5681 * dse.c (record_store, scan_insn): Likewise.
5682 * dwarf2out.c (dw_sra_loc_expr): Likewise.
5683 * expr.c (emit_block_move_hints): Likewise.
5684 * function.c (assign_parm_find_stack_rtl): Likewise.
5685 * print-rtl.c (print_rtx): Likewise.
5686 * reload.c (find_reloads_subreg_address): Likewise.
5687 * rtlanal.c (may_trap_p_1): Likewise.
5688 * var-tracking.c (track_expr_p): Likewise.
5689 * varasm.c (assemble_trampoline_template): Likewise.
5690 * config/arm/arm.c (arm_print_operand): Likewise.
5691 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5692 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5693 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5694 (expand_constant_setmem_prologue): Likewise.
5695 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5696 * config/rs6000/rs6000.c (expand_block_move): Likewise.
5697 (adjacent_mem_locations): Likewise.
5698 * config/s390/s390.c (s390_expand_setmem): Likewise.
5699 (s390_expand_insv): Likewise.
5700 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5701 (*extendqi<mode>2_short_displ): Likewise.
5702 * config/sh/sh.c (expand_block_move): Likewise.
5703 * config/sh/sh.md (extv, extzv): Likewise.
5705 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5707 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5708 (mem_attrs_htab_eq): ...here.
5709 (find_mem_attrs): Replace with...
5710 (set_mem_attrs): ...this function. Take a mem_attrs structure
5711 rather than individual fields.
5712 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5713 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5714 (set_mem_size, change_address, adjust_address_1, offset_address)
5715 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5718 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5720 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5721 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5722 Provide a dummy definition of MEM_ADDR_SPACE for generators.
5723 (target_rtl): Add x_mode_mem_attrs.
5724 (mode_mem_attrs): New macro.
5725 (get_mem_attrs): New function.
5726 * emit-rtl.c (get_mem_attrs): Rename to...
5727 (find_mem_attrs): ...this.
5728 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5729 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5730 (set_mem_size, change_address, adjust_address_1, offset_address)
5731 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5733 (init_emit_regs): Initialize mode_mem_attrs.
5735 2011-07-19 Richard Guenther <rguenther@suse.de>
5737 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5738 TRUTH_*_EXPR handling.
5739 * tree-ssa-operands.c (get_expr_operands): Likewise.
5740 * tree-ssa-pre.c (fully_constant_expression): Likewise.
5741 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5743 (is_and_or_or): Likewise.
5744 (is_norm_cond_subset_of): Likewise.
5746 2011-07-19 Richard Guenther <rguenther@suse.de>
5748 * tree.h (fold_build_pointer_plus_loc): New helper function.
5749 (fold_build_pointer_plus_hwi_loc): Likewise.
5750 (fold_build_pointer_plus): Define.
5751 (fold_build_pointer_plus_hwi): Likewise.
5752 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5753 (fold_builtin_memory_op): Likewise.
5754 (fold_builtin_stpcpy): Likewise.
5755 (fold_builtin_memchr): Likewise.
5756 (fold_builtin_strstr): Likewise.
5757 (fold_builtin_strchr): Likewise.
5758 (fold_builtin_strrchr): Likewise.
5759 (fold_builtin_strpbrk): Likewise.
5760 (fold_builtin_strcat): Likewise.
5761 (expand_builtin_memory_chk): Likewise.
5762 (fold_builtin_memory_chk): Likewise.
5763 * c-typeck.c (build_unary_op): Likewise.
5764 * cgraphunit.c (thunk_adjust): Likewise.
5765 * fold-const.c (build_range_check): Likewise.
5766 (fold_binary_loc): Likewise.
5767 * omp-low.c (extract_omp_for_data): Likewise.
5768 (expand_omp_for_generic): Likewise.
5769 (expand_omp_for_static_nochunk): Likewise.
5770 (expand_omp_for_static_chunk): Likewise.
5771 * tree-affine.c (add_elt_to_tree): Likewise.
5772 * tree-data-ref.c (split_constant_offset_1): Likewise.
5773 * tree-loop-distribution.c (generate_memset_zero): Likewise.
5774 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5775 * tree-predcom.c (ref_at_iteration): Likewise.
5776 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5777 (add_to_parts): Likewise.
5778 (create_mem_ref): Likewise.
5779 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5780 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5781 (number_of_iterations_le): Likewise.
5782 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5783 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5784 (vect_create_addr_base_for_vector_ref): Likewise.
5785 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5786 (vect_create_cond_for_alias_checks): Likewise.
5787 * tree-vrp.c (extract_range_from_assert): Likewise.
5788 * config/alpha/alpha.c (alpha_va_start): Likewise.
5789 (alpha_gimplify_va_arg_1): Likewise.
5790 * config/i386/i386.c (ix86_va_start): Likewise.
5791 (ix86_gimplify_va_arg): Likewise.
5792 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5793 * config/mep/mep.c (mep_expand_va_start): Likewise.
5794 (mep_gimplify_va_arg_expr): Likewise.
5795 * config/mips/mips.c (mips_va_start): Likewise.
5796 (mips_gimplify_va_arg_expr): Likewise.
5797 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5798 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5799 (rs6000_gimplify_va_arg): Likewise.
5800 * config/s390/s390.c (s390_va_start): Likewise.
5801 (s390_gimplify_va_arg): Likewise.
5802 * config/sh/sh.c (sh_va_start): Likewise.
5803 (sh_gimplify_va_arg_expr): Likewise.
5804 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5805 * config/spu/spu.c (spu_va_start): Likewise.
5806 (spu_gimplify_va_arg_expr): Likewise.
5807 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5809 (xstormy16_gimplify_va_arg_expr): Likewise.
5810 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5811 (xtensa_gimplify_va_arg_expr): Likewise.
5813 2011-07-19 Richard Guenther <rguenther@suse.de>
5815 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5816 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5820 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5821 result of BIT_*_EXPR to bitfield precision.
5823 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
5825 PR tree-optimization/49742
5826 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5827 as a potential write.
5829 2011-07-19 Richard Guenther <rguenther@suse.de>
5831 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5832 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5833 (forward_propagate_comparison): Simplify, remove obsolete code.
5835 2011-07-19 Richard Guenther <rguenther@suse.de>
5837 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5838 BIT_XOR_EXPR, same as the RTL expander does.
5839 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5840 (verify_gimple_assign_unary): Likewise.
5841 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5842 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5843 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5845 2011-07-19 Jakub Jelinek <jakub@redhat.com>
5847 PR tree-optimization/49768
5848 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5849 if offset is smaller than bitoffset, but offset+size is bigger
5852 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
5854 PR tree-optimization/49771
5855 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5856 zero step, set segment length to the size of the data-ref's type.
5858 2011-07-18 Martin Jambor <mjambor@suse.cz>
5860 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5862 (ipcp_values_pool): Declare.
5863 (ipcp_sources_pool): Likewise.
5864 (ipcp_lattice): Changed to forward declaration.
5865 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5866 cannot_devirtualize.
5867 (ipa_node_params): New fields descriptors, lattices, known_vals,
5868 clone_for_all_contexts and node dead, removed fields params and
5870 (ipa_set_param_count): Removed.
5871 (ipa_get_param_count): Made to work with descriptors vector.
5872 (ipa_get_param): Updated.
5873 (ipa_param_cannot_devirtualize_p): Removed.
5874 (ipa_param_types_vec_empty): Likewise.
5875 (ipa_set_param_used): New function.
5876 (ipa_get_param_used): Updated to use descriptors vector.
5877 (ipa_func_list): Removed.
5878 (ipa_init_func_list): Removed declaration.
5879 (ipa_push_func_to_list_1): Likewise.
5880 (ipa_pop_func_from_list): Likewise.
5881 (ipa_push_func_to_list): Removed.
5882 (ipa_lattice_from_jfunc): Remove declaration.
5883 (ipa_get_jf_pass_through_result): Declare.
5884 (ipa_get_jf_ancestor_result): Likewise.
5885 (ipa_value_from_jfunc): Likewise.
5886 (ipa_get_lattice): Update.
5887 (ipa_lat_is_single_const): New function.
5888 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5889 (ipa_init_func_list): Likewise.
5890 (ipa_pop_func_from_list): Likewise.
5891 (ipa_get_param_decl_index): Fix coding style.
5892 (count_formal_params): Removed.
5893 (count_formal_params_1): Renamed to count_formal_params.
5894 (ipa_populate_param_decls): Update to use descriptors vector.
5895 (ipa_initialize_node_params): Likewise.
5896 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5897 (ipa_analyze_params_uses): Likewise.
5898 (ipa_free_node_params_substructures): Likewise and free also lattices
5900 (duplicate_array): Removed.
5901 (ipa_edge_duplication_hook): Add the new edge to the list of edge
5903 (ipa_node_duplication_hook): Update to use new lattices.
5904 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5905 (ipa_free_all_structures_after_iinln): Likewise.
5906 (ipa_write_node_info): Update to use new lattices.
5907 (ipa_read_node_info): Likewise.
5908 (ipa_get_jf_pass_through_result): New function.
5909 (ipa_get_jf_ancestor_result): Likewise.
5910 (ipa_value_from_jfunc): Likewise.
5911 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5912 * ipa-cp.c: Reimplemented.
5913 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5914 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5915 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5916 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5917 * doc/invoke.texi (devirt-type-list-size): Removed description.
5918 (ipa-cp-value-list-size): Added description.
5920 2011-07-18 Richard Henderson <rth@redhat.com>
5922 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5923 before calling create_basic_block.
5925 2011-07-18 Jakub Jelinek <jakub@redhat.com>
5928 * tree.c (build_common_builtin_nodes): Register
5929 __builtin_return_address, __cyg_profile_func_enter
5930 and __cyg_profile_func_exit.
5932 2011-07-18 Richard Henderson <rth@redhat.com>
5934 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5935 (add_labels_and_missing_jumps): ... here.
5936 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5938 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
5941 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5942 of DImode hard registers in PLUS address chains.
5944 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5947 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5948 (alpha*-*-freebsd*): Likewise.
5949 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5950 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5951 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5952 crtprec80.o, crtfastmath.o to extra_parts for all targets.
5953 (ia64*-*-elf*): Remove extra_parts.
5954 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5955 (sparc64-*-linux*): Likewise.
5956 (sparc64-*-freebsd*): Likewise.
5959 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5960 (ia64*-*-linux*): Likewise.
5961 (mips64*-*-linux*): Likewise.
5962 (mips*-*-linux*): Likewise.
5964 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
5966 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5968 2011-07-18 Richard Guenther <rguenther@suse.de>
5970 * gimplify.c (gimplify_expr): Use input_location, not saved_location
5971 when building new trees.
5973 2011-07-18 Richard Guenther <rguenther@suse.de>
5975 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5976 expansion result to bitfield precision if required.
5978 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5980 * config.gcc (i[3456x]86-*-netware*): Remove.
5982 * gthr-nks.h: Remove.
5983 * configure.ac (enable_threads): Remove nks.
5984 * configure: Regenerate.
5986 * config/i386/i386.c (ix86_encode_section_info): Remove netware
5988 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5989 <netware.h> reference.
5991 * config/i386/netware-libgcc.c,
5992 gcc/config/i386/netware-libgcc.def,
5993 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5994 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5995 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5996 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
5998 * doc/extend.texi (Function Attributes,
5999 callee_pop_aggregate_return): Remove i?86-netware reference.
6000 * doc/install.texi (Configuration, --enable-threads): Remove nks.
6002 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6006 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6008 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6011 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
6014 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6016 2011-07-16 Matthias Klose <doko@ubuntu.com>
6018 * doc/install.texi: Document --enable-static-libjava.
6020 2011-07-15 Richard Henderson <rth@redhat.com>
6022 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6023 Replace all three arguments by returning a VEC of edges.
6024 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6025 pointers and counts.
6026 (fix_edges_for_rarely_executed_code): Merge ...
6027 (rest_of_handle_partition_blocks): ... into...
6028 (partition_hot_cold_basic_blocks): ... here. Return todo items if
6029 any work was performed.
6030 (pass_partition_blocks): Clear todo_flags_finish.
6032 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
6033 Jakub Jelinek <jakub@redhat.com>
6034 Jonathan Wakely <jwakely.gcc@gmail.com>
6037 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6038 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6040 2011-07-15 Jason Merrill <jason@redhat.com>
6043 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6044 rather than --tool_opts.
6046 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
6048 * doc/plugins.texi (Building GCC plugins): gengtype needs its
6049 corresponding gtype.state.
6051 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6054 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6056 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
6059 * doc/md.texi (Standard Names): Document window_save.
6060 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6061 expand_debug_expr and expand_debug_source_expr. If the target has
6062 a window_save instruction, adjust the ENTRY_VALUE_EXP.
6063 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6064 SSA_NAME_VAR is a parameter.
6065 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6066 * var-tracking.c (parm_reg_t): New type and associated vector type.
6067 (windowed_parm_regs): New variable.
6068 (adjust_insn): If the target has a window_save instruction and this
6069 is the instruction, make its effect on parameter registers explicit.
6070 (next_non_note_insn_var_location): New function.
6071 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6072 (vt_add_function_parameter): If the target has a window_save insn,
6073 adjust the incoming RTL and record that in windowed_parm_regs.
6074 (vt_finalize): Free windowed_parm_regs.
6076 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
6078 * doc/invoke.texi (C6X Options): New section.
6079 * doc/md.texi (TI C6X family): New section.
6080 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6082 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6083 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6084 Provide C6X definitions.
6085 * config/c6x/c6x.md: New file.
6086 * config/c6x/constraints.md: New file.
6087 * config/c6x/predicates.md: New file.
6088 * config/c6x/c6x-sched.md.in: New file.
6089 * config/c6x/c6x-sched.md: New file.
6090 * config/c6x/gensched.sh: New file.
6091 * config/c6x/c6x-mult.md.in: New file.
6092 * config/c6x/genmult.sh: New file.
6093 * config/c6x/c6x-mult.md: New file.
6094 * config/c6x/sync.md: New file.
6095 * config/c6x/c6x-protos.h: New file.
6096 * config/c6x/sfp-machine.h: New file.
6097 * config/c6x/c6x.c: New file.
6098 * config/c6x/c6x.h: New file.
6099 * config/c6x/crti.s: New file.
6100 * config/c6x/crtn.s: New file.
6101 * config/c6x/lib1funcs.asm: New file.
6102 * config/c6x/c6x-modes.def: New file.
6103 * config/c6x/genopt.sh: New file.
6104 * config/c6x/c6x.opt: New file.
6105 * config/c6x/c6x-tables.opt: New file.
6106 * config/c6x/c6x-opts.h: New file.
6107 * config/c6x/c6x-isas.def: New file.
6108 * config/c6x/elf.h: New file.
6109 * config/c6x/elf-common.h: New file.
6110 * config/c6x/uclinux-elf.h: New file.
6111 * config/c6x/t-c6x: New file.
6112 * config/c6x/t-c6x-elf: New file.
6113 * config/c6x/t-c6x-uclinux: New file.
6114 * config/c6x/t-c6x-softfp: New file.
6115 * config/c6x/gtd.c: New file.
6116 * config/c6x/gtf.c: New file.
6117 * config/c6x/ltd.c: New file.
6118 * config/c6x/ltf.c: New file.
6119 * config/c6x/ged.c: New file.
6120 * config/c6x/gef.c: New file.
6121 * config/c6x/led.c: New file.
6122 * config/c6x/lef.c: New file.
6123 * config/c6x/eqd.c: New file.
6124 * config/c6x/eqf.c: New file.
6125 * config/c6x/libgcc-c6xeabi.ver: New file.
6128 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
6129 PR rtl-optimization/11320
6130 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6131 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6132 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6133 current_sched_info->compute_jump_reg_dependencies. Record which
6134 registers are used and which registers are set by the jump.
6135 Clear deps->reg_conditional_sets after a barrier.
6136 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6137 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6138 (init_deps): Initialize reg_conditional_sets.
6139 (free_deps): Clear reg_conditional_sets.
6140 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6141 Mark registers live on entry of the fallthrough block and conditionally
6142 set as set by the jump. Mark registers live on entry of non-fallthrough
6143 blocks as used by the jump.
6144 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6145 Mark new parameters as unused.
6147 2011-07-14 Andrew Pinski <pinskia@gmail.com>
6150 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6151 Use fold_build2_loc instead of build2.
6152 Use the correct type for the new tree.
6154 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6156 PR rtl-optimization/11320
6157 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6158 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6160 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
6163 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6165 (*rotw<mode>): Use const_int_operand for operand2.
6166 Use match_scatch for operand3.
6167 (*rotb<mode>): Ditto
6168 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6170 2011-07-14 Richard Guenther <rguenther@suse.de>
6172 PR tree-optimization/49651
6173 * tree-ssa-structalias.c (get_constraint_for_1): Properly
6174 handle dereferences with subvariables.
6176 2011-07-14 Richard Guenther <rguenther@suse.de>
6178 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6179 (fold_stmt_1): Do it here directly on gimple and as a first thing.
6181 2011-07-14 Richard Guenther <rguenther@suse.de>
6183 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6184 not bool_var when folding bool_var != 1 or bool_var == 0.
6186 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6188 * haifa-sched.c (schedule_insns): Remove outdated comment.
6189 (schedule_block): When computing a known value for TODO_SPEC,
6190 just set it rather than using logical operations.
6191 (try_ready): Likewise. Use a local variable rather than a
6192 pointer to TODO_SPEC. Reorder an if statement to move the
6193 easy case to the then block.
6194 * sched-deps.c (dep_spec_p): New static function.
6195 (update_dep): Use it to decide whether to call
6196 change_spec_dep_to_hard.
6197 (get_back_and_forw_lists): Use it.
6198 (sd_resolve_dep): Likewise.
6199 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6200 (haifa_note_mem_dep): Likewise.
6201 (check_dep): Likewise.
6202 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6203 (sched_free_deps): Free in two passes.
6205 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
6208 * expr.c (all_zeros_p): Undo bogus part of last change.
6210 2011-07-14 Matthias Klose <doko@ubuntu.com>
6212 * doc/extend.texi (optimize attribute): Fix typo.
6214 2011-07-14 Richard Guenther <rguenther@suse.de>
6216 * gimplify.c (gimplify_expr): Only do required conversions.
6218 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
6221 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6222 i.e. use default_elf_select_section.
6223 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6224 (READONLY_DATA_SECTION_ASM_OP): Remove.
6225 (TARGET_ASM_NAMED_SECTION): Move from here...
6226 * config/avr/avr.c: ...to here.
6227 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6228 (avr_asm_named_section): Make static.
6230 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6233 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6234 and crtfastmath.o for Linux/x86.
6236 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6238 * haifa-sched.c: Include "hashtab.h"
6239 (sched_no_dce): New global variable.
6240 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6241 SHADOW_P): New macros.
6242 (last_clock_var, cycle_issued_insns): Move declarations.
6243 (must_backtrack): New static variable.
6244 (struct delay_pair): New structure.
6245 (delay_htab, delay_htab_i2): New static variables.
6246 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6247 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6249 (dep_cost_1): If delay pairs exist, try to look up the insns and
6250 use the correct pair delay if we find them.
6251 (rank-for_schedule): Tweak priority for insns that must be scheduled
6252 soon to avoid backtracking.
6253 (queue_insn): Detect conditions which force backtracking.
6254 (ready_add): Likewise.
6255 (struct sched_block_state): Add member shadows_only_p.
6256 (struct haifa_save_data): New structure.
6257 (backtrack_queue): New static variable.
6258 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6259 unschedule_insns_until, restore_last_backtrack_point,
6260 free_topmost_backtrack_point, free_backtrack_queue,
6261 estimate_insn_tick, estimate_shadow_tick): New functions.
6262 (prune_ready_list): New arg shadows_only_p. All callers changed.
6263 If true, remove everything that isn't SHADOW_P. Look up delay
6264 pairs and estimate ticks to avoid scheduling the first insn too early.
6265 (verify_shadows): New function.
6266 (schedule_block): Add machinery to enable backtracking.
6267 (sched_init): Take sched_no_dce into account when setting
6269 (free_delay_pairs): New function.
6270 (init_h_i_d): Initialize INSN_EXACT_TICK.
6271 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6272 * sched-deps.c (sd_unresolve_dep): New function.
6273 * sched-int. (struct haifa_sched_info): New fields save_state
6275 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6276 feeds_backtrack_insn and shadow_p.
6277 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6278 (sched_no_dce): Declare variable.
6279 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6280 sd_unresolve_dep): Declare functions.
6281 * modulo-sched.c (sms_sched_info): Clear the two new fields.
6282 * sched-rgn.c (rgn_const_sched_info): Likewise.
6283 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6284 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6285 (ebb_sched_info): Add them for the two new fields.
6286 (add_deps_for_risky_insns): Call add_delay_dependencies.
6288 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6290 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6292 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6293 (rs6000_call_indirect_aix): Ditto.
6294 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6295 (call_indirect_aix<ptrsize>_internal): Ditto.
6296 (call_indirect_aix<ptrsize>_nor11): Ditto.
6297 (call_indirect_aix<ptrsize>_internal2): Ditto.
6298 (call_value_indirect_aix<ptrsize>): Ditto.
6299 (call_value_indirect_aix<ptrsize>_internal): Ditto.
6300 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6301 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6302 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6304 2011-07-13 Jason Merrill <jason@redhat.com>
6306 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6308 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6310 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6311 * config/spu/spu.md ("clrsb<mode>2"): New expander.
6313 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
6315 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6316 * configure: Regenerate.
6318 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6320 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6321 (asm_file_start): Remove.
6322 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6323 free_bb_for_insn around code that modifies insns before
6324 restarting df analysis.
6326 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6329 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
6330 (LINK_SPEC): ... here.
6332 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
6334 * haifa-sched.c (struct sched_block_state): New.
6335 (schedule_block): Move some local variables into such a structure.
6337 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6339 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6340 * config/i386/t-crtpc: Remove.
6341 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6342 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6344 (x86_64-*-darwin*): Likewise.
6345 (i[34567]86-*-linux*): Likewise.
6346 (x86_64-*-linux*): Likewise.
6348 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6349 Handle -mpc32, -mpc64, -mpc80.
6351 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6353 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6354 * config/alpha/t-crtfm: Remove.
6355 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6356 * config/i386/t-crtfm: Remove.
6357 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6358 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6359 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6360 * config/sparc/t-crtfm: Remove.
6362 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6363 (alpha*-*-freebsd*): Likewise.
6364 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6365 (x86_64-*-darwin*): Likewise.
6366 (i[34567]86-*-linux*): Likewise.
6367 (x86_64-*-linux*): Likewise.
6368 (x86_64-*-mingw*): Likewise.
6369 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6370 (ia64*-*-freebsd*): Likewise.
6371 (ia64*-*-linux*): Likewise.
6372 (mips64*-*-linux*): Likewise.
6373 (mips*-*-linux*): Likewise.
6374 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6375 (sparc64-*-linux*): Likewise.
6376 (sparc64-*-freebsd*): Likewise.
6378 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6380 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6381 * config/darwin-crt3.c: Move to ../libgcc/config.
6382 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6383 ($(T)crt3$(objext)): Remove.
6384 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6385 ($(T)crt2$(objext)): Remove.
6386 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6387 (powerpc64-*-darwin*): Likewise.
6389 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
6391 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6393 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6394 (addsi_1_zext): This.
6396 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
6398 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6399 * doc/tm.texi: Regenerate.
6400 * target.def (mergeable_rodata_prefix): New defhookpod.
6401 * varasm.c (mergeable_string_section, mergeable_constant_section):
6402 Use it. Allocate name with alloca.
6404 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
6406 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6408 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
6410 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6413 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
6415 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
6416 (count_type_elements): Delete.
6417 (complete_ctor_at_level_p): Declare.
6418 * expr.c (flexible_array_member_p): New function, split out from...
6419 (count_type_elements): ...here. Make static. Replace allow_flexarr
6420 parameter with for_ctor_p. When for_ctor_p is true, return the
6421 number of elements that should appear in the top-level constructor,
6422 otherwise return an estimate of the number of scalars.
6423 (categorize_ctor_elements): Replace p_must_clear with p_complete.
6424 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
6425 (complete_ctor_at_level_p): New function, borrowing union logic
6426 from old categorize_ctor_elements_1.
6427 (mostly_zeros_p): Return true if the constructor is not complete.
6428 (all_zeros_p): Update call to categorize_ctor_elements.
6429 * gimplify.c (gimplify_init_constructor): Update call to
6430 categorize_ctor_elements. Don't call count_type_elements.
6431 Unconditionally prevent clearing for variable-sized types,
6432 otherwise rely on categorize_ctor_elements to detect
6433 incomplete initializers.
6435 2011-07-13 Richard Guenther <rguenther@suse.de>
6437 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6438 the final type is integral.
6440 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
6442 * sched-int.h (struct _dep): Add member cost.
6443 (DEP_COST, UNKNOWN_DEP_COST): New macros.
6444 * sched-deps.c (init_dep_1): Initialize DEP_COST.
6445 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6446 (sched_change_pattern): Reset it for dependent insns.
6448 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6450 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6451 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6452 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6453 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6454 (CRT0_S, MCRT0_S): Remove.
6455 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6458 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6460 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6462 * cse.c (insert_with_costs): Put semi-colon after empty loop body
6464 * emit-rtl.c (push_to_sequence): Likewise.
6465 * haifa-sched.c (max_issue): Likewise.
6466 * matrix-reorg.c (add_allocation_site): Likewise.
6467 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6468 * reload.c (alternative_allows_const_pool_ref): Likewise.
6469 * sched-rgn.c (rgn_add_block): Likewise.
6470 (rgn_fix_recovery_cfg): Likewise.
6471 * tree.c (attribute_list_contained): Likewise.
6473 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
6475 * config/i386/i386.c: Tidy processor feature bitmasks.
6478 2011-07-12 Andrew Pinski <pinskia@gmail.com>
6481 * cprop.c (find_implicit_sets): Correct the condition.
6483 2011-07-12 Richard Henderson <rth@redhat.com>
6486 * dwarf2out.h (dwarf_frame_regnum): Remove.
6487 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
6488 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
6489 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6490 (execute_dwarf2_frame): Initialize them.
6491 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6492 users of the macros with the variables.
6493 (expand_builtin_dwarf_sp_column): Revert last change.
6494 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
6495 result of DWARF_FRAME_REGNUM into a local variable.
6497 2011-07-12 Richard Henderson <rth@redhat.com>
6500 * config/i386/i386.c (x86_output_mi_thunk): Use
6501 machopic_indirect_call_target instead of machopic_indirection_name
6504 2011-07-12 Laurent GUERBY <laurent@guerby.net>
6505 Eric Botcazou <ebotcazou@adacore.com>
6507 * prefix.h: Wrap up in extern "C" block.
6509 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
6511 AMD bdver2 Enablement
6512 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6513 (case ${target}): Add bdver2.
6514 * config/i386/driver-i386.c (host_detect_local_cpu): Let
6515 -march=native recognize bdver2 processors.
6516 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6517 bdver2 def_and_undef
6518 * config/i386/i386.c (struct processor_costs bdver2_cost): New
6520 (m_BDVER2): New definition.
6521 (m_AMD_MULTIPLE): Includes m_BDVER2.
6522 (initial_ix86_tune_features): Add bdver2 tuning.
6523 (processor_target_table): Add bdver2 entry.
6524 (static const char *const cpu_names): Add bdver2 entry.
6525 (ix86_option_override_internal): Add bdver2 instruction sets.
6526 (ix86_issue_rate): Add bdver2.
6527 (ix86_adjust_cost): Add bdver2.
6528 (has_dispatch): Add bdver2.
6529 * config/i386/i386.h (TARGET_BDVER2): New definition.
6530 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6531 (enum processor_type): Add PROCESSOR_BDVER2.
6532 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6533 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6536 2011-07-12 Richard Henderson <rth@redhat.com>
6539 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6540 destination address in memory on some paths.
6542 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
6544 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6545 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6546 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6547 * function.c (locate_and_pad_parm): Take it into account.
6548 * target.def (function_arg_round_boundary): New hook.
6549 * targhooks.c (default_function_arg_round_boundary): New function.
6550 * targhooks.h (default_function_arg_round_boundary): Declare.
6551 * doc/tm.texi: Regenerate.
6553 2011-07-12 Richard Guenther <rguenther@suse.de>
6555 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6556 Do not perform no-op changes.
6558 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
6560 * config/arm/predicates.md (neon_struct_operand): Make a normal
6562 (neon_struct_or_register_operand): New predicate.
6563 * config/arm/neon.md (movmisalign<mode>): Replace predicates
6564 with neon_struct_or_register_operand.
6565 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6566 neon_struct_operand instead of memory_operand.
6568 2011-07-12 Martin Jambor <mjambor@suse.cz>
6570 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6571 * cgraph.c (cgraph_get_node_or_alias): Removed.
6572 (change_decl_assembler_name): Changed all calls to
6573 cgraph_get_node_or_alias to a call to cgraph_get_node.
6574 (cgraph_make_decl_local): Likewise.
6575 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6576 * varasm.c (default_binds_local_p_1): Likewise.
6577 (decl_binds_to_current_def_p): Likewise.
6579 2011-07-12 Jakub Jelinek <jakub@redhat.com>
6581 PR tree-optimization/49712
6582 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6584 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
6586 * genautomata.c (add_arc): Return void. All callers changed.
6587 (make_automaton): Remove dead code.
6589 2011-07-11 Richard Henderson <rth@redhat.com>
6591 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6592 (DW_FRAME_POINTER_REGNUM): New.
6593 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6594 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6596 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6597 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6598 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6600 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6601 * dwarf2out.h (dwarf_frame_regnum): New.
6602 (struct cfa_loc): Document the domain of the reg member.
6604 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
6606 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6607 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
6609 2011-07-11 Jakub Jelinek <jakub@redhat.com>
6612 * dwarf2out.c (int_shift_loc_descriptor): New function.
6613 (int_loc_descriptor): If shorter, emit i as
6614 (i >> shift), shift, DW_OP_shl for suitable shift value.
6615 Similarly, try to optimize large negative values using
6616 DW_OP_neg of a positive value if shorter.
6617 (size_of_int_shift_loc_descriptor): New function.
6618 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6620 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6621 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6622 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6624 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6625 addend as added DW_OP_plus if it is shorter.
6627 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6629 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6630 (DTORS_SECTION_ASM_OP): Define.
6632 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6634 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6635 * config/t-dfprules: Move to ../libgcc/config.
6636 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6637 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6638 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6639 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6641 (i[34567]86-*-cygwin*): Likewise.
6642 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6643 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6644 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6645 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6646 D64PBIT_FUNCS, D128PBIT_FUNCS.
6648 2011-07-11 Richard Guenther <rguenther@suse.de>
6650 * tree-vrp.c (simplify_conversion_using_ranges): Manually
6651 translate the source value-range through the conversion chain.
6653 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
6655 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6657 2011-07-11 Arthur Loiret <aloiret@debian.org>
6659 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6660 a bi-arch compiler defaulting to 31-bit. In this case:
6661 (tmake_file): Add s390/t-linux64.
6662 * doc/install.texi: Add s390-linux to the list of targets supporting
6663 --enable-targets=all.
6665 2011-07-11 Arthur Loiret <aloiret@debian.org>
6666 Matthias Klose <doko@debian.org>
6668 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6669 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6670 (tm_file): Add mips/linux64.h.
6671 (tmake_file): Add mips/t-linux64.
6672 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6673 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6674 instead of hardcoded mabi=n32.
6675 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6676 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6679 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6681 * passes.c (init_optimization_passes): Add invariant motion pass
6682 after induction variable optimization.
6684 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
6687 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6688 offsets 1..5 set cc0 in a usable way.
6690 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
6692 * tree.h (call_expr_arg): Remove.
6693 (call_expr_argp): Likewise.
6695 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
6697 * config/sparc/sparc.md (save_register_window_1): Rename to...
6698 (window_save): ...this.
6699 * config/sparc/sparc.c (emit_save_register_window): Rename to...
6700 (emit_window_save): ...this.
6701 (sparc_expand_prologue): Adjust to above renaming.
6703 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
6705 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6708 2011-07-10 Richard Henderson <rth@redhat.com>
6710 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6711 run final, instead of emitting text directly.
6713 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
6715 * config/i386/i386.c (ix86_option_override_internal): Turn on
6716 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
6717 small PIC models for TARGET_X32.
6719 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
6722 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6726 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6727 stray notes and debug insns by using prev_nonnote_nondebug_insn
6728 instead of PREV_INSN.
6730 2011-07-09 Richard Henderson <rth@redhat.com>
6732 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6733 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6734 * dwarf2out.c: ... here.
6735 (output_all_cfis): Remove.
6736 (dwarf2out_switch_text_section): Use output_cfis directly.
6737 (size_of_locs): Export.
6738 (output_loc_sequence, output_loc_sequence_raw): Export.
6739 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6740 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6741 output_cfa_loc_raw): Move to ...
6742 * dwarfcfi.c: ... here.
6743 * dwarf2out.h: Update decls.
6745 2011-07-09 Richard Henderson <rth@redhat.com>
6747 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6748 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6749 * dwarf2cfi.c: ... here.
6750 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6751 (DWARF_ROUND, DWARF_CIE_ID): Remove.
6752 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6753 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6754 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6756 2011-07-09 Richard Henderson <rth@redhat.com>
6758 * dwarf2cfi.c (cie_return_save): New.
6759 (queue_reg_save): Use compare_reg_or_pc.
6760 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6761 (dwarf2out_frame_debug_expr): Likewise.
6762 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6763 (initial_return_save): Likewise.
6764 (execute_dwarf2_frame): Save and restore initial return save from
6766 * config/mips/mips.c (mips_frame_set): Remove special case for
6767 DWARF_FRAME_RETURN_COLUMN.
6769 2011-07-09 Richard Henderson <rth@redhat.com>
6771 * dwarf2cfi.c (lookup_cfa): Remove.
6772 (execute_dwarf2_frame): Assert queues are empty on entry.
6773 Setup initial cfa directly, not via lookup_cfa.
6774 Don't clear args_size state here.
6776 2011-07-09 Richard Henderson <rth@redhat.com>
6778 * dwarf2cfi.c (add_cfi_vec): New.
6779 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
6780 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
6781 (execute_dwarf2_frame): Set add_cfi_vec.
6783 2011-07-09 Richard Henderson <rth@redhat.com>
6785 * defaults.h (ASM_COMMENT_START): Move here...
6786 * dwarf2asm.c: ... from here.
6787 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6788 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6789 * varasm.c: Likewise.
6791 2011-07-09 Richard Henderson <rth@redhat.com>
6794 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6795 (create_cfi_notes): ... do it here instead.
6797 2011-07-09 Jakub Jelinek <jakub@redhat.com>
6800 * dwarf2out.c (size_of_int_loc_descriptor): New function.
6801 (address_of_int_loc_descriptor): Use it.
6802 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6804 2011-07-09 Richard Henderson <rth@redhat.com>
6806 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6807 (prologue, epilogue): New.
6808 (return, *rts): New.
6809 (blockage, setd, seti): New.
6810 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6811 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6812 (pdp11_saved_regno): New.
6813 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6814 generate rtl instead of text.
6815 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6816 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
6817 * config/pdp11/pdp11-protos.h: Update.
6819 2011-07-09 Richard Henderson <rth@redhat.com>
6821 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6822 try to insert an rtl prologue here.
6823 (rs6000_output_function_epilogue): Similarly.
6824 * config/rs6000/rs6000.md (prologue): Emit a barrier to
6825 satisfy !TARGET_SCHED_PROLOG.
6826 (epilogue, sibcall_epilogue): Likewise.
6828 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
6830 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6832 (IN_OR_GLOBAL_P): Likewise.
6834 2011-07-08 Jason Merrill <jason@redhat.com>
6837 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6838 compound assignment.
6840 * cgraph.c (cgraph_add_to_same_comdat_group): New.
6841 * cgraph.h: Declare it.
6842 * ipa.c (function_and_variable_visibility): Make sure thunks
6843 have the right visibility.
6845 2011-07-08 Richard Henderson <rth@redhat.com>
6848 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6849 any tablejump vector.
6852 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6853 end of the prologue.
6855 2011-07-08 Jakub Jelinek <jakub@redhat.com>
6858 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6859 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6860 * config/rs6000/vector.md (vector_select_<mode>,
6861 vector_select_<mode>_uns): Change second operand of NE to
6862 CONST0_RTX (<MODE>mode) instead of const0_rtx.
6863 * config/rs6000/altivec.md (*altivec_vsel<mode>,
6864 *altivec_vsel<mode>_uns): Expect second operand of NE to be
6865 zero_constant of the corresponding vector mode.
6866 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6869 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
6871 * graphite-dependences.c (build_alias_set_powerset): Remove
6872 continue from loop, add one more assert.
6874 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
6877 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6878 In particular, allow 8-bit values in r28 and r29.
6879 (avr_hard_regno_scratch_ok): Disallow any register that might be
6880 part of the frame pointer.
6881 (avr_hard_regno_rename_ok): Same.
6882 (avr_legitimate_address_p): Don't allow SUBREGs.
6884 2011-07-08 Julian Brown <julian@codesourcery.com>
6886 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6888 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6889 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6890 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6891 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6892 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6893 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6894 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6895 registers in big-endian mode.
6897 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
6899 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6900 in terms of another.
6901 (write_attr_value): Write a cast if necessary.
6903 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6904 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6905 (REG_WORDS_BIG_ENDIAN): Document.
6906 * doc/tm.texi: Regenerate.
6907 * reload.c (operands_match_p): Take it into account.
6908 (reload_adjust_reg_for_mode): Likewise.
6909 * rtlanal.c (subreg_get_info): Likewise.
6911 2011-07-08 Richard Guenther <rguenther@suse.de>
6913 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6916 2011-07-08 Kai Tietz <ktietz@redhat.com>
6918 * fold-const.c (fold_truth_andor): Factored out truth_andor
6919 label from fold_binary as function.
6920 (fold_binary_loc): Replace truth_andor lable
6921 by function fold_truth_andor.
6923 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
6926 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6927 check if address is stored in register. If so - give up.
6928 (check_sibcall_argument_overlap_1): Do not perform check of
6929 overlapping when it is call to address.
6931 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
6933 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6936 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
6938 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6939 GET_MODE_BITSIZE where appropriate.
6940 (widen_leading, expand_parity, expand_ctz, expand_ffs,
6941 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6942 expand_float, expand_fix): Likewise.
6943 * expr.c (convert_move, convert_modes, expand_expr_real_2,
6944 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6945 * stor-layout.c (get_mode_bounds): Likewise.
6946 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6948 * convert.c (convert_to_integer): Likewise.
6949 * expmed.c (expand_shift_1): Likewise.
6951 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6954 * optabs.c (expand_binop): Tighten conditions for doubleword
6956 (widen_bswap): Assert that mode bitsize and precision are the same.
6957 * stor-layout.c (get_best_mode): Skip modes that have lower
6958 precision than bitsize.
6959 * recog.c (simplify_while_replacing): Assert that bitsize and
6960 precision are the same.
6962 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6964 * Makefile.in (LIBGCOV): Remove.
6965 (libgcc.mvars): Remove LIBGCOV.
6966 * libgov.c: Move to ../libgcc.
6968 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6970 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6972 2011-07-08 Martin Jambor <mjambor@suse.cz>
6974 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6975 is too big for total scalarization.
6977 2011-07-07 Richard Henderson <rth@redhat.com>
6979 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6980 (DBX_DEBUGGING_INFO): Undef.
6982 2011-07-07 Richard Henderson <rth@redhat.com>
6984 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
6985 Handle some opcodes specially for debugging.
6986 * print-rtl.c: Include dwarf2out.h
6987 (print_rtx): Handle NOTE_INSN_CFI.
6988 * Makefile.in (print-rtl.o): Update.
6990 2011-07-07 Richard Henderson <rth@redhat.com>
6992 * tree-pass.h (pass_dwarf2_frame): Declare.
6993 * passes.c (init_optimization_passes): Add it.
6994 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6995 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6996 make static, do not call add_cfis_to_fde.
6997 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
6998 dwarf2out_frame_init): Merge into...
6999 (execute_dwarf2_frame): ... here. New function.
7000 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
7001 saved_do_cfi_asm to a tri-state variable.
7002 (gate_dwarf2_frame, pass_dwarf2_frame): New.
7003 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7004 if it has yet to be done. Don't call dwarf2cfi_function_init.
7005 * dwarf2out.h, debug.h: Update decls.
7006 * final.c (final_start_function): Don't call
7007 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7008 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7009 * toplev.c (lang_dependent_init): Likewise.
7011 2011-07-07 Richard Henderson <rth@redhat.com>
7013 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7014 FDE_TABLE_INCREMENT): Replace with...
7015 (fde_vec): ... this, a new vector.
7016 (current_fde): Remove. Replace all users with cfun->fde.
7017 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7018 (size_of_aranges, dwarf2out_finish): Likewise.
7019 (dwarf2out_alloc_current_fde): Break out from ...
7020 (dwarf2out_begin_prologue): ... here.
7021 (dwarf2out_frame_init): Remove.
7022 * dwarf2cfi.c: Update all users of current_fde.
7023 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7024 * dwarf2out.h: Update decls.
7025 (dw_fde_node): Add fde_index member.
7026 * function.h (struct function): Add fde member.
7028 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7029 Richard Henderson <rth@redhat.com>
7031 * dwarf2cfi.c (add_cfi): Remove.
7032 (dwarf2out_cfi_label): Remove force argument. Only generate the
7034 (add_fde_cfi): Simplify the different code paths.
7036 (old_cfa, old_cfa_remember): New.
7037 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7038 (last_reg_save_label): Remove.
7039 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7040 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7041 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7042 dwarf2out_frame_debug_cfa_expression,
7043 dwarf2out_frame_debug_cfa_restore,
7044 dwarf2out_frame_debug_cfa_window_save,
7045 dwarf2out_frame_debug_expr): Remove label parameter.
7046 (cfi_label_required_p, add_cfis_to_fde): New.
7047 (dwarf2out_frame_debug_after_prologue): New.
7048 (dwarf2cfi_frame_init): Initialize old_cfa.
7049 (dwarf2out_frame_debug_restore_state): Likewise.
7050 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7051 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7052 * final.c (final_start_function): Call
7053 dwarf2out_frame_debug_after_prologue.
7055 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7056 Richard Henderson <rth@redhat.com>
7058 * dwarf2cfi.c (cfi_insn): New.
7059 (dwarf2out_cfi_label): Don't emit cfi label here.
7060 (add_fde_cfi): Create a NOTE_INSN_CFI.
7061 (dwarf2out_frame_debug): Setup cfi_insn.
7062 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7063 (dwarf2out_cfi_begin_epilogue): Make static.
7064 (dwarf2out_frame_debug_restore_state): Make static.
7065 * dwarf2out.c (output_cfi_directive): Make static.
7066 (dwarf2out_emit_cfi): New.
7067 * dwarf2out.h: Update.
7068 * final.c (final): Remove CFI notes.
7069 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7070 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7071 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7072 * insn-notes.def (NOTE_INSN_CFI): New.
7073 (NOTE_INSN_CFI_LABEL): New.
7074 * rtl.h (union rtunion_def): Add rt_cfi member.
7075 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7077 2011-07-07 Richard Henderson <rth@redhat.com>
7079 * dwarf2cfi.c: New file.
7080 * Makefile.in (OBJS): Add it.
7081 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7082 * gengtype.c (open_base_files): Include dwarf2out.h.
7083 * coretypes.h (enum var_init_status): Move from ...
7085 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7086 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7087 expand_builtin_dwarf_sp_column, init_return_column_size,
7088 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7089 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7090 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7091 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7092 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7093 compute_barrier_args_size, dwarf2out_args_size,
7094 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7095 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7096 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7097 queue_reg_save, dwarf2out_flush_queued_reg_saves,
7098 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7099 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7100 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7101 dwarf2out_frame_debug_cfa_expression,
7102 dwarf2out_frame_debug_cfa_restore,
7103 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7104 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7105 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7106 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7107 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7108 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7109 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7110 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7111 dw_loc_descr_node): Move to dwarf2out.h.
7112 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7113 mem_loc_descriptor): Export.
7114 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
7115 (dwarf2out_frame_init): Extract CIE generation code to
7116 dwarf2cfi_frame_init.
7118 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
7121 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7122 MASK_V8PLUS, remove commented out flag and reorder.
7124 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7127 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7128 one non-complex and one complex argument, call c_save_expr on both
7131 2011-07-07 Martin Jambor <mjambor@suse.cz>
7134 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7135 (verify_cgraph_node): Some functinality moved to
7136 verify_edge_corresponds_to_fndecl, call it.
7138 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7140 * config.gcc (*local*): Remove.
7141 * doc/install-old.texi: Don't mention local configurations.
7143 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7146 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7147 referencing debug insns that have been reset.
7148 (dead_debug_insert_before): Don't assert reg is non-NULL,
7149 instead return immediately if it is NULL.
7151 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7153 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7155 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7157 * hw-doloop.c: New file.
7158 * hw-doloop.h: New file.
7159 * Makefile.in (OBJS): Add hw-doloop.o.
7160 (hw-doloop.o): New rule.
7161 ($(obj_out_file)): Add hw-doloop.h dependency.
7162 * config/bfin/bfin.c: Include "hw-doloop.h".
7163 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7164 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7165 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
7166 type changed to hwloop_info. Return bool, true if the loop was
7167 successfully optimized. Remove code that was moved to
7168 hw-doloop.c, and adjust other parts.
7169 (hwloop_fail): New static function, containing parts that used
7170 to be in bfin_optimize_loop.
7171 (bfin_discover_loop, bfin_discover_loops, free_loops,
7172 bfin_reorder_loops): Remove.
7173 (hwloop_pattern_reg): New static function.
7174 (bfin_doloop_hooks): New variable.
7175 (bfin_reorg_loops): Remove most code, call reorg_loops.
7176 * config/bfin/bfin.md (doloop_end splitter): Also enable if
7177 loop counter is a memory_operand.
7179 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
7181 * config.gcc: Support --with-multilib-list for x86 Linux targets.
7183 * configure.ac: Mention x86-64 for --with-multilib-list.
7184 * configure: Regenerated.
7186 * config/i386/gnu-user64.h (SPEC_64): Support x32.
7187 (SPEC_32): Likewise.
7188 (ASM_SPEC): Likewise.
7189 (LINK_SPEC): Likewise.
7190 (TARGET_THREAD_SSP_OFFSET): Likewise.
7191 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7194 * config/i386/i386.h (TARGET_X32): New.
7196 (LONG_TYPE_SIZE): Likewise.
7197 (POINTER_SIZE): Likewise.
7198 (POINTERS_EXTEND_UNSIGNED): Likewise.
7199 (OPT_ARCH64): Support x32.
7200 (OPT_ARCH32): Likewise.
7202 * config/i386/i386.opt (mx32): New.
7204 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7205 (GLIBC_DYNAMIC_LINKERX32): Likewise.
7206 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7207 (GLIBC_DYNAMIC_LINKERX32): Likewise.
7209 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7210 (BIONIC_DYNAMIC_LINKERX32): Likewise.
7211 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7213 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7215 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7217 * doc/invoke.texi: Document -mx32.
7219 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
7221 * doc/invoke.texi (mwords-little-endian): Deprecate.
7222 * config/arm/arm.opt (mwords-little-endian): Likewise.
7223 * config/arm/arm.c (arm_option_override): Warn about the deprecation
7224 of -mwords-little-endian.
7226 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
7228 * reload1.c (choose_reload_regs): Use mode sizes to check whether
7229 an old reload register completely defines the required value.
7231 2011-07-07 Richard Guenther <rguenther@suse.de>
7233 * fold-const.c (fold_unary_loc): Do not strip sign-changes
7236 2011-07-07 Richard Guenther <rguenther@suse.de>
7238 * tree-vrp.c (simplify_conversion_using_ranges): New function.
7239 (simplify_stmt_using_ranges): Call it.
7241 2011-07-07 Kai Tietz <ktietz@redhat.com>
7243 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7244 (lookup_logical_inverted_value): Likewise.
7245 (simplify_bitwise_binary_1): Likewise.
7246 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7248 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7250 * gcc.c (%[Spec]): Don't document.
7251 (struct spec_list): Update comment.
7252 (do_spec_1): Don't handle %[Spec].
7253 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7255 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7257 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7258 default based on TARGET_ASM_NAMED_SECTION.
7259 * common/common-target.def (have_named_sections): Default to true.
7260 * common/config/default-common.c: Don't include tm.h.
7261 * common/config/picochip/picochip-common.c
7262 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7263 * common/config/m32c/m32c-common.c: Remove.
7264 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7265 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7266 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7267 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7268 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7269 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7270 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7272 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7275 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7276 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7278 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7281 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7283 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7286 * configure.ac (gcc_cv_as_hidden): Also accept
7287 x86_64-*-solaris2.1[0-9]*.
7288 (gcc_cv_as_cfi_directive): Likewise.
7289 (gcc_cv_as_comdat_group_group): Likewise.
7290 (set_have_as_tls): Likewise.
7291 * configure: Regenerate.
7292 * config.gcc (i[34567]86-*-solaris2*): Also handle
7293 x86_64-*-solaris2.1[0-9]*.
7294 * config.host (i[34567]86-*-solaris2*): Likewise.
7295 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7296 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7297 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7298 (TARGET_LD_EMULATION): Use it.
7299 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7300 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7301 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7302 (ASM_CPU64_DEFAULT_SPEC): Define.
7303 (ASM_CPU_SPEC): Use %(asm_cpu_default).
7304 (ASM_SPEC): Redefine.
7305 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7306 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7307 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7308 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7310 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7312 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7314 * config/sol2.h (ASM_SPEC): Split into ...
7315 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7316 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7317 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7318 (ASM_SPEC): Use ASM_SPEC_BASE.
7319 * config/sparc/sol2.h (ASM_SPEC): Redefine.
7321 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
7323 * config/avr/avr.md (*reload_insi): Change predicate #1 to
7324 const_int_operand. Ditto for peep2 producing this insn.
7325 Add argument to output_reload_insisf call.
7326 (*movsi,*movsf): Add argument to output_movsisf call.
7327 (*reload_insf): New insn and new peep2 to produce it.
7328 * config/avr/avr-protos.h (output_movsisf): Change prototype.
7329 (output_reload_insisf): Change prototype.
7330 * config/avr/avr.c (avr_asm_len): New function.
7331 (output_reload_insisf): Rewrite.
7332 (output_movsisf): Change prototype. output_reload_insisf for
7333 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
7334 (adjust_insn_length): Add argument to output_movsisf and
7335 output_reload_insisf call.
7337 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7339 * emit-rtl.c (paradoxical_subreg_p): New function.
7340 * rtl.h (paradoxical_subreg_p): Declare.
7341 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7342 apply_distributive_law, simplify_comparison, simplify_set): Use it.
7343 * cse.c (record_jump_cond, cse_insn): Likewise.
7344 * expr.c (force_operand): Likewise.
7345 * rtlanal.c (num_sign_bit_copies1): Likewise.
7346 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7347 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7348 (push_reload): Use precision to check for paradoxical subregs.
7349 * expmed.c (extract_bit_field_1): Likewise.
7351 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7352 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7353 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7354 simplify_set, simplify_logical, expand_compound_operation,
7355 make_extraction, force_to_mode, if_then_else_cond, extended_count,
7356 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7357 record_value_for_reg): Likewise.
7358 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7359 * simplify-rtx. c (simplify_unary_operation_1,
7360 simplify_binary_operation_1, simplify_const_relational_operation):
7363 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7364 instead of GET_MODE_BITSIZE where appropriate.
7365 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7366 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7367 init_num_sign_bit_copies_in_rep): Likewise.
7368 * cse.c (fold_rtx, cse_insn): Likewise.
7369 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7370 * simplify-rtx.c (simplify_unary_operation_1,
7371 simplify_const_unary_operation, simplify_binary_operation_1,
7372 simplify_const_binary_operation, simplify_ternary_operation,
7373 simplify_const_relational_operation, simplify_subreg): Likewise.
7374 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7375 simplify_if_then_else, simplify_set, expand_compound_operation,
7376 expand_field_assignment, make_extraction, if_then_else_cond,
7377 make_compound_operation, force_to_mode, make_field_assignment,
7378 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7379 extended_count, try_widen_shift_mode, simplify_shift_const_1,
7380 simplify_comparison, record_promoted_value, simplify_compare_const,
7381 record_dead_and_set_regs_1): Likewise.
7384 * simplify-rtx.c (simplify_const_binary_operation): Use the
7385 shift_truncation_mask hook instead of performing modulo by width.
7386 Compare against mode precision, not bitsize.
7387 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7388 Use shift_truncation_mask instead of constructing the value manually.
7390 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7392 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7394 (rs6000_save_toc_in_prologue_p): Ditto.
7396 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7397 up the static chain (r11) during indirect function calls.
7398 (-msave-toc-indirect): New undocumented debug switch.
7400 * config/rs6000/rs6000.c (struct machine_function): Add
7401 save_toc_in_prologue field to note whether the prologue needs to
7402 save the TOC value in the reserved stack location.
7403 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
7404 to save the TOC in the prologue, do so.
7405 (rs6000_trampoline_init): Don't allow creating AIX style
7406 trampolines if -mno-r11 is in effect.
7407 (rs6000_call_indirect_aix): New function to create AIX style
7408 indirect calls, adding support for -mno-r11 to suppress loading
7409 the static chain, and saving the TOC in the prologue instead of
7411 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7412 TOC in the prologue.
7414 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7416 (TOC_REGNUM): Ditto.
7417 (STATIC_CHAIN_REGNUM): Ditto.
7418 (ARG_POINTER_REGNUM): Ditto.
7419 (SFP_REGNO): Delete, unused.
7420 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7421 function descriptor offsets.
7422 (TOC_SAVE_OFFSET_64BIT): Ditto.
7423 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7424 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7425 (AIX_FUNC_DESC_SC_32BIT): Ditto.
7426 (AIX_FUNC_DESC_SC_64BIT): Ditto.
7427 (ptrload): New mode attribute for the appropriate load of a pointer.
7428 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7429 (call_indirect_aix64): Ditto.
7430 (call_value_indirect_aix32): Ditto.
7431 (call_value_indirect_aix64): Ditto.
7432 (call_indirect_nonlocal_aix32_internal): Ditto.
7433 (call_indirect_nonlocal_aix32): Ditto.
7434 (call_indirect_nonlocal_aix64_internal): Ditto.
7435 (call_indirect_nonlocal_aix64): Ditto.
7436 (call): Rewrite AIX indirect function calls. Add support for
7437 eliminating the static chain, and for moving the save of the TOC
7438 to the function prologue.
7439 (call_value): Ditto.
7440 (call_indirect_aix<ptrsize>): Ditto.
7441 (call_indirect_aix<ptrsize>_internal): Ditto.
7442 (call_indirect_aix<ptrsize>_internal2): Ditto.
7443 (call_indirect_aix<ptrsize>_nor11): Ditto.
7444 (call_value_indirect_aix<ptrsize>): Ditto.
7445 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7446 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7447 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7448 (call_nonlocal_aix32): Relocate in the rs6000.md file.
7449 (call_nonlocal_aix64): Ditto.
7451 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7452 -mno-r11 documentation.
7454 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7457 * doc/extend.texi (Compound Literals): Fix typo.
7459 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
7461 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7463 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
7465 * configure.ac (plugin-version.h): Generate
7466 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7467 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7470 * configure: Regenerate.
7472 * doc/plugins.texi (Building GCC plugins): Mention
7473 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7475 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
7477 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7478 * combine.c (make_extraction, gen_lowpart_or_truncate,
7479 apply_distributive_law, simplify_comparison,
7480 reg_truncated_to_mode, record_truncated_value): Use it.
7481 * cse.c (notreg_cost): Likewise.
7482 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7483 * expr.c (convert_move, convert_modes): Likewise.
7484 * optabs.c (expand_binop, expand_unop): Likewise.
7485 * postreload.c (move2add_last_label): Likewise.
7486 * regmove.c (optimize_reg_copy_3): Likewise.
7487 * rtlhooks.c (gen_lowpart_general): Likewise.
7488 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7490 2011-07-06 Joseph Myers <joseph@codesourcery.com>
7492 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7494 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
7496 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7497 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7498 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7499 (simplify_const_unary_operation, simplify_binary_operation_1,
7500 simplify_const_binary_operation, simplify_const_relational_operation):
7501 Use them. Use GET_MODE_MASK for masking and sign-extensions.
7502 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7503 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7504 simplify_shift_const_1, simplify_comparison): Likewise.
7505 * expr.c (convert_modes): Likewise.
7506 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7507 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7508 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7510 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7512 2011-07-06 Richard Guenther <rguenther@suse.de>
7514 PR tree-optimization/49645
7515 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7517 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7518 in type qualification here ...
7519 (copy_reference_ops_from_ref): ... not here.
7520 (vn_reference_lookup_3): ... or here.
7521 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7522 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7524 2011-07-06 Ian Lance Taylor <iant@google.com>
7526 * doc/install.texi (Configuration): It's
7527 --enable-gnu-indirect-function, not --enable-indirect-function.
7529 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
7531 * simplify-rtx.c (simplify_const_binary_operation): Use the
7532 shift_truncation_mask hook instead of performing modulo by width.
7533 Compare against mode precision, not bitsize.
7534 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7535 Use shift_truncation_mask instead of constructing the value manually.
7537 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
7540 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7541 address computation and convert to address_mode if needed.
7543 2011-07-06 Richard Guenther <rguenther@suse.de>
7545 * tree.c (build_common_tree_nodes_2): Merge with
7546 build_common_tree_nodes.
7547 * tree.h (build_common_tree_nodes): Adjust prototype.
7548 (build_common_tree_nodes_2): Remove.
7549 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7550 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7552 2011-07-05 Jakub Jelinek <jakub@redhat.com>
7554 PR tree-optimization/49618
7555 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7556 t recurse on the decl.
7557 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7558 return true if expr isn't known to be defined in current
7559 TU or some other LTO partition.
7561 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7563 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7564 override CASE_VALUES_THRESHOLD.
7566 * stmt.c (toplevel): Include params.h.
7567 (case_values_threshold): Use the --param case-values-threshold
7568 value if non-zero, otherwise use machine dependent value.
7569 (expand_case): Use case_values_threshold.
7571 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7573 * doc/invoke.texi (--param case-values-threshold): Document.
7575 2011-07-05 Richard Henderson <rth@redhat.com>
7577 * dwarf2out.c (dwarf2out_cfi_label): Make static.
7578 (dwarf2out_flush_queued_reg_saves): Make static.
7579 (dwarf2out_reg_save): Remove.
7580 (dwarf2out_return_save): Remove.
7581 (dwarf2out_return_reg): Remove.
7582 (dwarf2out_reg_save_reg): Remove.
7583 (dwarf2out_def_cfa): Merge into ...
7584 (dwarf2out_frame_init): ... here.
7585 * dwarf2out.h, tree.h: Remove declarations as necessary.
7587 2011-07-05 Richard Henderson <rth@redhat.com>
7589 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7590 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7591 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7594 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7595 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7596 (process_epilogue): Don't call dwarf2out_def_cfa.
7598 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7599 indicate the return address save.
7600 (process_cfa_register): Likewise.
7602 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7603 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7605 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7606 for ar.pfs save at alloc insn.
7608 2011-07-05 Richard Henderson <rth@redhat.com>
7610 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7611 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7612 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7614 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7615 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
7616 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7617 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7619 2011-07-05 Richard Henderson <rth@redhat.com>
7621 * config/vax/vax.md (define_c_enum unspecv): New. Define the
7622 VUNSPEC_* constants here instead of via define_constants.
7623 (VUNSPEC_PEM): New constant.
7624 (procedure_entry_mask): New insn.
7625 (prologue): New expander.
7626 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7627 (vax_expand_prologue): Rename from vax_output_function_prologue;
7628 emit rtl instead of text.
7629 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7630 (print_operand): Add 'x' prefix.
7632 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
7635 * calls.c (precompute_register_parameters): Promote the function
7636 argument before checking non-legitimate constant.
7638 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7640 PR tree-optimization/47654
7641 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7642 (lst_do_strip_mine_loop): Return an int.
7643 (lst_do_strip_mine): Same.
7644 (scop_do_strip_mine): Same.
7645 (scop_do_block): Loop blocking should strip-mine at least two loops.
7646 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7647 (scop_do_interchange): Same.
7648 * graphite-poly.h (scop_do_interchange): Update declaration.
7649 (scop_do_strip_mine): Same.
7651 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7653 * graphite-clast-to-gimple.c (precision_for_value): Removed.
7654 (precision_for_interval): Removed.
7655 (gcc_type_for_interval): Use mpz_sizeinbase.
7657 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7659 * graphite-ppl.h (value_max): Correct computation of max.
7661 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7663 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7665 2011-07-05 Richard Guenther <rguenther@suse.de>
7667 * c-decl.c (c_init_decl_processing): Defer building common
7668 tree nodes to c_common_nodes_and_builtins.
7670 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
7672 PR tree-optimization/49580
7673 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7674 the loop's number of iterations.
7675 * tree-parloops.c (transform_to_exit_first_loop): Add the
7676 handling of the loop's number of iterations before the call
7677 to gimple_duplicate_sese_tail.
7678 Insert the stmt caclculating the new rhs of the loop's
7679 condition stmt to the preheader instead of iters_bb.
7681 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
7683 PR rtl-optimization/47449
7684 * fwprop.c (forward_propagate_subreg): Don't propagate hard
7685 register nor zero/sign extended hard register.
7687 2011-07-05 Richard Guenther <rguenther@suse.de>
7689 PR tree-optimization/49518
7690 PR tree-optimization/49628
7691 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7692 irrelevant and invariant data-references.
7693 (vect_analyze_data_ref_access): For invariant loads clear the
7696 2011-07-04 Jakub Jelinek <jakub@redhat.com>
7698 PR rtl-optimization/49619
7699 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7700 pass VOIDmode as op0_mode to recursive call, and return temp even
7701 when different from tor, just if it is not IOR of the original
7704 PR rtl-optimization/49472
7705 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7706 negating MULT, negate the second operand instead of first.
7707 (simplify_binary_operation_1) <case MULT>: If one operand is
7708 a NEG and the other is MULT, don't attempt to optimize by negation
7709 of the MULT operand if it only moves the NEG operation around.
7712 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7713 get_current_def return value if it can't be trusted to be
7714 the current value of the variable in the current bb.
7716 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
7719 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7720 general register to memory for !TARGET_INTER_UNIT_MOVES.
7722 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
7725 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7726 instead of TREE_READONLY.
7728 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
7730 * doc/extend.texi (AVR Built-in Functions): Update documentation
7731 of __builtin_avr_fmul*.
7732 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7733 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7734 * config/avr/avr.md (fmul): Rename to fmul_insn.
7735 (fmuls): Rename to fmuls_insn.
7736 (fmulsu): Rename to fmulsu_insn.
7737 (fmul,fmuls,fmulsu): New expander.
7738 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7739 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7740 * config/avr/libgcc.S (__fmul): New function.
7741 (__fmuls): New function.
7742 (__fmulsu,__fmulsu_exit): New function.
7744 2011-07-04 Richard Guenther <rguenther@suse.de>
7746 PR tree-optimization/49615
7747 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7748 basic-block index check.
7750 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
7752 * longlong.h (count_leading_zeros, count_trailing_zeros,
7753 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7756 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
7758 PR tree-optimization/49610
7759 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7762 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
7763 Olivier Hainque <hainque@adacore.com>
7764 Nicolas Setton <setton@adacore.com>
7766 * tree.h (TYPE_ARTIFICIAL): New flag.
7767 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7768 the DIE of the type if it is artificial.
7769 (gen_array_type_die): Likewise.
7770 (gen_enumeration_type_die): Likewise.
7771 (gen_struct_or_union_type_die): Likewise.
7772 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7773 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7775 2011-07-01 Jakub Jelinek <jakub@redhat.com>
7777 * tree-object-size.c (pass_through_call): Handle
7778 BUILT_IN_ASSUME_ALIGNED.
7780 2011-07-01 Martin Jambor <mjambor@suse.cz>
7782 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7784 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
7787 * explow.c (update_nonlocal_goto_save_area): Use proper mode
7788 for stack save area.
7789 * function.c (expand_function_start): Likewise.
7791 2011-07-01 Richard Guenther <rguenther@suse.de>
7794 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7795 may have unknown refs.
7797 2011-07-01 Kai Tietz <ktietz@redhat.com>
7799 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7801 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7803 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7804 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7805 (Specific, mips-sgi-irix6): Likewise.
7807 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7810 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7812 2011-07-01 Jakub Jelinek <jakub@redhat.com>
7814 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7815 [idx]= and [idx1 ... idx2]= before initializers if needed for
7818 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
7820 * config.gcc (score-*-elf): Remove score7.o.
7821 * config/score/t-score-elf: Likewise.
7822 * config/score/score.c: Merge score7 to score.c and
7823 remove forwarding functions.
7824 * config/score/score7.c: Deleted.
7825 * config/score/score7.h: Deleted.
7827 2011-07-01 Richard Guenther <rguenther@suse.de>
7829 PR tree-optimization/49603
7830 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7832 2011-06-30 Martin Jambor <mjambor@suse.cz>
7834 * tree-sra.c (struct access): Rename total_scalarization to
7835 grp_total_scalarization
7836 (completely_scalarize_var): New function.
7837 (sort_and_splice_var_accesses): Set total_scalarization in the
7838 representative access.
7839 (analyze_access_subtree): Propagate total scalarization accross the
7840 tree, no holes in totally scalarized trees, simplify coverage
7842 (analyze_all_variable_accesses): Call completely_scalarize_var instead
7843 of completely_scalarize_record.
7845 2011-06-30 Richard Henderson <rth@redhat.com>
7847 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7848 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7849 * config/i386/i386.c: Don't include dwarf2out.h.
7850 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7851 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7852 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
7853 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7854 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7856 2011-06-30 Richard Henderson <rth@redhat.com>
7858 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7859 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7860 * final.c (final_scan_insn): Look for it, and invoke
7861 dwarf2out_frame_debug before the insn if found.
7863 2011-06-30 Richard Henderson <rth@redhat.com>
7865 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7866 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7868 2011-06-30 Richard Henderson <rth@redhat.com>
7870 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7871 Define a vector of this type.
7872 (regs_saved_in_regs): Use a VEC.
7873 (num_regs_saved_in_regs): Remove.
7874 (compare_reg_or_pc): New.
7875 (record_reg_saved_in_reg): Split out from...
7876 (dwarf2out_flush_queued_reg_saves): ... here.
7877 (clobbers_queued_reg_save): Update for VEC.
7878 (reg_saved_in): Likewise.
7879 (dwarf2out_frame_debug_init): Likewise.
7880 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7881 (dwarf2out_frame_debug_cfa_register): Likewise.
7883 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
7885 PR tree-optimization/49572
7886 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7887 type of the RHS instead of that of the LHS for the expression type.
7889 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
7891 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7894 2011-06-30 Richard Guenther <rguenther@suse.de>
7896 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7897 * tree-ssa-structalias.c (create_variable_info_for): Do not
7898 add initial constraints for non-var-decls. Properly handle
7899 globals in other ltrans partitions.
7900 (intra_create_variable_infos): Manually create constraints for
7901 the fake no-alias parameter.
7902 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7903 and assert there are no clones.
7905 2011-06-30 Richard Guenther <rguenther@suse.de>
7907 PR tree-optimization/46787
7908 * tree-data-ref.c (dr_address_invariant_p): Remove.
7909 (find_data_references_in_stmt): Invariant accesses are ok now.
7910 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7911 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7914 2011-06-30 Martin Jambor <mjambor@suse.cz>
7916 PR tree-optimization/49094
7917 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7918 (build_accesses_from_assign): Use it.
7920 2011-06-30 Jakub Jelinek <jakub@redhat.com>
7922 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7923 handling of BUILT_IN_ASSUME_ALIGNED.
7926 * dwarf2out.c (output_abbrev_section): Don't return early
7927 if abbrev_die_table_in_use is 1.
7928 (dwarf2out_finish): Instead don't call output_abbrev_section
7929 nor emit abbrev_section_label in that case.
7931 2011-06-30 Nick Clifton <nickc@redhat.com>
7933 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7936 2011-06-30 Jakub Jelinek <jakub@redhat.com>
7938 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7939 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7941 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
7943 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7944 both pattern and original statements if necessary.
7945 (vect_transform_loop): Likewise.
7946 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7947 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7948 Mark the pattern statement only if the original statement doesn't
7950 (process_use): Call vect_mark_relevant with additional parameter.
7951 (vect_mark_stmts_to_be_vectorized): Likewise.
7952 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7953 (vect_analyze_stmt): Handle both pattern and original statements
7955 (vect_transform_stmt): Don't store vectorized pattern statement
7956 in the original statement.
7957 (vect_is_simple_use_1): Use related pattern statement only if the
7958 original statement is irrelevant.
7959 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7961 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
7963 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7965 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7967 (TARGET_AVX128_OPTIMAL): New definition.
7968 * config/i386/i386.c (initial_ix86_tune_features): Initialize
7969 X86_TUNE_AVX128_OPTIMAL entry.
7970 (ix86_option_override_internal): Enable the generation
7971 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7972 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7973 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7975 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
7977 PR tree-optimization/49539
7978 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7979 names by means of stmt_references_abnormal_ssa_name.
7980 (associate_plusminus): Call can_propagate_from before propagating
7981 from definition statements.
7982 (ssa_forward_propagate_and_combine): Remove superfluous newline.
7984 2011-06-29 Richard Guenther <rguenther@suse.de>
7986 * doc/invoke.texi: Document -scev dump modifier.
7987 * tree-pass.h (TDF_SCEV): New dump flag.
7988 * tree-dump.c (dump_option_value_in): Add scev.
7989 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7990 * tree-scalar-evolution.c: Likewise.
7992 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
7994 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7995 (cxa_type_match): Correct declaration.
7996 (__gnu_unwind_pr_common): Reconstruct additional indirection
7997 when __cxa_type_match returns succeeded_with_ptr_to_base.
7999 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8001 PR rtl-optimization/49114
8002 * reload.c (struct replacement): Remove SUBREG_LOC member.
8003 (push_reload): Do not set it.
8004 (push_replacement): Likewise.
8005 (subst_reload): Remove dead code.
8006 (copy_replacements): Remove assertion.
8007 (copy_replacements_1): Do not handle SUBREG_LOC.
8008 (move_replacements): Likewise.
8009 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
8010 Detect subregs via recursive descent instead of via SUBREG_LOC.
8012 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8014 * config/avr/avr.c (avr_encode_section_info): Dispatch to
8015 default_encode_section_info.
8017 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
8019 PR tree-optimization/49545
8020 * builtins.c (get_object_alignment_1): Update function comment.
8021 Do not use DECL_ALIGN for functions, but test
8022 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8023 * fold-const.c (get_pointer_modulus_and_residue): Don't check
8025 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8027 2011-06-29 Jakub Jelinek <jakub@redhat.com>
8030 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8031 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8033 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8036 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8037 about uninitialized data attributed 'progmem' from here...
8038 (avr_encode_section_info): ...to this new function.
8039 (TARGET_ENCODE_SECTION_INFO): New define.
8040 (avr_section_type_flags): For data in ".progmem.data", remove
8041 section flag SECTION_WRITE.
8043 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8045 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8047 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8048 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
8049 (__umulhisi3): Ditto.
8050 * config/avr/avr.md (mulhisi3): New insn expender.
8051 (umulhisi3): New insn expender.
8052 (*mulhisi3_call): New insn.
8053 (*umulhisi3_call): New insn.
8055 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8057 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8059 2011-06-28 Richard Henderson <rth@redhat.com>
8061 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
8062 all code and arguments that handled pushes. Update all callers.
8064 2011-06-28 Richard Henderson <rth@redhat.com>
8066 * config/arm/arm.c (arm_output_function_prologue): Don't call
8067 thumb1_output_function_prologue.
8068 (arm_expand_prologue): Avoid dead store.
8069 (number_of_first_bit_set): Use ctz_hwi.
8070 (thumb1_emit_multi_reg_push): New.
8071 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8072 to emit the entire prologue as rtl.
8073 (thumb1_output_interwork): Split out from
8074 thumb1_output_function_prologue.
8075 (thumb1_output_function_prologue): Remove.
8076 (arm_attr_length_push_multi): Handle thumb1.
8077 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8078 (prologue_thumb1_interwork): New.
8079 (*push_multi): Allow thumb1; use push_mult_memory_operand.
8080 * config/arm/predicates.md (push_mult_memory_operand): New.
8082 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8084 * config/sparc/sync.md (*stbar): Delete.
8085 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8087 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8089 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8091 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8093 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8094 (TARGET_64BIT_DEFAULT): Define.
8095 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8097 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8099 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8101 * common.opt (in_lto_p): New Variable entry.
8102 * flags.h (in_lto_p): Move to common.opt.
8103 * gcc.c: Include params.h.
8104 (set_option_handlers): Also use common_handle_option and
8105 target_handle_option.
8106 (main): Call global_init_params, finish_params and init_options_struct.
8107 * opts.c (debug_type_names): Move from toplev.c.
8108 (print_filtered_help): Access quiet_flag through opts pointer.
8109 (common_handle_option): Return early in the driver for some options.
8110 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8112 * toplev.c (in_lto_p): Move to common.opt.
8113 (debug_type_names): Move to opts.c.
8114 * Makefile.in (OBJS): Remove opts.o.
8115 (OBJS-libcommon-target): Add opts.o.
8116 (gcc.o): Update dependencies.
8118 2011-06-28 Kai Tietz <ktietz@redhat.com>
8120 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8122 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8124 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8125 with '=' constraint modifier.
8126 (*divdf3_vfp): Likewise.
8127 ("*mulsf3_vfp"): Likewise.
8128 ("*muldf3_vfp"): Likewise.
8129 ("*mulsf3negsf_vfp"): Likewise.
8130 ("*muldf3negdf_vfp"): Likewise.
8132 2011-06-28 Nick Clifton <nickc@redhat.com>
8134 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8135 relaxation when performing an incremental link.
8137 2011-06-28 Kai Tietz <ktietz@redhat.com>
8139 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8140 within BB from last to first.
8142 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8144 * genattr-common.c: New. Based on genattr.c.
8145 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8146 (MOSTLYCLEANFILES): Add insn-attr-common.h.
8147 (opts.o): Update dependencies.
8148 (.PRECIOUS): Add insn-attr-common.h.
8149 (simple_rtl_generated_h): Add insn-attr-common.h.
8150 (build/genattr-common.o): New.
8151 (genprogrtl): Add attr-common.
8152 * genattr.c (main): Include insn-attr-common.h. Don't generate
8153 definitions of DELAY_SLOTS or INSN_SCHEDULING.
8154 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8156 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
8158 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8159 avr-*-* and avr-*-rtems* targets.
8161 * config/avr/elf.h: New file.
8162 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8163 (TARGET_ASM_SELECT_SECTION): Define.
8164 (INIT_SECTION_ASM_OP): Undefine.
8165 (FINI_SECTION_ASM_OP): Undefine.
8166 (READONLY_DATA_SECTION_ASM_OP): Undefine.
8167 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8168 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8170 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8171 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8172 (MAX_OFILE_ALIGNMENT): Move to elf.h.
8173 (STRING_LIMIT): Move to elf.h.
8174 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8175 (ASM_DECLARE_OBJECT_NAME): Remove.
8177 (ASM_OUTPUT_SKIP): Remove.
8178 (DWARF2_DEBUGGING_INFO): Remove.
8179 (OBJECT_FORMAT_ELF): Remove.
8180 (USER_LABEL_PREFIX): Remove.
8181 (ASM_OUTPUT_EXTERNAL): Remove.
8182 (ASM_OUTPUT_ASCII): Remove.
8183 (TYPE_ASM_OP): Remove.
8184 (SIZE_ASM_OP): Remove.
8185 (WEAK_ASM_OP): Remove.
8186 (STRING_ASM_OP): Remove.
8187 (SET_ASM_OP): Remove.
8188 (ASM_WEAKEN_LABEL): Remove.
8189 (TYPE_OPERAND_FMT): Remove.
8190 (ASM_DECLARE_FUNCTION_SIZE): Remove.
8191 (ASM_FINISH_DECLARE_OBJECT): Remove.
8192 (NO_DOLLAR_IN_LABEL): Remove.
8193 (ASM_GENERATE_INTERNAL_LABEL): Remove.
8194 (ASM_OUTPUT_CASE_LABEL): Remove.
8195 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8196 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8197 (gas_output_ascii): Remove.
8198 (gas_output_limited_string): Remove.
8199 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8200 * config/avr/avr-protos.h
8201 (gas_output_ascii): Remove prototye.
8202 (gas_output_limited_string): Remove prototype.
8204 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
8207 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
8210 2011-06-27 Jan Hubicka <jh@suse.cz>
8212 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8213 node instead of references in node.
8215 2011-06-27 Richard Henderson <rth@redhat.com>
8217 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8218 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8221 2011-06-27 Jakub Jelinek <jakub@redhat.com>
8223 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8225 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8226 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8227 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8228 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8229 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8230 (evaluate_stmt, execute_fold_all_builtins): Handle
8231 BUILT_IN_ASSUME_ALIGNED.
8232 * tree-ssa-dce.c (propagate_necessity): Likewise.
8233 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8234 call_may_clobber_ref_p_1): Likewise.
8235 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8236 (expand_builtin_assume_aligned): New function.
8237 * doc/extend.texi (__builtin_assume_aligned): Document.
8240 * cselib.c (promote_debug_loc): If cselib_preserve_constants
8241 and l has two DEBUG_INSN owned locs instead of just one, adjust
8242 the second location's setting_insn too.
8244 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8247 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8249 2011-06-27 Nick Clifton <nickc@redhat.com>
8251 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8252 bit position of highest bit set into a count of the high zero bits.
8254 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8256 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8258 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8261 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8264 2011-06-27 Richard Guenther <rguenther@suse.de>
8266 PR tree-optimization/49394
8267 * passes.c (execute_one_pass): Restore current_pass after
8268 applying IPA transforms.
8270 2011-06-27 Kai Tietz <ktietz@redhat.com>
8272 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8273 out of type precision after operation.
8274 (find_bswap): Take for limit value the integer auto-promotion
8277 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8279 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8280 forward scan as well.
8282 2011-06-27 Tristan Gingold <gingold@adacore.com>
8285 * config/vms/vms-protos.h: New file.
8286 * config/vms/vms-crtlmap.map: New file.
8287 * config/vms/vms.c: New file.
8288 * config/vms/make-crtlmap.awk: New file.
8289 * config/vms/vms-crtl.h: File removed.
8290 * config/vms/vms-crtl-64.h: File removed.
8291 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8292 * config/alpha/vms64.h: Do not include vms-crtl-64.h
8293 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8294 clear some builtins on VMS. Calls vms_patch_builtins.
8295 (avms_asm_output_external): Remove.
8296 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8297 (struct crtl_name_spec): Remove
8298 (DO_CTRL_NAMES): Remove.
8299 * config/ia64/vms.h (struct crtl_name_spec): Remove
8300 (DO_CTRL_NAMES): Remove.
8301 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8302 clear some builtins on VMS. Calls vms_patch_builtins.
8303 (ia64_asm_output_external): Remove DO_CRTL_NAME.
8304 * config/ia64/vms64.h: Do not include vms-crtl-64.h
8305 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8307 2011-06-27 Tristan Gingold <gingold@adacore.com>
8309 * config/alpha/alpha.c (alpha_end_function): Always generate .end
8312 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8314 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8315 the function receives nonlocal gotos.
8317 2011-06-27 Richard Guenther <rguenther@suse.de>
8319 PR tree-optimization/49536
8320 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8321 For non-scalar inner types use a scalar type according to
8322 the scalar inner mode.
8324 2011-06-27 Richard Guenther <rguenther@suse.de>
8326 PR tree-optimization/49365
8327 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8329 2011-06-27 Richard Guenther <rguenther@suse.de>
8331 PR tree-optimization/49169
8332 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8333 the alignment of function decls.
8335 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
8338 * config/darwin.c (darwin_mergeable_string_section): Place string
8339 constants in '.cstring' rather than '.const' when CF/NSStrings are
8342 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
8344 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8345 (emit_save_register_window): Likewise.
8346 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8347 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
8348 Swap back %o7/%i7 in register naming.
8350 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
8353 * config/darwin.c (darwin_override_options): Improve warning when
8354 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8355 is given with fpie/fPIE.
8356 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8357 * config/darwin9.h (PIE_SPEC): New.
8359 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
8361 * timevar.c (timevar_print): Increase width for display of timevar
8364 2011-06-24 Jakub Jelinek <jakub@redhat.com>
8367 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8368 instead of TYPE_CHAIN for chain_next for types.
8370 2011-06-24 Richard Henderson <rth@redhat.com>
8372 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8373 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8374 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8375 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8376 (sparc_flat_expand_prologue): Emit individual instructions
8377 instead of one of the above.
8379 2011-06-24 Easwaran Raman <eraman@google.com>
8381 PR rtl-optimization/49429
8383 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
8384 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8385 used to copy y into x.
8386 * calls.c (initialize_argument_information): Mark
8387 an argument addressable if it is passed by invisible reference.
8388 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
8389 if it is passed by reference.
8391 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
8393 PR rtl-optimization/49504
8394 * rtlanal.c (nonzero_bits1): Properly handle addition or
8395 subtraction of a pointer in Pmode if pointers extend unsigned.
8396 (num_sign_bit_copies1): Likewise.
8398 2011-06-24 Martin Jambor <mjambor@suse.cz>
8400 PR tree-optimizations/49516
8401 * tree-sra.c (sra_modify_assign): Choose the safe path for
8402 aggregate copies if we also did scalar replacements.
8404 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8407 * config/arm/predicates.md (add_operator): New.
8408 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8410 2011-06-24 Andi Kleen <ak@linux.intel.com>
8412 * tree-sra.c (type_internals_preclude_sra_p): Add msg
8413 parameter. Split up ifs and report reason in *msg.
8415 (find_var_candiate): Add msg variable.
8416 Split up ifs and report reason to reject.
8417 (find_param_candidates): Add msg variable.
8418 Pass msg to type_internals_preclude_sra_p.
8420 2011-06-23 Jeff Law <law@redhat.com>
8423 * reload.h (reload): Change to return a bool.
8424 * ira.c (ira): If requested by reload, run a fast DCE pass after
8425 reload has completed. Fix comment typo.
8426 * reload1.c (need_dce): New file scoped static.
8427 (reload): Set reload_completed here. Return whether or not a DCE
8428 pass after reload is needed.
8429 (delete_dead_insn): Set need_dce as needed.
8432 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8433 to detect threading through joiner block. If there was already
8434 an edge to the new target, then do not change the PHI nodes.
8436 2011-06-23 Jakub Jelinek <jakub@redhat.com>
8438 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8439 get_pointer_alignment to see if base isn't sufficiently aligned.
8441 2011-06-23 Jan Hubicka <jh@suse.cz>
8443 PR tree-optimize/49373
8444 * tree-pass.h (all_late_ipa_passes): Declare.
8445 * cgraphunit.c (init_lowered_empty_function): Fix properties.
8446 (cgraph_optimize): Execute late passes; remove unreachable funcions
8447 after materialization.
8448 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8450 * passes.c (all_late_ipa_passes): Declare.
8451 (dump_passes, register_pass): Handle late ipa passes.
8452 (init_optimization_passes): Move ipa_pta to late passes; schedule
8453 fixup_cfg at beggining of all_passes.
8454 (apply_ipa_transforms): New function.
8455 (execute_one_pass): When doing simple ipa pass, apply all transforms.
8457 2011-06-23 Joseph Myers <joseph@codesourcery.com>
8459 * params.c: Include common/common-target.h. Don't include tm.h.
8460 (lang_independent_params): Move from toplev.c.
8461 (global_init_params): New.
8462 * params.h (global_init_params): Declare.
8463 * target.def (default_params): Move to common-target.def.
8464 * toplev.c (lang_independent_options): Remove.
8465 (lang_independent_params): Move to params.c.
8466 (general_init): Use global_init_params.
8467 * common/common-target.def (option_default_params): Move from
8469 * common/config/ia64/ia64-common.c: Include params.h.
8470 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8472 * common/config/rs6000/rs6000-common.c: Include params.h.
8473 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8475 * common/config/sh/sh-common.c: Include params.h.
8476 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8478 * common/config/spu/spu-common.c: Include params.h.
8479 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8481 * config/ia64/ia64.c (ia64_option_default_params,
8482 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8483 * config/rs6000/rs6000.c (rs6000_option_default_params,
8484 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8485 * config/sh/sh.c (sh_option_default_params,
8486 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8487 * config/spu/spu.c (spu_option_default_params,
8488 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8489 * Makefile.in (OBJS): Remove params.o.
8490 (OBJS-libcommon-target): Add params.o.
8491 (params.o, $(common_out_object_file)): Update dependencies.
8492 * doc/tm.texi: Regenerate.
8494 2011-06-23 Alan Modra <amodra@gmail.com>
8497 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8498 invocation for 2011-06-09 changes.
8500 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8503 * omp-low.c (expand_omp_for_static_nochunk): Only
8504 use n ceil/ nthreads size for the first n % nthreads threads in the
8505 team instead of all threads except for the last few ones which
8506 get less work or none at all.
8509 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8512 2011-06-22 Richard Guenther <rguenther@suse.de>
8514 PR tree-optimization/49493
8515 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8516 Refer to the alias target of variables.
8517 (associate_varinfo_to_alias_1): Remove.
8518 (ipa_pta_execute): Do not associate aliases with anything.
8519 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8520 (cgraph_function_node): Likewise.
8521 (cgraph_function_or_thunk_node): Likewise.
8522 (varpool_variable_node): Likewise.
8524 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
8526 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8527 * config.gcc (arm*-*-linux*): Default to gnu tls.
8528 (arm*-*-*): Add --with-tls option.
8529 (all_defaults): Add 'tls'.
8531 2011-06-22 Richard Henderson <rth@redhat.com>
8533 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8534 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8535 (dwarf2out_frame_debug_cfa_window_save): Rename from
8536 dwarf2out_window_save; make static.
8537 * tree.h (dwarf2out_window_save): Don't declare.
8539 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8540 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8541 (emit_save_register_window): Rename from gen_save_register_window;
8542 emit the insn and add REG_CFA_* notes.
8543 (sparc_expand_prologue): Update to match.
8544 * config/sparc/sparc.md (save_register_window_1): Simplify from
8545 save_register_window<P:mode>.
8547 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
8550 * config/i386/i386.md (*lea_general_2): Always allow SImode.
8551 (*lea_general_2_zext): Likewise.
8552 (imul to lea peepholes): Use const359_operand and check
8553 TARGET_PARTIAL_REG_STALL.
8555 * config/i386/predicates.md (const359_operand): New.
8557 2011-06-22 Michael Matz <matz@suse.de>
8559 * cgraphunit.c (assemble_thunk): Use correct return type.
8561 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
8562 Dmitry Melnik <dm@ispras.ru>
8564 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8565 (neon_output_shift_immediate): Ditto.
8566 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8568 (neon_output_shift_immediate): Ditto.
8569 * config/arm/neon.md (vashl<mode>3): Modified constraint.
8570 (vashr<mode>3_imm): New insn pattern.
8571 (vlshr<mode>3_imm): Ditto.
8572 (vashr<mode>3): Modified constraint.
8573 (vlshr<mode>3): Ditto.
8574 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8576 (imm_for_neon_rshift_operand): Ditto.
8577 (imm_lshift_or_reg_neon): Ditto.
8578 (imm_rshift_or_reg_neon): Ditto.
8580 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8582 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8584 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8585 builtin calls even if likelyvalue is not CONSTANT.
8586 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8587 Return get_value_for_expr of first operand
8588 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8589 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8590 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8591 their non-checking counterparts.
8592 (call_may_clobber_ref_p_1): Likewise.
8593 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8594 like their non-checking counterparts.
8595 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8596 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8597 like their non-checking counterparts.
8598 (find_func_clobbers): Likewise.
8599 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8600 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8602 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8603 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8604 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8605 of base type reference as argument.
8606 (resolve_addr_in_expr): Likewise. Fix keep computation.
8607 (convert_descriptor_to_signed): Renamed to...
8608 (convert_descriptor_to_mode): ... this. For wider types convert to
8609 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8610 (typed_binop): New function.
8611 (scompare_loc_descriptor, ucompare_loc_descriptor,
8612 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8613 default to unsigned type instead of signed.
8616 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8617 (gimple_build_debug_source_bind_stat): New prototype.
8618 (gimple_build_debug_source_bind): Define.
8619 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8620 gimple_debug_source_bind_get_value,
8621 gimple_debug_source_bind_get_value_ptr,
8622 gimple_debug_source_bind_set_var,
8623 gimple_debug_source_bind_set_value): New inlines.
8624 * gimple.c (gimple_build_debug_source_bind_stat): New function.
8625 * gimple-pretty-print.c (dump_gimple_debug): Handle
8626 GIMPLE_DEBUG_SOURCE_BIND.
8627 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8628 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8629 * tree-parloops.c (eliminate_local_variables,
8630 separate_decls_in_region): Likewise.
8631 (separate_decls_in_region_debug): Renamed from
8632 separate_decls_in_region_debug_bind. Handle
8633 gimple_debug_source_bind_p.
8634 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8636 (DECL_HAS_DEBUG_ARGS_P): Define.
8637 (struct tree_function_decl): Add has_debug_args_flag field.
8638 * tree.c (debug_args_for_decl): New variable.
8639 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8640 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8641 (rewrite_debug_stmt_uses): New function.
8642 (rewrite_stmt): Use it to rewrite debug stmt uses.
8643 * rtl.def (DEBUG_PARAMETER_REF): New.
8644 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8645 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8646 DEBUG_PARAMETER_REF.
8647 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8648 * print-rtl.c (print_rtx): Likewise.
8649 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8650 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8651 debug stmts in the first bb.
8652 * tree-inline.c (remap_ssa_name): If remapping default def
8653 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8654 a source bind debug stmt.
8655 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8656 (maybe_move_debug_stmts_to_successors): Likewise.
8657 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
8658 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8659 debug args vector from old_decl to new_decl.
8660 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8661 or modified parameters, add debug bind stmts before call
8662 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8663 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8664 on DECL_DEBUG_EXPRs from debug args vector.
8665 (expand_debug_source_expr): New function.
8666 (expand_debug_locations): Use it for source bind insns.
8667 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8668 * var-tracking.c (prepare_call_arguments): Add debug args
8669 to call_arguments if any.
8670 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8671 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8672 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8673 (get_ref_die_offset, parameter_ref_descriptor): New functions.
8674 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8675 (gen_subprogram_die): Handle parameters identified by
8676 DEBUG_PARAMETER_REF.
8678 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
8680 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8681 * doc/install.texi (Configuration): Document --with-tls.
8682 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8683 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8684 (arm_tls_descseq_addr): New.
8685 (legitimize_tls_address): Add tlsdesc support.
8686 (arm_cannot_copy_insn_p): Check for tlscall.
8687 (arm_emit_tls_decoration): Likewise.
8688 * config/arm/arm.h (TARGET_GNU2_TLS): New.
8689 (OPTION_DEFAULT_SPECS): Add with-tls support.
8690 * config/arm/arm.md (R1_REGNUM): Define.
8692 * config/arm/arm.opt (tls_type): New enumeration type and values.
8693 (mtls-dialect): New switch.
8694 * config/arm/arm-opts.h (enum tls_type): New.
8696 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
8698 * attribs.c (register_attribute): Added assert to check that all
8699 attribute specs are registered with a name that is not empty and
8700 does not start with '_'.
8701 (decl_attributes): Avoid the lookup of the "naked" attribute spec
8702 if the function has no attributes.
8703 * tree.c (is_attribute_with_length_p): Removed.
8704 (is_attribute_p): Removed.
8705 (private_is_attribute_p): New.
8706 (private_lookup_attribute): New.
8707 (lookup_attribute): Removed.
8708 (lookup_ident_attribute): New.
8709 (remove_attribute): Require the first argument to be in the form
8710 'text', not '__text__'. Updated asserts.
8711 (merge_attributes): Use lookup_ident_attributes instead of
8713 (merge_dllimport_decl_attributes): Use remove_attribute.
8714 (attribute_list_contained): Likewise.
8715 (attribute_list_equal): Immediately return 1 if the arguments are
8717 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
8718 'int'. Require the first argument to be in the form 'text', not
8719 '__text__'. Require the second argument to be an identifier.
8720 (lookup_attribute): Made inline. Require the first argument to be
8721 in the form 'text', not '__text__'.
8722 (private_is_attribute_p, private_lookup_attribute): New.
8725 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
8727 * builtins.c: Add sync_ or SYNC__ to builtin names.
8728 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8729 * omp-low.c: Add sync_ or SYNC__ to builtin names.
8731 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
8734 * config/avr/avr.md (extzv): New expander.
8736 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8737 * config/avr/constraints.md (C04): New constraint.
8738 * doc/md.texi (Machine Constraints): Document it.
8740 2011-06-21 Jakub Jelinek <jakub@redhat.com>
8743 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8744 unsignedp argument instead of 1 for clrsb_optab.
8745 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8746 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
8747 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8748 * optabs.c (widen_leading): Call widen_operand and expand_unop
8749 with 0 as unsignedp argument instead of 1 for clrsb_optab.
8750 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8752 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
8754 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8756 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
8758 * gensupport.c (add_define_attr): New static function.
8759 (is_predicable): Allow multi-alternative lists for the "predicable"
8761 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8762 (process_one_cond_exec): Call alter_attrs_for_insn.
8763 * doc/md.texi (Defining Attributes): Mention some standard names.
8764 (Conditional Execution): Update documentation for "predicable".
8766 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8767 __builtin_clrsbll): Document.
8768 * doc/rtl.texi (clrsb): New entry.
8769 * optabs.c (widen_leading): Renamed from widen_clz. New argument
8770 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
8771 (expand_unop): Handle clrsb_optab.
8772 (init_optabs): Initialize it.
8773 * optabs.h (enum optab_index): New entry OTI_clrsb.
8774 (clrsb_optab): Define.
8775 * genopinit.c (optabs): Add an entry for it.
8776 * builtins.c (expand_builtin): Handle clrsb builtin functions.
8777 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8778 BUILT_IN_CLRSBLL): New.
8779 * rtl.def (CLRSB): New code.
8780 * dwarf2out.c (mem_loc_descriptor): Handle it.
8781 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8782 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8784 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8785 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8786 (__ctzDI2): Move declaration.
8787 * config/bfin/bfin.md (clrsbsi2): New expander.
8788 (signbitssi2): Use the CLRSB rtx.
8789 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
8790 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8792 2011-06-21 Richard Guenther <rguenther@suse.de>
8794 * ipa-inline-transform.c (inline_transform): Fix previous change.
8796 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
8798 PR tree-optimization/49478
8799 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8800 with constant operand.
8802 2011-06-21 Richard Guenther <rguenther@suse.de>
8804 * ipa-inline-transform.c (inline_transform): Fix typo.
8806 2011-06-21 Richard Guenther <rguenther@suse.de>
8808 PR tree-optimization/49483
8809 * tree-vect-stmts.c (vectorizable_assignment): Also handle
8810 VIEW_CONVERT_EXPR conversions.
8812 2011-06-21 Joseph Myers <joseph@codesourcery.com>
8814 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8815 * config/avr/avr-tables.opt: New file (generated).
8816 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8817 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8819 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8820 (avr_option_override): Don't process -mmcu= argument here. Set
8821 avr_current_device using avr_mcu_index.
8822 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8823 * config/avr/avr.opt (mmcu=): Use Enum.
8824 * config/avr/t-avr (avr-devices.o): Update dependencies.
8825 ($(srcdir)/config/avr/avr-tables.opt): New.
8826 * target.def (help): Remove.
8827 * doc/tm.texi.in (TARGET_HELP): Remove.
8828 * doc/tm.texi: Regenerate.
8829 * opts.c: Don't include target.h.
8830 (common_handle_option): Don't call targetm.help.
8831 * system.h (TARGET_HELP): Poison.
8832 * Makefile.in (opts.o): Update dependencies.
8834 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8836 * config/usegld.h: New file.
8837 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8838 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8839 (LIB_SPEC): Likewise. Search /lib.
8840 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8841 (RDYNAMIC_SPEC): Handle GNU ld.
8842 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8844 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8845 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8846 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8847 (STACK_CHECK_STATIC_BUILTIN): Define.
8848 * config/sol2.opt (compat-bsd): Remove.
8849 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8850 * config/sol2-bi.h: New file.
8851 * config/sol2-gld.h: Remove.
8852 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8853 (NO_DBX_BNSYM_ENSYM): Remove.
8854 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8855 (STACK_CHECK_STATIC_BUILTIN): Remove.
8856 Test USE_GLD instead of TARGET_GNU_LD.
8857 * config/i386/sol2-10.h: Rename to ...
8858 * config/i386/sol2-bi.h .. this.
8859 (SUBTARGET_EXTRA_SPECS): Redefine.
8860 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8861 (MULTILIB_DEFAULTS): Remove.
8862 (DEFAULT_ARCH32_P): Define.
8863 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8864 (ARCH64_SUBDIR): Define.
8865 Test USE_GLD instead of TARGET_GNU_LD.
8866 (I386_EMULATION): Rename to ...
8867 (ARCH32_EMULATION): ... this.
8868 (X86_64_EMULATION): Rename to ...
8869 (ARCH64_EMULATION): ... this.
8870 (TARGET_LD_EMULATION): Remove.
8871 (LINK_ARCH_SPEC): Remove.
8872 * config/i386/sol2-gas.h: Remove.
8873 * config/i386/t-sol2-10: Rename to ...
8874 * config/i386/t-sol2-64: ... this.
8875 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8876 (AS_SPARC64_FLAG): Define.
8877 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8878 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8879 depending on TARGET_CPU_DEFAULT.
8880 (CPP_CPU_SPEC): Redefine.
8881 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8882 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8883 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8884 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8885 ASM_ARCH_DEFAULT_SPEC): Redefine.
8886 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8887 LINK_ARCH_DEFAULT_SPEC.
8888 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8889 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8890 (ARCH64_SUBDIR): Define.
8891 (LINK_ARCH64_SPEC): Redefine.
8892 (CC1_SPEC): Redefine.
8893 (OPTION_DEFAULT_SPECS): Redefine.
8894 (MULTILIB_DEFAULTS): Define.
8895 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8896 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8897 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8898 (NO_DBX_BNSYM_ENSYM): Remove.
8899 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8900 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8901 (TARGET_ASM_NAMED_SECTION): Likewise.
8902 (STACK_CHECK_STATIC_BUILTIN): Remove.
8903 * config/sparc/sol2-bi.h: Remove.
8904 * config/sparc/sol2-gas-bi.h: Remove.
8905 * config/sparc/sol2-gas.h: Remove.
8906 * config/sparc/sol2-gld-bi.h: Remove.
8907 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8909 (*-*-solaris2*): ... here.
8911 2011-06-21 Christian Bruel <christian.bruel@st.com>
8914 * ipa-inline.c (can_inline_edge_p): Check
8915 !DECL_DISREGARD_INLINE_LIMITS.
8917 2011-06-21 Christian Bruel <christian.bruel@st.com>
8920 * cgraphunit.c (process_function_and_variable_attributes): warn when
8921 always_inline functions that are not inline.
8922 * ipa-inline-transform.c (inline_transform): Always call
8924 * tree-inline.c (tree_inlinable_function_p): Use error instead
8926 (expand_call_inline): Likewise.
8928 2011-06-21 Jakub Jelinek <jakub@redhat.com>
8930 * Makefile.in (dg_target_exps): Set.
8931 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8932 instead of 7, try to divide it more evenly.
8934 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
8937 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8938 (avx256_split_unaligned_store): New definition.
8939 (ix86_option_override_internal): Enable avx256 unaligned load/store
8940 splitting only when avx256_split_unaligned_load/store is set.
8942 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
8944 * regrename.c (scan_rtx_reg): Handle the case where we write to an
8945 open chain in a smaller mode without failing the entire block.
8947 2011-06-21 Alan Modra <amodra@gmail.com>
8949 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8950 CONST high part large-toc address.
8951 (rs6000_tls_referenced_p): Make static.
8952 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8954 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8957 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8958 one of the operands is a register.
8960 2011-06-20 Kai Tietz <ktietz@redhat.com>
8962 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8963 operations in combination with binary and.
8965 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
8967 * regrename.c (do_replace): Don't update notes.
8969 2011-06-20 Alan Modra <amodra@gmail.com>
8971 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8972 of toc-relative address in CONST.
8973 (rs6000_delegitimize_address): Recognize changed address.
8974 (rs6000_legitimize_reload_address): Likewise.
8975 (rs6000_emit_move): Don't force these constants to memory.
8976 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8977 toc-relative address in CONST.
8978 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8979 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8981 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
8983 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8984 (count_trailing_zeros): Likewise.
8986 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
8989 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8990 .init_array can be used with .ctors on targets.
8991 * configure: Regenerated.
8993 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
8995 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8996 if the element type is volatile.
8998 2011-06-18 Jan Hubicka <jh@suse.cz>
9000 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9002 (lto_symtab_resolve_can_prevail_p): Likewise.
9003 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9004 * cgraphbuild.c (record_reference): Remove extra body alias code.
9005 (mark_load): Likewise.
9006 (mark_store): Likewise.
9007 * cgraph.h (varpool_node): Remove extra_name filed;
9008 add alias_of and extraname_alias.
9009 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9010 (varpool_alias_aliased_node): New inline function.
9011 (varpool_variable_node): New function.
9012 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9013 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9014 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9015 (input_varpool_node): Likewise.
9016 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9017 (varpool_externally_visible_p): Remove extra body alias code.
9018 (function_and_variable_visibility): Likewise.
9019 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9020 (ipa_pta_execute): Use it.
9021 * varpool.c (varpool_remove_node): Remove extra name alias code.
9022 (varpool_mark_needed_node): Likewise.
9023 (varpool_analyze_pending_decls): Analyze aliases.
9024 (assemble_aliases): New functoin.
9025 (varpool_assemble_decl): Use it.
9026 (varpool_create_variable_alias): New function.
9027 (varpool_extra_name_alias): Rewrite.
9028 (varpool_for_node_and_aliases): New function.
9030 2011-06-18 Jakub Jelinek <jakub@redhat.com>
9033 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9034 last_arg_constant and last argument doesn't match its predicate,
9035 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9036 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9037 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9038 spelling of error message.
9039 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9040 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9041 const_0_to_255_operand instead of const_int_operand.
9044 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9046 * config/i386/sse.md (blendbits): Remove mode attribute.
9047 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9048 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9049 Check integer value of operand 3 in insn constraint.
9051 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
9053 PR rtl-optimization/48542
9054 * reload.c (find_equiv_reg): Stop looking when finding a
9056 * reload1.c (reload_as_needed): Invalidate all reload
9057 registers when crossing a setjmp-type call.
9059 2011-06-16 Jeff Law <law@redhat.com>
9061 * tree-ssa-threadupdate.c (struct redirection_data): New field
9063 (THREAD_TARGET2): Define.
9064 (redirection_data_eq): Also check that the intermediate edge is equal.
9065 (lookup_redirection_data): Drop useless argument. Extract the
9066 outgoing_edge and intermediate edge from E. Callers updated.
9067 (copy_phi_args, update_destination_phis): New functions.
9068 (fix_duplicate_block_edges): Likewise.
9069 (create_edge_and_update_destination_phis): Duplicate all the edges
9070 hung off e->aux. Use copy_phi_args.
9071 (create_duplicates): Use fix_duplicate_block_edges.
9072 (fixup_template_block): Likewise.
9073 (redirect_edges): If necessary, redirect the joiner block's incoming
9074 edge to the duplicate of the joiner block.
9075 (thread_block): Don't muck up loops when threading through a joiner
9077 (thread_through_loop_header): Handle threading through a joiner block.
9078 (mark_threaded_blocks, register_jump_thread): Likewise.
9079 * tree-flow.h (register_jump_thread): Add new argument. Callers
9081 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9082 (thread_across_edge): Handle threading through a joiner block.
9084 2011-06-16 Martin Jambor <mjambor@suse.cz>
9086 PR tree-optimization/49343
9087 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9088 calculate offset, provide 2nd operand for the new COMPONENT_REF.
9090 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
9092 * config/darwin-protos.h (machopic_select_rtx_section): Move to
9093 inside RTX_CODE ifdef.
9095 2011-06-16 Tom de Vries <tom@codesourcery.com>
9098 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9099 Disallow NULL pointer for pointer arithmetic.
9101 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9105 2011-06-10 Wei Guozhi <carrot@google.com>
9108 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9109 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9110 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9112 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9114 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9115 (arm_legitimate_ldrd_p): New prototype.
9116 (arm_output_ldrd): New prototype.
9117 * config/arm/arm.c (arm_check_ldrd_operands): New function.
9118 (arm_legitimate_ldrd_p): New function.
9119 (arm_output_ldrd): New function.
9121 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
9124 * doc/tm.texi.in: Update Copyright date.
9125 * doc/tm.texi: Regenerate.
9126 * targhooks.c (default_setup_incoming_varargs): Replace
9127 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9128 (default_pretend_outgoing_varargs_named): Likewise.
9129 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9130 (hook_callee_copies_named): Likewise.
9131 (default_function_arg_advance): Likewise.
9132 (default_function_arg): Likewise.
9133 (default_function_incoming_arg): Likewise.
9134 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9135 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9136 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9137 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9138 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9139 * targhooks.h (default_setup_incoming_varargs): Likewise.
9140 (default_pretend_outgoing_varargs_named): Likewise.
9141 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9142 (hook_callee_copies_named): Likewise.
9143 (default_function_arg_advance): Likewise.
9144 (default_function_arg): Likewise.
9145 (default_function_incoming_arg): Likewise.
9146 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9147 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9148 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9149 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9150 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9151 * target.def (pass_by_reference): Likewise.
9152 (setup_incoming_varargs, strict_argument_naming): Likewise.
9153 (pretend_outgoing_varargs_named, callee_copies): Likewise.
9154 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9155 (function_incoming_arg): Likewise.
9156 * target.h: Don't include "tm.h" .
9157 (cumulative_args_t): New typedef.
9158 [GCC_TM_H] (get_cumulative_args): New static inline function.
9159 [GCC_TM_H] (pack_cumulative_args): Likewise.
9160 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9161 argument type with cumulative_args_t.
9162 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9163 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9164 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9165 (frv_arg_partial_bytes, frv_function_arg): Likewise.
9166 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9167 (frv_function_arg_1): Likewise.
9168 * config/s390/s390.c (s390_pass_by_reference): Likewise.
9169 (s390_function_arg_advance, s390_function_arg): Likewise.
9170 * config/m32c/m32c.c (m32c_function_arg): Likewise.
9171 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9172 (m32c_strict_argument_naming): Likewise.
9173 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9174 (spu_function_arg_advance): Likewise.
9175 (spu_setup_incoming_varargs): Likewise. Make static.
9176 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9178 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9179 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9180 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9181 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9182 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9183 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9184 (mep_pass_by_reference, mep_function_arg): Likewise.
9185 (mep_function_arg_advance): Likewise.
9186 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9187 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9188 (m32r_function_arg, m32r_function_arg_advance): Likewise.
9189 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9190 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9191 (ix86_function_arg, ix86_pass_by_reference): Likewise.
9192 (ix86_setup_incoming_varargs): Likewise.
9193 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9194 (sh_strict_argument_naming): Likewise.
9195 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9196 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9197 (sh_function_arg_advance, sh_function_arg): Likewise.
9198 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9199 (pdp11_function_arg_advance): Likewise.
9200 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9202 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9203 * config/avr/avr.c (avr_function_arg): Likewise.
9204 (avr_function_arg_advance): Likewise.
9205 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9206 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9207 (xtensa_function_arg_1): Likewise.
9208 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9210 (xstormy16_function_arg): Likewise.
9211 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9212 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9213 (fr30_function_arg_advance): Likewise.
9214 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9215 (lm32_function_arg, lm32_function_arg_advance): Likewise.
9216 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9217 (moxie_function_arg, moxie_function_arg_advance): Likewise.
9218 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9219 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9220 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9221 (cris_function_arg, cris_function_incoming_arg): Likewise.
9222 (cris_function_arg_advance, cris_function_arg_1): Likewise.
9223 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9224 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9225 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9226 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9227 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9228 (mn10300_arg_partial_bytes): Likewise.
9229 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9230 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9231 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9232 (ia64_function_arg_1): Likewise.
9233 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9234 (m68k_function_arg): Likewise.
9235 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9236 (rs6000_function_arg, setup_incoming_varargs): Likewise.
9237 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9238 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9239 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9240 (picochip_arg_advance): Likewise.
9241 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9242 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9243 (mcore_function_arg_advance): Likewise.
9244 * config/score/score.c (score_pass_by_reference): Likewise.
9245 (score_function_arg_advance): Likewise.
9246 (score_arg_partial_bytes): Likewise. Make static.
9247 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9248 * config/arm/arm.c (arm_arg_partial_bytes): Replace
9249 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9250 (arm_function_arg, arm_function_arg_advance): Likewise.
9251 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9252 * config/pa/pa.c (pa_pass_by_reference): Likewise.
9253 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9254 (pa_function_arg): Likewise.
9255 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9256 (mips_function_arg, mips_function_arg_advance): Likewise.
9257 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9258 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9259 * config/vax/vax.c (vax_function_arg): Likewise.
9260 (vax_function_arg_advance): Likewise.
9261 * config/h8300/h8300.c (h8300_function_arg): Likewise.
9262 (h8300_function_arg_advance): Likewise.
9263 * config/v850/v850.c (v850_pass_by_reference): Likewise.
9264 (v850_strict_argument_naming, v850_function_arg): Likewise.
9265 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9266 (v850_setup_incoming_varargs): Likewise.
9267 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9268 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9269 (mmix_function_arg, mmix_pass_by_reference): Likewise.
9270 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9272 * config/bfin/bfin.c (setup_incoming_varargs): Replace
9273 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9274 (bfin_function_arg_advance, bfin_function_arg): Likewise.
9275 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9276 * calls.c (emit_call_1): Change type of args_so_far to
9277 cumulative_args_t. Changed all callers.
9278 (initialize_argument_information): Likewise.
9279 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9280 * dse.c (get_call_args): Likewise.
9281 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9282 * function.c (pass_by_reference, reference_callee_copied): Likewise.
9283 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9284 New member args_so_far_v. Changed all users.
9285 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9286 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9287 * config/mips/mips.c (mips_output_args_xfer): Likewise.
9288 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9289 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9290 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9292 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9293 m32r_pass_by_reference.
9295 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
9297 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9298 argument to be a VEC of statements.
9299 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9300 assert that pattern statements have to have their vector type set.
9301 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9302 Change the first argument to be a VEC of statements. Update
9304 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9305 (vect_handle_widen_mult_by_const): New function.
9306 (vect_recog_widen_mult_pattern): Change the first argument to be a
9307 VEC of statements. Update documentation. Check that the constant is
9308 INTEGER_CST. Support multiplication by a constant that fits an
9309 intermediate type - call vect_handle_widen_mult_by_const.
9310 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9311 call. Handle additional pattern statements if necessary.
9313 2011-06-16 Nick Clifton <nickc@redhat.com>
9316 * config.gcc: Set cpu_type to v850 for any V850 architecture.
9317 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9318 md_file, extra_modes, out_file and extra_options are these are all
9319 deduced from cpu_type.
9321 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
9323 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9324 truncation mask to 63.
9326 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
9330 * longlong.h: Add AVR support:
9331 (count_leading_zeros): New macro.
9332 (count_trailing_zeros): New macro.
9333 (COUNT_LEADING_ZEROS_0): New macro.
9334 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9335 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9336 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9337 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9338 (LIB2FUNCS_EXCLUDE): Add _clz.
9339 * config/avr/libgcc.S (XCALL): Move up in file.
9340 (XJMP): New C Macro.
9341 (DEFUN): New asm macro.
9342 (ENDF): New asm macro.
9343 (__ffssi2): New function.
9344 (__ffshi2): New function.
9345 (__loop_ffsqi2): New function.
9346 (__ctzsi2): New function.
9347 (__ctzhi2): New function.
9348 (__clzdi2): New function.
9349 (__clzsi2): New function.
9350 (__clzhi2): New function.
9351 (__paritydi2): New function.
9352 (__paritysi2): New function.
9353 (__parityhi2): New function.
9354 (__parityqi2): New function.
9355 (__popcounthi2): New function.
9356 (__popcountsi2): New function.
9357 (__popcountdi2): New function.
9358 (__popcountqi2): New function.
9359 (__bswapsi2): New function.
9360 (__bswapdi2): New function.
9361 (__ashldi3): New function.
9362 (__ashrdi3): New function.
9363 (__lshrdi3): New function.
9364 Fix suspicous lines.
9366 2011-06-16 Richard Guenther <rguenther@suse.de>
9368 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9370 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9372 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9373 equality compares against zero for the lower bit.
9375 2011-06-16 Jakub Jelinek <jakub@redhat.com>
9377 PR tree-optimization/49419
9378 * tree-vrp.c (execute_vrp): Call init_range_assertions
9379 before estimate_numbers_of_iterations, call
9380 free_number_of_iterations_estimates before calling
9381 remove_range_assertions.
9383 2011-06-16 Revital Eres <revital.eres@linaro.org>
9385 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9386 (struct partial_schedule): Add rows_length field.
9387 (verify_partial_schedule): Check rows_length.
9388 (ps_insert_empty_row): Handle rows_length.
9389 (create_partial_schedule): Likewise.
9390 (free_partial_schedule): Likewise.
9391 (reset_partial_schedule): Likewise.
9392 (create_ps_insn): Remove rest_count argument.
9393 (remove_node_from_ps): Update rows_length.
9394 (add_node_to_ps): Update rows_length and call create_ps_insn
9395 without passing row_rest_count.
9396 (rotate_partial_schedule): Update rows_length.
9398 2011-06-16 Revital Eres <revital.eres@linaro.org>
9400 * ddg.c (add_intra_loop_mem_dep): New function.
9401 (build_intra_loop_deps): Call it.
9403 2011-06-13 Jeff Law <law@redhat.com>
9405 * df-problems.c (df_lr_local_compute): Manually CSE
9406 PIC_OFFSET_TABLE_REGNUM.
9407 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9408 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9410 2011-06-13 Jan Hubicka <jh@suse.cz>
9412 * cgraphunit.c (handle_alias_pairs): New function.
9413 (cgraph_finalize_compilation_unit): Use it.
9414 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9415 as externally visible.
9417 2011-06-15 Richard Guenther <rguenther@suse.de>
9419 * expr.c (expand_expr_real_2): Reduce all integral types to
9421 (expand_expr_real_1): Likewise.
9423 2011-06-15 Martin Jambor <mjambor@suse.cz>
9425 PR tree-optimization/48613
9426 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9427 ipa_node_params_vector is NULL.
9429 2011-06-15 Jakub Jelinek <jakub@redhat.com>
9432 * dwarf2out.c (dw_loc_list_node): Add force field.
9433 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9434 location in the list, even if it is modified before first real insn.
9435 (output_loc_list): Emit empty ranges with force flag set.
9436 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9438 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
9441 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9442 (fence_to_rewind). Use it to notice when bookkeeping will be placed
9443 above a fence. Update comments.
9444 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9445 placed just above it. Do not allow NULL place_to_insert.
9447 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
9449 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9450 (slpeel_tree_peel_loop_to_edge): Don't call
9451 remove_dead_stmts_from_loop.
9452 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9453 remove irrelevant pattern statements. For irrelevant statements
9454 check if it is the last statement of a detected pattern, use
9455 corresponding pattern statement instead.
9456 (destroy_loop_vec_info): No need to remove pattern statements,
9457 only free stmt_vec_info.
9458 (vect_transform_loop): For irrelevant statements check if it is
9459 the last statement of a detected pattern, use corresponding
9460 pattern statement instead.
9461 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9462 pattern statements. Set basic block for the new statement.
9463 (vect_pattern_recog): Update documentation.
9464 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9465 operands of pattern statements.
9466 (vectorizable_call): Fix printing. In case of a pattern statement
9467 use the lhs of the original statement when creating a dummy
9468 statement to replace the original call.
9469 (vect_analyze_stmt): For irrelevant statements check if it is
9470 the last statement of a detected pattern, use corresponding
9471 pattern statement instead.
9472 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9473 statements use gsi of the original statement.
9475 2011-06-14 Joseph Myers <joseph@codesourcery.com>
9477 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9478 common/common-target-def.h.
9479 * target.def (default_target_flags, handle_option,
9480 supports_split_stack, optimization_table, init_struct,
9481 except_unwind_info, unwind_tables_default, have_named_sections):
9482 Move to common/common-target.def.
9483 * target.h (enum opt_levels, struct default_options): Move to
9484 common/common-target.h.
9485 * targhooks.c (default_except_unwind_info,
9486 dwarf2_except_unwind_info, sjlj_except_unwind_info,
9487 default_target_handle_option, empty_optimization_table): Move to
9488 common/common-targhooks.c.
9489 * targhooks.h (default_except_unwind_info,
9490 dwarf2_except_unwind_info, sjlj_except_unwind_info,
9491 default_target_handle_option, empty_optimization_table): Move to
9492 common/common-targhooks.h.
9493 * common/common-target-def.h: Include common/common-targhooks.h.
9494 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9496 * common/common-target.def (handle_option, option_init_struct,
9497 option_optimization_table, default_target_flags,
9498 except_unwind_info, supports_split_stack, unwind_tables_default,
9499 have_named_sections): Move from target.def.
9500 (HOOK_PREFIX): Undefine at end of file.
9501 * common/common-target.h: Include input.h.
9502 (enum opt_levels, struct default_options): Move from target.h.
9503 * common/common-targhooks.c, common/common-targhooks.h: New.
9504 * config.gcc (target_has_targetm_common): Default to yes.
9505 (moxie*): Set target_has_targetm_common=no.
9506 (hppa*-*-*): Don't set target_has_targetm_common=yes.
9507 * doc/tm.texi: Regenerate.
9508 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9509 (C_TARGET_DEF_H): Add common/common-targhooks.h.
9510 (GCC_OBJS): Remove vec.o.
9511 (OBJS): Remove hooks.o and vec.o.
9512 (OBJS-libcommon-target): Add vec.o, hooks.o and
9513 common/common-targhooks.o.
9514 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9515 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9516 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9517 cfglayout.o, $(out_object_file), $(common_out_object_file)):
9518 Update dependencies.
9519 (common/common-targhooks.o): New.
9520 * common/config/default-common.c: Include tm.h. Add FIXME comment.
9521 * common/config/pa/pa-common.c: Include more headers. Take
9522 copyright dates from pa.c.
9523 (pa_option_optimization_table, pa_handle_option,
9524 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9525 TARGET_HANDLE_OPTION): Move from pa.c.
9526 * common/config/alpha/alpha-common.c,
9527 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9528 common/config/bfin/bfin-common.c,
9529 common/config/cris/cris-common.c,
9530 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9531 common/config/h8300/h8300-common.c,
9532 common/config/i386/i386-common.c,
9533 common/config/ia64/ia64-common.c,
9534 common/config/iq2000/iq2000-common.c,
9535 common/config/lm32/lm32-common.c,
9536 common/config/m32c/m32c-common.c,
9537 common/config/m32r/m32r-common.c,
9538 common/config/m68k/m68k-common.c,
9539 common/config/mcore/mcore-common.c,
9540 common/config/mep/mep-common.c,
9541 common/config/microblaze/microblaze-common.c,
9542 common/config/mips/mips-common.c,
9543 common/config/mmix/mmix-common.c,
9544 common/config/mn10300/mn10300-common.c,
9545 common/config/pdp11/pdp11-common.c,
9546 common/config/picochip/picochip-common.c,
9547 common/config/rs6000/rs6000-common.c,
9548 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9549 common/config/score/score-common.c, common/config/sh/sh-common.c,
9550 common/config/sparc/sparc-common.c,
9551 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9552 common/config/vax/vax-common.c,
9553 common/config/xstormy16/xstormy16-common.c,
9554 common/config/xtensa/xtensa-common.c: New.
9555 * config/alpha/alpha.c: Include common/common-target.h.
9556 (alpha_option_optimization_table, alpha_handle_option,
9557 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9558 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9559 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9560 * config/arm/arm.c (arm_option_optimization_table,
9561 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9562 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9564 * config/avr/avr.c (avr_option_optimization_table,
9565 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9567 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9568 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9569 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9570 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9571 * config/cris/cris.c (cris_option_optimization_table,
9572 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9573 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9575 * config/fr30/fr30.c (fr30_option_optimization_table,
9576 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9578 * config/frv/frv.c (frv_option_optimization_table,
9579 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9580 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9581 * config/h8300/h8300.c (h8300_option_optimization_table,
9582 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9583 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9584 * config/i386/i386-protos.h (ix86_handle_option): Declare.
9585 * config/i386/i386.c: Include common/common-target.h.
9586 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9587 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9588 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9589 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9590 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9591 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9592 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9593 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9594 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9595 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9596 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9597 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9598 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9599 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9600 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9601 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9602 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9603 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9604 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9605 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9606 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9607 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9608 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9609 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9610 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9611 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9612 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9613 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9614 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9615 ix86_option_optimization_table, ix86_option_init_struct,
9616 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9617 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9618 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9620 * config/i386/t-i386 (i386.o): Update dependencies.
9621 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9622 * config/ia64/ia64.c (ia64_option_optimization_table,
9623 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9624 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9625 ia64_handle_option): Move to ia64-common.c.
9626 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9627 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9628 * config/lm32/lm32.c (lm32_option_optimization_table,
9629 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9631 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9633 * config/m32r/m32r.c (m32r_option_optimization_table,
9634 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9635 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9636 m32r_handle_option): Move to m32r-common.c.
9637 (m32r_memory_move_cost): Remove comment referring to
9638 TARGET_HANDLE_OPTION.
9639 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9640 Move to m68k-common.c.
9641 * config/mcore/mcore.c (mcore_option_optimization_table,
9642 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9643 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9644 * config/mep/mep.c (mep_option_optimization_table,
9645 mep_handle_option, TARGET_HANDLE_OPTION,
9646 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9647 Move to mep-common.c.
9648 * config/microblaze/microblaze.c
9649 (microblaze_option_optimization_table,
9650 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9651 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9652 * config/mips/mips.c (mips_handle_option,
9653 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9654 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9656 * config/mmix/mmix.c (mmix_option_optimization_table,
9657 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9658 Move to mmix-common.c.
9659 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9660 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9661 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9662 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9663 * config/pa/pa.c: Include common/common-target.h.
9664 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9665 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9666 pa_handle_option): Move to pa-common.c.
9667 (pa_option_override): Use targetm_common.except_unwind_info.
9668 (pa_asm_output_mi_thunk, pa_function_section): Use
9669 targetm_common.have_named_sections.
9670 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9671 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9672 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9673 pdp11_handle_option, pdp11_option_init_struct): Move to
9675 * config/picochip/picochip.c (picochip_option_optimization_table,
9676 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9677 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9678 * config/rs6000/rs6000.c: Include common/common-target.h.
9679 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9680 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9681 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9682 rs6000_handle_option): Move to rs6000-common.c.
9683 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9684 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9685 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9686 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9687 * config/s390/s390.c (processor_flags_table,
9688 s390_option_optimization_table, s390_option_init_struct,
9689 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9690 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9691 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9692 * config/s390/s390.h (processor_flags_table): Declare.
9693 * config/score/score.c (score_option_optimization_table,
9694 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9695 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9696 score_handle_option): Move to score-common.c.
9697 * config/sh/sh.c (sh_option_optimization_table,
9698 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9699 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9700 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9701 * config/sparc/sparc.c: Include common/common-target.h.
9702 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9703 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9704 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9705 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9706 spu_option_init_struct): Move to spu-common.c.
9707 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9708 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9709 * config/v850/v850.c (small_memory_physical_max,
9710 v850_handle_memory_optionn v850_handle_option,
9711 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9712 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9714 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9715 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9716 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9717 Move to xtensa-common.c.
9718 * cfglayout.c: Include common/common-target.h.
9719 (fixup_reorder_chain): Use targetm_common.have_named_sections.
9720 * cfgrtl.c: Include common/common-target.h.
9721 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9722 targetm_common.have_named_sections.
9723 * dbxout.c: Include common/common-target.h.
9724 (dbxout_function_end): Use targetm_common.have_named_sections.
9725 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9726 targetm_common.except_unwind_info.
9727 * dwarf2out.c: Include common/common-target.h.
9728 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9729 dwarf2out_begin_prologue, dwarf2out_frame_init,
9730 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9731 targetm_common.except_unwind_info.
9732 * except.c: Include common/common-target.h.
9733 (init_eh, finish_eh_generation,
9734 output_one_function_exception_table): Use
9735 targetm_common.except_unwind_info.
9736 (switch_to_exception_section): Use targetm_common.have_named_sections.
9737 * explow.c: Include common/common-target.h.
9738 * expr.c: Include common/common-target.h.
9739 (build_personality_function): Use targetm_common.except_unwind_info.
9740 * function.c: Include common/common-target.h.
9741 (expand_function_end): Use targetm_common.except_unwind_info.
9742 * haifa-sched.c: Include common/common-target.h.
9743 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9744 * lto-opts.c: Include common/common-target.h instead of target.h.
9745 (lto_reissue_options): Use targetm_common.handle_option.
9746 * opts.c: Include common/common-target.h.
9747 (target_handle_option): Use targetm_common.handle_option.
9748 (init_options_struct): Update comment referring to
9749 targetm.target_option.optimization. Use
9750 targetm_common.default_target_flags,
9751 targetm_common.unwind_tables_default and
9752 targetm_common.option_init_struct.
9753 (default_options_optimization): Use
9754 targetm_common.option_optimization_table.
9755 (finish_options): Use targetm_common.except_unwind_info,
9756 targetm_common.unwind_tables_default,
9757 targetm_common.have_named_sections and
9758 targetm_common.supports_split_stack.
9759 * toplev.c: Include common/common-target.h.
9760 (process_options): Use targetm_common.have_named_sections.
9761 * tree-tailcall.c: Include common/common-target.h.
9762 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9763 * tree.c: Include common/common-target.h.
9764 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9765 * varasm.c: Include common/common-target.h.
9766 (resolve_unique_section, hot_function_section,
9767 default_function_section): Use targetm_common.have_named_sections.
9769 2011-06-14 Easwaran Raman <eraman@google.com>
9771 PR rtl-optimization/44194
9772 * dse.c: Include tree-flow.h
9773 (insn_info): Add new field non_frame_wild_read.
9774 (group_info): Add new fields escaped_n and escaped_p.
9775 (kill_on_calls): New variable.
9776 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9777 (dse_step0): Initialize kill_on_calls.
9778 (can_escape): New function.
9779 (set_usage_bits): Add additional parameter; record information
9780 about escaped locations.
9781 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9782 (dse_step2_nospill): Set kill_on_calls based on
9783 group->escaped_n and group->escaped_n.
9784 (add_wild_read): Refactor into...
9785 (reset_active_stores): ... New function, and
9786 (free_read_records): ... New function.
9787 (add_non_frame_wild_read): New function.
9788 (scan_insn): Call add_non_frame_wild_read on non-const calls.
9789 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9790 (dse_step5_nospill): Call scan_reads_nospill for instructions
9791 marked as non_frame_wild_read.
9792 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9794 2011-06-14 Joseph Myers <joseph@codesourcery.com>
9796 * common/common-target-def.h, common/common-target.def,
9797 common/common-target.h, common/config/default-common.c,
9798 common/config/pa/pa-common.c: New files.
9799 * Makefile.in (common_out_file, common_out_object_file,
9800 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9801 (OBJS-libcommon-target): Include $(common_out_object_file).
9802 (prefix.o): Update dependencies.
9803 ($(common_out_object_file), common/common-target-hooks-def.h,
9804 s-common-target-hooks-def-h): New.
9805 (s-tm-texi): Also check timestamp on common-target.def.
9806 (build/genhooks.o): Update dependencies.
9807 * config.gcc (common_out_file, target_has_targetm_common): Define.
9808 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9809 TARGET_ALWAYS_STRIP_DOTDOT.
9810 * configure.ac (common_out_object_file): Define.
9811 (common_out_file, common_out_object_file): Substitute.
9812 (common): Create directory.
9813 * configure: Regenerate.
9814 * doc/tm.texi.in (targetm_common): Document.
9815 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9816 * doc/tm.texi: Regenerate.
9817 * genhooks.c (hook_array): Also include common/common-target.def.
9818 * prefix.c (tm.h): Don't include.
9819 (common/common-target.h): Include.
9820 (ALWAYS_STRIP_DOTDOT): Don't define.
9821 (update_path): Use targetm_common.always_strip_dotdot instead of
9822 ALWAYS_STRIP_DOTDOT.
9823 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9825 2011-06-14 David Li <davidxl@google.com>
9827 * passes.c (execute_function_todo): Remove TODO_dump_func.
9828 (execute_one_pass): Remove TODO_dump_func.
9829 (execute_function_dump): New function.
9830 * tree-vrp.c: Remove TODO_dump_func.
9831 * regrename.c: Remove TODO_dump_func.
9832 * fwprop.c: Remove TODO_dump_func.
9833 * tree-into-ssa.c: Remove TODO_dump_func.
9834 * tree-complex.c: Remove TODO_dump_func.
9835 * tracer.c: Remove TODO_dump_func.
9836 * tree-loop-distribution.c: Remove TODO_dump_func.
9837 * postreload-gcse.c: Remove TODO_dump_func.
9838 * postreload.c: Remove TODO_dump_func.
9839 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9840 * tree-tailcall.c: Remove TODO_dump_func.
9841 * ipa-cp.c: Remove TODO_dump_func.
9842 * final.c: Remove TODO_dump_func.
9843 * tree-emutls.c: Remove TODO_dump_func.
9844 * omp-low.c: Remove TODO_dump_func.
9845 * tree-ssa-dse.c: Remove TODO_dump_func.
9846 * tree-ssa-uncprop.c: Remove TODO_dump_func.
9847 * auto-inc-dec.c: Remove TODO_dump_func.
9848 * reorg.c: Remove TODO_dump_func.
9849 * tree-ssa-copyrename.c: Remove TODO_dump_func.
9850 * tree-ssa-ccp.c: Remove TODO_dump_func.
9851 * compare-elim.c: Remove TODO_dump_func.
9852 * mode-switching.c: Remove TODO_dump_func.
9853 * modulo-sched.c: Remove TODO_dump_func.
9854 * tree-call-cdce.c: Remove TODO_dump_func.
9855 * cse.c: Remove TODO_dump_func.
9856 * web.c: Remove TODO_dump_func.
9857 * tree-stdarg.c: Remove TODO_dump_func.
9858 * lto-streamer-out.c: Remove TODO_dump_func.
9859 * tree-ssa-math-opts.c: Remove TODO_dump_func.
9860 * tree-ssa-dom.c: Remove TODO_dump_func.
9861 * tree-nrv.c: Remove TODO_dump_func.
9862 * loop-init.c: Remove TODO_dump_func.
9863 * gimple-low.c: Remove TODO_dump_func.
9864 * ipa-inline.c: Remove TODO_dump_func.
9865 * tree-ssa-sink.c: Remove TODO_dump_func.
9866 * jump.c: Remove TODO_dump_func.
9867 * ifcvt.c: Remove TODO_dump_func.
9868 * tree-ssa-loop.c: Remove TODO_dump_func.
9869 * recog.c: Remove TODO_dump_func.
9870 * dse.c: Remove TODO_dump_func.
9871 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9872 * matrix-reorg.c: Remove TODO_dump_func.
9873 * tree-eh.c: Remove TODO_dump_func.
9874 * regmove.c: Remove TODO_dump_func.
9875 * function.c: Remove TODO_dump_func.
9876 * tree-vectorizer.c: Remove TODO_dump_func.
9877 * ipa-split.c: Remove TODO_dump_func.
9878 * gcse.c: Remove TODO_dump_func.
9879 * tree-if-conv.c: Remove TODO_dump_func.
9880 * init-regs.c: Remove TODO_dump_func.
9881 * tree-ssa-phiopt.c: Remove TODO_dump_func.
9882 * implicit-zee.c: Remove TODO_dump_func.
9883 * lower-subreg.c: Remove TODO_dump_func.
9884 * bt-load.c: Remove TODO_dump_func.
9885 * tree-dfa.c: Remove TODO_dump_func.
9886 * except.c: Remove TODO_dump_func.
9887 * emit-rtl.c: Remove TODO_dump_func.
9888 * store-motion.c: Remove TODO_dump_func.
9889 * cfgexpand.c: Remove TODO_dump_func.
9890 * tree-cfgcleanup.c: Remove TODO_dump_func.
9891 * cfgcleanup.c: Remove TODO_dump_func.
9892 * tree-ssa-pre.c: Remove TODO_dump_func.
9893 * tree-sra.c: Remove TODO_dump_func.
9894 * tree-mudflap.c: Remove TODO_dump_func.
9895 * tree-ssa-copy.c: Remove TODO_dump_func.
9896 * cfglayout.c: Remove TODO_dump_func.
9897 * tree-ssa-forwprop.c: Remove TODO_dump_func.
9898 * tree-ssa-dce.c: Remove TODO_dump_func.
9899 * ira.c: Remove TODO_dump_func.
9900 * tree-ssa.c: Remove TODO_dump_func.
9901 * integrate.c: Remove TODO_dump_func.
9902 * tree-optimize.c: Remove TODO_dump_func.
9903 * tree-ssa-phiprop.c: Remove TODO_dump_func.
9904 * tree-object-size.c: Remove TODO_dump_func.
9905 * combine.c: Remove TODO_dump_func.
9906 * bb-reorder.c: Remove TODO_dump_func.
9907 * cprop.c: Remove TODO_dump_func.
9908 * var-tracking.c: Remove TODO_dump_func.
9909 * tree-profile.c: Remove TODO_dump_func.
9910 * tree-vect-generic.c: Remove TODO_dump_func.
9911 * reg-stack.c: Remove TODO_dump_func.
9912 * sched-rgn.c: Remove TODO_dump_func.
9913 * tree-ssa-structalias.c: Remove TODO_dump_func.
9914 * tree-switch-conversion.c: Remove TODO_dump_func.
9915 * tree-cfg.c: Remove TODO_dump_func.
9916 * tree-ssa-reassoc.c: Remove TODO_dump_func.
9917 * combine-stack-adj.c: Remove TODO_dump_func.
9918 * dce.c: Remove TODO_dump_func.
9919 * tree-ssanames.c: Remove TODO_dump_func.
9920 * regcprop.c: Remove TODO_dump_func.
9922 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
9925 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9926 and properly handle result not in Pmode.
9928 2011-06-14 Robert Millan <rmh@gnu.org>
9930 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9931 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9934 * config/i386/kfreebsd-gnu64.h: New file.
9935 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9936 with `i386/kfreebsd-gnu64.h'.
9938 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9939 (GNU_USER_LINK_EMULATION64): New macros.
9940 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9941 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9942 of hardcoding `elf_i386' and `elf_x86_64'.
9944 2011-06-14 Nick Clifton <nickc@redhat.com>
9947 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9950 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9952 2011-06-14 Jakub Jelinek <jakub@redhat.com>
9955 * tree.h (DECL_NONSHAREABLE): Define.
9956 (struct tree_decl_common): Change decl_common_unused to
9957 decl_nonshareable_flag.
9958 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9959 Ignore vars with DECL_NONSHAREABLE bit set.
9960 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9961 on stores to automatic aggregate vars.
9963 PR rtl-optimization/49390
9965 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
9967 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9970 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
9971 Tom de Vries <tom@codesourcery.com>
9974 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9975 Document changed semantics.
9976 (max_stmt_executions, max_stmt_executions_int): Declare.
9977 * tree-data-ref.c (estimated_loop_iterations)
9978 (estimated_loop_iterations_int): Move functions...
9979 * tree-ssa-loop-niter.c (estimated_loop_iterations)
9980 (estimated_loop_iterations_int): here.
9981 (record_estimate): Change nb_iterations_upper_bound and
9982 nb_iterations_estimate semantics.
9983 (max_stmt_executions, max_stmt_executions_int): New function.
9984 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9985 (max_stmt_executions_tree): this.
9986 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9987 estimated_loop_iterations_tree.
9988 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9989 max_stmt_executions_int instead of estimated_loop_iterations_int.
9990 * predict.c (predict_loops): Idem.
9991 * tree-parloops.c (parallelize_loops): Idem.
9992 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9993 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9994 (init_omega_for_ddr_1): Idem.
9995 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9996 (loop_prefetch_arrays): Idem
9997 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
9998 max_stmt_executions instead of estimated_loop_iterations.
9999 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10000 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10001 instead of nb_iterations_upper_bound.
10003 2011-06-13 Jan Hubicka <jh@suse.cz>
10005 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10007 2011-06-14 Richard Henderson <rth@redhat.com>
10010 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10011 (based_loc_descr): Assert it's true.
10012 (compute_frame_pointer_to_fb_displacement): Set it, rather than
10013 aborting immediately.
10015 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
10016 Mingfeng Wu <mingfeng@faraday-tech.com>
10018 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10020 2011-06-13 Jan Hubicka <jh@suse.cz>
10022 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10024 2011-06-13 Jan Hubicka <jh@suse.cz>
10026 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10027 similarly to DECL_COMDAT.
10028 * cgraphunit.c (cgraph_analyze_function): Likewise.
10029 * ipa.c (function_and_variable_visibility): Likewise.
10031 2011-06-13 Jan Hubicka <jh@suse.cz>
10033 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10034 BINFO_VIRTUALS when streaming for ltrans unit.
10036 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
10038 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10039 (movdi_internal64): Same.
10041 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
10044 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10045 a set of similar patterns, where the MATCH_OPERAND for the function
10046 argument is replaced with individual references to hardware registers.
10047 (save_fpregs_<mode>): Ditto
10048 (restore_gpregs_<mode>): Ditto
10049 (return_and_restore_gpregs_<mode>): Ditto
10050 (return_and_restore_fpregs_<mode>): Ditto
10051 (return_and_restore_fpregs_aix_<mode>): Ditto
10053 2011-06-13 Jan Hubicka <jh@suse.cz>
10055 * ipa-utils.c (postorder_stack): New structure.
10056 (ipa_reverse_postorder): Handle aliases.
10058 2011-06-13 Jan Hubicka <jh@suse.cz>
10060 * ipa-inline.c (reset_edge_caches): Walk aliases.
10061 (update_caller_keys): Do not test inlinability of aliases.
10062 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10063 (do_estimate_growth): Fix typo.
10065 2011-06-13 Jan Hubicka <jh@suse.cz>
10067 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10068 (can_remove_node_now_p): ... here; handle same comdat groups.
10069 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10070 (inline_call): Update use of can_remove_node_now_p.
10072 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10074 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10075 condition to disallow non-identical memory locations.
10076 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10077 preference to bit manipulation instructions.
10079 2011-06-13 Jan Hubicka <jh@suse.cz>
10081 * cgraph.c (cgraph_for_node_thunks_and_aliases,
10082 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10083 (nonremovable_p): New function.
10084 (cgraph_can_remove_if_no_direct_calls_p): New function.
10085 (used_from_object_file_p): New functoin.
10086 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10087 references from aliases.
10088 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10089 * ipa-inline.c (check_caller_edge): New function.
10090 (want_inline_function_called_once_p): Use it; accept aliases called
10092 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10094 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10097 * config/arm/neon.md (vec_pack_trunc): Set the lengths
10098 correctly for the case with Quad vectors.
10100 2011-06-13 Jakub Jelinek <jakub@redhat.com>
10101 Ira Rosen <ira.rosen@linaro.org>
10103 PR tree-optimization/49352
10104 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10105 all, make sure loop_use_stmt after the loop is a def stmt of a used
10106 SSA_NAME that is the only one defined inside of the loop. Don't
10107 check for COND_EXPR and GIMPLE_BINARY_RHS.
10108 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10109 check_reduction is true.
10111 2011-06-11 Jan Hubicka <jh@suse.cz>
10113 PR middle-end/49373
10114 * ipa.c (cgraph_externally_visible_p): Check resolution info.
10116 2011-06-11 Jan Hubicka <jh@suse.cz>
10118 PR middle-end/48836
10119 * ipa-inline-transform.c: Include tree-pass.h
10120 (inline_transform): Set TODO_update_ssa_only_virtuals.
10121 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10123 2011-06-11 Jan Hubicka <jh@suse.cz>
10125 PR middle-end/49378
10126 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10127 aliases and thunks.
10129 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
10131 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10132 Take number of iterations to peel into account for equally frequent
10133 misalignment values.
10135 2011-06-11 Jan Hubicka <jh@suse.cz>
10137 * lto-streamer-out.c (produce_symtab): Stream out the newly
10138 represented aliases.
10140 2011-06-11 Jan Hubicka <jh@suse.cz>
10142 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10144 (ipa_update_after_lto_read): Likewise.
10145 (ipa_write_node_info): Do not sream call_with_var_arguments.
10146 (ipa_read_node_info): Likewise.
10148 2011-06-11 Jan Hubicka <jh@suse.cz>
10150 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10152 2011-06-11 Jan Hubicka <jh@suse.cz>
10154 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10155 (lto_symtab_resolve_can_prevail_p): Likewise.
10156 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10157 * cgraph.c (same_body_aliases_done): New global var.
10158 (cgraph_same_body_alias_1): Rename to ...
10159 (cgraph_create_function_alias): ... this one; reorg to new
10161 (cgraph_same_body_alias): Use cgraph_create_function_alias;
10162 record references when asked to.
10163 (cgraph_add_thunk): Fix formating.
10164 (cgraph_get_node): Kill same body alias code.
10165 (cgraph_node_for_asm): Likewise.
10166 (cgraph_remove_same_body_alias): Remove.
10167 (cgraph_remove_node): Kill same body alias code.
10168 (cgraph_mark_address_taken_node): Mark also the aliased function
10169 as having address taken.
10170 (dump_cgraph_node): Dump same body aliases.
10171 (cgraph_for_node_thunks_and_aliases): Update for new alias
10173 (cgraph_for_node_and_aliases): Likewise.
10174 * cgraph.h (same_body): Kll pointer.
10175 (same_body_alias): Update comment.
10176 (same_body_aliases_done): Declare.
10177 (cgraph_remove_same_body_alias): Remove declaration.
10178 (cgraph_create_function_alias): Declare.
10179 (cgraph_process_same_body_aliases): Declare.
10180 (cgraph_function_with_gimple_body_p): Check for alias.
10181 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10182 (cgraph_alias_aliased_node): New function.
10183 (cgraph_function_node): Update for new aliases.
10184 (cgraph_function_or_thunk_node): Likewise.
10185 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10186 (inline_call): Remove dead aliases.
10187 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10188 name hack for same body aliases.
10189 (clone_of_p): Look through aliases.
10190 (verify_cgraph_node): Verify aliases.
10191 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10192 (cgraph_process_same_body_aliases): New function.
10193 (process_function_and_variable_attributes): Disable weakref warning on
10195 (cgraph_analyze_functions): Handle aliases.
10196 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10197 (assemble_thunks): Rename to ...
10198 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10199 (cgraph_expand_function): Remove alias output code.
10200 (cgraph_output_in_order): Skip aliases.
10201 (cgraph_preserve_function_body_p): Aliases don't need preserving.
10202 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10203 (ipa_record_reference): Do not assert on alias references.
10204 (ipa_ref_has_aliases_p): New function.
10205 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10206 (ipa_ref_has_aliases_p): Declare.
10207 * lto-cgraph.c (lto_output_node): Handle aliases.
10208 (input_node): Likewise.
10209 * lto-streamer-out.c (lto_output): Skip aliases.
10210 (produce_symtab): Kill same_body_alias code.
10211 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10212 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10213 * ipa-inline.c (update_caller_keys): Walk aliases.
10214 (inline_small_functions): Fix thinko in previous patch.
10215 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10216 (function_and_variable_visibility): Do not walk same body aliases.
10217 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10218 (ipa_pta_execute): Use it.
10220 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
10222 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10223 (*vec_dupv2df): Rename from vec_dupv2df.
10224 (vec_dupv2df): New expander.
10226 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
10228 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10230 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
10232 * config/i386/i386.md: Use default value in "isa" attribute.
10233 * config/i386/sse.md: Ditto.
10234 * config/i386/mmx.md: Ditto.
10236 2011-06-10 Wei Guozhi <carrot@google.com>
10239 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10240 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10241 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10243 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10245 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10246 (arm_legitimate_ldrd_p): New prototype.
10247 (arm_output_ldrd): New prototype.
10248 * config/arm/arm.c (arm_check_ldrd_operands): New function.
10249 (arm_legitimate_ldrd_p): New function.
10250 (arm_output_ldrd): New function.
10252 2011-06-10 David Li <davidxl@google.com>
10254 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10255 * passes.c (passr_eq): New function.
10256 (create_pass_tab): New function.
10257 (pass_traverse): New function.
10258 (dump_one_pass): New function.
10259 (dump_pass_list): New function.
10260 (dump_passes): New function.
10262 2011-06-10 Jan Hubicka <jh@suse.cz>
10264 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10265 setting the nothrow flag.
10266 * ipa-reference.c (propagate): Skip aliases.
10267 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10268 (propagate_nothrow): Skip aliases; do not update cgraph.
10269 (local_pure_const): Do not update cgraph.
10270 * tree-profile.c (tree_profiling): Do fixup_cfg.
10272 2011-06-10 Jan Hubicka <jh@suse.cz>
10274 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10275 (cgraph_local_node_p): ... here; handle aliases.
10276 (has_addr_references_p): Break out from ...;
10277 (cgraph_remove_unreachable_nodes) ... here.
10279 2011-06-10 Jan Hubicka <jh@suse.cz>
10281 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10282 * common.opt (flag_inline_functions_called_once): Do not
10285 2011-06-10 Jan Hubicka <jh@suse.cz>
10287 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10288 (ipcp_initialize_node_lattices): Do not deal with aliases;
10289 Do not try to propagate through thunks.
10290 (ipcp_change_tops_to_bottom): Do not deal with aliases.
10292 2011-06-10 Jan Hubicka <jh@suse.cz>
10294 * ipa-prop.c (ipa_write_node_info): Stream jump functions
10295 for indirect calls.
10296 (ipa_read_node_info): Likewise.
10298 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10301 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10302 (build_and_insert_call): Likewise.
10303 (build_and_insert_ref): New.
10304 (gimple_expand_builtin_pow): Minor cleanup.
10305 (gimple_expand_builtin_cabs): New.
10306 (execute_cse_sincos): Add case for BUILT_IN_CABS.
10308 2011-06-10 Jan Hubicka <jh@suse.cz>
10310 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10311 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10312 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10313 (ipcp_propagate_stage): Skip aliases when propagating.
10314 (ipcp_need_redirect_p): Skip aliases.
10315 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10316 collect_callers_of_node.
10317 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10319 (ipa_compute_jump_functions): Look through aliases.
10321 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10323 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10325 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10327 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10329 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10331 2011-06-10 Jan Hubicka <jh@suse.cz>
10333 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10334 Update call of gimple_get_virt_method_for_binfo.
10335 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10336 refuse_thunks parameter.
10337 (gimple_fold_call): Update.
10338 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10340 2011-06-10 Jan Hubicka <jh@suse.cz>
10342 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10343 (not_all_callers_have_enough_arguments_p): ... this one; turn into
10344 worker for cgraph_for_node_and_aliases.
10345 (convert_callers_for_node): Break out from ...
10346 (convert_callers): ... here.
10347 (modify_function): Use collect_callers_of_node.
10348 (ipa_early_sra): Use cgraph_for_node_and_aliases.
10350 2011-06-10 Richard Guenther <rguenther@suse.de>
10352 PR tree-optimization/49361
10353 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10354 when not already in gimple form.
10356 2011-06-10 Richard Guenther <rguenther@suse.de>
10359 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10360 FOR_EACH_PHI_OR_STMT_USE.
10362 2011-06-10 Jan Hubicka <jh@suse.cz>
10364 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10365 (clone_inlined_nodes): ... here.
10366 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10367 to real destination prior inlining.
10368 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10369 can_early_inline_edge_p, want_early_inline_function_p,
10370 want_early_inline_function_p, want_inline_small_function_p,
10371 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10372 edge_badness, update_all_callee_keys, lookup_recursive_calls,
10373 add_new_edges_to_heap, inline_small_functions, flatten_function,
10374 inline_always_inline_functions, early_inline_small_functions): Use
10375 cgraph_function_or_thunk_node.
10376 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10377 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10378 (do_estimate_edge_growth_1): Break out from ...
10379 (do_estimate_growth) ... here; walk aliases.
10380 (inline_generate_summary): Skip aliases.
10382 2011-06-10 Richard Guenther <rguenther@suse.de>
10384 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10385 forward when combining, visit inserted stmts when a stmt was changed.
10387 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
10389 * tree.h (error_operand_p): Add.
10390 * dbxout.c (dbxout_type_fields): Use the latter.
10391 * c-decl.c (add_stmt): Likewise.
10392 * gimplify.c (omp_add_variable, omp_notice_variable,
10393 gimplify_scan_omp_clauses): Likewise.
10395 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
10397 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10398 when a value is actually passed in regs.
10400 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
10401 Laurent Rougé <laurent.rouge@menta.fr>
10403 * doc/invoke.texi (SPARC options): Add -mflat.
10404 * config/sparc/sparc.opt: Likewise.
10405 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10406 (sparc_flat_expand_prologue): Declare.
10407 (sparc_flat_expand_epilogue): Likewise.
10408 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10409 (CPP_ENDIAN_SPEC): Replace with...
10410 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
10411 (CPP_SPEC): Adjust to above change.
10412 (EXTRA_SPECS): Likewise.
10413 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10414 (INCOMING_REGNO): Likewise.
10415 (OUTGOING_REGNO): Likewise.
10416 (LOCAL_REGNO): Likewise.
10417 (SETUP_FRAME_ADDRESSES): Likewise.
10418 (FIXED_REGISTERS): Set 0 for %fp.
10419 (CALL_USED_REGISTERS): Likewise.
10420 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10421 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10422 (RETURN_ADDR_REGNUM): Define.
10423 (RETURN_ADDR_RTX): Use it.
10424 (INCOMING_RETURN_ADDR_REGNUM): Define.
10425 (INCOMING_RETURN_ADDR_RTX): Use it.
10426 (DWARF_FRAME_RETURN_COLUMN): Likewise.
10427 (EH_RETURN_REGNUM): Define.
10428 (EH_RETURN_STACKADJ_RTX): Use it.
10429 (EH_RETURN_HANDLER_RTX): Delete.
10430 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10431 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10433 (struct machine_function): Add frame_size, apparent_frame_size,
10434 frame_base_reg, frame_base_offset, n_global_fp_regs and
10435 save_local_in_regs_p fields.
10436 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10437 sparc_frame_base_offset, sparc_n_global_fp_regs,
10438 sparc_save_local_in_regs_p): New macros.
10439 (sparc_option_override): Error out if -fcall-saved-REG is specified
10441 (eligible_for_restore_insn): Fix formatting.
10442 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
10443 (eligible_for_sibcall_delay): Likewise.
10444 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10445 (sparc_legitimate_address_p): Adjust to above change.
10446 (save_global_or_fp_reg_p): New predicate.
10447 (return_addr_reg_needed_p): Likewise.
10448 (save_local_or_in_reg_p): Likewise.
10449 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
10450 (SORR_SAVE, SORR_RESTORE): Delete.
10451 (sorr_pred_t): New typedef.
10452 (sorr_act_t): New enum.
10453 (save_or_restore_regs): Rename to...
10454 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
10455 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10456 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
10457 mechanism. Add CFI information for double-word saves in 32-bit mode.
10458 (emit_adjust_base_to_offset): New function extracted from...
10459 (emit_save_or_restore_regs): ...this. Rename the rest to...
10460 (emit_save_or_restore_regs_global_fp_regs): ...this.
10461 (emit_save_or_restore_regs_local_in_regs): New function.
10462 (gen_create_flat_frame_[123]): New functions.
10463 (sparc_expand_prologue): Use SIZE local variable. Adjust.
10464 (sparc_flat_expand_prologue): New function.
10465 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10466 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
10467 (sparc_flat_expand_epilogue): New function.
10468 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10469 (output_return): Likewise.
10470 (output_sibcall): Likewise.
10471 (sparc_output_mi_thunk): Likewise.
10472 (sparc_frame_pointer_required): Likewise.
10473 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10474 function optimization.
10475 * config/sparc/sparc.md (flat): New attribute.
10476 (prologue): Add TARGET_FLAT handling.
10477 (save_register_window): Disable if TARGET_FLAT.
10478 (create_flat_frame_[123]): New patterns.
10479 (epilogue): Add TARGET_FLAT handling.
10480 (sibcall_epilogue): Likewise.
10481 (eh_return): New expander.
10482 (eh_return_internal): New insn and splitter.
10483 (return_internal): Add TARGET_FLAT handling.
10484 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10485 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10486 (nonlocal_goto): Add TARGET_FLAT handling.
10487 * config/sparc/t-elf: Add -mflat multilib.
10488 * config/sparc/t-leon: Likewise.
10490 2011-06-10 Jan Hubicka <jh@suse.cz>
10492 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10493 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10494 (self_recursive_p): Use cgraph_function_node.
10495 (propagate_pure_const): Likewise.
10496 (propagate_nothrow): Likewise.
10497 * ipa-reference.c (ipa_reference_get_not_read_global): Use
10498 cgraph_function_node.
10499 (propagate_bits): Likewise.
10500 (propagate): Likewise.
10502 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10503 Richard Earnshaw <rearnsha@arm.com>
10505 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10506 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10507 (*thumb2_movdi_vfp): Delete.
10508 (*arm_movdi_vfp_cortexa8): Delete.
10509 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10510 (*movdi_vfp_cortexa8): Likewise.
10512 2011-06-10 Richard Guenther <rguenther@suse.de>
10514 * stor-layout.c (initialize_sizetypes): Give names to all
10517 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
10519 PR tree-optimization/49318
10520 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10521 irrelevant pattern statements.
10523 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10525 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10528 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10529 to last assignment.
10531 2011-06-09 Jan Hubicka <jh@suse.cz>
10533 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10534 do not recompute reachable flag.
10535 (cgraph_finalize_function, cgraph_analyze_functions): Set
10536 redefined_extern_inline here.
10538 2011-06-09 Jan Hubicka <jh@suse.cz>
10540 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10541 (cgraph_only_called_directly_p): ... this one; bring offline.
10542 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10543 varpool_used_from_object_file_p): Drop names from the declaratoin.
10544 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10545 collect_callers_of_node): New.
10546 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10547 (cgraph_edge_recursive_p): Use cgraph_function_node.
10548 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10549 (cgraph_node_cannot_be_local_p_1): Break out from ...
10550 (cgraph_node_can_be_local_p): ... here; walk aliases.
10551 (cgraph_for_node_thunks_and_aliases): New function.
10552 (cgraph_for_node_and_aliases): New function.
10553 (cgraph_make_node_local_1): Break out from ...
10554 (cgraph_make_node_local) ... here; use
10555 cgraph_for_node_thunks_and_aliases.
10556 (cgraph_set_nothrow_flag_1): Break out from ...
10557 (cgraph_set_nothrow_flag) ... here;
10558 use cgraph_for_node_thunks_and_aliases.
10559 (cgraph_set_const_flag_1): Break out from ...
10560 (cgraph_set_const_flag) ... here;
10561 use cgraph_for_node_thunks_and_aliases.
10562 (cgraph_set_pure_flag_1): Break out from ...
10563 (cgraph_set_pure_flag) ... here;
10564 use cgraph_for_node_thunks_and_aliases.
10565 (cgraph_propagate_frequency_1): Break out from ...
10566 (cgraph_propagate_frequency) ... here; use
10567 cgraph_for_node_thunks_and_aliases.
10568 (cgraph_used_from_object_file_p): Do not care about aliases.
10569 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10571 (collect_callers_of_node_1, collect_callers_of_node): New functions.
10573 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10575 PR rtl-optimization/49154
10576 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10577 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10578 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10579 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10580 * config/cris/cris.h (cris_register_move_cost): Remove
10581 !TARGET_V32 code. Tweak comments.
10583 2011-06-09 Jan Hubicka <jh@suse.cz>
10585 * cgraphbuild.c (record_eh_tables): Mark personality function as having
10588 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10590 PR rtl-optimization/49154
10591 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10592 is a matching slot in the hashtable, assign it to classes_ptr.
10594 PR rtl-optimization/49154
10595 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10597 * doc/tm.texi: Regenerate.
10599 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
10602 * config/sh/sh.md (UNSPEC_CHKADD): New.
10603 (chk_guard_add): New define_insn_and_split.
10604 (symGOT_load): Use chk_guard_add instead of blockage.
10606 2011-06-09 Kai Tietz <ktietz@redhat.com>
10608 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10610 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
10612 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10614 2011-06-09 Wei Guozhi <carrot@google.com>
10617 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10618 (peephole2 for conditional move): Generate 16 bit instructions.
10620 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
10622 * config/i386/i386.md (*movdi_internal_rex64): Merge
10623 alternatives 6 and 8.
10625 2011-06-09 David Li <davidxl@google.com>
10627 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10628 * passes.c (passr_eq): New function.
10629 (create_pass_tab): New function.
10630 (pass_traverse): New function.
10631 (dump_one_pass): New function.
10632 (dump_pass_list): New function.
10633 (dump_passes): New function.
10635 2011-06-09 David Li <davidxl@google.com>
10637 * tree-complex.c (tree_lower_complex): Gate cleanup.
10638 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10639 (execute_optimize_stdarg): Ditto.
10640 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10641 (execute_cleanup_eh_1): Ditto.
10642 (execute_cleanup_eh): Ditto.
10643 * gcse.c (gate_rtl_pre): Ditto.
10644 (execute_rtl_pre): Ditto.
10645 * except.c (finish_eh_generation): Ditto.
10646 (convert_to_eh_region_ranges): Ditto.
10647 * cprop.c (one_cprop_pass): Ditto.
10649 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
10652 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10653 in all basic blocks.
10655 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10657 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10658 (HAVE_ENABLE_EXECUTE_STACK): Define.
10659 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10660 (HAVE_ENABLE_EXECUTE_STACK): Define.
10661 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10662 (HAVE_ENABLE_EXECUTE_STACK): Define.
10663 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10664 (ENABLE_EXECUTE_STACK): Remove.
10665 (HAVE_ENABLE_EXECUTE_STACK): Define.
10666 [IN_LIBGCC2]: Don't include <windows.h>.
10667 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10668 (HAVE_ENABLE_EXECUTE_STACK): Define.
10669 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10670 (HAVE_ENABLE_EXECUTE_STACK): Define.
10671 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10672 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10673 (HAVE_ENABLE_EXECUTE_STACK): Define.
10674 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10675 (HAVE_ENABLE_EXECUTE_STACK): Define.
10676 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10677 (HAVE_ENABLE_EXECUTE_STACK): Define.
10678 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10679 (HAVE_ENABLE_EXECUTE_STACK): Define.
10680 * config/alpha/alpha.c (alpha_trampoline_init): Test
10681 HAVE_ENABLE_EXECUTE_STACK.
10682 * config/i386/i386.c (ix86_trampoline_init): Likewise.
10683 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10684 (sparc64_initialize_trampoline): Likewise.
10685 * libgcc2.c [L_enable_execute_stack]: Remove.
10686 * system.h (ENABLE_EXECUTE_STACK): Poison.
10687 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10688 * doc/tm.texi: Regenerate.
10689 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10691 2011-06-09 Jakub Jelinek <jakub@redhat.com>
10693 PR middle-end/49308
10694 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10695 variable. After resetting and rescanning insn continue with previous
10698 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10700 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10701 (gcc_cv_ld_hidden): Likewise.
10702 * configure: Regenerate.
10703 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10704 (ix86_stack_protect_fail): Mark unused.
10705 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10706 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10707 [TARGET_MACHO]: Don't define.
10708 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10709 (TARGET_STACK_PROTECT_FAIL): Likewise.
10710 (rs6000_stack_protect_fail): Mark unused.
10711 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10712 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
10714 2011-06-08 Andi Kleen <ak@linux.intel.com>
10716 * varasm.c (get_section): Print location of other conflict
10717 for section conflicts.
10719 2011-06-08 Andi Kleen <ak@linux.intel.com>
10721 * config/i386/driver-i386.c (host_detect_local_cpu):
10722 Add model 0x2d Intel CPU.
10724 2011-06-08 Andi Kleen <ak@linux.intel.com>
10726 * reginfo.c (global_regs_decl): Add.
10727 (globalize_reg): Add decl parameter. Compute location. Pass location
10728 to warnings and add inform. Store decl in global_regs_decl.
10729 * rtl.h (globalize_reg): Update prototype.
10730 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10732 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
10734 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10736 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
10739 * config/sh/predicates.md (general_movsrc_operand): Check
10740 mode for memory with indexed address for QI and HImode.
10741 (general_movdst_operand): Likewise.
10743 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
10745 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10747 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
10749 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10750 (num_ssa_operands): Likewise.
10751 (op_iter_init_phiuse): Forward-declare.
10752 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10754 2011-06-08 Nick Clifton <nickc@redhat.com>
10756 * doc/invoke.texi (ARM Options): Update description of
10759 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
10761 * config/i386/driver-i386.c (host_detect_local_cpu): Support
10762 unknown Intel family 0x6 CPUs.
10764 2011-06-08 Martin Jambor <mjambor@suse.cz>
10766 * tree-sra.c (mark_rw_status): Removed.
10767 (analyze_access_subtree): New parameter parent instead of
10768 mark_read and mark_write, propagate from that.
10770 2011-06-08 Julian Brown <julian@codesourcery.com>
10772 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10773 for double-precision helper functions in hard-float mode if only
10774 single-precision arithmetic is supported in hardware.
10776 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
10778 PR rtl-optimization/49303
10779 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
10780 code_motion_path_driver returned 0 or 1.
10781 (sel_region_finish): Clear h_d_i_d.
10783 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
10785 * config/sh/sh.c (prepare_move_operands): Set pic register
10786 appropriately for global and local dynamic tls models even
10787 if flag_pic is unset.
10789 2011-06-07 Jason Merrill <jason@redhat.com>
10791 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10793 2011-06-07 Xinliang David Li <davidxl@google.com>
10794 * passes.c (enable_disable_pass): Handle assembler name.
10795 (is_pass_explicitly_enabled_or_disabled): Ditto.
10797 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10799 PR tree-optimization/48497
10800 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10802 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10804 PR tree-optimization/46728
10805 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10806 to use gimple_val_nonnegative_real_p.
10807 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10808 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10810 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
10812 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10814 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
10816 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10819 2011-06-07 Richard Guenther <rguenther@suse.de>
10821 * stor-layout.c (initialize_sizetypes): Initialize all
10822 sizetypes based on target definitions.
10823 (set_sizetype): Remove.
10824 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10825 * tree.h (set_sizetype): Remove.
10827 2011-06-07 Nick Clifton <nickc@redhat.com>
10829 * config.gcc: Unify V850 architecture options and add support for
10830 newer V850 architectures.
10831 * config/v850/t-v850e: Delete.
10833 2011-06-07 Richard Guenther <rguenther@suse.de>
10835 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10836 Call set_sizetype from here.
10838 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
10840 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10841 (*maddhisi4tb, *maddhisi4tt): New define_insns.
10843 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
10844 Andrew Stubbs <ams@codesourcery.com>
10846 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10848 * doc/md.texi (Canonicalization of Instructions): Document widening
10849 multiply canonicalization.
10851 2011-06-07 Jakub Jelinek <jakub@redhat.com>
10853 PR gcov-profile/49299
10854 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10856 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
10858 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10860 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10861 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10862 vect_recog_pow_pattern): Likewise.
10863 (vect_pattern_recog_1): Remove declaration.
10864 (widened_name_p): Remove declaration. Add new argument to specify
10865 whether to check that both types are either signed or unsigned.
10866 (vect_recog_widen_mult_pattern): Update documentation. Handle
10867 unsigned patterns and multiplication by constants.
10868 (vect_pattern_recog_1): Update vect_recog_func references. Use
10869 statement information from the statement returned from pattern
10870 detection functions.
10871 (vect_pattern_recog): Update vect_recog_func reference.
10872 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10873 multiplication by a constant use the type of the other operand.
10875 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
10877 PR rtl-optimization/49145
10878 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10880 2011-06-06 Jakub Jelinek <jakub@redhat.com>
10883 * dwarf2out.c (native_encode_initializer): Decrement count in each
10887 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10888 non-MODE_INT modes.
10891 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10892 if stmt folded into nothing.
10893 * tree-inline.c (fold_marked_statements): If a builtin at the end of
10894 a bb folded into nothing, just update cgraph edges and move to next bb.
10895 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10896 to be NULL. Don't compute count and frequency if new_call is NULL.
10898 2011-06-04 Diego Novillo <dnovillo@google.com>
10900 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10901 (cgraph.o): Likewise.
10902 (cgraphunit.o): Likewise.
10903 * cgraphunit.c: Include lto-streamer.h
10904 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10906 * lto-streamer-in.c (unpack_value_fields): Call
10907 streamer_hooks.unpack_value_fields if set.
10908 (lto_materialize_tree): For unhandled nodes, first try to
10909 call lto_streamer_hooks.alloc_tree, if it exists.
10910 (lto_input_ts_decl_common_tree_pointers): Move reading of
10911 DECL_INITIAL to lto_streamer_read_tree.
10912 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10913 (lto_streamer_read_tree): New.
10914 (lto_reader_init): Rename from lto_init_reader.
10915 Move initialization code to lto/lto.c.
10916 * lto-streamer-out.c (pack_value_fields): Call
10917 streamer_hooks.pack_value_fields if set.
10918 (lto_output_tree_ref): For tree nodes that are not normally indexable,
10919 call streamer_hooks.indexable_with_decls_p before giving up.
10920 (lto_output_ts_decl_common_tree_pointers): Move handling
10921 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10922 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10923 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
10924 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10925 (lto_streamer_write_tree): New.
10926 (lto_output): Call lto_streamer_init directly.
10927 (lto_writer_init): Remove.
10928 * lto-streamer.c (streamer_hooks): New.
10929 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10930 instead of lto_preload_common_nodes.
10931 (lto_is_streamable): Move from lto-streamer.h
10932 (lto_streamer_hooks_init): New.
10933 (streamer_hooks): New.
10934 (streamer_hooks_init): New.
10935 * lto-streamer.h (struct output_block): Forward declare.
10936 (struct lto_input_block): Likewise.
10937 (struct data_in): Likewise.
10938 (struct bitpack_d): Likewise.
10939 (struct streamer_hooks): Declare.
10940 (streamer_hooks): Declare.
10941 (lto_streamer_hooks_init): Declare.
10942 (lto_streamer_write_tree): Declare.
10943 (lto_streamer_read_tree): Declare.
10944 (streamer_hooks_init): Declare.
10945 (lto_is_streamable): Move to lto-streamer.c
10947 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10949 * longlong.h (smul_ppmm): The resulting register pair contains the
10950 higher order word first.
10952 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10954 PR tree-optimization/46728
10955 * builtins.c (powi_table): Remove.
10956 (powi_lookup_cost): Remove.
10957 (powi_cost): Remove.
10958 (expand_powi_1): Remove.
10959 (expand_powi): Remove.
10960 (expand_builtin_pow_root): Remove.
10961 (expand_builtin_pow): Remove.
10962 (expand_builtin_powi): Eliminate handling of constant exponent.
10963 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10965 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10967 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10969 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10971 * dce.c (reset_unmarked_insns_debug_uses): New.
10972 (delete_unmarked_insns): Skip debug insns.
10973 (prescan_insns_for_dce): Likewise.
10974 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10975 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10976 active reg can be found.
10977 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
10978 (convert_regs_1): Use it.
10980 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10982 * tree-pretty-print.c (dump_function_header): Add flags.
10983 Don't dump decl_uid with nouid.
10984 * tree-pretty-print.h (dump_function_header): Adjust.
10985 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10986 * passes.c (pass_init_dump_file): Pass dump_flags on.
10987 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10989 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10992 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10994 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
10996 PR tree-optimization/49243
10997 * calls.c (setjmp_call_p): Also check if fndecl has the
10998 returns_twice attribute.
11000 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11002 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11005 2011-06-06 Richard Henderson <rth@redhat.com>
11006 Georg-Johann Lay <avr@gjlay.de>
11009 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11011 * config/avr/avr.md ("insv"): New insn expander.
11012 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11013 "*insv.not.io", "*insv.reg"): New insns.
11015 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
11018 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11019 to nonimmediate_operand from memory_operand for the operand that is to
11020 be forced to memory by the expander. Lose the constraints.
11022 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
11024 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11025 EH return when delayed branches are disabled.
11027 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
11029 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11030 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
11032 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11033 Simplify MODE_V1DF and MODE_V2SF handling.
11034 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11035 Simplify MODE_SF handling.
11037 2011-06-04 Jan Hubicka <jh@suse.cz>
11039 PR tree-optimization/48893
11040 PR tree-optimization/49091
11041 PR tree-optimization/49179
11042 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11045 2011-06-04 Jan Hubicka <jh@suse.cz>
11048 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11051 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
11053 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11055 2011-06-04 Jakub Jelinek <jakub@redhat.com>
11058 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11059 to be strictly smaller than 1 << shiftcount.
11061 2011-06-04 Jan Hubicka <jh@suse.cz>
11063 PR tree-optimize/48929
11064 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11065 of empty predicate.
11067 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
11070 * calls.c (emit_call_1): Prefer the __builtin declaration of
11073 2011-06-03 Diego Novillo <dnovillo@google.com>
11075 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11076 (lto_input_tree_pointers): Likewise.
11077 * lto-streamer-out.c (pack_value_fields): Likewise.
11078 (lto_output_tree_pointers): Likewise.
11079 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11080 and OPTIMIZATION_NODE.
11082 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11084 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11085 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11086 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11087 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11088 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11089 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11090 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11091 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11092 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11093 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11094 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11095 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11096 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11097 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11098 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11099 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11100 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11101 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11102 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11103 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11104 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11105 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11106 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11107 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11108 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11109 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11110 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11111 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11112 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11113 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11114 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11115 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11116 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11117 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11118 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11119 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11120 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11121 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11122 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11123 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11124 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11125 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11126 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11127 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11128 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11129 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11130 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11131 * system.h (MD_UNWIND_SUPPORT): Poison.
11132 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11133 * doc/tm.texi: Regenerate.
11134 * unwind-dw2.c: Include md-unwind-support.h instead of
11136 * config/ia64/unwind-ia64.c: Likewise.
11137 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11139 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
11141 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11143 2011-06-03 Richard Henderson <rth@redhat.com>
11144 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11146 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11147 (sigill_hdlr): Correct insn, insn size.
11148 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11150 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11152 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11154 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11155 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11156 * config/mips/t-iris: Remove.
11157 * config/mips/t-irix6: New file.
11158 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11160 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11162 * Makefile.in (LIB2ADDEHDEP): Remove.
11163 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11164 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11165 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11166 * config/t-darwin (LIB2ADDEHDEP): Remove.
11167 * config/t-freebsd (LIB2ADDEHDEP): Remove.
11168 * config/t-linux (LIB2ADDEHDEP): Remove.
11170 2011-06-03 Diego Novillo <dnovillo@google.com>
11172 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11173 (lto_register_var_decl_in_symtab): Likewise.
11174 (lto_register_function_decl_in_symtab): Likewise.
11175 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11176 logic to uniquify_nodes.
11178 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11180 * config/alpha/t-osf5: Remove.
11181 * config/alpha/t-osf-pthread: Remove.
11182 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11183 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11185 2011-06-03 Julian Brown <julian@codesourcery.com>
11187 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11188 (strongarm1110): Use strongarm tuning.
11189 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11190 * config/arm/arm.c (arm_strongarm_tune): New.
11191 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11192 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11193 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11194 setting, using previous defaults or 1 for Cortex-A5.
11195 (arm_option_override): Set max_insns_skipped from current tuning.
11197 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
11199 * doc/install.texi (Options specification): Document --with-specs.
11201 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11203 * config/arm/neon.md (orndi3_neon): Actually split it.
11205 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
11207 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11208 * var-tracking.c (reverse_op): Limite recurse depth to 5.
11210 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
11213 * target.def (delay_sched2, delay_vartrack): New.
11214 * doc/tm.texi.in: Update.
11215 * doc/tm.texi: Rebuild.
11216 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11217 * var-tracking.c (gate_handle_var_tracking): Likewise.
11218 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11219 (bfin_flag_var_tracking): Drop.
11220 (output_file_start): Don't save and override flag_var_tracking.
11221 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11222 (bfin_reorg): Test original variables.
11223 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11224 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11225 (ia64_flag_var_tracking): Drop.
11226 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11227 (ia64_file_start): Don't save and override flag_var_tracking.
11228 (ia64_override_options_after_change): Ditto
11229 flag_schedule_insns_after_reload.
11230 (ia64_reorg): Test original variables.
11231 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11232 (picochip_flag_var_tracking): Drop.
11233 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11234 (picochip_option_override): Don't save and override
11235 flag_schedule_insns_after_reload.
11236 (picochip_asm_file_start): Ditto flag_var_tracking.
11237 (picochip_reorg): Test original variables.
11238 * config/spu/spu.c (spu_flag_var_tracking): Drop.
11239 (TARGET_DELAY_VARTRACK): Define.
11240 (spu_var_tracking): New.
11241 (spu_machine_dependent_reorg): Call it.
11242 (asm_file_start): Don't save and override flag_var_tracking.
11244 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
11247 * config/sh/predicates.md (general_movsrc_operand): Return 0
11248 for memory and memory subreg of which address is an invalid
11249 indexed address for QI and HImode.
11250 (general_movdst_operand): Likewise.
11252 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
11254 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11255 edges only, when there is a non-local label in the function.
11256 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11258 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
11260 * config/i386/constraints.md (Y3): New register constraint.
11261 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11262 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11263 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11264 *sse2_interleave_lowv2df.
11266 2011-06-02 Julian Brown <julian@codesourcery.com>
11268 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11269 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11270 (arm_cortex_a5_tune): New.
11272 2011-06-02 Julian Brown <julian@codesourcery.com>
11274 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11275 * config/arm/arm.c (arm_default_branch_cost): New.
11276 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11277 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11278 (arm_fa726_tune): Set branch_cost field using
11279 arm_default_branch_cost.
11280 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11281 current_tune structure.
11282 * dojump.c (tm_p.h): Include file.
11284 2011-06-02 Julian Brown <julian@codesourcery.com>
11286 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11288 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11289 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11290 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11292 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11293 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11294 (arm_fa726te_tune): Add prefer_constant_pool setting.
11295 (arm_v6t2_tune, arm_cortex_tune): New.
11296 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11297 prefer_constant_pool setting.
11299 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
11301 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11303 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11304 (*movdf_internal) <case 6,7,8>: Ditto.
11306 * config/i386/constraints.md (Y4): New register constraint.
11307 * config/i386/sse.md (vec_set<mode>_0): Merge with
11308 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11309 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11310 *vec_extractv2di_1_sse.
11311 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11312 and *vec_concatv2di_rex64_sse.
11314 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
11317 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11318 of cgraph_local_info for null before attempting to use it.
11320 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
11322 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11323 (current_function_dynamic_alloc_count): Delete.
11324 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11325 (expand_builtin_nonlocal_goto): Remove obsolete comment.
11326 (expand_builtin_update_setjmp_buf): Remove dead code.
11327 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11328 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11330 * function.c (instantiate_virtual_regs): Likewise.
11331 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11332 for a block with a single abnormal incoming edge.
11333 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11334 (SETJMP_VIA_SAVE_AREA): Delete.
11335 * config/sparc/sparc-protos.h (load_got_register): Declare.
11336 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11337 (load_got_register): Make global.
11338 (sparc_frame_pointer_required): Add 'static'.
11339 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
11340 (sparc_builtin_setjmp_frame_value): New function.
11341 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11342 (save_stack_nonlocal): New expander.
11343 (restore_stack_nonlocal): Likewise.
11344 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11345 (nonlocal_goto_internal): New insn.
11346 (goto_handler_and_restore): Delete.
11347 (builtin_setjmp_setup): Likewise.
11348 (do_builtin_setjmp_setup): Likewise.
11349 (setjmp): Likewise.
11350 (builtin_setjmp_receiver): New expander.
11352 2011-06-01 David Li <davidxl@google.com>
11354 PR middle-end/49261
11355 * tree-pretty-print.c (dump_function_header): Format cleanup.
11357 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
11360 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11361 needed when original operands are used for msw_skip comparison.
11363 2011-06-01 Jakub Jelinek <jakub@redhat.com>
11366 * var-tracking.c (add_uses, add_stores): Don't call
11367 cselib_subst_to_values on ENTRY_VALUE.
11369 2011-06-01 Diego Novillo <dnovillo@google.com>
11371 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11372 output_record_start with LTO_null instead of output_zero.
11373 (lto_output_ts_binfo_tree_pointers): Likewise.
11374 (lto_output_tree): Likewise.
11375 (output_eh_try_list): Likewise.
11376 (output_eh_region): Likewise.
11377 (output_eh_lp): Likewise.
11378 (output_eh_regions): Likewise.
11379 (output_bb): Likewise.
11380 (output_function): Likewise.
11381 (output_unreferenced_globals): Likewise.
11382 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11383 instead of NUM_TREE_CODES.
11384 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11385 (lto_output_int_in_range): Change << to >> when shifting VAL.
11387 2011-06-01 Diego Novillo <dnovillo@google.com>
11389 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11390 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11392 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11395 * optabs.h (valid_multiword_target_p): Declare.
11396 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11397 doing multi-word operations.
11398 * optabs.c (expand_binop): Likewise.
11399 (expand_doubleword_bswap): Likewise.
11400 (expand_absneg_bit): Likewise.
11401 (expand_unop): Likewise.
11402 (expand_copysign_bit): Likewise.
11403 (multiword_target_p): New function.
11405 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11407 PR rtl-optimization/48830
11408 PR rtl-optimization/48808
11409 PR rtl-optimization/48792
11410 * reload.c (push_reload): Check contains_reg_of_mode.
11411 * reload1.c (strip_paradoxical_subreg): New function.
11412 (gen_reload_chain_without_interm_reg_p): Use it to handle
11413 paradoxical subregs.
11414 (emit_output_reload_insns, gen_reload): Likewise.
11416 2011-06-01 David Li <davidxl@google.com>
11418 * predict.c : Change pass name
11421 * tree-profile.c: Ditto.
11424 2011-06-01 David Li <davidxl@google.com>
11426 * tree-pretty-print.c (dump_function_header): New function.
11427 * final.c (rest_of_clean_state): Use header dumper.
11428 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11429 * passes.c (pass_init_dump_file): Use header dumper.
11431 2011-06-01 Jakub Jelinek <jakub@redhat.com>
11433 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11434 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11435 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11437 (mem_loc_descriptor): Use them.
11439 * var-tracking.c (create_entry_value): New function.
11440 (vt_add_function_parameter): Use it.
11442 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11444 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11445 Include <signal.h>, <ucontext.h>.
11446 (sigill_caught): Define.
11447 (sigill_hdlr): New function.
11448 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11449 insns can be executed.
11450 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11451 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11453 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11455 * config/t-slibgcc-darwin: Move to ...
11456 * config/t-slibgcc-dummy: ... this. Clarify comments.
11457 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11458 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11459 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11460 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
11461 Remove i386/t-crtstuff from tmake_file.
11462 (i[34567]86-*-solaris2*): Remove t-svr4,
11463 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11465 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11466 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11467 sparc/t-crtfm from tmake_file.
11468 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11469 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11470 Remove extra_parts.
11471 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11472 * config/i386/t-nwld (SHLIB_LINK): Remove.
11473 * config/i386/t-rtems-i386: Rename to ...
11474 * config/i386/t-rtems: ... this.
11475 ($(T)crti.o, $(T)crtn.o): Remove.
11476 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11477 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11478 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11479 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11480 EXTRA_MULTILIB_PARTS): Remove.
11481 * config/sparc/t-sol2-64: Likewise.
11482 * config/sparc/t-sol2: Remove.
11483 * config/sparc/t-crtin: Remove.
11484 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11485 * config/i386/gmon-sol2.c: Remove.
11486 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11487 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11488 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11489 * config/i386/sol2-gc1.asm: Remove.
11490 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11491 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11492 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11493 * config/t-slibgcc-sld: Remove.
11495 2011-06-01 Jakub Jelinek <jakub@redhat.com>
11497 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11498 base_type_for_mode with op_mode instead of mode.
11500 2011-06-01 Paul Brook <paul@cpodesourcery.com>
11502 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
11504 * config/arm/arm-tune.md: Regenerate.
11505 * config/arm/arm-tables.opt: Regenerate.
11506 * config/arm/arm.c (FL_DIV): Rename...
11507 (FL_THUMB_DIV): ... to this.
11508 (FL_ARM_DIV): Define.
11509 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11510 (arm_arch_hwdiv): Remove.
11511 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11512 (arm_issue_rate): Add cortexr5.
11513 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11514 __ARM_ARCH_EXT_IDIV__.
11515 (TARGET_IDIV): Define.
11516 (arm_arch_hwdiv): Remove.
11517 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11518 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11519 (divsi3, udivsi3): New patterns.
11520 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11521 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11523 2011-06-01 Martin Jambor <mjambor@suse.cz>
11525 * ipa-utils.c (ipa_dfs_info): New field scc_no.
11526 * ipa-utils.c (searchc): Set scc_no.
11528 2011-06-01 Martin Jambor <mjambor@suse.cz>
11530 * ipa-utils.c (searchc_env): New field allow_overwritable.
11531 (searchc): do not ignore edges to overwritable nodes if indicated
11532 by env->allow_overwritable.
11533 (ipa_reduced_postorder): Set env.allow_overwritable.
11535 2011-06-01 Richard Guenther <rguenther@suse.de>
11537 * tree.c (free_lang_data): Do not reset boolean_type_node nor
11539 * lto-streamer.c (lto_record_common_node): Take node pointer,
11540 do not register types.
11541 (lto_preload_common_nodes): Explicitly skip preloading nodes
11542 that differ between frontends.
11544 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
11546 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11549 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
11551 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11552 parameter value for dump. Dump cost on outermost call only.
11553 (rs6000_memory_move_cost): Dump cost on outermost call only.
11555 2011-05-31 Jakub Jelinek <jakub@redhat.com>
11557 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11558 DW_OP_GNU_convert ops.
11560 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11561 cselib_preserve_constants.
11562 (cselib_lookup_1): If cselib_preserve_constants,
11563 a new VALUE is being created for REG and there is a VALUE for the
11564 same register in wider mode, add another loc with lowpart SUBREG of
11566 (cselib_subst_to_values): Handle ENTRY_VALUE.
11567 * var-tracking.c (replace_expr_with_values): Return NULL for
11569 * dwarf2out.c (convert_descriptor_to_signed): New function.
11570 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11571 instead of two shifts.
11572 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11573 the right mode if needed.
11574 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11575 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11576 convert_descriptor_to_signed.
11577 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11578 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11581 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11583 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
11585 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11586 of X87MODEI12 and SWI48x instead of SSEMODEI24.
11587 (SWI248x): New mode iterator, rename from X87MODEI.
11588 (X87MODEI): Remove mode iterator.
11589 (X87MODEI12): Ditto.
11590 (SSEMODEI24): Ditto.
11592 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11594 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11595 * doc/invoke.texi: Document max-vartrack-expr-depth.
11596 * var-tracking.c (EXPR_DEPTH): New.
11597 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11599 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11601 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11602 * config/i386/sse.md: Add n to negated FMA pattern names.
11604 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11606 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11608 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11610 * gengtype-state.c (read_state_params_structs): Initialize previous.
11612 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
11614 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11615 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11617 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
11619 * config/i386/i386.md (*movtf_internal): Avoid allocating general
11620 registers. Penalize F*r->o alternative to prevent partial memory
11621 stalls. Slightly penalize *roF->*r alternative. Generate SSE
11622 CONST_DOUBLE immediates when optimizing function for size. Do not move
11623 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11624 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11625 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11626 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11628 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11630 (fp_register_operand splitters): Use fp_register_operand
11631 constraint. Do not use FP_REG_P in insn condition.
11632 (any_fp_register_operand splitters): Use any_fp_register_operand
11633 constraint. Do not use ANY_FP_REG_P in insn condition.
11635 2011-05-31 Jan Hubicka <jh@suse.cz>
11637 * cgraph.h (cgraph_inline_failed_t): Give enum a name
11638 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11639 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11640 (lto_output_edge): Use output_enum and var_len_unsigned.
11641 (lto_output_varpool_node): Likewise.
11642 (input_overwrite_node): Do not take resolution parameter;
11643 extract it from a bitpack.
11644 (input_node): Do not read resolution; use input_enum and
11646 (input_varpool_node): Likewise.
11647 (input_edge): Likewise.
11648 (input_cgraph_1): Likewise.
11650 2011-05-31 Richard Guenther <rguenther@suse.de>
11652 * gimple.c (gimple_register_canonical_type): Do not register
11653 any types via gimple_register_type.
11655 2011-05-31 Jan Hubicka <jh@suse.cz>
11657 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11660 2011-05-31 Jakub Jelinek <jakub@redhat.com>
11662 PR rtl-optimization/49235
11663 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11664 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11666 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
11668 PR tree-optimization/49093
11669 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11672 2011-05-31 Dodji Seketeli <dodji@redhat.com>
11675 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11676 for concrete functions containing the code of cloned functions.
11678 2011-05-31 Richard Guenther <rguenther@suse.de>
11680 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11682 (forward_propagate_into_comparison_1): ... this.
11683 (forward_propagate_comparison): Rename to ...
11684 (forward_propagate_into_comparison): ... this. Split out
11685 real forward propagation code to ...
11686 (forward_propagate_comparison): ... this.
11687 (forward_propagate_into_gimple_cond): Remove looping.
11688 (forward_propagate_into_cond): Likewise.
11689 (simplify_not_neg_expr): Return whether we have done something.
11690 (simplify_gimple_switch): Likewise.
11691 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11692 (ssa_forward_propagate_and_combine): ... this. Re-structure
11693 to do a forward forward-propagation walk on BBs and a backward
11694 stmt combining walk on BBs. Consistently re-scan changed statements.
11695 (pass_forwprop): Adjust.
11697 2011-05-30 Ian Lance Taylor <iant@google.com>
11699 * godump.c (go_format_type): Correct length of name added to
11700 obstack for anonymous field.
11702 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
11705 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11706 part of the second operand is 0.
11708 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
11710 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11711 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
11712 to memory for !TARGET_MEMORY_MISMATCH_STALL.
11713 (*movdf_internal_rex64): Do not penalize F->r alternative.
11714 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11715 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
11716 when optimizing function for size. Do not move CONST_DOUBLEs
11717 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11718 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
11719 SUBREGs. Do not check for MEM_P operands in the insn condition,
11720 check for ANY_FP_REGNO_P instead.
11721 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11722 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11723 function for speed.
11724 * config/i386/i386.c (ix86_option_override_internal): Do not
11725 set TARGET_INTEGER_DFMODE_MOVES here.
11727 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
11730 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11732 2011-05-30 Jakub Jelinek <jakub@redhat.com>
11734 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11735 DW_TAG_rvalue_reference_type even for
11736 -gdwarf-4 -fno-debug-types-section.
11738 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11740 PR tree-optimization/46728
11741 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11742 (build_and_insert_binop): New.
11743 (gimple_expand_builtin_pow): Reorder args for
11744 build_and_insert_call; use build_and_insert_binop; add more
11745 optimizations for fractional exponents.
11747 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
11752 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11754 * tree.h (struct tree_identifier): Inherit from tree_typed, not
11756 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11757 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11758 TS_BASE instead of TS_COMMON.
11759 * varasm.c (assemble_name): Remove assert.
11761 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
11763 * config.gcc: Keep obselete list sorted.
11765 2011-05-30 Jakub Jelinek <jakub@redhat.com>
11766 Eric Botcazou <ebotcazou@adacore.com>
11768 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11769 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11770 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11771 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11772 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11774 2011-05-30 Richard Guenther <rguenther@suse.de>
11776 * gimple.c (gimple_types_compatible_p_1): Compare record
11777 and union type members properly.
11779 2011-05-30 Richard Guenther <rguenther@suse.de>
11781 PR tree-optimization/49210
11782 * ipa-split.c (split_function): Care for the case where the call
11783 result is not trivially convertible to the result holding variable.
11785 2011-05-30 Richard Guenther <rguenther@suse.de>
11787 PR tree-optimization/49218
11788 * tree-vrp.c (adjust_range_with_scev): Properly check whether
11791 2011-05-30 Richard Guenther <rguenther@suse.de>
11793 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11794 New function split out from ...
11795 (forward_propagate_into_gimple_cond): ... here. Adjust.
11796 (forward_propagate_into_cond): Likewise.
11797 (forward_propagate_comparison): Also propagate into
11798 comparisons on assignment RHS. Change return value to
11799 behave similar to forward_propagate_into_cond.
11800 (tree_ssa_forward_propagate_single_use_vars): Handle
11801 strict-overflow warnings properly for forward_propagate_comparison.
11803 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11805 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11806 from plugin linker.
11807 * configure: Regenerate.
11809 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
11811 PR tree-optimization/49199
11812 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11813 non-reduction operands are either defined in the loop or by induction.
11815 2011-05-29 Xinliang David Li <davidxl@google.com>
11817 * opts-global.c (handle_common_deferred_options): Handle new options.
11818 * passes.c (register_one_dump_file): Call register_pass_name.
11819 (execute_one_pass): Check explicit enable/disable flag.
11820 (passr_hash): New function.
11822 (register_pass_name): Ditto.
11823 (get_pass_by_name): Ditto.
11824 (pass_hash): Ditto.
11826 (enable_pass): Ditto.
11827 (disable_pass): Ditto.
11828 (is_pass_explicitly_enabled_or_disabled): Ditto.
11830 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
11832 * config/i386/i386.md (*movoi_internal_avx): Use
11833 standard_sse_constant_opcode for alternative 0.
11834 (*movti_internal_sse): Ditto.
11835 (*movti_internal_rex64): Use standard_sse_constant_opcode for
11837 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11838 sselog1 type moves.
11839 (*movsi_internal): Ditto.
11840 (*movdi_internal): Ditto. Add ssecvt type moves.
11842 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
11845 * rtlanal.c (simplify_subreg_regno): Adjust comment.
11847 2011-05-29 Jakub Jelinek <jakub@redhat.com>
11849 PR rtl-optimization/49095
11850 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11851 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11853 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
11856 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11857 recurse_p argument. Only follow register copies if it is set,
11858 and prevent mips_find_pic_call_symbol from recursing.
11859 (mips_find_pic_call_symbol): Add a recurse_p argument.
11860 Pass it to mips_pic_call_symbol_from_set.
11861 (mips_annotate_pic_calls): Update accordingly.
11863 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
11865 * emit-rtl.c (try_split): Use a loop to search for
11866 NOTE_INSN_CALL_ARG_LOCATIONs.
11868 2011-05-29 Richard Guenther <rguenther@suse.de>
11870 PR tree-optimization/49217
11871 * ipa-pure-const.c (propagate_pure_const): Fix typos.
11873 2011-05-28 Jan Hubicka <jh@suse.cz>
11875 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11877 (string_slot_free): Remove
11878 (create_output_block): Initialize obstack.
11879 (destroy_output_block): Free obstack.
11880 (lto_string_index): Add PERSISTENT parameter; do not duplicate
11881 the string unless it needs to be added into the hash.
11882 (lto_output_string_with_length): Add persistent attribute;
11883 handle NULL strings.
11884 (lto_output_string): Add PERSISTENT parameter.
11885 (output_string_cst, output_identifier): Simplify.
11886 (lto_output_location_bitpack): Update.
11887 (lto_output_builtin_tree): Update.
11888 * lto-streamer.h (struct output_block): Add obstack.
11889 (lto_output_string, lto_output_string_with_length): Remove
11890 declarations; functions are static now.
11892 2011-05-28 Jan Hubicka <jh@suse.cz>
11894 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11895 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11896 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11897 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11898 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11899 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11900 unpack_ts_decl_with_vis_value_fields,
11901 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11902 lto_get_builtin_tree): Use enum and variable length i/o.
11903 * basic-block.h (profile_status_d): Add PROFILE_LAST.
11904 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11906 (bp_pack_enum, bp_unpack_enum): New macros.
11908 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11910 * genrecog.c: Remove redundant forward declarations.
11912 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11914 * config.gcc: Deprecate mips*-*-openbsd*.
11916 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11919 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11922 2011-05-27 Andrew Pinski <pinskia@gmail.com>
11924 PR middle-end/48981
11925 * gengtype.c (vec_prefix_type): New function.
11926 (note_def_vec): Use vec_prefix_type and change the length
11927 attribute to be based on the prefix.
11928 * vec.c: Include coretypes.h before vec.h.
11929 (struct vec_prefix): Remove.
11930 (vec_gc_p_reserve): Change the offsetof to sizeof.
11931 (vec_gc_p_reserve_exact): Likewise.
11932 (vec_heap_p_reserve): Likewise.
11933 (vec_heap_p_reserve_exact): Likewise.
11934 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11935 (vec_stack_p_reserve): Change the offsetof to sizeof.
11936 (vec_stack_p_reserve_exact): Likewise.
11937 * vec.h (struct vec_prefix): New struct definition.
11938 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11939 (VEC_T_GTY(T,B)): Likewise.
11940 (DEF_VEC_FUNC_P(T)): Use prefix field.
11941 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11942 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11944 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11946 PR tree-optimization/46728
11947 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11948 (powi_as_mults): Add gimple_set_location.
11949 (build_and_insert_call): New.
11950 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11951 0.5, 0.25, 0.75, 1./3., or 1./6.
11953 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
11955 * doc/contrib.texi: Update copyright years.
11956 (Contributors): Add Zdenek Sojka.
11958 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
11960 * c-decl.c (c_push_function_context): Copy the current statement
11962 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11963 (finish_struct): Call building_stmt_list_p instead of checking
11965 * c-parser.c (c_parser_postfix_expression): Likewise.
11966 * c-typeck.c (c_end_compound_stmt): Likewise.
11967 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11968 * tree-iterator.c (stmt_list_cache): Change to a VEC.
11969 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11970 (free_stmt_list): Likewise.
11971 * tree.h (struct tree_statement_list): Include typed_tree instead
11973 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11974 as TS_TYPED instead of TS_COMMON.
11976 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11977 Uros Bizjak <ubizjak@gmail.com>
11979 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11980 (HAVE_AS_IX86_TLSGDPTL): Define.
11981 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11982 (HAVE_AS_IX86_TLSLDMPLT): Define.
11983 * configure: Regenerate.
11984 * config.in: Regenerate.
11985 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11986 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11987 TARGET_SUN_TLS, use @tlsgdplt or @plt.
11988 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11989 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11990 @tlsldmplt or @plt.
11991 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11993 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
11995 * sched-int.h (struct _haifa_deps_insn_data): New members cond
11997 (INSN_COND, INSN_REVERSE_COND): New macros.
11998 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12000 (sched_get_condition_with_rev): Cache the results, and look them up
12002 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12003 are clobbered by the current insn.
12004 * target.def (exposed_pipline): New sched data hook.
12005 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12006 * doc/tm.texi: Regenerate.
12008 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12010 PR tree-optimization/49170
12011 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
12014 2011-05-27 Richard Guenther <rguenther@suse.de>
12016 PR middle-end/49189
12017 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12020 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12022 * haifa-sched.c (sched_scan_info): Remove.
12023 (schedule_block): Call sched_extend_luids rather than sched_init_luids
12025 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12027 (sched_scan): Remove.
12028 (sched_extend_luids): Renamed from luids_extend_insn and no longer
12029 static. All callers changed.
12030 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12031 static. All callers changed.
12032 (sched_init_luids): Remove all arguments except the first. All
12033 callers changed. Don't use sched_scan.
12034 (haifa_init_h_i_d): Likewise.
12035 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12036 manually rather than using sched_init_luids. Likewise with
12037 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12038 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12039 rather than sched_init_luids with NULL args.
12040 * sel-sched-ir.c (new_insns): Remove variable.
12041 (sched_scan): New static function, previously in haifa-sched.c. Remove
12042 all arguments but the first two; all callers changed.
12043 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12044 rather than sched_init_luids.
12045 (sel_init_bbs): Remove second argument. All callers changed.
12046 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12047 with NULL arguments.
12048 (create_insn_rtx_from_pattern): Likewise.
12049 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12050 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12051 (sched_init_insn_luid, sched_extend_luids): Declare.
12052 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12055 2011-05-27 Richard Guenther <rguenther@suse.de>
12057 PR middle-end/49177
12058 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12059 A CMP B ? (T) true : (T) false for non-integral types T again.
12061 2011-05-27 Jan Hubicka <jh@suse.cz>
12063 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12064 so 0 means NULL string.
12065 (lto_output_string_with_length): ... here.
12066 (lto_output_string, output_string_cst, output_identifier): Update
12067 handling of NULL strings.
12068 (lto_output_location_bitpack): New function.
12069 (lto_output_location): Use it.
12070 (lto_output_tree_ref): Use output_record_start.
12071 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12073 * lto-streamer-in.c (string_for_index): Break out from ...; offset
12075 (input_string_internal): ... here;
12076 (input_string_cst, input_identifier, lto_input_string): Update handling
12078 (lto_input_location_bitpack): New function
12079 (lto_input_location): Use it.
12080 (unpack_ts_type_common_value_fields): Pack align & alias in var len
12082 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12083 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12084 (bp_pack_value): Sanity check the value range.
12085 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12087 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12090 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
12092 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12093 call_arg_location instructions down the floor.
12095 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
12097 PR rtl-optimization/49154
12098 * ira.c (setup_pressure_classes): Process class without sublcasses
12099 as a candidate for pressure classes.
12101 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
12103 PR rtl-optimization/48575
12104 * genrecog.c (position_type): New enum.
12105 (position): New structure.
12106 (decision): Use position structure instead of a string.
12107 (root_pos, peep2_insn_pos_list): New variables.
12108 (next_position, compare_positions): New functions.
12109 (new_decision): Use position structures instead of strings.
12110 (maybe_both_true): Likewise.
12111 (change_state): Likewise.
12112 (write_tree): Likewise.
12113 (make_insn_sequence): Likewise.
12115 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12117 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12118 TS_BASE instead of TS_COMMON.
12119 (find_decls_types_r): Check for TS_TYPED structure before looking at
12121 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12123 (BLOCK_CHAIN): Use new chain field.
12125 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
12127 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12128 moves expensive on Power7 also.
12130 2011-05-26 Richard Guenther <rguenther@suse.de>
12132 * fold-const.c (fold_unary_loc): Remove bogus code.
12134 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12136 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12138 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12139 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12140 TS_BASE instead of TS_COMMON.
12141 * varasm.c (assemble_name): Remove assert.
12143 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12145 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12147 * libgcc-std.ver: Delete file.
12149 2011-05-26 Richard Guenther <rguenther@suse.de>
12151 PR tree-optimization/48702
12152 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12153 only when we know the base address is within bounds.
12154 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12155 assume the base address of TARGET_MEM_REFs is in bounds.
12157 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12160 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12161 declaration in TARGET_SOLARIS.
12163 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
12165 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12166 The instruction is then expanded explicitly.
12167 (supported_compare): Callable instruction.
12168 (compare): Likewise.
12170 2011-05-26 Jakub Jelinek <jakub@redhat.com>
12173 * gimplify.c (shortcut_cond_r): Don't special case
12174 COND_EXPRs if they have void type on one of their arms.
12176 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12178 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12179 to reduce duplication, and to achieve a slightly more logical order
12182 2011-05-26 Jakub Jelinek <jakub@redhat.com>
12184 PR tree-optimization/49161
12185 * tree-vrp.c (struct case_info): New type.
12186 (compare_case_labels): Sort case_info structs instead of
12187 trees, and not primarily by CASE_LABEL uids but by
12188 label_for_block indexes.
12189 (find_switch_asserts): Put case labels into struct case_info
12190 array instead of TREE_VEC, adjust sorting, compare label_for_block
12191 values instead of CASE_LABELs.
12193 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12195 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12196 ("orndi3_neon"): Likewise.
12197 ("bic<mode>3_neon"): Likewise.
12199 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
12201 PR tree-optimization/49038
12202 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12203 Ensure at least one epilogue iteration if required by data
12204 accesses with gaps.
12205 * tree-vectorizer.h (struct _loop_vec_info): Add new field
12206 to mark loops that require peeling for gaps.
12207 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12208 (vect_get_known_peeling_cost): Take peeling for gaps into
12210 (vect_transform_loop): Generate epilogue if required by data
12212 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12213 loop as requiring an epilogue if there are gaps in the end of
12216 2011-05-25 Ian Lance Taylor <iant@google.com>
12218 * godump.c (go_format_type): Output the first field with a usable
12221 2011-05-25 Ian Lance Taylor <iant@google.com>
12223 * godump.c (go_format_type): Check for invalid type names, pointer
12224 target types, and struct field types.
12226 2011-05-25 Jason Merrill <jason@redhat.com>
12228 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12230 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
12232 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12234 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12236 * config/i386/i386.md (*movqi_extv_1)): Put back
12237 "register_operand" check in "type" calculation.
12238 (*movqi_extzv_2): Likewise.
12240 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12242 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12244 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
12247 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12248 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12249 __divxc3, __divtc3): Wrap definitions in #ifndef.
12251 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12254 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12255 "register_operand" check and replace q_regs_operand with
12256 QIreg_operand in "type" calculation.
12257 (*movqi_extv_1): Likewise.
12258 (*movqi_extzv_2_rex64): Likewise.
12259 (*movqi_extzv_2): Likewise.
12261 * config/i386/predicates.md (QIreg_operand): New.
12263 2011-05-25 Richard Guenther <rguenther@suse.de>
12265 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12266 type-based offset disambiguation, streamline MEM_REF and
12267 TARGET_MEM_REF handling.
12269 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12271 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12272 (bdesc_special_args): Add pause intrinsic.
12274 * config/i386/i386.md (UNSPEC_PAUSE): New.
12276 (*pause): Likewise.
12277 * config/i386/ia32intrin.h (__pause): Likewise.
12279 * doc/extend.texi (X86 Built-in Functions): Add documentation for
12282 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12284 PR tree-optimization/46728
12285 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12286 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12288 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
12290 * tree.h (struct tree_exp): Inherit from struct tree_typed.
12291 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12292 instead of TS_COMMON.
12294 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
12296 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12297 LIBGCC2_GNU_PREFIX is defined.
12299 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12300 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12301 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12302 __clz_tab): Define using __N.
12303 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12304 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12305 * target.def (libfunc_gnu_prefix): New hook.
12306 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12307 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12308 * doc/tm.texi: Regenerate.
12309 * system.h (LIBGCC2_GNU_PREFIX): Poison.
12310 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12312 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12313 (init_optabs): Likewise for the bswap libfuncs.
12314 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12316 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12317 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12318 * libgcc-std.ver: Remove.
12319 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12320 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12322 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12323 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12324 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12325 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12326 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12327 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12328 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12329 * config/fixed-bit.h (FIXED_OP): Define differently depending on
12330 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12331 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12333 2011-05-25 Jan Hubicka <jh@suse.cz>
12335 * lto-streamer-out.c (output_record_start): Use lto_output_enum
12336 (lto_output_tree): Use output_record_start.
12337 * lto-streamer-in.c (input_record_start): Use lto_input_enum
12338 (lto_get_pickled_tree): Use input_record_start.
12339 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12340 (lto_value_range_error): New function.
12341 * lto-streamer.h (lto_value_range_error): Declare.
12342 (lto_output_int_in_range, lto_input_int_in_range): New functions.
12343 (lto_output_enum, lto_input_enum): New macros.
12345 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
12347 * common.opt (flag_stack_usage_info): New variable.
12348 (-Wstack-usage): New option.
12349 * doc/invoke.texi (Warning options): Document -Wstack-usage.
12350 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12351 <OPT_fstack_usage>: Likewise.
12352 * toplev.c (output_stack_usage): Handle -Wstack-usage.
12353 * calls.c (expand_call): Test flag_stack_usage_info variable instead
12354 of flag_stack_usage.
12355 (emit_library_call_value_1): Likewise.
12356 * explow.c (allocate_dynamic_stack_space): Likewise.
12357 * function.c (instantiate_virtual_regs ): Likewise.
12358 (prepare_function_start): Likewise.
12359 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12360 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12361 * config/arm/arm.c (arm_expand_prologue): Likewise.
12362 (thumb1_expand_prologue): Likewise.
12363 * config/avr/avr.c (expand_prologue): Likewise.
12364 * config/i386/i386.c (ix86_expand_prologue): Likewise.
12365 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12366 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12367 * config/mips/mips.c (mips_expand_prologue): Likewise.
12368 * config/pa/pa.c (hppa_expand_prologue): Likewise.
12369 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12370 * config/s390/s390.c (s390_emit_prologue): Likewise.
12371 * config/sh/sh.c (sh_expand_prologue): Likewise.
12372 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12373 * config/spu/spu.c (spu_expand_prologue): Likewise.
12375 2011-05-25 Richard Guenther <rguenther@suse.de>
12377 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12378 (gimple_canonical_types_compatible_p): Likewise.
12380 2011-05-25 Jan Hubicka <jh@suse.cz>
12382 PR middle-end/49062
12383 * ipa.c (function_and_variable_visibility): Only add to same
12384 comdat group list if DECL_ONE_ONLY.
12386 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
12388 PR rtl-optimization/49014
12389 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12391 2011-05-25 Jakub Jelinek <jakub@redhat.com>
12394 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12396 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
12398 PR rtl-optimization/48757
12399 * ira-build.c (loop_with_eh_edge_p): Rename to
12400 loop_with_complex_edge_p, check edges on complexity, make function
12402 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12405 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
12407 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12408 force flag_ira_share_save_slots to 0.
12410 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
12412 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12413 (vt_initialize): Set PROLOGUE_BB unconditionally.
12414 Add block comment about CFA_BASE_RTX machinery.
12415 Reset FP_CFA_OFFSET to -1 on all invalid paths.
12416 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12418 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
12421 * c-parser.c (c_parser_objc_class_instance_variables): More robust
12422 parsing of syntax error in ObjC instance variable lists. In
12423 particular, avoid an infinite loop if there is a stray ']'.
12424 Updated error message.
12426 2011-05-24 Ian Lance Taylor <iant@google.com>
12428 * godump.c (go_define): Don't accept a string immediately after
12431 2011-05-24 Ian Lance Taylor <iant@google.com>
12433 * godump.c (struct godump_container): Add invalid_hash field.
12434 (go_format_type): Return false if type is found in invalid_hash.
12435 (go_output_typedef): Add invalid type to invalid_hash.
12436 (go_finish): Create and delete invalid_hash.
12438 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12440 PR tree-optimization/46728
12441 * tree-ssa-math-opts.c (powi_table): New.
12442 (powi_lookup_cost): New.
12444 (powi_as_mults_1): New.
12445 (powi_as_mults): New.
12446 (gimple_expand_builtin_powi): New.
12447 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12448 (gate_cse_sincos): Remove sincos/cexp restriction.
12450 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12453 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12455 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12456 * mips-tdump.c: Likewise.
12458 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
12461 * config/i386/driver-i386.c (host_detect_local_cpu): Always
12462 add -mno-XXX. Handle FMA.
12464 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
12466 PR rtl-optimization/48633
12467 * ira-build.c (loop_with_eh_edge_p): New function.
12468 (mark_loops_for_removal): Use it.
12470 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
12472 PR rtl-optimization/48971
12473 * ira.c (setup_pressure_classes): Don't check register move cost
12474 for classes with one registers. Don't add pressure class if there
12475 is a pressure class with the same available hard registers.
12476 Check contains_reg_of_mode. Fix a typo in collecting
12477 temp_hard_regset. Ignore hard registers not belonging to a class.
12479 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
12482 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12484 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
12485 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12487 PR gcov-profile/48845
12488 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12490 2011-05-24 Richard Guenther <rguenther@suse.de>
12492 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12493 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12494 (gimple_types_compatible_p_1): Adjust.
12495 (iterative_hash_canonical_type): Do not bother about complete vs.
12497 (gimple_canonical_types_compatible_p): Likewise.
12499 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12501 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12503 2011-05-24 Richard Guenther <rguenther@suse.de>
12506 * gimple.c (gimple_register_canonical_type): Revert
12508 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12509 does not for a tree for the case where it matters. Cache
12510 pointer-type alias-sets.
12512 2011-05-24 Joseph Myers <joseph@codesourcery.com>
12514 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12515 (OBJS): Remove options.o, opts-common.o and prefix.o.
12516 (OBJS-libcommon-target): New.
12517 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12518 (BACKEND): Include libcommon-target.a.
12519 (MOSTLYCLEANFILES): Include libcommon-target.a.
12520 (libcommon-target.a): New.
12521 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12524 2011-05-23 Joseph Myers <joseph@codesourcery.com>
12526 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
12527 parts of output shared with the driver.
12528 * optc-gen.awk: Don't generate parts of output not shared with the
12530 * opth-gen.awk: Remove GCC_DRIVER conditionals.
12531 * doc/options.texi (SourcerInclude): Mention options-save.c.
12532 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12533 (OBJS): Add options-save.o.
12534 (options-save.c, options-save.o): New.
12535 (options.o): Update dependencies.
12536 (gcc-options.o): Remove.
12537 (mostlyclean): Remove options-save.c.
12539 2011-05-23 Jakub Jelinek <jakub@redhat.com>
12542 * dbxout.c: Include cgraph.h.
12543 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12544 and without value expr, return NULL if no varpool node exists for
12545 it or if it is not needed.
12546 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12549 * c-decl.c (start_decl): Convert expr to void_type_node.
12551 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
12553 PR rtl-optimization/48826
12554 * emit-rtl.c (try_split): When splitting a call that is followed
12555 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12557 2011-05-23 Jakub Jelinek <jakub@redhat.com>
12559 * cfgexpand.c (expand_debug_expr): For unused non-addressable
12560 parameters passed in memory prefer using DECL_INCOMING_RTL over
12561 the pseudos it will be copied into.
12563 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
12566 * config/i386/i386.c (ix86_option_override_internal): Save the
12567 initial options after checking vzeroupper.
12569 2011-05-23 David Li <davidxl@google.com>
12571 PR tree-optimization/48988
12572 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12573 Initialize has_valid_pred for each pred chain.
12575 2011-05-23 Richard Guenther <rguenther@suse.de>
12577 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12578 (iterative_hash_gimple_type): Always hash type names.
12580 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
12582 * c-typeck.c (build_function_call_vec): Tweak call to
12583 check_function_arguments.
12585 2011-05-23 Richard Guenther <rguenther@suse.de>
12587 PR tree-optimization/49115
12588 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12589 is not necessarily carried out, do not claim it kills the ref.
12590 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12592 2011-05-23 Richard Guenther <rguenther@suse.de>
12594 PR middle-end/15419
12595 * builtins.c (fold_builtin_memory_op): Be less restrictive about
12596 what pointer types we accept for folding.
12598 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12600 * gthr-gnat.c: Remove.
12601 * gthr-gnat.h: Remove.
12602 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12603 * config/t-freebsd (LIB2ADDEH): Likewise.
12604 * config/t-linux (LIB2ADDEH): Likewise.
12605 * config/t-sol2 (LIB2ADDEH): Likewise.
12606 * config/ia64/t-vms (LIB2ADDEH): Likewise.
12607 * configure.ac (target_thread_file): Remove gnat handling.
12608 * configure: Regenerate.
12609 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12611 2011-05-23 Tristan Gingold <gingold@adacore.com>
12612 Eric Botcazou <ebotcazou@adacore.com>
12614 * gcov.c (create_file_names): If no object directory is specified,
12615 keep the directory of the file.
12617 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12619 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12620 * configure: Regenerate.
12622 2011-05-23 Jakub Jelinek <jakub@redhat.com>
12624 PR middle-end/48973
12625 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12626 failed and the comparison has a single bit signed type, use
12627 constm1_rtx instead of const1_rtx for true value.
12628 (do_store_flag): If ops->type is single bit signed type, disable
12629 signel bit test optimization and pass -1 instead of 1 as last
12630 parameter to emit_store_flag_force.
12632 2011-05-23 Tom de Vries <tom@codesourcery.com>
12635 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12637 (infer_loop_bounds_from_undefined): Use new function.
12639 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
12641 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12642 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
12643 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12645 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12647 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
12649 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12650 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12653 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
12655 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12657 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
12659 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12660 UNSPEC_MOVE_PIC pattern.
12662 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
12664 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12665 (sparc-*-rtems*): Likewise.
12666 (sparc64-*-elf*): Likewise.
12667 (sparc64-*-rtems*): Likewise.
12668 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
12669 * config/sparc/t-crtin: New file.
12670 * config/sparc/t-sol2 (crti.o): Delete rule.
12671 (crtn.o): Likewise.
12672 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12673 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12674 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12675 (ENDFILE_SPEC): Add crtn.o.
12677 2011-05-22 Tom de Vries <tom@codesourcery.com>
12679 PR middle-end/48689
12680 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12681 CODE_CONTAINS_STRUCT (TS_COMMON).
12683 2011-05-22 Jakub Jelinek <jakub@redhat.com>
12685 PR middle-end/49029
12686 * expmed.c (extract_fixed_bit_field): Test whether target can be used
12687 only after deciding which mode to use.
12689 2011-05-22 Tom de Vries <tom@codesourcery.com>
12692 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12693 for call to get_shiftadd_cost.
12695 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
12698 * config/i386/cpuid.h (bit_MMXEXT): New define.
12700 2011-05-22 Nick Clifton <nickc@redhat.com>
12702 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12703 initialisation of non-existant args[2] element. Use args[] array
12704 not arg[] array to pass arguments to build_function_type_list.
12706 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
12708 PR tree-optimization/49087
12709 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12711 2011-05-21 Jason Merrill <jason@redhat.com>
12714 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12715 static storage duration.
12717 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
12719 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12722 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
12724 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12725 false if there are call-saved registers here...
12726 (sparc_can_use_return_insn_p): ...but here instead.
12727 (save_or_restore_regs): Fix thinko.
12728 (sparc_expand_prologue): Use current_function_is_leaf.
12729 (sparc_frame_pointer_required): Likewise.
12731 2011-05-21 Nick Clifton <nickc@redhat.com>
12734 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12736 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
12738 * gengtype.c (walk_type): Implemented "atomic" GTY option.
12739 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12741 2011-05-21 Joseph Myers <joseph@codesourcery.com>
12743 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
12744 * optc-gen.awk: Move common code to opt-read.awk.
12745 * opth-gen.awk: Likewise.
12746 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12748 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
12750 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12752 2011-05-20 Tom de Vries <tom@codesourcery.com>
12755 * tree-ssa-loop-ivopts.c: Include expmed.h.
12756 (get_shiftadd_cost): New function.
12757 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
12759 2011-05-20 Jakub Jelinek <jakub@redhat.com>
12762 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12763 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12765 2011-05-20 Joseph Myers <joseph@codesourcery.com>
12767 * Makefile.in: Update comment referring to $(OBJS-common).
12769 2011-05-20 Ian Lance Taylor <iant@google.com>
12771 * godump.c (go_output_typedef): Put enum constants in the macro
12772 hash table to avoid duplicate Go const definitions.
12774 2011-05-20 Joseph Myers <joseph@codesourcery.com>
12776 * Makefile.in (LIBDEPS): Add libcommon.a.
12778 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12779 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12780 pretty-print.o and version.o.
12781 (OBJS-libcommon): New.
12782 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12783 (BACKEND): Add libcommon.a.
12784 (MOSTLYCLEANFILES): Likewise.
12785 (libcommon.a): New.
12786 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12787 (cpp$(exeext)): Likewise.
12788 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12789 pretty-print.o and input.o.
12790 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12791 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12792 (errors.o): Remove.
12793 (mips-tfile): Don't explicitly use version.o.
12794 (mips-tdump): Likewise.
12795 (gcov.o): Depend on $(DIAGNOSTIC_H).
12796 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12797 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12798 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12799 * gcov-dump.c: Include intl.h and diagnostic.h.
12800 (main): Initialize diagnostics.
12801 * gcov.c: Include diagnostic.h.
12803 (main): Initialize diagnostics.
12804 * lto-wrapper.c: Include diagnostic.h.
12805 (main): Initialize diagnostics.
12807 2011-05-20 Michael Matz <matz@suse.de>
12809 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12811 2011-05-20 Michael Matz <matz@suse.de>
12812 Richard Guenther <rguenther@suse.de>
12814 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12815 use lto_streamer_cache_append directly instead of returning a VEC.
12816 (preload_common_node): Remove.
12817 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12819 (lto_streamer_cache_create): Call lto_preload_common_nodes.
12821 2011-05-20 Richard Guenther <rguenther@suse.de>
12823 PR tree-optimization/49079
12824 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12825 MEM_REFs correctly for the trailing array access detection.
12826 Special case constants the same way as decls for overall size
12829 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
12831 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12832 argument expansion.
12834 2011-05-20 Jakub Jelinek <jakub@redhat.com>
12836 PR tree-optimization/49073
12837 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12838 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12839 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12841 2011-05-20 Richard Guenther <rguenther@suse.de>
12843 PR middle-end/48849
12844 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12845 of pointer types the same way the middle-end does.
12847 2011-05-20 Richard Guenther <rguenther@suse.de>
12849 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12850 or pointer-to chains. Delay all fixup to uniquify_nodes.
12852 2011-05-19 Quentin Neill <quentin.neill@amd.com>
12854 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12855 (fma4_fmaddsub): Likewise
12857 2011-05-19 Jan Hubicka <jh@suse.cz>
12859 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12860 (GIMPLE_TYPE_PAIR_SIZE): New macro.
12861 (type_pair_cache): New static var.
12862 (lookup_type_pair): Use fixed sized custom hash; make inline.
12863 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12864 calls of lookup_type_pair.
12865 (print_gimple_types_stats): Remove cache stats.
12866 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12869 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
12871 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12872 when TARGET_RDRND is active.
12873 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12874 Generate dummy SImode target register when target is NULL.
12876 2011-05-19 Joseph Myers <joseph@codesourcery.com>
12878 * config/arm/arm-fpus.def: New.
12879 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12881 * config/arm/arm-tables.opt: Regenerate.
12882 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12883 (arm_option_override): Don't decode FPU name to string here.
12884 * config/arm/arm.opt (mfpu=): Use Enum.
12885 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12886 Update dependencies.
12888 2011-05-19 Joseph Myers <joseph@codesourcery.com>
12890 * collect2.c: Include diagnostic.h.
12891 (fatal_perror, fatal, error, fancy_abort): Remove.
12892 (main): Set progname. Call xmalloc_set_program_name and
12893 diagnostic_initialize.
12894 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12895 scan_libraries, resolve_lib_name): Call fatal_error instead of
12896 fatal and fatal_perror.
12897 * collect2.h (error, fatal, fatal_perror): Don't declare.
12898 * tlink.c: Include diagnostic-core.h.
12899 (recompile_files): Call fatal_error instead of fatal_perror.
12900 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12901 pretty-print.o and input.o.
12902 (collect2.o, tlink.o): Update dependencies.
12904 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12906 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12908 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12911 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12912 COMDAT group syntax, both SPARC and x86 variants.
12913 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12914 * configure: Regenerate.
12915 * config/sol2.h (TARGET_SOLARIS): Define.
12916 (PUSHSECTION_FORMAT): Remove.
12917 (SECTION_NAME_FORMAT): Define.
12918 * config/sol2.c: Include hashtab.h.
12919 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12920 expansion, using SECTION_NAME_FORMAT.
12921 (solaris_comdat_htab): New variable.
12922 (struct comdat_entry): Define.
12923 (comdat_hash): New function.
12924 (comdat_eq): New function.
12925 (solaris_elf_asm_comdat_section): New function.
12926 (solaris_define_comdat_signature): New function.
12927 (solaris_code_end): New function.
12928 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12929 (solaris_code_end): Declare.
12930 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12931 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12933 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12934 Remove ATTRIBUTE_UNUSED.
12935 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12936 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12937 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12938 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12939 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12940 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12941 (PUSHSECTION_FORMAT): Remove.
12942 (SECTION_NAME_FORMAT): Redefine.
12944 2011-05-19 Kai Tietz <ktietz@redhat.com>
12946 * tree-cfg.c (verify_gimple_assign_binary): Barf on
12947 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12948 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12950 2011-05-19 Anatoly Sokolov <aesok@post.ru>
12951 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12953 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12955 2011-05-19 Richard Guenther <rguenther@suse.de>
12957 PR middle-end/48985
12958 * tree-object-size.c (addr_object_size): If the pointed-to
12959 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12961 2011-05-19 Richard Guenther <rguenther@suse.de>
12963 * gimple.c (gimple_types_compatible_p_1): Compare names of
12964 the types themselves.
12965 (iterative_hash_gimple_type): And hash them that way.
12966 (gimple_register_type_1): If we register a main variant properly
12967 initialize the leader to ourselves.
12969 2011-05-19 Tom de Vries <tom@codesourcery.com>
12972 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12973 get_loop_invariant_expr_id.
12974 (get_loop_invariant_expr_id): Use get_expr_id.
12975 (parm_decl_cost): New function.
12976 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12977 Improve bound cost estimation. Use different inv_expr_id for elim and
12980 2011-05-19 Tom de Vries <tom@codesourcery.com>
12983 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12984 cost_base.cost == 0.
12986 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
12989 * config/i386/sse.md
12990 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12993 2011-05-18 Jakub Jelinek <jakub@redhat.com>
12995 PR tree-optimization/49039
12996 * tree-vrp.c (extract_range_from_binary_expr): For
12997 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
12998 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13000 2011-05-18 Tom de Vries <tom@codesourcery.com>
13003 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13005 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
13007 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13008 (*tls_global_dynamic_64): Ditto.
13009 (*tls_local_dynamic_base_32_gnu): Ditto.
13010 (*tls_local_dynamic_base_64): Ditto.
13011 (tls_initial_exec_64_sun): Ditto.
13013 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
13015 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13016 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13018 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13019 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13020 * config/bfin/bfin.c (bfin_cpus): Add bf592.
13021 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13022 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13023 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13024 * config/bfin/elf.h (LIB_SPEC): Add bf592.
13026 2011-05-18 Joseph Myers <joseph@codesourcery.com>
13028 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13029 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13030 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13031 target_thread_pointer, arm_structure_size_boundary, struct
13032 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13033 struct abi_name, arm_all_abis): Remove.
13034 (arm_option_override) Don't process most enumerated option values here.
13035 Don't process target_fpe_name here. Work with integer not string for
13036 structure size boundary; use separate diagnostics for each case.
13037 * config/arm/arm.h (enum float_abi_type, enum
13038 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13040 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13041 arm_structure_size_boundary): Remove.
13042 * config/arm/arm.opt (mabi=): Use Enum and Init.
13043 (arm_abi_type): New Enum and EnumValue entries.
13044 (mfloat-abi=): Use Enum and Init.
13045 (float_abi_type): New Enum and EnumValue entries.
13046 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13047 (mfp16-format=): Use Enum and Init.
13048 (arm_fp16_format_type): New Enum and EnumValue entries.
13049 (mstructure-size-boundary=): Use UInteger and Init.
13050 (mtp=): Use Enum and Init.
13051 (arm_tp_type): New Enum and EnumValue entries.
13053 2011-05-18 Richard Guenther <rguenther@suse.de>
13055 PR tree-optimization/49018
13056 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13057 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13058 gimple_has_side_effects.
13060 2011-05-18 Richard Guenther <rguenther@suse.de>
13062 * gimple.c (gimple_register_type_1): New function, split out from ...
13063 (gimple_register_type): ... here. Avoid infinite recursion.
13065 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13067 PR tree-optimization/41881
13068 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13069 reduction_chains along with a macro for its access.
13070 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13071 (destroy_loop_vec_info): Free reduction chains.
13072 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13073 (vect_is_slp_reduction): New function.
13074 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13075 (vect_create_epilog_for_reduction): Support SLP reduction chains.
13076 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13077 definition types for reduction chains.
13078 (vect_supported_load_permutation_p): Don't allow permutations for
13080 (vect_analyze_slp_instance): Support reduction chains.
13081 (vect_analyze_slp): Try to build SLP instance from reduction chains.
13082 (vect_get_constant_vectors): Handle reduction chains.
13083 (vect_schedule_slp_instance): Mark the first statement of the
13084 reduction chain as reduction.
13086 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13088 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13089 names for group elements access.
13090 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13091 reduction chains as well. Remove data reference and interleaving
13092 related words from the fields names.
13093 * tree-vect-loop.c (vect_transform_loop): Use new names for group
13095 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13096 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13097 vect_update_interleaving_chain, vect_same_range_drs,
13098 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13099 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13100 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13101 vect_analyze_group_access, vect_analyze_data_ref_access,
13102 vect_create_data_ref_ptr, vect_transform_strided_load,
13103 vect_record_strided_load_vectors): Likewise.
13104 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13105 vect_model_load_cost, vectorizable_store, vectorizable_load,
13106 vect_remove_stores, new_stmt_vec_info): Likewise.
13107 * tree-vect-slp.c (vect_build_slp_tree,
13108 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13110 2011-05-18 Richard Guenther <rguenther@suse.de>
13112 PR middle-end/48989
13113 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13114 operand verification.
13115 (verify_gimple_assign_binary): Likewise.
13116 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13117 to non-1-precision BOOLEAN_TYPEs.
13119 2011-05-18 Tom de Vries <tom@codesourcery.com>
13122 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13124 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13126 PR tree-optimization/49000
13127 * tree-ssa.c (execute_update_addresses_taken): Call
13128 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
13129 be rewritten and decl has been marked for renaming, reset
13132 2011-05-17 Joseph Myers <joseph@codesourcery.com>
13134 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13135 enum_opts_set when testing if attributes have set -mfpmath=.
13137 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
13139 * config/mips/mips.c (mips_handle_option): Remove unused variable.
13141 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13143 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13145 * tree-inline.c (maybe_inline_call_in_expr): Initialize
13146 id.transform_lang_insert_block with NULL.
13148 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13150 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13151 (output_fp_compare): Change args 3 and 4 to bool.
13152 (ix86_expand_call): Change arg 6 to bool.
13153 (ix86_attr_length_immediate_default): Change arg 2 to bool.
13154 (ix86_attr_length_vex_default): Change arg 3 to bool.
13155 * config/i386/i386.md: Update all uses.
13156 * config/i386/i386.c: Ditto.
13157 (ix86_flags_dependent): Change return type to bool.
13159 2011-05-17 Richard Guenther <rguenther@suse.de>
13161 * gimple.c (type_hash_pair_compare): Fix comparison.
13163 2011-05-17 Richard Guenther <rguenther@suse.de>
13165 * gimple.c (iterative_hash_gimple_type): Simplify singleton
13166 case some more, fix final hash value of the non-singleton case.
13168 2011-05-17 Richard Guenther <rguenther@suse.de>
13172 2011-05-16 Richard Guenther <rguenther@suse.de>
13174 * gimple.c (gimple_types_compatible_p_1): Use names of the
13175 type itself, not its main variant.
13176 (iterative_hash_gimple_type): Likewise.
13178 2011-05-17 Richard Guenther <rguenther@suse.de>
13180 * gimple.c (gimple_register_canonical_type): Use the main-variant
13181 leader for computing the canonical type.
13183 2011-05-17 Nick Clifton <nickc@redhat.com>
13185 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13188 * config/rx/rx.md: Add peephole to remove redundant extensions
13190 (bitset_in_memory): Use rx_restricted_mem_operand.
13191 (bitinvert_in_memory): Likewise.
13192 (bitclr_in_memory): Likewise.
13194 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
13195 Nick Clifton <nickc@redhat.com>
13197 * config/rx/rx.md: Add peepholes to match a register move followed
13198 by a comparison of the moved register. Replace these with an
13199 addition of zero that does both actions in one instruction.
13201 2011-05-17 Jakub Jelinek <jakub@redhat.com>
13204 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13205 predicate to allow CONST_INT.
13206 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13208 2011-05-16 Joseph Myers <joseph@codesourcery.com>
13210 * opts-common.c (opt_enum_arg_to_value): New.
13211 * opts.h (opt_enum_arg_to_value): Declare.
13212 * config/i386/i386.opt (fpmath): Remove.
13213 (mfpmath=): Use Enum, Init and Save.
13214 (fpmath_unit): New Enum and EnumValue entries.
13215 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13216 name for function fpmath state.
13217 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13218 * config/i386/i386.c: Include diagnostic.h.
13219 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13220 (ix86_target_string): Take enum fpmath_unit value instead of string.
13221 (ix86_debug_options): Update call to ix86_target_string.
13222 (ix86_option_override_internal): Don't process fpmath strings here.
13223 (x86_function_specific_save, ix86_function_specific_restore):
13224 Don't handle fpmath state specially.
13225 (ix86_function_specific_print): Pass fpmath state to
13226 ix86_target_string instead of printing in this function.
13227 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13228 Handle enum attributes.
13229 (IX86_ATTR_ENUM, ix86_opt_enum): New.
13230 (ix86_valid_target_attribute_tree): Update option_strings
13231 handling. Handle fpmath as enum option.
13232 (ix86_can_inline_p): Update field names for function fpmath state.
13233 (ix86_expand_builtin): Update call to ix86_target_string.
13234 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13235 (ix86_fpmath): Remove.
13236 * config/i386/t-i386 (i386.o): Update dependencies.
13238 2011-05-16 Joseph Myers <joseph@codesourcery.com>
13240 PR preprocessor/48677
13241 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13242 from decoded_options[0], not from itself.
13244 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
13246 * config/i386/constraints.md (z): New constraint.
13247 * config/i386/i386.c (c): New mode attribute.
13248 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13249 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13250 constraint for operand 0.
13251 (*call_vzeroupper): Ditto.
13252 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
13253 (*call_rex64_ms_sysv_vzeroupper): Ditto.
13254 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13255 Use "lzm" constraint for operand 0.
13256 (*call_pop_vzeroupper): Ditto.
13257 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13258 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
13259 constraint for operand 0.
13260 (*sibcall_vzeroupper): Ditto.
13261 (*sibcall_rex64_ms_sysv): Ditto.
13262 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13263 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13264 *sibcall_pop_1. Use "Uz" constraint for operand 0.
13265 (*sibcall_pop_vzeroupper): Ditto.
13266 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13267 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13268 mode iterator. Use "<c>zm" constraint for operand 1.
13269 (*call_value_vzeroupper): Ditto.
13270 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
13272 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13273 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13274 *call_value_pop_1. Use "lzm" constraint for operand 1.
13275 (*call_value_pop_vzeroupper): Ditto.
13276 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13277 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13278 mode iterator. Use "Uz" constraint for operand 1.
13279 (*sibcall_value_vzeroupper): Ditto.
13280 (*sibcall_value_rex64_ms_sysv): Ditto.
13281 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13282 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
13283 constraint for operand 1.
13284 (*sibcall_value_pop_vzeroupper): Ditto.
13285 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13286 and "z" constraint for operand 2.
13287 (*tls_global_dynamic_32_gnu): Ditto.
13288 (*tls_local_dynamic_base_32_gnu): Ditto.
13289 (*tls_local_dynamic_base_64): Ditto.
13290 (*tls_local_dynamic_32_once): Ditto.
13291 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13292 Update all callers.
13293 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13295 2011-05-16 Richard Guenther <rguenther@suse.de>
13297 * gimple.c (gimple_types_compatible_p_1): Use names of the
13298 type itself, not its main variant.
13299 (iterative_hash_gimple_type): Likewise.
13301 2011-05-16 Richard Guenther <rguenther@suse.de>
13303 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13304 always visit pointer target and function result and argument types.
13306 2011-05-16 Jason Merrill <jason@redhat.com>
13309 * tree-inline.c (copy_statement_list): Put back recursion.
13311 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
13315 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13316 * config/avr/avr.md ("*ior<mode>qi.byte0",
13317 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13319 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
13322 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13323 register is needed for a function argument.
13325 2011-05-16 Richard Guenther <rguenther@suse.de>
13327 * gimple.c (struct type_hash_pair): New type.
13328 (type_hash_pair_compare): New function.
13329 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13331 2011-05-16 Revital Eres <revital.eres@linaro.org>
13333 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13335 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
13337 * config/i386/i386.md (floating point move splitters): Fix
13338 usage of standard_80387_constant_p.
13339 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13341 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
13343 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13345 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
13347 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13348 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13349 (tree_ssa_lim_finalize): Likewise.
13351 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
13353 * config/i386/constraint.md (Yd, Yx): New register constraints.
13354 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
13355 Yd conditional register constraint.
13356 (*movtf_internal): Use standard_sse_constant_opcode.
13357 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
13358 Yx conditional register constraint.
13359 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
13360 Yd conditional register constraint. Use standard_sse_constant_p to
13361 check for valid SSE constants and call standard_sse_constant_opcode to
13363 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13364 constants and call standard_sse_constant_opcode to output SSE insn.
13365 * config/i386/i386.c (ix86_option_ovverride_internal): Set
13366 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
13367 optimize_size is set.
13368 (standard_sse_constant_opcode): Output conditional AVX insn templates.
13370 2011-05-14 Tobias Burnus <burnus@net-b.de>
13372 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13374 2011-05-13 Martin Jambor <mjambor@suse.cz>
13376 * ipa-prop.c (ipa_cst_from_jfunc): New function.
13377 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13378 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13379 (evaluate_conditions_for_ipcp_clone): Removed.
13380 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13381 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13382 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13384 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
13386 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13387 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13388 lieu of MAY_HAVE_DEBUG_STMTS.
13389 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13390 debug statements if !MAY_HAVE_DEBUG_STMTS.
13392 2011-05-13 Martin Thuresson <martint@google.com>
13394 PR gcov-profile/47793
13395 * libgcov.c (gcov_exit): Support relative profile paths.
13396 * doc/invoke.texi (-fprofile-dir): Update for above change.
13398 2011-05-13 Richard Guenther <rguenther@suse.de>
13400 * gimple.c (gimple_canonical_types_compatible_p): Do not use
13401 type-pair caching, do not compare hashes.
13403 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
13405 PR middle-end/48965
13406 * tree-cfg.c (edge_to_cases_cleanup): Return true.
13407 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13409 2011-05-13 Kai Tietz <ktietz@redhat.com>
13411 * gimplify.c (gimplify_expr): Make sure operand is boolified.
13412 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13413 compatible type for TRUTH_NOT_EXPR.
13415 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
13417 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13418 (ix86_hard_regno_mode_ok): Change return value to bool. Use
13419 can_create_pseudo_p ().
13421 2011-05-13 Richard Guenther <rguenther@suse.de>
13424 * gimple.c (iterative_hash_gimple_type): Revert change in
13425 pointer target and function result and argument hashing.
13427 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
13429 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13430 (*movxf_internal_nointeger): Ditto.
13431 (*movdf_internal_rex64): Ditto.
13432 (*movdf_internal): Ditto.
13433 (*movdf_internal_nointeger): Ditto.
13434 (*movsf_internal): Ditto.
13435 (sincos splitters): Use can_create_pseudo ().
13437 2011-05-13 Joseph Myers <joseph@codesourcery.com>
13439 * config/i386/i386-opts.h: New.
13440 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13441 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13442 ix86_section_threshold): Remove.
13443 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
13444 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13446 (ix86_option_override_internal): Don't decode strings for options
13447 other than -march=, -mtune= and -mfpmath=. Don't allow for
13448 __attribute__ uses in remaining diagnostics for options with
13449 string arguments. Don't check for integer arguments being negative.
13450 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13451 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13452 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13453 ix86_branch_cost, ix86_section_threshold): Remove.
13454 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13456 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13458 (masm=): Use Enum and Init.
13459 (asm_dialect): New Enum and EnumValue entries.
13460 (mbranch-cost=): Use UInteger.
13461 (mlarge-data-threshold=): Use UInteger and Init.
13462 (mcmodel=): Use Enum and Init.
13463 (cmodel): New Enum and EnumValue entries.
13464 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13465 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13466 mregparm=): Use UInteger.
13467 (mstringop-strategy=): Use Enum and Init.
13468 (stringop_alg): New Enum and EnumValue entries.
13469 (mtls-dialect=): Use Enum and Init.
13470 (tls_dialect): New Enum and EnumValue entries.
13471 (mabi=): Use Enum and Init.
13472 (calling_abi): New Enum and EnumValue entries.
13473 (mveclibabi=): Use Enum and Init.
13474 (ix86_veclibabi): New Enum and EnumValue entries.
13476 2011-05-13 Nick Clifton <nickc@redhat.com>
13478 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13479 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13481 2011-05-13 Kai Tietz <ktietz@redhat.com>
13483 PR middle-end/48984
13484 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13485 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13486 (gimple_boolify): Check for cast for boolean_type_node instead for
13489 2011-05-13 Richard Guenther <rguenther@suse.de>
13491 PR tree-optimization/48172
13492 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13493 multiplying by number of iterations for equal step.
13494 (vect_create_cond_for_alias_checks): Likewise.
13496 2011-05-13 Andreas Schwab <schwab@redhat.com>
13498 * configure.ac: Use AS_HELP_STRING throughout.
13499 * configure: Regenerate.
13501 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
13503 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13504 (ix86_emit_restore_regs_using_mov): Likewise.
13505 (ix86_emit_restore_sse_regs_using_mov): Likewise.
13507 2011-05-12 Anatoly Sokolov <aesok@post.ru>
13509 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13510 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13511 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13512 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13513 RTX_OK_FOR_OLO10_P): ...here.
13514 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13517 2011-05-12 Kai Tietz <ktietz@redhat.com>
13519 * gimplify.c (gimple_boolify): Re-boolify expression
13520 arguments even if expression type is of kind BOOLEAN_TYPE.
13521 (gimplify_boolean_expr): Removed.
13522 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13523 and XOR. Additional take care that we keep expression's type.
13524 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13525 of TRUTH_AND|OR|XOR_EXPR.
13527 2011-05-12 Jakub Jelinek <jakub@redhat.com>
13529 PR tree-optimization/48975
13530 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13531 on all bbs here and free and clear ifc_bbs at the end.
13533 2011-05-12 Richard Guenther <rguenther@suse.de>
13535 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13536 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
13537 until after simple checks.
13538 (gimple_types_compatible_p): Likewise.
13539 (iterative_hash_gimple_type): Always hash pointer targets
13540 and function return and argument types.
13541 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13542 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
13543 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13544 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
13545 completely in the simple compare section.
13546 (gimple_register_canonical_type): Query the cache again after
13549 2011-05-12 Richard Guenther <rguenther@suse.de>
13551 PR tree-optimization/48172
13552 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13553 the number of iterations from the segment size calculation.
13554 (vect_create_cond_for_alias_checks): Adjust.
13556 2011-05-12 Jakub Jelinek <jakub@redhat.com>
13559 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13560 if validate_subreg fails.
13562 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
13564 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13565 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13568 2011-05-12 DJ Delorie <dj@redhat.com>
13570 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13571 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13572 created builtin into rx_builtins array.
13573 (rx_builtin_decl): New function.
13574 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
13576 2011-05-12 DJ Delorie <dj@redhat.com>
13577 Nick Clifton <nickc@redhat.com>
13579 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13580 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13581 (rx_is_legitimate_address): Add pre-decrement and post-increment
13582 addressing in HImode and QImode. Fix test for out of range
13583 REG+INT addressing.
13584 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13585 (rx_align_for_label): Test label before extracting its usage count.
13586 (rx_adjust_insn_lengths): Fix selection of insn codes.
13587 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13589 2011-05-11 Jason Merrill <jason@redhat.com>
13591 * tree.c (type_hash_canon): Use struct tree_type_non_common.
13593 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
13595 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13596 reindent the subsequent block.
13598 2011-05-11 Satoru Takabayashi <satorux@google.com>
13599 Paul Pluzhnikov <ppluzhnikov@google.com>
13601 * doc/install.texi (Configuration): Document --with-linker-hash-style.
13602 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13603 * config.in: Add LINKER_HASH_STYLE.
13604 * configure.ac: Add --with-linker-hash-style.
13605 * configure: Regenerate.
13607 2011-05-11 Richard Guenther <rguenther@suse.de>
13609 PR middle-end/48964
13610 * gimple.c (iterative_hash_canonical_type): Fix typo.
13612 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
13614 * config/i386/i386.c (legitimize_tls_address)
13615 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13616 expanders directly for TARGET_GNU2_TLS. Determine pic and
13617 __tls_get_addr symbol reference here. Update call to
13618 gen_tls_global_dynamic_{32,64} for added arguments.
13619 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13620 expanders directly for TARGET_GNU2_TLS. Determine
13621 __tls_get_addr symbol reference here. Update call to
13622 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
13623 unique UNSPEC REG_EQUIV to libcall block.
13624 (ix86_tls_get_addr): Declare static.
13625 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13626 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13627 Do not determine pic and __tls_get_addr symbol reference here. Do not
13628 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13629 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13630 (tls_global_dynamic_64): Add operand 2. Do not determine
13631 __tls_get_addr symbol reference here. Do not call
13632 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13633 (tls_local_dynamic_base64): Ditto for operand 1.
13635 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
13637 * function.c (expand_function_start): Initialize stack_check_probe_note
13638 only if the generic stack checking mechanism is used.
13640 2011-05-11 Richard Guenther <rguenther@suse.de>
13642 PR tree-optimization/15256
13643 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13644 (A & B) | C, combine (A op CST1) op CST2.
13645 (tree_ssa_forward_propagate_single_use_vars): Only bother to
13646 visit assigns that have uses.
13648 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13650 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13651 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13652 (unpack_ts_type_common_value_fields): ...this. Update comment.
13653 (unpack_value_fields): Adjust for renaming.
13654 (lto_input_ts_type_tree_pointers): Split into...
13655 (lto_input_ts_type_common_tree_pointer): ...this and...
13656 (lto_input_ts_type_non_common_tree_pointers): ...this.
13657 (lto_input_tree_pointers): Adjust for above split.
13658 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13659 (pack_ts_type_common_value_fields): ...this. Update comment.
13660 (lto_output_ts_type_tree_pointers): Split into...
13661 (lto_output_ts_type_common_tree_pointers): ...this and...
13662 (lto_output_ts_type_non_common_tree_pointers): ...this.
13663 (lto_output_tree_pointers): Adjust for above split.
13664 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13665 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13666 * stor-layout.c (vector_type_mode): Adjust location of mode field.
13667 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13669 (struct tree_type): Split into...
13670 (struct tree_type_common: ...this and...
13671 (struct tree_type_with_lang_specific): ...this and...
13672 (struct tree_type_non_common): ...this. Adjust accessor macros
13674 (TYPE_VALUES_RAW): Define.
13675 (union tree_node): Update for above changes.
13676 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13677 TS_TYPE_NON_COMMON.
13678 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13679 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13680 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13681 * treestructu.def (TS_TYPE): Remove.
13682 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13685 2011-05-11 Jakub Jelinek <jakub@redhat.com>
13688 * tree-ssa.c (reset_debug_uses): New function.
13689 * tree-flow.h (reset_debug_uses): New prototype.
13690 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13691 * tree-loop-distribution.c (generate_loops_for_partition): Call
13692 reset_debug_uses on the stmts that will be removed. Keep around
13693 all debug stmts, don't count them as bits in partition bitmap.
13694 (generate_builtin): Don't count debug stmts or labels as bits in
13697 2011-05-11 Richard Guenther <rguenther@suse.de>
13699 * gimple.c (gimple_type_hash_1): Merge with ...
13700 (gimple_type_hash): ... this.
13701 (gtc_visit): Remove mode parameter and simplify accordingly.
13702 (gimple_types_compatible_p_1): Likewise.
13703 (gimple_types_compatible_p): Likewise.
13704 (iterative_hash_gimple_type): Likewise.
13706 (gimple_type_eq): Adjust.
13708 2011-05-11 Revital Eres <revital.eres@linaro.org>
13710 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13711 enters the branch create an anti edge in the opposite direction
13712 to prevent the creation of reg-moves.
13713 * modulo-sched.c: Adjust comment to reflect the fact we are
13714 scheduling closing branch.
13715 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13716 (stage_count): New field in struct partial_schedule.
13717 (calculate_stage_count): New function.
13718 (normalize_sched_times): Rename to reset_sched_times and handle
13719 incrementing the sched time of the nodes by a constant value
13720 passed as parameter.
13721 (duplicate_insns_of_cycles): Skip closing branch.
13722 (sms_schedule_by_order): Schedule closing branch.
13723 (ps_insn_find_column): Handle closing branch.
13724 (sms_schedule): Call reset_sched_times and adjust the code to
13725 support scheduling of the closing branch.
13726 (ps_insert_empty_row): Update calls to normalize_sched_times
13727 and rotate_partial_schedule functions.
13729 2011-05-11 Richard Guenther <rguenther@suse.de>
13731 PR middle-end/48953
13732 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13734 2011-05-11 Joseph Myers <joseph@codesourcery.com>
13736 * opts.c (finish_options): Move warning settings from process_options.
13737 * toplev.c (process_options): Move warning settings to finish_options.
13739 2011-05-11 Richard Guenther <rguenther@suse.de>
13741 PR tree-optimization/18041
13742 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13743 (simplify_bitwise_binary): ... this. Handle operand conversions
13744 by applying them to the result instead.
13745 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
13747 2011-05-11 Richard Guenther <rguenther@suse.de>
13749 * gimple.c (gimple_canonical_types_compatible_p): Split out
13750 from gimple_types_compatible_p and friends. Do not recurse
13751 to pointed-to types.
13752 (gimple_canonical_type_eq): Use it.
13753 (iterative_hash_canonical_type): Split out from
13754 iterative_hash_gimple_type and friends. Do not recurse
13755 to pointed-to types.
13756 (gimple_canonical_type_hash): Use it, allocate the hash here.
13758 2011-05-11 Revital Eres <revital.eres@linaro.org>
13760 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13761 recognizing doloop.
13763 2011-05-11 Revital Eres <revital.eres@linaro.org>
13765 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13766 instead of PREV_INSN.
13768 2011-05-11 Revital Eres <revital.eres@linaro.org>
13770 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13771 * loop-doloop.c (doloop_condition_get): Likewise.
13772 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13774 * config/arm/arm.md (*addsi3_compare0): Remove "*".
13776 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
13778 * tree.def (CASE_LABEL_EXPR): Add an operand.
13779 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13781 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13783 * c-decl.c (c_override_global_bindings_to_false): Remove.
13784 (global_bindings_p): Don't check
13785 c_override_global_bindings_to_false.
13786 * c-tree.h (c_override_global_bindings_to_false): Remove.
13787 * c-typeck.c (composite_type): Don't set
13788 c_override_global_bindings_to_false.
13790 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13792 PR target/48857, 48495
13793 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13795 (VSX_MOVE_MODE): Ditto.
13796 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13797 VSX vector types. Add V2DImode.
13798 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13799 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13800 (MODES_TIEABLE_P): Ditto.
13802 * config/rs6000/rs6000.c (rs6000_emit_move): Use
13803 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13805 (init_cumulative_args): Ditto.
13806 (rs6000_function_arg_boundary): Ditto.
13807 (rs6000_function_arg_advance_1): Ditto.
13808 (rs6000_function_arg): Ditto.
13809 (rs6000_function_ok_for_sibcall): Ditto.
13810 (emit_frame_save): Ditto.
13811 (rs6000_function_value): Ditto.
13812 (rs6000_libcall_value): Ditto.
13814 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13816 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13817 i386/darwin-lib.h to $libgcc_tm_file.
13818 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13820 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13822 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13824 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13826 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13827 * config/rs6000/rs6000-tables.opt: New file (generated).
13828 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13829 rs6000/rs6000-tables.opt to extra_options.
13830 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13831 * config/rs6000/rs6000.c (rs6000_select): Remove.
13832 (processor_target_table): Move contents to rs6000-cpus.def.
13833 (darwin_rs6000_override_options): Check
13834 global_options_set.x_rs6000_cpu_index instead of
13835 rs6000_select[1].string.
13836 (rs6000_option_override_internal): Likewise.
13837 (rs6000_handle_option): Don't assert that global structures are in
13838 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
13839 (rs6000_default_cpu): New variable.
13840 (rs6000_file_start): Set it instead of local default_cpu. Check
13841 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13842 global_options_set.x_rs6000_tune_index instead of rs6000_select.
13843 (rs6000_darwin_file_start): Check rs6000_default_cpu and
13844 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13845 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13846 rs6000_select): Remove.
13847 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13849 (mcpu=, mtune=): Use Var, Init, Enum and Save.
13850 * config/rs6000/t-rs6000
13851 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13852 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13853 global_options_set.x_rs6000_cpu_index instead of
13854 rs6000_select[1].string.
13855 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13856 global_options_set.x_rs6000_cpu_index instead of
13857 rs6000_select[1].string.
13859 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13861 * config.gcc (libgcc_tm_file): Define instead of including files
13862 from ../../libgcc/config/ in tm_file.
13863 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13864 * configure: Regenerate.
13865 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13866 libgcc_tm.h, cs-libgcc_tm.h): New.
13867 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13868 (clean): Remove libgcc_tm.h.
13869 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13870 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13871 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13873 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
13876 * config/avr/avr.c (avr_ret_register): Return unsigned int
13878 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13879 it to avr_libcall_value.
13880 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13882 (avr_expand_binop_builtin): Ditto.
13883 (avr_expand_unop_builtin): Ditto.
13885 2011-05-10 DJ Delorie <dj@redhat.com>
13887 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13888 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13889 * config/rx/rx.c (rx_align_for_label): Add label and
13890 uses_threshold parameters. Do not align when the label is not
13892 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13894 2011-05-10 Richard Guenther <rguenther@suse.de>
13896 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13897 a series of conversions and apply foldings similar to what
13899 (tree_ssa_forward_propagate_single_use_vars): Call it.
13901 2011-05-10 Jakub Jelinek <jakub@redhat.com>
13903 PR tree-optimization/48611
13904 PR tree-optimization/48794
13905 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13906 referenced from RESX or EH_DISPATCH arguments.
13909 * dfp.c (decimal_to_decnumber): Handle conversion from
13910 dconst{1,2,m1,half}.
13912 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13914 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13915 for !flag_prefer_avx128.
13916 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13918 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
13920 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13921 (fold_ternary_loc): Use expr_location_or.
13923 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
13926 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13927 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13928 Pmode and mem_mode is not VOIDmode.
13930 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
13932 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13933 TYPE_QUAL_RESTRICT): Convert to enum.
13935 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13937 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13938 (const_pow2_1_to_8_operand): Ditto.
13939 (const_pow2_1_to_128_operand): Ditto.
13940 (const_pow2_1_to_32768_operand): Ditto.
13941 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13942 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
13943 in insn constraint to check integer value of operand 3.
13944 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13946 (PINSR_MODE): New mode iterator.
13947 (sse2p4_1): New mode attribute.
13948 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13949 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13950 iterator. Use const_int_operand instead of
13951 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
13952 exact_log2 in insn constraint to check integer value of operand 3.
13954 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13956 * config/i386/sse.md (blendbits): Remove mode attribute.
13957 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13958 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13959 Check integer value of operand 3 in insn constraint.
13961 2011-05-09 Richard Guenther <rguenther@suse.de>
13963 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13965 (lto_symtab_merge): Likewise. Do not register types here.
13966 (lto_symtab_merge_decls_2): Likewise.
13967 (lto_symtab_merge_decls_1): Likewise.
13968 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13969 * gimple.c (enum gtc_mode): Declare.
13970 (gimple_types_compatible_p): Make static.
13972 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13974 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13975 temporary register to match Pmode.
13977 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13979 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13980 and *vec_concatv4si_1_avx.
13982 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13984 PR rtl-optimization/48927
13985 * ira-conflicts.c (commutative_constraint_p): Use
13986 recog_data.alternative_enabled_p to disable alternatives where
13987 "enabled" attribute is false.
13988 (get_dup_num): Ditto.
13989 * ira-lives.c (single_reg_class): Ditto.
13990 (ira_implicitly_set_insn_hard_regs): Ditto.
13992 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
13994 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13995 (dataflow_set_preserve_mem_locs): Likewise.
13997 2011-05-09 Philipp Thomas <pth@suse.de>
13999 * config/mep/mep.c (mep_validate_vliw): Syntax description
14000 should not be translated.
14002 2011-05-09 Joseph Myers <joseph@codesourcery.com>
14004 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14005 * config/mips/mips-tables.opt: New file (generated).
14006 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14007 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14008 MIPS_ARCH_OPTION_NATIVE): Define.
14009 * config/mips/mips.c (mips_cpu_info_table): Move contents to
14011 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14012 mips_parse_cpu): Remove.
14013 (mips_cpu_info_from_opt, mips_default_arch): New.
14014 (mips_handle_option): Don't assert that global structures are in
14015 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14016 (mips_option_override): Use new variables and functions to set
14017 state of these options. Use strcmp to check for individual CPU names.
14018 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14020 * config/mips/mips.opt (march=): Use ToLower and Enum.
14021 (mips): Use ToLower, Enum and Var.
14022 (mtune=): Use ToLower and Enum.
14023 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14025 2011-05-08 Jan Hubicka <jh@suse.cz>
14027 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14028 Arrange type pairs to be UID ordered.
14029 (gimple_lookup_type_leader): Make inline.
14031 2011-05-09 Nick Clifton <nickc@redhat.com>
14034 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14038 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14041 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
14043 * combine.c (simplify_comparison): Abstract out parts into...
14044 (simplify_compare_const): ... new function.
14045 (try_combine): Generalize parallel arithmetic/compare combining
14046 to call simplify_compare_const() and CANONICALIZE_COMPARE().
14048 2011-05-08 Jan Hubicka <jh@suse.cz>
14050 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14051 (cgraph_create_virtual_clone): Call hooks once virtual clone
14053 * cgraph.h (cgraph_clone_node): Update prototype.
14054 * ipa-cp.c (ipcp_estimate_growth): Use
14055 estimate_ipcp_clone_size_and_time.
14056 * ipa-inline-transform.c (clone_inlined_nodes): Update.
14057 * lto-cgraph.c (input_node): Update.
14058 * ipa-inline.c (recursive_inlining): Update.
14059 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14060 (evaluate_conditions_for_known_args): Break out from ...
14061 (evaluate_conditions_for_edge): ... here.
14062 (evaluate_conditions_for_ipcp_clone): New function.
14063 (inline_node_duplication_hook): Update clone summary based
14065 (estimate_callee_size_and_time): Rename to ...
14066 (estimate_node_size_and_time): take NODE instead of EDGE;
14067 take POSSIBLE_TRUTHS as argument.
14068 (estimate_callee_size_and_time): Update.
14069 (estimate_ipcp_clone_size_and_time): New function.
14070 (do_estimate_edge_time): Update.
14072 2011-05-08 Richard Guenther <rguenther@suse.de>
14074 PR middle-end/48908
14075 PR middle-end/48905
14076 * expmed.c (expand_shift_1): Compute adjusted constant shift
14079 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14081 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14083 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14085 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14087 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
14089 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14091 2011-05-07 Jan Hubicka <jh@suse.cz>
14093 * ipa-inline-transform.c (inline_call): Account when program size
14095 * ipa-inline.c (relative_time_benefit): New function.
14096 (edge_badness): Reorganize to be power 2 based; fix thinko when
14097 computing badness for negative growth; update comments to match
14098 reality; better dumps.
14100 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14102 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14103 type to bool and adjust comment.
14104 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14105 (fold_mathfn_compare): Remove calls to global_bindings_p.
14106 (fold_inf_compare): Likewise.
14107 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14108 * c-tree.h (global_bindings_p): Adjust prototype.
14109 * c-decl.c (global_bindings_p): Return bool and simplify.
14111 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
14113 PR tree-optimization/48837
14114 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14115 when accumulator transformation is performed.
14117 2011-05-06 Jan Hubicka <jh@suse.cz>
14119 * i386.h (ix86_tune_indices): Add
14120 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14121 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14122 * i386.c (initial_ix86_tune_features): Add
14123 X86_SOFTARE_PREFETCHING_BENEFICIAL.
14124 (software_prefetching_beneficial_p): Remove predicate.
14125 (ix86_option_override_internal): Use new macro.
14127 2011-05-06 Jan Hubicka <jh@suse.cz>
14129 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14131 2011-05-06 Jan Hubicka <jh@suse.cz>
14133 * cgraph.c (cgraph_add_thunk): Create real function node instead
14134 of alias node; finalize it and mark needed/reachale; arrange visibility
14135 to be right and add it into the corresponding same comdat group list.
14136 (dump_cgraph_node): Dump thunks.
14137 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14138 cgraph_function_with_gimple_body_p,
14139 cgraph_first_function_with_gimple_body,
14140 cgraph_next_function_with_gimple_body): New functions.
14141 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14143 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14144 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14145 * cgraphunit.c (cgraph_finalize_function): Only look into possible
14146 devirtualization when optimizing.
14147 (verify_cgraph_node): Verify thunks.
14148 (cgraph_analyze_function): Analyze thunks.
14149 (cgraph_mark_functions_to_output): Output thunks only in combination
14150 with function they are assigned to.
14151 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14152 alias into normal node.
14153 (assemble_thunks): New functoin.
14154 (cgraph_expand_function): Use it.
14155 * lto-cgraph.c (lto_output_node): Stream thunks.
14156 (input_overwrite_node): Stream in thunks.
14157 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14158 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14159 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14160 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14161 (inline_analyze_function): Do not care about thunk jump functions.
14162 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14163 * ipa-prop.c (ipa_prop_write_jump_functions): Use
14164 cgraph_function_with_gimple_body_p.
14165 * passes.c (do_per_function_toporder): Use
14166 cgraph_function_with_gimple_body_p.
14167 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14168 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14169 (function_called_by_processed_nodes_p): Likewise.
14171 2011-05-06 Joseph Myers <joseph@codesourcery.com>
14173 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14174 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14176 (mabi=): Replace with separate entries for mabi=altivec,
14177 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14178 mabi=ieeelongdouble and mabi=ibmlongdouble.
14179 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14180 check for -mabi=spe without SPE ABI support here.
14181 (rs6000_handle_option): Replace OPT_mabi_ handling with
14182 OPT_mabi_altivec and OPT_mabi_spe handling.
14184 2011-05-06 Cary Coutant <ccoutant@google.com>
14186 * dwarf2out.c (contains_subprogram_definition): New function.
14187 (should_move_die_to_comdat): Call it.
14189 2011-05-06 Jeff Law <law@redhat.com>
14191 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14192 remove_ctrl_stmt_and_useless_edges.
14193 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14194 (fixup_template_block, thread_single_edge): Likewise.
14195 (mark_threaded_blocks): Use THREAD_TARGET.
14197 2011-05-06 Alan Modra <amodra@gmail.com>
14200 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14201 const0_rtx as the arg to the dummy __tls_get_addr libcall.
14203 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
14205 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14206 constraint modifier to "r".
14208 2011-05-06 Joseph Myers <joseph@codesourcery.com>
14210 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14211 fall through for OPT_mcmodel_.
14213 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14215 * config/s390/s390.c (s390_asm_trampoline_template): Comment
14217 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14219 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14222 * config/arm/arm.opt (marm): Document it.
14223 (mthumb): Reject negative variant.
14225 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
14228 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14229 Fix typo in "ccvt" variable name.
14231 2011-05-06 Tristan Gingold <gingold@adacore.com>
14234 * config/vms/vms-ar.c (main): Remove cwd variable.
14236 2011-05-06 Jakub Jelinek <jakub@redhat.com>
14239 * var-tracking.c (prepare_call_arguments): Move else before #endif.
14241 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14243 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14244 * gimplify.c (gimplify_switch_expr): Likewise.
14245 * omp-low.c (expand_omp_sections): Likewise.
14246 * tree-eh.c (lower_try_finally_switch): Likewise.
14247 (lower_eh_dispatch): Likewise.
14248 * tree.h (build_case_label): Declare.
14249 * tree.c (build_case_label): Define.
14251 2011-05-05 Jason Merrill <jason@redhat.com>
14254 * tree-inline.c (copy_tree_r): Use copy_statement_list.
14255 (copy_statement_list): Don't recurse.
14256 * stor-layout.c (copy_self_referential_tree_r): Don't allow
14259 2011-05-05 Joseph Myers <joseph@codesourcery.com>
14261 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14262 through from -mfpu= handling.
14263 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14265 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
14267 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14270 2011-05-05 Steve Ellcey <sje@cup.hp.com>
14272 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14274 (hppa[12]*-*-hpux11*): Ditto.
14275 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14276 * config/ia64/hpux-unix2003.h: New.
14277 * config/pa/pa-hpux1131.opt: New.
14278 * config/pa/pa-hpux1131.h: New.
14279 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14280 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14281 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14283 2011-05-05 Jakub Jelinek <jakub@redhat.com>
14286 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14287 instead of mode as 3rd argument to recursive call.
14288 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14289 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14291 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14292 don't give up if mode is Pmode and mem_mode is not VOIDmode.
14293 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14294 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14296 2011-05-05 Julian Brown <julian@codesourcery.com>
14298 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14299 parenthesis in D-register case.
14301 2011-05-05 Joseph Myers <joseph@codesourcery.com>
14303 * opt-functions.awk (var_type_struct): Handle Enum options.
14304 * optc-gen.awk: Don't check range of variables of character type.
14305 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14306 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14307 rs6000_sdata_name, rs6000_explicit_options): Remove.
14308 (rs6000_option_override_internal): Check for -malign-power here.
14309 Use global_options_set instead of rs6000_explicit_options.
14310 (rs6000_parse_fpu_option): Remove.
14311 (rs6000_handle_option): Access variables via opts and opts_set
14312 pointers. Use error_at and warning_at. Add fall-through
14313 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14314 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14315 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14316 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14317 here. Don't use rs6000_parse_fpu_option.
14318 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14319 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14320 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14321 (mrecip=): Use Var.
14322 (mspe): Use Var and Save.
14323 (mtraceback=): Use Enum and Var.
14324 (rs6000_traceback_type): New Enum and EnumValue entries.
14325 (mfloat-gprs=): Use Enum, Var and Save.
14326 (rs6000_float_gprs): New Enum and EnumValue entries.
14327 (mlong-double-): use Var and Save.
14328 (msched-costly-dep=, minsert-sched-nops=): Use Var.
14329 (malign-): Use Enum and Var.
14330 (rs6000_alignment_flags): New Enum and EnumValue entries.
14332 (fpu_type_t): New Enum and EnumValue entries.
14333 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14334 global_options_set instead of rs6000_explicit_options.
14335 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14336 global_options_set instead of rs6000_explicit_options.
14337 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14338 global_options_set instead of rs6000_explicit_options.
14339 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14340 global_options_set instead of rs6000_explicit_options.
14341 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14342 global_options_set instead of rs6000_explicit_options.
14343 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14344 global_options_set instead of rs6000_explicit_options.
14345 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14347 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14348 global_options_set instead of rs6000_explicit_options.
14349 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14350 (rs6000_cmodel): New Enum and EnumValue entries.
14351 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14352 global_options_set instead of rs6000_explicit_options.
14353 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14354 (mtls-size=): Use Enum and Var.
14355 (rs6000_tls_size): New Enum and EnumValue entries.
14357 2011-05-05 Michael Matz <matz@suse.de>
14359 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14360 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14361 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14362 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14363 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14364 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14365 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14366 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14367 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14368 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14369 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14370 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14371 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14372 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14373 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14374 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14376 2011-05-05 Richard Guenther <rguenther@suse.de>
14378 * expmed.c (expand_variable_shift): Rename to ...
14379 (expand_shift_1): ... this. Take an expanded shift amount.
14380 For rotates recurse directly not building trees for the shift amount.
14381 (expand_variable_shift): Wrap around expand_shift_1.
14382 (expand_shift): Adjust.
14384 2011-05-05 Jakub Jelinek <jakub@redhat.com>
14386 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14388 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14390 * tree.h (get_pending_sizes): Remove prototype.
14391 (put_pending_size): Likewise.
14392 (put_pending_sizes): Likewise.
14393 * stor-layout.c (pending_sizes): Delete.
14394 (get_pending_sizes): Likewise.
14395 (put_pending_size): Likewise.
14396 (put_pending_sizes): Likewise.
14397 (variable_size): Do not call put_pending_size and tidy up.
14398 * function.h (struct function): Remove dont_save_pending_sizes_p.
14399 * lto-streamer-in.c (input_function): Do not stream it.
14400 * lto-streamer-out.c (output_function): Likewise.
14401 * tree-inline.c (initialize_cfun): Do not copy it.
14402 * c-decl.c (store_parm_decls): Do not set it.
14403 * omp-low.c (create_task_copyfn): Likewise.
14404 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14406 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
14408 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14410 (*movdf_internal): Ditto.
14411 (*movdf_internal_nointeger): Ditto.
14412 (*movsf_internal): Ditto.
14414 2011-05-05 Joseph Myers <joseph@codesourcery.com>
14416 * c-decl.c (finish_decl): Don't call get_pending_sizes.
14417 (grokparm): Add parameter expr. Pass it to grokdeclarator.
14418 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
14419 (c_variable_size): Remove.
14420 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
14421 call put_pending_sizes.
14422 (get_parm_info): Add parameter expr. Use it to set
14423 arg_info->pending_sizes.
14424 (store_parm_decls): Use arg_info->pending_sizes instead or calling
14426 * c-parser.c (c_parser_parms_declarator): Update call to
14427 c_parser_parms_list_declarator.
14428 (c_parser_parms_list_declarator): Take parameter expr. Update
14429 call to push_parm_decl. Update recursive call. Don't call
14430 get_pending_sizes. Update calls to get_parm_info.
14431 (c_parser_objc_method_definition): Update calls to
14432 c_parser_objc_method_decl and objc_start_method_definition.
14433 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14434 (c_parser_objc_method_decl): Add parameter expr. Update call to
14436 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14437 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14438 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14440 2011-05-05 Michael Hope <michael.hope@linaro.org>
14443 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14444 __ARM_EABI__ hosts.
14446 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14448 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14449 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14450 (spu_output_mi_thunk): New function.
14452 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14454 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14455 targetm.asm_out.print_operand.
14456 * config/sol2.c: Include target.h.
14458 2011-05-04 Jan Hubicka <jh@suse.cz>
14460 * ipa-inline.c (reset_edge_caches): New function.
14461 (update_caller_keys): Add check_inlinablity_for; do not
14462 reset edge caches; remove now unnecesary loop.
14463 (update_callee_keys): Add comments; reset node_growth_cache of callee.
14464 (update_all_callee_keys): Likewise.
14465 (inline_small_functions): Sanity check cache; update code
14468 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
14470 PR rtl-optimization/47612
14471 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14472 as the last insn of the sequence to be moved.
14474 2011-05-04 Tobias Burnus <burnus@net-b.de>
14477 * doc/invoke.texi (Ofast): Document that it
14478 enables Fortran's -fno-protect-parens.
14480 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
14482 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14484 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
14486 * stor-layout.c (variable_size): Do not issue errors.
14488 2011-05-04 Richard Guenther <rguenther@suse.de>
14490 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14491 for array-ref indices.
14492 (tree_coverage_counter_addr): Likewise.
14493 (build_fn_info_type): Use size_int for index types.
14494 (build_gcov_info): Likewise.
14496 2011-05-04 Richard Guenther <rguenther@suse.de>
14498 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14500 * c-typeck.c (really_start_incremental_init): Use bitsize_int
14501 for constructor indices.
14502 (push_init_level): Likewise.
14504 2011-05-04 Richard Guenther <rguenther@suse.de>
14506 * explow.c (promote_mode): Move variable declarations before code.
14508 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
14510 * tree.h (build_function_type_array): Declare.
14511 (build_varargs_function_type_array): Declare.
14512 (build_function_type_vec, build_varargs_function_type_vec): Define.
14513 * tree.c (build_function_type_array_1): New function.
14514 (build_function_type_array): New function.
14515 (build_varargs_function_type_array): New function.
14517 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
14519 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14520 before setting STMT_VINFO_TYPE.
14522 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14524 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14525 instead of spu_pass_by_reference.
14527 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14529 * calls.c (emit_library_call_value_1): Invoke
14530 promote_function_mode hook on libcall arguments.
14531 * explow.c (promote_function_mode, promote_mode): Handle TYPE
14532 argument being NULL.
14533 * targhooks.c (default_promote_function_mode): Lisewise.
14534 * config/s390/s390.c (s390_promote_function_mode): Likewise.
14535 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14537 * doc/tm.texi: Document that TYPE argument might be NULL.
14539 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14541 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14543 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14546 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14548 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14550 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14551 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14553 * mips-tfile.c: ... here.
14554 Don't include coretypes.h, tm.h, filenames.h.
14555 (saber_stop): Remove definition and all calls.
14556 [__SABER__]: Remove.
14557 (__LINE__): Remove default.
14558 (Size_t, Ptrdiff_t): Remove definitions.
14559 Replace by size_t, ptrdiff_t.
14560 [!MIPS_DEBUGGING_INFO]: Remove.
14561 (SHASH_SIZE, THASH_SIZE): Remove defaults.
14562 (progname): Add const.
14564 Replace all uses by static.
14565 (ALIGN_SYMTABLE_OFFSET): Remove default.
14566 * mips-tdump.c: Don't include coretypes.h, tm.h.
14567 Remove !MIPS_IS_STAB guard.
14568 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14569 $(TM_H), filenames.h dependencies.
14570 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14572 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14575 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14576 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14578 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14581 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14582 account and save/restore RETS.
14583 (PROFILE_BEFORE_PROLOGUE): Define.
14584 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
14585 the push insn to use predecrement.
14587 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14590 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14592 2011-05-04 Nick Clifton <nickc@redhat.com>
14594 * config/mn10300/mn10300.c: Include cfgloop.h.
14596 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
14597 Lcc or a FLcc insn into the instruction stream.
14598 (mn10300_block_contains_call): New function. Returns true if the
14599 given basic block contains a CALL insn.
14600 (mn10300_loop_contains_call_insn): New function. Returns true if
14601 the given loop contains a CALL insn.
14602 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
14603 to use the SETLB and Lcc or FLcc insns.
14604 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14605 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14606 * config/mn10300/mn10300.opt (msetlb): New option. Used to
14607 disable the SETLB optimization.
14608 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14609 __SETLB__ or __NO_SETLB__.
14610 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14611 (movsf_internal): Handle MDR register.
14612 (cmpsi): Make visible.
14613 (setlb): New pattern.
14614 (Lcc): New pattern.
14615 (FLcc): New pattern.
14617 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
14620 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14621 for reg<->xmm moves.
14622 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14623 (vec_concatv2di_rex64_sse): Ditto.
14624 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14625 (*vec_extractv2di_1_rex64): Ditto.
14628 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
14630 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14632 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14634 2011-05-04 Richard Guenther <rguenther@suse.de>
14636 * tree.h (int_const_binop): Remove notrunc argument.
14637 * fold-const.c (int_const_binop): Remove notrunc argument. Always
14638 create integer constants that are properly truncated.
14639 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14640 (const_binop): Remove zero notrunc argument to int_const_binop.
14641 (size_binop_loc): Likewise.
14642 (fold_div_compare): Likewise.
14643 (maybe_canonicalize_comparison_1): Likewise.
14644 (fold_comparison): Likewise.
14645 (fold_binary_loc): Likewise.
14646 (multiple_of_p): Likewise.
14647 * expr.c (store_constructor): Likewise.
14648 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14649 (maybe_fold_stmt_addition): Likewise.
14650 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14651 * stor-layout.c (layout_type): Likewise.
14652 * tree-data-ref.c (tree_fold_divides_p): Likewise.
14653 * tree-sra.c (build_ref_for_offset): Likewise.
14654 (build_user_friendly_ref_for_offset): Likewise.
14655 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14656 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14657 * tree-ssa-loop-niter.c (inverse): Likewise.
14658 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14659 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14660 * tree-switch-conversion.c (check_range): Likewise.
14661 (build_constructors): Likewise.
14662 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14663 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14664 (extract_range_from_assert): Likewise.
14665 (vrp_int_const_binop): Likewise.
14666 (extract_range_from_binary_expr): Likewise.
14667 (extract_range_from_unary_expr): Likewise.
14668 (check_array_ref): Likewise.
14669 (find_case_label_range): Likewise.
14670 (simplify_div_or_mod_using_ranges): Likewise.
14671 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14672 comparing case labels for merging.
14674 2011-05-03 Mark Wielaard <mjw@redhat.com>
14676 * dwarf2out.c (debug_str_hash_forced): Removed.
14677 (gen_label_for_indirect_string): Removed.
14678 (get_debug_string_label): Removed.
14679 (AT_string_form): Generate label directly.
14680 (output_indirect_string): Test indirect_string_node for
14681 DW_FORM_strp instead of checking label and refcount.
14682 (prune_indirect_string): Removed.
14683 (prune_unused_types): Don't check debug_str_hash_forced or
14684 call prune_indirect_string.
14686 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
14689 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14691 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
14695 * combine.c (try_combine): Skip debug insns at m_split tests.
14697 2011-04-26 Mark Wielaard <mjw@redhat.com>
14700 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14701 when info_section_emitted.
14703 2011-05-03 Joseph Myers <joseph@codesourcery.com>
14705 * config/mips/mips-opts.h: New.
14706 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14708 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14709 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14710 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
14712 * config/mips/mips.h (enum mips_code_readable_setting): Move to
14714 (mips_abi, mips_code_readable): Don't declare.
14715 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14716 (mabi=): Use Enum and Var.
14717 (mips_abi): New Enum and EnumValue entries.
14718 (mcode-readable=): Use Enum and Var.
14719 (mips_code_readable_setting): New Enum and EnumValue entries.
14720 (mr10k-cache-barrier=): Use Enum and Var.
14721 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14723 2011-05-03 Jan Hubicka <jh@suse.cz>
14725 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14726 replace hash by pointer map.
14727 (cgraph_node_set_element_def, cgraph_node_set_element,
14728 const_cgraph_node_set_element, varpool_node_set_element_def,
14729 varpool_node_set_element, const_varpool_node_set_element): Remove.
14730 (free_cgraph_node_set, free_varpool_node_set): New function.
14731 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14732 * tree-emutls.c: Free varpool node set.
14733 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14734 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14735 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14736 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14737 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14738 Move here from ipa.c; implement using pointer_map
14739 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14740 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14741 debug_cgraph_node_set, varpool_node_set_new,
14742 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14743 dump_varpool_node_set, debug_varpool_node_set):
14744 Move to ipa-uitls.c.
14745 * passes.c (ipa_write_summaries): Update.
14747 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14749 From Mike Frysinger:
14750 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14751 bf542/bf544/bf547/bf548/bf549.
14753 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
14755 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14757 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14759 From Bernd Schmidt:
14760 * config/bfin/bfin.md (MOVCC): New mode_macro.
14761 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14762 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
14763 comments from generated assembly.
14765 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14768 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14769 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14770 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14771 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14772 * config/bfin/lib1funcs.asm (___muldi3): New function.
14774 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14776 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14777 build_function_type_list instead of build_function_type.
14778 Rearrange initialization of `args' to do so.
14780 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14782 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14783 instead of build_function_type.
14785 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14787 * config/rs6000/rs6000.c (spe_init_builtins): Call
14788 build_function_type_list instead of build_function_type.
14789 (paired_init_builtins, altivec_init_builtins): Likewise.
14790 (builtin_function_type): Likewise.
14792 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14794 * config/sh/sh.c (sh_media_init_builtins): Call
14795 build_function_type_list instead of build_function_type.
14797 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14799 * config/sparc/sparc.c (sparc_file_end): Call
14800 build_function_type_list instead of build_function_type.
14802 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14804 * config/alpha/alpha.c (alpha_init_builtins): Call
14805 build_function_type_list instead of build_function_type.
14807 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14809 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
14810 build_function_type_list instead of build_function_type.
14812 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14814 * config/iq2000/i2000.c (iq2000_init_builtins): Call
14815 build_function_type_list instead of build_function_type.
14816 Delete `endlink' variable.
14818 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14820 * config/avr/avr.c (avr_init_builtins): Call
14821 build_function_type_list instead of build_function_type.
14823 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14825 * config/picochip/picochip.c (picochip_init_builtins): Call
14826 build_function_type_list instead of build_function_type.
14827 Delete `endlink' variable.
14829 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14831 * config/bfin/bfin.c (bfin_init_builtins): Call
14832 build_function_type_list instead of build_function_type.
14834 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14837 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14838 that's not CONST_INT. Seemingly redundant check is due to PR39768.
14840 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14843 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14844 libbffastfp overrides libgcc when -mfast-fp.
14846 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14848 Originally from Bernd Schmidt
14849 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14850 * config/bfin/bfin.c (override_options): Test it and error if
14853 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14855 Originally From Bernd Schmidt
14856 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14859 2011-05-03 Jeff Law <law@redhat.com>
14861 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14862 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14863 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14864 than accessing AUX field directly. Free the AUX field before
14866 (thread_block, thread_through_loop_header): Likewise.
14867 (thread_single_edge, mark_threaded_blocks): Likewise.
14868 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
14869 (register_jump_thread): Do not attempt to thread to a NULL edge.
14871 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
14873 * function.c (init_function_start): Call decide_function_section.
14874 * varasm.c (decide_function_section): New function.
14875 (assemble_start_function): When not using
14876 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14877 or first_function_block_is_cold.
14878 * rtl.h (decide_function_section): Declare.
14880 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
14881 Jakub Jelinek <jakub@redhat.com>
14884 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14885 only succeed if req_mode is the same as set_mode.
14887 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
14889 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14890 * genemit.c (gen_exp): Handle RETURN.
14891 * emit-rtl.c (verify_rtx_sharing): Likewise.
14892 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14893 * rtl.c (copy_rtx): RETURN is shared.
14894 * rtl.h (enum global_rtl_index): Add GR_RETURN.
14896 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14897 * config/s390/s390.c (s390_emit_epilogue): Likewise.
14898 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14899 * config/cris/cris.c (cris_expand_return): Likewise.
14900 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14901 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14902 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14903 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14904 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14906 * config/v850/v850.c (expand_epilogue): Likewise.
14907 * config/bfin/bfin.c (bfin_expand_call): Likewise.
14908 * config/arm/arm.md (epilogue): Likewise.
14909 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14910 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14911 variable to ret_reg.
14913 2011-05-03 Richard Guenther <rguenther@suse.de>
14916 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14917 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14918 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14920 2011-05-03 Richard Guenther <rguenther@suse.de>
14922 * c-decl.c (grokdeclarator): Instead of looking at
14923 TREE_OVERFLOW check if the constant fits in the index type.
14925 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
14927 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14928 (vec_store_lanes<mode><mode>): Likewise.
14930 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
14932 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14933 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14934 convert_optab_index values.
14935 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14936 * genopinit.c (optabs): Initialize the new optabs.
14937 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14938 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14939 (expand_STORE_LANES): New functions.
14940 * tree.h (build_array_type_nelts): Declare.
14941 * tree.c (build_array_type_nelts): New function.
14942 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14943 (vect_model_load_cost): Likewise.
14944 (vect_store_lanes_supported, vect_load_lanes_supported)
14945 (vect_record_strided_load_vectors): Declare.
14946 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14947 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14948 (vect_transform_strided_load): Split out statement recording into...
14949 (vect_record_strided_load_vectors): ...this new function.
14950 * tree-vect-stmts.c (create_vector_array, read_vector_array)
14951 (write_vector_array, create_array_ref): New functions.
14952 (vect_model_store_cost): Add store_lanes_p argument.
14953 (vect_model_load_cost): Add load_lanes_p argument.
14954 (vectorizable_store): Try to use store-lanes functions for
14955 interleaved stores.
14956 (vectorizable_load): Likewise load-lanes and loads.
14957 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14958 to vect_model_store_cost.
14959 (vect_build_slp_tree): Likewise vect_model_load_cost.
14961 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
14963 * hooks.h (hook_bool_mode_uhwi_false): Declare.
14964 * hooks.c (hook_bool_mode_uhwi_false): New function.
14965 * target.def (array_mode_supported_p): New hook.
14966 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14967 * doc/tm.texi: Regenerate.
14968 * stor-layout.c (mode_for_array): New function.
14969 (layout_type): Use it.
14970 * config/arm/arm.c (arm_array_mode_supported_p): New function.
14971 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14973 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
14976 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14977 for -fstack-check if the size to allocate is negative.
14979 2011-05-02 Lawrence Crowl <crowl@google.com>
14981 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14982 (timevar_cond_start): New for starting a timer only when it is not
14984 (timevar_cond_stop): New for stopping a timer when it was not already
14987 * timevar.c (timevar_stop): Enable start/stop timers to start again.
14988 (timevar_cond_start): New as above.
14989 (timevar_cond_stop): New as above.
14991 * timevar.def: Add start/stop timers for compiler phases,
14992 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14993 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14994 and TV_PHASE_FINALIZE.
14995 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14996 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14997 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
14998 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
14999 Make unused TV_OVERLOAD into a start/stop timer.
15001 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15002 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15003 to indicate that they are start/stop timers.
15005 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15006 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15007 Move initialization to do_compile.
15008 (do_compile): Add initialization from above.
15009 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15011 * c-decl.c (c_write_global_declarations): Add start/stop of
15012 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15014 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15015 or TV_PARSE_INLINE, as appropriate.
15016 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15017 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15019 2011-05-02 Jason Merrill <jason@redhat.com>
15022 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15024 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
15027 * c-decl.c (finish_decl): Only create a composite if the types are
15030 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15032 * config/fr30/fr30-protos.h (Mmode): Don't define.
15033 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
15034 definition where used.
15035 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15036 define. Expand definitions where used.
15037 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15038 Expand definitions where used.
15039 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15040 rx_function_arg, rx_function_arg_advance,
15041 rx_function_arg_boundary): Expand definitions of those macros.
15042 * config/v850/v850-protos.h (Mmode): Don't define. Expand
15043 definition where used.
15045 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15047 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15049 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15050 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
15051 with *movv2sf_internal_rex64_avx.
15052 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15053 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15054 Use %v prefix in insn mnemonic to handle TARGET_AVX.
15055 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
15056 "vex" in "prefix" attribute calculation.
15057 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
15059 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
15062 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15063 inputs match the output.
15065 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
15068 * config/m68k/m68k.c (m68k_expand_prologue): Set
15069 current_function_static_stack_size.
15071 2011-05-02 Jan Hubicka <jh@suse.cz>
15073 * lto-streamer.c (lto_streamer_cache_insert_1,
15074 lto_streamer_cache_lookup, lto_streamer_cache_create,
15075 lto_streamer_cache_delete): Use pointer map instead of hashtable.
15076 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15078 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15080 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15081 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15082 config/m68k/t-opts: New files.
15083 * config/m68k/m68k-tables.opt: New file (generated).
15084 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15085 extra_options and m68k/t-opts to tmake_file.
15086 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15087 (all_isas): Initialize using m68k-isas.def.
15088 (all_microarchs): Initialize using m68k-microarchs.def.
15089 (m68k_find_selection): Remove.
15090 (m68k_handle_option): Don't assert that global structures are in
15091 use. Use error_at. Access variables via opts pointer. Don't
15092 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
15093 directly for -m68020-40 and -m68020-60.
15094 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15095 m68k_tune_entry here.
15096 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15098 (m68k_library_id_string): Remove declaration.
15099 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15100 (m68k_library_id_string): New Variable.
15101 (march=, mcpu=, mtune=): Use Enum and Var.
15103 2011-05-02 Richard Guenther <rguenther@suse.de>
15105 * varasm.c (output_constructor_regular_field): Compute zero-based
15106 index with double-ints. Make sure to ICE instead of producing
15108 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15109 in asserts. Properly use a signed type.
15111 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15113 * config/i386/sse.md (V): New mode iterator.
15114 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
15116 (V_256): Rename from AVX256MODE.
15117 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
15118 condition to all users.
15120 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
15121 condition to all users.
15122 (VF_128): Make V4SF mode unconditional.
15123 (VF_256): Rename from AVX256MODEF2P.
15124 (VI4F_128): Rename from SSEMODE4S.
15125 (VI8F_128): Rename from SSEMODE2D.
15126 (VI4F_256): Rename from AVX256MODE8P.
15127 (VI8F_256): Rename from AVX256MODE4P.
15128 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15129 (ssescalarmodesuffix): Remove SF and DF modes.
15130 (SSEMODE124): Remove.
15131 (SSEMODE1248): Ditto.
15132 (SSEMODEF2P): Ditto.
15133 (AVXMODEF2P): Ditto.
15134 (AVXMODEFDP): Ditto.
15135 (AVXMODEFSP): Ditto.
15136 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15138 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
15140 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15141 xop_pcmov_<mode>256. Use V mode iterator.
15143 Adjust RTX patterns globally for renamed mode attributes.
15145 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15147 * haifa-sched.c (sched_emit_insn): Emit insn before first
15148 non-scheduled insn. Inform back-end about new insn. Add
15149 new insn to scheduled_insns list.
15151 2011-05-02 Richard Guenther <rguenther@suse.de>
15153 PR tree-optimization/48822
15154 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15155 (process_scc): Indicate which iteration we start.
15157 2011-05-02 Jan Hubicka <jh@suse.cz>
15159 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15160 (lto_section_overrun): New.
15161 * lto-section-out.c (append_block): Rename to ...
15162 (lto_append_block): ... this one; export.
15163 (lto_output_1_stream): Move lto lto-streamer.h
15164 (lto_output_data_stream): Update.
15165 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15166 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15169 2011-05-02 Richard Guenther <rguenther@suse.de>
15171 * tree.c (tree_code_counts): New global array.
15172 (record_node_allocation_statistics): Count individual tree codes.
15173 (dump_tree_statistics): Dump individual code stats.
15175 2011-05-01 Jan Hubicka <jh@suse.cz>
15177 * ipa-inline.c (caller_growth_limits): Fix thinko when
15178 looking for largest stack frame.
15179 * ipa-inline.h (dump_inline_summary): Declare.
15180 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15182 (dump_inline_summary): Export.
15183 (debug_inline_summary): Declare as DEBUG_FUNCTION.
15185 2011-05-01 Anatoly Sokolov <aesok@post.ru>
15187 * reginfo.c (memory_move_cost): Change rclass argument type form
15188 'enum reg_class' to reg_class_t.
15189 * reload.h (memory_move_cost): Update prototype.
15190 * postreload.c reload_cse_simplify_set): Change type dclass var to
15192 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15194 (ira_allocate_and_set_costs): Change aclass argument type form
15195 'enum reg_class' to reg_class_t.
15196 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15197 Change aclass argument type to reg_class_t.
15198 (update_conflict_hard_reg_costs): Change type aclass and pref vars
15200 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15201 memory_move_cost call.
15203 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15204 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15205 Change type tmp var to reg_class_t.
15207 2011-04-30 Jan Hubicka <jh@suse.cz>
15209 * ipa-inline.c (can_inline_edge_p): Disregard limits when
15210 inlining into function with flatten attribute.
15211 (want_inline_small_function_p): Be more realistic about inlining
15212 cold calls where callee size grows.
15214 2011-04-30 Jan Hubicka <jh@suse.cz>
15216 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15219 2011-04-30 Anatoly Sokolov <aesok@post.ru>
15221 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15222 PRINT_OPERAND_PUNCT_VALID_P): Remove.
15223 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15224 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15225 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15226 (print_operand): Rename to...
15227 (sparc_print_operand): ...this. Make static. Adjust
15228 sparc_print_operand function call.
15229 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15232 2011-04-30 Jan Hubicka <jh@suse.cz>
15234 PR middle-end/48752
15235 * ipa-inline.c (early_inliner): Disable when doing late
15236 addition of function.
15238 2011-04-30 Jakub Jelinek <jakub@redhat.com>
15240 * dwarf2out.c (get_address_mode): New inline.
15241 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15242 if not dwarf_strict emit
15243 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15244 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15245 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
15246 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15247 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15248 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15249 mem_loc_descriptor callers.
15250 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15251 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15252 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15253 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15254 (base_types): New variable.
15255 (get_base_type_offset, calc_base_type_die_sizes,
15256 base_type_for_mode, mark_base_types, base_type_cmp,
15257 move_marked_base_types): New functions.
15258 (calc_die_sizes): Assert that die_offset is 0 or equal to
15260 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15261 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
15262 callers. If not dwarf_strict, call mem_loc_descriptor even for
15263 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15264 (gen_subprogram_die): Don't give up on call site parameters
15265 with non-integral or large integral modes. Adjust
15266 mem_loc_descriptor callers.
15267 (prune_unused_types): Call prune_unused_types_mark on base_types
15269 (resolve_addr): Call mark_base_types.
15270 (dwarf2out_finish): Call move_marked_base_types.
15272 PR tree-optimization/48809
15273 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15275 (gen_inbound_check): Don't compute index_expr - range_min in utype
15276 again, instead reuse SSA_NAME initialized in build_arrays.
15277 Remove two useless gsi_for_stmt calls.
15279 2011-04-29 Jeff Law <law@redhat.com>
15281 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15283 2011-04-29 Martin Jambor <mjambor@suse.cz>
15285 * cgraph.h (cgraph_postorder): Remove declaration.
15286 * ipa-utils.h (ipa_free_postorder_info): Declare.
15287 (ipa_reverse_postorder): Likewise.
15288 * cgraphunit.c: Include ipa-utils.h.
15289 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15290 * ipa-inline.c: Include ipa-utils.h.
15291 (ipa_inline): Update call to ipa_reverse_postorder.
15292 * ipa-pure-const.c (propagate_pure_const): Update call to
15293 ipa_reduced_postorder and ipa_print_order. Call
15294 ipa_free_postorder_info to clean up.
15295 (propagate_nothrow): Likewise.
15296 * ipa-reference.c (propagate): Removed a useless call to
15297 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15298 and ipa_print_order. Call ipa_free_postorder_info to clean up.
15299 * ipa.c: Include ipa-utils.h.
15300 (ipa_profile): Update call to ipa_reverse_postorder.
15301 (cgraph_postorder): Moved to...
15302 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15303 (ipa_utils_print_order): Renamed to ipa_print_order.
15304 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15306 (ipa_free_postorder_info): New function.
15307 * passes.c: Include ipa-utils.h.
15308 (do_per_function_toporder): Update call to ipa_reverse_postorder.
15309 (ipa_write_summaries): Likewise.
15310 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15311 (cgraphunit.o): Likewise.
15313 (ipa-inline.o): Likewise.
15315 2011-04-29 Jan Hubicka <jh@suse.cz>
15317 * gcc.dg/tree-ssa/inline-10.c: New testcase.
15318 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15319 * ipa-inline.h (clause_t): Turn into unsigned int.
15320 * ipa-inline-analysis.c (add_clause): Do more simplification.
15321 (and_predicates): Shortcut more cases.
15322 (predicates_equal_p): Move forward; check that clauses are properly
15324 (or_predicates): Shortcut more cases.
15325 (edge_execution_predicate): Rewrite as...
15326 (set_cond_stmt_execution_predicate): ... this function; handle
15327 __builtin_constant_p.
15328 (set_switch_stmt_execution_predicate): New .
15329 (compute_bb_predicates): New.
15330 (will_be_nonconstant_predicate): Update TODO.
15331 (estimate_function_body_sizes): Use compute_bb_predicates
15332 and free them later, always try to estimate if stmt is constant.
15333 (estimate_time_after_inlining, estimate_size_after_inlining):
15334 Gracefully handle optimized out edges.
15335 (read_predicate): Fix off by one error.
15337 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
15339 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15341 2011-04-27 Xinliang David Li <davidxl@google.com>
15343 * tree-profile.c (init_ic_make_global_vars): Set
15344 tls attribute on ic vars.
15345 * coverage.c (coverage_end_function): Initialize
15346 function_list with zero.
15348 2011-04-29 Richard Guenther <rguenther@suse.de>
15350 * builtins.c (fold_builtin_classify_type): Use integer_type_node
15351 for the type of the result.
15352 (fold_builtin_isascii): Likewise.
15353 (fold_builtin_toascii): Use integer_type_node where appropriate.
15354 (fold_builtin_logb): Likewise.
15355 (fold_builtin_frexp): Likewise.
15356 (fold_builtin_strstr): Likewise.
15357 (fold_builtin_strpbrk): Likewise.
15358 (fold_builtin_fputs): Likewise.
15359 (fold_builtin_sprintf): Likewise.
15360 (fold_builtin_snprintf): Likewise.
15361 (fold_builtin_printf): Likewise.
15362 (do_mpfr_remquo): Use a proper type for the assigned constant.
15363 (do_mpfr_lgamma_r): Likewise.
15364 * dwarf2out.c (resolve_one_addr): Use size_int.
15365 * except.c (init_eh): Likewise.
15366 (assign_filter_values): Use integer_type_node for filter values.
15367 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15369 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15370 for EH region numbers.
15371 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15372 for the shift amount.
15374 2011-04-29 Richard Guenther <rguenther@suse.de>
15376 * expr.h (expand_shift): Rename to ...
15377 (expand_variable_shift): ... this.
15378 (expand_shift): Take a constant shift amount.
15379 * expmed.c (expand_shift): Rename to ...
15380 (expand_variable_shift): ... this.
15381 (expand_shift): New wrapper around expand_variable_shift.
15382 * expr.c (convert_move, emit_group_load_1, emit_group_store,
15383 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15384 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15385 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15386 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15387 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15388 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15389 emit_store_flag_1, emit_store_flag): Likewise.
15390 * builtins.c (expand_builtin_signbit): Likewise.
15391 * calls.c (load_register_parameters): Likewise.
15392 * function.c (assign_parm_setup_block): Likewise.
15393 * lower-subreg.c (resolve_shift_zext): Likewise.
15394 * optabs.c (widen_bswap, expand_abs_nojump,
15395 expand_one_cmpl_abs_nojump, expand_float): Likewise.
15396 * spu/spu.c (spu_expand_extv): Likewise.
15397 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15399 2011-04-29 Richard Guenther <rguenther@suse.de>
15401 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15402 for the remapped region number.
15403 * predict.c (build_predict_expr): Use integer_type_node for the
15405 * fold-const.c (fold_binary_loc): Use integer_type_node for
15406 the shift amount. Use a proper type for the PLUS_EXPR operand.
15408 2011-04-29 Michael Matz <matz@suse.de>
15410 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15411 other trees that just builtins.
15412 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15414 2011-04-29 Richard Guenther <rguenther@suse.de>
15416 * tree-nested.c (get_trampoline_type): Use size_int.
15417 (get_nl_goto_field): Likewise.
15418 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15420 (lower_eh_constructs_2): Likewise.
15421 (lower_resx): Likewise.
15422 (lower_eh_dispatch): Likewise.
15423 * tree-mudflap.c (mf_build_string): Use size_int.
15424 (mudflap_register_call): Use integer_type_node for the flag.
15425 (mudflap_enqueue_constant): Use size_int.
15426 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15427 instead of rebuilding it.
15429 2011-04-29 Richard Guenther <rguenther@suse.de>
15431 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15432 Handle OBJ_TYPE_REF.
15433 (find_func_aliases_for_call): Use it more consistently.
15435 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
15437 * haifa-sched.c (last_nondebug_scheduled_insn): New.
15438 (rank_for_schedule): Use it.
15439 (schedule_block): Set it.
15441 2011-04-28 David Li <davidxl@google.com>
15443 * tree.c (crc32_string): Use crc32_byte.
15444 (crc32_byte): New function.
15445 * tree.h (crc32_byte): New function.
15446 * gcov.c (read_graph_file): Handle new cfg_cksum.
15447 (read_count_file): Ditto.
15448 * profile.c (instrument_values): Ditto.
15449 (get_exec_counts): Ditto.
15450 (read_profile_edge_counts): Ditto.
15451 (compute_branch_probabilities): Ditto.
15452 (compute_value_histograms): Ditto.
15453 (branch_prob): Ditto.
15454 (end_branch_prob): Ditto.
15455 * coverage.c (read_counts_file): Ditto.
15456 (get_coverage_counts): Ditto.
15457 (tree_coverage_counter_addr): Ditto.
15458 (coverage_checksum_string): Ditto.
15459 (coverage_begin_output): Ditto.
15460 (coverage_end_function): Ditto.
15461 (build_fn_info_type): Ditto.
15462 (build_fn_info_value): Ditto.
15463 * libgcov.c (gcov_exit): Ditto.
15464 * gcov-dump.c (tag_function): Ditto.
15465 (compute_checksum): Remove.
15467 2011-04-29 Alan Modra <amodra@gmail.com>
15469 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15470 unspec plus offset. Tidy macho code.
15472 2011-04-29 Martin Jambor <mjambor@suse.cz>
15474 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15475 node instead of a decl. Update all callers.
15476 * cgraph.h: Update declaration.
15478 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
15480 PR tree-optimization/48765
15481 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15482 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15483 to indicate if loop aware SLP is being used. Scan the statements
15484 and update the vectorization factor according to the type of
15485 vectorization before statement analysis.
15486 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15487 pass it to vect_analyze_loop_operations.
15488 (vectorizable_reduction): Set number of copies to 1 in case of pure
15490 * tree-vect-stmts.c (vectorizable_conversion,
15491 vectorizable_assignment, vectorizable_shift,
15492 vectorizable_operation, vectorizable_type_demotion,
15493 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15495 (vectorizable_condition): Move the check that it is not SLP
15496 vectorization before the number of copies check.
15497 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15498 to vectorize the loop using SLP.
15500 2011-04-28 Jakub Jelinek <jakub@redhat.com>
15502 PR middle-end/48597
15503 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15506 2011-04-28 Joseph Myers <joseph@codesourcery.com>
15508 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15509 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15510 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15511 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15512 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15514 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15515 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15516 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15517 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15518 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15519 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15521 * config/i386/linux.h (REG_NAME): Don't define.
15522 * config/i386/linux64.h (REG_NAME): Don't define.
15523 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15524 Undefine before defining.
15526 2011-04-28 Jan Hubicka <jh@suse.cz>
15528 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15529 nonconstant_names array.
15530 (estimate_function_body_sizes): Build nonconstant_names array; handle
15531 BUILT_IN_CONSTANT_P.
15533 2011-04-28 Richard Guenther <rguenther@suse.de>
15537 2011-04-28 Richard Guenther <rguenther@suse.de>
15539 * tree-ssa-structalias.c (solve_constraints): Build succ graph
15540 as late as possible.
15542 2011-04-28 Richard Guenther <rguenther@suse.de>
15544 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15545 (debug_constraint): Do it here.
15546 (dump_constraints): And here.
15547 (rewrite_constraints): And here.
15548 (dump_constraint_edge): Remove.
15549 (dump_constraint_graph): Rewrite to produce DOT output.
15550 (solve_constraints): Build succ graph as late as possible.
15551 Dump constraint graphs before and after solving.
15553 2011-04-28 Richard Guenther <rguenther@suse.de>
15555 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15556 New function split out from ...
15557 (find_func_aliases): ... here. Call it.
15558 (find_func_aliases_for_call): Likewise.
15560 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
15562 * internal-fn.h (internal_fn_name_array): Declare.
15563 (internal_fn_flags_array): Likewise.
15565 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
15567 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
15568 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15570 (ssemodefsuffix): Remove.
15571 (ssevecmodesuffix): New mode attribute.
15572 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15573 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15574 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15575 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15576 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15577 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15578 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15579 ssemodesuffix mode attribute.
15580 (float splitters): Use ssevecmodesuffix mode attribute.
15581 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15582 (sseinsmode): Rename from avxvecmode.
15583 (avxsizesuffix): Rename from avxmodesuffix.
15584 (sseintvecmode): Rename from avxpermvecmode.
15585 (ssedoublevecmode): Rename from ssedoublesizemode.
15586 (ssehalfvecmode): Rename from avxhalfvecmode.
15587 (ssescalarmode): Rename from avxscalarmode.
15588 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15589 templates for ssemodesuffix mode attribute.
15590 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15593 Adjust RTX patterns globally for renamed mode attributes.
15595 2011-04-27 Jan Hubcika <jh@suse.cz>
15597 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15598 * ipa-inline-analysis.c: Include alloc-pool.h.
15599 (edge_predicate_pool): New.
15600 (trye_predicate_p): New function
15601 (false_predicate_p): New function.
15602 (add_clause): Sanity check that false clauses are "optimized";
15603 never add clauses to predicate that is already known to be false.
15604 (and_predicate): Use flase_predicate_p.
15605 (evaulate_predicate): Rename to ...
15606 (evaluate_predicate): ... this one; update all callers; assert
15607 that false is not listed among possible truths.
15608 (dump_predicate): Use true_predicate_p.
15609 (account_size_time): Use false_predicate_p.
15610 (evaulate_conditions_for_edge): Rename to ...
15611 (evaluate_conditions_for_edge) ... this one.
15612 (edge_set_predicate): New function.
15613 (inline_edge_duplication_hook): Duplicate edge predicates.
15614 (inline_edge_removal_hook): Free edge predicates.
15615 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15616 (dump_inline_summary): Update.
15617 (estimate_function_body_sizes): Set edge predicates.
15618 (estimate_calls_size_and_time): Handle predicates.
15619 (estimate_callee_size_and_time): Update.
15620 (remap_predicate): Add toplev_predicate; update comment.
15621 (remap_edge_predicates): New function.
15622 (inline_merge_summary): Compute toplev predicate; update.
15623 (read_predicate): New function.
15624 (read_inline_edge_summary): Use it.
15625 (inline_read_section): Likewise.
15626 (write_predicate): New function.
15627 (write_inline_edge_summary): Use it.
15628 (inline_write_summary): Likewise.
15629 (inline_free_summary): Free alloc pool and edge summary vec.
15631 2011-04-27 Richard Guenther <rguenther@suse.de>
15633 * tree-ssa-structalias.c (changed_count): Remove.
15634 (changed): Use a bitmap.
15635 (unify_nodes): Adjust.
15636 (do_sd_constraint): Likewise.
15637 (do_ds_constraint): Likewise.
15638 (do_complex_constraint): Likewise.
15639 (solve_graph): Likewise.
15641 2011-04-27 Jan Hubicka <jh@suse.cz>
15643 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15645 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
15647 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15648 (avx_vperm2f128_*_operand): Ditto.
15649 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15650 Use avx_vpermilp_parallel in insn condition.
15651 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15652 Use avx_vperm2f128_parallel in insn condition.
15654 2011-04-27 Richard Guenther <rguenther@suse.de>
15656 * Makefile.in (tree-ssa-structalias.o): Remove
15657 gt-tree-ssa-structalias.h dependency.
15658 (GTFILES): Remove tree-ssa-structalias.c.
15659 * tree.c (allocate_decl_uid): New function.
15660 (make_node_stat): Use it.
15661 (copy_node_stat): Likewise.
15662 * tree.h (allocate_decl_uid): Declare.
15663 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15664 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15665 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15666 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15667 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15668 (struct heapvar_map): Likewise.
15669 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15670 heapvar_insert): Likewise.
15671 (make_heapvar_for): Rename to ...
15672 (make_heapvar): ... this. Simplify.
15673 (fake_var_decl_obstack): New global var.
15674 (build_fake_var_decl): New function.
15675 (make_constraint_from_heapvar): Adjust.
15676 (handle_lhs_call): Likewise.
15677 (create_function_info_for): Likewise.
15678 (intra_create_variable_infos): Likewise.
15679 (init_alias_vars): Allocate fake_var_decl_obstack.
15680 (init_alias_heapvars, delete_alias_heapvars): Remove.
15681 (compute_points_to_sets): Do not call init_alias_heapvars.
15682 (ipa_pta_execute): Likewise.
15683 (delete_points_to_sets): Free fake_var_decl_obstack.
15685 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15687 * config/spu/divmovti4.c (union qword_UTItype): New data type.
15688 (si_from_UTItype, si_to_UTItype): New functions.
15689 (__udivmodti4): Use them to implement type-punning.
15690 * config/spu/multi3.c (union qword_TItype): New data type.
15691 (si_from_TItype, si_to_TItype): New functions.
15692 (__multi3): Use them to implement type-punning.
15694 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15696 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15698 2011-04-27 Jan Hubicka <jh@suse.cz>
15700 * ipa-prop.c (function_insertion_hook_holder): New holder.
15701 (ipa_add_new_function): New function.
15702 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15703 Register/deregister holder.
15705 2011-04-27 Richard Guenther <rguenther@suse.de>
15707 PR tree-optimization/48772
15708 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15710 2011-04-27 Richard Guenther <rguenther@suse.de>
15712 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15713 TARGET_MEM_REF handling.
15715 2011-04-27 Nick Clifton <nickc@redhat.com>
15717 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15718 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15719 (REG_CLASS_NAMES): Likewise.
15720 (REG_CLASS_CONTENTS): Likewise.
15721 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
15722 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
15723 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
15724 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
15725 (EVEN_REGS): New macro. Alias for QUAD_REGS.
15726 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15727 duplicate register classes.
15728 (frv_class_likely_spilled_p): Likewise.
15729 (frv_register_move_cost): Likewise.
15731 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15732 end of the regno_reg_class array.
15734 2011-04-27 Jakub Jelinek <jakub@redhat.com>
15737 * c-typeck.c (build_binary_op): Don't wrap arguments if
15738 int_operands is true.
15740 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
15743 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15744 targetm.calls.must_pass_in_stack for void type.
15746 2011-04-26 Jan Hubicka <jh@suse.cz>
15748 * cgraphbuild.c (build_cgraph_edges): Update call
15749 of cgraph_create_edge and cgraph_create_indirect_edge.
15750 * cgraph.c (cgraph_create_edge_including_clones,
15751 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15752 cgraph_update_edges_for_call_stmt_node): Do not take nest
15753 argument; do not initialize call_stmt_size/time.
15754 (dump_cgraph_node): Do not dump nest.
15755 (cgraph_clone_edge): Do not take loop_nest argument;
15756 do not propagate it; do not clone call_stmt_size/time.
15757 (cgraph_clone_node): Likewise.
15758 (cgraph_create_virtual_clone): Update.
15759 * cgraph.h (struct cgraph_edge): Remove
15760 call_stmt_size/call_stmt_time/loop_nest.
15761 (cgraph_create_edge, cgraph_create_indirect_edge,
15762 cgraph_create_edge_including_clones, cgraph_clone_node): Update
15764 * tree-emutls.c (gen_emutls_addr): Update.
15765 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15766 loop_nest; handle indirect calls, too.
15767 (clone_inlined_nodes): Do not care about updating inline summaries.
15768 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15769 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15770 stream call_stmt_size/call_stmt_time/loop_nest.
15771 * ipa-inline.c (edge_badness): Update.
15772 (ipa_inline): dump summaries after inlining.
15773 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15775 (inline_edge_summary): New function.
15776 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15777 (inline_edge_removal_hook): Handle edge summaries.
15778 (inline_edge_duplication_hook): New hook.
15779 (inline_summary_alloc): Alloc hooks.
15780 (initialize_growth_caches): Do not register removal hooks.
15781 (free_growth_caches); Do not free removal hook.
15782 (dump_inline_edge_summary): New function.
15783 (dump_inline_summary): Use it.
15784 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15785 (inline_update_callee_summaries): New function.
15786 (inline_merge_summary): Use it.
15787 (do_estimate_edge_time, do_estimate_edge_growth): Update.
15788 (read_inline_edge_summary): New function.
15789 (inline_read_section): Use it.
15790 (write_inline_edge_summary): New function.
15791 (inline_write_summary): Use it.
15792 (inline_free_summary): Free edge new holders.
15793 * tree-inline.c (copy_bb): Update.
15795 2011-04-26 Jason Merrill <jason@redhat.com>
15797 * tree-eh.c (lower_try_finally_switch): Create the label along with
15798 the CASE_LABEL_EXPR.
15800 2011-04-26 David S. Miller <davem@davemloft.net>
15801 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15803 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15804 * configure: Regenerate.
15806 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15809 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15811 (VEC_reduc): New code iterator and splitters for vector reduction.
15812 (VEC_reduc_name): Ditto.
15813 (VEC_reduc_rtx): Ditto.
15814 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15815 (reduc_<VEC_reduc_name>_v4sf): Ditto.
15817 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15818 support for extracting SF on VSX.
15820 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15821 generating xscvspdp.
15822 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15823 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15824 double add, minimum, maximum vector reduction.
15825 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15826 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15827 optimize double vector reduction.
15828 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15830 2011-04-26 Joseph Myers <joseph@codesourcery.com>
15832 * config/fr30/fr30.h (inhibit_libc): Don't define.
15833 * config/m32r/m32r-protos.h: Correct comment.
15834 * config/v850/v850.h (GHS_default_section_names,
15835 GHS_current_section_names): Use tree, not union tree_node *.
15837 2011-04-26 Xinliang David Li <davidxl@google.com>
15839 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15840 * c-family/c-opts.c (c_common_handle_option): Set
15841 warn_maybe_uninitialized.
15842 * opts.c (common_handle_option): Ditto.
15843 * common.opt: New option.
15844 * tree-ssa.c (warn_uninit): Add one more parameter.
15845 (warn_uninitialized_var): Pass warning code.
15846 * tree-flow.h: Interface change.
15848 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15850 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15851 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15852 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15854 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15856 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15857 * config/mips/mips.opt (mmips-tfile): Remove.
15859 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15860 mips-tdump reference to ...
15861 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
15862 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15863 reference by Tru64 UNIX.
15865 2011-04-26 Jakub Jelinek <jakub@redhat.com>
15868 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15869 is error_mark_node, set value to NULL.
15871 PR tree-optimization/48734
15872 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15873 if return value from maybe_fold_*_comparsions isn't something
15874 the code is prepared to handle.
15876 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
15878 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15880 (ext_QIreg_nomode_operands): Remove.
15881 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15885 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
15887 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15889 2011-04-26 Richard Guenther <rguenther@suse.de>
15891 * c-typeck.c (build_unary_op): Do not expand array-refs via
15892 pointer arithmetic. Only adjust qualifiers for function types.
15894 2011-04-26 Richard Guenther <rguenther@suse.de>
15896 PR middle-end/48694
15897 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15898 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15899 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
15900 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15902 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
15904 * doc/extend.texi: Document __underlying_type.
15906 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
15908 * config/rs6000/titan.md (automata_option "progress"): Remove.
15910 2011-04-25 Jeff Law <law@redhat.com>
15912 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15914 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15916 * system.h (ENUM_BITFIELD): Remove.
15918 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
15919 Eric Botcazou <ebotcazou@adacore.com>
15921 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15922 for STORE_FLAG_VALUE==-1 case.
15924 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
15927 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15928 LEGITIMATE_PIC_OPERAND_P.
15930 2011-04-24 Jan Hubicka <jh@suse.cz>
15932 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15934 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15935 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15936 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15937 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15938 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15939 Sanity check predicate length.
15940 (remap_predicate): Likewise; sanity check jump functions.
15941 (inline_read_section, inline_write_summary): Sanity check
15944 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
15947 * doc/extend.texi (Type Traits): Document __is_standard_layout,
15948 __is_literal_type, and __is_trivial; update throughout about
15949 possibly cv-qualified void types.
15951 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
15953 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15954 testsuite and make it version agnostic.
15956 2011-04-22 Jan Hubicka <jh@suse.cz>
15958 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15960 2011-04-23 Jakub Jelinek <jakub@redhat.com>
15963 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15964 to VOID_TYPE even around MODIFY_EXPR.
15966 2011-04-22 Mike Stump <mikestump@comcast.net>
15968 * gensupport.c (read_md_rtx): Fix typo in comment.
15969 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15972 2011-04-22 Jan Hubicka <jh@suse.cz>
15974 * gengtype.c (open_base_files): Add ipa-inline.h include.
15975 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15976 ipa-prop.c; update all uses.
15977 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15978 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15979 merge summary of inlined function into former caller.
15980 * ipa-inline.c (max_benefit): Remove.
15981 (edge_badness): Compensate for removal of benefits.
15982 (update_caller_keys): Use
15983 reset_node_growth_cache/reset_edge_growth_cache.
15984 (update_callee_keys): Likewise.
15985 (update_all_callee_keys): Likewise.
15986 (inline_small_functions): Do not collect max_benefit; do not reset
15987 estimated_growth; call free_growth_caches and initialize_growth_caches.
15988 * ipa-inline.h (struct condition, type clause_t, struct predicate,
15989 struct size_time_entry): New structures.
15990 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15991 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15992 and estimated_growth.
15993 (edge_growth_cache_entry): New structure.
15994 (node_growth_cache, edge_growth_cache): New global vars.
15995 (estimate_growth): Turn into inline.
15996 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15997 initialize_growth_caches, free_growth_caches): Declare.
15998 (estimate_edge_growth): Rewrite.
15999 (estimate_edge_time): Implement as inline cache lookup.
16000 (reset_node_growth_cache, reset_edge_growth_cache): New inline
16002 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16003 (NUM_CONDITIONS): New constant.
16004 (predicate_conditions): New enum.
16005 (IS_NOT_CONSTANT): New constant.
16006 (edge_removal_hook_holder): New var.
16007 (node_growth_cache, edge_growth_cache): New global vars.
16008 (true_predicate, single_cond_predicate, false_predicate,
16009 not_inlined_predicate, add_condition, add_clause, and_predicates,
16010 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16011 dump_clause, dump_predicate, account_size_time,
16012 evaulate_conditions_for_edge): New functions.
16013 (inline_summary_alloc): Move to heap.
16014 (inline_node_removal_hook): Clear condition and entry vectors.
16015 (inline_edge_removal_hook): New function.
16016 (initialize_growth_caches, free_growth_caches): New function.
16017 (dump_inline_summary): Update.
16018 (edge_execution_predicate): New function.
16019 (will_be_nonconstant_predicate): New function.
16020 (estimate_function_body_sizes): Compute BB and constantness predicates.
16021 (compute_inline_parameters): Do not clear estimated_growth.
16022 (estimate_edge_size_and_time): New function.
16023 (estimate_calls_size_and_time): New function.
16024 (estimate_callee_size_and_time): New function.
16025 (remap_predicate): New function.
16026 (inline_merge_summary): New function.
16027 (do_estimate_edge_time): New function based on...
16028 (estimate_edge_time): ... this one.
16029 (do_estimate_edge_growth): New function.
16030 (do_estimate_growth): New function based on....
16031 (estimate_growth): ... this one.
16032 (inline_analyze_function): Analyze after deciding on jump functions.
16033 (inline_read_section): New function.
16034 (inline_read_summary): Use it.
16035 (inline_write_summary): Write all the new data.
16036 * ipa-prop.c (ipa_get_param_decl_index): Export.
16037 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16038 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16040 (ipa_get_lattice): Move here from ipa-cp.c
16041 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16042 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16043 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16044 cgraph_edge_inlinable_p): Remove.
16045 * cgraphunit.c: Include ipainline.h
16046 (cgraph_process_new_functions): Update call of
16047 compute_inline_parameters.
16049 2011-04-22 Richard Guenther <rguenther@suse.de>
16051 * tree.c (build_int_cst): Properly create canonicalized integer
16053 (build_int_cst_type): Remove scary comments.
16055 2011-04-22 Xinliang David Li <davidxl@google.com>
16057 * toplev.c (process_options): Enable -Werror=coverage-mismatch
16058 by default when -Wno-error is not specified.
16059 * opts-global.c (decode_options): Remove call to
16060 control_warning_options.
16062 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16064 PR tree-optimization/48717
16065 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16066 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16068 2011-04-22 Joseph Myers <joseph@codesourcery.com>
16070 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
16071 definition where used.
16073 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16076 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16077 TREE_STATIC variables declared inside of some OpenMP construct.
16079 2011-04-22 Martin Jambor <mjambor@suse.cz>
16081 PR middle-end/48585
16082 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16084 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
16087 * c-typeck.c (pop_init_level): Do not warn about initializing
16090 2011-04-22 Alan Modra <amodra@gmail.com>
16092 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16093 when returning call_cookie.
16094 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16095 pointers, to functions with no more vector args than the current
16096 function, and some non-local calls for ABI_V4.
16097 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16098 sibcall_nonlocal_aix64): Combine to ..
16099 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
16100 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16101 (sibcall_value_nonlocal_aix<mode>): ..likewise.
16102 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16103 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
16105 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16106 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16107 sibcall_value_symbolic_64): Delete.
16109 2011-04-21 Xinliang David Li <davidxl@google.com>
16111 * cgraph.h: Remove pid.
16112 * cgraph.c: Remove pid.
16113 * value-prof.c (init_node_map): New function.
16114 (del_node_map): New function.
16115 (find_func_by_funcdef_no): New function.
16116 (gimple_ic_transform): Call new function.
16117 * cgraphunit.c (cgraph_finalize_function): Remove pid.
16118 * function.c (get_last_funcdef_no): New function.
16119 * function.h (get_last_funcdef_no): New function.
16120 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16121 to libgcov function.
16122 (tree-profiling): Call node map init and delete function.
16124 2011-04-21 Ian Lance Taylor <iant@google.com>
16126 * godump.c (go_format_type): Use exported Go name for anonymous
16129 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16131 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16132 Call builtin_function_type_list instead of builtin_function_type.
16133 (UNARY, BINARY, TRINARY, QUAD): Likewise.
16135 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16137 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16138 build_function_type_list instead of build_function_type.
16139 Delete variable `endlink'.
16141 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16143 * config/s390/s390.c (s390_init_builtins): Call
16144 build_function_type_list instead of build_function_type.
16146 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16148 * config/ia64/ia64.c (ia64_init_builtins): Call
16149 build_function_type_list instead of builtin_function_type.
16151 2011-04-21 Easwaran Raman <eraman@google.com>
16153 * cfgexpand.c (stack_var): Remove OFFSET...
16154 (add_stack_var): ...and its reference here...
16155 (expand_stack_vars): ...and here.
16156 (stack_var_cmp): Sort by descending order of size.
16157 (partition_stack_vars): Change heuristic.
16158 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16159 (dump_stack_var_partition): Add newline after each partition.
16161 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
16162 Jeff Law <law@redhat.com>
16164 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16165 * gengtype.c (matching_file_name_substitute): Likewise.
16167 2011-04-21 Richard Guenther <rguenther@suse.de>
16170 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16172 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
16174 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16176 2011-04-21 Richard Guenther <rguenther@suse.de>
16178 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16181 2011-04-21 Richard Guenther <rguenther@suse.de>
16183 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16184 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16185 Use DECL_P, not SSA_VAR_P.
16186 (ptr_derefs_may_alias_p): Likewise.
16187 (ptr_deref_may_alias_ref_p_1): Likewise.
16188 (decl_refs_may_alias_p): Likewise.
16189 (refs_may_alias_p_1): Likewise.
16190 (ref_maybe_used_by_call_p_1): Likewise.
16191 (call_may_clobber_ref_p_1): Likewise.
16192 (indirect_ref_may_alias_decl_p): Assume indirect refrences
16193 are either MEM_REF or TARGET_MEM_REF.
16194 (indirect_refs_may_alias_p): Likewise.
16195 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16196 for MEM_EXPR of indirect calls.
16198 2011-04-21 Tristan Gingold <gingold@adacore.com>
16200 * vmsdbgout.c (write_srccorr): Compute file length from the string.
16201 (dst_file_info_struct): Remove flen field.
16202 (lookup_filename): Remove code that set flen field.
16204 2011-04-21 Tristan Gingold <gingold@adacore.com>
16206 * config/ia64/ia64.c (ia64_start_function): Add a guard.
16208 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
16211 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16212 vec_extract and vec_concat for non-SSE4_1 targets.
16214 2011-04-21 Richard Guenther <rguenther@suse.de>
16216 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16219 2011-04-21 Joseph Myers <joseph@codesourcery.com>
16221 * config/i386/cygming.h (union tree_node, TREE): Don't define or
16223 (FILE): Don't undefine.
16225 2011-04-21 Joseph Myers <joseph@codesourcery.com>
16227 * config/alpha/alpha.c (struct machine_function): Use rtx, not
16229 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16231 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16232 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16233 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16235 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
16236 definitions where used.
16237 * config/microblaze/microblaze.h (struct microblaze_args): Use
16238 rtx, not struct rtx_def *.
16239 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16241 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16242 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16243 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16244 not struct rtx_def *.
16245 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16247 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16249 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16251 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16253 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16254 operand_equal_p to compare DR_BASE_ADDRESSes.
16255 (vect_check_interleaving): Likewise.
16257 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16260 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16261 for all Neon struct constants.
16263 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16265 * target.def (legitimate_constant_p): New hook.
16266 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16267 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16268 * doc/tm.texi: Regenerate.
16269 * hooks.h (hook_bool_mode_rtx_true): Declare.
16270 * hooks.c (hook_bool_mode_rtx_true): Define.
16271 * system.h (LEGITIMATE_CONSTANT_P): Poison.
16272 * calls.c (precompute_register_parameters): Replace uses of
16273 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16274 (emit_library_call_value_1): Likewise.
16275 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16276 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16277 * ira-costs.c (scan_one_insn): Likewise.
16278 * recog.c (general_operand, immediate_operand): Likewise.
16279 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16280 * reload1.c (init_eliminable_invariants): Likewise.
16282 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16284 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16285 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16287 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16288 * config/alpha/predicates.md (input_operand): Update call to
16289 alpha_legitimate_constant_p.
16291 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16292 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16293 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16294 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16295 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16296 (arm_legitimate_constant_p): New functions.
16297 (arm_cannot_force_const_mem): Make static.
16299 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16301 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16302 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16303 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16304 instead of bfin_legitimate_constant_p.
16305 (bfin_legitimate_constant_p): Make static. Add a mode argument.
16306 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16308 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16310 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16312 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16313 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16314 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16315 (frv_legitimate_constant_p): Make static. Add a mode argument.
16317 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16318 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16319 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16321 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16322 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16323 * config/i386/i386.c (legitimate_constant_p): Rename to...
16324 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
16326 (ix86_cannot_force_const_mem): Update accordingly.
16327 (ix86_legitimate_address_p): Likewise.
16328 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16329 * config/i386/i386.md: Update commentary.
16331 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16332 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16333 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16334 (ia64_legitimate_constant_p): Make static. Add a mode argument.
16336 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16338 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16339 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16340 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16341 (lm32_legitimate_constant_p): Make static. Add a mode argument.
16343 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16344 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16345 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16347 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16348 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16349 (m32r_legitimate_constant_p): New function.
16351 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16352 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16353 LEGITIMATE_CONSTANT_P.
16354 (LEGITIMATE_CONSTANT_P): Delete.
16355 * config/m68k/m68k.c (m68k_expand_prologue): Call
16356 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16357 (m68k_legitimate_constant_p): New function.
16358 * config/m68k/m68k.md: Update comments.
16360 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16361 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16362 (mcore_legitimate_constant_p): New function.
16364 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16365 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16366 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16367 Add a mode argument.
16368 (mep_legitimate_address): Update accordingly.
16369 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16371 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16373 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16374 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16375 static. Check OP's mode for VOIDmode.
16376 (microblaze_legitimate_constant_p): New function.
16377 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16379 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16380 * config/mips/mips.c (mips_legitimate_constant_p): New function.
16381 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16382 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16383 * config/mips/predicates.md: Update comments.
16385 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16386 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16387 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16388 (mmix_legitimate_constant_p): Make static, return a bool, and take
16390 (mmix_print_operand_address): Update accordingly.
16392 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16394 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16395 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16396 static. Add a mode argument.
16397 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16399 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16401 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16402 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16403 (pa_legitimate_constant_p): New function.
16405 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16407 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16408 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16409 (pdp11_legitimate_constant_p): New function.
16411 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16412 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16413 (rs6000_legitimate_constant_p): New function.
16415 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16416 (rx_legitimate_constant_p): ...this.
16417 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16418 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16419 (rx_legitimate_constant_p): ...this.
16420 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16421 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16423 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16424 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16425 * config/s390/s390.c (legitimate_constant_p): Rename to...
16426 (s390_legitimate_constant_p): ...this. Make static, return a bool,
16427 and add a mode argument.
16428 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16430 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16432 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16433 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16434 (sh_legitimate_constant_p): New function.
16436 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16437 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16438 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16439 (legitimate_constant_p): Rename to...
16440 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
16442 (constant_address_p): Update accordingly.
16444 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16445 argument and return a bool.
16446 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16447 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16448 (spu_legitimate_constant_p): Add a mode argument and return a bool.
16449 (spu_rtx_costs): Update accordingly.
16450 * config/spu/predicates.md (vec_imm_operand): Likewise.
16452 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16454 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16455 * config/v850/v850.c (v850_legitimate_constant_p): New function.
16456 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16458 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16459 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16460 * config/vax/vax.c (legitimate_constant_p): Likewise.
16462 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16463 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16464 (xtensa_legitimate_constant_p): New function.
16466 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16468 * target.def (cannot_force_const_mem): Add a mode argument.
16469 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16470 * doc/tm.texi: Regenerate.
16471 * hooks.h (hook_bool_mode_rtx_false): Declare.
16472 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16473 (hook_bool_mode_const_rtx_true): Likewise.
16474 (hook_bool_mode_rtx_false): New function.
16475 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16476 to be non-VOID. Update call to cannot_force_const_mem.
16477 (find_reloads): Update accordingly.
16478 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16479 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16481 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16482 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16483 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16484 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16485 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16486 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16487 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16488 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16489 (m68k_cannot_force_const_mem): ...this new function.
16490 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16492 (mips_const_insns, mips_legitimize_const_move): Update calls.
16493 (mips_secondary_reload_class): Likewise.
16494 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16495 (pa_cannot_force_const_mem): ...this new function.
16496 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16497 (rs6000_cannot_force_const_mem): ...this new function.
16498 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16500 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16501 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16503 (xtensa_cannot_force_const_mem): ...this new function.
16505 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
16507 * config/mips/mips.c (mips16_build_function_stub): Call
16508 build_function_type_list instead of build_function_type.
16509 (mips16_build_call_stub): Likewise.
16511 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
16513 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16514 instead of build_function_type.
16516 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
16518 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16519 instead of build_function_type.
16521 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
16524 * config/i386/i386.md (insv): Change operand 0 constraint to
16525 "register_operand". Change operand 1 and 2 constraint to
16526 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
16527 * config/i386/sse.md (sse4_1_pinsrb): Export.
16528 (sse2_pinsrw): Ditto.
16529 (sse4_1_pinsrd): Ditto.
16530 (sse4_1_pinsrq): Ditto.
16531 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16532 * config/i386/i386.c (ix86_expand_pinsr): New.
16534 2011-04-20 Easwaran Raman <eraman@google.com>
16536 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16537 containing union type only with -fstrict-aliasing.
16539 2011-04-20 Jim Meyering <meyering@redhat.com>
16541 Remove useless if-before-free tests.
16542 * calls.c (expand_call, save_area): Likewise.
16543 * cfgcleanup.c (try_forward_edges): Likewise.
16544 * collect2.c (collect_execute): Likewise.
16545 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16546 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16547 * coverage.c (coverage_checksum_string): Likewise.
16548 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16549 * cselib.c (cselib_init): Likewise.
16550 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16551 (df_set_clean_cfg): Likewise.
16552 * function.c (free_after_compilation): Likewise.
16553 * gcc.c (do_spec_1, main): Likewise.
16554 * gcov.c (create_file_names): Likewise.
16555 * gensupport.c (identify_predicable_attribute): Likewise.
16556 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16557 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16558 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16559 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16560 * ipa-pure-const.c (local_pure_const): Likewise.
16561 * ipa-reference.c (propagate): Likewise.
16562 * ira-costs.c (free_ira_costs): Likewise.
16563 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16564 * matrix-reorg.c (mat_free): Likewise.
16565 * prefix.c (get_key_value): Likewise.
16566 * profile.c (compute_value_histograms): Likewise.
16567 * reload1.c (free_reg_equiv): Likewise.
16568 * sched-deps.c (free_deps): Likewise.
16569 * sel-sched-ir.c (fence_clear): Likewise.
16570 * sese.c (set_rename, if_region_set_false_region): Likewise.
16571 * tree-data-ref.c (free_rdg): Likewise.
16572 * tree-eh.c (lower_try_finally): Likewise.
16573 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16574 * tree-ssa-live.c (delete_var_map): Likewise.
16575 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16576 * tree-ssa-pre.c (phi_trans_add): Likewise.
16578 2011-04-20 Jakub Jelinek <jakub@redhat.com>
16580 PR tree-optimization/48611
16581 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16582 beyond ERT_MUST_NOT_THROW region.
16584 2011-04-20 Catherine Moore <clm@codesourcery.com>
16586 * config/mips/mips.opt (mfix-24k): New.
16587 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16588 * config/mips/mips.md (length): Increase by 4 for stores if
16590 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16591 all noreorder if fixing 24K errata.
16592 * doc/invoke.texi: Document mfix-24k.
16594 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
16596 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16597 quad-word modes, reduce to 9-bit index range when above 1016 limit.
16599 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
16601 * config/arm/arm.c (arm_gen_constant): Move movw support ....
16602 (const_ok_for_op): ... to here.
16604 2011-04-20 Kai Tietz <ktietz@redhat.com>
16606 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16607 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16609 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
16611 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16613 2011-04-20 Richard Guenther <rguenther@suse.de>
16615 PR tree-optimization/47892
16616 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16617 are if-convertible.
16619 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
16621 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16623 2011-04-20 Tristan Gingold <gingold@adacore.com>
16625 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16627 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
16631 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16632 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16633 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16634 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16635 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16637 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16640 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16641 (avr_asm_named_section, avr_asm_output_aligned_common,
16642 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16643 New functions to update...
16644 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16645 (avr_asm_init_sections): Overwrite section callbacks for
16646 data_section, bss_section.
16647 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16649 (avr_file_end): ...here.
16651 2011-04-20 Richard Guenther <rguenther@suse.de>
16653 PR middle-end/48695
16654 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16655 objects and types here. Adjust for their offset before comparing.
16657 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
16659 * tree-vect-stmts.c (vectorizable_store): Only chain one related
16660 statement per copy.
16662 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
16664 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16665 (GIMPLE_H): Include $(INTERNAL_FN_H).
16666 (OBJS-common): Add internal-fn.o.
16667 (internal-fn.o): New rule.
16668 * internal-fn.def: New file.
16669 * internal-fn.h: Likewise.
16670 * internal-fn.c: Likewise.
16671 * gimple.h: Include internal-fn.h.
16672 (GF_CALL_INTERNAL): New gf_mask.
16673 (gimple_statement_call): Put fntype into a union with a new
16675 (gimple_build_call_internal): Declare.
16676 (gimple_build_call_internal_vec): Likewise.
16677 (gimple_call_same_target_p): Likewise.
16678 (gimple_call_internal_p): New function.
16679 (gimple_call_internal_fn): Likewise.
16680 (gimple_call_fntype): Return null for internal calls.
16681 (gimple_call_set_fntype): Assert that the function is not internal.
16682 (gimple_call_set_fn): Likewise.
16683 (gimple_call_set_fndecl): Likewise.
16684 (gimple_call_set_internal_fn): New function.
16685 (gimple_call_addr_fndecl): Handle null functions.
16686 (gimple_call_return_type): Likewise null types.
16687 * gimple.c (gimple_build_call_internal_1): New function.
16688 (gimple_build_call_internal): Likewise.
16689 (gimple_build_call_internal_vec): Likewise.
16690 (gimple_call_same_target_p): Likewise.
16691 (gimple_call_flags): Handle calls to internal functions.
16692 (gimple_call_fnspec): New function.
16693 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16694 (gimple_has_side_effects): Handle null functions.
16695 (gimple_rhs_has_side_effects): Likewise.
16696 (gimple_call_copy_skip_args): Handle calls to internal functions.
16697 * cfgexpand.c (expand_call_stmt): Likewise.
16698 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16699 * gimple-fold.c (gimple_fold_call): Handle null functions.
16700 (gimple_fold_stmt_to_constant_1): Don't fold
16701 calls to internal functions.
16702 * gimple-low.c (gimple_check_call_args): Handle calls to internal
16704 * gimple-pretty-print.c (dump_gimple_call): Likewise.
16705 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16706 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16707 (do_warn_unused_result): Likewise.
16708 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16709 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16710 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16711 the target of a call.
16712 (initialize_hash_element): Update accordingly.
16713 (hashable_expr_equal_p): Use gimple_call_same_target_p.
16714 (iterative_hash_hashable_expr): Handle calls to internal functions.
16715 (print_expr_hash_elt): Likewise.
16716 * tree-ssa-pre.c (can_value_number_call): Likewise.
16717 (eliminate): Handle null functions.
16718 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16719 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16720 (find_func_aliases): Likewise.
16721 * value-prof.c (gimple_ic_transform): Likewise.
16722 (gimple_indirect_call_to_profile): Likewise.
16723 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16724 * lto-streamer-out.c (output_gimple_stmt): Likewise.
16726 2011-04-19 Jan Hubicka <jh@suse.cz>
16728 * ipa-inline-transform.c (save_inline_function_body): Add comments.
16729 * ipa-inline.c (inline_small_functions): Compute summaries first,
16730 populate heap later.
16732 2011-04-19 Jan Hubicka <jh@suse.cz>
16734 * cgraph.h (save_inline_function_body): Remove.
16735 * ipa-inline-transform.c: New file, broke out of...
16736 * ipa-inline.c: ... this one; Update toplevel comment.
16737 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16739 (update_noncloned_frequencies): Move to ipa-inline-transform.c
16740 (cgraph_mark_inline_edge): Rename to inline_call; move to
16741 ipa-inline-transform.c.
16742 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16743 move to ipa-inline-transform.c
16744 (recursive_inlining, inline_small_functions, flatten_function,
16745 ipa_inline, inline_always_inline_functions,
16746 early_inline_small_functions): Update.
16747 (inline_transform): Move to ipa-inline-transform.c.
16748 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16750 * Makefile.in (ipa-inline-transform.o): New file.
16751 * cgraphunit.c (save_inline_function_body): Move to
16752 ipa-inline-transform.c
16754 2011-04-19 DJ Delorie <dj@redhat.com>
16756 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16757 registers if we already know there aren't any.
16758 (m32c_emit_epilogue): Don't emit a barrier here.
16759 (m32c_emit_eh_epilogue): Likewise.
16760 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16761 operands at expand time.
16762 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16764 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16765 duplicates. Provide aliases instead.
16766 * config/m32c/prologue.md (eh_return): Emit a barrier here.
16767 (eh_epilogue): Add a "(return)" here as a hint to other parts of
16770 2011-04-19 Anatoly Sokolov <aesok@post.ru>
16772 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16773 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16774 (general_or_i64_p, sparc_register_move_cost): New function.
16776 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16778 * doc/install.texi (Configuration, --enable-threads): Remove mach.
16779 Add lynx, mipssde. Sort table.
16781 2011-04-19 Xinliang David Li <davidxl@google.com>
16783 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16786 2011-04-19 Jakub Jelinek <jakub@redhat.com>
16789 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16790 is a SUBREG with non-MODE_INT mode inside of it.
16792 2011-04-19 Martin Jambor <mjambor@suse.cz>
16794 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16795 also according to actual contants.
16796 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16797 (gimple_fold_call): Use it.
16798 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16800 2011-04-19 Martin Jambor <mjambor@suse.cz>
16802 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16803 non-pointer assignments.
16805 2011-04-19 Martin Jambor <mjambor@suse.cz>
16807 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16808 account anc_offset and otr_type from the indirect edge info.
16809 * ipa-prop.c (get_ancestor_addr_info): New function.
16810 (compute_complex_ancestor_jump_func): Assignment analysis moved to
16811 get_ancestor_addr_info, call it.
16812 (ipa_note_param_call): Do not initialize information about polymorphic
16813 calls, return the indirect call graph edge. Remove the last
16814 parameter, adjust all callers.
16815 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16816 parameters. Initialize polymorphic information in the indirect edge.
16818 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
16821 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16822 the types if they have different enumeration identifiers.
16824 2011-04-19 Jan Hubicka <jh@suse.cz>
16826 * cgraph.h (cgraph_optimize_for_size_p): Declare.
16827 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16828 * predict.c (cgraph_optimize_for_size_p): Break out from ...
16829 (optimize_function_for_size_p) ... here.
16831 2011-04-19 Richard Guenther <rguenther@suse.de>
16834 * tree.c (free_lang_data): Do not reset the decl-assembler-name
16837 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
16839 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16840 if DECL_NO_INLINE_WARNING_P is set on the function.
16842 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
16845 * reload1.c (inc_for_reload): Return void. All callers changed.
16846 (emit_input_reload_insns): Don't try to delete previous output
16847 reloads to a register, or record spill_reg_store for autoincs.
16849 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
16851 * gengtype.h: Updated copyright year.
16852 (struct input_file_st): Add inpisplugin field.
16853 (type_fileloc): New function.
16855 (write_typed_struct_alloc_def): Add gcc_assert.
16856 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16857 (write_typed_alloc_defns): Don't output for plugin files.
16858 (input_file_by_name): Clear inpisplugin field.
16859 (main): Set inpisplugin field for plugin files.
16861 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
16863 * gengtype-state.c (string_eq): New.
16864 (read_state): Use string_eq instead of strcmp when creating the
16867 2011-04-19 Wei Guozhi <carrot@google.com>
16870 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16871 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16873 * config/arm/constraints.md (Uu): New constraint.
16874 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16876 2011-04-19 Tristan Gingold <gingold@adacore.com>
16878 * config.gcc (-*-*-*vms): Added.
16879 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16881 * config/vms/vms-ld.c: New file.
16882 * config/vms/vms-ar.c: New file.
16883 * config/vms/t-vmsnative: New file.
16885 2011-04-18 Xinliang David Li <davidxl@google.com>
16887 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16889 2011-04-18 Jakub Jelinek <jakub@redhat.com>
16891 PR middle-end/48661
16892 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16893 if TREE_TYPE (v) is non-NULL.
16895 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16896 gimple_get_virt_mehtod_for_binfo.
16897 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16898 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16900 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16902 2011-04-18 Michael Matz <matz@suse.de>
16903 Steve Ellcey <sje@cup.hp.com>
16905 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16906 use its mode as source mode if it isn't VOIDmode.
16908 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
16910 * doc/passes.texi: Fill crossref nodes.
16912 2011-04-18 Jim Meyering <meyering@redhat.com>
16914 Fix doubled-word typos in comments and strings
16915 * config/alpha/vms-unwind.h: s/for for/for/
16916 * config/arm/unwind-arm.h: Likewise.
16917 * config/microblaze/microblaze.c: Likewise.
16918 * config/sh/constraints.md: s/in in/in/
16919 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16921 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
16923 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16924 (AVX_FLOAT_MODE_P): Ditto.
16925 (AVX128_VEC_FLOAT_MODE_P): Ditto.
16926 (AVX256_VEC_FLOAT_MODE_P): Ditto.
16927 (AVX_VEC_FLOAT_MODE_P): Ditto.
16928 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16929 (UNSPEC_MASKSTORE): Ditto.
16930 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16931 Merge from <sse>_movmsk<ssemodesuffix> and
16932 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
16933 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
16935 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16936 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16937 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16939 2011-04-18 Jan Hubicka <jh@suse.cz>
16941 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16943 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16944 (want_inline_function_called_once_p): Break out the logic from
16946 (edge_badness): Ensure that profile is not misupdated.
16947 (lookup_recursive_calls): Prioritize by call frequencies.
16948 (inline_small_functions): Move program size estimates here;
16949 actually process whole queue even when unit growth has been
16950 met. (to properly compute inline_failed reasons and for the
16951 case unit size decrease.) Revisit comments on recursive inlining.
16952 (ipa_inline): Remove unit summary code; first inline hot calls
16953 of functions called once, cold calls next.
16954 (order, nnodes): Remove unused variables.
16955 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16956 (GTFILES): Remove ipa-inline.c
16957 * sel-sched.c (fill_insns): Silence uninitialized var warning.
16959 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
16961 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16963 2011-04-18 Jie Zhang <jie@codesourcery.com>
16964 Richard Earnshaw <rearnsha@arm.com>
16966 * arm.c (neon_builtin_type_bits): Remove.
16967 (typedef enum neon_builtin_mode): New.
16968 (T_MAX): Don't define.
16969 (typedef enum neon_builtin_datum): Remove bits, codes[],
16970 num_vars and base_fcode. Add mode, code and fcode.
16971 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16972 VAR10): Change accordingly.
16973 (neon_builtin_data[]): Change accordingly
16974 (arm_init_neon_builtins): Change accordingly.
16975 (neon_builtin_compare): Remove.
16976 (locate_neon_builtin_icode): Remove.
16977 (arm_expand_neon_builtin): Change accordingly.
16979 * arm.h (enum arm_builtins): Move to ...
16980 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16982 * arm.c (arm_builtin_decl): Declare.
16983 (TARGET_BUILTIN_DECL): Define.
16984 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16985 (arm_builtin_decls[]): New.
16986 (arm_init_neon_builtins): Store builtin declarations in
16987 arm_builtin_decls[].
16988 (arm_init_tls_builtins): Likewise.
16989 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
16990 (arm_builtin_decl): New.
16992 2011-04-18 Richard Guenther <rguenther@suse.de>
16994 * tree.c (upper_bound_in_type): Build properly canonicalized
16996 (lower_bound_in_type): Likewise.
16998 2011-04-18 Richard Guenther <rguenther@suse.de>
17000 * gimple.h (gimple_call_addr_fndecl): New function.
17001 (gimple_call_fndecl): Use it.
17002 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17004 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17005 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17007 2011-04-18 Richard Guenther <rguenther@suse.de>
17009 PR middle-end/48650
17010 * tree.c (build_string): STRING_CST is now derived from tree_typed.
17012 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17015 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17016 DECL_IN_CONSTANT_POOL without RTL.
17018 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
17019 Ira Rosen <ira.rosen@linaro.org>
17022 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17023 to match neon_vzip/vuzp/vtrn_internal.
17024 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17025 outputs explicitly dependent on both inputs.
17026 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17028 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17030 PR tree-optimization/48616
17031 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17032 whether the shift is by scalar or vector based on whether all SLP
17033 scalar stmts have the same rhs.
17035 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
17037 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17040 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
17043 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17046 2011-04-17 Jan Hubicka <jh@suse.cz>
17048 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17049 * cgrpahunit.c (cgraph_finalize_function): Do not set
17050 finalized_by_frontend.
17051 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17052 finalized_by_frontend.
17054 2011-04-17 Jan Hubicka <jh@suse.cz>
17056 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17057 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17058 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17059 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17061 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17063 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17065 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17068 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17069 is non-null before accessing it.
17070 (input_cgraph): Remove trailing spaces.
17072 2011-04-17 Revital Eres <revital.eres@linaro.org>
17074 * params.def (sms-min-sc): New param flag.
17075 * modulo-sched.c (sms_schedule): Use it.
17076 * doc/invoke.texi (sms-min-sc): Document it.
17078 2011-04-17 Jan Hubicka <jh@suse.cz>
17080 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17081 present, also set gimple_call_set_cannot_inline.
17082 * ipa-inline.c: Update toplevel comment.
17083 (MAX_TIME): Remove.
17084 (cgraph_clone_inlined_nodes): Fix linebreaks.
17085 (cgraph_check_inline_limits): Restructure to ...
17086 (caller_growth_limits): ... this one; be more tolerant
17087 on growth in nested inline chains; add explanatory comment;
17088 fix stack accounting thinko introduced by previous patch.
17089 (cgraph_default_inline_p): Remove.
17090 (report_inline_failed_reason): New function.
17091 (can_inline_edge_p): New function.
17092 (can_early_inline_edge_p): New function.
17093 (leaf_node_p): Move upwards in file.
17094 (want_early_inline_function_p): New function.
17095 (want_inline_small_function_p): New function.
17096 (want_inline_self_recursive_call_p): New function.
17097 (cgraph_edge_badness): Rename to ...
17098 (edge_badness) ... this one; fix linebreaks.
17099 (update_edge_key): Update call of edge_baddness; add
17100 detailed dump about queue updates.
17101 (update_caller_keys): Use can_inline_edge_p and
17102 want_inline_small_function_p.
17103 (cgraph_decide_recursive_inlining): Rename to...
17104 (recursive_inlining): Use can_inline_edge_p and
17105 want_inline_self_recursive_call_p; simplify and remove no longer
17107 (cgraph_set_inline_failed): Remove.
17108 (add_new_edges_to_heap): Use can_inline_edge_p and
17109 want_inline_small_function_p.
17110 (cgraph_decide_inlining_of_small_functions): Rename to ...
17111 (inline_small_functions): ... this one; cleanup; use
17112 can/want predicates; cleanup debug ouput; work edges till fibheap
17113 is exhausted and do not stop once unit growth is reached; remove
17114 later loop processing remaining edges.
17115 (cgraph_flatten): Rename to ...
17116 (flatten_function): ... this one; use can_inline_edge_p
17117 and can_early_inline_edge_p predicates.
17118 (cgraph_decide_inlining): Rename to ...
17119 (ipa_inline): ... this one; remove unreachable nodes before
17120 inlining functions called once; simplify the pass.
17121 (cgraph_perform_always_inlining): Rename to ...
17122 (inline_always_inline_functions): ... this one; use
17123 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17124 (cgraph_decide_inlining_incrementally): Rename to ...
17125 (early_inline_small_functions): ... this one; simplify
17126 using new predicates; cleanup; make dumps prettier.
17127 (cgraph_early_inlining): Rename to ...
17128 (early_inliner): newer inline regular functions into always-inlines;
17129 fix updating of call stmt summaries.
17130 (pass_early_inline): Update for new names.
17131 (inline_transform): Fix formating.
17132 (gate_cgraph_decide_inlining): Rename to ...
17133 (pass_ipa_inline): ... this one.
17134 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17135 * ipa-inline-analysis.c (dump_inline_summary): Update.
17136 (compute_inline_parameters): Do not compute disregard_inline_limits;
17137 look for mismatching arguments.
17138 (estimate_growth): Fix handlig of non-trivial self recursion.
17139 (inline_read_summary): Do not read info->disregard_inline_limits.
17140 (inline_write_summary): Do not write info->disregard_inline_limits.
17141 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17142 and move all checks into can_inline_edge_p predicate; re-enable code
17143 comparing optimization levels.
17144 (expand_call_inline): Do not test inline_forbidden_into_p.
17145 * Makefile.in (ipa-inline.o): Update arguments.
17147 2011-04-17 Revital Eres <revital.eres@linaro.org>
17149 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17151 2011-04-17 Revital Eres <revital.eres@linaro.org>
17153 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17155 2011-04-17 Michael Matz <matz@suse.de>
17157 PR tree-optimization/48622
17159 * ipa-inline-analysis.c (inline_read_summary): Read size/time
17160 in same order as they're written.
17162 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17164 * config/pa/predicates.md: Reorganize and simplify predicates.
17165 Eliminate duplicate code checks.
17166 (arith_operand): Rename to arith14_operand
17167 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17168 * config/pa/pa.md: Use renamed operands.
17169 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17170 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17171 arith11_operand, adddi3_operand, indexed_memory_operand,
17172 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17173 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17174 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17175 move_dest_operand, move_src_operand, prefetch_cc_operand,
17176 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17177 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17178 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17179 div_operand, int5_operand, movb_comparison_operator,
17180 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17181 arith_double_operand, ireg_operand, lhs_lshift_operand,
17182 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17183 integer_store_memory_operand): Likewise.
17184 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17185 (integer_store_memory_operand, read_only_operand,
17186 function_label_operand, borx_reg_operand,
17187 non_hard_reg_operand): Likewise.
17188 (eq_neq_comparison_operator): Delete unused operator.
17189 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17190 function_label_operand.
17191 (emit_move_sequence): Likewise.
17193 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
17195 * config/i386/sse.md (sseunpackmode): New mode attribute.
17196 (ssepackmode): Ditto.
17197 (vec_pack_trunc_<mode>): Macroize expander from
17198 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17199 (vec_unpacks_lo_<mode>): Macroize expander from
17200 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17201 (vec_unpacks_hi_<mode>): Macroize expander from
17202 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17203 (vec_unpacku_lo_<mode>): Macroize expander from
17204 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17205 (vec_unpacku_hi_<mode>): Macroize expander from
17206 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17207 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17208 ix86_expand_sse4_unpack.
17209 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17211 2011-04-16 Jan Hubicka <jh@suse.cz>
17213 * cgraphbuild.c: Include ipa-inline.h.
17214 (reset_inline_failed): Use initialize_inline_failed.
17215 * cgraph.c: Include ipa-inline.h.
17216 (cgraph_create_node_1): Do not initialize estimated_growth.
17217 (initialize_inline_failed): More to ipa-inline-analysis.c
17218 (dump_cgraph_node): Do not dump inline flags.
17219 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17220 and disregard_inline_limits flags.
17221 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17222 time, size, estimated_growth.
17223 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17225 * cgraphunit.c (cgraph_decide_is_function_needed): Use
17226 DECL_DISREGARD_INLINE_LIMITS.
17227 (cgraph_analyze_function): Do not initialize
17228 node->local.disregard_inline_limits.
17229 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17230 inlinable, versionable and disregard_inline_limits.
17231 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17232 cgraph_check_inline_limits, cgraph_default_inline_p,
17233 cgraph_edge_badness, update_caller_keys, update_callee_keys,
17234 add_new_edges_to_heap): Update.
17235 (cgraph_decide_inlining_of_small_function): Update; set
17236 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17237 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17238 cgraph_decide_inlining_incrementally): Update.
17239 * ipa-inline.h (inline_summary): Add inlinable, versionable,
17240 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17241 time, size and estimated_growth parameters.
17242 (estimate_edge_growth): Update.
17243 (initialize_inline_failed): Declare.
17244 * ipa-split.c: Include ipa-inline.h
17245 (execute_split_functions): Update.
17246 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17247 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17248 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17249 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17250 estimated_growth to INT_MIN.
17251 (inline_node_duplication_hook): Likewise.
17252 (dump_inline_summary): Dump new fields.
17253 (compute_inline_parameters): Update.
17254 (estimate_edge_time, estimate_time_after_inlining,
17255 estimate_size_after_inlining, estimate_growth, inline_read_summary,
17256 inline_write_summary):
17257 (initialize_inline_failed): Move here from cgraph.c.
17258 * tree-sra.c: Include ipa-inline.h.
17259 (ipa_sra_preliminary_function_checks): Update.
17260 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17263 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
17265 * config/i386/sse.md (V16): New mode iterator.
17267 (AVXMODEQI, AVXMODEDI): Remove.
17268 (sse2, sse3): New mode attribute.
17269 (mov<mode>): Use V16 mode iterator.
17270 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17271 (push<mode>1): Use V16 mode iterator.
17272 (movmisalign<mode>): Ditto.
17273 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17274 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17275 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17276 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17277 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17278 avx_movdqu<avxmodesuffix>.
17279 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17280 *avx_movdqu<avxmodesuffix>.
17281 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17282 avx_lddqu<avxmodesuffix>.
17283 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17284 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17285 avx_movnt<AVXMODEDI:mode>.
17286 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17287 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17289 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
17292 * haifa-sched.c (prune_ready_list, schedule_block): Use
17293 sched_pressure_p rather than flag_sched_pressure.
17295 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
17297 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17298 cgraph_get_node instead of cgraph_get_create_node.
17300 2011-04-15 Jakub Jelinek <jakub@redhat.com>
17302 * cfgexpand.c (expand_debug_expr): Use
17303 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17305 2011-04-15 Michael Matz <matz@suse.de>
17307 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17308 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17309 * function.c (gimplify_parameters): Ditto.
17310 * gimplify.c (gimplify_vla_decl): Ditto.
17312 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17313 (gimple_call_set_alloca_for_var): New inline function.
17314 (gimple_call_alloca_for_var_p): Ditto.
17315 * gimple.c (gimple_build_call_from_tree): Remember
17316 CALL_ALLOCA_FOR_VAR_P state.
17317 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17319 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17320 calls if they were for VLA objects.
17322 2011-04-15 Martin Jambor <mjambor@suse.cz>
17324 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17327 2011-04-15 Martin Jambor <mjambor@suse.cz>
17329 PR middle-end/48601
17330 * tree-emutls.c (lower_emutls_function_body): Call
17331 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
17332 result is non-NULL.
17334 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
17336 * c-decl.c (detect_field_duplicates): Call
17337 objc_detect_field_duplicates instead of objc_get_interface_ivars.
17339 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
17341 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17342 * gimple.c (gimple_asm_clobbers_memory_p): Define.
17343 * ipa-pure-const.c (check_stmt): Call it.
17344 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17346 2011-04-15 Richard Guenther <rguenther@suse.de>
17348 PR tree-optimization/48290
17349 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17350 Properly decide inhibiting propagation based on the valueized
17351 operand. Do loop-closed SSA form preserving here ...
17352 (init_copy_prop): ... not here.
17354 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
17357 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17358 (*ieee_smax<mode>3): Likewise.
17360 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17362 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17363 Replace match_operand with match_dup for the third operand in
17366 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
17368 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17369 to track processing of conditionals. Update all callers.
17370 (try_combine, simplify_if_then_else): Update.
17372 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
17374 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17377 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
17379 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17380 instead of match_operand for operand 3.
17382 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
17384 * recog.h (insn_operand_data): Add an "allows_mem" field.
17385 * genoutput.c (output_operand_data): Initialize it.
17386 * optabs.c (maybe_legitimize_operand_same_code): New function.
17387 (maybe_legitimize_operand): Use it when matching the original
17390 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
17392 * gimplify.c: Fix issues in comments throughout.
17393 (voidify_wrapper_expr): Fix long line.
17394 (build_stack_save_restore): Likewise.
17395 (gimplify_loop_expr): Likewise.
17396 (gimplify_compound_lval): Likewise.
17397 (gimplify_init_ctor_eval): Likewise.
17398 (gimplify_modify_expr_rhs): Likewise.
17399 (omp_notice_threadprivate_variable): Likewise.
17401 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
17403 * cfgexpand.c (expand_call_stmt): Convert the function type to the
17404 original one if this is not a builtin function.
17406 2011-04-14 Jakub Jelinek <jakub@redhat.com>
17409 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17410 offset it as needed based on top 2 bits in operands[3], change
17411 MEM mode to SFmode and mask those 2 bits away from operands[3].
17413 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
17415 * c-parser.c (c_parser_objc_protocol_definition): Updated for
17416 change from objc_declare_protocols() to objc_declare_protocol().
17418 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
17420 * config/i386/sse.md (sse4_1): New mode attribute.
17421 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17422 avx_blend<ssemodesuffix><avxmodesuffix> and
17423 sse4_1_blend<ssemodesuffix> using VF mode iterator.
17424 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17425 avx_blendv<ssemodesuffix><avxmodesuffix> and
17426 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17427 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17428 avx_dp<ssemodesuffix><avxmodesuffix> and
17429 sse4_1_dp<ssemodesuffix> using VF mode iterator.
17430 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17431 (sse4_1_packusdw): Merge with *avx_packusdw.
17432 (sse4_1_pblendvb): Merge with *avx_pblendvb.
17433 (sse4_1_pblendw): Merge with *avx_pblendw.
17434 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17435 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17436 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17438 (sse4_1_round<ssescalarmodesuffix>): Merge with
17439 *avx_round<ssescalarmodesuffix>.
17440 (aesenc): Merge with *avx_aesenc.
17441 (aesenclast): Merge with *avx_aesenclast.
17442 (aesdec): Merge with *avx_aesdec.
17443 (aesdeclast): Merge with *avx_aesdeclast.
17444 (pclmulqdq): Merge with *pclmulqdq.
17445 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17447 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17449 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
17451 PR middle-end/48608
17452 * cfgexpand.c (get_decl_align_unit): Renamed to ...
17453 (align_local_variable): This. Update DECL_ALIGN.
17454 (add_stack_var): Updated.
17455 (expand_one_stack_var): Likewise.
17457 2011-04-14 Richard Guenther <rguenther@suse.de>
17459 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17461 (dse_initialize_block_local_data, dse_leave_block,
17462 record_voperand_set, get_stmt_uid): Likewise.
17463 (dse_possible_dead_store_p): Allow any kind of killing stmt.
17464 (dse_optimize_stmt): Remove voperand set handling code.
17465 Simplify and improve to handle any kind of killing stmt.
17466 (dse_record_phi): Remove.
17467 (dse_enter_block): Simplify.
17468 (tree_ssa_dse): Likewise.
17469 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17471 2011-04-14 Jan Hubicka <jh@suse.cz>
17473 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17474 * cgraph.h (struct inline_summary): Move to ipa-inline.h
17475 (cgraph_local_info): Remove inline_summary.
17476 * ipa-cp.c: Include ipa-inline.h.
17477 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17478 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17480 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17481 (input_overwrite_node): Do not set inline summary.
17482 (input_node): Do not stream inline summary.
17483 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17484 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17485 growth; we do not have inline parameters computed for that anyway.
17486 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17487 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17488 (inline_summary_t): New type and VECtor.
17489 (debug_inline_summary, dump_inline_summaries): Declare.
17490 (inline_summary): Use VOCtor.
17491 (estimate_edge_growth): Kill hack computing call stmt size directly.
17492 * lto-section-in.c (lto_section_name): Add inline section.
17493 * ipa-inline-analysis.c: Include lto-streamer.h
17494 (node_removal_hook_holder, node_duplication_hook_holder): New holders
17495 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17496 (inline_summary_vec): Define.
17497 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17498 dump_inline_summaries): New functions.
17499 (estimate_function_body_sizes): Properly compute size/time of outgoing
17501 (compute_inline_parameters): Alloc inline_summary; do not compute
17502 size/time of incomming calls.
17503 (estimate_edge_time): Avoid missing time summary hack.
17504 (inline_read_summary): Read inline summary info.
17505 (inline_write_summary): Write inline summary info.
17506 (inline_free_summary): Free all hooks and inline summary vector.
17507 * lto-streamer.h: Add LTO_section_inline_summary section.
17508 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17509 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17511 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17513 * tree-vectorizer.h (vect_strided_store_supported): Add a
17514 HOST_WIDE_INT argument.
17515 (vect_strided_load_supported): Likewise.
17516 (vect_permute_store_chain): Return void.
17517 (vect_transform_strided_load): Likewise.
17518 (vect_permute_load_chain): Delete.
17519 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17520 count argument. Check that the count is a power of two.
17521 (vect_strided_load_supported): Likewise.
17522 (vect_permute_store_chain): Return void. Update after above changes.
17523 Assert that the access is supported.
17524 (vect_permute_load_chain): Likewise.
17525 (vect_transform_strided_load): Return void.
17526 * tree-vect-stmts.c (vectorizable_store): Update calls after
17527 above interface changes.
17528 (vectorizable_load): Likewise.
17529 (vect_analyze_stmt): Don't check for strided powers of two here.
17531 2011-04-14 Richard Guenther <rguenther@suse.de>
17533 PR tree-optimization/48590
17534 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17535 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17536 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17537 BUILT_IN_STACK_SAVE.
17538 * tree-ssa-dce.c (propagate_necessity): Handle
17539 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17541 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
17543 * c-parser.c (c_parser_objc_class_declaration): Updated call to
17544 objc_declare_class.
17546 2011-04-14 Richard Guenther <rguenther@suse.de>
17548 * tree.h (get_object_alignment_1): Declare.
17549 * builtins.c (get_object_alignment_1): Split out worker from ...
17550 (get_object_alignment): ... here.
17551 * fold-const.c (get_pointer_modulus_and_residue): Use
17552 get_object_alignment_1.
17554 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17556 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17558 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17559 parameter. Generalise code to handle arrays as well as vectors.
17560 (vect_setup_realignment): Update accordingly.
17561 * tree-vect-stmts.c (vectorizable_store): Likewise.
17562 (vectorizable_load): Likewise.
17564 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17566 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17567 within the per-copy loop.
17569 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17571 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17574 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17576 * doc/options.texi (Negative): Explicitly mention that the
17577 Negative chain must be circular.
17579 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
17581 * function.h (block_chainon): Declare.
17582 * function.c (block_chainon): Define.
17584 2011-04-14 Anatoly Sokolov <aesok@post.ru>
17585 Eric Weddington <eric.weddington@atmel.com>
17586 Georg-Johann Lay <avr@gjlay.de>
17588 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17590 (avr_init_builtins, avr_expand_builtin,
17591 avr_expand_delay_cycles, avr_expand_unop_builtin,
17592 avr_expand_binop_builtin ): New functions.
17593 (avr_builtin_id): New enum
17594 (struct avr_builtin_description): New struct
17595 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17596 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17598 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17599 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17600 UNSPECV_DELAY_CYCLES): new enumeration values
17601 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17602 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17603 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17604 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17605 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17606 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17607 "fmulsu"): New insns
17609 * config/avr/avr-c.c: fix line endings
17610 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17611 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17612 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17613 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17614 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17616 * doc/extend.texi (AVR Built-in Functions): New node
17617 (Target Builtins): Add documentation of AVR
17618 built-in functions.
17620 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
17623 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17624 alone. Error if non-const data has attribute progmem.
17626 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17628 * tree.h (struct tree_constructor): Include tree_typed instead of
17630 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17631 TS_TYPED instead of TS_COMMON.
17633 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
17635 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17636 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17637 (sse2_psadbw): Merge with *avx_psadbw.
17638 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17639 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17640 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17641 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17642 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17643 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17644 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17645 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17646 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17647 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17648 (ssse3_palignrti): Merge with *avx_palignrti.
17650 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17652 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17653 * tree-ssanames.c (fini_ssanames): VEC_free it.
17654 (make_ssa_name_fn): Update for VECness of free_ssanames.
17655 (release_ssa_name, release_dead_ssa_names): Likewise.
17656 * tree.h (struct tree_ssa_name): Include tree_typed instead of
17658 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17659 TS_TYPED instead of TS_COMMON.
17661 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17663 * postreload-gcse.c (gcse_after_reload_main): Add calls to
17664 statistics_counter_event.
17665 * tree-ssa-copyrename.c (stats): Define.
17666 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
17667 statistics_counter_event.
17668 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17669 (bswap_stats, widen_mul_stats): Define.
17670 (insert_reciprocals): Increment rdivs_inserted.
17671 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
17672 rfuncs_inserted. Add calls to statistics_counter_event.
17673 (execute_cse_sincos_1): Increment inserted.
17674 (execute_cse_sincos): Zeroize sincos_stats. Add call to
17675 statistics_counter_event.
17676 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
17677 of bswap_stats. Add calls to statistics_counter_event.
17678 (convert_mult_to_widen): Increment widen_mults_inserted.
17679 (convert_plusminus_to_widen): Increment maccs_inserted.
17680 (convert_mult_to_fma): Increment fmas_inserted.
17681 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
17682 calls to statistics_counter_event.
17684 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
17686 PR rtl-optimization/48455
17687 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17688 `temp_costs->mem_cost'.
17690 2011-04-13 Jan Hubicka <jh@suse.cz>
17692 * ipa-inline.h: New file.
17693 * ipa-inline-analysis.c: New file. Broken out of ...
17694 * ipa-inline.c: ... this file; update toplevel comment;
17695 include ipa-inline.h
17696 (inline_summary): Move to ipa-inline.h
17697 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17698 ipa-inline-analysis.c.
17699 (cgraph_estimate_time_after_inlining): Rename to
17700 estiamte_time_after_inlining; move to ipa-inline-analysis.c
17701 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17702 to estimate_edge_growth.
17703 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17704 rename to estimate_size_after_inlining.
17705 (cgraph_mark_inline_edge): Update for new naming convention.
17706 (cgraph_check_inline_limits): Likewise.
17707 (cgraph_edge_badness): Likewise.
17708 (cgraph_decide_recursive_inlining): Likewise.
17709 (cgraph_decide_inlining_of_small_functions): Likewise.
17710 (cgraph_decide_inlining_incrementally): Likewise.
17711 (cgraph_estimate_growth): Rename to estimate_growth; move to
17712 ipa-inline-analysis.c.
17713 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17714 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17715 (compute_inline_parameters): Likewise.
17716 (compute_inline_parameters_for_current): Likewise.
17717 (pass_inline_parameters): Likewise.
17718 (inline_indirect_intraprocedural_analysis): Likewise.
17719 (analyze_function): Rename to inline_analyze_function; likewise.
17720 (add_new_function): Move to ipa-inline-analysis.c.
17721 (inline_generate_summary): Likewise.
17722 (inline_read_summary): Likewise.
17723 (inline_write_summary): Likewise.
17724 * Makefile.in (ipa-inline-analysis.c): New file.
17726 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17728 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17729 * configure: Regenerate.
17731 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17733 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17734 instead of tree_common.
17735 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17737 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17738 TS_TYPED rather than TS_COMMON.
17739 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17741 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
17744 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17745 r20 around calls of __tablejump_elpm__
17747 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17749 PR middle-end/48591
17750 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17752 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17754 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
17756 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17757 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17758 (cfi_vec): New typedef.
17759 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17760 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17761 (cie_cfi_vec): New static variable.
17762 (cie_cfi_head): Delete.
17763 (add_cfi): Accept a cfi_vec * as first argument. All callers and
17764 declaration changed. Use vector rather than list operations.
17765 (new_cfi): Don't initialize the dw_cfi_next field.
17766 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17767 rather than list operations.
17768 (lookup_cfa): Use vector rather than list operations.
17769 (output_cfis): New argument upto. Accept a cfi_vec rather than
17770 a dw_cfi_ref list head as argument. All callers changed.
17771 Iterate over the vector using upto as a maximum index.
17772 (output_all_cfis): New static function.
17773 (output_fde): Use vector rather than list operations. Use the
17774 new upto argument for output_cfis rather than manipulating a
17776 (dwarf2out_begin_prologue): Change initializations to match
17777 new struct members.
17778 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17779 from the vector length rather than searching for the end of a list.
17780 Use output_all_cfis.
17781 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17783 2011-04-13 Nick Clifton <nickc@redhat.com>
17785 * config/rx/rx.md (movmemsi): Do not use this pattern when
17786 volatile pointers are involved.
17788 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
17790 * config/i386/sse.md (pinsrbits): Remove.
17791 (sse2_packsswb): Merge with *avx_packsswb.
17792 (sse2_packssdw): Merge with *avx_packssdw.
17793 (sse2_packuswb): Merge with *avx_packuswb.
17794 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17795 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17796 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17797 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17798 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17799 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17800 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17801 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17802 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17803 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17804 (sse2_loadld): Merge with *avx_loadld.
17805 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17806 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17807 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17808 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17809 (vec_concatv2di): Merge with *vec_concatv2di_avx.
17811 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
17813 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17814 calling TREE_CHAIN.
17815 * print-tree.c (print_node): Likewise.
17816 * tree-inline.c (copy_tree_r): Likewise.
17817 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17818 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17819 instead of TS_COMMON.
17820 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17821 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17822 (copy_node_stat): Zero TREE_CHAIN only if necessary.
17823 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17824 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17826 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17828 (TREE_CHAIN): Check for a TS_COMMON structure.
17829 (TREE_TYPE): Check for a TS_TYPED structure.
17831 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
17833 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17834 cgraph_get_create_node instead of cgraph_node.
17836 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
17838 * c-parser.c (c_parser_initelt): Updated call to
17839 objc_build_message_expr.
17840 (c_parser_postfix_expression): Likewise.
17842 2011-04-12 Kai Tietz <ktietz@redhat.com>
17844 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17845 MASK_MS_BITFIELD_LAYOUT bit.
17847 2011-04-12 Jakub Jelinek <jakub@redhat.com>
17849 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17850 assert it is always true.
17851 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17854 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
17856 * c-parser.c (c_lex_one_token): Rewritten conditional used when
17857 compiling Objective-C to be more efficient.
17859 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
17861 * opts-common.c (decode_cmdline_options_to_array): Remove variable
17864 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17866 * recog.h, genoutput.c, optabs.c: Revert last patch.
17868 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17871 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17873 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17875 * recog.h (insn_operand_data): Add an "allows_mem" field.
17876 * genoutput.c (output_operand_data): Initialize it.
17877 * optabs.c (maybe_legitimize_operand_same_code): New function.
17878 (maybe_legitimize_operand): Use it when matching the original
17881 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17883 * genpreds.c (process_define_predicate): Move most processing
17884 to gensupport.c. Continue to validate the expression.
17885 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17886 (process_define_predicate): Move processing to gensupport.c.
17887 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17888 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17889 (compute_predicate_codes): Moved from genrecog.c. Add lineno
17891 (valid_predicate_name_p): New function, split out from old
17892 genpreds.c:process_define_predicate.
17893 (process_define_predicate): New function, combining code from
17894 old genpreds.c and genrecog.c functions.
17895 (process_rtx): Call it for DEFINE_PREDICATE and
17896 DEFINE_SPECIAL_PREDICATE.
17898 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17900 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17901 size of a '%A' memory reference.
17902 (T_DREG, T_QREG): New neon_builtin_type_bits.
17903 (arm_init_neon_builtins): Assert that the load and store operands
17904 are neon_struct_operands.
17905 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17906 (NEON_ARG_MEMORY): New builtin_arg.
17907 (neon_dereference_pointer): New function.
17908 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17909 Handle NEON_ARG_MEMORY.
17910 (arm_expand_neon_builtin): Update after above interface changes.
17911 Use NEON_ARG_MEMORY for loads and stores.
17912 * config/arm/predicates.md (neon_struct_operand): New predicate.
17913 * config/arm/iterators.md (V_two_elem): Tweak formatting.
17914 (V_three_elem): Use BLKmode for accesses that have no associated mode.
17915 (V_four_elem): Tweak formatting.
17916 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17917 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17918 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17919 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17920 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17921 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17922 (neon_vst4<mode>): Replace pointer operand with a memory operand.
17923 Use %A in the output template.
17924 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17925 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17926 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17927 the width of the memory access. Remove post-increment.
17928 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17930 2011-04-12 Nick Clifton <nickc@redhat.com>
17932 * config/v850/v850.c (expand_prologue): Do not use the CALLT
17933 instruction for interrupt handlers if the target is the basic V850
17935 (expand_epilogue): Likewise.
17937 2011-04-12 Jakub Jelinek <jakub@redhat.com>
17939 PR rtl-optimization/48549
17940 * combine.c (propagate_for_debug): Also stop after BB_END of
17941 this_basic_block. Process LAST and just stop processing after it.
17942 (combine_instructions): If last_combined_insn has been deleted,
17943 set last_combined_insn to its PREV_INSN.
17945 2011-04-12 Richard Guenther <rguenther@suse.de>
17947 PR tree-optimization/46076
17948 * gimple.h (struct gimple_statement_call): Add fntype field.
17949 (gimple_call_fntype): Adjust.
17950 (gimple_call_set_fntype): New function.
17951 * gimple.c (gimple_build_call_1): Set the call function type.
17952 * gimplify.c (gimplify_call_expr): Preserve the function
17953 type the frontend used for the call.
17954 (gimplify_modify_expr): Likewise.
17955 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17957 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17959 * tree-ssa.c (useless_type_conversion_p): Function pointer
17960 conversions are useless.
17962 2011-04-12 Martin Jambor <mjambor@suse.cz>
17964 * cgraph.h (cgraph_node): Remove function declaration.
17965 (cgraph_create_node): Declare.
17966 (cgraph_get_create_node): Likewise.
17967 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17968 Updated all callers.
17969 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17970 the decl does not already exist. Call cgraph_get_create_node instead
17972 (cgraph_get_create_node): New function.
17973 (cgraph_same_body_alias): Update comment.
17974 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17975 assert it does not return NULL.
17976 (cgraph_update_edges_for_call_stmt): Likewise.
17977 (cgraph_clone_edge): Likewise.
17978 (cgraph_create_virtual_clone): Likewise.
17979 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17980 instead of cgraph_node.
17981 (cgraph_add_new_function): Call cgraph_create_node or
17982 cgraph_get_create_node instead of cgraph_node.
17983 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17984 instead of cgraph_node.
17985 (record_eh_tables): Likewise.
17986 (mark_address): Likewise.
17987 (mark_load): Likewise.
17988 (build_cgraph_edges): Call cgraph_get_create_node instead
17990 (rebuild_cgraph_edges): Likewise.
17991 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17992 instead of cgraph_node.
17993 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17995 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17996 cgraph_create_node instead of cgraph_node.
17997 * c-decl.c (finish_function): Call cgraph_get_create_node instead
17999 * lto-cgraph.c (input_node): Likewise.
18000 * lto-streamer-in.c (input_function): Likewise.
18001 * varasm.c (mark_decl_referenced): Likewise.
18002 (assemble_alias): Likewise.
18004 2011-04-12 Martin Jambor <mjambor@suse.cz>
18006 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18007 instead of cgraph_node and assert it does not return NULL.
18008 * lto-streamer-in.c (lto_read_body): Likewise.
18009 * omp-low.c (new_omp_context): Likewise.
18010 (create_task_copyfn): Likewise.
18011 * tree-emutls.c (lower_emutls_function_body): Likewise.
18012 * matrix-reorg.c (transform_allocation_sites): Likewise.
18014 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18017 * c-typeck.c (build_asm_expr): Error out on attempts to use
18018 void type outputs or inputs for constraints that allow reg or
18019 don't allow memory.
18021 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
18022 Richard Earnshaw <rearnsha@arm.com>
18025 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18026 to use sign-magnitude offsets. Reject unsupported unaligned
18027 cases. Add detailed description in comments.
18028 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18029 condition from TARGET_32BIT to TARGET_ARM.
18031 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
18033 * tree.h (struct typed_tree): New.
18034 (struct tree_common): Include it instead of tree_base.
18035 (TREE_TYPE): Update for new location of type field.
18036 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18037 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18038 (union tree_node): Add typed field.
18039 * treestruct.def (TS_TYPED): New.
18040 * lto-streamer.c (check_handled_ts_structures): Handle it.
18041 * tree.c (MARK_TS_TYPED): New macro.
18042 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18044 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
18046 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18047 (force_nonfallthru): Do not alter the loop nest if no basic block
18050 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18052 * config/i386/sse.md (VI): New mode iterator.
18053 (SSEMODEI): Remove.
18054 (AVX256MODEI): Ditto.
18055 (AVXMODEF4P): Ditto.
18056 (avxvecpsmode): Ditto.
18057 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
18058 (sse2_andnot<mode>3): New expander.
18059 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18060 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
18061 (<any_logic:code><mode>3): Use VI mode iterator.
18062 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18063 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
18064 (*andnottf3): Handle AVX three-operand constraints.
18065 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18067 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18068 Robert Millan <rmh@gnu.org>
18070 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18071 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18072 GNU_USER_DYNAMIC_LINKER64): Define.
18073 (REG_NAME): Don't undefine.
18074 (MD_UNWIND_SUPPORT): Undefine.
18075 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18076 (REG_NAME): Don't undefine.
18077 (MD_UNWIND_SUPPORT): Undefine.
18078 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18080 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18082 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18083 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18085 2011-04-11 Xinliang David Li <davidxl@google.com>
18087 * value-profile.c (check_ic_target): New function.
18088 (gimple_ic_transform): Sanity check indirect call target.
18089 * gimple-low.c (gimple_check_call_args): Interface change.
18090 (gimple_check_call_matching_types): New function.
18091 * tree-inline.c (tree_can_inline_p): Call new function.
18093 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
18095 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18096 tree-pretty-print.h & realmpfr.h.
18098 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
18100 PR middle-end/48464
18101 * ira.c (setup_pressure_classes): Fix typo in loop condition.
18102 (setup_allocno_and_important_classes): Ditto.
18104 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18106 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18107 GNU_USER_DYNAMIC_LINKER.
18108 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18110 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18111 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18112 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18113 GNU_USER_TARGET_OS_CPP_BUILTINS.
18114 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18115 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18116 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18117 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18118 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18119 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18120 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18121 GNU_USER_TARGET_OS_CPP_BUILTINS.
18122 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18123 GNU_USER_DYNAMIC_LINKER.
18124 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18125 GNU_USER_TARGET_OS_CPP_BUILTINS.
18126 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18127 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18128 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18129 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18130 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18131 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18132 GNU_USER_DYNAMIC_LINKER64): Remove.
18133 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18134 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18135 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18136 GNU_USER_DYNAMIC_LINKER.
18137 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18138 GNU_USER_TARGET_OS_CPP_BUILTINS.
18139 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18140 GNU_USER_TARGET_OS_CPP_BUILTINS.
18141 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18142 to GNU_USER_TARGET_OS_CPP_BUILTINS.
18143 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18144 GNU_USER_TARGET_OS_CPP_BUILTINS.
18145 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18146 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18147 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18148 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18149 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18150 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18151 GNU_USER_DYNAMIC_LINKER.
18152 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18153 GNU_USER_TARGET_OS_CPP_BUILTINS.
18154 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18156 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18157 GNU_USER_DYNAMIC_LINKER.
18158 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18159 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18160 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18161 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18162 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18163 GNU_USER_DYNAMIC_LINKER.
18164 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18165 GNU_USER_DYNAMIC_LINKERN32.
18166 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18167 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
18168 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
18169 GNU_USER_DYNAMIC_LINKER32.
18170 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18172 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18173 GNU_USER_DYNAMIC_LINKER.
18174 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18175 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18176 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18177 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18178 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18179 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18180 GNU_USER_DYNAMIC_LINKER32.
18181 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18182 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18183 GNU_USER_DYNAMIC_LINKER.
18184 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18185 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18186 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18187 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
18188 GNU_USER_DYNAMIC_LINKER64.
18189 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18190 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18191 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18192 GNU_USER_DYNAMIC_LINKER.
18193 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18194 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18195 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18196 GNU_USER_DYNAMIC_LINKER.
18197 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18198 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18199 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18200 GNU_USER_DYNAMIC_LINKER32.
18201 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18202 GNU_USER_DYNAMIC_LINKER64.
18203 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18204 GNU_USER_DYNAMIC_LINKER64.
18205 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18207 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18208 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18209 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18211 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18213 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
18214 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18215 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18216 GNU_USER_DYNAMIC_LINKER.
18217 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18218 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
18219 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18220 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18221 GNU_USER_DYNAMIC_LINKER64.
18222 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18223 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18224 GNU_USER_LINK_EMULATION.
18225 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18226 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18227 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18228 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18229 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18230 CPP_SPEC, CC1_SPEC): Remove.
18231 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18232 (GNU_USER_DYNAMIC_LINKER): Define.
18233 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18234 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18235 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18236 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18237 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18238 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18239 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18240 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18241 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18242 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18243 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18244 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18245 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18246 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18247 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18248 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18249 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18250 GNU_USER_DYNAMIC_LINKER.
18251 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18252 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
18253 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18254 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
18255 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18256 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
18257 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18258 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18259 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18260 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18262 2011-04-11 Kai Tietz <ktietz@redhat.com>
18266 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18267 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18269 (ix86_is_msabi_thiscall): Removed.
18270 (ix86_is_type_thiscall): Likewise.
18271 (ix86_get_callcvt): New function.
18272 (ix86_comp_type_attributes): Simplify check.
18273 (ix86_function_regparm): Use ix86_get_callcvt for calling
18274 convention attribute checks.
18275 (ix86_return_pops_args): Likewise.
18276 (ix86_static_chain): Likewise.
18277 (x86_this_parameter): Likewise.
18278 (x86_output_mi_thunk): Likewise.
18279 (ix86_function_type_abi): Optimize check for types without attributes.
18280 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18281 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18282 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18284 (IX86_BASE_CALLCVT): Helper macro.
18285 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18286 Use ix86_get_callcvt for calling convention attribute checks and avoid
18287 symbol-decoration for stdcall in TARGET_RTD case.
18288 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18290 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18293 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18295 * config/i386/sse.md (VI_128): New mode iterator.
18296 (VI12_128): Rename from SSEMODE12.
18297 (VI14_128): Rename from SSEMODE14.
18298 (VI124_128): New mode iterator.
18299 (VI24_128): Rename from SSEMODE248.
18300 (VI248_128): Rename from SSEMODE248.
18301 (SSEMODE124C8): Remove.
18302 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18303 (*sse2_<plusminus_insn><mode>3): Merge with
18304 *avx_<plusminus_insn><mode>3.
18305 (*mulv8hi3): Merge with *avx_mulv8hi3.
18306 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18307 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18308 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18309 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18310 (ashr<mode>3): Merge with *avx_ashr<mode>3.
18311 (lshr<mode>3): Merge with *avx_lshr<mode>3.
18312 (ashl<mode>3): Merge with *avx_ashl<mode>3.
18313 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18314 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18315 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18316 (*<smaxmin:code>v8hi3): Ditto.
18317 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18318 (*<smaxmin:code>v16qi3): Ditto.
18319 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18320 (*sse2_eq<mode>3): Ditto.
18321 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18322 (*sse2_gt<mode>3): Ditto.
18323 (vcondv2di): Split out of vcond<mode>.
18324 (vconduv2di): Split out of vcondu<mode>.
18326 2011-04-11 Richard Guenther <rguenther@suse.de>
18328 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18329 before calling tree_low_cst.
18331 2011-04-11 Richard Guenther <rguenther@suse.de>
18333 * stor-layout.c (layout_type): Compute all array index size operations
18334 in the original type.
18335 (initialize_sizetypes): Add comment.
18336 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18338 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18340 * common.opt (Tbss=, Tdata=, Ttext=): New options.
18342 2011-04-11 Martin Jambor <mjambor@suse.cz>
18344 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18345 of cgraph_node, handle NULL return value.
18346 (cgraph_global_info): Likewise.
18347 (cgraph_rtl_info): Likewise.
18348 * tree-inline.c (estimate_num_insns): Likewise.
18349 * gimplify.c (unshare_body): Likewise.
18350 (unvisit_body): Likewise.
18351 (gimplify_body): Likewise.
18352 * predict.c (optimize_function_for_size_p): Likewise.
18353 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18354 (call_may_clobber_ref_p_1): Likewise.
18355 * varasm.c (function_section_1): Likewise.
18356 (assemble_start_function): Likewise.
18358 2011-04-11 Martin Jambor <mjambor@suse.cz>
18360 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18362 * final.c (rest_of_clean_state): Likewise.
18363 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18364 * passes.c (pass_init_dump_file): Likewise.
18365 (execute_all_ipa_transforms): Likewise.
18366 (function_called_by_processed_nodes_p): Likewise.
18367 * predict.c (maybe_hot_frequency_p): Likewise.
18368 (probably_never_executed_bb_p): Likewise.
18369 (compute_function_frequency): Likewise.
18370 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18371 (unnest_nesting_tree_1): Likewise.
18372 (lower_nested_functions): Likewise.
18373 * tree-optimize.c (execute_fixup_cfg): Likewise.
18374 (tree_rest_of_compilation): Likewise.
18375 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18376 * tree-sra.c (ipa_early_sra): Likewise.
18377 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18378 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18379 * ipa.c (record_cdtor_fn): Likewise.
18380 * ipa-inline.c (cgraph_early_inlining): Likewise.
18381 (compute_inline_parameters_for_current): Likewise.
18382 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18383 * ipa-pure-const.c (local_pure_const): Likewise.
18384 * ipa-split.c (split_function): Likewise.
18385 (execute_split_functions): Likewise.
18386 * cgraphbuild.c (build_cgraph_edges): Likewise.
18387 (rebuild_cgraph_edges): Likewise.
18388 (cgraph_rebuild_references): Likewise.
18389 (remove_cgraph_callee_edges): Likewise.
18390 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18391 (verify_cgraph_node): Likewise.
18392 (cgraph_analyze_functions): Likewise.
18393 (cgraph_preserve_function_body_p): Likewise.
18394 (save_inline_function_body): Likewise.
18395 (save_inline_function_body): Likewise.
18396 * tree-inline.c (copy_bb): Likewise.
18397 (optimize_inline_calls): Likewise.
18399 2011-04-11 Martin Jambor <mjambor@suse.cz>
18401 PR tree-optimization/48195
18402 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18403 ipa_check_create_edge_args.
18404 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18405 ipa_check_create_edge_args.
18406 * ipa-inline.c (inline_generate_summary): Do not call
18407 ipa_check_create_node_params and ipa_check_create_edge_args.
18408 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18409 ipa_check_create_edge_args.
18411 2011-04-09 Anatoly Sokolov <aesok@post.ru>
18413 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18415 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18416 * function.c (record_hard_reg_sets): Likewise.
18417 * ira.c (compute_regs_asm_clobbered): Likewise.
18418 * sched-deps.c (sched_analyze_1): Likewise.
18419 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18421 2011-04-09 Xinliang David Li <davidxl@google.com>
18423 PR tree-optimization/PR48484
18424 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18425 has_valid_pred lazily
18427 2011-04-09 Duncan Sands <baldrick@free.fr>
18429 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18431 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
18433 * combine.c (combine_validate_cost): Adjust comments. Set registered
18434 cost of I0 to zero at the end, if any.
18436 2011-04-08 Xinliang David Li <davidxl@google.com>
18438 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18439 to insane profile data.
18441 2011-04-08 Xinliang David Li <davidxl@google.com>
18443 * ipa-cp.c (ipcp_update_profiling): Correct
18444 negative scale factor due to insane profile data.
18446 2011-04-08 Xinliang David Li <davidxl@google.com>
18448 * final.c (dump_basic_block_info): New function.
18449 (final): Dump basic block.
18450 (final_scan_insn): Remove old dump.
18452 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
18455 * config.gcc (i386-*-freebsd): Disable unwind table generation for
18458 2011-04-08 Michael Matz <matz@suse.de>
18460 PR middle-end/48389
18461 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18463 (rebuild_jump_labels): Call rebuild_jump_labels_1.
18464 * rtl.h (rebuild_jump_labels_chain): Declare.
18465 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18466 insns inserted on edges.
18468 2011-04-08 Joseph Myers <joseph@codesourcery.com>
18470 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18471 * config/arm/arm-arches.def: New.
18472 * config/arm/arm-opts.h: New.
18473 * config/arm/genopt.sh: New.
18474 * config/arm/arm-tables.opt: New (generated).
18475 * config/arm/arm.c (arm_handle_option, arm_target_help,
18476 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18477 (all_architectures): Get most table contents from arm-arches.def.
18478 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18479 arm_selected_tune here.
18480 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18481 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18482 (march=, mcpu=, mtune=): Use Enum and Var.
18483 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18484 (arm.o): Update dependencies.
18486 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
18488 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18490 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18491 (write_typed_alloc_defns): Likewise.
18492 (main): Calls write_typed_alloc_defns with output_header.
18494 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
18496 PR inline-asm/48435
18497 * ira-color.c (setup_profitable_hard_regs): Add comments.
18498 Don't take prohibited hard regs into account.
18499 (setup_conflict_profitable_regs): Rename to
18500 get_conflict_profitable_regs.
18501 (check_hard_reg_p): Check prohibited hard regs.
18503 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
18505 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18506 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18507 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18509 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18512 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18513 move from floating point to shift amount register.
18514 (emit_move_sequence): Remove secondary reload support for floating
18515 point to shift amount amount register copies.
18516 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18517 amount register copies.
18518 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18519 register, return false if mode isn't a scalar integer mode.
18520 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18522 2011-04-08 Richard Guenther <rguenther@suse.de>
18524 * gimple.c (gimple_call_flags): Remove kludge.
18526 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18528 * sel-sched.c (sel_region_init): Move call to
18529 sel_setup_region_sched_flags after setup_current_loop_nest.
18531 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
18533 PR rtl-optimization/48272
18534 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18535 init_insn_reg_pressure_info. Adjust a caller.
18536 * sched-int.h (init_insn_reg_pressure_info): Declare.
18537 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18538 when sched-pressure is enabled.
18540 2011-04-08 Richard Guenther <rguenther@suse.de>
18542 * gimple.c (gimple_set_modified): Do not queue calls to
18543 MODIFIED_NORETURN_CALLS here ...
18544 * tree-ssa-operands.c (update_stmt_operands): ... but here.
18546 2011-04-08 Richard Guenther <rguenther@suse.de>
18549 * toplev.c (lang_dependent_init): Do not open asm_out_file
18550 in WPA mode, nor perform debug machinery initialization.
18551 (finalize): Do not unlink asm_out_file in WPA mode.
18553 2011-04-08 Richard Guenther <rguenther@suse.de>
18555 * gimple.h (gimple_call_fntype): New function.
18556 (gimple_call_return_type): Use it.
18557 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18558 * gimple-low.c (gimple_check_call_args): Likewise.
18559 * gimple.c (gimple_call_flags): Likewise.
18560 (gimple_call_arg_flags): Likewise.
18561 (gimple_call_return_flags): Likewise.
18562 * tree-cfg.c (verify_gimple_call): Likewise.
18563 (do_warn_unused_result): Likewise.
18564 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18565 * value-prof.c (gimple_ic_transform): Fix fndecl check.
18567 2011-04-08 Dmitry Melnik <dm@ispras.ru>
18569 PR rtl-optimization/48235
18570 * sel-sched.c (code_motion_process_successors): Recompute the last
18571 insn in basic block if control flow changed.
18572 (code_motion_path_driver): Ditto. Recompute the first insn as well.
18573 Update condition for ilist_remove.
18575 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18577 PR rtl-optimization/48302
18578 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18579 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
18580 it to record added preheader blocks.
18581 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
18582 on to sel_add_loop_preheaders.
18583 (sel_region_init): Move call to setup_current_loop_nest after
18586 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18589 * cfgloop.h (loop_has_exit_edges): New helper.
18590 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18592 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18593 that have no exit edges.
18595 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18597 PR rtl-optimization/48442
18598 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
18599 all callers. Adjust assert.
18601 2011-04-08 Jakub Jelinek <jakub@redhat.com>
18603 PR tree-optimization/48377
18604 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18605 is_packed to true even for types with smaller TYPE_ALIGN than
18608 2011-04-08 Richard Guenther <rguenther@suse.de>
18611 * doc/tm.texi: Re-generate.
18613 2011-04-08 Wei Guozhi <carrot@google.com>
18616 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18617 * config/arm/arm.c (arm_attr_length_push_multi): New function.
18618 * config/arm/arm.md (*push_multi): Change the length computation to
18621 2011-04-08 Anatoly Sokolov <aesok@post.ru>
18623 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18624 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18625 * doc/tm.texi: Regenerate.
18626 * system.h (ASM_OUTPUT_BSS): Poison.
18627 * varasm.c (asm_output_bss): Remove function.
18628 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18630 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18631 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18632 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18633 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18635 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18637 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18639 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18641 2011-04-07 Joseph Myers <joseph@codesourcery.com>
18643 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18646 2011-04-07 Joseph Myers <joseph@codesourcery.com>
18648 * config/m68k/m68k.c (m68k_handle_option): Don't handle
18649 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18650 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18652 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18653 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18654 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18655 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18656 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18657 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18658 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18659 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18660 options. Don't map other m68k options manually. Don't handle
18661 old-style options as canonical.
18662 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18663 * doc/install.texi (m68k-*-*): Document binutils version requirement.
18665 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
18667 * basic-block.h (force_nonfallthru): Move to...
18668 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18669 (force_nonfallthru): ...here.
18670 * cfghooks.c (force_nonfallthru): New function.
18671 * cfgrtl.c (force_nonfallthru): Rename into...
18672 (rtl_force_nonfallthru): ...this.
18673 (commit_one_edge_insertion): Do not set AUX field.
18674 (commit_edge_insertions): Do not discover new basic blocks.
18675 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18676 (cfg_layout_rtl_cfg_hooks): Likewise.
18677 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18678 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
18679 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18681 2011-04-07 Anatoly Sokolov <aesok@post.ru>
18683 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18686 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
18688 * config/i386/sse.md: Update copyright year.
18689 (avxcvtvecmode): Remove.
18690 (sse_movhlps): Merge with *avx_movhlps.
18691 (sse_movlhps): Merge with *avx_movlhps.
18692 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18693 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18694 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18695 (sse_loadhps): Merge with *avx_loadhps.
18696 (sse_storelps): Merge with *avx_storelps.
18697 (sse_loadlps): Merge with *avx_loadlps.
18698 (sse_movss): Merge with *avx_movss.
18699 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18700 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18701 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18702 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18703 (vec_set<mode>_0): Ditto.
18704 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18705 (sse4_1_insertps): Merge with *avx_insertps.
18706 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18707 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18708 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18709 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18710 (sse2_storehpd): Merge with *avx_storehpd.
18711 (sse2_loadhpd): Merge with *avx_loadhpd.
18712 (sse2_loadlpd): Merge with *avx_loadlpd.
18713 (sse2_movsd): Merge with *avx_movsd.
18714 (*vec_concatv2df): Merge with *vec_concatv2df.
18716 2011-04-07 Jakub Jelinek <jakub@redhat.com>
18719 * combine.c (combine_instructions): Add last_combined_insn,
18720 update it if insn is after it, pass it to all try_combine calls.
18721 (try_combine): Add last_combined_insn parameter, pass it instead of
18722 i3 to propagate_for_debug.
18724 2011-04-07 Nick Clifton <nickc@redhat.com>
18726 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18727 to handle MDR <-> data register transfers.
18728 (movhi_internal): Likewise.
18730 2011-04-07 Alan Modra <amodra@gmail.com>
18732 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18733 previous stack info.
18735 2011-04-07 Tom de Vries <tom@codesourcery.com>
18738 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
18739 flow_find_cross_jump. Swap variables to implement backward replacement.
18740 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18742 2011-04-07 Tom de Vries <tom@codesourcery.com>
18745 * cfgcleanup.c (walk_to_nondebug_insn): New function.
18746 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
18748 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18749 src1 or src2. Redirect edges to the last basic block. Update
18750 frequency and count on multiple basic blocks in case of fallthru.
18752 2011-04-07 Tom de Vries <tom@codesourcery.com>
18755 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18757 (old_insns_match_p): Change return type. Replace return false/true
18758 with return dir_none/dir_both. Use can_replace_by.
18759 (flow_find_cross_jump): Add dir_p parameter. Init replacement
18760 direction from dir_p. Register replacement direction in dir, last_dir
18761 and afterlast_dir. Handle new return type of old_insns_match_p using
18762 merge_dir. Return replacement direction in dir_p.
18763 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18764 return type of old_insns_match_p.
18765 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18766 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18767 flow_find_cross_jump.
18768 * basic-block.h (enum replace_direction): New type.
18769 (flow_find_cross_jump): Add parameter to declaration.
18771 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
18773 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18774 (AVXMODEDCVTPS2DQ): Ditto.
18775 (VEC_FLOAT_MODE): Ditto.
18776 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
18777 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18778 (<any_logic:code><mode>3): Use VF mode iterator.
18779 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18780 Use VF mode iterator.
18781 (copysign<mode>3): Use VF mode iterator.
18782 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
18783 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18784 (*<any_logic:code><MODEF:mode>3): Merge with
18785 *avx_<any_logic:code><MODEF:mode>3.
18786 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18787 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18788 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18789 (avx_cvtdq2ps<avxmodesuffix>): Remove.
18790 (sse2_cvtdq2ps): Use %v modifier.
18791 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18792 (avx_cvtps2dq<avxmodesuffix>): Remove.
18793 (sse2_cvtps2dq): Use %v modifier.
18794 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18795 (avx_cvttps2dq<avxmodesuffix>): Remove.
18796 (sse2_cvttps2dq): Use %v modifier.
18797 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18798 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18799 (sse2_cvtsd2siq): Fix insn template.
18800 (sse2_cvtsd2siq_2): Ditto.
18801 (sse2_cvttsd2siq): Ditto.
18802 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18803 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18805 2011-04-06 Joseph Myers <joseph@codesourcery.com>
18807 * gcov-io.c: Use GCC Runtime Library Exception.
18809 2011-04-06 Jakub Jelinek <jakub@redhat.com>
18812 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18813 as base_reg whatever register reg has been eliminated to, instead
18814 of hardcoding STACK_POINTER_REGNUM.
18816 2011-04-06 Joseph Myers <joseph@codesourcery.com>
18818 * doc/tm.texi.in: Document C target hooks as separate from general
18820 * doc/tm.texi: Regenerate.
18821 * genhooks.c (struct hook_desc): Add docname field.
18822 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
18824 (hook_array): Include c-target.def.
18825 (emit_documentation): Use docname field in output.
18826 (emit_init_macros): Take docname argument. Only emit definitions
18827 for hooks matching docname.
18828 (main): Expect additional arguments in all cases. Pass argument
18829 to emit_init_macros.
18830 * target.def: Move initial macro definitions and comments to
18831 target-hooks-macros.h.
18832 (gcc_targetcm): Move to c-family/c-target.def.
18833 * target.h (targetcm): Move declaration to c-family/c-target.h.
18834 * targhooks.c (default_handle_c_option): Move to
18836 * targhooks.h (default_handle_c_option): Move declaration to
18837 c-family/c-common.h.
18838 * target-hooks-macros.h: New file.
18839 * config.gcc (target_has_targetcm): Define and use to add to
18840 c_target_objs and cxx_target_objs.
18841 * config/default-c.c: New file.
18842 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18843 of target.h and target-def.h.
18844 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18845 (darwin_objc_construct_string, darwin_cfstring_ref_p,
18846 darwin_check_cfstring_format_arg): Make static.
18847 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18848 TARGET_STRING_OBJECT_REF_TYPE_P,
18849 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18850 * config/darwin-protos.h (darwin_objc_construct_string,
18851 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18853 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18854 TARGET_STRING_OBJECT_REF_TYPE_P,
18855 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18856 * config/t-darwin (darwin-c.o): Update dependencies.
18857 * system.h (TARGET_HAS_TARGETCM): Poison.
18858 * Makefile.in (TARGET_H): Update.
18859 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18860 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18861 (default-c.o): New target.
18862 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18863 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18864 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
18866 (build/genhooks.o): Update dependencies.
18868 2011-04-06 Richard Guenther <rguenther@suse.de>
18870 * ipa-inline.c (enum inlining_mode): Remove.
18871 (cgraph_flatten): Use some other token.
18872 (cgraph_edge_early_inlinable_p): New function, split out from ...
18873 (cgraph_perform_always_inlining): New function, split out from ...
18874 (cgraph_decide_inlining_incrementally): ... here.
18875 (cgraph_mark_inline_edge): Adjust.
18876 (cgraph_early_inlining): Re-structure.
18877 (pass_early_inline): Require SSA form.
18879 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
18880 Julian Brown <julian@codesourcery.com>
18881 Mark Shinwell <shinwell@codesourcery.com>
18883 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18884 LO_REGS only for Thumb-1.
18885 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18886 be used in short instructions when optimising for size on Thumb-2.
18888 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
18890 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18891 associated with user returns to be preserved.
18893 2011-04-06 Tristan Gingold <gingold@adacore.com>
18895 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18896 symbol_queue_size, DBXOUT_DECR_NESTING,
18897 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18898 if XCOFF_DEBUGGING_INFO.
18900 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
18902 * config/i386/i386.md (attribute isa): New.
18903 (attribute enabled): New.
18904 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18905 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18906 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18907 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18908 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18909 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18910 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18911 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18913 * config/i386/sse.md (VF): New mode iterator.
18917 (SSEMODEF4): Remove.
18918 (attribute sse): Handle V8SF and V4DF modes.
18919 (<absneg:code><mode>2): Use VF mode iterator.
18920 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
18922 (<plusminus_insn><mode>3): Use VF mode iterator.
18923 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18924 Use VF mode iterator.
18925 (<sse>_vm<plusminus_insn><mode>3): Merge with
18926 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
18927 (mul<mode>3): Use VF mode iterator.
18928 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
18929 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
18931 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18932 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18933 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
18934 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
18936 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18937 Use VF1 mode iterator.
18938 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18939 (sqrt<VF2:mode>2): New expander.
18940 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18941 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18942 and sqrtv2df2. Use VF mode iterator.
18943 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
18945 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18946 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18947 Use VF1 mode iterator.
18948 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18949 (<smaxmin:code><mode>3): Use VF mode iterator.
18950 (*<smaxmin:code><mode>3_finite): Merge with
18951 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
18952 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18953 (<sse>_vm<smaxmin:code><mode>2): Merge with
18954 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
18955 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
18957 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
18959 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18960 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18961 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18962 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18963 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
18965 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18966 Use VF_128 mode iterator.
18967 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
18969 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
18970 VF_128 mode iterator.
18971 (vcond<mode>): Use VF mode iterator.
18972 * config/i386/predicates.md (sse_comparison_operator): Merge with
18973 avx_comparison_float_operator. Do not declare as special_predicate.
18974 * config/i386/i386.c (struct builtin_description): Update for renamed
18976 (ix86_expand_args_builtin): Ditto.
18977 (ix86_expand_sse_compare_mask): Ditto.
18979 2011-04-06 Richard Guenther <rguenther@suse.de>
18981 * tree-inline.c (estimate_num_insns): For calls simply account
18982 for all passed arguments and a used return value.
18984 2011-04-06 Richard Guenther <rguenther@suse.de>
18986 PR tree-optimization/47663
18987 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18988 call_stmt_time fields.
18989 (cgraph_edge_inlinable_p): Declare.
18990 (cgraph_edge_recursive_p): New inline function.
18991 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18992 (cgraph_clone_edge): Copy it.
18993 * ipa-inline.c (cgraph_estimate_edge_time): New function.
18994 Account for call stmt time.
18995 (cgraph_estimate_time_after_inlining): Take edge argument.
18996 (cgraph_estimate_edge_growth): Account call stmt size.
18997 (cgraph_estimate_size_after_inlining): Take edge argument.
18998 (cgraph_mark_inline_edge): Adjust.
18999 (cgraph_check_inline_limits): Likewise.
19000 (cgraph_recursive_inlining_p): Remove.
19001 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19002 (cgraph_decide_recursive_inlining): Take edge argument and
19004 (cgraph_decide_inlining_of_small_functions): Do not avoid
19005 diags for recursive inlining here.
19006 (cgraph_flatten): Adjust.
19007 (cgraph_decide_inlining_incrementally): Likewise.
19008 (estimate_function_body_sizes): Remove call cost handling.
19009 (compute_inline_parameters): Initialize caller edge call costs.
19010 (cgraph_estimate_edge_growth): New function.
19011 (cgraph_estimate_growth): Use it.
19012 (cgraph_edge_badness): Likewise.
19013 (cgraph_check_inline_limits): Take an edge argument.
19014 (cgraph_decide_inlining_of_small_functions): Adjust.
19015 (cgraph_decide_inlining): Likewise.
19016 * tree-inline.c (estimate_num_insns): Only account for call
19017 return value if it is used.
19018 (expand_call_inline): Avoid diagnostics on recursive inline
19020 * lto-cgraph.c (lto_output_edge): Output edge call costs.
19021 (input_edge): Input edge call costs.
19023 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19025 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19027 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
19029 * doc/invoke.texi (Spec Files): Fix typo.
19031 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19033 * profile.c (branch_prob): Move declaration of local variable. Remove
19034 obsolete ??? comment. Expand the location explicitly instead of using
19035 the LOCATION_FILE and LOCATION_LINE macros.
19037 2011-04-06 Wei Guozhi <carrot@google.com>
19040 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19041 (arm_cond_branch): Likewise.
19042 (arm_cond_branch_reversed): Likewise.
19043 (arm_jump): Likewise.
19044 (push_multi): Likewise.
19045 * config/arm/constraints.md (Py): New constraint.
19047 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19050 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19052 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19053 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19054 #ifdef DBX_DEBUGGING_INFO.
19056 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
19059 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19060 if old and new states differ.
19062 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19064 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19065 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19066 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19067 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19068 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19069 mcfv4e): Use Alias.
19070 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19071 ColdFire options to -mcpu= options.
19073 2011-04-05 Jeff Law <law@redhat.com>
19075 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19076 check if BB is a successor of LOOP->header and return
19077 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19079 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19081 * cprop.c (struct reg_use): Remove.
19082 (reg_use_table): Make an array of RTX.
19083 (find_used_regs, constprop_register, local_cprop_pass,
19084 bypass_block): Simplify users of reg_use_table.
19085 (cprop_insn): Likewise. Iterate if copy propagation succeeded
19086 on one of the uses found by find_used_regs.
19088 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19091 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19094 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19096 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19098 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19100 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19102 PR middle-end/48441
19103 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19105 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19107 * combine.c: Include obstack.h.
19108 (struct insn_link): Define.
19109 (uid_log_links): Adjust type.
19110 (FOR_EACH_LOG_LINK): New macro.
19111 (insn_link_obstack): Declare.
19112 (alloc_insn_link): Define.
19113 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
19114 type of link variables.
19115 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19116 (try_combine, record_promoted_values, distribute_notes): Likewise.
19117 (distribute_links): Likewise. Tweak prototype.
19118 (clear_log_links): Delete.
19119 (adjust_for_new_dest): Call alloc_insn_link.
19120 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19122 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19124 * gcse.c (modify_mem_list): Convert to an array of VECs.
19125 (canon_modify_mem_list, compute_transp): Tweak formatting.
19126 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
19127 (load_killed_in_block_p): Likewise.
19128 (record_last_mem_set_info): Likewise.
19129 (clear_modify_mem_tables): Likewise.
19131 2011-04-05 Tom de Vries <tom@codesourcery.com>
19133 PR middle-end/48461
19134 * function.c (emit_use_return_register_into_block): Only define if
19137 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
19139 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19141 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19143 * config/rx/rx-opts.h: New.
19144 * config/rx/rx.c (rx_cpu_type): Remove.
19145 (rx_handle_option): Don't assert that global structures are in
19146 use. Access variables via opts pointer. Defer most handling of
19147 OPT_mint_register_. Use error_at.
19148 (rx_option_override): Handle deferred OPT_mint_register_ here.
19149 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19150 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19151 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19152 (rx_cpu_types): New Enum and EnumValue entries.
19153 (mint-register=): Use Defer and use Var accordingly.
19155 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19157 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19158 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19159 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19161 (debug_free_queue, debug_nesting, symbol_queue_index):
19163 * dbxout.c: ...to here. Make static.
19165 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19167 * gcse.c (modify_pair): Define. Define a VEC of it.
19168 (canon_modify_mem_list): Convert to an array of VECs.
19169 (free_insn_expr_list_list): Delete.
19170 (clear_modify_mem_tables): Call VEC_free instead.
19171 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19172 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19173 (canon_list_insert, compute_transp): Likewise.
19175 2011-04-05 Tom de Vries <tom@codesourcery.com>
19178 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19181 2011-04-05 Tom de Vries <tom@codesourcery.com>
19184 * function.c (emit_use_return_register_into_block): New function.
19185 (thread_prologue_and_epilogue_insns): Use
19186 emit_use_return_register_into_block.
19188 2011-04-05 Tom de Vries <tom@codesourcery.com>
19191 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19194 2011-04-05 Tom de Vries <tom@codesourcery.com>
19196 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19198 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
19200 * config/arm/arm.md (define_constants for unspec): Replace with
19202 (define_constants for unspecv): Replace with define_c_enum.
19203 * config/arm/neon.md (define_constants for unspec): Replace with
19206 2011-04-04 Richard Henderson <rth@redhat.com>
19209 * dwarf2out.c (output_line_info): Always emit line info from
19210 at least one section.
19211 (dwarf2out_init): Create text_section_line_info here ...
19212 (set_cur_line_info_table): ... not here.
19214 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
19217 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19220 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19222 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
19224 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19225 (expr_equiv_p): Remove.
19226 (insert_set_in_table): Look at <dest, src> pair instead of expr.
19227 (hash_scan_set): Update call to insert_set_in_table.
19228 (dump_hash_table): Dump <dest, src> pair.
19229 (lookup_set): Simplify. Lookup <dest, src> pair.
19230 (compute_transp): Remove, fold heavily simplified code into...
19231 (compute_local_properties): ...here. Expect COMP and TRANSP
19233 (find_avail_set): Take set directly from struct expr.
19234 (find_bypass-set): Likewise.
19235 (bypass_block): Likewise.
19236 (cprop_insn): Likewise. Remove redundant INSN_P test.
19238 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19239 checks on form of COND from find_implicit_sets to here.
19240 (find_implicit_sets): Cleanup control flow. Split critical edges
19241 if it exposes implicit sets. Allocate/resize implicit_sets as
19243 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19244 changed something. Run df_analyze after find_implicit_sets if any
19245 edges were split. Do not allocate implicit_sets here.
19247 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19248 (gcse_obstack): Renamed to cprop_obstack.
19249 (GNEW, GNEWVEC, GNEWVAR): Remove.
19251 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19252 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19253 (gcse_alloc): Likewise, and rename to cprop_alloc.
19254 (alloc_gcse_men, free_gcse_mem): Remove.
19255 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19256 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19257 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19259 * cprop.c (oprs_not_set_p): Remove.
19260 (mark_set, mark_clobber): Remove.
19261 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19262 (reg_not_set_p): New function.
19263 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19264 (cprop_insn): Likewise.
19265 (cprop_jump): Use FOR_EACH_EDGE.
19267 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
19270 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19271 (rank_for_schedule): Use scheduled_insns vector instead of
19272 last_scheduled_insn.
19273 (ok_for_early_queue_removal): Likewise.
19274 (queue_to_ready): Search forward in nonscheduled_insns_begin if
19276 (choose_ready): Likewise.
19277 (commit_schedule): Use VEC_iterate.
19278 (schedule_block): Initialize nonscheduled_insns_begin. If we have
19279 a dbg_cnt, use it and ensure the first insn is in the ready list.
19280 (haifa_sched_init): Allocate scheduled_insns.
19281 (sched_extend_ready_list): Don't allocate it; reserve space.
19282 (haifa_sched_finish): Free it.
19284 2011-04-04 Joseph Myers <joseph@codesourcery.com>
19286 * optc-gen.awk: Always remove type from Variable entry before
19287 recording in var_seen.
19289 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
19291 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19292 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19293 call to tidy_fallthru_edges.
19295 2011-04-04 Joseph Myers <joseph@codesourcery.com>
19297 * doc/options.texi (ToLower): Document.
19298 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19299 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19300 * opts.h (cl_option): Add cl_tolower field.
19301 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19302 arguments with lowercase strings.
19303 * config/rx/rx.opt (mcpu=): Add ToLower.
19304 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19307 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
19309 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19311 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
19313 * config/vax/vax.c: Include reload.h.
19315 2011-04-04 Anatoly Sokolov <aesok@post.ru>
19317 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19318 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19319 (sparc_preferred_reload_class): New function.
19321 2011-04-04 Jakub Jelinek <jakub@redhat.com>
19324 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19325 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19327 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
19329 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19330 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19332 2011-04-03 Anatoly Sokolov <aesok@post.ru>
19334 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19335 (ASM_OUTPUT_ALIGNED_BSS): Define.
19337 2011-04-03 Michael Matz <matz@suse.de>
19339 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19340 and next_slot members.
19341 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19342 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19343 (lto_streamer_cache_append): Declare.
19344 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19345 unsigned index, remove offset parameter, ensure that we append
19346 or update existing entries.
19347 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19348 parameter, update next_slot for append.
19349 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19351 (lto_streamer_cache_insert_at): Likewise.
19352 (lto_streamer_cache_append): New function.
19353 (lto_streamer_cache_lookup): Use unsigned index.
19354 (lto_streamer_cache_get): Likewise.
19355 (lto_record_common_node): Don't test tree_node_can_be_shared.
19356 (preload_common_node): Adjust call to lto_streamer_cache_insert.
19357 (lto_streamer_cache_delete): Don't free offsets member.
19358 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19359 (lto_output_string_with_length): Use lto_output_data_stream.
19360 (lto_output_tree_header): Remove ix parameter, don't write it.
19361 (lto_output_builtin_tree): Likewise.
19362 (lto_write_tree): Adjust callers to above, don't track and write
19363 offset, write unsigned index.
19364 (output_unreferenced_globals): Don't emit all global vars.
19365 (write_global_references): Use unsigned indices.
19366 (lto_output_decl_state_refs): Likewise.
19367 (write_symbol): Likewise.
19368 * lto-streamer-in.c (lto_input_chain): Move earlier.
19369 (input_function): Use unsigned index.
19370 (input_alias_pairs): Don't read and then ignore all global vars.
19371 (lto_materialize_tree): Remove ix_p parameter, don't read index,
19372 don't pass it back, use lto_streamer_cache_append.
19373 (lto_register_var_decl_in_symtab): Use unsigned index.
19374 (lto_register_function_decl_in_symtab): Likewise.
19375 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19377 (lto_get_builtin_tree): Don't read index, use
19378 lto_streamer_cache_append.
19379 (lto_read_tree): Adjust call to lto_materialize_tree.
19381 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19382 don't use function calls in arguments to MIN.
19384 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19387 * gimple.c (gimple_type_leader_entry): Mark deletable.
19389 2011-04-03 Alan Modra <amodra@gmail.com>
19391 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19393 2011-04-03 Michael Matz <matz@suse.de>
19395 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19397 * tree.h (tree_decl_non_common.vindex): Adjust comment.
19399 2011-04-03 Michael Matz <matz@suse.de>
19401 * cgraphbuild.c (record_reference): Canonicalize constructor values.
19402 * gimple-fold.c (canonicalize_constructor_val): Accept being called
19403 without function context.
19404 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19405 current_function_decl and cfun.
19407 2011-04-03 Michael Matz <matz@suse.de>
19409 * tree.c (decl_init_priority_insert): Don't create entry for
19411 (decl_fini_priority_insert): Ditto.
19412 (fields_compatible_p, find_compatible_field): Remove.
19413 * tree.h (fields_compatible_p, find_compatible_field): Remove.
19414 * gimple.c (gimple_compare_field_offset): Adjust block comment.
19416 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
19418 * combine.c (try_combine): Remove useless local variable.
19420 2011-04-03 Richard Guenther <rguenther@suse.de>
19421 Ira Rosen <ira.rosen@linaro.org>
19423 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19424 non-variable offsets and compare the remaining bases of the two
19425 accesses instead of looking for exact same data-ref.
19427 2011-04-02 Kai Tietz <ktietz@redhat.com>
19430 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19432 * i386.c (ix86_is_msabi_thiscall): New helper function.
19433 (ix86_is_type_thiscall): New helper function.
19434 (ix86_comp_type_attributes): Handle thiscall for method-functions
19436 (init_cumulative_args): Likewise.
19437 (find_drap_reg): Likewise.
19438 (ix86_static_chain): Likewise.
19439 (x86_this_parameter): Likewise.
19440 (x86_output_mi_thunk): Likewise.
19442 2011-04-01 Olivier Hainque <hainque@adacore.com>
19443 Nicolas Setton <setton@adacore.com>
19444 Eric Botcazou <ebotcazou@adacore.com>
19446 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19447 (add_gnat_descriptive_type_attribute): New function.
19448 (gen_array_type_die): Call it.
19449 (gen_enumeration_type_die): Likewise.
19450 (gen_struct_or_union_type_die): Likewise.
19451 (modified_type_die): Likewise.
19452 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19453 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19454 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19456 2011-04-01 Jakub Jelinek <jakub@redhat.com>
19459 * dwarf2out.c (resolve_addr): Don't call force_decl_die
19460 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19463 2011-03-17 Richard Guenther <rguenther@suse.de>
19466 * lto-cgraph.c (input_overwrite_node): Clear the abstract
19467 origin for decls in other ltrans units.
19468 (input_varpool_node): Likewise.
19470 2011-04-01 Jakub Jelinek <jakub@redhat.com>
19472 PR middle-end/48335
19473 * expr.c (expand_assignment): Handle all possibilities
19474 if TO_RTX is CONCAT.
19475 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19476 (store_split_bit_field): If SUBREG_REG (op0) or
19477 op0 itself has smaller mode than word, return it
19478 for offset 0 and const0_rtx for out-of-bounds stores.
19479 If word is const0_rtx, skip it.
19481 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
19483 * config/h8300/h8300.c (print_operand_address): Rename to...
19484 (h8300_print_operand_address): ...this. Make static. Adjust comments.
19485 Call h8300_print_operand and h8300_print_operand_address instead of
19486 print_operand and print_operand_address. Declare.
19487 (print_operand): Renake to...
19488 (h8300_print_operand): ...this. Make static. Adjust comments.
19489 Call h8300_print_operand instead of print_operand. Declare.
19490 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19491 (h8300_register_move_cost): Likewise.
19492 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19493 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19494 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19495 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19496 * config/h8300/h8300-protos.h (print_operand): Delete.
19497 (print_operand_address): Delete.
19499 2011-04-01 Richard Henderson <rth@redhat.com>
19502 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19503 in strict mode before dwarf4. Re-order tests to early out
19504 before switching sections.
19506 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
19508 * config/h8300/constraints.md: New file.
19509 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
19510 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19511 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19512 * config/h8300/predicates.md (bit_operand): Likewise.
19513 (incdec_operand): Use satisfies_constraint_M and
19514 satisfies_constraint_O. Don't use C code block.
19515 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19516 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19517 (compute_mov_length): Use satisfies_constraint_G.
19518 (fix_bit_operand): Use satisfies_constraint_U.
19519 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19520 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19521 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19522 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19523 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19524 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19525 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19526 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19527 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19528 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19529 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19530 (EXTRA_MEMORY_CONSTRAINT): Delete.
19532 2011-04-01 Andrew Pinski <pinskia@gmail.com>
19533 Michael Meissner <meissner@linux.vnet.ibm.com>
19536 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19537 operands, as per the specifications.
19539 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19540 (vec_extract_evenv4sf): Ditto.
19541 (vec_extract_evenv8hi): Ditto.
19542 (vec_extract_evenv16qi): Ditto.
19543 (vec_extract_oddv4si): Ditto.
19545 2011-03-31 Mark Wielaard <mjw@redhat.com>
19547 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19548 high_pc attribute if the CU has no associated code. Only output
19549 DW_AT_entry_pc for CU if not generating strict dwarf and
19552 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
19554 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19555 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19557 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19558 * final.c (final_start_function): Call the new function rather
19559 than using a NULL argument for dwarf2out_frame_debug.
19561 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19562 that contains the prologue.
19564 * haifa-sched.c (queue_insn): New arg REASON. All callers
19565 changed. Print it in debugging output.
19567 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19569 * sched-ebb.c (begin_schedule_ready): Remove second argument.
19570 Split most of the code into...
19571 (begin_move_insn): ... here. New function.
19572 (ebb_sched_info): Add a pointer to it.
19573 * haifa-sched.c (scheduled_insns): New static variable.
19574 (sched_extend_ready_list): Allocate it.
19575 (schedule_block): Use it to record the order of scheduled insns.
19576 Perform RTL changes to move insns only after all scheduling
19577 decisions have been made.
19578 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19579 begin_move_insn field.
19580 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19581 * sched-int.h (struct haifa_sched_info): Remove second argument
19582 from begin_schedule_ready hook. Add new member begin_move_insn.
19583 * sched-rgn.c (begin_schedule_ready): Remove second argument.
19584 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19586 * haifa-sched.c (prune_ready_list): New function, broken out of
19588 (schedule_block): Use it.
19590 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19592 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19594 2011-04-01 Kai Tietz <ktietz@redhat.com>
19596 * config.gcc (*-*-mingw*): Allow as option the
19597 posix threading model.
19598 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
19599 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19601 (CPP_SPEC): Add pthread/no-pthread handling.
19602 (LIB_SPEC): Likewise.
19603 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19604 (LIB_SPEC): Likewise.
19605 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19606 flag to pass -pthread option for shared libgcc build.
19607 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19608 for shared libgcc build.
19609 * config/i386/t-mingw-pthread: New file.
19610 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19611 New define to enable use of library pthread by default.
19612 * config/i386/mingw.opt (pthread): New driver option.
19613 (no-pthread): New driver option.
19614 * config/i386/cygming.opt: Make sure trailing empty line is retained.
19615 * config/i386/mingw-w64.opt: Likewise.
19617 2011-04-01 Gary Funck <gary@intrepid.com>
19619 * c-decl.c (grokdeclarator): Fix formatting.
19621 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
19623 * expr.c (emit_block_move_via_movmem): Use n_generator_args
19624 instead of n_operands.
19625 (set_storage_via_setmem): Likewise.
19626 * optabs.c (maybe_gen_insn): Likewise.
19627 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19628 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19629 (mips_expand_builtin_direct): Likewise.
19630 * config/spu/spu.c (expand_builtin_args): Likewise.
19632 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
19634 * recog.h (insn_data_d): Add n_generator_args.
19635 * genoutput.c (data): Likewise.
19636 (output_insn_data): Print it.
19637 (max_opno, num_dups): Delete.
19638 (scan_operands): Just fill in "d->operand[...]".
19639 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19641 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
19643 * gensupport.h (pattern_stats): New structure.
19644 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19645 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19646 (max_operand_1, max_operand_vec): Delete.
19647 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19649 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
19651 * emit-rtl.c (emit_pattern_after_setloc): New function.
19652 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19653 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19654 (emit_pattern_after): New function.
19655 (emit_insn_after, emit_jump_insn_after): Call it.
19656 (emit_call_insn_after, emit_debug_insn_after): Likewise.
19657 (emit_pattern_before_setloc): New function.
19658 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19659 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19661 (emit_pattern_before): New function.
19662 (emit_insn_before, emit_jump_insn_before): Call it.
19663 (emit_call_insn_before, emit_debug_insn_before): Likewise.
19665 2011-03-31 Richard Henderson <rth@redhat.com>
19667 * dwarf2out.c (dw_separate_line_info_ref): Remove.
19668 (dw_separate_line_info_entry): Remove.
19669 (enum dw_line_info_opcode): New.
19670 (dw_line_info_entry): Use it.
19671 (dw_line_info_table, dw_line_info_table_p): New.
19672 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19673 (line_info_table, line_info_label_num): Remove.
19674 (line_info_table_in_use): Remove.
19675 (separate_line_info_table): Remove.
19676 (separate_line_info_table_allocated): Remove.
19677 (separate_line_info_table_in_use): Remove.
19678 (LINE_INFO_TABLE_INCREMENT): Remove.
19679 (line_info_label_num): New.
19680 (cur_line_info_table): New.
19681 (text_section_line_info, cold_text_section_line_info): New.
19682 (separate_line_info): New.
19683 (SEPARATE_LINE_CODE_LABEL): Remove.
19684 (print_dwarf_line_table): Remove.
19685 (debug_dwarf): Don't dump it.
19686 (output_one_line_info_table): New.
19687 (output_line_info): Use it.
19688 (new_line_info_table): New.
19689 (set_cur_line_info_table): New.
19690 (dwarf2out_switch_text_section): Use it.
19691 (dwarf2out_begin_function): Likewise.
19692 (push_dw_line_info_entry): New.
19693 (dwarf2out_source_line): Rewrite for new line info tables.
19694 (dwarf2out_init): Remove dead initailizations.
19696 2011-03-31 Joseph Myers <joseph@codesourcery.com>
19698 * opts.h (cl_option): Add comments to fields. Add bit-fields for
19700 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19701 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19702 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19703 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19704 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19705 * opt-functions.awk (flag_init, switch_bit_fields): New.
19706 (switch_flags): Don't handle flags moved to bit-fields. Don't
19707 generate CL_MISSING_OK or CL_SAVE.
19708 * optc-gen.awk: Update to generate bit-field output as well as
19710 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19711 bit-field instead of CL_REJECT_DRIVER flag.
19712 * opts-common.c (generate_canonical_option,
19713 decode_cmdline_option): Use bit-fields instead of CL_* flags.
19714 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19715 instead of CL_REJECT_NEGATIVE flag.
19716 * toplev.c (print_switch_values): Use cl_report bit-field instead
19719 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
19721 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19722 a zero minimum index only if it is redundant.
19724 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
19726 PR rtl-optimization/48381
19727 * ira-color.c (assign_hard_reg): Use hard reg set intersection
19728 instead of ira_class_hard_reg_index for calculating conflicting
19731 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
19733 * cprop.c: Clean up hash table building.
19734 (reg_avail_info): Remove.
19735 (oprs_available_p): Remove.
19736 (record_last_reg_set_info): Remove.
19737 (record_last_set_info): Remove.
19738 (reg_available_p): New function.
19739 (gcse_constant_p): Do not treat unfolded conditions as constants.
19740 (make_set_regs_unavailable): New function.
19741 (hash_scan_set): Simplify with new reg_available_p.
19742 (compute_hash_table_work): Traverse insns stream only once.
19743 Do not compute reg_avail_info. Traverse insns in reverse order.
19744 Record implicit sets after recording explicit sets from the block.
19746 2011-03-31 Michael Matz <matz@suse.de>
19748 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19750 2011-03-31 Anatoly Sokolov <aesok@post.ru>
19752 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19753 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19754 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19755 (h8300_mode_dependent_address_p): New function.
19756 (h8300_get_index): Make static.
19758 2011-03-31 Jeff Law <law@redhat.com>
19760 * reload1.c (elimination_effects): Fix typo in recent change.
19762 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19763 typo potentially leading to null pointer dereference.
19765 * caller-save.c (new_saved_hard_reg): Eliminate return value.
19766 (setup_save_areas): Corresponding changes to avoid useless
19769 * jump.c (reversed_comparison_code_parts): Avoid successive return
19770 statements when REVERSE_CONDITION is defined.
19772 * expr.c (expand_assignment): Avoid useless assignments.
19773 (expand_expr_real_1): Likewise.
19774 (expand_expr_real_2): Avoid useless statements.
19776 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19778 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19780 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19783 * stmt.c (expand_expr_stmt): Avoid useless assignment.
19785 2011-03-31 Joseph Myers <joseph@codesourcery.com>
19788 * doc/tm.texi.in (TARGET_VERSION): Remove.
19789 * doc/tm.texi: Regenerate.
19790 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19791 * collect2.c (main): Don't use TARGET_VERSION.
19792 * mips-tdump.c (main): Don't use TARGET_VERSION.
19793 * mips-tfile.c (main): Don't use TARGET_VERSION.
19794 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19795 * config/rs6000/vxworksae.h: Remove.
19796 * config/alpha/alpha.h (TARGET_VERSION): Remove.
19797 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19798 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19799 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19800 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19801 * config/arm/arm.h (TARGET_VERSION): Remove.
19802 * config/arm/coff.h (TARGET_VERSION): Remove.
19803 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19804 * config/arm/elf.h (TARGET_VERSION): Remove.
19805 * config/arm/freebsd.h (TARGET_VERSION): Remove.
19806 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19807 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19808 * config/arm/pe.h (TARGET_VERSION): Remove.
19809 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19810 * config/arm/semi.h (TARGET_VERSION): Remove.
19811 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19812 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19813 * config/arm/vxworks.h (TARGET_VERSION): Remove.
19814 * config/avr/avr.h (TARGET_VERSION): Remove.
19815 * config/bfin/bfin.h (TARGET_VERSION): Remove.
19816 * config/fr30/fr30.h (TARGET_VERSION): Remove.
19817 * config/frv/frv.h (TARGET_VERSION): Remove.
19818 * config/h8300/h8300.h (TARGET_VERSION): Remove.
19819 * config/i386/cygwin.h (TARGET_VERSION): Remove.
19820 * config/i386/darwin.h (TARGET_VERSION): Remove.
19821 * config/i386/darwin64.h (TARGET_VERSION): Remove.
19822 * config/i386/djgpp.h (TARGET_VERSION): Remove.
19823 * config/i386/freebsd.h (TARGET_VERSION): Remove.
19824 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19825 * config/i386/gnu.h (TARGET_VERSION): Remove.
19826 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19827 * config/i386/i386elf.h (TARGET_VERSION): Remove.
19828 * config/i386/linux.h (TARGET_VERSION): Remove.
19829 * config/i386/linux64.h (TARGET_VERSION): Remove.
19830 * config/i386/lynx.h (TARGET_VERSION): Remove.
19831 * config/i386/mingw32.h (TARGET_VERSION): Remove.
19832 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19833 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19834 * config/i386/netware.h (TARGET_VERSION): Remove.
19835 * config/i386/nto.h (TARGET_VERSION): Remove.
19836 * config/i386/openbsd.h (TARGET_VERSION): Remove.
19837 * config/i386/vxworks.h (TARGET_VERSION): Remove.
19838 * config/ia64/elf.h (TARGET_VERSION): Remove.
19839 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19840 * config/ia64/hpux.h (TARGET_VERSION): Remove.
19841 * config/ia64/linux.h (TARGET_VERSION): Remove.
19842 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19843 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19844 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19845 * config/lm32/lm32.h (TARGET_VERSION): Remove.
19846 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19847 * config/m32c/m32c.h (TARGET_VERSION): Remove.
19848 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19849 * config/m32r/m32r.h (TARGET_VERSION): Remove.
19850 * config/m68k/linux.h (TARGET_VERSION): Remove.
19851 * config/m68k/m68k.h (TARGET_VERSION): Remove.
19852 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19853 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19854 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19855 * config/mep/mep.h (TARGET_VERSION): Remove.
19856 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19857 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19858 * config/mips/iris6.h (MACHINE_TYPE): Remove.
19859 * config/mips/linux.h (TARGET_VERSION): Remove.
19860 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19861 * config/mips/vxworks.h (TARGET_VERSION): Remove.
19862 * config/mmix/mmix.h (TARGET_VERSION): Remove.
19863 * config/mn10300/linux.h (TARGET_VERSION): Remove.
19864 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19865 * config/pa/pa.h (TARGET_VERSION): Remove.
19866 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19867 * config/picochip/picochip.h (TARGET_VERSION): Remove.
19868 * config/rs6000/aix.h (TARGET_VERSION): Remove.
19869 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19870 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19871 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19872 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19873 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19874 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19875 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19876 * config/rs6000/linux.h (TARGET_VERSION): Remove.
19877 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19878 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19879 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19880 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19881 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19882 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19883 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19884 * config/s390/linux.h (TARGET_VERSION): Remove.
19885 * config/s390/s390.h (TARGET_VERSION): Remove.
19886 * config/s390/tpf.h (TARGET_VERSION): Remove.
19887 * config/score/score.h (TARGET_VERSION): Remove.
19888 * config/sh/linux.h (TARGET_VERSION): Remove.
19889 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19890 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19891 * config/sh/sh.h (TARGET_VERSION): Remove.
19892 * config/sh/sh64.h (TARGET_VERSION): Remove.
19893 * config/sh/superh.h (TARGET_VERSION): Remove.
19894 * config/sh/vxworks.h (TARGET_VERSION): Remove.
19895 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19896 * config/sparc/linux.h (TARGET_VERSION): Remove.
19897 * config/sparc/linux64.h (TARGET_VERSION): Remove.
19898 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19899 TARGET_NAME32, TARGET_NAME): Remove.
19900 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19901 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19902 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19903 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19904 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19905 * config/spu/spu.h (TARGET_VERSION): Remove.
19906 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19907 * config/v850/v850.h (TARGET_VERSION): Remove.
19908 * config/vax/linux.h (TARGET_VERSION): Remove.
19909 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19910 * config/xtensa/elf.h (TARGET_VERSION): Remove.
19911 * config/xtensa/linux.h (TARGET_VERSION): Remove.
19913 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
19916 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19917 frame-related from frame-unrelated adjustments to the stack pointer.
19919 2011-03-31 Jakub Jelinek <jakub@redhat.com>
19921 * common.opt (fdebug-types-section): Move earlier.
19922 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19924 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
19926 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19929 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
19931 * tree.h (CASE_CHAIN): Define.
19932 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19933 (gimple_redirect_edge_and_branch): Likewise.
19935 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
19937 PR middle-end/48367
19938 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19941 2011-03-30 Jeff Law <law@redhat.com>
19943 * PR bootstrap/48371
19944 * reload1.c (reload): Fix botch in last change.
19946 * reload.h (struct reload): Fix typo introduced in last change.
19948 2011-03-30 Joseph Myers <joseph@codesourcery.com>
19950 * config/arm/arm.opt (mhard-float, msoft-float): Mark
19951 Undocumented. Remove help text.
19952 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19955 2011-03-30 Joseph Myers <joseph@codesourcery.com>
19957 * doc/options.texi (NegativeAlias): Document.
19958 (Alias): Mention NegativeAlias.
19959 * opt-functions.awk: Handle NegativeAlias.
19960 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19961 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19962 * opts.h (CL_NEGATIVE_ALIAS): Define.
19963 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19964 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19966 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19968 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19969 mno-spe and mno-isel instead of mspe=no and -misel=no.
19971 2011-03-29 Mark Wielaard <mjw@redhat.com>
19973 * common.opt (fdebug-types-section): New flag.
19974 * doc/invoke.texi: Document new -fno-debug-types-section flag.
19975 * dwarf2out.c (use_debug_types): New define.
19976 (struct die_struct): Mark die_id with GTY desc use_debug_types.
19977 (print_die): Guard output of type unit signatures using
19979 (build_abbrev_table): Replace assert of dwarf_version >= 4
19980 with assert on use_debug_types.
19981 (size_of_die): Likewise.
19982 (unmark_dies): Likewise.
19983 (value_format): Decide AT_ref_external form on use_debug_types.
19984 (output_die): Replace dwarf_version version check guard with
19985 use_debug_types where appropriate.
19986 (modified_type_die): Likewise.
19987 (gen_reference_type_die): Likewise.
19988 (dwarf2out_start_source_file): Likewise.
19989 (dwarf2out_end_source_file): Likewise.
19990 (prune_unused_types_walk_attribs): Likewise.
19991 (dwarf2out_finish): Likewise.
19993 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
19995 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19997 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
19999 PR rtl-optimization/48332
20000 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20001 mode of input operand N and modeN to its actual mode.
20003 2011-03-30 Jeff Law <law@redhat.com>
20005 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20006 define accessor macro.
20007 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20008 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20009 (reg_equiv_init): Likewise.
20010 (reg_equivs_size): New variable.
20011 (reg_equiv_init_size): Remove.
20012 (allocate_initial_values): Move prototype to here from....
20013 * integrate.h (allocate_initial_values): Remove prototype.
20014 * integrate.c: Include reload.h.
20015 (allocate_initial_values): Corresponding changes.
20016 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20017 (fix_reg_equiv_init, no_equiv): Corresponding changes.
20018 (update_equiv_regs): Corresponding changes.
20019 (ira): Corresponding changes.
20020 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20021 (push_secondary_reload): Corresponding changes.
20022 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20023 (make_memloc, find_reloads_address): Corresponding changes.
20024 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20025 (find_reloads_address_1): Corresponding changes.
20026 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20027 (refers_to_regno_for_reload_p): Corresponding changes.
20028 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20029 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20030 * reload1.c: Include ggc.h.
20031 (grow_reg_equivs): New function.
20032 (replace_pseudos_in, reload): Corresponding changes.
20033 (calculate_needs_all_insns, alter_regs): Corresponding changes.
20034 (eliminate_regs_1, elimination_effects): Corresponding changes.
20035 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20036 (delete_output_reload): Likewise.
20037 * caller-save.c (mark_referenced_regs): Corresponding changes.
20038 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20039 * frv/predicates.md (frv_load_operand): Corresponding changes.
20040 * microblaze/microblaze.c (double_memory_operand): Corresponding
20042 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20043 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20044 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20045 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20046 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20048 * pa/pa.c (emit_move_sequence): Corresponding changes.
20049 * vax/vax.c (nonindexed_address_p): Corresponding changes.
20051 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20054 * config/arm/arm.c (coproc_secondary_reload_class): Handle
20055 structure modes. Don't check neon_vector_mem_operand for
20056 vector or structure modes.
20058 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20059 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20062 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20063 operand 1 and reshuffle the operands to match.
20064 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20066 2011-03-30 Christian Schüler <cschueler@gmx.de>
20069 * config/c.opt (F): Added 'Driver' to -F option.
20072 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20074 * config/darwin.opt: Added '-arch' option.
20076 2011-03-30 Nick Clifton <nickc@redhat.com>
20078 * config/rx/rx.md: Add peepholes and patterns to combine
20079 extending loads and simple arithmetic instructions.
20080 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20081 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20082 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20083 modes to use pre-decrement and post-increment addressing.
20084 (rx_is_restricted_memory_address): Add range checking of REG+INT
20086 (rx_print_operand): Add support for %Q. Fix handling of %Q.
20087 (rx_memory_move_cost): Adjust cost of stores.
20088 (rx_adjust_insn_length): New function.
20090 2011-03-30 Jakub Jelinek <jakub@redhat.com>
20093 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20094 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20095 matching arg00/arg01 types.
20097 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
20099 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20100 last_location to UNKNOWN_LOCATION.
20102 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
20105 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20108 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20109 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20112 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20113 Init(PROCESSOR_V7).
20114 (sparc_cpu): Likewise.
20115 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20118 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20121 PR middle-end/48342
20122 PR rtl-optimization/48345
20123 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20124 hard regs for given mode from profitable regs when doing secondary
20127 2011-03-29 Jeff Law <law@redhat.com>
20130 * tree-ssa-threadupdate.c (struct redirection_data): Remove
20131 do_not_duplicate field.
20132 (lookup_redirection_data): Corresponding changes.
20133 (create_duplicates): Always create a template block.
20134 (redirect_edges): Remove code which reused the original block
20135 when it was going to become unreachable code.
20136 (thread_block): Don't set do_not_duplicate field.
20138 2011-03-29 Joseph Myers <joseph@codesourcery.com>
20140 * lto-opts.c (register_user_option_p, lto_register_user_option):
20141 Make type argument unsigned.
20142 * lto-streamer.h (lto_register_user_option): Make type argument
20144 * opth-gen.awk: Make CL_* macros unsigned.
20145 * opts-common.c (find_opt): Make lang_mask argument unsigned.
20146 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20147 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20148 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20149 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20150 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20151 (find_opt): Make lang_mask argument unsigned.
20153 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20155 PR rtl-optimization/48331
20156 PR rtl-optimization/48334
20157 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20158 for any used algorithm.
20160 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20162 * ira-conflicts.c (build_object_conflicts): Add unused attribute
20165 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
20167 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20168 (alpha_option_override): Don't set alpha_sr_alias_set.
20169 (emit_frame_store_1): Use gen_frame_mem rather than calling
20171 (alpha_expand_epilogue): Ditto.
20173 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
20175 PR tree-optimization/48290
20176 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20177 vectorization, check that relevant phis in the basic block after
20178 the inner loop are really inner loop's exit phis.
20180 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
20183 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20184 (cached_dw_loc_list_def): New structure.
20185 (cached_dw_loc_list): New typedef.
20186 (cached_dw_loc_list_table): New variable.
20187 (cached_dw_loc_list_table_hash): New function.
20188 (cached_dw_loc_list_table_eq): Likewise.
20189 (add_location_or_const_value_attribute): Take a bool cache_p.
20190 Cache the list when the parameter is true.
20191 (gen_formal_parameter_die): Update caller.
20192 (gen_variable_die): Likewise.
20193 (dwarf2out_finish): Likewise.
20194 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20195 while generating debug info for the decl.
20196 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20197 (dwarf2out_init): Initialize cached_dw_loc_list_table.
20198 (resolve_addr): Cache the result of resolving a chain of
20201 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
20203 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20204 conflict object hard regset nodes have intersecting hard reg sets.
20206 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20207 after regstat_init_n_sets_and_refs.
20209 * ira.c: Add more comments at the top.
20210 (setup_stack_reg_pressure_class, setup_pressure_classes):
20211 Add comments how we compute the register pressure classes.
20212 (setup_allocno_and_important_classes): Add more comments.
20213 (setup_class_translate_array, reorder_important_classes)
20214 (setup_reg_class_relations): Add comments.
20216 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
20219 * ira-color.c: Add 2011 to the Copyright line.
20220 (assign_hard_reg): Add more comments.
20221 (improve_allocation): Ditto.
20223 * ira-costs.c: Add 2011 to the Copyright line.
20224 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20226 (setup_regno_cost_classes_by_mode): Ditto.
20228 Initial patches from ira-improv branch:
20230 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
20232 * ira-build.c (ira_create_object): Remove initialization of
20233 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
20234 (ira_create_allocno): Remove initialization of
20235 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20236 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20237 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20238 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20239 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20240 Initialize ALLOCNO_ADD_DATA.
20241 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20242 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20244 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
20245 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20247 * ira.c (ira_reallocate): Remove.
20248 (setup_pressure_classes): Call
20249 ira_init_register_move_cost_if_necessary. Use
20250 ira_register_move_cost instead of ira_get_register_move_cost.
20251 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20252 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20254 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20255 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20256 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20257 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20258 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20259 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20261 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20262 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20263 (struct allocno_color_data): New.
20264 (allocno_color_data_t): New typedef.
20265 (allocno_color_data): New definition.
20266 (ALLOCNO_COLOR_DATA): New macro.
20267 (struct object_color_data): New.
20268 (object_color_data_t): New typedef.
20269 (object_color_data): New definition.
20270 (OBJECT_COLOR_DATA): New macro.
20271 (update_copy_costs, calculate_allocno_spill_cost): Call
20272 ira_init_register_move_cost_if_necessary. Use
20273 ira_register_move_cost instead of ira_get_register_move_cost.
20274 (move_spill_restore, update_curr_costs): Ditto.
20275 (allocno_spill_priority): Make it inline.
20276 (color_pass): Allocate and free allocno_color_dat and object_color_data.
20277 (struct coalesce_data, coalesce_data_t): New.
20278 (allocno_coalesce_data): New definition.
20279 (ALLOCNO_COALESCE_DATA): New macro.
20280 (merge_allocnos, coalesced_allocno_conflict_p): Use
20281 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20282 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20283 (coalesce_allocnos): Ditto.
20284 (setup_coalesced_allocno_costs_and_nums): Ditto.
20285 (collect_spilled_coalesced_allocnos): Ditto.
20286 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20287 (setup_slot_coalesced_allocno_live_ranges): Ditto.
20288 (coalesce_spill_slots): Ditto.
20289 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
20290 free allocno_coalesce_data.
20292 * ira-conflicts.c: Fix formatting.
20293 (process_regs_for_copy): Call
20294 ira_init_register_move_cost_if_necessary. Use
20295 ira_register_move_cost instead of ira_get_register_move_cost.
20296 (build_object_conflicts): Optimize.
20298 * ira-costs.c (record_reg_classes): Optimize. Call
20299 ira_init_register_move_cost_if_necessary. Use
20300 ira_register_move_cost, ira_may_move_in_cost, and
20301 ira_may_move_out_cost instead of ira_get_register_move_cost and
20302 ira_get_may_move_cost.
20303 (record_address_regs): Ditto.
20304 (scan_one_insn): Optimize.
20305 (find_costs_and_classes): Optimize.
20306 (process_bb_node_for_hard_reg_moves): Call
20307 ira_init_register_move_cost_if_necessary. Use
20308 ira_register_move_cost instead of ira_get_register_move_cost.
20310 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20311 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20312 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20313 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20315 (ira_initiate_emit_data, ira_finish_emit_data)
20316 (create_new_allocno): New functions.
20317 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20318 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20319 Use ira_register_move_cost instead of ira_get_register_move_cost.
20321 * ira-int.h: Fix some comments.
20322 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20323 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20324 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20325 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
20327 (struct ira_allocno): Make mode and aclass a bitfield. Move other
20328 bitfield after mode. Make hard_regno a short int. Make
20329 hard_regno short. Remove first_coalesced_allocno and
20330 next_coalesced_allocno. Move mem_optimized_dest_p,
20331 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20332 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
20333 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20334 temp, colorable_p. Add new member add_data.
20335 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20336 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20337 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20338 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20339 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20340 (ALLOCNO_ADD_DATA): New macro.
20341 (ira_emit_data_t): New typedef.
20342 (struct ira_emit_data): New. Move mem_optimized_dest_p,
20343 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20344 from struct ira_allocno.
20345 (ALLOCNO_EMIT_DATA): New macro.
20346 (ira_allocno_emit_data, allocno_emit_reg): New.
20347 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20348 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20349 (OBJECT_ADD_DATA): New macro.
20350 (ira_reallocate): Remove.
20351 (ira_initiate_emit_data, ira_finish_emit_data): New.
20352 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20353 (ira_init_register_move_cost_if_necessary): New.
20354 (ira_object_conflict_iter_next): Merge into
20355 ira_object_conflict_iter_cond.
20356 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20358 * ira-live.c (process_single_reg_class_operands): Call
20359 ira_init_register_move_cost_if_necessary. Use
20360 ira_register_move_cost instead of ira_get_register_move_cost.
20362 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
20364 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20366 * ira-costs.c: Fix formatting.
20367 (cost_classes, cost_classes_num): Remove.
20368 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20369 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20370 (cost_classes_del, cost_classes_htab): New.
20371 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20372 (initiate_regno_cost_classes, setup_cost_classes): New.
20373 (setup_regno_cost_classes_by_aclass): New.
20374 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20375 (record_reg_classes): Use regno_cost_classes instead of
20376 cost_classes. Move checking opposite operand up.
20377 (record_address_regs): Use regno_cost_classes
20378 instead of cost_classes.
20379 (scan_one_insn): Ditto. Use always general register.
20380 (print_allocno_costs): Use regno_cost_classes instead of
20382 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
20383 (find_costs_and_classes): Set up cost classes for each registers.
20384 Use also their mode for this. Use regno_cost_classes instead of
20386 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20388 (free_ira_costs, ira_init_costs): Don't use cost_classes.
20389 (ira_costs, ira_set_pseudo_classes): Call
20390 initiate_regno_cost_classes and finish_regno_cost_classes.
20392 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
20394 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20396 * target.def (ira_cover_classes): Remove.
20398 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20400 * doc/tm.texi.in: Ditto.
20402 * ira-conflicts.c: Remove mentioning cover classes from the file.
20403 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
20404 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
20406 * targhooks.c (default_ira_cover_classes): Remove.
20408 * targhooks.h (default_ira_cover_classes): Ditto.
20410 * haifa-sched.c: Remove mentioning cover classes from the file.
20411 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
20412 ira_pressure_classes and ira_pressure_classes_num instead of
20413 ira_reg_class_cover_size and ira_reg_class_cover. Use
20414 sched_regno_pressure_class instead of sched_regno_cover_class.
20415 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20416 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20418 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
20419 classes from the file.
20420 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20421 (struct object_hard_regs, struct object_hard_regs_node): New.
20422 (struct ira_object): New members profitable_hard_regs,
20423 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20424 (struct ira_allocno): Rename cover_class to aclass. Rename
20425 cover_class_cost and updated_cover_class_cost to class_cost and
20426 updated_class_cost. Remove splay_removed_p and
20427 left_conflict_size. Add new members colorable_p.
20428 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20429 (ALLOCNO_COLORABLE_P): New macro.
20430 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20431 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20432 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20433 (OBJECT_...): Rename parameter C to O.
20434 (OBJECT_PROFITABLE_HARD_REGS): New macro.
20435 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20436 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20437 (struct target_ira_int): New members x_ira_max_memory_move_cost,
20438 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20439 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20440 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20441 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
20442 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
20443 x_ira_reg_class_subunion.
20444 (ira_max_memory_move_cost, ira_max_register_move_cost)
20445 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20446 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20447 (ira_important_class_nums, ira_reg_class_superunion): New macros.
20448 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20449 (ira_reg_class_union): Rename to ira_reg_class_subunion.
20450 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20451 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20452 (ira_tune_allocno_costs_and_cover_classes): Rename to
20453 ira_tune_allocno_costs.
20454 (ira_debug_hard_regs_forest): New.
20455 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20456 (ira_object_conflict_iter_next): Fix comments.
20457 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20458 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20459 cover_class to aclass.
20460 (ira_allocate_and_accumulate_costs): Ditto.
20461 (ira_allocate_and_set_or_copy_costs): Ditto.
20463 * opts.c (decode_options): Remove ira_cover_class check.
20465 * ira-color.c: Remove mentioning cover classes from the file. Use
20466 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20467 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20468 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
20469 (splay-tree.h): Remove include.
20470 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20471 before copy_freq_compare_func.
20472 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20473 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20475 (hard_regs_roots, hard_regs_node_vec): Ditto.
20476 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20477 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20478 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20479 (create_new_object_hard_regs_node): Ditto.
20480 (add_new_object_hard_regs_node_to_forest): Ditto.
20481 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20482 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20484 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20485 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20486 (remove_unused_object_hard_regs_nodes): Ditto.
20487 (enumerate_object_hard_regs_nodes): Ditto.
20488 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20489 (object_hard_regs_subnode_t): Ditto.
20490 (struct object_hard_regs_subnode): Ditto.
20491 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20492 (setup_object_hard_regs_subnode_index): Ditto.
20493 (get_object_hard_regs_subnodes_num): Ditto.
20494 (form_object_hard_regs_nodes_forest): Ditto.
20495 (finish_object_hard_regs_nodes_tree): Ditto.
20496 (finish_object_hard_regs_nodes_forest): Ditto.
20497 (allocnos_have_intersected_live_ranges_p): Rename to
20498 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
20499 (pseudos_have_intersected_live_ranges_p): Rename to
20500 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
20501 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20502 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20503 (update_copy_costs): Remove assert. Skip cost update if the hard
20504 reg does not belong the class.
20505 (assign_hard_reg): Process only profitable hard regs.
20506 (uncolorable_allocnos_num): Make it scalar.
20507 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20508 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20509 and ira_reg_class_max_nregs.
20510 (bucket_allocno_compare_func): Check frequency first.
20511 (sort_bucket): Add compare function as a parameter.
20512 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20513 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20514 (push_allocno_to_stack): Rewrite for checking new allocno
20516 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
20517 (push_only_colorable): Pass new parameter to sort_bucket.
20518 (push_allocno_to_spill): Remove.
20519 (allocno_spill_priority_compare): Make it inline and rewrite.
20520 (splay_tree_allocate, splay_tree_free): Remove.
20521 (allocno_spill_sort_compare): New function.
20522 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
20523 build and use splay tree. Choose first allocno in uncolorable
20524 allocno bucket to spill. Remove setting spill cost.
20525 (all_conflicting_hard_regs): Remove.
20526 (setup_allocno_available_regs_num): Check only profitable hard
20527 regs. Print info about hard regs nodes.
20528 (setup_allocno_left_conflicts_size): Remove.
20529 (put_allocno_into_bucket): Don't call
20530 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
20531 (improve_allocation): New.
20532 (color_allocnos): Call setup_profitable_hard_regs,
20533 form_object_hard_regs_nodes_forest, improve_allocation,
20534 finish_object_hard_regs_nodes_forest. Setup spill cost.
20535 (print_loop_title): Use pressure classes.
20536 (color_allocnso): Ditto.
20537 (do_coloring): Remove allocation and freeing splay_tree_node_pool
20538 and allocnos_for_spilling.
20539 (ira_sort_regnos_for_alter_reg): Don't setup members
20540 {first,next}_coalesced_allocno.
20541 (color): Remove allocating and freeing removed_splay_allocno_vec.
20542 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20543 prohibited_class_mode_regs.
20545 * ira-lives.c: Remove mentioning cover classes from the file. Fix
20547 (update_allocno_pressure_excess_length): Use pressure classes.
20548 (inc_register_pressure, dec_register_pressure): Check for pressure
20550 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20551 pressure class. Use ira_reg_class_nregs instead of
20552 ira_reg_class_max_nregs.
20553 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20554 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20555 (single_reg_class): Use ira_reg_class_nregs instead of
20556 ira_reg_class_max_nregs.
20557 (process_bb_node_lives): Use pressure classes.
20559 * ira-emit.c: Remove mentioning cover classes from the file. Use
20560 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
20561 (change_loop): Use pressure classes.
20562 (modify_move_list): Call ira_set_allocno_class instead of
20563 ira_set_allocno_cover_class.
20565 * ira-build.c: Remove mentioning cover classes from the file. Use
20566 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20567 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
20568 ALLOCNO_UPDATED_CLASS_COST instead of
20569 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
20570 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20571 (ira_create_allocno): Remove initialization of
20572 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
20573 ALLOCNO_COLORABLE_P.
20574 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20575 Update conflict regs for the objects.
20576 (create_cap_allocno): Remove assert. Don't propagate
20577 ALLOCNO_AVAILABLE_REGS_NUM.
20578 (ira_free_allocno_costs): New function.
20579 (finish_allocno): Change a part of code into call of
20580 ira_free_allocno_costs.
20581 (low_pressure_loop_node_p): Use pressure classes.
20582 (object_range_compare_func): Don't compare classes.
20583 (setup_min_max_conflict_allocno_ids): Ditto.
20585 * loop-invariant.c: Remove mentioning cover classes from the file.
20586 Use ira_pressure_classes and ira_pressure_classes_num instead of
20587 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
20588 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20589 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20590 Use reg_allocno_class instead of reg_cover_class.
20591 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20592 STACK_REG_COVER_CLASS.
20593 (get_regno_cover_class): Rename to get_regno_pressure_class.
20594 (move_loop_invariants): Initialize and finalize regstat.
20596 * ira.c: Remove mentioning cover classes from the file. Add
20597 comments about coloring without cover classes. Use ALLOCNO_CLASS
20598 instead of ALLOCNO_COVER_CLASS. Fix formatting.
20599 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20600 setup_class_subset_and_memory_move_costs.
20601 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20602 (setup_cover_and_important_classes): Rename to
20603 setup_allocno_and_important_classes.
20604 (setup_class_translate_array): New.
20605 (setup_class_translate): Call it for allocno and pressure classes.
20606 (cover_class_order): Rename to allocno_class_order.
20607 (comp_reg_classes_func): Use ira_allocno_class_translate instead
20608 of ira_class_translate.
20609 (reorder_important_classes): Set up ira_important_class_nums.
20610 (setup_reg_class_relations): Set up ira_reg_class_superunion.
20611 (print_class_cover): Rename to print_classes. Add parameter.
20612 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20613 Print pressure classes too.
20614 (find_reg_class_closure): Rename to find_reg_classes. Don't call
20615 setup_reg_subclasses.
20616 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20617 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20618 (setup_prohibited_class_mode_regs): Use
20619 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20620 (clarify_prohibited_class_mode_regs): New function.
20621 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20622 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20623 (ira_init_once): Initialize them.
20624 (free_register_move_costs): Process them.
20625 (ira_init): Move calls of find_reg_classes and
20626 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20627 Call clarify_prohibited_class_mode_regs.
20628 (ira_no_alloc_reg): Remove.
20629 (too_high_register_pressure_p): Use pressure classes.
20631 * sched-deps.c: Remove mentioning cover classes from the file.
20632 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
20633 ira_pressure_classes and ira_pressure_classes_num instead of
20634 ira_reg_class_cover_size and ira_reg_class_cover.
20635 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20636 sched_regno_pressure_class instead of sched_regno_cover_class.
20637 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
20638 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20640 * ira.h: Add 2010 to Copyright.
20641 (ira_no_alloc_reg): Remove external.
20642 (struct target_ira): Rename x_ira_hard_regno_cover_class,
20643 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20644 x_ira_class_translate to x_ira_hard_regno_allocno_class,
20645 x_ira_allocno_classes_num, x_ira_allocno_classes, and
20646 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
20647 x_ira_pressure_classes, x_ira_pressure_class_translate, and
20648 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
20649 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
20650 x_ira_no_alloc_regs.
20651 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20652 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20653 ira_allocno_classes_num and ira_allocno_classes.
20654 (ira_class_translate): Rename to ira_allocno_class_translate.
20655 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20656 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20657 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20658 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20659 (ira_no_alloc_regs): New.
20661 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
20662 classes from the file. Use ALLOCNO_CLASS instead of
20663 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
20664 ALLOCNO_COVER_CLASS_COST.
20665 (regno_cover_class): Rename to regno_aclass.
20666 (record_reg_classes): Use ira_reg_class_subunion instead of
20667 ira_reg_class_union.
20668 (record_address_regs): Check overflow.
20669 (scan_one_insn): Ditto.
20670 (print_allocno_costs): Print total mem cost fore regional allocation.
20671 (print_pseudo_costs): Use REG_N_REFS.
20672 (find_costs_and_classes): Use classes intersected with them on the
20673 1st pass. Check overflow. Use ira_reg_class_subunion instead of
20674 ira_reg_class_union. Use ira_allocno_class_translate and
20675 regno_aclass instead of ira_class_translate and regno_cover_class.
20676 Modify code for finding regno_aclass. Setup preferred classes for
20678 (setup_allocno_cover_class_and_costs): Rename to
20679 setup_allocno_class_and_costs. Use regno_aclass instead of
20680 regno_cover_class. Use ira_set_allocno_class instead of
20681 ira_set_allocno_cover_class.
20682 (init_costs, finish_costs): Use regno_aclass instead of
20684 (ira_costs): Use setup_allocno_class_and_costs instead of
20685 setup_allocno_cover_class_and_costs.
20686 (ira_tune_allocno_costs_and_cover_classes): Rename to
20687 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
20688 by processing objects. Use ira_reg_class_max_nregs instead of
20689 ira_reg_class_nregs.
20691 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20693 * sched-int.h: Remove mentioning cover classes from the file.
20694 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20696 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
20697 classes from the file.
20698 (struct reg_pref): Rename coverclass into allocnoclass.
20699 (reg_cover_class): Rename to reg_allocno_class.
20701 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20703 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20705 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20707 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20709 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20711 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20713 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20715 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20717 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20719 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20721 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20722 (i386_ira_cover_classes): Ditto.
20724 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20726 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20728 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20730 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20732 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20734 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20736 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20737 (mips_ira_cover_classes): Ditto.
20739 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20741 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20743 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20745 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20747 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20749 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20750 (IRA_COVER_CLASSES_VSX): Ditto.
20752 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20753 (rs6000_ira_cover_classes): Ditto.
20755 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20757 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20759 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20761 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20763 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20765 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20767 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20769 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20771 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20773 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20775 2011-03-29 Jakub Jelinek <jakub@redhat.com>
20778 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20779 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20780 dw_fde_unlikely_section_end_label, cold_in_std_section,
20781 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20782 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20784 (output_fde): Use dw_fde_second_{begin,end} if second is
20785 true, otherwise dw_fde_{begin,end}.
20786 (output_call_frame_info): Test dw_fde_second_begin != NULL
20787 instead of dw_fde_switched_sections.
20788 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20789 fields, initialize new fields. Initialize in_std_section
20790 unconditionally from the first partition.
20791 (dwarf2out_end_epilogue): Don't override dw_fde_end when
20792 dw_fde_second_begin is non-NULL.
20793 (dwarf2out_switch_text_section): Stop initializing removed
20794 dw_fde_struct fields, initialize new fields, initialize
20795 also dw_fde_end here. Set dw_fde_switch_cfi even when
20796 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
20797 (struct var_loc_list_def): Add last_before_switch field.
20798 (arange_table, arange_table_allocated, arange_table_in_use,
20799 ARANGE_TABLE_INCREMENT, add_arange): Removed.
20800 (size_of_aranges): Count !in_std_section and !second_in_std_section
20801 hunks in fdes, instead of looking at arange_table_in_use.
20802 (output_aranges): Add aranges_length argument, don't call
20803 size_of_aranges here. Instead of using aranges_table*
20804 emit ranges for fdes when !in_std_section resp.
20805 !second_in_std_section.
20806 (dw_loc_list): Break ranges crossing section switch.
20807 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
20808 use dw_fde_second_end instead of dw_fde_end as end of last range.
20809 (gen_subprogram_die): Don't call add_arange. Use
20810 dw_fde_{begin,end} for first partition and if switched
20811 section dw_fde_second_{begin,end} for the second.
20812 (var_location_switch_text_section_1,
20813 var_location_switch_text_section): New functions.
20814 (dwarf2out_begin_function): Initialize cold_text_section even
20815 when function_section () isn't text_section.
20816 (prune_unused_types): Don't walk arange_table.
20817 (dwarf2out_finish): Don't needlessly test
20818 flag_reorder_blocks_and_partition when testing cold_text_section_used.
20819 If info_section_emitted, call size_of_aranges and if it indicates
20820 non-empty .debug_aranges, call output_aranges with the computed
20821 size. Stop using removed dw_fde_struct fields, use
20822 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20826 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20827 create ENTRY_VALUE if incoming or address of incoming's MEM
20829 * dwarf2out.c (mem_loc_descriptor): Don't emit
20830 DW_OP_GNU_entry_value of DW_OP_fbreg.
20831 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20832 on ENTRY_VALUE is able to find the canonical parameter VALUE.
20833 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20834 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20836 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20837 is a REG_P or MEM_P with REG_P address, compute hash directly
20838 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20839 (preserve_only_constants): Don't clear VALUES forwaring
20840 ENTRY_VALUE to some other VALUE.
20842 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
20844 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20845 instead of GEN_INT.
20847 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
20849 * cfgexpand.c (expand_gimple_cond): Always set the source location and
20850 block before expanding the statement.
20851 (expand_gimple_stmt_1): Likewise. Set them here...
20852 (expand_gimple_stmt): ...and not here. Tidy.
20853 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20856 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
20858 * Makefile.in: New rule for cprop.o.
20859 * gcse.c: Move constant/copy propagation to cprop.c.
20860 (compute_local_properties): Only handle expression tables.
20861 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20862 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20863 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20864 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20865 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20866 compute_cprop_data, find_used_regs, try_replace_reg,
20867 find_avail_set, cprop_jump, constprop_register, cprop_insn,
20868 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20869 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20870 find_bypass_set, reg_killed_on_edge, bypass_block,
20871 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20872 execute_rtl_cprop, pass_rtl_cprop): Move to...
20873 * cprop.c: ...here. New file, constant/copy propagation for RTL
20874 moved from gcse.c to here with minor cleanups in duplicated code.
20876 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
20878 * config/i386/i386.c (flag_opts): Fix a typo in
20879 -mavx256-split-unaligned-store.
20881 2011-03-28 Anatoly Sokolov <aesok@post.ru>
20883 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20884 LIBCALL_VALUE): Remove macros.
20885 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20886 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20887 (h8300_function_value, h8300_libcall_value,
20888 h8300_function_value_regno_p): New functions.
20890 2011-03-28 Anatoly Sokolov <aesok@post.ru>
20892 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20894 2011-03-28 Jeff Law <law@redhat.com>
20896 * tree-ssa-threadupdate.c (redirect_edges): Call
20897 create_edge_and_update_destination_phis as needed.
20898 (create_edge_and_update_destination_phis): Accept new BB argument.
20899 All callers updated.
20900 (thread_block): Do not update the profile when threading around
20901 intermediate blocks.
20902 (thread_single_edge): Likewise.
20903 (determine_bb_domination_status): If BB is not a successor of the
20904 loop header, return NONDOMINATING.
20905 (register_jump_thread): Note when we register a jump thread around
20906 an intermediate block.
20907 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20908 (thread_across_edge): Use it.
20910 2011-03-28 Tristan Gingold <gingold@adacore.com>
20912 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20913 when for_return is 2.
20915 2011-03-28 Jeff Law <law@redhat.com>
20917 * var-tracking.c (canonicalize_values_mark): Delete unused
20919 (canonicalize_values_star, set_variable_part): Likewise.
20920 (clobber_variable_part, delete_variable_part): Likewise.
20922 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
20924 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20926 2011-03-28 Martin Jambor <mjambor@suse.cz>
20928 * tree-inline.c (expand_call_inline): Do not check that destination
20930 (optimize_inline_calls): Assert that destination node is analyzed.
20931 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20932 not call tree_lowering_passes.
20933 * cgraph.h (cgraph_analyze_function): Declare.
20934 * cgraphunit.c (cgraph_analyze_function): Make public.
20936 2011-03-28 Joseph Myers <joseph@codesourcery.com>
20938 * config/sparc/sparc-opts.h: New.
20939 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20940 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20941 (sparc_option_override): Store processor_type enumeration rather
20942 than string in cpu_default. Remove name and enumeration from
20943 cpu_table. Directly default -mcpu then default -mtune from -mcpu
20944 without using sparc_select. Use target_flags_explicit instead of
20946 * config/sparc/sparc.h (enum processor_type): Move to
20948 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20949 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20950 HeaderInclude entry.
20951 (mcpu=, mtune=): Use Var and Enum.
20952 (sparc_processor_type): New Enum and EnumValue entries.
20954 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20955 Iain Sandoe <iains@gcc.gnu.org>
20958 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20960 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
20962 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20963 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20964 Insert new statements at it in lieu of STMT.
20965 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20966 * tree-vect-stmts.c (vectorizable_store): Likewise.
20967 (vectorizable_load): Likewise.
20969 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
20971 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20976 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
20978 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20979 unaligned 256bit load/store.
20980 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20981 (*avx_movdqu<avxmodesuffix>): Likewise.
20983 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20986 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20987 * config/pa/pa.md (iordi3): Use new predicate in expander.
20988 (iorsi3): Likewise.
20990 2011-03-27 Anatoly Sokolov <aesok@post.ru>
20992 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20993 FUNCTION_VALUE_REGNO_P): Remove macros.
20994 * config/mips/mips-protos.h (mips_function_value): Remove.
20995 * config/mips/mips.c (mips_function_value): Rename to...
20996 (mips_function_value_1): ... this. Make static. Handle receiving
20997 the function type in 'fn_decl_or_type' argument.
20998 (mips_function_value, mips_libcall_value,
20999 mips_function_value_regno_p): New function.
21000 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21001 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21003 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21005 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21006 and -mavx256-split-unaligned-store.
21007 (ix86_option_override_internal): Split 32-byte AVX unaligned
21008 load/store by default.
21009 (ix86_avx256_split_vector_move_misalign): New.
21010 (ix86_expand_vector_move_misalign): Use it.
21012 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21013 -mavx256-split-unaligned-store.
21015 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21016 256bit load/store. Generate unaligned store on misaligned memory
21018 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21020 (*avx_movdqu<avxmodesuffix>): Likewise.
21022 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21023 -mavx256-split-unaligned-store.
21025 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21028 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21031 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21033 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21034 opno arguments with an expand_operand. Use create_input_operand.
21035 (mips_prepare_builtin_target): Delete.
21036 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21038 (mips_expand_builtin_direct): Use create_output_operand and
21039 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
21040 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
21041 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21043 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
21045 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21047 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21049 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
21051 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21052 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
21053 basic blocks and call commit_edge_insertions directly.
21054 (fixup_abnormal_edges): Move from here to...
21055 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
21056 on the edges and return whether some have actually been inserted.
21057 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21060 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
21062 PR rtl-optimization/48144
21063 * sel-sched-ir.c (merge_history_vect): Factor out from ...
21064 (merge_expr_data): ... here.
21065 (av_set_intersect): Rename to av_set_code_motion_filter.
21066 Update all callers. Call merge_history_vect when an expression
21067 is found in both sets.
21068 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21070 2011-03-26 Alan Modra <amodra@gmail.com>
21072 * config/rs6000/predicates.md (word_offset_memref_op): Handle
21073 cmodel medium addresses.
21074 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21075 64-bit gpr loads and stores.
21076 (rs6000_secondary_reload_ppc64): New function.
21077 * config/rs6000/rs6000-protos.h: Declare it.
21078 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21080 2011-03-26 Alan Modra <amodra@gmail.com>
21083 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21084 GNU Go in traceback table.
21086 2011-03-25 Richard Henderson <rth@redhat.com>
21088 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21089 if there are exactly 6 operands.
21090 (set_storage_via_setmem): Similarly.
21092 2011-03-25 Kai Tietz <ktietz@redhat.com>
21094 * collect2.c (write_c_file_stat): Handle backslash
21095 as right-hand directory separator.
21096 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21097 checking just for slash.
21098 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21099 instead of checking for trailing slash.
21100 * gcc.c (record_temp_file): Use filename_cmp instead
21102 (do_spec_1): Likewise.
21103 (replace_outfile_spec_function): Likewise.
21104 (is_directory): Use filename_ncmp instead of strncmp.
21105 (print_multilib_info): Likewise.
21106 * gcov.c (find_source): Use filename_cmp instead
21108 (make_gcov_file_name): Fix order of slash/backslash
21110 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21111 (add_standard_paths): Likewise.
21112 * mips-tfile.c (saber_stop): Handle backslash.
21113 * prefix.c (update_path): Use filename_ncmp instead of
21115 * profile.c (output_location): Use filename_cmp instead
21117 * read-md.c (handle_toplevel_file): Handle backslash.
21118 * tlink.c (frob_extension): Likewise.
21119 * tree-cfg.c (same_line_p): Use filename_cmp instead of
21121 * tree-dump.c (dequeue_and_dump): Handle backslash.
21122 * tree.c (get_file_function_name): Likewise.
21123 * gengtype.c (read_input_list): Likewise.
21124 (get_file_realbasename): Likewise.
21125 (get_output_file_with_visibility): Use filename_cmp
21128 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
21130 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21133 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
21135 * fold-const.c (expr_location_or): New function.
21136 (fold_truth_not_expr): Call it.
21138 2011-03-25 Jeff Law <law@redhat.com>
21140 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21142 * c-family/c-common.c (def_fn_type): Likewise.
21143 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21144 * emit-rtl.c (gen_rtvec): Likewise.
21145 * lto/lto-lang.c (def_fn_type): Likewise.
21147 2011-03-25 Richard Guenther <rguenther@suse.de>
21149 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21150 also generate copies.
21151 (fini_copy_prop): Handle constant values properly.
21153 2011-03-25 Jakub Jelinek <jakub@redhat.com>
21155 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21156 mode size instead of bitsize with DWARF2_ADDR_SIZE.
21157 (hash_loc_operands, compare_loc_operands): Handle
21158 DW_OP_GNU_entry_value.
21160 2011-03-25 Kai Tietz <ktietz@redhat.com>
21162 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21163 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21164 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21165 comment and use macro TARGET_64BIT_MS_ABI instead.
21166 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21167 and change default behavior for 32-bit MS_ABI.
21168 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21169 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21171 (ix86_cfun_abi): Likewise.
21172 (ix86_maybe_switch_abi): Adjust comment.
21173 (init_cumulative_args): Check for bit-ness in MS_ABI case.
21174 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21175 instead of checking for SYSV_ABI.
21176 (ix86_nsaved_sseregs): Likewise.
21177 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21179 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21180 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21181 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21182 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21183 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21185 2011-03-25 Richard Guenther <rguenther@suse.de>
21187 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21188 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21189 (verify_gimple): Remove.
21190 * tree-cfg.c (verify_gimple_call): Merge verification
21192 (verify_gimple_phi): Merge verification from verify_stmts.
21193 (verify_gimple_label): New function.
21194 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21195 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21196 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21197 (verify_stmts): Rename to verify_gimple_in_cfg.
21198 (verify_gimple_in_cfg): New function.
21199 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21200 * tree-ssa.c (verify_ssa): Likewise.
21201 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21203 2011-03-25 Richard Guenther <rguenther@suse.de>
21205 * passes.c (init_optimization_passes): Add FRE pass after
21208 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
21209 Andrew Stubbs <ams@codesourcery.com>
21211 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21213 (arm_movdi_vfp_cortexa8): New pattern.
21214 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21215 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21216 instructions when tuning for Cortex-A8. Set attribute "arch".
21217 * config/arm/arm.md: Move include arm-tune.md up a bit.
21218 (define_attr "arch"): Add "onlya8" and "nota8" values.
21219 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21221 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
21225 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21227 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21228 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
21229 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21230 * passes.c (init_optimization_passes): Move
21231 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21233 2011-03-25 Kai Tietz <ktietz@redhat.com>
21235 * c-typeck.c (comptypes_internal): Replace target
21236 hook call of comp_type_attributes by version in tree.c file.
21237 * gimple.c (gimple_types_compatible_p_1): Likewise.
21238 * tree-ssa.c (useless_type_conversion_p): Likewise.
21239 * tree.c (build_type_attribute_qual_variant): Likewise.
21240 (attribute_value_equal): New static helper function.
21241 (comp_type_attributes): New function.
21242 (merge_attributes): Use attribute_value_equal for comparison.
21243 (attribute_list_contained): Likewise.
21244 * tree.h (comp_type_attributes): New prototype.
21246 2011-03-25 Richard Guenther <rguenther@suse.de>
21248 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21249 of complex types at -O0.
21250 (verify_gimple_assign_binary): Likewise.
21251 (verify_gimple_assign_ternary): Likewise.
21253 2011-03-24 Mark Wielaard <mjw@redhat.com>
21255 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21256 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21258 2011-03-24 Mark Wielaard <mjw@redhat.com>
21261 * dwarf2out.c (output_abbrev_section): Only write table when
21262 abbrev_die_table_in_use > 1.
21264 2011-02-24 Richard Henderson <rth@redhat.com>
21266 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21267 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21268 (alpha_expand_unaligned_load_words): Use extql.
21269 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21270 (emit_insxl): Handle all modes for consistency.
21272 2011-02-24 Richard Henderson <rth@redhat.com>
21274 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21275 (alpha_expand_unaligned_load): Likewise.
21276 (alpha_expand_unaligned_store): Likewise.
21277 (alpha_expand_unaligned_load_words): Likewise.
21278 (alpha_expand_unaligned_store_words): Likewise.
21279 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21280 (alpha_split_lock_test_and_set_12): Likewise.
21281 (print_operand, alpha_fold_builtin_extxx): Likewise.
21282 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21283 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21284 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21285 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21286 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21287 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21288 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21289 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21290 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21291 (extwl, extll, extql): Similarly.
21292 (inswh, inslh, insqh): Similarly.
21293 (mskbl, mskwl, mskll, mskql): Similarly.
21294 (mskwh, msklh, mskqh): Similarly.
21296 2011-02-24 Richard Henderson <rth@redhat.com>
21298 * config/alpha/alpha.md (attribute isa): Add er, ner.
21299 (attribute enabled): Handle them.
21300 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21302 2011-02-24 Richard Henderson <rth@redhat.com>
21304 * config/alpha/alpha.md (attribute isa): Add vms.
21305 (attribute enabled): Handle it.
21306 (*movsf): Merge *movsf_{nofix,fix,nofp}.
21307 (*movdf): Merge *movdf_{nofix,fix,nofp}.
21308 (*movtf): Rename from *movtf_internal for consistency.
21309 (*movsi): Merge with *movsi_nt_vms.
21310 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21311 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21312 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21313 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21315 2011-02-24 Richard Henderson <rth@redhat.com>
21317 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21318 (extendqisi2, extendhisi2): Likewise.
21319 (extendqidi2): Simplify BWX/non-BWX expansions.
21320 (extendhidi2): Similarly.
21322 2011-02-24 Richard Henderson <rth@redhat.com>
21324 * config/alpha/alpha.md (attribute isa): New.
21325 (attribute enabled): New.
21326 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21327 (zero_extendqisi2, zero_extendqidi2): Similarly.
21328 (zero_extendhisi2, zero_extendhidi2): Similarly.
21329 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21331 2011-02-24 Richard Henderson <rth@redhat.com>
21333 * config/alpha/predicates.md (input_operand): Revert last change;
21334 update comment to mention 32-bit VMS rather than Windows.
21336 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21338 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21339 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
21340 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21341 * passes.c (init_optimization_passes): Move
21342 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21344 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
21346 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21348 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
21350 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21353 2011-03-24 Jakub Jelinek <jakub@redhat.com>
21356 * simplify-rtx.c (simplify_const_unary_operation): Call
21357 real_convert when changing mode class with FLOAT_EXTEND.
21359 2011-03-24 Nick Clifton <nickc@redhat.com>
21361 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21362 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21363 * config/rx/rx.c (rx_option_override): Set align_jumps,
21364 align_loops and align_labels if not set by the user.
21365 (rx_align_for_label): New function.
21366 (rx_max_skip_for_label): New function.
21367 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21368 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21369 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21370 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21371 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21373 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
21375 PR rtl-optimization/48263
21376 * optabs.c (expand_binop_directly): Reinstate convert_modes code
21377 and original commutative_p handling. Use maybe_gen_insn.
21379 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21381 * reload.c (find_reloads_subreg_address): Add address_reloaded
21382 parameter and return true there if the full address has been
21384 (find_reloads_toplev): Pass address_reloaded flag.
21385 (find_reloads_address_1): Don't use address_reloaded parameter.
21387 2011-03-24 Jeff Law <law@redhat.com>
21389 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21390 unused variable "ann".
21391 (remove_unused_locals): Likewise.
21393 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21396 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21399 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21401 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21402 for invalid symbolic addresses.
21403 (s390_secondary_reload): Don't use s390_check_symref_alignment for
21406 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
21408 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21409 the argument in calls to fold_truth_not_expr.
21411 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21413 * tree.c (record_node_allocation_statistics): New function.
21414 (make_node_stat, copy_node_stat, build_string): Call it.
21415 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21416 (build1_stat, build_omp_clause): Likewise.
21418 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
21420 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21423 2011-03-24 Richard Guenther <rguenther@suse.de>
21425 PR tree-optimization/48271
21426 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21427 blocks that still exist.
21429 2011-03-24 Richard Guenther <rguenther@suse.de>
21431 PR tree-optimization/48270
21432 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21433 not free datarefs before ddrs.
21435 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
21437 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21438 from the address built for a reference with variable offset.
21440 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
21443 * config/i386/i386.md (*movdf_internal_rex64): Do not split
21444 alternatives that can be handled with movq or movabsq insn.
21445 (*movdf_internal): Disable for !TARGET_64BIT.
21446 (*movdf_internal_nointeger): Ditto.
21447 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21449 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21451 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21452 (FUNCTION_ARG_ADVANCE): Likewise.
21453 * tm.texi.in: Change references to them to hook references.
21454 * tm.texi: Regenerate.
21455 * targhooks.c (default_function_arg): Eliminate check for target macro.
21456 (default_function_incoming_arg): Likewise.
21457 (default_function_arg_advance): Likewise.
21458 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21459 (function_arg_advance): Likewise.
21460 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21462 2011-03-24 Richard Guenther <rguenther@suse.de>
21464 PR middle-end/48269
21465 * tree-object-size.c (addr_object_size): Do not double-account
21466 for MEM_REF offsets.
21468 2011-03-24 Diego Novillo <dnovillo@google.com>
21470 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21471 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21472 (lto_input_data_block): Move from lto-opts.c. Make extern.
21474 (lto_input_string): Rename from input_string. Make extern.
21476 * lto-streamer-out.c (lto_output_string_with_length): Rename from
21477 output_string_with_length.
21478 Output 0 to indicate a non-NULL string. Update all callers to
21480 (lto_output_string): Rename from output_string. Make extern.
21482 (lto_output_decl_state_streams): Make extern.
21483 (lto_output_decl_state_refs): Make extern.
21484 * lto-streamer.h (lto_input_string): Declare.
21485 (lto_input_data_block): Declare.
21486 (lto_output_string): Declare.
21487 (lto_output_string_with_length): Declare.
21488 (lto_output_decl_state_streams): Declare.
21489 (lto_output_decl_state_refs): Declare.
21491 2011-03-24 Richard Guenther <rguenther@suse.de>
21493 PR tree-optimization/46562
21494 * tree.c (build_invariant_address): New function.
21495 * tree.h (build_invariant_address): Declare.
21496 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21497 a renamed function moved ...
21498 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21499 Take valueization callback parameter.
21500 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21501 * gimple-fold.h: New file.
21502 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21503 (ccp_fold, fold_const_aggregate_ref,
21504 fold_ctor_reference, fold_nonarray_ctor_reference,
21505 fold_array_ctor_reference, fold_string_cst_ctor_reference,
21506 get_base_constructor): Move ...
21507 * gimple-fold.c: ... here.
21508 (gimple_fold_stmt_to_constant_1): New function
21509 split out from ccp_fold. Take a valueization callback parameter.
21510 Valueize all operands.
21511 (gimple_fold_stmt_to_constant): New wrapper function.
21512 (fold_const_aggregate_ref_1): New function split out from
21513 fold_const_aggregate_ref. Take a valueization callback parameter.
21514 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21515 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21516 invariant POINTER_PLUS_EXPRs to invariant form.
21517 (vn_valueize): New function.
21518 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21519 * tree-vrp.c (vrp_valueize): New function.
21520 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21521 to fold statements to constants.
21522 * tree-ssa-pre.c (eliminate): Properly guard propagation of
21523 function declarations.
21524 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21525 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21527 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
21529 * config/h8300/predicates.md (jump_address_operand): Fix register
21532 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
21534 * doc/invoke.texi (max-stores-to-sink): Document.
21535 * params.h (MAX_STORES_TO_SINK): Define.
21536 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21537 if either vectorization or if-conversion is disabled.
21538 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21539 tree-vect-data-refs.c vect_equal_offsets.
21540 (dr_equal_offsets_p): New function.
21541 (find_data_references_in_bb): Remove static.
21542 * tree-data-ref.h (find_data_references_in_bb): Declare.
21543 (dr_equal_offsets_p): Likewise.
21544 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21545 (vect_drs_dependent_in_basic_block): Update calls to
21546 vect_equal_offsets.
21547 (vect_check_interleaving): Likewise.
21548 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21549 (cond_if_else_store_replacement): Rename to...
21550 (cond_if_else_store_replacement_1): ... this. Change arguments and
21552 (cond_if_else_store_replacement): New function.
21553 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21554 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21556 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
21559 * config/arm/arm.md (casesi): Use the gen_int_mode() function
21560 to subtract lower bound instead of GEN_INT().
21562 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
21567 * doc/extend.texi (Alignment): Move section to match order in TOC.
21568 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21569 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21571 2011-03-23 Jeff Law <law@redhat.com>
21573 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21574 before removing the edge.
21576 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21577 it may have been freed by redirect_branch_edge or
21578 redirect_edge_succ_nodup.
21580 2011-03-23 Richard Guenther <rguenther@suse.de>
21582 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21583 (check_va_list_escapes): Likewise.
21584 (check_all_va_list_escapes): Likewise.
21586 2011-03-23 Richard Guenther <rguenther@suse.de>
21588 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21589 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21590 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21591 (alias.o): Likewise.
21592 (ipa-type-escape.o): Remove.
21593 (ipa-struct-reorg.o): Likewise.
21594 (GTFILES): Remove ipa-struct-reorg.c.
21595 * alias.c: Do not include ipa-type-escape.h.
21596 * tree-ssa-alias.c: Likewise.
21597 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21598 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21599 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21600 and ipa-type-escape passes.
21601 * tree-pass.h (pass_ipa_type_escape): Remove.
21602 (pass_ipa_struct_reorg): Likewise.
21603 * ipa-struct-reorg.h: Remove.
21604 * ipa-struct-reorg.c: Likewise.
21605 * ipa-type-escape.h: Likewise.
21606 * ipa-type-escape.c: Likewise.
21607 * doc/invoke.texi (-fipa-struct-reorg): Remove.
21608 (--param struct-reorg-cold-struct-ratio): Likewise.
21609 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21610 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21611 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21613 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21615 * config/s390/2084.md: Enable all insn reservations also for z9_ec
21616 cpu attribute value.
21617 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21618 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21619 * config/s390/s390.c (processor_flags_table): New constant array.
21620 (s390_handle_arch_option): Remove.
21621 (s390_handle_option): Remove s390_handle_arch_option invocations
21622 and OPT_mwarn_framesize_ handling.
21623 (s390_option_override): Remove s390_handle_arch_option invocation.
21624 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21626 * config/s390/s390.md (cpu attribute): Add z9_ec value.
21627 * config/s390/s390.opt (s390_tune, s390_arch)
21628 (march=): Replace s390_arch_option enum and values with
21629 processor_type. Set variable name to s390_arch. Set
21630 initialization value.
21631 (mtune=): Replace s390_arch_option with processor_type. Set
21632 variable name to s390_tune. Set initialization value.
21634 2011-03-23 Julian Brown <julian@codesourcery.com>
21636 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21637 accesses which are not naturally aligned.
21639 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
21642 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21644 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
21646 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21647 parameter from "int" to "enum insn_code".
21648 (expand_operand_type): New enum.
21649 (expand_operand): New structure.
21650 (create_expand_operand): New function.
21651 (create_fixed_operand, create_output_operand): Likewise
21652 (create_input_operand, create_convert_operand_to): Likewise.
21653 (create_convert_operand_from, create_address_operand): Likewise.
21654 (create_integer_operand): Likewise.
21655 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21656 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21657 (expand_insn, expand_jump_insn): Likewise.
21658 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21659 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21660 (expand_movstr, expand_builtin___clear_cache): Likewise.
21661 (expand_builtin_lock_release): Likewise.
21662 * explow.c (allocate_dynamic_stack_space): Likewise.
21663 (probe_stack_range): Likewise. Allow check_stack to FAIL,
21664 and use the default handling in that case.
21665 * expmed.c (check_predicate_volatile_ok): Delete.
21666 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21667 (emit_cstore): Likewise.
21668 * expr.c (emit_block_move_via_movmem): Likewise.
21669 (set_storage_via_setmem, expand_assignment): Likewise.
21670 (emit_storent_insn, try_casesi): Likewise.
21671 (emit_single_push_insn): Likewise. Allow the expansion to fail.
21672 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21673 (expand_vec_shift_expr, expand_binop_directly): Likewise.
21674 (expand_twoval_unop, expand_twoval_binop): Likewise.
21675 (expand_unop_direct, emit_indirect_jump): Likewise.
21676 (emit_conditional_move, vector_compare_rtx): Likewise.
21677 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21678 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21679 (expand_sync_lock_test_and_set): Likewise.
21680 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
21681 (emit_unop_insn): Likewise.
21682 (expand_copysign_absneg): Change icode to an insn_code.
21683 (create_convert_operand_from_type): New function.
21684 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21685 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21686 (expand_insn, expand_jump_insn): Likewise.
21687 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21688 than const_int_operand for operand 2.
21690 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21692 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21695 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21697 * emit-rtl.c (emit_pattern_before_noloc): New function.
21698 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21699 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21700 (emit_pattern_after_noloc): New function.
21701 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21702 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21704 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21706 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21707 (__ffsDI2): Likewise.
21709 2011-03-22 Richard Henderson <rth@redhat.com>
21711 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21712 of !TARGET_ABI_OPEN_VMS.
21713 (alpha_trampoline_init, alpha_start_function): Likewise.
21714 (alpha_expand_epilogue, alpha_file_start): Likewise.
21715 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21716 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21717 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21718 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21719 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21721 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21723 * config/s390/s390-opts.h: New.
21724 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21725 s390_arch_flags, s390_warn_framesize, s390_stack_size,
21726 s390_stack_guard): Remove.
21727 (s390_handle_arch_option): Return void. Take enum
21728 s390_arch_option value instead of string and searching array.
21729 (s390_handle_option): Don't assert that global structures are in
21730 use. Access variables via opts pointer. Use error_at. Don't use
21731 sscanf for -mstack-guard= or -mstack-size=. Update call to
21732 s390_handle_arch_option.
21733 (s390_option_override): Update call to s390_handle_arch_option.
21734 (s390_emit_prologue): Use %d format for s390_stack_size in
21735 diagnostic. Use %wd for HOST_WIDE_INT.
21736 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21737 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21738 * config/s390/s390.opt (config/s390/s390-opts.h): New
21739 HeaderInclude entry.
21740 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21741 s390_arch_flags, s390_warn_framesize): New Variable entries.
21742 (s390_arch_option): New Enum and EnumValue entries.
21743 (march=): Use Enum instead of Var.
21744 (mstack-guard=, mstack-size=): Use UInteger and Var.
21745 (mtune=): Use Enum.
21747 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21749 * config/score/score.c (score_handle_option): Don't assert that
21750 global structures are in use. Access target_flags via opts
21751 pointer. Use value of -march= option to determine target_flags
21753 * config/score/score.opt (march=): Use Enum.
21754 (score_arch): New Enum and EnumValue entries.
21756 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21758 * config/mep/mep.c (option_mtiny_specified): Remove.
21759 (mep_option_override): Move register handling for -mivc2 from
21760 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
21761 instead of option_mtiny_specified.
21762 (mep_handle_option): Access target_flags via opts pointer. Don't
21763 assert that global structures are in use. Defer part of -mivc2
21764 handling and move it to mep_option_override.
21765 * config/mep/mep.opt (IVC2): New Mask entry.
21766 (mivc2): Use Var and Defer instead of Mask.
21768 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21770 * config/v850/v850-opts.h: New.
21771 * config/v850/v850.c (small_memory): Replace with
21772 small_memory_physical_max array. Make that array static const.
21773 (v850_handle_memory_option): Take integer value of argument. Take
21774 gcc_options pointer, option text and location. Return void.
21775 Update for changes to small memory structures.
21776 (v850_handle_option): Access target_flags via opts pointer. Don't
21777 assert that global structures are in use. Update calls to
21778 v850_handle_memory_option.
21779 (v850_encode_data_area): Update references to small memory settings.
21780 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21781 (enum small_memory_type): Move to v850-opts.h.
21782 * config/v850/v850.opt (config/v850/v850-opts.h): New
21783 HeaderInclude entry.
21784 (small_memory_max): New Variable entry.
21785 (msda): Replace by pair of options msda= and msda-. Use UInteger.
21786 (mtda, mzda): Likewise.
21788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21790 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21791 pointer. Don't assert that global structures are in use.
21793 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21795 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21796 via opts pointer. Don't assert that global structures are in use.
21798 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21800 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21801 (munix=93): Use Var.
21802 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21803 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21804 * config/pa/pa-opts.h: New.
21805 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21806 (pa_handle_option): Don't assert that global structures are in
21807 use. Access target_flags via opts pointer. Don't handle
21808 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21810 (pa_option_override): Handle deferred OPT_mfixed_range_.
21812 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21814 * config/mn10300/mn10300-opts.h: New.
21815 * config/mn10300/mn10300.c (mn10300_processor,
21816 mn10300_tune_string): Remove.
21817 (mn10300_handle_option): Don't assert that global structures are
21818 in use. Access mn10300_processor via opts pointer. Don't handle
21820 * config/mn10300/mn10300.h (enum processor_type): Move to
21822 (mn10300_processor): Remove.
21823 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21824 HeaderInclude entry.
21825 (mn10300_processor): New Variable entry.
21828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21830 * config/microblaze/microblaze.c: Don't include opts.h.
21831 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21832 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21833 (mno-clearbss): Use Var and Warn.
21835 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21837 * config/m32r/m32r-opts.h: New.
21838 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21839 (m32r_handle_option): Don't assert that global structures are in
21840 use. Access target_flags and m32r_cache_flush_func via opts
21841 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
21842 OPT_mno_flush_trap here.
21843 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21844 include of m32r-opts.h.
21845 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21846 HeaderInclude entry.
21847 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21848 (mmodel=): Use Enum and Var.
21849 (m32r_model): New Enum and EnumValue entries.
21850 (mno-flush-trap): Use Var.
21851 (msdata=): Use Enum and Var.
21852 (m32r_sdata): New Enum and EnumValue entries.
21854 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21856 * config/m32c/m32c.c: Don't include opts.h.
21857 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21858 m32c_handle_option): Remove.
21859 (m32c_option_override): Check global_options_set.x_target_memregs
21860 instead of target_memregs_set.
21861 * config/m32c/m32c.h (target_memregs): Remove.
21862 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21865 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21867 * config/iq2000/iq2000-opts.h: New.
21868 * config/iq2000/iq2000.c: Don't include opts.h.
21869 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21870 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21871 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21872 HeaderInclude entry.
21873 (iq2000_tune): New Variable entry.
21874 (march=): Add comment. Use Enum.
21875 (iq2000_arch): New Enum and EnumValue entries.
21876 (mcpu=): Use Enum and Var.
21877 (iq2000_tune): New Enum and EnumValue entries.
21879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21881 * config/ia64/ia64-opts.h: New.
21882 * config/ia64/ia64.c (ia64_tune): Remove.
21883 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21884 here. Use error_at.
21885 (ia64_option_override): Handle deferred OPT_mfixed_range_.
21886 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21887 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21888 HeaderInclude entry.
21889 (ia64_tune): New Variable entry.
21890 (mfixed-range=): Use Defer and Var.
21891 (mtune=): Use Enum and Var.
21892 (ia64_tune): New Enum and EnumValue entries.
21894 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21896 * config/frv/frv-opts.h: New.
21897 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21899 (frv_cpu_type): Remove.
21900 * config/frv/frv.c: Don't include opts.h.
21901 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21902 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21903 (frv_cpu_type): New Variable entry.
21904 (frv_cpu): New Enum and EnumValue entries.
21906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21908 * config/cris/cris.c (cris_handle_option): Access target_flags via
21909 opts pointer. Don't assert that global structures are in use.
21910 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21911 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21913 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21915 * config/bfin/bfin-opts.h: New.
21916 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21917 bfin_si_revision, bfin_workarounds): Remove.
21918 (bfin_cpus): Make static const.
21919 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21920 not bfin_lib_id_given.
21921 (bfin_handle_option): Don't set bfin_lib_id_given. Access
21922 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21923 pointer. Use error_at. Don't assert that global structures are in use.
21924 * config/bfin/bfin.h: Include bfin-opts.h.
21925 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21926 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21927 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21928 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21931 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21933 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21934 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21935 or -msoft-float here.
21936 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21937 -msoft-float and -mhard-float.
21938 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21939 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21941 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21943 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21944 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21946 (LIBGCC_SPEC): Don't handle -msoft-float.
21947 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21949 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21951 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21952 -mfloat-abi=*, not -msoft-float and -mhard-float.
21953 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21955 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21956 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21957 mhard-float and msoft-float.
21958 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21959 mfloat-abi=soft in comments, not mhard-float and msoft-float.
21960 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21961 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21963 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21964 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21966 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21968 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21971 2011-03-22 Richard Henderson <rth@redhat.com>
21973 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21974 TARGET_ABI_WINDOWS_NT.
21975 (alpha_output_function_end_prologue): Likewise.
21976 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21977 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21978 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21979 (trap, *movsi_nt_vms): Likewise.
21980 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21981 (*tablejump_osf_nt_internal): Remove.
21982 * config/alpha/predicates.md (input_operand): Only test Pmode.
21984 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21986 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21987 via opts pointer. Use error_at. Don't assert that global
21988 structures are in use.
21990 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21992 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21993 (ix86_handle_option): Access ix86_isa_flags and
21994 ix86_isa_flags_explicit via opts pointer. Don't assert that
21995 global structures are in use.
21996 (ix86_function_specific_save, ix86_function_specific_restore):
21997 Update ix86_isa_flags_explicit field name.
21998 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
21999 (ix86_isa_flags_explicit): Rename TargetSave entry to
22000 x_ix86_isa_flags_explicit.
22002 2011-03-22 Richard Henderson <rth@redhat.com>
22004 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22005 (alpha_option_override, direct_return): Likewise.
22006 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22007 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22008 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22009 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22010 (alpha_expand_epilogue, alpha_end_function): Likewise.
22011 (alpha_init_libfuncs): Likewise.
22012 (struct machine_function): Remove unicosmk members.
22013 (print_operand) ['t']: Remove.
22014 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22015 unicosmk_output_module_name, unicosmk_output_common,
22016 current_section_align, unicosmk_output_text_section_asm_op,
22017 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22018 unicosmk_section_type_flags, unicosmk_unique_section,
22019 unicosmk_asm_named_section, unicosmk_insert_attributes,
22020 unicosmk_output_align, unicosmk_defer_case_vector,
22021 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22022 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22023 unicosmk_output_ssib, unicosmk_add_call_info_word,
22024 unicosmk_extern_head, unicosmk_output_default_externs,
22025 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22026 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22027 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22028 * config/alpha/alpha-protos.h: Update.
22029 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22030 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22031 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22032 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22033 (*mulsi_se, mulvsi3): Likewise.
22034 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22035 (*divmodsi_internal, call, call_value, realign): Likewise.
22036 (moddi3, umoddi3): Likewise; remove duplicate expander.
22037 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22038 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22039 (*movdi_nofix): Remove r/U alternative.
22040 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22041 * config/alpha/constraints.md ("U"): Remove.
22042 * config/alpha/predicates.md (call_operand"): Don't test
22043 TARGET_ABI_UNICOSMK.
22045 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22047 * target.def (handle_option): Take gcc_options and
22048 cl_decoded_option pointers and location_t.
22049 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22050 * doc/tm.texi: Regenerate.
22051 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22052 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22053 * lto-opts.c (lto_reissue_options): Generate option structure for
22054 targetm.handle_option call.
22055 * opts.c (target_handle_option): Update call to
22056 targetm.handle_option. Remove assertions about values now passed
22058 * targhooks.c (default_target_handle_option): New.
22059 * targhooks.h (default_target_handle_option): Declare.
22060 * config/alpha/alpha.c: Include opts.h.
22061 (alpha_handle_option): Update to new hook interface.
22062 * config/arm/arm.c: Include opts.h.
22063 (arm_handle_option): Update to new hook interface.
22064 * config/arm/t-arm (arm.o): Update dependencies.
22065 * config/bfin/bfin.c: Include opts.h.
22066 (bfin_handle_option): Update to new hook interface.
22067 * config/cris/cris.c: Include opts.h.
22068 (cris_handle_option): Update to new hook interface.
22069 * config/frv/frv.c: Include opts.h.
22070 (frv_handle_option): Update to new hook interface.
22071 * config/i386/i386.c: Include opts.h.
22072 (ix86_handle_option): Update to new hook interface.
22073 (ix86_valid_target_attribute_inner_p): Generate option structure
22074 for call to ix86_handle_option.
22075 * config/i386/t-i386 (i386.o): Update dependencies.
22076 * config/ia64/ia64.c: Include opts.h.
22077 (ia64_handle_option): Update to new hook interface.
22078 * config/ia64/t-ia64 (ia64.o): Update dependencies.
22079 * config/iq2000/iq2000.c: Include opts.h.
22080 (iq2000_handle_option): Update to new hook interface.
22081 * config/m32c/m32c.c: Include opts.h.
22082 (m32c_handle_option): Update to new hook interface.
22083 * config/m32r/m32r.c: Include opts.h.
22084 (m32r_handle_option): Update to new hook interface.
22085 * config/m68k/m68k.c: Include opts.h.
22086 (m68k_handle_option): Update to new hook interface.
22087 * config/mep/mep.c: Include opts.h.
22088 (mep_handle_option): Update to new hook interface.
22089 * config/microblaze/microblaze.c: Include opts.h.
22090 (microblaze_handle_option): Update to new hook interface.
22091 * config/mips/mips.c: Include opts.h.
22092 (mips_handle_option): Update to new hook interface.
22093 * config/mn10300/mn10300.c: Include opts.h.
22094 (mn10300_handle_option): Update to new hook interface.
22095 * config/pa/pa.c: Include opts.h.
22096 (pa_handle_option): Update to new hook interface.
22097 * config/pdp11/pdp11.c: Include opts.h.
22098 (pdp11_handle_option): Update to new hook interface.
22099 * config/rs6000/rs6000.c: Include opts.h.
22100 (rs6000_handle_option): Update to new hook interface.
22101 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22102 * config/rx/rx.c: Include opts.h.
22103 (rx_handle_option): Update to new hook interface.
22104 * config/s390/s390.c: Include opts.h.
22105 (s390_handle_option): Update to new hook interface.
22106 * config/score/score.c: Include opts.h.
22107 (score_handle_option): Update to new hook interface.
22108 * config/sh/sh.c: Include opts.h.
22109 (sh_handle_option): Update to new hook interface.
22110 * config/sparc/sparc.c: Include opts.h.
22111 (sparc_handle_option): Update to new hook interface.
22112 * config/v850/v850.c: Include opts.h.
22113 (v850_handle_option): Update to new hook interface.
22115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22117 * gcc.c (driver_unknown_option_callback): Only permit and save
22118 unknown -Wno- options.
22119 (driver_wrong_lang_callback): Save options directly instead of via
22120 driver_unknown_option_callback.
22122 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
22124 * combine.c (simplify_set): Try harder to find the best CC mode when
22125 simplifying a nested COMPARE on the RHS.
22127 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22129 * config/alpha/gnu.h: Remove.
22130 * config/arc: Remove directory.
22131 * config/arm/netbsd.h: Remove.
22132 * config/arm/t-pe: Remove.
22133 * config/crx: Remove directory.
22134 * config/i386/netbsd.h: Remove.
22135 * config/m68hc11: Remove directory.
22136 * config/m68k/uclinux-oldabi.h: Remove.
22137 * config/mcore/mcore-pe.h: Remove.
22138 * config/mcore/t-mcore-pe: Remove.
22139 * config/netbsd-aout.h: Remove.
22140 * config/rs6000/gnu.h: Remove.
22141 * config/sh/sh-symbian.h: Remove.
22142 * config/sh/symbian-base.c: Remove.
22143 * config/sh/symbian-c.c: Remove.
22144 * config/sh/symbian-cxx.c: Remove.
22145 * config/sh/symbian-post.h: Remove.
22146 * config/sh/symbian-pre.h: Remove.
22147 * config/sh/t-symbian: Remove.
22148 * config/svr3.h: Remove.
22149 * config/vax/netbsd.h: Remove.
22150 * config.build: Don't handle i[34567]86-*-pe.
22151 * config.gcc: Remove handling of deprecations for most deprecated
22153 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22154 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22155 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22156 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22157 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22158 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22160 * config.host: Don't handle i[34567]86-*-pe.
22161 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22162 (ASM_SPEC32): Don't handle -mcall-gnu.
22163 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22165 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22166 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22167 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22168 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22169 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22170 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22171 conditional on SYMBIAN.
22172 * configure.ac: Don't handle powerpc*-*-gnu*.
22173 * configure: Regenerate.
22174 * doc/extend.texi (interrupt attribute): Don't mention CRX.
22175 * doc/install-old.texi (m6811, m6812): Don't mention.
22176 * doc/install.texi (arc-*-elf*): Don't document multilib option.
22177 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22178 (m68k-uclinuxoldabi): Don't mention.
22179 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22181 (-mcall-gnu): Remove.
22182 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22183 families): Remove constraint documentation.
22185 2011-03-22 Marius Strobl <marius@FreeBSD.org>
22187 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22188 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22189 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22191 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22194 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22195 vector when peeking at the next token for vector, don't expand the
22198 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
22200 * config/avr/avr-protos.h (expand_epilogue): Change prototype
22201 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22202 * config/avr/avr.c (init_cumulative_args)
22203 (avr_function_arg_advance): Use it.
22204 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22206 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22207 (avr_function_ok_for_sibcall): ...this new function.
22208 (avr_lookup_function_attribute1): New static Function.
22209 (avr_naked_function_p, interrupt_function_p)
22210 (signal_function_p, avr_OS_task_function_p)
22211 (avr_OS_main_function_p): Use it.
22212 * config/avr/avr.md ("sibcall", "sibcall_value")
22213 ("sibcall_epilogue"): New expander.
22214 ("*call_insn", "*call_value_insn"): New insn.
22215 ("call_insn", "call_value_insn"): Remove
22216 ("call", "call_value", "epilogue"): Change expander to handle
22219 2011-03-21 Nick Clifton <nickc@redhat.com>
22221 * doc/invoke.texi (Overall Options): Move closing brace to end of
22223 (Optimization Options): Add missing @gol.
22224 (Directory Options): Likewise.
22225 (i386 and x86-64 Options): Likewise.
22226 (RS6000 and PowerPC Options): Likewise.
22227 (i386 and x86-64 Windows Options): Likewise.
22228 (V850 Options): Add text missing from descriptions.
22230 2011-03-22 Richard Henderson <rth@redhat.com>
22232 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22233 (avr_incoming_return_addr_rtx): New.
22234 (emit_push_byte): New.
22235 (expand_prologue): Use it. Remove incorrect dwarf annotation for
22236 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
22237 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
22238 (emit_pop_byte): New.
22239 (expand_epilogue): Use it. Pop frame pointer by bytes.
22240 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22241 (INCOMING_RETURN_ADDR_RTX): New.
22242 (INCOMING_FRAME_SP_OFFSET): New.
22243 (ARG_POINTER_CFA_OFFSET): New.
22244 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22245 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22248 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22250 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22252 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22253 (FUNCTION_ARG_ADVANCE): Likewise.
22254 * tm.texi.in: Change references to them to hook references.
22255 * tm.texi: Regenerate.
22256 * targhooks.c (default_function_arg): Eliminate check for target
22258 (default_function_incoming_arg): Likewise.
22259 (default_function_arg_advance): Likewise.
22260 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22261 (function_arg_advance): Likewise.
22262 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22264 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22266 * tree.c (build_call_1): New function.
22267 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22269 2011-03-22 Richard Guenther <rguenther@suse.de>
22271 PR tree-optimization/48228
22272 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22273 for single-arg PHIs.
22275 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
22277 PR rtl-optimization/48143
22278 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22279 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22280 sse2_cvtps2pd): Likewise.
22282 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22284 * recog.c (canonicalize_change_group): Use validate_unshare_change.
22286 2011-03-22 Richard Guenther <rguenther@suse.de>
22288 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22289 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22290 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22291 and REALIGN_LOAD_EXPR.
22292 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22293 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22294 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22295 DOT_PROD_EXPR case ...
22296 (expand_expr_real_2): ... here.
22297 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22298 and REALIGN_LOAD_EXPR.
22299 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22300 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22301 (vect_create_epilog_for_reduction): Likewise.
22302 (vectorizable_reduction): Likewise.
22303 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22304 * tree-vect-stmts.c (vectorizable_load): Likewise.
22306 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
22308 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22310 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22312 * config/s390/s390.c (s390_delegitimize_address): Fix offset
22313 handling for PLTOFF/GOTOFF.
22315 2011-03-22 Nick Clifton <nickc@redhat.com>
22317 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22318 trailing backslash from the end of the macro definition.
22320 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22322 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22325 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
22327 * expr.h (prepare_operand): Move to...
22328 * optabs.h (prepare_operand): ...here and change the insn code
22329 parameter from "int" to "enum insn_code".
22330 (insn_operand_matches): Declare.
22331 * expr.c (init_expr_target): Use insn_operand_matches.
22332 (compress_float_constant): Likewise.
22333 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22334 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22335 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22336 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22338 (gen_cond_trap): Likewise.
22339 (prepare_operand): Likewise. Change icode to an insn_code.
22340 (insn_operand_matches): New function.
22341 * reload.c (find_reloads_address_1): Use insn_operand_matches.
22342 * reload1.c (gen_reload): Likewise.
22343 * targhooks.c (default_secondary_reload): Likewise.
22345 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
22347 * config/alpha/alpha.md (unspec): New define_c_enum.
22350 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
22353 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22354 between a call and its CALL_ARG_LOCATION note.
22356 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
22358 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22360 2011-03-21 Jakub Jelinek <jakub@redhat.com>
22364 * c-common.c (shorten_compare): If primopN is first sign-extended
22365 to opN and then zero-extended to result type, set primopN to opN.
22367 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
22369 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22370 for barrier handlers.
22372 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22374 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22375 UNSPEC constants to be in the unspec enumeration, and redefine
22376 all UNSPECV constants to be in the unspecv enumeration, so that
22377 dumps print which unspec/unspec_volatile this is.
22378 * config/rs6000/vector.md (UNSPEC_*): Ditto.
22379 * config/rs6000/paired.md (UNSPEC_*): Ditto.
22380 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22381 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22382 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22384 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22385 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22386 UNSPECV_LWSYNC, since these are used as unspec_volatile.
22387 * config/rs6000/sync.md (isync, lwsync): Ditto.
22389 2011-03-21 Richard Guenther <rguenther@suse.de>
22391 * params.def (lto-min-partition): Fix typo.
22393 2011-03-21 Richard Guenther <rguenther@suse.de>
22396 * c-decl.c (grokdeclarator): Drop to the main variant only
22397 for array types. Drop flag_gen_aux_info check.
22399 2011-03-21 Richard Guenther <rguenther@suse.de>
22401 PR translation/47911
22402 * params.def (lto-partitions): Fix typo.
22403 (lto-min-partition): Fix wording.
22405 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
22407 * config/rs6000/t-freebsd: Remove duplication from file.
22409 2011-03-21 Richard Guenther <rguenther@suse.de>
22411 PR middle-end/47661
22412 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22414 2011-03-21 Richard Guenther <rguenther@suse.de>
22417 * params.def (lto-partitions): Require at least 1 partition.
22419 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22421 * gthr-solaris.h: Remove.
22422 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22423 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22424 (LIB_SPEC): Likewise.
22425 * config/sol2.opt (threads): Remove.
22426 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22427 (sparc*-*-solaris2*): Likewise.
22428 * configure.ac (enable_threads): Enable solaris support.
22429 * configure: Regenerate.
22430 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22431 * doc/install.texi (Configuration, --enable-threads=lib): Remove
22434 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22436 * config.gcc: Obsolete *-*-solaris2.8*.
22437 * doc/install.texi (Specific, *-*-solaris2*): Document it.
22439 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22442 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22443 reference. Solaris 8 perl works.
22445 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22448 * doc/install.texi (Prerequisites): Move jar etc. up.
22449 Explain support library version requirements.
22451 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22454 * doc/install.texi (Prerequisites): Move Perl to build
22455 requirements. Always necessary on Solaris 2 with Sun ld.
22457 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22459 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22461 (Specific, i?86-*-solaris2.[89]): Likewise.
22462 (Specific, i?86-*-solaris2.10): Likewise.
22463 (Specific, mips-sgi-irix6): Likewise.
22464 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22465 Update for binutils 2.21.
22467 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22469 * configure.ac (gcc_cv_lto_plugin): Fix typo.
22470 Allow -fuse-linker-plugin for non-default plugin linker.
22471 * configure: Regenerate.
22473 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
22476 * gengtype.c (files_rules): Added rule for cp/parser.h.
22478 2011-03-21 Jakub Jelinek <jakub@redhat.com>
22481 * config/s390/s390.c (s390_delegitimize_address): Don't call
22482 lowpart_subreg if orig_x has BLKmode.
22484 2011-03-21 Kai Tietz <ktietz@redhat.com>
22487 * doc/plugins.texi: Adjust documentation for plugin register_callback.
22488 * tree.h (attribute_spec): Add new member affects_type_identity.
22489 * attribs.c (empty_attribute_table): Adjust attribute_spec
22491 * config/alpha/alpha.c: Likewise.
22492 * config/arc/arc.c: Likewise.
22493 * config/arm/arm.c: Likewise.
22494 * config/avr/avr.c: Likewise.
22495 * config/bfin/bfin.c: Likewise.
22496 * config/crx/crx.c: Likewise.
22497 * config/darwin.h: Likewise.
22498 * config/h8300/h8300.c: Likewise.
22499 * config/i386/cygming.h: Likewise.
22500 * config/i386/i386.c: Likewise.
22501 * config/ia64/ia64.c: Likewise.
22502 * config/m32c/m32c.c: Likewise.
22503 * config/m32r/m32r.c: Likewise.
22504 * config/m68hc11/m68hc11.c: Likewise.
22505 * config/m68k/m68k.c: Likewise.
22506 * config/mcore/mcore.c: Likewise.
22507 * config/mep/mep.c: Likewise.
22508 * config/microblaze/microblaze.c: Likewise.
22509 * config/mips/mips.c: Likewise.
22510 * config/rs6000/rs6000.c: Likewise.
22511 * config/rx/rx.c: Likewise.
22512 * config/sh/sh.c: Likewise.
22513 * config/sol2.h: Likewise.
22514 * config/sparc/sparc.c: Likewise.
22515 * config/spu/spu.c: Likewise.
22516 * config/stormy16/stormy16.c: Likewise.
22517 * config/v850/v850.c: Likewise.
22519 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22521 * simplify-rtx.c (simplify_binary_operation_1): Handle
22522 (xor (and A B) C) case when B and C are both constants.
22524 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
22526 * tree-dfa.c (add_referenced_var): Fix typo in comment.
22528 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
22531 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22533 2011-03-20 Jakub Jelinek <jakub@redhat.com>
22535 PR rtl-optimization/48156
22536 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22537 assume df and df_lr are not NULL.
22539 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22542 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22543 between a call and its CALL_ARG_LOCATION note.
22545 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22548 * config/sh/sh.c (find_barrier): Don't emit a constant pool
22549 between a call and its corresponding CALL_ARG_LOCATION note.
22551 2011-03-19 Anatoly Sokolov <aesok@post.ru>
22553 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22554 instead of loop. Use HARD_REGISTER_NUM_P predicate.
22555 * haifa-sched.c (setup_ref_regs): Ditto.
22556 * caller-save.c (add_used_regs_1): Ditto.
22557 * dse.c (look_for_hardregs): Ditto.
22558 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22559 * sched-rgn.c (check_live_1): Ditto.
22561 2011-03-18 Joseph Myers <joseph@codesourcery.com>
22563 * c-decl.c (diagnose_mismatched_decls): Give an error for
22564 redefining a typedef with variably modified type.
22566 2011-03-18 Joseph Myers <joseph@codesourcery.com>
22568 * c-decl.c (grokfield): Don't allow typedefs for structures or
22569 unions with no tag by default.
22570 * doc/extend.texi (Unnamed Fields): Update.
22572 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
22574 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22575 Rewrite using indirect functions.
22576 (lwp_slwpcb): Ditto.
22577 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22578 (avx_vinsertf128<mode>): Ditto.
22580 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22582 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22585 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22587 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22588 splitting between a call and its corresponding CALL_ARG_LOCATION note.
22590 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22592 PR rtl-optimization/48170
22593 * gcse.c (hoist_code): Remove bogus asserts.
22595 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
22597 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22598 computation for prologue/epilogue.
22600 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22602 * Makefile.in (check-consistency): Remove.
22604 2011-03-18 Jakub Jelinek <jakub@redhat.com>
22607 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22608 arange_table_in_use is 0, but either text_section_used or
22609 cold_text_section_used is true. Don't call it if
22610 !info_section_emitted.
22612 2011-03-18 Anatoly Sokolov <aesok@post.ru>
22614 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22615 FUNCTION_VALUE_REGNO_P): Remove.
22616 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22618 * config/avr/avr.c (avr_ret_register): Make static inline.
22619 (avr_function_value_regno_p): New function.
22620 (avr_libcall_value): Make static. Add 'func' argument.
22621 (avr_function_value): Make static. Rename 'func' argument to
22622 'fn_decl_or_type', forward it to avr_libcall_value. Call
22623 avr_ret_register function instead of RET_REGISTER macro.
22624 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22626 2011-03-18 Jason Merrill <jason@redhat.com>
22629 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22631 2011-03-18 Richard Guenther <rguenther@suse.de>
22633 * doc/install.texi (--enable-gold): Remove.
22634 (--with-plugin-ld): Document.
22635 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22637 2011-03-18 Andrew Pinski <pinskia@gmail.com>
22639 PR middle-end/47790
22640 * expr.c (optimize_bitfield_assignment_op): Revamp to work
22641 again after expansion changes.
22643 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
22645 * combine.c (try_combine): Do simplification only call of
22646 subst() on i2 even when i1 is present. Update comments.
22648 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
22650 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22651 and UNSPEC_PCREL_SYMOFF.
22653 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22655 * config/s390/s390.md: Use define_c_enum for the unspec constant
22658 2011-03-18 Richard Henderson <rth@redhat.com>
22659 Jakub Jelinek <jakub@redhat.com>
22662 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22663 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22665 2011-03-17 Anatoly Sokolov <aesok@post.ru>
22667 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22668 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22669 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22670 Change return type to bool.
22671 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22673 2011-03-17 Jakub Jelinek <jakub@redhat.com>
22676 * var-tracking.c (prepare_call_arguments): If CALL target
22677 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22678 pc instead of looking it up using cselib_lookup and use
22679 Pmode for it if x has VOIDmode.
22680 * dwarf2out.c (gen_subprogram_die): If also both first and
22681 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22684 * function.c (assign_parms): For data.passed_pointer parms
22685 use MEM of data.entry_parm instead of data.entry_parm itself
22686 as DECL_INCOMING_RTL.
22687 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22688 also when passed and declared mode is the same, DECL_RTL
22689 is a MEM with pseudo as address and DECL_INCOMING_RTL is
22692 2011-03-16 Jeff Law <law@redhat.com>
22694 PR rtl-optimization/37273
22695 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22696 handle them like argument loads from stack slots. Do not double
22697 count memory for memory constants and argument loads from stack slots.
22699 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
22702 * var-tracking.c (prepare_call_arguments): Check SUBREG.
22704 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
22707 * config/i386/i386.opt: Add Save to -mavx and -mfma.
22709 2011-03-17 Jakub Jelinek <jakub@redhat.com>
22712 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22714 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22715 Clear call_arg_locations and call_arg_loc_last always.
22717 PR middle-end/48152
22718 * var-tracking.c (prepare_call_arguments): If argument needs to be
22719 passed by reference, adjust argtype and mode.
22721 2011-03-17 Richard Guenther <rguenther@suse.de>
22723 PR middle-end/48134
22724 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22725 a value make sure to fold the statement.
22727 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
22730 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22731 return condition with !cfun->calls_alloca.
22733 2011-03-17 Richard Guenther <rguenther@suse.de>
22736 * lto-cgraph.c (input_overwrite_node): Clear the abstract
22737 origin for decls in other ltrans units.
22738 (input_varpool_node): Likewise.
22740 2011-03-17 Richard Guenther <rguenther@suse.de>
22742 PR middle-end/48165
22743 * tree-object-size.c (compute_object_offset): Properly return
22744 the offset operand of MEM_REFs as sizetype.
22746 2011-03-17 Jakub Jelinek <jakub@redhat.com>
22748 PR rtl-optimization/48141
22749 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22750 * dse.c: Include params.h.
22751 (active_local_stores_len): New variable.
22752 (add_wild_read, dse_step1): Clear it when setting active_local_stores
22754 (record_store, check_mem_read_rtx): Decrease it when removing
22756 (scan_insn): Likewise. Increase it when adding to chain, if it
22757 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22758 set active_local_stores to NULL before the addition.
22759 * Makefile.in (dse.o): Depend on $(PARAMS_H).
22761 PR rtl-optimization/48141
22762 * dse.c (record_store): If no positions are needed in an insn
22763 that cannot be deleted, at least unchain it from active_local_stores.
22765 2011-03-16 Dodji Seketeli <dodji@redhat.com>
22768 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22769 (lookup_type_die_strip_naming_typedef): ... here.
22770 (get_context_die): Use it.
22771 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22772 the anonymous struct named by the naming typedef.
22774 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
22777 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22778 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22780 2011-03-16 Jeff Law <law@redhat.com>
22782 * tree-vrp.c (identify_jump_threads): Slightly simplify type
22783 check for operands of conditional. Allow type to be a pointer.
22785 2011-03-16 Richard Guenther <rguenther@suse.de>
22787 PR tree-optimization/48149
22788 * fold-const.c (fold_binary_loc): Fold
22789 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22791 2011-03-16 Richard Guenther <rguenther@suse.de>
22793 PR tree-optimization/26134
22794 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22795 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22796 (non_rewritable_mem_ref_base): Handle complex type component
22797 accesses, constrain offsets for vector and complex extracts
22800 2011-03-16 Richard Guenther <rguenther@suse.de>
22802 PR tree-optimization/48146
22803 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22804 operands avoiding the need for renaming.
22806 2011-03-16 Richard Guenther <rguenther@suse.de>
22808 * gimple-fold.c (maybe_fold_reference): Open-code relevant
22809 constant folding. Move MEM_REF canonicalization first.
22810 Rely on fold_const_aggregate_ref for initializer folding.
22811 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22813 2011-03-16 Jakub Jelinek <jakub@redhat.com>
22815 PR middle-end/48136
22816 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22817 arg0/arg1 or their arguments are always fold converted to matching
22820 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22823 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22826 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22827 Handle in-tree gold.
22828 (ld_vers): Extract binutils version for gold.
22829 (gcc_cv_ld_hidden): Handle gold here.
22830 (gcc_cv_lto_plugin): Determine level of linker plugin support.
22831 * configure: Regenerate.
22832 * config.in: Regenerate.
22833 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22834 -fuse-linker-plugin otherwise.
22835 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
22836 (LINK_COMMAND_SPEC): Use it.
22837 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22839 2011-03-16 Jakub Jelinek <jakub@redhat.com>
22841 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22842 * calls.c: Remove debug.h include.
22843 (emit_call_1): Don't call virtual_call_token debug hook.
22844 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22845 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22846 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22847 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22848 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22849 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22850 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22851 dwarf2out_virtual_call): Remove.
22852 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22853 copy_call_info and virtual_call hooks.
22854 (dwarf2out_init): Don't initialize vcall_insn_table,
22855 debug_dcall_section and debug_vcall_section.
22856 (prune_unused_types): Don't mark nodes from dcall_table.
22857 (dwarf2out_finish): Don't output dcall or vcall tables.
22858 * final.c (final_scan_insn): Don't call direct_call or
22859 virtual_call debug hooks.
22860 * debug.h (struct gcc_debug_hooks): Remove direct_call,
22861 virtual_call_token, copy_call_info and virtual_call hooks.
22862 (debug_nothing_uid): Remove prototype.
22863 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22864 copy_call_info and virtual_call hooks.
22865 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22866 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22867 * debug.c (do_nothing_debug_hooks): Likewise.
22868 (debug_nothing_uid): Remove.
22869 * doc/invoke.texi (-fenable-icf-debug): Remove.
22870 * common.opt (-fenable-icf-debug): Likewise.
22872 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22873 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22874 call's MEM. Handle functions returning aggregate through a hidden
22875 first pointer. For virtual calls add clobbered pc to call arguments
22877 * dwarf2out.c (gen_subprogram_die): Emit
22878 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22882 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22883 * rtl.h (ENTRY_VALUE_EXP): Define.
22884 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22885 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22886 * print-rtl.c (print_rtx): Likewise.
22887 * gengtype.c (adjust_field_rtx_def): Likewise.
22888 * var-tracking.c (vt_add_function_parameter): Adjust
22889 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22890 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22891 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22892 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22893 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22895 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22896 Call var_location debug hook even on CALL_INSNs.
22897 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22898 * rtl.def (ENTRY_VALUE): New.
22899 * dwarf2out.c: Include cfglayout.h.
22900 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22901 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22902 (struct call_arg_loc_node): New type.
22903 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22904 tail_call_site_count): New variables.
22905 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22906 DW_TAG_GNU_call_site_parameter.
22907 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22908 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22909 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22910 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22911 and DW_AT_GNU_all_source_call_sites.
22912 (mem_loc_descriptor): Handle ENTRY_VALUE.
22913 (add_src_coords_attributes): Don't add enything if
22914 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22915 (dwarf2out_abstract_function): Save and clear call_arg_location,
22916 call_site_count and tail_call_site_count around dwarf2out_decl call.
22917 (gen_call_site_die): New function.
22918 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22919 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22920 (dwarf2out_function_decl): Clear call_arg_locations,
22921 call_arg_loc_last, set call_site_count and tail_call_site_count
22922 to -1 and free block_map.
22923 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22924 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
22925 followed by any real instructions.
22926 (dwarf2out_begin_function): Set call_site_count and
22927 tail_call_site_count to 0.
22928 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22929 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22930 attempt to force a DIE for it and worst case remove the attribute.
22931 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22932 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22934 * var-tracking.c: Include tm_p.h.
22935 (vt_stack_adjustments): For calls call note_register_arguments.
22936 (argument_reg_set): New variable.
22937 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22938 ensure the VALUE is resolved.
22939 (call_arguments): New variable.
22940 (prepare_call_arguments): New function.
22941 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22942 (struct expand_loc_callback_data): Add ignore_cur_loc field.
22943 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22944 always use the best expression.
22945 (vt_expand_loc): Add ignore_cur_loc argument.
22946 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22947 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22948 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22949 note for all calls.
22950 (vt_add_function_parameter): Use cselib_lookup_from_insn.
22951 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22952 argument. Don't call cselib_preserve_only_values and
22953 cselib_reset_table.
22954 (note_register_arguments): New function.
22955 (vt_initialize): Compute argument_reg_set. Call
22956 vt_add_function_parameters before processing basic blocks instead of
22957 afterwards. For calls call prepare_call_arguments before calling
22958 cselib_process_insn.
22959 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22960 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22961 (var-tracking.o): Depend on $(TM_P_H).
22962 * cfglayout.h (insn_scope): New prototype.
22963 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22964 * cfglayout.c (insn_scope): No longer static.
22965 * insn-notes.def (CALL_ARG_LOCATION): New.
22966 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22967 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22968 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22969 nothing for DECL_EXTERNAL BLOCK_VARS.
22971 2011-03-16 Alan Modra <amodra@gmail.com>
22974 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22975 create invalid offset address for vsx splat insn.
22976 * config/rs6000/predicates.md (splat_input_operand): New.
22977 * config/rs6000/vsx.md (vsx_splat_*): Use it.
22979 2011-03-15 Xinliang David Li <davidxl@google.com>
22982 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22983 (normalize_preds): New function.
22984 (is_use_properly_guarded): Normalize def predicates.
22986 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22989 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22990 in the output template.
22992 2011-03-15 Richard Guenther <rguenther@suse.de>
22994 PR middle-end/47650
22995 * tree-pretty-print.c (dump_function_declaration): Properly
22996 dump unprototyped and varargs function types.
22998 2011-03-15 Richard Guenther <rguenther@suse.de>
23000 PR tree-optimization/13954
23001 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23004 2011-03-15 Richard Guenther <rguenther@suse.de>
23006 PR tree-optimization/48037
23007 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23008 selects into BIT_FIELD_REFs.
23009 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23012 2011-03-15 Jakub Jelinek <jakub@redhat.com>
23014 PR tree-optimization/48129
23015 * builtins.c (fold_builtin_snprintf): Convert to type of
23016 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23017 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23019 2011-03-15 Richard Guenther <rguenther@suse.de>
23021 PR tree-optimization/41490
23022 * tree-ssa-dce.c (propagate_necessity): Handle returns without
23023 value but with VUSE.
23024 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23026 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23027 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23028 * tree-tailcall.c (find_tail_calls): Ignore returns.
23030 2011-03-15 Richard Guenther <rguenther@suse.de>
23032 PR middle-end/48031
23033 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23034 or variable-indexed array accesses when in gimple form.
23036 2011-03-15 Richard Guenther <rguenther@suse.de>
23038 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23040 2011-03-15 Alan Modra <amodra@gmail.com>
23043 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23044 presume symbol_refs without a symbol_ref_decl are suitably
23045 aligned, nor other trees we may see here. Handle anchor symbols.
23046 (legitimate_constant_pool_address_p): Comment. Add mode param.
23047 Check cmodel=medium addresses. Adjust all calls.
23048 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23049 creating cmodel=medium optimized access to locals.
23050 * config/rs6000/constraints.md (R): Pass QImode to
23051 legitimate_constant_pool_address_p.
23052 * config/rs6000/predicates.md (input_operand): Pass mode to
23053 legitimate_constant_pool_address_p.
23054 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23057 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23060 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23061 64-bit constants being loaded into registers other than GPRs such
23062 as loading 0 into a VSX register.
23064 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23066 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23068 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23070 PR middle-end/47917
23071 * builtins.c (fold_builtin_snprintf): New function.
23072 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23073 (fold_builtin_4): Likewise.
23075 PR middle-end/38878
23076 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23077 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
23078 and C - X == X also strip nops from +/-/p+ operand.
23079 When optimizing -X == C, fold C to arg0's type.
23082 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23083 emit it as add_AT_int instead of add_AT_unsigned.
23085 2011-03-14 Tom Tromey <tromey@redhat.com>
23087 * unwind-dw2.c: Include sys/sdt.h if it exists.
23088 (_Unwind_DebugHook): Use STAP_PROBE2.
23089 * config.in, configure: Rebuild.
23090 * configure.ac: Check for sys/sdt.h.
23092 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
23094 * config/i386/i386.md (ROUND_FLOOR): New constant.
23095 (ROUND_CEIL): Ditto.
23096 (ROUND_TRUNC): Ditto.
23097 (ROUND_MXCSR): Ditto.
23098 (ROUND_NO_EXC): Ditto.
23099 (rint<mode>2): Use new defines instead of numerical constants.
23100 (floor<mode>2): Ditto.
23101 (ceil<mode>2): Ditto.
23102 (btrunc<mode>2): Ditto.
23103 * config/i386/i386-builtin-types.def: Define ROUND function type
23105 * config/i386/i386.c (enum ix86_builtins): Add
23106 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23107 (struct builtin_description): Add
23108 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23109 (ix86_expand_sse_round): New static function.
23110 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23112 (ix86_builtin_vectorized_function): Handle
23113 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23115 2011-03-14 Tom Tromey <tromey@redhat.com>
23117 * c-parser.c (c_parser_asm_string_literal): Clear
23118 warn_overlength_strings.
23120 2011-03-14 Tom Tromey <tromey@redhat.com>
23122 * c-parser.c (disable_extension_diagnostics): Save
23123 warn_overlength_strings.
23124 (restore_extension_diagnostics): Restore warn_overlength_strings.
23126 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23128 * BASE-VER: Change to 4.7.0.
23130 2011-03-14 Richard Guenther <rguenther@suse.de>
23132 PR middle-end/48098
23133 * tree.c (build_vector_from_val): Adjust assert to requirements
23136 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23139 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23141 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
23143 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23144 terms of target_flags_explicit. Adjust copyright year.
23146 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23147 * config/rs6000/t-freebsd: New file. Add override for
23150 2011-03-13 Chris Demetriou <cgd@google.com>
23152 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23153 (-fno-diagnostics-show-option): this, to reflect current default.
23154 (-Werror=): Update text about -fno-diagnostics-show-option.
23156 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
23159 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23160 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23161 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23162 mode is not V2DImode or V2DFmode.
23163 (vspltis_constant): Do not handle V2DImode and V2DFmode.
23164 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23165 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23167 (movdi_internal64): Likewise.
23169 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
23171 PR tree-optimization/47127
23172 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23174 (set_cloog_options): Same.
23175 (scop_to_clast): Same.
23176 (print_clast_stmt): Do not call cloog_state_malloc and
23178 (print_generated_program): Same.
23180 * graphite-clast-to-gimple.h (cloog_state): Declared.
23181 (scop_to_clast): Adjust declaration.
23182 * graphite.c (cloog_state): Defined here.
23183 (graphite_initialize): Call cloog_state_malloc.
23184 (graphite_finalize): Call cloog_state_free.
23186 2011-03-11 Jason Merrill <jason@redhat.com>
23188 * attribs.c (lookup_attribute_spec): Take const_tree.
23191 2011-03-11 Joseph Myers <joseph@codesourcery.com>
23193 * config/sparc/sparc.c (sparc_option_override): Use
23194 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23196 2011-03-11 Richard Guenther <rguenther@suse.de>
23198 PR tree-optimization/48067
23199 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23200 multiplication result will be only used once on the target
23203 2011-03-11 Richard Guenther <rguenther@suse.de>
23205 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23207 2011-03-11 Richard Guenther <rguenther@suse.de>
23210 * tree.c (find_decls_types_r): Do not walk types only reachable
23211 from IDENTIFIER_NODEs.
23213 2011-03-11 Jakub Jelinek <jakub@redhat.com>
23215 PR middle-end/48044
23216 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23217 all vnode->force_output nodes as needed.
23219 2011-03-11 Jason Merrill <jason@redhat.com>
23222 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23223 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23225 2011-03-11 Martin Jambor <mjambor@suse.cz>
23227 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23230 2011-03-11 Jakub Jelinek <jakub@redhat.com>
23232 PR tree-optimization/48063
23233 * ipa-inline.c (cgraph_decide_inlining): Don't try to
23234 inline functions called once if !tree_can_inline_p (node->callers).
23236 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
23238 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23240 * config/score/score3.c: Delete.
23241 * config/score/score3.h: Delete.
23242 * config/score/mul-div.S: Delete.
23243 * config/score/sfp-machine.h: Add new file.
23244 * config/score/constraints.md: Add new file.
23245 * config/score/t-score-softfp: Add new file.
23246 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23247 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23248 (score7_extra_constraint): Delete.
23249 (score7_option_override): Remove unused code.
23250 * config/score/score.c: Remove score3 and score5 define and code.
23251 * config/score/score.h: Remove score3 and score5 define and code.
23252 * config/score/score.md: Remove score3 template and unusual insn.
23253 * config/score/score.opt: Remove score3 and score5 options.
23255 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23257 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23258 when _HPUX_SOURCE is defined.
23259 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23261 2011-03-10 Jason Merrill <jason@redhat.com>
23264 * stor-layout.c (layout_type): Don't set structural equality
23265 on arrays of incomplete type.
23266 * tree.c (type_hash_eq): Handle comparing them properly.
23268 2011-03-10 Jakub Jelinek <jakub@redhat.com>
23271 * config/s390/s390.c (s390_delegitimize_address): Make sure the
23272 result mode matches original rtl mode.
23274 2011-03-10 Nick Clifton <nickc@redhat.com>
23276 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23277 (andsi3, andsi3_flags): Fix timings for three operand alternative.
23279 2011-03-09 Jakub Jelinek <jakub@redhat.com>
23281 PR rtl-optimization/47866
23282 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23283 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23284 if target wasn't scalar.
23285 * function.c (assign_stack_temp_for_type): Assert that neither
23286 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23287 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23289 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23291 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23293 * config/s390/s390-protos.h (s390_label_align): New prototype.
23294 * config/s390/s390.c (s390_label_align): New function.
23295 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23297 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
23300 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23301 V2DI/V2DF constants. Only all 0's or all 1's are easy.
23302 (output_vec_const_move): Ditto.
23304 2011-03-08 Anatoly Sokolov <aesok@post.ru>
23306 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23307 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23308 * config/mips/mips.c (mips_preferred_reload_class): Make static.
23309 Change 'rclass' argument and result type to reg_class_t.
23310 (TARGET_PREFERRED_RELOAD_CLASS): Define.
23312 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
23314 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23315 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23316 (TARGET_MEMORY_MOVE_COST): Define.
23317 (avr_register_move_cost, avr_memory_move_cost): New Functions.
23319 2011-03-08 Jakub Jelinek <jakub@redhat.com>
23322 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23325 PR tree-optimization/48022
23326 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23329 2011-03-07 Jakub Jelinek <jakub@redhat.com>
23332 * var-tracking.c (find_use_val): Return NULL for
23333 cui->sets && cui->store_p BLKmode MEMs.
23335 2011-03-07 Anatoly Sokolov <aesok@post.ru>
23337 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23339 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23340 xstormy16_print_operand_address): Remove.
23341 * config/stormy16/stormy16.c (xstormy16_print_operand,
23342 xstormy16_print_operand_address): Make static.
23343 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23345 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
23348 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23349 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23352 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
23355 * cfgloopmanip.c (fix_bb_placements): Return immediately
23356 if FROM is BASE_LOOP's header.
23358 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
23360 * gimplify.c (gimplify_function_tree): Fix building calls
23361 to __builtin_return_address.
23363 2011-03-07 Alan Modra <amodra@gmail.com>
23365 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23366 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23367 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23368 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23370 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23371 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23372 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23373 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23374 * config/rs6000/rs6000.c
23375 (rs6000_elf_end_indicate_exec_stack): Rename to..
23376 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
23377 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
23378 (rs6000_file_start): ..here.
23379 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23380 file scope variables.
23381 (call_ABI_of_interest): New function.
23382 (init_cumulative_args): Set above vars when function return value
23383 is a float, vector, or small struct.
23384 (rs6000_function_arg_advance_1): Likewise for function args.
23385 (rs6000_va_start): Set rs6000_passes_float if variable arg function
23386 references float args.
23388 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
23390 * doc/cfg.texi: Remove "See" before @ref.
23391 * doc/invoke.texi: Likewise.
23393 2011-03-05 Jason Merrill <jason@redhat.com>
23395 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23397 2011-03-05 Anthony Green <green@moxielogic.com>
23399 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23401 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
23403 PR rtl-optimization/47899
23404 * cfgloopmanip.c (fix_bb_placements): Fix first argument
23405 to flow_loop_nested_p when moving the loop upward.
23407 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
23410 * arm.md (movhi_insn_arch4): Accept any immediate constant.
23412 2011-03-05 Jakub Jelinek <jakub@redhat.com>
23414 PR tree-optimization/47967
23415 * ipa-cp.c (build_const_val): Return NULL instead of creating
23416 VIEW_CONVERT_EXPR for mismatching sizes.
23417 (ipcp_create_replace_map): Return NULL if build_const_val failed.
23418 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23419 give up on versioning.
23421 2011-03-05 Alan Modra <amodra@gmail.com>
23424 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23425 full cmodel medium/large lo_sum + high addresses.
23427 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23429 * config/s390/s390.c (s390_decompose_address): Reject non-literal
23430 pool references in UNSPEC_LTREL_OFFSET.
23432 2011-03-04 Jan Hubicka <jh@suse.cz>
23435 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23436 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23437 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23439 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23440 cgraph_add_thunk): Add node pointers.
23441 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23442 associated to right node.
23443 (input_node): Update use of cgraph_same_body_alias
23444 and cgraph_add_thunk.
23446 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
23448 * config/i386/i386.opt (mprefer-avx128): New flag.
23449 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23450 modes when the flag -mprefer-avx128 is on.
23452 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
23454 * dwarf2out.c (compare_loc_operands): Fix address handling.
23456 2011-03-04 Alan Modra <amodra@gmail.com>
23458 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23460 2011-03-04 Richard Guenther <rguenther@suse.de>
23462 PR middle-end/47968
23463 * expmed.c (extract_bit_field_1): Prefer vector modes that
23464 vec_extract patterns can handle.
23466 2011-03-04 Richard Guenther <rguenther@suse.de>
23468 PR middle-end/47975
23469 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23471 2011-03-04 Richard Henderson <rth@redhat.com>
23473 * explow.c (emit_stack_save): Remove 'after' parameter.
23474 (emit_stack_restore): Likewise.
23475 * expr.h: Update to match.
23476 * builtins.c, calls.c, stmt.c: Likewise.
23477 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23478 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23479 * function.c (expand_function_end): Insert the emit_stack_save
23480 sequence before parm_birth_insn instead of after.
23482 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
23484 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23485 (ssse3_pmaddubsw128): Ditto.
23486 (ssse3_pmaddubsw): Ditto.
23488 2011-03-03 Steve Ellcey <sje@cup.hp.com>
23490 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23492 2011-03-03 Jakub Jelinek <jakub@redhat.com>
23495 * gimplify.c (omp_add_variable): Only call omp_notice_variable
23496 on TYPE_SIZE_UNIT if it is a DECL.
23499 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23500 first operand is not is_gimple_mem_ref_addr, try to fold it.
23501 If the operand still isn't is_gimple_mem_ref_addr, clear
23504 2011-03-03 Richard Guenther <rguenther@suse.de>
23506 PR middle-end/47283
23507 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23509 (refs_may_alias_p_1): For release branches return true if
23510 we are confused by our input.
23512 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23514 * config/s390/s390.c (s390_function_value): Rename to ...
23515 (s390_function_and_libcall_value): ... this.
23516 (s390_function_value): New function.
23517 (s390_libcall_value): New function.
23518 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23519 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23520 target macro definitions.
23521 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23523 2011-03-02 Joseph Myers <joseph@codesourcery.com>
23525 * config/i386/freebsd64.h (CC1_SPEC): Define.
23526 * config/i386/linux64.h (CC1_SPEC): Define.
23527 * config/i386/x86-64.h (CC1_SPEC): Don't define.
23529 2011-03-02 Anatoly Sokolov <aesok@post.ru>
23531 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23533 * config/stormy16/stormy16.c: Include reload.h.
23534 (xstormy16_memory_move_cost): New function.
23535 (TARGET_MEMORY_MOVE_COST): Define.
23537 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
23539 PR rtl-optimization/47925
23540 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23541 with side effects. Remove the more-specific check for volatile asms.
23543 2011-03-02 Alan Modra <amodra@gmail.com>
23546 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23547 toc relative addresses for valid offsets.
23549 2011-03-01 Richard Guenther <rguenther@suse.de>
23551 PR tree-optimization/47890
23552 * tree-vect-loop.c (get_initial_def_for_induction): Set
23553 related stmt properly.
23555 2011-03-01 Richard Guenther <rguenther@suse.de>
23558 * lto-streamer.c (lto_record_common_node): Also register
23559 the canonical type.
23561 2011-03-01 Richard Guenther <rguenther@suse.de>
23564 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23565 Do not stream DECL_ABSTRACT_ORIGIN.
23566 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23567 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23568 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23569 Do not stream DECL_ABSTRACT_ORIGIN.
23570 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23571 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23573 2011-02-28 Anatoly Sokolov <aesok@post.ru>
23575 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23576 FUNCTION_VALUE_REGNO_P): Remove.
23577 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23578 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23579 Add 'outgoing' argument.
23580 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23582 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23583 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23585 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
23588 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23589 (lookup_filename): Likewise.
23590 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23592 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
23593 Jakub Jelinek <jakub@redhat.com>
23595 PR middle-end/47893
23596 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23597 (assign_stack_local_1): Change last argument type to int.
23598 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23599 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
23600 don't record padding space into frame_space_list nor use those areas.
23601 (assign_stack_local): Adjust caller.
23602 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23603 of assign_stack_local, pass 0 as last argument.
23604 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23607 2011-02-28 Jakub Jelinek <jakub@redhat.com>
23610 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23611 Use target address_mode and pointer_mode hooks instead of hardcoded
23612 Pmode and ptr_mode. Handle some simple cases of extending if
23613 POINTERS_EXTEND_UNSIGNED < 0.
23614 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23615 Call convert_debug_memory_address.
23616 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23617 convert_debug_memory_address.
23619 PR middle-end/46790
23620 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23621 * configure: Regenerated.
23622 * config.in: Regenerated.
23623 * varasm.c (default_function_section): Return NULL
23624 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23626 2011-02-28 Martin Jambor <mjambor@suse.cz>
23628 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23629 the description to match the printed values.
23631 2011-02-28 Richard Guenther <rguenther@suse.de>
23633 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23634 of the copied scope tree.
23636 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23638 * doc/extend.texi (Function Attributes): Avoid deeply (and
23639 wrongly) nested tables.
23641 2011-02-27 Jakub Jelinek <jakub@redhat.com>
23643 PR middle-end/47903
23644 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23645 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23646 r isn't op0 nor op1.
23648 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
23650 * config/avr/avr.md: Remove magic comment for emacs.
23652 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
23655 * config/avr/avr.c (avr_option_override): Use error on bad options.
23656 (avr_help): New function.
23657 (TARGET_HELP): Define.
23659 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
23662 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23663 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23665 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
23667 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23668 (ARM Options): Ditto.
23669 (i386 and x86-64 Options): Ditto.
23670 (RX Options): Ditto.
23671 (SPARC Options): Ditto.
23673 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
23675 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23676 FreeBSD 6 and later. Generally use cpu generic.
23678 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
23680 * doc/cpp.texi: Update copyright years.
23682 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
23685 * config/lm32/lm32.md (ashrsi3): Added needed variable.
23687 2011-02-25 Jon Beniston <jon@beniston.com>
23690 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23691 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23692 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23693 (lm32_block_move_inline): Add type cast to remove warning.
23694 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23695 (gen_int_relational): Move declarations to start of function.
23697 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
23699 PR tree-optimization/45470
23700 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23701 can throw internally only.
23702 * tree-vect-stmts.c (vectorizable_call): Likewise.
23704 2011-02-24 Anatoly Sokolov <aesok@post.ru>
23706 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23707 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23708 * config/stormy16/stormy16-protos.h
23709 (xstormy16_preferred_reload_class): Remove.
23710 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23711 static. Change 'rclass' argument and return type to reg_class_t.
23712 (TARGET_PREFERRED_RELOAD_CLASS,
23713 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23715 2011-02-24 Richard Guenther <rguenther@suse.de>
23717 * lto-streamer-in.c (input_bb): Do not find referenced vars
23718 in debug statements.
23720 2011-02-23 Jason Merrill <jason@redhat.com>
23722 * common.opt (fabi-version): Document v5 and v6.
23724 2011-02-23 Richard Guenther <rguenther@suse.de>
23726 PR tree-optimization/47849
23727 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23729 2011-02-23 Jie Zhang <jie@codesourcery.com>
23731 * opts-common.c (decode_cmdline_option): Print empty string
23732 argument as "" in decoded->orig_option_with_args_text.
23733 * gcc.c (execute): Print empty string argument as ""
23734 in the verbose output.
23735 (do_spec_1): Keep empty string argument.
23737 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
23739 * config.gcc: Declare score-* and crx-* obsolete.
23741 2011-02-23 Jie Zhang <jie@codesourcery.com>
23743 PR rtl-optimization/47763
23744 * web.c (web_main): Ignore naked clobber when replacing register.
23746 2011-02-22 Anatoly Sokolov <aesok@post.ru>
23748 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23751 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
23754 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23756 2011-02-22 Mike Stump <mikestump@comcast.net>
23758 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23760 * configure: Regenerate.
23762 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
23764 PR rtl-optimization/46002
23765 * ira-color.c (update_copy_costs): Change class intersection
23766 test to reg_class_contents[] test of 'hard_regno'.
23768 2011-02-21 Joseph Myers <joseph@codesourcery.com>
23770 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23771 than Driver option.
23772 * config/hpux11.opt (mt): Likewise.
23773 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23774 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23775 * config/vax/elf.opt (mno-asm-pic): Likewise.
23776 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23778 2011-02-21 Mike Stump <mikestump@comcast.net>
23781 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23782 tree so we can get save the type.
23783 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23784 for CFString instead of trying to use past the end of the builtins.
23785 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23786 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23787 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23788 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23789 Rename to darwin_builtin_cfstring.
23790 (darwin_init_cfstring_builtins): Return the built type.
23792 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
23795 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23796 (_mm256_insert_epi64): Use _mm_insert_epi64.
23798 2011-02-21 Anatoly Sokolov <aesok@post.ru>
23800 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23801 * config/stormy16/stormy16-protos.h
23802 (xstormy16_mode_dependent_address_p): Remove.
23803 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23804 Make static. Change return type to bool. Change argument type to
23805 const_rtx. Remove dead code.
23806 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23808 2011-02-21 Richard Guenther <rguenther@suse.de>
23811 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23812 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23813 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23815 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23816 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23818 2011-02-20 Richard Guenther <rguenther@suse.de>
23821 * tree.c (free_lang_data_in_decl): Clean builtins from
23822 the TU decl BLOCK_VARS.
23824 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
23828 * haifa-sched.c (fix_tick_ready): Skip tick computation
23831 2011-02-19 Richard Guenther <rguenther@suse.de>
23834 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23835 Remove lazy BLOCK_VARS streaming.
23836 (lto_input_ts_block_tree_pointers): Likewise.
23837 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23839 2011-02-19 Joseph Myers <joseph@codesourcery.com>
23841 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23843 2011-02-19 Joseph Myers <joseph@codesourcery.com>
23845 * config/i386/biarch32.h, config/i386/mach.h,
23846 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23848 2011-02-19 Jakub Jelinek <jakub@redhat.com>
23851 * config/i386/i386.md (peephole2 for shift and plus): Use
23852 operands[1] original mode in the first insn.
23854 2011-02-18 Mike Stump <mikestump@comcast.net>
23856 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23858 2011-02-18 Jan Hubicka <jh@suse.cz>
23860 PR middle-end/47788
23861 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23862 to zero when the function is not inlinable at all.
23864 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23866 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23867 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23868 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23869 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23870 * config/pa/t-pa64: Likewise.
23871 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23873 2011-02-18 Jakub Jelinek <jakub@redhat.com>
23876 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23878 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23881 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23883 2011-02-18 Anatoly Sokolov <aesok@post.ru>
23885 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23886 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23887 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23888 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23889 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23890 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23891 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23892 m32r_load_postinc_p, m32r_store_preinc_predec_p,
23893 m32r_legitimate_address_p): New functions.
23894 * config/m32r/constraints.md (constraint "S"): Don't use
23895 STORE_PREINC_PREDEC_P.
23896 (constraint "U"): Don't use LOAD_POSTINC_P.
23898 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
23900 PR rtl-optimization/46178
23901 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23902 compute ira_hard_regno_cover_class[].
23904 2011-02-18 Richard Guenther <rguenther@suse.de>
23907 * lto-streamer.h (lto_global_var_decls): Declare.
23908 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23909 statics for global var processing.
23911 2011-02-18 Richard Guenther <rguenther@suse.de>
23913 PR tree-optimization/47737
23914 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23915 edge dominance check.
23917 2011-02-18 Jakub Jelinek <jakub@redhat.com>
23920 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23921 avoid invalid rtx sharing.
23923 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
23925 * doc/cpp.texi (Obsolete Features): Add background on the
23926 origin of assertions.
23928 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
23930 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23932 * config/darwin.c (output_objc_section_asm_op): Added support for
23934 (is_objc_metadata): New.
23935 (darwin_objc2_section): New.
23936 (darwin_objc1_section): New.
23937 (machopic_select_section): Added support for ABI v1 and v2.
23938 (darwin_emit_objc_zeroed): New.
23939 (darwin_output_aligned_bss): Detect objc metadata and treat it
23941 (darwin_asm_output_aligned_decl_common): Same.
23942 (darwin_asm_output_aligned_decl_local): Same.
23943 * config/darwin-sections.def: Updated for ABI v1 and v2.
23944 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23945 compiling Objective-C code for the NeXT runtime, default to using
23946 ABI version 0 for 32-bit, and version 2 for 64-bit.
23948 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23950 * common.opt (optimize_fast): New Variable.
23951 * opts.c (default_options_optimization): Use opts->x_optimize_fast
23952 instead of local variable ofast.
23954 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
23956 * doc/invoke.texi (fobjc-abi-version): Documented.
23957 (fobjc-nilcheck): Documented.
23958 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23961 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23964 * common.opt (export-dynamic): New Driver option.
23965 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23967 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23969 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23971 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
23972 Jan Hubicka <jh@suse.cz>
23976 * cfgexpand.c (account_used_vars_for_block): Remove.
23977 (estimated_stack_frame_size): Use referenced vars.
23978 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23979 that were referenced in the original function. Test src_fn
23980 rather than cfun. Drop redundant get_var_ann.
23981 (setup_one_parameter): Drop redundant get_var_ann.
23982 (declare_return_variable): Likewise.
23983 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23984 (copy_arguments_for_versioning): Drop redundant get_var_ann.
23985 * ipa-inline.c (compute_inline_parameters): Do not compute
23986 disregard_inline_limits here.
23987 (compute_inlinable_for_current, pass_inlinable): New.
23988 (pass_inline_parameters): Require PROP_referenced_vars.
23989 * cgraphunit.c (cgraph_process_new_functions): Don't run
23990 compute_inline_parameters explicitly unless function is in SSA form.
23991 (cgraph_analyze_function): Set .disregard_inline_limits.
23992 * tree-sra.c (convert_callers): Compute inliner parameters
23993 only for functions already in SSA form.
23995 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23997 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
23998 -mlittle-endian-data.
24000 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24002 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24003 -mno-fpu, not -fpu and -no-fpu.
24004 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24005 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24007 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
24010 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24011 input reload with PLUS RTX.
24013 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24015 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24016 of InverseVar(MDMX).
24018 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24020 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24023 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24025 * config/mn10300/mn10300.opt (mno-crt0): New.
24027 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24029 * config/m68k/uclinux.opt (static-libc): New Driver option.
24031 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24033 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24035 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24037 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24038 %{muser-extend-enabled}.
24040 2011-02-16 Richard Guenther <rguenther@suse.de>
24042 PR tree-optimization/47738
24043 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24044 the TODO from tree_predictive_commoning.
24046 2011-02-15 Jeff Law <law@redhat.com>
24049 2011-01-25 Jeff Law <law@redhat.com>
24051 PR rtl-optimization/37273
24052 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24053 handle them like argument loads from stack slots. Do not double
24054 count memory for memory constants and argument loads from stack slots.
24056 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24059 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24060 mode for vector constants. Remove code that checks for TImode.
24062 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24066 * cgraph.h (compute_inline_parameters): Return void.
24067 * ipa-inline.c (compute_inline_parameters): Adjust.
24069 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24073 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24075 * cfgexpand.c (estimated_stack_frame_size): Likewise.
24076 * ipa-inline.c (compute_inline_parameters): Adjust.
24078 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24082 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24083 Adjust all users. Pass FN to...
24084 * tree-flow-inline.h (first_referenced_var): ... this. Add
24086 * ipa-struct-reorg.c: Adjust.
24087 * tree-dfa.c: Adjust.
24088 * tree-into-ssa.c: Adjust.
24089 * tree-sra.c: Adjust.
24090 * tree-ssa-alias.c: Adjust.
24091 * tree-ssa-live.c: Adjust.
24092 * tree-ssa.c: Adjust.
24093 * tree-ssanames.c: Adjust.
24094 * tree-tailcall.c: Adjust.
24096 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24100 * tree-flow.h (referenced_var_lookup): Add fn parameter.
24101 Adjust all callers.
24102 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24103 * tree-flow-inline.h: Adjust.
24104 * gimple-pretty-print.c: Adjust.
24105 * tree-into-ssa.c: Adjust.
24106 * tree-ssa.c: Adjust.
24107 * cfgexpand.c: Adjust.
24109 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24111 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24112 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24113 (EXTRA_CONSTRAINT): Delete.
24114 * config/iq2000/constraints.md: New file.
24115 * config/iq2000/iq2000.md: Include it.
24116 (define_insn ""): Delete.
24117 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24118 unsupported constraint letters from patterns.
24119 (call_value, call_value_internal1): Likewise.
24120 (call_value_multiple_internal1): Likewise.
24122 2011-02-15 Nick Clifton <nickc@redhat.com>
24124 * config/mn10300/mn10300.c: Include tm-constrs.h.
24125 (struct liw_data): New data structure describing an LIW candidate
24127 (extract_bundle): Use struct liw_data. Allow small integer
24128 operands for some instructions.
24129 (check_liw_constraints): Use struct liw_data. Remove swapped
24130 parameter. Add comments describing the checks. Fix bug when
24131 assigning the source of liw1 to the source of liw2.
24132 (liw_candidate): Delete. Code moved into extract_bundle.
24133 (mn10300_bundle_liw): Use struct liw_data. Check constraints
24135 * config/mn10300/predicates.md (liw_operand): New predicate.
24136 Allows registers and small integer constants.
24137 * config/mn10300/constraints.md (O): New constraint. Accetps
24138 integers in the range -8 to +7 inclusive.
24139 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24140 for moving a small integer into a register. Give this alternative
24142 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24143 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24144 using the J,K,L and M constraints,
24145 (liw): Remove SI mode on second operands to allow for HI and QI
24147 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
24150 2011-02-15 Richard Guenther <rguenther@suse.de>
24152 PR tree-optimization/47743
24153 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24154 for a non-type-compatible VN lookup bail out.
24156 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24158 * config/fr30/constraints.md: New file.
24159 * config/fr30/fr30.md: Include it.
24160 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24161 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24162 (EXTRA_CONSTRAINT): Delete.
24164 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24166 * config/frv/constraints.md: New file.
24167 * config/frv/predicates.md: Include it.
24168 * config/frv/frv.c (reg_class_from_letter): Delete.
24169 (frv_option_override): Don't initialize it.
24170 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24171 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24172 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24173 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24174 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24175 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24176 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24177 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24178 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24179 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24180 (REG_CLASS_FROM_CONSTRAINT): Delete.
24182 2011-02-15 Jakub Jelinek <jakub@redhat.com>
24184 PR middle-end/47581
24185 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24186 if frame size is 0 in a leaf function.
24188 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24191 * config/alpha/host-osf.c: New file.
24192 * config/alpha/x-osf: New file.
24193 * config.host (alpha*-dec-osf*): Use it.
24195 2011-02-14 Anatoly Sokolov <aesok@post.ru>
24197 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24198 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24199 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24200 (rx_mode_dependent_address_p): ...this. Make static. Change argument
24202 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24204 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
24206 * config/stormy16/constraints.md: New file.
24207 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24208 Use satisfies_constraint_Q and satisfies_constraint_R.
24209 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24211 (xstormy16_legitiamte_address_p): Declare.
24212 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24213 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24214 (EXTRA_CONSTRAINT): Delete.
24215 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24217 (xstormy16_extra_constraint_p): Delete.
24219 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
24221 PR tree-optimization/46494
24222 * loop-unroll.c (split_edge_and_insert): Adjust comment.
24223 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24224 (pass_rtl_loop_done): Add TODO_verify_flow.
24225 * fwprop.c (pass_rtl_fwprop): Likewise.
24226 * modulo-sched.c (pass_sms): Likewise.
24227 * tree-ssa-dom.c (pass_dominator): Likewise.
24228 * tree-ssa-loop-ch.c (pass_ch): Likewise.
24229 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24230 (pass_tree_loop_done): Likewise.
24231 * tree-ssa-pre.c (execute_pre): Likewise.
24232 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24233 * tree-ssa-sink.c (pass_sink_code): Likewise.
24234 * tree-vrp.c (pass_vrp): Likewise.
24236 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
24238 * config/v850/constraints.md: New file.
24239 * config/v850/v850.md: Include it.
24240 * config/v850/predicates.md (reg_or_0_operand): Use
24241 satisfies_constraint_G.
24242 (special_symbolref_operand): Use satisfies_constraint_K.
24243 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24244 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24245 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24246 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24247 (EXTRA_CONSTRAINT): Delete.
24248 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24249 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24250 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24252 2011-02-14 Anatoly Sokolov <aesok@post.ru>
24255 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24258 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
24260 * config/mcore/constraints.md: New file.
24261 * config/mcore/mcore.md: Include it.
24262 * config/mcore/mcore.c (reg_class_from_letter): Delete.
24263 * config/mcore/mcore.h (reg_class_from_letter): Delete.
24264 (REG_CLASS_FROM_LETTER): Delete.
24265 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24266 insn_const_int_ok_for_constraint.
24267 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24268 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24269 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24270 (EXTRA_CONSTRAINT): Delete.
24272 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24275 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24276 (IS_SIGHANDLER): Define.
24277 (sparc64_is_sighandler): New function, split off from
24278 sparc64_fallback_frame_state.
24279 (sparc_is_sighandler): New function, split off from
24280 sparc_fallback_frame_state.
24281 (sparc64_fallback_frame_state): Merge with ...
24282 (sparc_fallback_frame_state): ... this into ...
24283 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24284 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
24285 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
24286 stack instead of hardcoded offsets.
24288 2011-02-14 Andriy Gapon <avg@freebsd.org>
24291 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24293 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24295 * configure: Regenerate.
24297 2011-02-12 Joseph Myers <joseph@codesourcery.com>
24300 * gcc.c (asm_options): Correct spec matching --target-help.
24302 2011-02-12 Martin Jambor <mjambor@suse.cz>
24304 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24305 to gimple call error.
24307 2011-02-12 Mike Stump <mikestump@comcast.net>
24309 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24310 comments in backslash regions.
24312 2011-02-12 Mike Stump <mikestump@comcast.net>
24313 Jakub Jelinek <jakub@redhat.com>
24314 Iain Sandoe <iains@gcc.gnu.org>
24317 * dwarf2out.c (output_cfa_loc): When required, apply the
24318 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24319 (output_loc_sequence): Likewise.
24320 (output_loc_operands_raw): Likewise.
24321 (output_loc_sequence_raw): Likewise.
24322 (output_cfa_loc): Likewise.
24323 (output_loc_list): Suppress register number adjustment when
24324 calling output_loc_sequence()
24325 (output_die): Likewise.
24327 2011-02-12 Anatoly Sokolov <aesok@post.ru>
24329 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24331 * config/xtensa/xtensa.c (xtensa_register_move_cost,
24332 xtensa_memory_move_cost): New functions.
24333 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24335 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
24338 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24339 in the current directory.
24340 * configure: Rebuilt.
24342 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
24344 * config/darwin.c (darwin_override_options): Add a hunk missed
24345 from the commit of r168571. Trim comment line lengths and
24346 correct indents of the preceding block.
24348 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
24350 * gcc.c (driver_handle_option): Concatenate the argument to -F with
24353 2011-02-11 Joseph Myers <joseph@codesourcery.com>
24355 * common.opt (nostartfiles): New Driver option.
24357 2011-02-11 Xinliang David Li <davidxl@google.com>
24359 PR tree-optimization/47707
24360 * tree-chrec.c (convert_affine_scev): Keep type precision.
24362 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
24364 PR tree-optimization/47420
24365 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24367 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
24369 PR rtl-optimization/47614
24370 * rtl.h (check_for_inc_dec): Declare.
24371 * dse.c (check_for_inc_dec): Externalize...
24372 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24373 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24375 2011-02-11 Joseph Myers <joseph@codesourcery.com>
24378 * gcc.c (main): Do not compile inputs if there were errors in
24380 * opts-common.c (read_cmdline_option): Check for wrong language
24381 after other error checks.
24383 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
24385 * cgraph.c: Fix comment typos.
24386 * cgraph.h: Likewise.
24387 * cgraphunit.c: Likewise.
24388 * ipa-cp.c: Likewise.
24389 * ipa-inline.c: Likewise.
24390 * ipa-prop.c: Likewise.
24391 * ipa-pure-const.c: Likewise.
24392 * ipa-ref.c: Likewise.
24393 * ipa-reference.c: Likewise.
24395 2011-02-11 Jakub Jelinek <jakub@redhat.com>
24398 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24400 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24403 * doc/sourcebuild.texi (Require Support): Document
24404 dg-require-ascii-locale.
24406 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
24408 * doc/lto.texi (Write summary): Fix missing parentheses.
24410 2011-02-10 DJ Delorie <dj@redhat.com>
24412 * config/m32c/m32c.c (m32c_option_override): Disable
24413 -fcombine-stack-adjustments until flag value tracking and compare
24414 optimization can be rewritten.
24416 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
24418 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24420 (PROCESSOR_DEFAULT64): Likewise.
24422 2011-02-10 Richard Henderson <rth@redhat.com>
24424 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24425 change from 2011-02-03.
24426 * config/rx/rx.c (flags_from_code): Likewise.
24427 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24428 is valid, n/pz otherwise.
24429 (rx_select_cc_mode): Return CCmode if Y is not zero.
24431 2011-02-10 Richard Guenther <rguenther@suse.de>
24433 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24435 2011-02-10 Richard Guenther <rguenther@suse.de>
24437 PR tree-optimization/47677
24438 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24440 2011-02-10 Jakub Jelinek <jakub@redhat.com>
24443 * combine.c (make_compound_operation): Only change shifts into
24444 multiplication for SCALAR_INT_MODE_P.
24446 2011-02-10 Jie Zhang <jie@codesourcery.com>
24450 2011-02-05 Jie Zhang <jie@codesourcery.com>
24452 * web.c (entry_register): Don't clobber the number of the
24453 first uninitialized reference in used[].
24455 2011-02-09 Richard Guenther <rguenther@suse.de>
24457 PR tree-optimization/47664
24458 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24461 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
24465 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24467 (PROCESSOR_DEFAULT64): Same.
24468 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24470 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24472 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24474 2011-02-09 Martin Jambor <mjambor@suse.cz>
24476 PR middle-end/45505
24477 * tree-sra.c (struct access): New flags grp_scalar_read and
24478 grp_scalar_write. Changed description of assignment read and write
24480 (dump_access): Dump new flags, reorder all of them.
24481 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24482 to detect multiple scalar reads.
24483 (analyze_access_subtree): Use the new scalar read write flags instead
24484 of the old flags. Adjusted comments.
24486 2011-02-08 DJ Delorie <dj@redhat.com>
24489 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24492 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24494 * config/m68k/uclinux.opt: New.
24495 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24497 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24499 * config/cris/elf.opt (sim): New Driver option.
24501 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24503 * config/xtensa/elf.opt: New.
24504 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24506 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24508 * config/vax/elf.opt: New.
24509 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24511 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24513 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24515 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24517 * config/gnu-user.opt: New.
24518 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24519 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24520 *-*-uclinux*): Use gnu-user.opt.
24522 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
24524 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24525 * config/i386/gnu.h (CPP_SPEC): Likewise.
24527 2011-02-08 Ian Lance Taylor <iant@google.com>
24529 * common.opt (fcx-limited-range): Add SetByCombined flag.
24530 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24531 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24532 (fassociative-math, freciprocal-math): Likewise.
24533 (funsafe-math-optimizations): Likewise.
24534 * opth-gen.awk: Handle SetByCombined.
24535 * optc-gen.awk: Likewise.
24536 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24537 (set_unsafe_math_optimizations_flags): Likewise.
24538 * doc/options.texi (Option properties): Document SetByCombined.
24540 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24542 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24543 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24544 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24545 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24546 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24548 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
24550 PR tree-optimization/46834
24551 PR tree-optimization/46994
24552 PR tree-optimization/46995
24553 * graphite-sese-to-poly.c (used_outside_reduction): New.
24554 (detect_commutative_reduction): Call used_outside_reduction.
24555 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24556 translate_scalar_reduction_to_array only when at least one
24557 loop-phi/close-phi tuple has been detected.
24559 2011-02-08 Richard Guenther <rguenther@suse.de>
24561 PR middle-end/47639
24562 * tree-vect-generic.c (expand_vector_operations_1): Update
24564 (expand_vector_operations): ... not here. Cleanup EH info
24565 and the CFG if required.
24567 2011-02-08 Richard Guenther <rguenther@suse.de>
24569 PR tree-optimization/47641
24570 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24571 require type compatibility.
24573 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24575 * gimple-low.c (lower_function_body): Don't remove the location of
24576 the return statement here.
24577 (lower_gimple_return): Do it here instead but only if the return
24578 statement is actually used twice.
24580 2011-02-08 Richard Guenther <rguenther@suse.de>
24582 PR tree-optimization/47632
24583 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24584 unused up_to_stmt parameter, return whether cfg-cleanup is
24585 necessary, remove EH info properly.
24586 (forward_propagate_into_gimple_cond): Adjust caller.
24587 (forward_propagate_into_cond): Likewise.
24588 (forward_propagate_comparison): Likewise.
24589 (tree_ssa_forward_propagate_single_use_vars): Make
24590 forward_propagate_comparison case similar to the two others.
24592 2011-02-08 Nick Clifton <nickc@redhat.com>
24594 * config/mn10300/mn10300.opt (mliw): New command line option.
24595 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24596 (liw_bundling): New automaton.
24597 (liw): New attribute.
24598 (liw_op): New attribute.
24599 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24600 (movsi_internal): Add LIW attributes.
24601 (andsi3): Likewise.
24602 (iorsi3): Likewise.
24603 (xorsi3): Likewise.
24604 (addsi3): Separate register and immediate alternatives.
24605 Add LIW attributes.
24606 (subsi3): Likewise.
24608 (aslsi3): Likewise.
24609 (lshrsi3): Likewise.
24610 (ashrsi3): Likewise.
24611 (liw): New pattern.
24612 * config/mn10300/mn10300.c (liw_op_names): New
24613 (mn10300_print_operand): Handle 'W' operand descriptor.
24614 (extract_bundle): New function.
24615 (check_liw_constraints): New function.
24616 (liw_candidate): New function.
24617 (mn10300_bundle_liw): New function.
24618 (mn10300_reorg): New function.
24619 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24620 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24621 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24622 __LIW__ or __NO_LIW__.
24623 * doc/invoke.texi: Describe the -mliw command line option.
24625 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24627 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24628 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24629 pthread_mutex_unlock): Remove.
24630 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24631 * config/pa/t-pa64: Likewise.
24632 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24633 shared libc if not linking against libpthread.
24634 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24636 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
24639 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24640 on 10.6 and later to ensure that we always use the unwinder from
24641 the system. Only add -no_compact_unwind when tarteting darwin
24644 2011-02-07 Steve Ellcey <sje@cup.hp.com>
24647 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24648 (vec_interleave_lowv2sf): Ditto.
24649 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24650 (vec_extract_oddv2sf): Ditto.
24652 2011-02-07 Mike Stump <mikestump@comcast.net>
24655 Add __ieee_divdc3 entry point.
24656 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24658 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24659 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24660 * config/darwin.c (darwin_rename_builtins): Add.
24661 * config/darwin-protos.h (darwin_rename_builtins): Add.
24663 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
24666 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24669 2011-02-07 Mike Stump <mikestump@comcast.net>
24671 * config/darwin.opt (mmacosx-version-min): Update default OS version.
24673 2011-02-07 Denis Chertykov <chertykov@gmail.com>
24676 * config/avr/libgcc.S (exit): Move .endfunc
24678 2011-02-07 Richard Guenther <rguenther@suse.de>
24680 PR tree-optimization/47615
24681 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24682 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24683 (run_scc_vn): Initialize it.
24684 (visit_reference_op_load): Use it.
24685 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24687 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24689 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24690 DImode trapping arithmetic libfuncs.
24692 2011-02-07 Richard Guenther <rguenther@suse.de>
24694 PR tree-optimization/47621
24695 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24697 (execute_update_addresses_taken): ... here. Make it more
24698 conservative in what we accept.
24700 2011-02-06 Joseph Myers <joseph@codesourcery.com>
24702 * config/sparc/freebsd.h (ASM_SPEC): Define.
24703 * config/sparc/vxworks.h (ASM_SPEC): Define.
24705 2011-02-06 Joseph Myers <joseph@codesourcery.com>
24707 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24709 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
24711 * doc/invoke.texi: Remove reference to compiler internals from
24712 user documentation.
24714 * reg-notes.def: Remove REG_VALUE_PROFILE.
24715 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24717 2011-02-05 Jakub Jelinek <jakub@redhat.com>
24719 PR middle-end/47610
24720 * varasm.c (default_section_type_flags): If decl is NULL,
24721 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24723 2011-02-05 Jie Zhang <jie@codesourcery.com>
24726 * web.c (entry_register): Don't clobber the number of the
24727 first uninitialized reference in used[].
24729 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
24731 PR tree-optimization/46194
24732 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24733 (build_classic_dist_vector_1): Do not represent classic distance
24734 vectors when the access functions are variating in different loops.
24736 2011-02-04 Joseph Myers <joseph@codesourcery.com>
24738 * config/mips/iris6.opt: New.
24739 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24741 2011-02-04 Richard Henderson <rth@redhat.com>
24742 Steve Ellcey <sje@cup.hp.com>
24745 * config/ia64/predicates.md (mux1_brcst_element): New.
24746 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24747 * config/ia64/ia64.c (ia64_unpack_assemble): New.
24748 (ia64_unpack_sign): New.
24749 (ia64_expand_unpack): Rewrite using new routines.
24750 (ia64_expand_widen_sum): Ditto.
24751 (ia64_expand_dot_prod_v8qi): Ditto.
24752 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24753 routines, add endian check.
24754 (pmpy2_even): Rename from pmpy2_r, add endian check.
24755 (pmpy2_odd): Rename from pmpy2_l, add endian check.
24756 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24757 (vec_widen_smult_hi_v4hi): Ditto.
24758 (vec_widen_umult_lo_v4hi): Ditto.
24759 (vec_widen_umult_hi_v4hi): Ditto.
24760 (mulv2si3): Change endian checks.
24761 (sdot_prodv4hi): Rewrite with new calls.
24762 (udot_prodv4hi): New.
24763 (vec_pack_ssat_v4hi): Add endian check.
24764 (vec_pack_usat_v4hi): Ditto.
24765 (vec_pack_ssat_v2si): Ditto.
24766 (max1_even): Rename from max1_r, add endian check.
24767 (max1_odd): Rename from max1_l, add endian check.
24768 (*mux1_rev): Format change.
24769 (*mux1_mix): Ditto.
24770 (*mux1_shuf): Ditto.
24771 (*mux1_alt): Ditto.
24772 (*mux1_brcst_v8qi): Use new predicate.
24773 (vec_extract_evenv8qi): Remove endian check.
24774 (vec_extract_oddv8qi): Ditto.
24775 (vec_interleave_lowv4hi): Format change.
24776 (vec_interleave_highv4hi): Ditto.
24777 (mix2_even): Rename from mix2_r, add endian check.
24778 (mix2_odd): Rename from mux2_l, add endian check.
24779 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24780 (vec_extract_evenodd_helper): Format change.
24781 (vec_extract_evenv4hi): Remove endian check.
24782 (vec_extract_oddv4hi): Remove endian check.
24783 (vec_interleave_lowv2si): Format change.
24784 (vec_interleave_highv2si): Format change.
24785 (vec_initv2si): Remove endian check.
24786 (vecinit_v2si): Add endian check.
24787 (reduc_splus_v2sf): Add endian check.
24788 (reduc_smax_v2sf): Ditto.
24789 (reduc_smin_v2sf): Ditto.
24790 (vec_initv2sf): Remove endian check.
24791 (fpack): Add endian check.
24792 (fswap): Add endian check.
24793 (vec_interleave_highv2sf): Add endian check.
24794 (vec_interleave_lowv2sf): Add endian check.
24795 (fmix_lr): Add endian check.
24796 (vec_setv2sf): Format change.
24797 (*vec_extractv2sf_0_be): Use shift to extract operand.
24798 (*vec_extractv2sf_1_be): New.
24799 (vec_pack_trunc_v4hi): Add endian check.
24800 (vec_pack_trunc_v2si): Format change.
24802 2011-02-04 Jakub Jelinek <jakub@redhat.com>
24804 PR inline-asm/23200
24805 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
24806 do bb, locus and block comparison and disallow loads if it is not set.
24807 (stmt_is_replaceable_p): New function.
24808 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24810 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24811 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24813 * tree-flow.h (stmt_is_replaceable_p): New prototype.
24815 2011-02-04 Joseph Myers <joseph@codesourcery.com>
24817 * config/rs6000/xilinx.opt: New.
24818 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24820 2011-02-04 Joseph Myers <joseph@codesourcery.com>
24822 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24824 2011-02-03 Anatoly Sokolov <aesok@post.ru>
24826 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24827 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24828 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24829 secondary_reload_info, xtensa_secondary_reload): Remove.
24830 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24831 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24832 (xtensa_preferred_reload_class): Make static. Change return and
24833 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24834 Use CONST_DOUBLE_P predicate.
24835 (xtensa_preferred_output_reload_class): New function.
24836 (xtensa_secondary_reload): Make static.
24838 2011-02-03 Joseph Myers <joseph@codesourcery.com>
24840 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24841 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24842 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24844 2011-02-03 Jakub Jelinek <jakub@redhat.com>
24846 PR middle-end/31490
24847 * output.h (SECTION_RELRO): Define.
24848 (SECTION_MACH_DEP): Adjust.
24849 (get_variable_section): New prototype.
24850 * varpool.c (varpool_finalize_named_section_flags): New function.
24851 (varpool_assemble_pending_decls): Call it.
24852 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24853 * cgraphunit.c (cgraph_output_in_order): Call
24854 varpool_finalize_named_section_flags.
24855 * varasm.c (get_section): Allow section flags conflicts between
24856 relro and read-only sections if the section hasn't been declared yet.
24857 Set SECTION_OVERRIDE after diagnosing section type conflict.
24858 (get_variable_section): No longer static.
24859 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24860 readonly sections that need relocations.
24861 (decl_readonly_section_1): New function.
24862 (decl_readonly_section): Use it.
24865 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
24866 Steve Ellcey <sje@cup.hp.com>
24868 PR middle-end/31490
24869 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24870 if section attribute used.
24872 2011-02-03 Jakub Jelinek <jakub@redhat.com>
24874 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24875 * config/darwin.c (SECTION_NO_ANCHOR): Define.
24876 (darwin_init_sections): Remove assertion.
24878 2011-02-03 Nick Clifton <nickc@redhat.com>
24880 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24882 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24883 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24884 instead of "n" and "pz".
24885 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24888 2011-02-03 Jakub Jelinek <jakub@redhat.com>
24891 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24892 fma, expand FMA_EXPR as fma{,f,l} call.
24895 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24896 copy them into a unsigned char variable and pass address of it to
24897 lto_output_data_stream.
24900 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24901 around backend_init_target and lang_dependent_init_target calls.
24902 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24903 (verify_cgraph_node): Don't call set_cfun here. Use
24904 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24905 Set error_found for incorrectly represented calls to thunks.
24907 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
24910 PR rtl-optimization/43494
24911 * rtl.h (for_each_inc_dec_fn): New type.
24912 (for_each_inc_dec): Declare.
24913 * rtlanal.c (struct for_each_inc_dec_ops): New type.
24914 (for_each_inc_dec_find_inc_dec): New fn.
24915 (for_each_inc_dec_find_mem): New fn.
24916 (for_each_inc_dec): New fn.
24917 * dse.c (struct insn_size): Remove.
24918 (replace_inc_dec, replace_inc_dec_mem): Remove.
24919 (emit_inc_dec_insn_before): New fn.
24920 (check_for_inc_dec): Use it, along with for_each_inc_dec.
24921 (canon_address): Pass mem modes to cselib_lookup.
24922 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
24923 (cselib_lookup_from_insn): Likewise.
24924 (cselib_subst_to_values): Likewise.
24925 * cselib.c (find_slot_memmode): New var.
24926 (cselib_find_slot): New fn. Use it instead of
24927 htab_find_slot_with_hash everywhere.
24928 (entry_and_rtx_equal_p): Use find_slot_memmode.
24929 (autoinc_split): New fn.
24930 (rtx_equal_for_cselib_p): Rename and implement in terms of...
24931 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
24932 Deal with autoinc. Special-case recursion into MEMs.
24933 (cselib_hash_rtx): Likewise.
24934 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
24935 address and MEM modes.
24936 (cselib_subst_to_values): Add memmode, pass it on.
24938 (cselib_lookup): Add memmode argument, pass it on.
24939 (cselib_lookup_from_insn): Add memmode.
24940 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24941 (struct cselib_record_autoinc_data): New.
24942 (cselib_record_autoinc_cb): New fn.
24943 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
24944 mode to cselib_lookup. Reset autoinced REGs here instead of...
24945 (cselib_process_insn): ... here.
24946 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24948 (add_uses): Likewise, also to cselib_subst_to_values.
24949 (add_stores): Likewise.
24950 * sched-deps.c (add_insn_mem_dependence): Pass mode to
24951 cselib_subst_to_values.
24952 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
24953 * gcse.c (do_local_cprop): Adjusted.
24954 * postreload.c (reload_cse_simplify_set): Adjusted.
24955 (reload_cse_simplify_operands): Adjusted.
24956 * sel-sched-dump (debug_mem_addr_value): Pass mode.
24958 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
24960 PR tree-optimization/45122
24961 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24962 unsafe assumptions when there's more than one loop exit.
24964 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24967 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24968 Document using vector double with the load/store builtins, and
24969 that the load/store builtins always use Altivec instructions.
24971 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24972 to use altivec memory instructions, even on VSX.
24973 (vector_altivec_store_<mode>): Ditto.
24975 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24978 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24979 V2DF, V2DI support to load/store overloaded builtins.
24981 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24982 altivec load/store builtins for V2DF/V2DI types.
24984 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24985 set avoid indexed addresses on power6 if -maltivec.
24986 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24987 vector_altivec_load/vector_altivec_store builtins.
24988 (altivec_expand_st_builtin): Ditto.
24989 (altivec_expand_builtin): Add VSX memory builtins.
24990 (rs6000_init_builtins): Add V2DI types to internal types.
24991 (altivec_init_builtins): Add support for V2DF/V2DI altivec
24992 load/store builtins.
24993 (rs6000_address_for_altivec): Insure memory address is appropriate
24996 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24997 vec_vsx_ld and vec_vsx_st.
24998 (vsx_store_<mode>): Ditto.
25000 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25001 variables to hold long long types for VSX vector memory builtins.
25002 (RS6000_BTI_unsigned_long_long): Ditto.
25003 (long_long_integer_type_internal_node): Ditti.
25004 (long_long_unsigned_type_internal_node): Ditti.
25006 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25007 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25008 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25010 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25012 (vec_vsx_st): Ditto.
25014 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25016 * config/pa/pa-hpux10.opt: New.
25017 * config/hpux11.opt (pthread): New Driver option.
25018 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25019 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25021 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25023 * config/ia64/vms.opt: New.
25024 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25026 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25029 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25030 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25031 generator functions.
25032 (vsx_floatuns<VSi><mode>2): Ditto.
25033 (vsx_fix_trunc<mode><VSi>2): Ditto.
25034 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25036 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25038 * config/i386/djgpp.opt (posix): New Driver option.
25040 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
25042 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25043 Move to the unsupported targets list.
25045 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
25047 PR rtl-optimization/47525
25048 * df-scan.c: Update copyright years.
25049 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25050 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25052 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25054 * config/i386/sysv4.h (TARGET_VERSION): Remove.
25055 (SUBTARGET_RETURN_IN_MEMORY): Remove.
25056 (ASM_OUTPUT_ASCII): Remove.
25057 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25059 2011-02-02 Jeff Law <law@redhat.com>
25061 PR middle-end/47543
25062 * reload.c (find_reloads_address): Handle reg+d address where both
25063 components are invalid by reloading the entire address.
25065 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25066 Richard Guenther <rguenther@suse.de>
25068 PR tree-optimization/40979
25070 * passes.c (init_optimization_passes): After LIM call copy_prop
25071 and DCE to clean up.
25072 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25074 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25076 PR tree-optimization/47576
25077 PR tree-optimization/47555
25078 * doc/invoke.texi (scev-max-expr-complexity): Documented.
25079 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25080 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25081 * tree-scalar-evolution.c (follow_ssa_edge): Use
25082 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25084 2011-02-02 Richard Guenther <rguenther@suse.de>
25086 PR tree-optimization/47566
25087 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25089 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25093 * tree-inline.c (declare_return_variable): Remove unused caller
25098 * tree-flow-inline.h (clear_is_used, is_used_p): New.
25099 * cfgexpand.c (account_used_vars_for_block): Use them.
25100 * tree-nrv.c (tree_nrv): Likewise.
25101 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25102 (dump_scope_block): Likewise.
25103 (remove_unused_locals): Likewise.
25107 * tree-inline.c (declare_return_variable): Add result decl to
25108 local decls only once.
25109 * gimple-low.c (record_vars_into): Mark newly-created variables
25112 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25118 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25120 (no_real_insns_p, schedule_block, set_priorities): Drop special
25121 treatment of boundary debug insns.
25122 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25123 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25124 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25125 (BOUNDARY_DEBUG_INSN_P): Likewise.
25126 (SCHEDULE_DEBUG_INSN_P): Likewise.
25127 * sched-rgn.c (init_ready_list): Drop special treatment of
25128 boundary debug insns.
25129 * final.c (rest_of_clean_state): Clear notes' BB.
25131 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25133 * config/openbsd.opt (assert=): New Driver option.
25135 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25137 * config/i386/nto.opt: New.
25138 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25140 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25142 * config/i386/netware.opt: New.
25143 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25145 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25147 * config/interix.opt (posix): New Driver option.
25149 2011-02-01 DJ Delorie <dj@redhat.com>
25151 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25153 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25156 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
25158 PR tree-optimization/47561
25159 * toplev.c (process_options): Print the Graphite flags. Add
25160 flag_loop_flatten to the list of options requiring Graphite.
25162 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25164 * config/i386/cygming.opt (posix): New Driver option.
25166 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25168 * config/arm/vxworks.opt: New.
25169 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25171 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25173 * config/alpha/elf.opt: New.
25174 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25175 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25177 2011-02-01 Richard Guenther <rguenther@suse.de>
25179 PR tree-optimization/47559
25180 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25181 store-motion on references that can throw.
25183 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
25185 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25186 * tree-pass.h (TDF_CSELIB): New macro.
25187 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25188 cselib_lookup): Check for it rather than for TDF_DETAILS.
25190 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
25193 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25194 is HOST_BIT_BUCKET.
25196 * opts.c (finish_options): Don't add x_aux_base_name if it is
25199 2011-02-01 Richard Guenther <rguenther@suse.de>
25201 PR tree-optimization/47555
25203 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
25205 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25207 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
25210 * config/lm32/t-lm32: Add multilib for all CPU options.
25212 2011-02-01 Richard Guenther <rguenther@suse.de>
25214 PR tree-optimization/47541
25215 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25216 sure to have a field at offset zero.
25218 2011-01-31 Joseph Myers <joseph@codesourcery.com>
25220 * config/arc/arc.opt (EB, EL): New Driver options.
25222 2011-01-31 Joseph Myers <joseph@codesourcery.com>
25224 * config/alpha/osf5.opt: New.
25225 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25227 2011-01-31 Joseph Myers <joseph@codesourcery.com>
25229 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25231 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
25233 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25234 -floop-interchange.
25235 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25236 is an alias of -floop-interchange and that it requires the
25237 Graphite infrastructure.
25238 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25239 flag_loop_interchange based on the value of flag_tree_loop_linear.
25241 2011-01-31 Jakub Jelinek <jakub@redhat.com>
25242 Richard Guenther <rguenther@suse.de>
25244 PR tree-optimization/47538
25245 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25246 type instead of r1type, except for comparisons. For right
25247 shifts and comparisons punt if there are mismatches in
25248 sizetype vs. non-sizetype types.
25250 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25252 * doc/sourcebuild.texi (Effective-Target Keywords): Document
25255 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25257 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25259 * configure: Regenerate.
25261 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25263 * configure.ac (gcc_cv_ld_static_option): Define.
25264 (gcc_cv_ld_dynamic_option): Define.
25265 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25267 (HAVE_LD_STATIC_DYNAMIC): Update message.
25268 (LD_STATIC_OPTION): Define.
25269 (LD_DYNAMIC_OPTION): Define.
25270 * configure: Regenerate.
25271 * config.in: Regenerate.
25272 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25273 HAVE_LD_STATIC_DYNAMIC]: Use them.
25275 2011-01-31 Nick Clifton <nickc@redhat.com>
25277 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25278 registers inside interrupt handlers if the handler is not a leaf
25281 2011-01-31 Nick Clifton <nickc@redhat.com>
25283 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25284 reg_renumber returning an INVALID_REGNUM.
25286 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
25289 * doc/install.texi: Document host options discarded when cross
25290 configuring target libraries.
25292 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
25295 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
25298 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25300 (no_real_insns_p, schedule_block, set_priorities): Drop special
25301 treatment of boundary debug insns.
25302 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25303 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25304 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25305 (BOUNDARY_DEBUG_INSN_P): Likewise.
25306 (SCHEDULE_DEBUG_INSN_P): Likewise.
25307 * sched-rgn.c (init_ready_list): Drop special treatment of
25308 boundary debug insns.
25309 * final.c (rest_of_clean-state): Clear notes' BB.
25311 2011-01-31 Alan Modra <amodra@gmail.com>
25313 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25314 toc relative expressions as we do in print_operand_address.
25316 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
25318 * doc/extend.texi: Follow spelling conventions.
25319 * doc/invoke.texi: Fix a typo.
25321 2011-01-30 Joseph Myers <joseph@codesourcery.com>
25323 * config/hpux11.opt: New.
25324 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25325 ia64*-*-hpux*): Use hpux11.opt.
25327 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
25329 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25332 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
25334 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25337 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
25339 * doc/install.texi (Binaries): Remove outdated reference for
25340 Motorola 68HC11/68HC12 downloads.
25342 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
25344 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25347 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
25350 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25353 2011-01-28 Ahmad Sharif <asharif@google.com>
25355 * value-prof.c (check_counter): Corrected error message.
25357 2011-01-29 Jie Zhang <jie@codesourcery.com>
25359 * config/arm/arm.c (arm_legitimize_reload_address): New.
25360 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25361 arm_legitimize_reload_address.
25362 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25364 2011-01-28 Ian Lance Taylor <iant@google.com>
25366 * godump.c (go_define): Ignore macros whose definitions include
25367 two adjacent operands.
25369 2011-01-28 Jakub Jelinek <jakub@redhat.com>
25372 * varasm.c (force_const_mem): Store copy of x in desc->constant
25373 instead of x itself.
25374 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25375 itself into REG_EQUAL note.
25377 2011-01-28 Joseph Myers <joseph@codesourcery.com>
25379 * config/freebsd.opt (posix, rdynamic): New Driver options.
25381 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25383 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25384 -Bstatic/-Bdynamic.
25385 * configure: Regenerate.
25387 2011-01-27 Joseph Myers <joseph@codesourcery.com>
25389 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25390 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25392 2011-01-27 Anatoly Sokolov <aesok@post.ru>
25394 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25395 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25396 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25397 (s390_preferred_reload_class): Make static. Change return and
25398 'rclass' argument type to reg_class_t.
25400 2011-01-27 Jan Hubicka <jh@suse.cz>
25402 PR middle-end/46949
25403 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25404 (process_function_and_variable_attributes): Check defined weakrefs.
25406 2011-01-27 Martin Jambor <mjambor@suse.cz>
25408 PR tree-optimization/47228
25409 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25410 build_ref_for_offset.
25412 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25414 * config/spu/spu-elf.h (ASM_SPEC): Remove.
25416 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
25418 PR rtl-optimization/46856
25419 * postreload.c (reload_combine_recognize_const_pattern): Do not
25420 separate cc0 setter and user on cc0 targets.
25422 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
25425 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25426 passed a VOID_TYPE expression, immediately emit an error and
25427 return error_mark_node.
25429 2011-01-26 Jeff Law <law@redhat.com>
25431 PR rtl-optimization/47464
25432 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25433 rather than may_trap_p as needed.
25435 2011-01-26 DJ Delorie <dj@redhat.com>
25437 PR rtl-optimization/46878
25438 * combine.c (insn_a_feeds_b): Check for the implicit cc0
25439 setter/user dependency as well.
25441 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
25443 PR rtl-optimization/44469
25444 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25445 after removing trivially dead basic blocks.
25447 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25449 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25450 * config/frv/frv.h (LINK_SPEC): Likewise.
25451 * config/i386/netware.h (LINK_SPEC): Likewise.
25452 * config/m68k/linux.h (ASM_SPEC): Likewise.
25453 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25454 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25455 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25456 * config/sparc/linux.h (ASM_SPEC): Likewise.
25457 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25458 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25460 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25462 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25463 * config/frv/frv.h (ASM_SPEC): Likewise.
25464 * config/m68k/linux.h (ASM_SPEC): Likewise.
25465 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25466 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25467 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25468 * config/sparc/linux.h (ASM_SPEC): Likewise.
25469 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25470 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25472 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25474 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25475 * config/frv/frv.h (LINK_SPEC): Likewise.
25476 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25478 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25480 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25481 * config/frv/frv.h (ASM_SPEC): Likewise.
25482 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25483 * config/m68k/linux.h (ASM_SPEC): Likewise.
25484 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25485 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25486 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25487 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25488 * config/sparc/linux.h (ASM_SPEC): Likewise.
25489 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25490 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25491 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25493 2011-01-26 Steve Ellcey <sje@cup.hp.com>
25496 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25498 (vec_extract_evenodd_help): Ditto.
25499 (vec_extract_evenv4hi): Ditto.
25500 (vec_extract_oddv4hi): Ditto.
25501 (vec_interleave_lowv2si): Ditto.
25502 (vec_interleave_highv2si): Ditto.
25503 (vec_extract_evenv2si): Ditto.
25504 (vec_extract_oddv2si: Ditto.
25505 (vec_pack_trunc_v2si): Ditto.
25507 2011-01-22 Jan Hubicka <jh@suse.cz>
25510 * cgraph.h (cgraph_local_info): New field can_change_signature.
25511 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25512 signature can change.
25513 (ipcp_estimate_growth): Call sequence simplify only if calle signature
25515 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25516 (cgraph_function_versioning): We can not change signature of functions
25517 that don't allow that.
25518 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25519 (lto_input_node): Likewise.
25520 * ipa-inline.c (compute_inline_parameters): Compute
25521 local.can_change_signature.
25522 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25523 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25524 functions that can not change signature.
25525 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25526 init_cumulative_args): Do not use local calling conventions
25527 for functions that can not change signature.
25529 2011-01-22 Jan Hubicka <jh@suse.cz>
25531 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25533 2011-01-26 Richard Guenther <rguenther@suse.de>
25535 PR tree-optimization/47190
25536 * cgraphunit.c (process_common_attributes): New function.
25537 (process_function_and_variable_attributes): Use it.
25539 2011-01-26 Richard Guenther <rguenther@suse.de>
25542 * cgraphbuild.c (record_eh_tables): Record reference to personality
25545 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
25548 * sel-sched.c (moveup_expr): Don't let debug insns prevent
25549 non-debug insns from moving up.
25551 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
25554 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25555 t-dlldir{,-x} fragment for build and add it to tmake_file.
25556 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25557 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25558 * config/i386/t-dlldir: New file.
25559 (SHLIB_DLLDIR): Define.
25560 * config/i386/t-dlldir-x: New file.
25561 (SHLIB_DLLDIR): Define.
25562 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25563 (SHLIB_INSTALL): Use it.
25565 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
25568 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25569 lower bound of the allowed Thumb-2 coprocessor load/store
25570 index range to -256. Add explaining comment.
25572 2011-01-25 Ian Lance Taylor <iant@google.com>
25574 * godump.c (go_define): Improve lexing of macro expansion to only
25575 accept expressions which match Go spec.
25577 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
25580 * tree.c (handle_dll_attribute): Handle it.
25581 * doc/extend.texi (@item dllexport): Mention it.
25582 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25584 2011-01-25 Ian Lance Taylor <iant@google.com>
25586 PR tree-optimization/26854
25587 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25588 (decl_jump_unsafe): Move higher in file, with no other change.
25589 (bind): Set has_jump_unsafe_decl if appropriate.
25590 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25591 (check_earlier_gotos): Likewise.
25592 (c_check_switch_jump_warnings): Likewise.
25594 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
25596 * doc/invoke.texi (Warning Options): Add missing hyphen.
25597 (-fprofile-dir): Minor grammatical fixes.
25598 (-fbranch-probabilities): Likewise.
25600 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
25604 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25606 (no_real_insns_p, schedule_block, set_priorities): Drop special
25607 treatment of boundary debug insns.
25608 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25609 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25610 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25611 (BOUNDARY_DEBUG_INSN_P): Likewise.
25612 (SCHEDULE_DEBUG_INSN_P): Likewise.
25613 * sched-rgn.c (init_ready_list): Drop special treatment of
25614 boundary debug insns.
25615 * final.c (rest_of_clean-state): Clear notes' BB.
25617 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25619 * Makefile.in (LAMBDA_H): Removed.
25620 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25621 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25622 lambda-trans.o, and tree-loop-linear.o.
25623 (lto-symtab.o): Remove dependence on LAMBDA_H.
25624 (tree-loop-linear.o): Remove rule.
25625 (lambda-mat.o): Same.
25626 (lambda-trans.o): Same.
25627 (lambda-code.o): Same.
25628 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25629 (tree-vect-slp.o): Same.
25630 * hwint.h (gcd): Moved here.
25631 (least_common_multiple): Same.
25632 * lambda-code.c: Removed.
25633 * lambda-mat.c: Removed.
25634 * lambda-trans.c: Removed.
25635 * lambda.h: Removed.
25636 * tree-loop-linear.c: Removed.
25637 * lto-symtab.c: Do not include lambda.h.
25638 * omega.c (gcd): Removed.
25639 * passes.c (init_optimization_passes): Remove pass_linear_transform.
25640 * tree-data-ref.c (print_lambda_vector): Moved here.
25641 (lambda_vector_copy): Same.
25642 (lambda_matrix_copy): Same.
25643 (lambda_matrix_id): Same.
25644 (lambda_vector_first_nz): Same.
25645 (lambda_matrix_row_add): Same.
25646 (lambda_matrix_row_exchange): Same.
25647 (lambda_vector_mult_const): Same.
25648 (lambda_vector_negate): Same.
25649 (lambda_matrix_row_negate): Same.
25650 (lambda_vector_equal): Same.
25651 (lambda_matrix_right_hermite): Same.
25652 * tree-data-ref.h: Do not include lambda.h.
25653 (lambda_vector): Moved here.
25654 (lambda_matrix): Same.
25655 (dependence_level): Same.
25656 (lambda_transform_legal_p): Removed declaration.
25657 (lambda_collect_parameters): Same.
25658 (lambda_compute_access_matrices): Same.
25659 (lambda_vector_gcd): Same.
25660 (lambda_vector_new): Same.
25661 (lambda_vector_clear): Same.
25662 (lambda_vector_lexico_pos): Same.
25663 (lambda_vector_zerop): Same.
25664 (lambda_matrix_new): Same.
25665 * tree-flow.h (least_common_multiple): Removed declaration.
25666 * tree-parloops.c (lambda_trans_matrix): Moved here.
25667 (LTM_MATRIX): Same.
25668 (LTM_ROWSIZE): Same.
25669 (LTM_COLSIZE): Same.
25670 (LTM_DENOMINATOR): Same.
25671 (lambda_trans_matrix_new): Same.
25672 (lambda_matrix_vector_mult): Same.
25673 (lambda_transform_legal_p): Same.
25674 * tree-pass.h (pass_linear_transform): Removed declaration.
25675 * tree-ssa-loop.c (tree_linear_transform): Removed.
25676 (gate_tree_linear_transform): Removed.
25677 (pass_linear_transform): Removed.
25678 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25679 flag_loop_interchange.
25681 2011-01-25 Jakub Jelinek <jakub@redhat.com>
25683 PR tree-optimization/47265
25684 PR tree-optimization/47443
25685 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25686 if name still has some uses.
25688 2011-01-25 Martin Jambor <mjambor@suse.cz>
25690 PR tree-optimization/47382
25691 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25692 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25694 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
25696 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25697 sjlj_except_unwind_info.
25699 2011-01-25 Richard Guenther <rguenther@suse.de>
25701 PR tree-optimization/47426
25702 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25703 visible functions results escape.
25705 2011-01-25 Jakub Jelinek <jakub@redhat.com>
25708 * config/arm/arm.c (any_sibcall_uses_r3): New function.
25709 (arm_get_frame_offsets): Use it.
25711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25712 Jakub Jelinek <jakub@redhat.com>
25714 PR tree-optimization/47271
25715 * tree-if-conv.c (bb_postdominates_preds): New.
25716 (if_convertible_bb_p): Call bb_postdominates_preds.
25717 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25718 (predicate_scalar_phi): Call bb_postdominates_preds.
25720 2011-01-25 Nick Clifton <nickc@redhat.com>
25722 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25723 * config/rx/rx.c (rx_function_value): Likewise.
25724 (rx_promote_function_mode): Likewise.
25725 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25726 in order to make it legitimate.
25727 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25728 make sure that the first operand is the same as the result register.
25729 (addsi3_unspec): Delete.
25730 (subdi3): Do not accept immediate operands.
25731 (subdi3_internal): Likewise.
25733 2011-01-25 Jeff Law <law@redhat.com>
25735 PR rtl-optimization/37273
25736 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25737 handle them like argument loads from stack slots. Do not double
25738 count memory for memory constants and argument loads from stack slots.
25740 2011-01-25 Jakub Jelinek <jakub@redhat.com>
25742 PR tree-optimization/47427
25743 PR tree-optimization/47428
25744 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25745 coalesce if the new root var would be TREE_READONLY.
25747 2011-01-25 Richard Guenther <rguenther@suse.de>
25749 PR middle-end/47414
25750 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25751 correct type for TBAA.
25753 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25755 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25756 (close_phi_written_to_memory): Call for_each_index with
25757 dr_indices_valid_in_loop.
25759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25761 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25762 when it is initialized.
25764 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25766 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25767 call to graphite_find_data_references_in_stmt.
25768 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25769 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
25770 call to graphite_find_data_references_in_stmt.
25771 (analyze_drs_in_stmts): Same.
25772 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25773 in which the scalar analysis of indices is performed.
25774 (create_data_ref): Same. Update call to dr_analyze_indices.
25775 (find_data_references_in_stmt): Update call to create_data_ref.
25776 (graphite_find_data_references_in_stmt): Same.
25777 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25779 (create_data_ref): Same.
25780 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25781 call to create_data_ref.
25783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25785 * graphite-sese-to-poly.c (build_poly_scop): Move
25786 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25788 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25790 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25791 VAR_DECL, PARM_DECL, and RESULT_DECL.
25793 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25795 * graphite-dependences.c (reduction_dr_1): Allow several reductions
25796 in a reduction PBB.
25797 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25798 that have already been marked as PBB_IS_REDUCTION.
25800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25802 * graphite-scop-detection.c (same_close_phi_node): New.
25803 (remove_duplicate_close_phi): New.
25804 (make_close_phi_nodes_unique): New.
25805 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25809 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25810 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25811 of both data references to be the same.
25813 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25815 * graphite-dependences.c (build_lexicographical_constraint): Remove
25816 the gdim parameter.
25817 (build_lexicographical_constraint): Adjust call to
25818 ppl_powerset_is_empty.
25819 (dependence_polyhedron): Same.
25820 (graphite_legal_transform_dr): Same.
25821 (graphite_carried_dependence_level_k): Same.
25822 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25824 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25828 * graphite-sese-to-poly.c
25829 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25830 (close_phi_written_to_memory): New.
25831 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25834 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25836 * doc/install.texi: Update the expected version number of PPL to 0.11.
25837 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25838 #if PPL_VERSION_MINOR < 11.
25840 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25842 * graphite-dependences.c: Include graphite-cloog-util.h.
25843 (new_poly_ddr): Inlined into dependence_polyhedron.
25844 (free_poly_ddr): Moved close by new_poly_ddr.
25845 (dependence_polyhedron_1): Renamed dependence_polyhedron.
25846 Early return NULL when ppl_powerset_is_empty returns true.
25847 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
25848 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
25849 (graphite_legal_transform_dr): Call new_poly_ddr.
25850 (graphite_carried_dependence_level_k): Same.
25851 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
25852 (dot_transformed_deps_stmt_1): Removed.
25853 (dot_deps_stmt_1): Call dot_deps_stmt_2.
25854 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
25855 (dot_deps_1): Call dot_deps_2.
25856 * Makefile.in (graphite-dependences.o): Add missing dependence on
25857 graphite-cloog-util.h.
25859 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25861 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25862 (build_lexicographical_constraint): Same.
25863 (dependence_polyhedron_1): Same.
25864 (graphite_legal_transform_dr): Same.
25865 (graphite_carried_dependence_level_k): Same.
25866 * graphite-ppl.c (ppl_powerset_is_empty): New.
25867 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25868 * tree-data-ref.c (dump_data_reference): Print the basic block index.
25870 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25872 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25873 the "a followed by b" relation and document it.
25875 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25877 * graphite-dependences.c (build_lexicographical_constraint): Stop the
25878 iteration when the bag of constraints is empty.
25880 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25882 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25884 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25886 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25887 nest and two loop depths as parameters.
25888 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25889 lst_perfect_nestify.
25891 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25893 * graphite-dependences.c (print_pddr): Call
25894 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25896 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25898 * graphite-ppl.c (debug_gmp_value): New.
25899 * graphite-ppl.h (debug_gmp_value): Declared.
25901 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
25903 * doc/install.texi: Document availability of cloog-0.16.
25905 2011-01-25 Vladimir Kargov <kargov@gmail.com>
25907 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25908 invalid postdominance info.
25910 2011-01-24 Jan Hubicka <jh@suse.cz>
25913 * doc/extend.texi (weak pragma): Drop claim that it must
25914 appear before definition.
25915 * varasm.c (merge_weak, declare_weak): Only sanity check
25916 that DECL is not output at a time it is declared weak.
25918 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
25920 * machmode.def: Fixed comments.
25922 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
25924 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25926 2011-01-24 Paul Koning <ni1d@arrl.net>
25928 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25931 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
25934 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25935 (block_info): Add scanned and prev.
25936 (move_or_delete_vzeroupper_2): Return if the basic block
25937 has been scanned and the upper 128bit state is unchanged
25938 from the last scan.
25939 (move_or_delete_vzeroupper_1): Return true if the exit
25941 (move_or_delete_vzeroupper): Visit basic blocks using the
25942 work-list based algorithm based on vt_find_locations in
25945 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25947 2011-01-24 Nick Clifton <nickc@redhat.com>
25949 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25950 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25951 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
25952 then define __v850e1__.
25953 * doc/invoke.texi: Document -mv850es.
25955 2011-01-24 Richard Henderson <rth@redhat.com>
25957 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25958 compound unordered comparisons.
25959 * config/rx/rx.c (rx_split_fp_compare): Remove.
25960 * config/rx/rx-protos.h: Update.
25961 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25962 (cbranchsf4): Don't call rx_split_fp_compare.
25963 (*cbranchsf4): Use rx_split_cbranch.
25964 (*cmpsf): Don't accept "i" constraint.
25965 (*conditional_branch): Only valid after reload.
25966 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
25968 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25971 * config/rs6000/altivec.md (vector constant splitters): Add
25972 support for creating vector single precision constants if -mvsx is
25973 used and we would create the constant using Altivec primitives.
25975 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
25976 Richard Sandiford <rdsandiford@googlemail.com>
25978 PR rtl-optimization/47166
25979 * reload1.c (emit_reload_insns): Disable the spill_reg_store
25980 mechanism for PRE_MODIFY and POST_MODIFY.
25981 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25984 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
25986 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25988 2011-01-22 Jan Hubicka <jh@suse.cz>
25991 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25993 2011-01-22 Jan Hubicka <jh@suse.cz>
25995 PR tree-optimization/43884
25997 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
25998 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26000 2011-01-22 Anatoly Sokolov <aesok@post.ru>
26002 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26003 * config/s390/s390.c (s390_register_move_cost,
26004 s390_memory_move_cost): New.
26005 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26007 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26009 PR middle-end/47401
26010 * except.c (sjlj_assign_call_site_values): Move setting the
26011 crtl->uses_eh_lsda flag to ...
26012 (sjlj_mark_call_sites): ... here.
26013 (sjlj_emit_function_enter): Support NULL dispatch label.
26014 (sjlj_build_landing_pads): In a function with no landing pads
26015 that still has must-not-throw regions, generate code to register
26016 a personality function with empty LSDA.
26018 2011-01-21 Richard Henderson <rth@redhat.com>
26020 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26022 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26024 * compare-elim.c: New file.
26025 * Makefile.in (OBJS-common): Add it.
26026 (compare-elim.o): New.
26027 * common.opt (fcompare-elim): New.
26028 * opts.c (default_options_table): Add OPT_fcompare_elim.
26029 * tree-pass.h (pass_compare_elim_after_reload): New.
26030 * passes.c (init_optimization_passes): Add it.
26031 * recog.h: Protect against re-inclusion.
26032 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26033 * doc/invoke.texi (-fcompare-elim): Document it.
26034 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26035 * doc/tm.texi: Rebuild.
26037 2011-01-22 Nick Clifton <nickc@redhat.com>
26039 * config/rx/rx.md (cstoresf4): Pass comparison operator to
26040 rx_split_fp_compare.
26042 2011-01-22 Nick Clifton <nickc@redhat.com>
26044 * config/rx/rx.md (UNSPEC_CONST): New.
26045 (deallocate_and_return): Wrap the amount popped off the stack in
26046 an UNSPEC_CONST in order to stop it being rejected by
26047 -mmax-constant-size.
26048 (pop_and_return): Add a "(return)" rtx.
26049 (call): Drop the immediate operand.
26050 (call_internal): Likewise.
26051 (call_value): Likewise.
26052 (call_value_internal): Likewise.
26053 (sibcall_internal): Likewise.
26054 (sibcall_value_internal): Likewise.
26055 (sibcall): Likewise. Generate an explicit call using
26057 (sibcall_value): Likewise.
26058 (mov<>): FAIL if a constant operand is not legitimate.
26059 (addsi3_unpsec): New pattern.
26061 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26062 (ok_for_max_constant): New function.
26063 (gen_safe_add): New function.
26064 (rx_expand_prologue): Use gen_safe_add.
26065 (rx_expand_epilogue): Likewise.
26066 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
26069 2011-01-21 Jeff Law <law@redhat.com>
26071 PR tree-optimization/47053
26072 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26073 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26074 statements are deleted.
26075 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
26076 is nonempty, then purge dead edges and cleanup the CFG.
26078 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26081 Temporarily revert:
26082 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26084 * tree-dfa.c (create_var_ann): Mark variable as used.
26086 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26088 PR middle-end/45566
26089 * except.c (convert_to_eh_region_ranges): Emit queued no-region
26090 notes from other section in hot/cold partitioning even if
26091 last_action is -3. Increment call_site_base.
26093 PR rtl-optimization/47366
26094 * fwprop.c (forward_propagate_into): Return bool. If
26095 any changes are made, -fnon-call-exceptions is used and
26096 REG_EH_REGION note is present, call purge_dead_edges
26097 and return true if it purged anything.
26098 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26099 any EH edges were purged.
26101 2011-01-21 Jeff Law <law@redhat.com>
26103 PR rtl-optimization/41619
26104 * caller-save.c (setup_save_areas): Break out code to determine
26105 which hard regs are live across calls by examining the reload chains
26106 so that it is always used.
26107 Eliminate code which checked REG_N_CALLS_CROSSED.
26109 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26111 PR tree-optimization/47355
26112 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26113 NOP has non-debug uses beyond PHIs in new_bb.
26115 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26118 * cfgexpand.c (account_used_vars_for_block): Only account vars
26119 that are annotated as used.
26120 (estimated_stack_frame_size): Don't set TREE_USED.
26121 * tree-dfa.c (create_var_ann): Mark variable as used.
26123 2011-01-21 Richard Guenther <rguenther@suse.de>
26125 PR middle-end/47395
26126 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26128 2011-01-21 Richard Guenther <rguenther@suse.de>
26130 PR tree-optimization/47365
26131 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26132 (vn_reference_lookup_pieces): Adjust.
26133 (vn_reference_lookup): Likewise.
26134 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26135 (vn_reference_lookup_3): Only look through kills if in
26136 VN_WALKREWRITE mode.
26137 (vn_reference_lookup_pieces): Adjust.
26138 (vn_reference_lookup): Likewise.
26139 (visit_reference_op_load): Likewise.
26140 (visit_reference_op_store): Likewise.
26141 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26142 (compute_avail): Likewise.
26143 (eliminate): Likewise.
26145 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26147 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26148 DECL_IGNORED_P non-reg vars if they are used.
26150 PR tree-optimization/47391
26151 * varpool.c (const_value_known_p): Return false if
26154 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
26157 * config/i386/i386.c (ix86_local_alignment): Handle
26158 case for va_list_type_node is nil.
26159 (ix86_canonical_va_list_type): Likewise.
26161 2011-01-21 Alan Modra <amodra@gmail.com>
26163 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26164 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26166 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26168 * config/arm/arm.md (define_attr type): Rename f_load
26169 and f_store to f_fpa_load and f_fpa_store. Update.
26170 (write_conflict): Deal with rename fallout.
26171 (*push_fp_multi): Likewise.
26172 * config/arm/fpa.md (f_load): Use f_fpa_load.
26173 (f_store): Use f_fpa_store.
26174 (*movsf_fpa): Likewise.
26175 (*movdf_fpa): Likewise.
26176 (*movxf_fpa): Likewise.
26177 (*thumb2_movsf_fpa): Likewise.
26178 (*thumb2_movdf_fpa): Likewise.
26179 (*thumb2_movxf_fpa): Likewise.
26180 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26181 f_loadd and f_stored.
26182 (*thumb2_movdi_vfp): Likewise.
26183 (*thumb2_movsf_vfp): Fix attribute to f_loads.
26184 (*thumb2_movsi_vfp): Likewise.
26185 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26186 Use f_loads instead of f_load.
26187 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26189 2011-01-20 Anatoly Sokolov <aesok@post.ru>
26191 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26192 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26193 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26194 (xtensa_mode_dependent_address_p): New function.
26195 (constantpool_address_p): Make static. Change return type to bool.
26196 Change argument type to const_rtx. Use CONST_INT_P predicate.
26198 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
26201 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26203 2011-01-20 Jakub Jelinek <jakub@redhat.com>
26206 * cfgexpand.c (expand_debug_expr): Instead of generating
26207 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26210 2011-01-20 Richard Guenther <rguenther@suse.de>
26212 PR middle-end/47370
26213 * tree-inline.c (remap_gimple_op_r): Recurse manually for
26214 the pointer operand of MEM_REFs.
26216 2011-01-20 Jakub Jelinek <jakub@redhat.com>
26218 PR tree-optimization/46130
26219 * ipa-split.c (consider_split): If return_bb contains non-virtual
26220 PHIs other than for retval or if split_function would not adjust it,
26223 2011-01-20 Richard Guenther <rguenther@suse.de>
26225 PR tree-optimization/47167
26226 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26227 Revert previous change, only avoid enumeral type changes.
26229 2011-01-19 Mike Stump <mikestump@comcast.net>
26231 * doc/tm.texi.in (BRANCH_COST): Englishify.
26232 * doc/tm.texi (BRANCH_COST): Likewise.
26234 2011-01-19 Dodji Seketeli <dodji@redhat.com>
26237 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26238 (gen_scheduled_generic_parms_dies): New functions.
26239 (gen_struct_or_union_type_die): Schedule template parameters DIEs
26240 generation for the end of CU compilation.
26241 (dwarf2out_finish): Generate template parameters DIEs here.
26243 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
26246 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26247 debug bind stmt on merge edges.
26249 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
26253 * function.c (instantiate_expr): Instantiate incoming rtl of
26254 implicit arguments, and recurse on VALUE_EXPRs.
26255 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26256 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26258 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
26260 * c-parser.c (c_parser_for_statement): Initialize
26261 collection_expression.
26263 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26265 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26267 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26269 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26270 (LINK_SHLIB_SPEC): Don't use %(link_path).
26271 (SUBTARGET_EXTRA_SPECS): Remove link_path.
26273 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26275 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26276 (NO_SHARED_LIB_SUPPORT): Remove.
26277 (LINK_SHLIB_SPEC): Remove one conditional definition.
26279 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26281 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26283 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26284 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26285 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26286 %{call_shared} and conditionals on these options not being passed.
26287 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26290 2011-01-19 Jakub Jelinek <jakub@redhat.com>
26292 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26295 * ipa-split.c: Spelling fixes.
26297 2011-01-19 Richard Henderson <rth@redhat.com>
26299 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26300 (*mulsi3): Likewise.
26302 * longlong.h [__mn10300__] (count_leading_zeros): New.
26303 [__mn10300__] (umul_ppmm, smul_ppmm): New.
26304 [__mn10300__] (add_ssaaaa, subddmmss): New.
26305 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26306 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26308 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26310 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26312 2011-01-19 Richard Henderson <rth@redhat.com>
26314 * config/mn10300/mn10300.md (addsi3_flags): New.
26315 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26316 (subsi3_flags, subc_internal, subdi3): New.
26317 (subdi3_internal, *subdi3_degenerate): New.
26318 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26320 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26321 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26322 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
26323 * config/mn10300/mn10300-protos.h: Update.
26324 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26325 (return_ret): Likewise. Rename from return_internal_regs.
26326 (return_internal): Remove.
26328 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26329 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26330 (mn10300_legitimate_constant_p): Likewise.
26331 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26332 (mn10300_frame_size): New.
26333 (mn10300_expand_prologue): Use it.
26334 (mn10300_expand_epilogue): Likewise.
26335 (mn10300_initial_offset): Likewise.
26336 * config/mn10300/mn10300-protos.h: Update.
26337 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26338 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26339 (prologue, epilogue, return_internal): Tidy output code.
26340 (mn10300_store_multiple_operation, return): Likewise.
26341 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26342 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26343 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26344 (load_pic, am33_load_pic): New.
26345 (mn10300_load_pic0, mn10300_load_pic1): New.
26347 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26348 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26349 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26350 (cc_flags_for_mode, cc_flags_for_code): New.
26351 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26352 overflow flag is not valid. Validate that the flags we need
26353 for the comparison are valid.
26354 (mn10300_output_cmp): Remove.
26355 (mn10300_output_add): New.
26356 (mn10300_select_cc_mode): Use cc_flags_for_code.
26357 (mn10300_split_cbranch): New.
26358 (mn10300_match_ccmode): New.
26359 (mn10300_split_and_operand_count): New.
26360 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26362 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26363 (addsi3): ... here. Use mn10300_output_add.
26364 (*addsi3_flags): New.
26365 (*am33_subsi3, *mn10300_subsi3): Merge...
26366 (subsi3): ... here. Use attribute isa.
26367 (*subsi3_flags): New.
26368 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
26370 (*am33_andsi3, *mn10300_andsi3): Merge...
26371 (andsi3): ... here.
26372 (*andsi3_flags): New.
26373 (andsi3 splitters): New.
26374 (*am33_iorsi3, *mn10300_iorsi3): Merge...
26375 (iorsi3): ... here.
26376 (*iorsi3_flags): New.
26377 (*am33_xorsi3, *mn10300_xorsi3): Merge...
26378 (xorsi3): ... here.
26379 (*xorsi3_flags): New.
26380 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26381 (one_cmplsi2): ... here.
26382 (*one_cmplsi2_flags): New.
26383 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
26384 instead of "dax" in constraints. Use mn10300_split_cbranch.
26385 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
26386 use matching constraints to eliminate a self-comparison.
26387 (*integer_conditional_branch): Rename from integer_conditional_branch.
26388 Use int_mode_flags to match CC_REG.
26389 (*cbranchsi4_btst, *btstsi): New.
26390 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
26391 mn10300_split_cbranch.
26392 (*am33_cmpsf): Rename from am33_cmpsf.
26393 (*float_conditional_branch): Rename from float_conditional_branch.
26394 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26395 (zero_extendqisi2): ... here.
26396 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26397 (zero_extendhisi2): ... here.
26398 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26399 (extendqisi2): ... here.
26400 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26401 (extendhisi2): ... here.
26402 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26403 (ashlsi3): ... here.
26404 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26405 (lshrsi3): ... here.
26406 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26407 (ashrsi3): ... here.
26408 (consecutive add peephole): Remove.
26409 * config/mn10300/predicates.md (label_ref_operand): New.
26410 (int_mode_flags): New.
26411 (CCZN_comparison_operator): New.
26413 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26414 (throughput_42_latency_43): New reservation.
26415 (mulsidi3, umulsidi3): New expanders.
26416 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
26417 the MDR register to allocation; separately allocate the low and
26418 high parts of the DImode result.
26419 (umulsidi3_internal): Similarly.
26420 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26421 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
26422 (udivsi3, umodsi3): Remove.
26423 (udivmodsi4, divmodsi4): New expanders.
26424 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
26425 (*divmodsi4): Simiarly.
26426 (ext_internal): New.
26428 * config/mn10300/constraints.md ("z"): New constraint.
26429 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26430 (FIXED_REGISTERS): Don't fix MDR.
26431 (CALL_USED_REGSITERS): Reformat nicely.
26432 (REG_ALLOC_ORDER): Add MDR.
26433 (enum regclass): Add MDR_REGS.
26434 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26435 (IRA_COVER_CLASSES): Add MDR_REGS.
26436 (REGNO_REG_CLASS): Handle MDR_REG.
26437 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26438 (mn10300_register_move_cost): Likewise.
26439 * config/mn10300/mn10300.md (MDR_REG): New.
26440 (*movsi_internal): Handle moves to/from MDR_REGS.
26442 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26444 (mn10300_secondary_reload): Tidy combination reload classes.
26445 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26446 addresses for AM33. Allow symbolic offsets for reg+imm.
26447 (mn10300_regno_in_class_p): New.
26448 (mn10300_legitimize_reload_address): New.
26449 * config/mn10300/mn10300.h (enum reg_class): Remove
26450 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26451 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
26452 SP_OR_GENERAL_REGS.
26453 (REG_CLASS_NAMES): Update to match.
26454 (REG_CLASS_CONTENTS): Likewise.
26455 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26456 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26457 (REGNO_IN_RANGE_P): Remove.
26458 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26459 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26460 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26461 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26462 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26463 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26464 (REGNO_GENERAL_P): New.
26465 (HAVE_POST_MODIFY_DISP): New.
26466 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26467 (LEGITIMIZE_RELOAD_ADDRESS): New.
26468 * config/mn10300/mn10300-protos.h: Update.
26470 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26471 DATA_REGS for AM33 stack-pointer destination.
26472 (mn10300_preferred_output_reload_class): Likewise.
26473 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26474 into a form appropriate for ...
26475 (TARGET_SECONDARY_RELOAD): New.
26476 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26477 * config/mn10300/mn10300-protos.h: Update.
26478 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26479 reload_insi; use the "A" constraint for the scratch; handle AM33
26480 moves of sp to non-address registers.
26482 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26483 (*movqi_internal): ... here.
26484 (*am33_movhi, *mn10300_movhi): Merge into...
26485 (*movhi_internal): ... here.
26486 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
26487 as the source/destination of moves from/to SP.
26488 (movsf): Only allow for AM33-2.
26489 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26490 any integer constant constraint. Only allow for AM33-2. Tidy
26491 all of the alternative outputs.
26492 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26493 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
26495 (udivsi3, umodsi3): New patterns for MN103 only.
26497 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
26499 * doc/tm.texi.in: Spell out that a lack of register class unions
26501 * doc/tm.texi: Regenerate.
26503 2011-01-19 Jakub Jelinek <jakub@redhat.com>
26505 PR rtl-optimization/47337
26506 * dce.c (check_argument_store): New function.
26507 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
26509 PR tree-optimization/47290
26510 * tree-eh.c (infinite_empty_loop_p): New function.
26511 (cleanup_empty_eh): Use it.
26513 2011-01-18 Steve Ellcey <sje@cup.hp.com>
26516 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26517 (a64_expand_widen_sum): Ditto.
26518 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26519 (vec_extract_evenodd_help): Ditto.
26520 (vec_extract_evenv4hi): Ditto.
26521 (vec_extract_oddv4hi): Ditto.
26522 (vec_extract_evenv2si): Ditto.
26523 (vec_extract_oddv2si): Ditto.
26524 (vec_extract_evenv2sf): Ditto.
26525 (vec_extract_oddv2sf): Ditto.
26526 (vec_pack_trunc_v4hi: Ditto.
26527 (vec_pack_trunc_v2si): Ditto.
26528 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26529 (vec_interleave_highv8qi): Ditto.
26531 (vec_extract_oddv8qi): Ditto.
26532 (vec_interleave_lowv4hi): Ditto.
26533 (vec_interleave_highv4hi): Ditto.
26534 (vec_interleave_lowv2si): Ditto.
26535 (vec_interleave_highv2si): Ditto.
26537 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26539 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26540 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26541 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
26542 (pa_c_mode_for_suffix): New.
26543 (TARGET_EXPAND_BUILTIN): Define.
26544 (TARGET_C_MODE_FOR_SUFFIX): Define.
26545 (pa_builtins): Define.
26546 (pa_init_builtins): Register __float128 type and init new support
26548 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26549 * config/pa/quadlib.c (_U_Qfcopysign): New.
26551 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
26553 PR middle-end/46894
26554 * explow.c (allocate_dynamic_stack_space): Do not assume more than
26555 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26558 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26560 PR tree-optimization/47179
26561 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26562 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26564 2011-01-18 Richard Guenther <rguenther@suse.de>
26566 PR rtl-optimization/47216
26567 * emit-rtl.c: Include tree-flow.h.
26568 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26569 of replicating it with different semantics.
26570 * Makefile.in (emit-rtl.o): Adjust.
26572 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26574 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26575 (cortex_a9_dp): Handle neon types correctly.
26577 2011-01-18 Jakub Jelinek <jakub@redhat.com>
26579 PR rtl-optimization/47299
26580 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26581 subtarget. Use normal multiplication if both operands are constants.
26582 * expmed.c (expand_widening_mult): Don't try to optimize constant
26583 multiplication if op0 has VOIDmode. Convert op1 constant to mode
26586 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26588 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
26589 spacing after 'e.g.', typos, comma, hyphenation.
26591 2011-01-17 Richard Henderson <rth@redhat.com>
26593 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26594 (rx_restricted_mem_operand): New.
26595 (rx_shift_operand): Use register_operand.
26596 (rx_source_operand, rx_compare_operand): Likewise.
26597 * config/rx/rx.md (addsi3_flags): New expander.
26598 (adddi3): Rewrite as expander.
26599 (adc_internal, *adc_flags, adddi3_internal): New patterns.
26600 (subsi3_flags): New expander.
26601 (subdi3): Rewrite as expander.
26602 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26604 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26605 (rx_init_builtins): Remove sat builtin.
26606 (rx_expand_builtin): Likewise.
26607 * config/rx/rx.md (ssaddsi3): New.
26608 (*sat): Rename from sat. Represent the CC_REG input.
26610 * config/rx/predicates.md (rshift_operator): New.
26611 * config/rx/rx.c (rx_expand_insv): Remove.
26612 * config/rx/rx-protos.h: Update.
26613 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
26614 operand to the canonical position.
26615 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26616 (*bitclr, *bitclr_in_memory): Similarly.
26617 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26618 (insv): Retain the zero_extract in the expansion.
26620 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26621 (bswaphi2, bitinvert, revw): Likewise.
26623 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26624 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26625 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26626 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26627 (bitset, bitset_in_memory): Likewise.
26628 (bitinvert, bitinvert_in_memory): Likewise.
26629 (bitclr, bitclr_in_memory): Likewise.
26630 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26631 (rx_strend, rx_cmpstrn): Likewise.
26632 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
26633 (bitop peep2 patterns): Remove.
26635 * config/rx/rx.c (rx_match_ccmode): New.
26636 * config/rx/rx-protos.h: Update.
26637 * config/rx/rx.md (abssi2): Clobber, don't set flags.
26638 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26639 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26640 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26641 (fix_truncsfsi2, floatsisf2): Likewise.
26642 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26643 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26644 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26645 (*subsi3_flags, *xorsi3_flags): New.
26647 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26649 * config/rx/rx.c (rx_print_operand): Remove workaround for
26650 unsplit comparison operations.
26652 * config/rx/rx.md (movsicc): Split after reload.
26653 (*movsicc): Merge *movsieq and *movsine via match_operator.
26654 (*stcc): New pattern.
26656 * config/rx/rx.c (rx_float_compare_mode): Remove.
26657 * config/rx/rx.h (rx_float_compare_mode): Remove.
26658 * config/rx/rx.md (cstoresi4): Split after reload.
26659 (*sccc): New pattern.
26661 * config/rx/predicates.md (label_ref_operand): New.
26662 (rx_z_comparison_operator): New.
26663 (rx_zs_comparison_operator): New.
26664 (rx_fp_comparison_operator): New.
26665 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26666 Validate that the flags are set properly for the comparison.
26667 (rx_gen_cond_branch_template): Remove.
26668 (rx_cc_modes_compatible): Remove.
26669 (mode_from_flags): New.
26670 (flags_from_code): Rename from flags_needed_for_conditional.
26671 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26672 (rx_select_cc_mode): Likewise.
26673 (rx_split_fp_compare): New.
26674 (rx_split_cbranch): New.
26675 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26676 (*cbranchsi4): Use match_operator and rx_split_cbranch.
26677 (*cbranchsf4): Similarly.
26678 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
26679 match_operator and rx_split_cbranch.
26680 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26681 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
26682 (*cmpsi): Rename from cmpsi.
26683 (*tstsi): Rename from tstsi.
26684 (*cmpsf): Rename from cmpsf; use CC_Fmode.
26685 (*conditional_branch): Rename from conditional_branch.
26686 (*reveresed_conditional_branch): Remove.
26687 (b<code>): Remove expander.
26688 * config/rx/rx-protos.h: Update.
26690 * config/rx/rx.c (rx_compare_redundant): Remove.
26691 * config/rx/rx.md (cmpsi): Don't use it.
26692 * config/rx/rx-protos.h: Update.
26694 * config/rx/rx-modes.def (CC_F): New mode.
26695 * config/rx/rx.c (rx_select_cc_mode): New.
26696 * config/rx/rx.h (SELECT_CC_MODE): Use it.
26697 * config/rx/rx-protos.h: Update.
26699 2011-01-17 Richard Henderson <rth@redhat.com>
26701 * except.c (dump_eh_tree): Fix stray ; after for statement.
26703 2011-01-17 Richard Guenther <rguenther@suse.de>
26705 PR tree-optimization/47313
26706 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26707 handling before copying the body. Properly deal with
26708 by-reference result in SSA form.
26710 2011-01-17 Ian Lance Taylor <iant@google.com>
26713 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26714 (struct_value_alias_set): Don't define.
26715 (sparc_option_override): Don't set sparc_sr_alias_set and
26716 struct_value_alias_set.
26717 (save_or_restore_regs): Use gen_frame_mem rather than calling
26719 (sparc_struct_value_rtx): Likewise.
26721 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
26724 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26725 (_mm_maskstore_pd): Likewise.
26726 (_mm_maskload_ps): Likewise.
26727 (_mm_maskstore_ps): Likewise.
26728 (_mm256_maskload_pd): Change mask to __m256i.
26729 (_mm256_maskstore_pd): Likewise.
26730 (_mm256_maskload_ps): Likewise.
26731 (_mm256_maskstore_ps): Likewise.
26733 * config/i386/i386-builtin-types.def: Updated.
26734 (ix86_expand_special_args_builtin): Likewise.
26736 * config/i386/i386.c (bdesc_special_args): Update
26737 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26738 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26739 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26740 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26742 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26743 Use <avxpermvecmode> on mask register.
26744 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26746 2011-01-17 Olivier Hainque <hainque@adacore.com>
26747 Michael Haubenwallner <michael.haubenwallner@salomon.at>
26748 Eric Botcazou <ebotcazou@adacore.com>
26751 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26752 if <= USHRT_MAX in 32-bit mode.
26754 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26756 * doc/install.texi (Configuration, Specific): Wrap long
26757 lines in examples. Allow line wrapping in long options
26758 and URLs where beneficial for PDF output.
26760 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
26762 * config/mips/mips.c (mips_classify_symbol): Don't return
26763 SYMBOL_PC_RELATIVE for nonlocal labels.
26765 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
26767 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26769 2011-01-15 Jan Hubicka <jh@suse.cz>
26771 PR tree-optimization/47276
26772 * ipa.c (function_and_variable_visibility): Do not try to mark alias
26773 declarations as needed.
26775 2011-01-15 Martin Jambor <mjambor@suse.cz>
26777 * common.opt (fdevirtualize): New flag.
26778 * doc/invoke.texi (Option Summary): Document it.
26779 * opts.c (default_options_table): Add devirtualize flag.
26780 * ipa-prop.c (detect_type_change): Return immediately if
26781 devirtualize flag is not set.
26782 (detect_type_change_ssa): Likewise.
26783 (compute_known_type_jump_func): Likewise.
26784 (ipa_analyze_virtual_call_uses): Likewise.
26786 2011-01-14 Martin Jambor <mjambor@suse.cz>
26788 PR tree-optimization/45934
26789 PR tree-optimization/46302
26790 * ipa-prop.c (type_change_info): New type.
26791 (stmt_may_be_vtbl_ptr_store): New function.
26792 (check_stmt_for_type_change): Likewise.
26793 (detect_type_change): Likewise.
26794 (detect_type_change_ssa): Likewise.
26795 (compute_complex_assign_jump_func): Check for dynamic type change.
26796 (compute_complex_ancestor_jump_func): Likewise.
26797 (compute_known_type_jump_func): Likewise.
26798 (compute_scalar_jump_functions): Likewise.
26799 (ipa_analyze_virtual_call_uses): Likewise.
26800 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26802 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26804 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26805 * config/i386/i386.opt (msse5): New Alias.
26807 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26809 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26810 * config/sparc/linux64.h (CC1_SPEC): Likewise.
26811 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26812 * config/sparc/sparc.h (CC1_SPEC): Likewise.
26814 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26816 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26818 * config/sparc/linux64.h (CC1_SPEC): Likewise.
26819 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26820 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26821 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26823 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26825 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26827 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26829 2011-01-14 Mike Stump <mikestump@comcast.net>
26831 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26832 * config/fr30/fr30.md: Likweise
26833 (movsi_push): Likewise.
26834 (movsi_pop): Likewise.
26835 (enter_func): Likewise.
26836 * config/moxie/moxie.md (movsi_push): Likewise.
26837 (movsi_pop): Likewise.
26839 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26841 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26842 %{no_archive} %{exact_version}.
26843 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26844 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26845 %{no_archive} %{exact_version}.
26846 * config/mips/openbsd.h (LINK_SPEC): Likewise.
26847 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26848 * config/mips/vxworks.h: Likewise.
26850 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26852 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26854 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26856 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26857 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26859 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26861 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26864 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26866 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26868 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26869 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26871 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26872 Don't handle -shlib.
26874 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26876 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26877 (CC1_SPEC): Don't handle -profile.
26879 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26881 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26882 * config/mips/mips.h (CC1_SPEC): Likewise.
26884 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26886 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26887 * config/mips/mips.h (CC1_SPEC): Likewise.
26889 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26891 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26892 * config/m32r/linux.h (LINK_SPEC): Likewise.
26893 * config/mips/linux.h (LINK_SPEC): Likewise.
26894 * config/mips/linux64.h (LINK_SPEC): Likewise.
26895 * config/sparc/linux.h (LINK_SPEC): Likewise.
26896 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26897 LINK_SPEC): Likewise.
26898 * config/xtensa/linux.h (LINK_SPEC): Likewise.
26900 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26902 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26904 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26906 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26908 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26909 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26911 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26913 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26915 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26917 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26918 supports -Bstatic/-Bdynamic.
26919 * configure: Regenerate.
26921 2011-01-14 Jan Hubicka <jh@suse.cz>
26922 Jack Howarth <howarth@bromo.med.uc.edu>
26925 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26926 when checking debug_info_level. Test write_symbols instead of
26927 debug_hooks->var_location when setting flag_var_tracking_uninit.
26929 2011-01-14 Richard Guenther <rguenther@suse.de>
26931 PR tree-optimization/47179
26932 * target.def (ref_may_alias_errno): New target hook.
26933 * targhooks.h (default_ref_may_alias_errno): Declare.
26934 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26935 (default_ref_may_alias_errno): New function.
26936 * target.h (struct ao_ref_s): Declare.
26937 * tree-ssa-alias.c: Include target.h.
26938 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26939 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26940 (targhooks.o): Likewise.
26941 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26942 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26944 2011-01-14 Richard Guenther <rguenther@suse.de>
26946 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
26948 2011-01-14 Richard Guenther <rguenther@suse.de>
26950 PR tree-optimization/47280
26951 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26952 return CFG changes.
26953 (tree_ssa_forward_propagate_single_use_vars): Deal with
26954 CFG changes from associate_plusminus.
26956 2011-01-14 Richard Guenther <rguenther@suse.de>
26958 PR middle-end/47281
26960 2011-01-11 Richard Guenther <rguenther@suse.de>
26962 PR tree-optimization/46076
26963 * tree-ssa.c (useless_type_conversion_p): Conversions from
26964 unprototyped to empty argument list function types are useless.
26966 2011-01-14 Richard Guenther <rguenther@suse.de>
26968 PR tree-optimization/47286
26969 * tree-ssa-structalias.c (new_var_info): Register variables are global.
26971 2011-01-14 Martin Jambor <mjambor@suse.cz>
26973 PR middle-end/46823
26974 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26976 2011-01-13 Anatoly Sokolov <aesok@post.ru>
26978 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26979 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26980 * config/xtensa/xtensa.c (xtensa_libcall_value,
26981 xtensa_function_value_regno_p): New functions.
26982 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26984 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
26987 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26989 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26990 New function prototype.
26991 * config/i386/winnt.c (i386_pe_assemble_visibility):
26992 Warn only if attribute was specified by user.
26994 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26997 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
26999 (floatunsdidf2_fcfidu): Ditto.
27001 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27003 * config/s390/s390.c (print_operand_address): Replace 'error' with
27004 'output_operand_lossage'.
27005 (print_operand): Likewise.
27007 2011-01-13 Jeff Law <law@redhat.com>
27009 PR rtl-optimization/39077
27010 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27011 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27012 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27013 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27014 * gcse.c (prune_insertions_deletions): New function.
27015 (compute_pre_data): Use it.
27017 2011-01-13 Dodji Seketeli <dodji@redhat.com>
27020 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27022 (prune_unused_types_mark): Use it.
27024 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
27026 PR rtl-optimization/45352
27027 * sel-sched.c: Update copyright years.
27028 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27029 in the advancing loop when we have issued issue_rate insns.
27031 2011-01-12 Richard Henderson <rth@redhat.com>
27033 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27034 (TARGET_MD_ASM_CLOBBERS): New.
27036 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27037 (TARGET_DELEGITIMIZE_ADDRESS): New.
27039 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27040 (clzsi2, *bsch): New patterns.
27042 * config/mn10300/mn10300.md (INT): New mode iterator.
27043 (*mov<INT>_clr): New pattern, and peep2 to generate it.
27045 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27046 flag_split_wide_types.
27048 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27049 (mn10300_trampoline_init): Rewrite without a template, an immediate
27050 load and a direct branch.
27051 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27053 2011-01-12 Anatoly Sokolov <aesok@post.ru>
27055 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27056 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27057 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27058 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27060 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
27063 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27066 2011-01-12 Jan Hubicka <jh@suse.cz>
27069 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27070 (PLUGIN_COND_CLOSE): New macro.
27071 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27073 2011-01-12 Richard Guenther <rguenther@suse.de>
27076 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27077 register variables in a MEM_REF.
27079 2011-01-12 Joseph Myers <joseph@codesourcery.com>
27081 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27082 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27083 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27084 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27085 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27086 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27087 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27088 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27089 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27090 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27091 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27092 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27093 * config/gnu-user.h: New. Copied from linux.h.
27094 (LINUX_TARGET_STARTFILE_SPEC): Rename to
27095 GNU_USER_TARGET_STARTFILE_SPEC.
27096 (LINUX_TARGET_ENDFILE_SPEC): Rename to
27097 GNU_USER_TARGET_ENDFILE_SPEC.
27098 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27099 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27100 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27101 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27102 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27103 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27104 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27105 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27106 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27107 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27108 * config/arm/linux-eabi.h (CC1_SPEC): Use
27109 GNU_USER_TARGET_CC1_SPEC.
27110 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27111 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27112 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27113 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27114 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27115 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27116 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27117 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27119 2011-01-12 Richard Guenther <rguenther@suse.de>
27122 * doc/invoke.texi (ffast-math): Document it is turned on
27125 2011-01-12 Jan Hubicka <jh@suse.cz>
27127 PR tree-optimization/47233
27128 * opts.c (common_handle_option): Disable ipa-reference with profile
27131 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27133 * c-parser.c (c_parser_objc_at_property_declaration): Improved
27136 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27138 * c-parser.c (c_lex_one_token): Updated and reindented some
27139 comments. No changes in code.
27141 2011-01-11 Ian Lance Taylor <iant@google.com>
27143 * godump.c (go_output_var): Don't output the variable if there is
27144 already a type with the same name.
27146 2011-01-11 Ian Lance Taylor <iant@google.com>
27148 * godump.c (go_format_type): Don't generate float80.
27150 2011-01-11 Richard Henderson <rth@redhat.com>
27152 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27153 declaration. Rewrite for both speed and size.
27154 (mn10300_address_cost_1): Remove.
27155 (mn10300_register_move_cost): New.
27156 (mn10300_memory_move_cost): New.
27157 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
27158 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
27159 extensions, shifts, BSWAP, CLZ.
27160 (mn10300_wide_const_load_uses_clr): Remove.
27161 (TARGET_REGISTER_MOVE_COST): New.
27162 (TARGET_MEMORY_MOVE_COST): New.
27163 * config/mn10300/mn10300-protos.h: Update.
27164 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27166 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27167 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27168 * config/mn10300/mn10300-protos.h: Update.
27169 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27170 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27171 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27172 (*test_int_bitfield, *test_byte_bitfield): Remove.
27173 (*bit_test, *subreg_bit_test): Remove.
27174 * config/mn10300/predicates.md (const_8bit_operand): Remove.
27176 * config/mn10300/constraints.md ("c"): Rename from "A".
27177 ("A", "D"): New constraint letters.
27178 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27179 (fmssf4, fnmasf4, fnmssf4): Likewise.
27181 * config/mn10300/mn10300.md (isa): New attribute.
27182 (enabled): New attribute.
27184 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27185 (abssf2, negsf2): Define only for hardware fp.
27186 (sqrtsf2): Reformat.
27187 (addsf3, subsf3, mulsf3): Merge expander and insn.
27189 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27190 (DEBUGGER_AUTO_OFFSET): Remove.
27191 (DEBUGGER_ARG_OFFSET): Remove.
27193 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27194 Emit register stores with the same offsets as the hardware.
27195 (mn10300_store_multiple_operation): Don't check that the register
27196 save offsets are monotonic.
27197 * config/mn10300/mn10300-protos.h: Update.
27199 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27201 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27202 in terms of the value on the stack, not the MDR register.
27204 2011-01-11 Jan Hubicka <jh@suse.cz>
27208 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27209 (symbol_alias_set_destroy, symbol_alias_set_contains,
27210 propagate_aliases_backward): Declare.
27211 * lto-streamer-out.c (struct sets): New sturcture.
27212 (trivally_defined_alias): New function.
27213 (output_alias_pair_p): Rewrite.
27214 (output_unreferenced_globals): Fix output of alias pairs.
27215 (produce_symtab): Likewise.
27216 * ipa.c (function_and_variable_visibility): Set weak alias destination
27218 * varasm.c (symbol_alias_set_t): Remove.
27219 (symbol_alias_set_destroy): Export.
27220 (propagate_aliases_forward, propagate_aliases_backward): New functions
27222 (compute_visible_aliases): ... this one; remove.
27223 (trivially_visible_alias): New
27224 (trivially_defined_alias): New.
27225 (remove_unreachable_alias_pairs): Rewrite.
27226 (finish_aliases_1): Reorganize code checking if alias is defined.
27227 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27230 2011-01-11 Richard Guenther <rguenther@suse.de>
27232 PR tree-optimization/46076
27233 * tree-ssa.c (useless_type_conversion_p): Conversions from
27234 unprototyped to empty argument list function types are useless.
27236 2011-01-11 Richard Guenther <rguenther@suse.de>
27238 PR middle-end/45235
27239 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27240 volatile MEMs as MEM_READONLY_P.
27242 2011-01-11 Richard Guenther <rguenther@suse.de>
27244 PR tree-optimization/47239
27245 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27247 2011-01-11 Jeff Law <law@redhat.com>
27249 PR tree-optimization/47086
27250 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27251 IVs from statements that might throw.
27253 2011-01-10 Jan Hubicka <jh@suse.cz>
27256 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27258 2011-01-10 Jan Hubicka <jh@suse.cz>
27261 * profile.c (read_profile_edge_counts): Ignore profile inconistency
27262 when correcting profile.
27264 2011-01-10 Jan Hubicka <jh@suse.cz>
27267 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27268 DECL_FINI_PRIORITY.
27269 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27270 Restore DECL_FINI_PRIORITY.
27272 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27274 * doc/gimple.texi: Fix quoting of multi-word return values in
27275 @deftypefn statements. Ensure presence of return value. Wrap
27276 overlong @deftypefn lines.
27277 (is_gimple_operand, is_gimple_min_invariant_address): Remove
27278 descriptions of removed functions.
27279 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27280 of multi-word return value in @deftypefn statement.
27282 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27284 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27285 (Conditional Expressions, Logical Operators)
27286 (Statement and operand traversals): Do not indent smallexample
27287 code. Fix duplicate function argument in example.
27289 2011-01-10 Jeff Law <law@redhat.com>
27291 PR tree-optimization/47141
27292 * ipa-split.c (split_function): Handle case where we are
27293 returning a value and the return block has a virtual operand phi.
27295 2011-01-10 Jan Hubicka <jh@suse.cz>
27297 PR tree-optimization/47234
27298 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27299 (pass_feedback_split_functions): Declare.
27300 * passes.c (init_optimization_passes): Add ipa-split as subpass of
27302 * ipa-split.c (gate_split_functions): Update comments; disable
27303 split-functions for profile_arc_flag and branch_probabilities.
27304 (gate_feedback_split_functions): New function.
27305 (execute_feedback_split_functions): New function.
27306 (pass_feedback_split_functions): New global var.
27308 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
27311 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27312 calling gimple_call_set_cannot_inline.
27314 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
27316 * config/darwin-sections.def: Remove unused section.
27318 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
27321 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27323 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
27326 * c-parser.c (c_parser_declaration_or_fndef): Improved
27329 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
27331 * config/i386/winnt.c (i386_pe_start_function): Make sure
27332 to switch back to function's section.
27334 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
27338 * plugin.c: Move include of dlfcn.h from here...
27339 * system.h: ... to here.
27341 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27343 * doc/cpp.texi (C++ Named Operators): Fix markup for header
27345 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27346 two extra empty pages in PDF output.
27348 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
27351 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27352 for error recovery purposes behave as if it was not specified so
27353 that the default type is usd.
27355 2011-01-07 Jan Hubicka <jh@suse.cz>
27357 PR tree-optmization/46469
27358 * ipa.c (function_and_variable_visibility): Clear needed flags on
27359 nodes with external decls; handle weakrefs merging correctly.
27361 2011-01-07 Joseph Myers <joseph@codesourcery.com>
27363 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27366 2011-01-07 Jan Hubicka <jh@suse.cz>
27368 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27369 and no longer claim that gold is required for linker plugin.
27370 * configure: Regenerate.
27371 * gcc.c (PLUGIN_COND): New macro.
27372 (LINK_COMMAND_SPEC): Use it.
27373 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27374 * config.in (HAVE_LTO_PLUGIN): New.
27375 * configure.ac (--with-lto-plugin): New parameter; autodetect
27378 2011-01-07 Jan Hubicka <jh@suse.cz>
27380 PR tree-optimization/46367
27381 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27382 when we can update original.
27383 (cgraph_mark_inline_edge): Sanity check.
27384 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27386 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27388 * config/spu/spu.h (ASM_COMMENT_START): Define.
27390 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
27393 * gcc.c (%>S): New.
27394 (SWITCH_KEEP_FOR_GCC): Likewise.
27395 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27396 (do_spec_1): Handle "%>".
27398 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27400 2011-01-07 Jakub Jelinek <jakub@redhat.com>
27403 * config/i386/i386.c (ix86_delegitimize_address): If
27404 simplify_gen_subreg fails, return orig_x.
27407 * value-prof.c (gimple_stringop_fixed_value): Handle
27408 lhs of the call properly.
27410 2011-01-07 Jan Hubicka <jh@suse.cz>
27413 * lto-opt.c (lto_reissue_options): Set flag_shlib.
27415 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
27417 * target.def (function_switched_text_sections): New hook.
27418 * doc/tm.texi: Regenerated.
27419 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27420 * final.c (default_function_switched_text_sections): New.
27421 (final_scan_insn): Call function_switched_text_sections when a
27422 mid-function section change occurs.
27423 * output.h (default_function_switched_text_sections): Declare.
27424 * config/darwin-protos.h (darwin_function_switched_text_sections):
27426 * config/darwin.c (darwin_function_switched_text_sections): New.
27427 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27429 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
27431 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
27432 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
27433 the secondary code fragment when outputting for DWARF == 2.
27435 2011-01-07 Anatoly Sokolov <aesok@post.ru>
27437 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27438 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27440 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27441 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27443 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
27446 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27447 when it is not empty.
27449 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
27452 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27453 (case ${target}): Add btver1.
27454 * config/i386/driver-i386.c (host_detect_local_cpu): Let
27455 -march=native recognize btver1 processors.
27456 * config/i386/i386-c.c (ix86_target_macros_internal): Add
27457 btver1 def_and_undef
27458 * config/i386/i386.c (struct processor_costs btver1_cost): New
27460 (m_BTVER1): New definition.
27461 (m_AMD_MULTIPLE): Includes m_BTVER1.
27462 (initial_ix86_tune_features): Add btver1 tune.
27463 (processor_target_table): Add btver1 entry.
27464 (static const char *const cpu_names): Add btver1 entry.
27465 (software_prefetching_beneficial_p): Add btver1.
27466 (ix86_option_override_internal): Add btver1 instruction sets.
27467 (ix86_issue_rate): Add btver1.
27468 (ix86_adjust_cost): Add btver1.
27469 * config/i386/i386.h (TARGET_BTVER1): New definition.
27470 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27471 (enum processor_type): Add PROCESSOR_BTVER1.
27472 * config/i386/i386.md (define_attr "cpu"): Add btver1.
27474 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27477 * config/i386/i386.c (legitimize_tls_address)
27478 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27479 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27480 (tls_initial_exec_64_sun): New pattern.
27482 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
27484 * doc/invoke.texi (Overall Options): Improve wording and markup
27485 of the description of -wrapper.
27487 2011-01-06 Joseph Myers <joseph@codesourcery.com>
27489 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27490 rdynamic, threads): New Driver options.
27492 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27495 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27496 if coming from .tdata.
27497 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27499 2011-01-06 Jan Hubicka <jh@suse.cz>
27502 * collect2.c (main): Do not enable LTOmode when plugin is active.
27504 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27507 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27508 --version output if supported.
27509 * configure: Regenerate.
27511 2011-01-06 Joseph Myers <joseph@codesourcery.com>
27513 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27516 2011-01-06 Jakub Jelinek <jakub@redhat.com>
27519 * c-convert.c (convert): When converting a complex expression
27520 other than COMPLEX_EXPR to a different complex type, ensure
27521 c_save_expr is called instead of save_expr, unless in_late_binary_op.
27522 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27523 when converting COMPLEX_TYPE.
27525 2011-01-06 Ira Rosen <irar@il.ibm.com>
27527 PR tree-optimization/47139
27528 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27529 only the last reduction value is used outside the loop. Update
27532 2011-01-05 Joseph Myers <joseph@codesourcery.com>
27534 * config/rtems.opt: New.
27535 * config.gcc (*-*-rtems*): Use rtems.opt.
27537 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
27539 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27540 processors do not support 3DNow instructions.
27542 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27544 * config/spu/spu.c (spu_option_override): Set parameter
27545 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27547 2011-01-05 Jan Hubicka <jh@suse.cz>
27549 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27550 at the command line.
27552 2011-01-05 Martin Jambor <mjambor@suse.cz>
27555 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27556 deltas on streamed outgoing edges.
27557 (output_node_opt_summary): Output info for outgoing edges only when
27558 the node is in new parameter set.
27559 (output_cgraph_opt_summary): New parameter set, passed to the two
27560 aforementioned functions. Update its forward declaration and its
27563 2011-01-05 Tom Tromey <tromey@redhat.com>
27565 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27566 operator to c_finish_omp_atomic.
27567 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27568 (build_unary_op): Update.
27569 (build_modify_expr): Update.
27570 (build_asm_expr): Update.
27572 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27574 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27575 newly inserted insns.
27576 (pad_bb): Likewise.
27577 (spu_emit_branch_hint): Likewise.
27578 (insert_hbrp_for_ilb_runout): Likewise.
27579 (spu_machine_dependent_reorg): Call df_finish_pass after
27580 schedule_insns returns.
27582 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27584 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27586 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
27588 PR tree-optimization/47005
27589 * tree-sra.c (struct access): Add 'non_addressable' bit.
27590 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27591 (decide_one_param_reduction): Return 0 if the parameter is passed by
27592 reference and one of the accesses in the group is non_addressable.
27594 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
27596 PR tree-optimization/47056
27597 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27598 (mark_load): Likewise. Handle FUNCTION_DECL specially.
27599 (mark_store): Likewise. Pass STMT to ipa_record_reference.
27601 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
27603 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27604 initializer. Skip view conversions from aggregate types.
27606 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
27609 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27611 2011-01-04 Philipp Thomas <pth@suse.de>
27613 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27616 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27618 * function.c (thread_prologue_and_epilogue_insns): Do not crash
27619 on empty epilogue sequences.
27621 2011-01-04 Joseph Myers <joseph@codesourcery.com>
27623 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27624 non-static): New Driver options.
27626 2011-01-04 Jie Zhang <jie@codesourcery.com>
27629 * gcc.c (default_compilers[]): Set combinable field to 0
27630 for all assembly languages.
27632 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
27634 * config/mips/loongson3a.md: New file.
27635 * config/mips/mips.md: Include loongson3a.md.
27636 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27639 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
27641 PR middle-end/47017
27642 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27643 instead of convert_memory_address_addr_space on the base expression.
27645 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27647 * config/spu/spu.c (spu_option_override): Update error text
27648 for bad -march= / -mtune= values.
27650 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27652 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27653 if branch-hint optimization will be performed.
27655 2011-01-03 Jakub Jelinek <jakub@redhat.com>
27657 PR tree-optimization/47148
27658 * ipa-split.c (split_function): Convert arguments to
27659 DECL_ARG_TYPE if possible.
27661 PR tree-optimization/47155
27662 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27663 when computing uns.
27665 PR rtl-optimization/47157
27666 * combine.c (try_combine): If undobuf.other_insn becomes
27667 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27668 and set *new_direct_jump_p too.
27670 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
27672 PR tree-optimization/47021
27673 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27675 2011-01-03 Jakub Jelinek <jakub@redhat.com>
27677 * gcc.c (process_command): Update copyright notice dates.
27678 * gcov.c (print_version): Likewise.
27679 * gcov-dump.c (print_version): Likewise.
27680 * mips-tfile.c (main): Likewise.
27681 * mips-tdump.c (main): Likewise.
27683 2011-01-03 Martin Jambor <mjambor@suse.cz>
27685 PR tree-optimization/46801
27686 * tree-sra.c (type_internals_preclude_sra_p): Check whether
27687 aggregate fields start at byte boundary instead of the bit-field flag.
27689 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
27692 * gcc.c (main): Revert revision 168407.
27694 2011-01-03 Martin Jambor <mjambor@suse.cz>
27696 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27698 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27700 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27701 vector optab to expand vector/scalar shift, update gimple to vector.
27703 2011-01-03 Martin Jambor <mjambor@suse.cz>
27705 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27708 2011-01-03 Martin Jambor <mjambor@suse.cz>
27710 PR tree-optimization/46984
27711 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27713 (cgraph_create_indirect_edge): Fixed line length.
27714 (cgraph_indirect_call_info): Declare.
27715 (cgraph_make_edge_direct) Update declaration.
27716 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27717 (cgraph_create_indirect_edge): Use it.
27718 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
27720 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27721 the new thunk_delta representation.
27722 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27724 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27725 (ipa_read_indirect_edge_info): Likewise.
27726 * lto-cgraph.c (output_edge_opt_summary): New function.
27727 (output_node_opt_summary): Call it on all outgoing edges.
27728 (input_edge_opt_summary): New function.
27729 (input_node_opt_summary): Call it on all outgoing edges.
27731 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
27734 * gcc.c (main): Don't check have_o when settting combine_inputs.
27736 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
27738 * regrename.c: Add general comment describing the pass.
27739 (struct du_head): Remove 'length' field.
27740 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27741 (regrename_optimize): Do not sort chains. Rework comments, add others.
27742 Force renaming to the preferred class (if any) in the first pass and do
27743 not consider registers that belong to it in the second pass.
27744 (create_new_chain): Do not set 'length' field.
27745 (scan_rtx_reg): Likewise.
27747 2011-01-02 Jakub Jelinek <jakub@redhat.com>
27749 PR tree-optimization/47140
27750 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27751 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27752 to bit_value_binop.
27754 PR rtl-optimization/47028
27755 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27756 parm_birth_insn instead of at the beginning of first bb.
27758 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
27760 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27761 Remove the word "see" before "@pxref".
27762 * doc/rtl.texi: Remove the word "see" before "@pxref".
27764 2011-01-01 Jan Hubicka <jh@suse.cz>
27766 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27769 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
27772 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27775 Copyright (C) 2011 Free Software Foundation, Inc.
27777 Copying and distribution of this file, with or without modification,
27778 are permitted in any medium without royalty provided the copyright
27779 notice and this notice are preserved.