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.
32 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
33 and --with-tune options.
35 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
38 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
39 that contain global register variable.
41 2011-09-05 Richard Guenther <rguenther@suse.de>
43 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
45 2011-09-05 Richard Guenther <rguenther@suse.de>
47 * stor-layout.c (layout_type): Use size_binop for array size
50 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
52 * config/avr/avr.h (progmem_section): Remove Declaration.
53 * config/avr/avr.c (progmem_section): Make static and rename to
54 progmem_swtable_section.
55 (avr_output_addr_vec_elt): No need to switch sections.
56 (avr_asm_init_sections): Use output_section_asm_op as section
57 callback for progmem_swtable_section.
58 (avr_output_progmem_section_asm_op): Remove Function.
59 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
60 (avr_asm_function_rodata_section): New static Function.
61 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
62 alignment 2**1 for jump tables.
64 2011-09-04 Jan Hubicka <jh@suse.cz>
66 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
67 parameter is SSA name.
69 2011-09-04 Richard Guenther <rguenther@suse.de>
72 2011-08-31 Richard Guenther <rguenther@suse.de>
74 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
77 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
80 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
82 2011-09-04 Jakub Jelinek <jakub@redhat.com>
83 Ira Rosen <ira.rosen@linaro.org>
85 PR tree-optimization/50208
86 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
87 argument. Check that def_stmt is inside the loop.
88 (vect_recog_widen_mult_pattern): Update calls to
89 vect_handle_widen_mult_by_cons.
90 (vect_operation_fits_smaller_type): Check that def_stmt is
93 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
95 * tree-vectorizer.c (vect_print_dump_info): Print line
96 number when dumping to a file.
97 (vectorize_loops): Add new messages to dump file.
99 2011-09-03 Martin Jambor <mjambor@suse.cz>
101 * ipa-prop.h (ipa_jump_func_t): New typedef.
102 (struct ipa_edge_args): Removed field argument_count, field
103 jump_functions turned into a vector.
104 (ipa_set_cs_argument_count): Removed.
105 (ipa_get_cs_argument_count): Updated to work on vectors.
106 (ipa_get_ith_jump_func): Likewise.
107 * ipa-prop.c (ipa_count_arguments): Removed.
108 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
109 jump functions. Update caller.
110 (compute_pass_through_member_ptrs): Likewise.
111 (compute_cst_member_ptr_arguments): Likewise.
112 (ipa_compute_jump_functions_for_edge): Get number of arguments from
113 the statement, allocate vector.
114 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
115 (duplicate_ipa_jump_func_array): Removed.
116 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
117 (ipa_read_node_info): Allocate vector.
119 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
122 * config/pa/pa.md (return): Define "return" insn pattern.
123 (epilogue): Use it when no epilogue is needed.
124 * config/pa/pa.c (pa_can_use_return_insn): New function.
125 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
127 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
129 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
130 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
131 Force at least BITS_PER_UNIT alignment on the new variable.
133 2011-09-02 Gary Funck <gary@intrepid.com>
135 * opts.c (print_specific_help): Fix off-by-one compare in
137 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
138 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
139 Increase by +5 to allow for more languages.
140 * optc-gen.awk: Generate #if that ensures that the number of
141 languages is within the implementation-defined limit.
143 2011-09-02 Michael Matz <matz@suse.de>
146 * ipa-split.c (split_function): Call add_referenced_var.
148 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
149 (cond_if_else_store_replacement_1): Ditto.
150 * tree-ssa-pre.c (get_representative_for): Ditto.
151 (create_expression_by_pieces): Ditto.
152 (insert_into_preds_of_block): Ditto.
153 * tree-sra.c (create_access_replacement): Ditto.
154 (get_replaced_param_substitute): Ditto.
156 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
158 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
160 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
161 (l1w, s1w, l2w, s2w): Define in the main automaton.
162 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
164 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
165 (c6x_unit_names): Add the new units.
166 (c6x_unit_codes): New static array.
167 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
168 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
169 UNIT_QID_SIDE_OFFSET): New macros.
170 (RESERVATION_S2): Adjust value.
171 (c6x_option_override): Compute c6x_unit_codes.
172 (assign_reservations): Take the unit_mask of the last instruction
173 into account. Detect floating point reservations by looking for
174 the new units. Don't assign reservations if the field is already
176 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
177 (init_sched_state): Initialize it.
178 (c6x_clear_sched_context): Free it.
179 (insn_set_clock): Clear reservation.
180 (prev_cycle_state): New static variable.
181 (c6x_init_sched_context): Save it.
182 (c6x_sched_init): Allocate space for it and clear it.
183 (c6x_sched_dfa_pre_cycle_insn): New static function.
184 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
185 (c6x_variable_issue): Only record units in the unit_mask that
186 were not set at the start of the cycle.
187 (c6x_variable_issue): Compute and store the unit_mask from the
189 (reorg_split_calls): Ensure the new information remains correct.
190 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
191 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
192 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
193 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
194 Add special reservations.
195 * config/c6x/c6x-sched.md: Regenerate.
197 2011-09-02 Martin Jambor <mjambor@suse.cz>
199 * ipa-prop.h (ipa_node_params): Removed fields
200 called_with_var_arguments and node_versionable.
201 (ipa_set_called_with_variable_arg): Removed.
202 (ipa_is_called_with_var_arguments): Likewise.
203 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
204 (determine_versionability): Do not check for type attributes and va
205 builtins. Record versionability into inline summary.
206 (initialize_node_lattices): Do not check
207 ipa_is_called_with_var_arguments.
208 (propagate_constants_accross_call): Likewise, ignore arguments we do
209 not have PARM_DECLs for, set variable flag for parameters that were
211 (create_specialized_node): Dump info that we cannot change signature.
212 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
214 (ipa_make_edge_direct_to_target): Likewise.
215 (ipa_update_after_lto_read): Likewise.
216 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
217 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
220 2011-09-02 Richard Guenther <rguenther@suse.de>
222 PR tree-optimization/27460
224 * doc/md.texi (vcond): Document.
225 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
226 optab with two modes.
227 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
228 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
229 (vcond_optab): Adjust.
230 (vcondu_optab): Likewise.
231 (expand_vec_cond_expr_p): Adjust prototype.
232 * optabs.c (get_vcond_icode): Adjust.
233 (expand_vec_cond_expr_p): Likewise.
234 (expand_vec_cond_expr): Likewise.
235 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
237 (vectorizable_condition): Allow differing types for comparison
239 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
241 * config/i386/sse.md (vcond<mode>): Split to
242 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
243 vcond<V_128:mode><VI124_128:mode> and
244 vcondu<V_128:mode><VI124_128:mode>.
245 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
246 (vconduv2di): Likewise.
247 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
248 (vcondu<mode>): Likewise.
249 * config/ia64/vect.md (vcond<mode>): Likewise.
250 (vcondu<mode>): Likewise.
251 (vcondv2sf): Likewise.
252 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
253 * config/rs6000/paired.md (vcondv2sf): Likewise.
254 * config/rs6000/vector.md (vcond<mode>): Likewise.
255 (vcondu<mode>): Likewise.
256 * config/spu/spu.md (vcond<mode>): Likewise.
257 (vcondu<mode>): Likewise.
259 2011-09-02 Richard Guenther <rguenther@suse.de>
261 * pretty-print.h (pp_unsigned_wide_integer): New.
262 * tree-pretty-print.c (dump_generic_node): Print unsigned
263 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
265 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
268 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
269 valid CONST_VECTOR operands.
270 (rs6000_expand_vector_init): Likewise.
272 2011-09-02 Martin Jambor <mjambor@suse.cz>
274 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
275 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
276 BINFO_VTABLE. Parameter delta removed, all callers updated.
277 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
279 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
281 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
282 handling of thunk_delta.
283 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
284 (devirtualization_time_bonus): Do not handle thunk deltas.
285 (ipcp_discover_new_direct_edges): Likewise.
286 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
287 (try_make_edge_direct_simple_call): Likewise.
288 (try_make_edge_direct_virtual_call): Likewise.
289 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
290 parameter set as unused.
291 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
292 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
293 parameter set as unused.
294 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
295 (input_edge_opt_summary): Likewise.
296 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
297 BINFO_VIRTUALS at all.
298 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
300 2011-09-02 Richard Guenther <rguenther@suse.de>
302 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not
304 (ccp_fold_stmt): Continue replacing args when folding
307 2011-08-31 Richard Guenther <rguenther@suse.de>
309 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
310 handling here, from ...
311 (expand_expr_real_1): ... here.
312 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
314 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
315 a GIMPLE_TERNARY_RHS.
316 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
317 and VEC_COND_EXPR here ...
318 (verify_gimple_assign_single): ... not here.
319 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
320 * tree-object-size.c (cond_expr_object_size): Adjust.
321 (collect_object_sizes_for): Likewise.
322 * tree-scalar-evolution.c (interpret_expr): Don't handle
324 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and
326 (ssa_forward_propagate_and_combine): Adjust.
327 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
329 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
330 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
331 * tree-vect-stmt.c (vectorizable_condition): Likewise.
332 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
333 (extract_range_from_assignment): Likewise.
335 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
337 * config/i386/i386.md: Use (match_test ...) for attribute tests.
338 * config/i386/mmx.md: Likewise.
339 * config/i386/sse.md: Likewise.
340 * config/i386/predicates.md (call_insn_operand): Use
341 (not (match_test "...")) instead of (match_test "!...")
342 * config/i386/constraints.md (w): Likewise.
344 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
346 * doc/md.texi: Describe the use of match_tests in attribute tests.
347 * rtl.def (MATCH_TEST): Update commentary.
348 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
349 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
351 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
353 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
354 (attr_string): Use copy_md_ptr_loc.
356 2011-08-31 Martin Jambor <mjambor@suse.cz>
359 * ipa-inline-analysis.c (compute_inline_parameters): Set
360 can_change_signature of noes with typde attributes.
361 * ipa-split.c (split_function): Do not skip any arguments if
362 can_change_signature is set.
364 2011-08-31 Martin Jambor <mjambor@suse.cz>
366 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
369 2011-08-31 Richard Guenther <rguenther@suse.de>
371 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
374 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
376 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
378 2011-08-31 Tom de Vries <tom@codesourcery.com>
381 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
382 * tree-ssa-ccp.c (params.h): Include.
383 (fold_builtin_alloca_for_var): New function.
384 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
386 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
388 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
391 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
393 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
396 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
398 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
401 2011-08-30 Richard Guenther <rguenther@suse.de>
404 * gimple.h (maybe_fold_offset_to_address): Remove.
405 (maybe_fold_offset_to_reference): Likewise.
406 (maybe_fold_stmt_addition): Likewise.
407 (may_propagate_address_into_dereference): Likewise.
408 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
410 * gimple-fold.c (canonicalize_constructor_val): Likewise.
411 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
413 (may_propagate_address_into_dereference): Remove.
414 (maybe_fold_offset_to_array_ref): Likewise.
415 (maybe_fold_offset_to_reference): Likewise.
416 (maybe_fold_offset_to_address): Likewise.
417 (maybe_fold_stmt_addition): Likewise.
418 (fold_gimple_assign): Do not reconstruct array references but
419 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
421 (gimple_fold_stmt_to_constant_1): Likewise.
422 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
423 * gimplify.c (gimplify_conversion): Likewise.
424 (gimplify_expr): Likewise.
426 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
428 * config/i386/fmaintrin.h: New.
429 * config.gcc: Add fmaintrin.h.
431 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
432 <IX86_BUILTIN_VFMADDSD3>: Likewise.
433 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
434 (*fmai_fmadd_<mode>): Likewise.
435 (*fmai_fmsub_<mode>): Likewise.
436 (*fmai_fnmadd_<mode>): Likewise.
437 (*fmai_fnmsub_<mode>): Likewise.
438 * config/i386/immintrin.h: Add fmaintrin.h.
440 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
442 * genautomata.c (NO_COMB_OPTION): New macro.
443 (no_comb_flag): New static variable.
444 (gen_automata_option): Handle NO_COMB_OPTION.
445 (comb_vect_p): False if no_comb_flag.
446 (add_vect): Move computation of min/max values. Return early if
448 * doc/md.texi (automata_option): Document no-comb-vect.
450 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
451 "__x86.get_pc_thunk".
453 * bb-reorder.c (insert_section_boundary_note): Only do it if
454 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
456 2011-08-30 Christian Bruel <christian.bruel@st.com>
458 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
461 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
463 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
464 to off. Document switch.
465 * doc/invoke.texi (-msave-toc-indirect): Ditto.
467 2011-08-29 Jakub Jelinek <jakub@redhat.com>
469 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
470 conditionals and comments inside macro arguments.
472 20011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
473 Richard Guenther <rguenther@suse.de>
475 * tree.h (constant_boolean_node): Adjust prototype.
476 * fold-const.c (fold_convert_loc): Move aggregate conversion
478 (constant_boolean_node): Make value parameter boolean, add
479 vector type handling.
480 (fold_unary_loc): Use constant_boolean_node.
481 (fold_binary_loc): Preserve types properly when folding
482 COMPLEX_EXPR <__real x, __imag x>.
483 * gimplify.c (gimplify_expr): Handle vector comparison.
484 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
486 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
489 2011-08-29 Jakub Jelinek <jakub@redhat.com>
492 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
493 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
494 (verify_rtl_sharing): Likewise and verify_rtx_sharing
496 (unshare_all_rtl_in_chain): For CALL_INSNs
497 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
499 2011-08-29 Richard Guenther <rguenther@suse.de>
501 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
502 on the built ADDR_EXPR.
504 2011-08-29 Jakub Jelinek <jakub@redhat.com>
507 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
508 before adding ENTRY_VALUE to val->locs.
510 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
513 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
516 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
518 * doc/rtl.texi (simple_return): Document.
519 (parallel, PATTERN): Here too.
520 * doc/md.texi (return): Mention it's allowed to expand to simple_return
522 (simple_return): Document standard pattern.
523 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
524 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
525 * reorg.c (function_return_label, function_simple_return_label):
526 New static variables, replacing...
527 (end_of_function_label): ... this.
528 (simplejump_or_return_p): New static function.
529 (optimize_skip, steal_delay_list_from_fallthrough,
530 fill_slots_from_thread): Use it.
531 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
532 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
533 (find_end_label): Take a new arg which is one of the two return
534 rtxs. Depending on which, set either function_return_label or
535 function_simple_return_label. All callers changed.
536 (make_return_insns): Make both kinds.
537 (dbr_schedule): Adjust for two kinds of end labels.
538 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
539 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
540 (gen_expand, gen_split): Use ANY_RETURN_P.
541 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
542 * rtl.def (SIMPLE_RETURN): New code.
543 * ifcvt.c (find_if_case_1): Be more careful about
544 redirecting jumps to the EXIT_BLOCK.
545 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
546 returnjump_p_1): Handle SIMPLE_RETURNs.
547 * print-rtl.c (print_rtx): Likewise.
548 * rtl.c (copy_rtx): Likewise.
549 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
550 * combine.c (simplify_set): Likewise.
551 * resource.c (find_dead_or_set_registers, mark_set_resources):
553 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
554 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
555 (init_emit_regs): Initialize simple_return_rtx.
556 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
557 force_nonfallthru_and_redirect.
558 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
559 (GR_SIMPLE_RETURN): New enum value.
560 (simple_return_rtx): New macro.
561 * basic-block.h (force_nonfallthru_and_redirect): Adjust
563 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
564 argument. All callers changed. Be careful about what kinds of
565 returnjumps to generate.
566 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
567 ix86_pad_short_function): Likewise.
568 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
570 * config/mips/mips.md (any_return): New code_iterator.
571 (optab): Add cases for return and simple_return.
572 (return): Expand to a simple_return.
573 (simple_return): New pattern.
574 (*<optab>, *<optab>_internal for any_return): New patterns.
575 (return_internal): Remove.
576 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
577 a simple_return_internal.
579 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
582 (vec_extract_lo_<mode>): Prevent both operands in memory.
583 (vec_extract_lo_v16hi): Ditto.
584 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
586 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
588 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
589 (*sse2_mulv4si3): Ditto.
591 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
594 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
597 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
598 when all outputs are unused.
599 (sse4_2_pcmpistr): Ditto.
601 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
603 * config/i386/i386.md (round<mode>2): New expander.
604 * config/i386/i386.c (enum ix86_builtins): Add
605 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
606 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
608 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
609 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
611 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
614 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
615 only when TARGET_C99_FUNCTIONS.
616 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
617 <BUILT_IN_RINT{,F,L}>: Ditto.
619 2011-08-26 Michael Matz <matz@suse.de>
620 Jakub Jelinek <jakub@redhat.com>
623 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
624 don't call strlen twice, use memcpy.
626 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
628 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
629 * config/i386/bmiintrin.h: Likewise.
630 * config/i386/lzcntintrin.h: Likewise.
632 * config/i386/immintrin.h: Include <lzcntintrin.h>,
633 <bmiintrin.h> and <bmi2intrin.h>.
635 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
638 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
639 * configure: Regenerate.
641 2011-08-26 Jakub Jelinek <jakub@redhat.com>
644 * c-typeck.c (c_process_expr_stmt): Skip over nops and
645 call mark_exp_read even if exprv is ADDR_EXPR.
647 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
649 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
650 to df_set_dead_notes_for_mw.
652 2011-08-26 Richard Guenther <rguenther@suse.de>
654 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
656 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
657 Tom de Vries <tom@codesourcery.com>
659 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
660 (struct ivopts_data): Add loop_single_exit_p field.
661 (niter_for_exit): Change parameter desc_p into return value. Return
662 desc if desc->may_be_zero. Free desc if unused.
663 (niter_for_single_dom_exit): Change return type.
664 (find_induction_variables): Handle changed return type of
665 niter_for_single_dom_exit. Dump may_be_zero.
666 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
667 (set_use_iv_cost): Add and handle comp parameter.
668 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
669 comp argument to set_use_iv_cost.
670 (strip_wrap_conserving_type_conversions, expr_equal_p)
671 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
672 (may_eliminate_iv): Add comp parameter. Handle new return type of
673 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
674 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
675 and may_eliminate_iv.
676 (rewrite_use_compare): Move call to iv_elimination_compare to ...
677 (may_eliminate_iv): Here.
678 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
680 2011-08-26 Tom de Vries <tom@codesourcery.com>
682 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
685 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
687 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
688 (*ior_scc_scc_cmp): Likewise
689 (*and_scc_scc): Likewise.
690 (*and_scc_scc_cmp): Likewise.
691 (*and_scc_scc_nodom): Likewise.
692 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
694 2011-08-26 Jakub Jelinek <jakub@redhat.com>
696 * rtlanal.c (nonzero_bits1): Handle CLRSB.
698 2011-08-26 Richard Guenther <rguenther@suse.de>
700 * expr.c (string_constant): Handle &MEM_REF.
702 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
704 * config/arm/arm.c (struct four_ints): New type.
705 (count_insns_for_constant): Delete function.
706 (find_best_start): Delete function.
707 (optimal_immediate_sequence): New function.
708 (optimal_immediate_sequence_1): New function.
709 (arm_gen_constant): Move constant splitting code to
710 optimal_immediate_sequence.
711 Rewrite constant negation/invertion code.
713 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
715 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
716 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
717 Remove prototype. Remove static function type.
718 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
720 * config/arm/constraints.md (Pj, PJ): New constraints.
722 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
724 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
725 ("cortex_a9_multiply_long"): New and use above. Handle all
727 ("cortex_a9_multiply"): Handle smmul and smmulr.
728 ("cortex_a9_mac"): Handle smmla.
730 2011-08-25 Richard Henderson <rth@redhat.com>
734 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
735 non-constant stack adjutment.
736 * expr.c (find_args_size_adjust): Break out from ...
737 (fixup_args_size_notes): ... here.
738 * rtl.h (find_args_size_adjust): Declare.
740 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
742 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
744 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
745 (*pushdf_rex64): Change Y2 register constraint to x.
746 (*movdf_internal_rex64): Ditto.
747 (*zero_extendsidi2_rex64): Ditto.
748 (*movdi_internal): Change Y2 register constraint to x
749 and update "isa" attribute.
751 (*movdf internal): Ditto.
752 (zero_extendsidi2_1): Ditto.
753 (*truncdfdf_mixed): Ditto.
754 (*truncxfdf2_mixed): Ditto.
755 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
756 register constraint to x.
757 (*movv2sf_internal_rex64): Ditto.
758 (*mov<mode>_internal): Change Y2 register constraint to x
759 and add "isa" attribute.
760 (*movv2sf_internal): Ditto.
761 (*vec_extractv2si_1): Ditto.
762 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
763 constraints to x and update "isa" attribute.
764 (*vec_interleave_highv2df): Change Y3 registerconstraint
765 to x and update "isa" attribute.
766 (*vec_interleave_lowv2df): Ditto.
767 (*vec_concatv2df): Change Y2 register constraint to x and
768 update "isa" attribute.
769 (sse2_loadld): Ditto.
770 (*vec_extractv2di_1): Ditto.
771 (*vec_dupv4si): Ditto.
772 (*vec_dupv2di): Ditto.
773 (*vec_concatv4si): Ditto.
774 (vec_concatv2di): Ditto.
775 * config/i386/constraints.md (Y2): Remove.
779 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
781 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
782 dump_def_use_chain): Don't declare.
783 (mark_conflict, create_new_chain): Move before users.
784 (regrename_optimize): Move to near end of file.
786 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
788 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
789 (secondary_input_reload_class): Remove Prototype.
790 * config/avr/avr.c (byte_immediate_operand): Remove Function.
791 * config/avr/avr.md (setmemhi): Use u8_operand.
792 (strlenhi): Use const0_rtx for comparison.
793 * config/avr/avr.h (avr_reg_order): Remove Declaration.
795 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
797 * config/avr/avr.c (reg_class_tab): Make local to
798 avr_regno_reg_class. Return smallest register class available.
800 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
802 * config/avr/avr.c (STR_PREFIX_P): New Define.
803 (avr_asm_declare_function_name): Use it.
804 (avr_asm_named_section): Use it.
805 (avr_section_type_flags): Use it.
807 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
809 * doc/md.texi (automata_option): Document collapse-ndfa.
810 * genautomata.c (COLLAPSE_OPTION): New macro.
811 (collapse_flag): New static variable.
812 (struct description): New member normal_decls_num.
813 (struct automaton): New members advance_ainsn and collapse_ainsn.
814 (gen_automata_option): Check for COLLAPSE_OPTION.
815 (collapse_ndfa_insn_decl): New static variable.
816 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
817 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
818 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
819 necessary. Use normal_decls_num rather than decls_num, remove
820 test for special decls.
821 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
822 (make_automaton); Likewise. Use the new advance_cycle_insn member
824 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
826 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
827 transition. Create the necessary transitions for it.
828 (create_ainsns): Return void. Take an automaton_t argument, and
829 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
831 (COLLAPSE_NDFA_VALUE_NAME): New macro.
832 (output_tables): Output code to define it.
833 (output_internal_insn_code_evaluation): Output code to accept
834 const0_rtx as collapse-ndfa transition.
835 (output_default_latencies, output_print_reservation_func,
836 output_print_description): Reorganize loops to use normal_decls_num
837 as loop bound; remove special case for advance_cycle_insn_decl.
838 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
839 (check_automata_insn_issues): Check for collapse_ainsn.
840 (expand_automate): Allocate sufficient space. Initialize
843 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
845 * config/avr/avr.md: Fix indentation from r177991.
847 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
849 * regrename.c (struct du_head): Remove member terminated.
850 (create_new_chain): Don't initialize it.
851 (scan_rtx_reg): Don't set or test it, test the open_chains_set
853 (tick, this_tick): New global variables, moved out of
855 (current_id, open_chains, closed_chains, open_chains_set,
856 live_in_chains, live_hard_regs): Reorder declarations.
857 (dump_def_use_chain): Move function earlier in the file.
858 (rename_chains): New static function, broken out of
860 (regrename_optimize): Use it. Remove #if 0'ed code.
862 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
864 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
866 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
869 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
871 2011-08-24 Richard Guenther <rguenther@suse.de>
873 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
874 ref in the basic-block case. Move stripping array-refs
875 to the place we create an access-function for it. Remove
876 bogus stripping down a MEM_REF to its base.
878 2011-08-24 Richard Guenther <rguenther@suse.de>
880 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
881 with -fno-strict-overflow.
883 2011-08-24 Richard Guenther <rguenther@suse.de>
885 * tree-vectorizer.c (vect_print_dump_info): Avoid the
886 file and location clutter when dumping to dump files.
888 2011-08-24 Simon Baldwin <simonb@google.com>
890 * gengtype-state.c (write_state): Remove timestamped header line.
892 2011-08-24 Joseph Myers <joseph@codesourcery.com>
894 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
895 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
896 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
897 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
898 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
899 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
900 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
902 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
904 2011-08-24 Joseph Myers <joseph@codesourcery.com>
906 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
908 2011-08-24 Richard Guenther <rguenther@suse.de>
910 PR tree-optimization/50067
911 * tree-data-ref.c (dr_analyze_indices): Do not add an access
912 function for a MEM_REF base that has no evolution in the loop
913 nest or that is not analyzable.
915 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
917 * ira.c (ira_init_register_move_cost): Check small subclasses
918 through ira_reg_class_max_nregs and ira_available_class_regs.
920 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
922 * config/i386/constraints.md (Yp): New register constraint.
923 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
924 Yp register constraint.
925 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
926 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
927 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
929 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
931 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
933 2011-08-23 Mark Heffernan <meheff@google.com>
936 * common.opt (Wfree-nonheap-object): New option.
937 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
938 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
940 (expand_builtin): Make warning conditional.
942 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
944 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
945 (length_immediate): Handle imulx, ishiftx and rotatex.
948 (enabled): Handle bmi2.
949 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
950 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
951 (*bmi2_umulditi3_1): New insn pattern.
952 (*bmi2_umulsidi3_1): Ditto.
953 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
954 (*bmi2_ashl<mode>3_1): New insn pattern.
955 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
956 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
957 (*bmi2_ashlsi3_1_zext): New insn pattern.
958 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
959 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
960 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
961 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
962 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
964 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
965 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
966 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
968 (*bmi2_rorx<mode>3_1): New insn pattern.
969 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
970 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
971 (*rotatert<mode>3_1 splitter): Ditto.
972 (*bmi2_rorxsi3_1_zext): New insn pattern.
973 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
974 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
975 (*rotatertsi3_1_zext splitter): Ditto.
977 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
979 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
980 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
981 (ix86_handle_option): Handle OPT_mbmi2 case.
982 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
983 (x86_64-*-*): Likewise.
984 * config/i386/bmi2intrin.h: New file.
985 * config/i386/cpuid.h (bit_BMI2): New.
986 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
988 * config/i386/i386-c.c (ix86_target_macros_internal):
989 Conditionally define __BMI2__.
990 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
992 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
993 (print_reg): New code.
994 (ix86_print_operand): Likewise.
995 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
996 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
998 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
999 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1000 IX86_BUILTIN_PEXT64.
1001 * config/i386/i386.h (TARGET_BMI2): New.
1002 * config/i386/i386.md (UNSPEC_PDEP): New.
1003 (UNSPEC_PEXT): Likewise.
1004 (*bmi2_bzhi_<mode>3): Likewise.
1005 (*bmi2_pdep_<mode>3): Likewise.
1006 (*bmi2_pext_<mode>3): Likewise.
1007 * config/i386/i386.opt (mbmi2): New.
1008 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1010 * doc/extend.texi: Document BMI2 built-in functions.
1011 * doc/invoke.texi: Document -mbmi2.
1013 2011-08-23 Jakub Jelinek <jakub@redhat.com>
1016 * simplify-rtx.c (simplify_const_unary_operation): If
1017 op is CONST_INT, don't look at op_mode, but use instead mode.
1018 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1019 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1020 operation and TRUNCATE/ZERO_EXTEND if needed.
1021 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1022 Document that operand mode must be same as operation mode,
1024 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1025 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1026 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1027 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1028 use the mode of operand for the operation and add truncate
1029 or zero_extend around if needed.
1030 * config/c6x/c6x.md (ctzdi2): Likewise.
1031 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1033 2011-08-12 Michael Matz <matz@suse.de>
1035 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1036 (gimple_expand_cfg): Merge alignment info for coalesced pointer
1039 2011-08-23 Richard Guenther <rguenther@suse.de>
1041 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1042 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1043 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1045 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1046 (mem_refs_may_alias_p): Adjust.
1047 * tree-data-ref.h (dr_may_alias_p): Adjust.
1048 * tree-data-ref.c: Include tree-affine.h.
1049 (dr_analyze_indices): Do nothing for the non-loop case.
1050 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
1051 more cases in the non-loop case.
1052 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1053 calls to dr_may_alias_p.
1054 (write_alias_graph_to_ascii_ecc): Likewise.
1055 (write_alias_graph_to_ascii_dot): Likewise.
1056 (build_alias_set_optimal_p): Likewise.
1058 2011-08-23 Richard Guenther <rguenther@suse.de>
1060 PR tree-optimization/50162
1061 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1063 2011-08-23 Richard Guenther <rguenther@suse.de>
1065 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1066 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1067 (create_data_ref): Also dump access functions for the created data-ref.
1069 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
1070 Kirill Yukhin <kirill.yukhin@intel.com>
1073 * config/i386/sse.md (VI_AVX2): New.
1074 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1075 (*<plusminus_insn><mode>3): Ditto.
1076 (<sse2_avx2>_andnot<mode>3): Ditto.
1077 (*andnot<mode>3): Fix order of cond operands.
1078 Add asserts for correct TARGET_xxx.
1079 (*<any_logic:code><mode>3): Ditto.
1081 2011-08-22 Anatoly Sokolov <aesok@post.ru>
1083 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1084 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1085 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1086 regclass argument type to reg_class_t. Change 'max' and 'v' vars
1087 and return types to unsigned char. Use reg_class_contents instead
1089 (TARGET_CLASS_MAX_NREGS): Define.
1091 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
1093 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1094 to make computed_jump_p return true.
1096 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1098 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1099 (PICFLAG_FOR_TARGET): Substitute.
1100 * aclocal.m4: Regenerate.
1101 * configure: Regenerate.
1103 2011-08-22 Dodji Seketeli <dodji@redhat.com>
1105 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1106 after reading in the pch.
1108 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
1110 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1111 * configure: Regenerated.
1113 2011-08-22 Jakub Jelinek <jakub@redhat.com>
1115 PR tree-optimization/50133
1116 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1117 from stmt instead of some statement around gsi.
1120 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1121 innerdecl is a VAR_DECL.
1123 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
1125 * config/i386/avx2intrin.h: New file.
1126 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1127 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1128 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1129 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1130 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1131 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1132 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1133 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1134 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1135 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1136 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1137 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1138 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1139 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1140 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1141 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1142 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1143 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1144 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1145 VOID_FTYPE_PV8SI_V8SI_V8SI,
1146 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1147 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1148 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1149 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1150 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1151 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1152 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1153 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1154 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1155 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1156 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1157 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1158 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1159 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1160 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1161 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1162 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1163 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1164 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1165 V4DI_FTYPE_V4DI_INT_CONVERT,
1166 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1167 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1168 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1169 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1170 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1171 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1172 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1173 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1174 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1175 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1176 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1177 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1178 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1179 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1180 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1181 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1182 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1183 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1184 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1185 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1186 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1187 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1188 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1189 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1190 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1191 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1192 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1193 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1194 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1195 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1196 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1197 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1198 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1199 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1200 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1201 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1202 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1203 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1204 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1205 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1206 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1207 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1208 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1209 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1210 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1211 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1212 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1213 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1214 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1215 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1216 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1217 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1218 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1219 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1220 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1221 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1222 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1223 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1224 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1225 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
1226 IX86_BUILTIN_VBROADCASTSS_PS256,
1227 IX86_BUILTIN_VBROADCASTSD_PD256,
1228 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1229 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1230 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1231 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1232 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1233 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1234 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1235 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1236 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1237 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1238 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1239 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1240 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
1241 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1242 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1243 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1244 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1245 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
1246 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
1247 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
1248 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
1249 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
1250 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
1251 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
1252 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
1253 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
1254 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
1255 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
1256 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
1257 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
1258 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
1259 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
1260 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1261 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1262 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1263 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1264 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1265 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1266 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1267 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1268 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1269 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1270 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1271 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1272 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1273 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
1274 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
1275 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
1276 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
1277 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
1278 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
1279 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
1280 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
1281 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
1282 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
1283 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
1284 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
1285 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
1286 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
1287 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
1288 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
1289 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
1290 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
1291 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
1292 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
1293 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
1294 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
1295 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
1296 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
1297 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
1298 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
1299 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
1300 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
1301 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
1302 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
1303 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
1304 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
1305 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
1306 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
1307 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
1308 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
1309 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
1310 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
1311 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
1312 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
1313 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
1314 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
1315 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
1316 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
1317 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
1318 IX86_BUILTIN_VBROADCASTSD_PD256,
1319 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
1320 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
1321 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
1322 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
1323 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
1324 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
1325 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
1326 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
1327 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
1328 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
1329 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
1330 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
1331 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
1332 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
1333 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
1334 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
1335 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
1336 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
1337 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
1338 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
1339 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
1340 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
1341 IX86_BUILTIN_GATHERDIV8SI.
1342 (ix86_preferred_simd_mode): Support AVX2 modes.
1343 (ix86_expand_args_builtin): Support AVX2 builtins.
1344 (ix86_expand_special_args_builtin): Likewise.
1345 (ix86_expand_builtin): Likewise.
1346 * config/i386/i386.md (UNSPEC_VPERMSI): New.
1347 (UNSPEC_VPERMDF): Likewise.
1348 (UNSPEC_VPERMSF): Likewise.
1349 (UNSPEC_VPERMDI): Likewise.
1350 (UNSPEC_VPERMTI): Likewise.
1351 (UNSPEC_GATHER): Likewise.
1352 (ssemodesuffix): Extend.
1353 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
1355 * config/i386/predicates.md (const1248_operand): New.
1356 * config/i386/sse.md (VI1_AVX2): New mode iterator.
1357 (VI2_AVX2): Likewise.
1358 (VI4_AVX2): Likewise.
1359 (VI8_AVX2): Likewise.
1360 (VIMAX_AVX2): Likewise.
1361 (SSESCALARMODE): Likewise.
1362 (VI12_AVX2): Likewise.
1363 (VI24_AVX2): Likewise.
1364 (VI124_AVX2): Likewise.
1365 (VI248_AVX2): Likewise.
1366 (VI48_AVX2): Likewise.
1367 (VI4SD_AVX2): Likewise.
1368 (V48_AVX2): Likewise.
1369 (AVX256MODE2P): Likewise.
1370 (AVXMODE48P_DI): Likewise.
1371 (sse2_avx2): New mode attribute.
1372 (ssse3_avx2): Likewise.
1373 (sse4_1_avx2): Likewise.
1374 (avx_avx2): Likewise.
1375 (ssebytemode): Likewise.
1376 (AVXTOSSEMODE): Likewise.
1377 (AVXMODE48P_DI): Likewise.
1378 (gthrfirstp): Likewise.
1379 (gthrlastp): Likewise.
1380 (lshift): New code_iterator
1381 (lshift): New code attribute.
1383 (ssescalarmodesuffix): Update.
1384 (sseunpackmode): Likewise.
1385 (ssepackmode): Likewise.
1386 (avx2_vec_dupv4sf): New insn pattern.
1387 (avx2_vec_dupv8sf): Likewise.
1388 (avx2_interleave_highv4di): Likewise.
1389 (avx2_interleave_lowv4di): Likewise.
1390 (avx2_umulv4siv4di3): Likewise
1391 (*avx2_umulv4siv4di3): Likewise
1392 (avx2_pmaddwd): Likewise.
1393 (*avx2_pmaddwd): Likewise.
1394 (avx2_lshrqv4di3): Likewise.
1395 (avx2_lshlqv4di3): Likewise.
1396 (avx2_lshl<mode>3): Likewise.
1397 (avx2_<umaxmin:code><mode>3): Likewise.
1398 (*avx2_<umaxmin:code><mode>3): Likewise.
1399 (avx2_<smaxmin:code><mode>3): Likewise.
1400 (*avx2_<smaxmin:code><mode>3): Likewise.
1401 (avx2_eq<mode>3): Likewise.
1402 (*avx2_eq<mode>3): Likewise.
1403 (avx2_gt<mode>3): Likewise.
1404 (avx2_interleave_highv32qi): New.
1405 (avx2_interleave_lowv32qi): Likewise.
1406 (avx2_interleave_highv16hi): Likewise.
1407 (avx2_interleave_lowv16hi): Likewise.
1408 (avx2_interleave_highv8si): Likewise.
1409 (avx2_interleave_lowv8si): Likewise.
1410 (avx2_pshufd): Likewise.
1411 (avx2_pshufd_1): Likewise.
1412 (avx2_pshuflwv3): Likewise.
1413 (avx2_pshuflw_1): Likewise.
1414 (avx2_pshufhwv3): Likewise.
1415 (avx2_pshufhw_1): Likewise.
1416 (avx2_uavgv32qi3): Likewise.
1417 (*avx2_uavgv32qi3): Likewise.
1418 (avx2_uavgv16hi3): Likewise.
1419 (*avx2_uavgv16hi3): Likewise.
1420 (avx2_pmovmskb): Likewise.
1421 (avx2_phaddwv16hi3): Likewise.
1422 (avx2_phadddv8si3): Likewise.
1423 (avx2_phaddswv16hi3): Likewise.
1424 (avx2_phsubwv16hi3): Likewise.
1425 (avx2_phsubdv8si3): Likewise.
1426 (avx2_phsubswv16hi3): Likewise.
1427 (avx2_pmaddubsw256): Likewise.
1428 (avx2_umulhrswv16hi3): Likewise.
1429 (*avx2_umulhrswv16hi3): Likewise.
1430 (avx2_packusdw): Likewise.
1431 (avx2_pblendd<mode>): Likewise.
1432 (avx2_<code>v16qiv16hi2): Likewise.
1433 (avx2_<code>v8qiv8si2): Likewise.
1434 (avx2_<code>v8hiv8si2): Likewise.
1435 (avx2_<code>v4qiv4di2): Likewise.
1436 (avx2_<code>v4hiv4di2): Likewise.
1437 (avx2_<code>v4siv4di2): Likewise.
1438 (avx2_pbroadcast<mode>): Likewise.
1439 (avx2_permvarv8si): Likewise.
1440 (avx2_permv4df): Likewise.
1441 (avx2_permvarv8sf): Likewise.
1442 (avx2_permv4di): Likewise.
1443 (avx2_permv2ti): Likewise.
1444 (avx2_vec_dupv4df): Likewise.
1445 (avx2_vbroadcasti128_<mode>): Likewise.
1446 (avx2_vec_set_lo_v4di): Likewise.
1447 (avx2_vec_set_hi_v4di): Likewise.
1448 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1449 (avx2_extracti128): Likewise.
1450 (avx2_inserti128): Likewise.
1451 (avx2_ashrvv8si): Likewise.
1452 (avx2_ashrvv4si): Likewise.
1453 (avx2_<lshift>vv8si): Likewise.
1454 (avx2_<lshift>v<mode>): Likewise.
1455 (avx2_<lshift>vv2di): Likewise.
1456 (avx2_gathersi<mode>): Likewise.
1457 (*avx2_gathersi<mode>): Likewise.
1458 (avx2_gatherdi<mode>): Likewise.
1459 (*avx2_gatherdi<mode>): Likewise.
1460 (avx2_gatherdi<mode>256): Likewise.
1461 (*avx2_gatherdi<mode>256): Likewise.
1462 (<plusminus_insn><mode>3): Use VI mode iterator.
1463 (*<plusminus_insn><mode>3): Use VI mode iterator.
1464 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1465 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
1466 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1467 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
1468 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
1469 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
1470 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1471 Use VI2_AVX2 mode iterator.
1472 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1473 Use VI2_AVX2 mode iterator.
1474 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
1475 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
1476 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1477 Use VI4_AVX2 mode iterator.
1478 (ashr<mode>3): Use VI24_AVX2 mode iterator.
1479 (lshr<mode>3): Use VI248_AVX2 mode iterator.
1480 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1481 Use VIMAX_AVX2 mode iterator.
1482 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1483 Use VI mode iterator.
1484 (*andnot<mode>3): Update for AVX2.
1485 (*<any_logic:code><mode>3): Likewise.
1486 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1487 Use VI1_AVX mode iterator.
1488 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
1489 Use VI2_AVX mode iterator.
1490 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1491 Use VI1_AVX mode iterator.
1492 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1493 Use VI8_AVX2 mode iterator.
1494 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1495 Use VI1_AVX2 mode iterator.
1496 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1497 Use VI124_AVX2 mode iterator.
1498 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1499 Use SSESCALARMODE mode iterator.
1500 (abs<mode>2): Use VI124_AVX2 mode iterator.
1501 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1502 Use VI8_AVX2 mode iterator.
1503 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1504 Use VI1_AVX2 mode iterator.
1505 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1506 Use VI1_AVX2 mode iterator.
1507 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1508 Use VI2_AVX2 mode iterator.
1509 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1510 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1511 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1512 avx_maskstore<ssemodesuffix><avxsizesuffix>.
1513 Use V48_AVX2 mode iterator.
1514 * doc/extend.texi: Document AVX2 built-in functions.
1515 * doc/invoke.texi: Document -mavx2.
1517 2011-08-22 Matthias Klose <doko@debian.org>
1520 2011-07-11 Arthur Loiret <aloiret@debian.org>
1521 Matthias Klose <doko@debian.org>
1522 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1523 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1525 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1527 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
1530 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1531 to #ifndef HONOR_REG_ALLOC_ORDER block.
1533 2011-08-21 Richard Henderson <rth@redhat.com>
1535 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1536 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1537 * resource.c (next_insn_no_annul): Likewise.
1538 (mark_set_resources): Likewise.
1539 * reorg.c (delete_from_delay_slot): Likewise.
1540 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1541 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1543 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
1545 * config/i386/i386.md (any_div): Remove.
1546 (sgnprefix): Update for removal.
1549 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
1551 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1552 for ira_reg_class_max_nregs. Increase pressure by 1.
1553 (mark_pseudo_regno_subword_dead): Use allocno class
1554 for ira_reg_class_max_nregs.
1556 2011-08-20 Richard Henderson <rth@redhat.com>
1558 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1559 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1560 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1561 config/c6x/ltf.c: Adjust include path for soft-fp.
1563 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
1566 * config.gcc (tm_file): Add initfini-array.h if
1567 .init_arrary/.fini_array are supported.
1569 * crtstuff.c: Don't generate .ctors nor .dtors sections if
1570 USE_INITFINI_ARRAY is defined.
1572 * output.h (default_elf_init_array_asm_out_constructor): New.
1573 (default_elf_fini_array_asm_out_destructor): Likewise.
1574 * varasm.c (elf_init_array_section): Likewise.
1575 (elf_fini_array_section): Likewise.
1576 (get_elf_initfini_array_priority_section): Likewise.
1577 (default_elf_init_array_asm_out_constructor): Likewise.
1578 (default_elf_fini_array_asm_out_destructor): Likewise.
1580 * config/initfini-array.h: New.
1582 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
1584 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1585 OK for ST_REGS and FP_REGS before taking those classes into account.
1587 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
1589 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1590 before checking for annulled branches.
1592 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
1594 * config/i386/i386.c (ix86_binary_operator_ok): Use
1595 satisfies_constraint_L.
1597 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
1598 Michael Matz <matz@suse.de>
1600 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1601 trunc (a + copysign (nextafter (0.5, 0.0), a)).
1603 2011-08-20 Anatoly Sokolov <aesok@post.ru>
1605 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1606 * doc/tm.texi: Regenerate.
1607 * targhooks.c (default_preferred_output_reload_class): Don't use
1608 PREFERRED_OUTPUT_RELOAD_CLASS macro.
1609 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1611 2011-08-20 Jakub Jelinek <jakub@redhat.com>
1613 PR tree-optimization/48739
1614 * tree-ssa.c: Include cfgloop.h.
1615 (execute_update_addresses_taken): When updating ssa, if in loop closed
1616 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1617 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1619 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
1621 PR rtl-optimization/49936
1622 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1623 for calculation of max register move costs.
1625 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1627 * c-parser.c (c_parser_postfix_expression): Convert operands of
1628 __builtin_complex to their semantic types.
1630 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1633 * explow.c (convert_memory_address_addr_space): Also permute the
1634 conversion and addition of constant for zero-extend.
1636 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1638 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1639 * doc/extend.texi (__builtin_complex): Document.
1641 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1643 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1645 (convert_mult_to_widen): Convert constant inputs to the right type.
1646 (convert_plusminus_to_widen): Don't automatically reject inputs that
1647 are not an SSA_NAME.
1648 Convert constant inputs to the right type.
1650 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1652 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1653 to the correct type.
1655 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1657 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1658 unsigned inputs of different modes.
1659 (convert_plusminus_to_widen): Likewise.
1661 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1663 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1665 Use 'type' from caller, not inferred from 'rhs'.
1666 Don't reject non-conversion statements. Do return lhs in this case.
1667 (is_widening_mult_p): Add new argument 'type'.
1668 Use 'type' from caller, not inferred from 'stmt'.
1669 Pass type to is_widening_mult_rhs_p.
1670 (convert_mult_to_widen): Pass type to is_widening_mult_p.
1671 (convert_plusminus_to_widen): Likewise.
1673 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1675 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1676 Ensure the the larger type is the first operand.
1678 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1680 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1681 unsupported unsigned multiplies to signed.
1682 (convert_plusminus_to_widen): Likewise.
1684 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1686 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1687 conversion statement separating multiply-and-accumulate.
1689 2011-08-19 Richard Guenther <rguenther@suse.de>
1691 PR tree-optimization/50067
1692 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1693 offset only if we accounted for it.
1695 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1697 * config/arm/arm.md (maddhidi4): Remove '*' from name.
1698 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1699 * optabs.c (find_widening_optab_handler_and_mode): New function.
1700 (expand_widen_pattern_expr): Use find_widening_optab_handler.
1701 (expand_binop_directly): Likewise.
1702 (expand_binop): Likewise.
1703 * optabs.h (find_widening_optab_handler): New macro define.
1704 (find_widening_optab_handler_and_mode): New prototype.
1705 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1706 type precision rules.
1707 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1708 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1709 (is_widening_mult_rhs_p): Allow widening by more than one mode.
1710 Explicitly disallow mis-matched input types.
1711 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1712 input types to fit the new handler.
1713 (convert_plusminus_to_widen): Likewise.
1715 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
1717 * expr.c (expand_expr_real_2): Use widening_optab_handler.
1718 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1719 (gen_insn): $N now means $a must be wider than $b, not consecutive.
1720 * optabs.c (widened_mode): New function.
1721 (expand_widen_pattern_expr): Use widening_optab_handler.
1722 (expand_binop_directly): Likewise.
1723 (expand_binop): Likewise.
1724 * optabs.h (widening_optab_handlers): New struct.
1725 (optab_d): New member, 'widening'.
1726 (widening_optab_handler): New function.
1727 (set_widening_optab_handler): New function.
1728 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1729 widening_optab_handler.
1730 (convert_plusminus_to_widen): Likewise.
1732 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1734 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1736 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1737 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1739 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1741 * opth-gen.awk: Do not declare target save/restore structures and
1742 functions if IN_RTS defined.
1744 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1747 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1748 when stack was realigned in interrupt handler prologue.
1750 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1752 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1753 (quals_from_declspecs): Assert _Noreturn not present.
1754 (grokdeclarator): Handle _Noreturn.
1755 (build_null_declspecs): Initialize noreturn_p.
1756 (declspecs_add_scspec): Handle RID_NORETURN.
1757 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1758 (c_parser_attributes): Handle RID_NORETURN.
1759 * c-tree.h (struct c_declspecs): Add noreturn_p.
1760 * ginclude/stdnoreturn.h: New.
1761 * Makefile.in (USER_H): Add stdnoreturn.h.
1763 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
1765 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1766 (OPTION_MASK_ISA_AVX_UNSET): Update.
1767 (OPTION_MASK_ISA_AVX2_UNSET): New.
1768 (ix86_handle_option): Handle OPT_mavx2 case.
1769 * config/i386/cpuid.h (bit_AVX2): New.
1770 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1772 * config/i386/i386-c.c (ix86_target_macros_internal):
1773 Conditionally define __AVX2__.
1774 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1775 Define "core-avx2" processor alias. Handle avx2 option.
1776 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1777 * config/i386/i386.h (TARGET_AVX2): New.
1778 * config/i386/i386.opt (mavx2): New.
1779 * doc/invoke.texi: Document -mavx2.
1781 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
1783 PR rtl-optimization/49890
1784 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1785 subclasses of class which is superset of a pressure class.
1787 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
1788 Igor Zamyatin <igor.zamyatin@intel.com>
1790 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1791 with HOST_WIDE_INT for isa_flag.
1792 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1795 * config/i386/i386.c (ix86_target_string): Replace int with
1796 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
1797 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1798 (pta_flags): Removed.
1799 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1800 (pta): Use HOST_WIDE_INT on flags.
1801 (builtin_isa): Use HOST_WIDE_INT on isa.
1802 (ix86_add_new_builtins): Likewise.
1803 (def_builtin): Use HOST_WIDE_INT on mask.
1804 (def_builtin_const): Likewise.
1805 (builtin_description): Likewise.
1807 * config/i386/i386.opt (ix86_isa_flags): Replace int with
1809 (ix86_isa_flags_explicit): Likewise.
1810 (x_ix86_isa_flags_explicit): Likewise.
1812 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
1814 PR rtl-optimization/50107
1815 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1816 (ira_hard_reg_in_set_p): New.
1818 * ira-color.c (calculate_saved_nregs): New.
1819 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
1821 (allocno_reload_assign, fast_allocation): Use
1822 ira_hard_reg_set_intersection_p instead of
1823 ira_hard_reg_not_in_set_p.
1825 * ira.c (setup_reg_renumber): Use
1826 ira_hard_reg_set_intersection_p instead of
1827 ira_hard_reg_not_in_set_p.
1828 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1829 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1831 * ira-costs.c (ira_tune_allocno_costs): Use
1832 ira_hard_reg_set_intersection_p instead of
1833 ira_hard_reg_not_in_set_p.
1835 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
1836 Igor Zamyatin <igor.zamyatin@intel.com>
1838 * hwint.h (HOST_WIDE_INT_1): New.
1840 * opt-functions.awk (switch_bit_fields): Initialize the
1841 host_wide_int field.
1842 (host_wide_int_var_name): New.
1843 (var_type_struct): Check and return HOST_WIDE_INT.
1845 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1847 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1849 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
1850 check masks for HOST_WIDE_INT.
1852 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1853 (option_enabled): Likewise.
1854 (get_option_state): Likewise.
1856 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
1859 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1860 Marc Glisse <marc.glisse@normalesup.org>
1862 PR libstdc++-v3/1773
1863 * target.def (decl_mangling_context): New C++ hook.
1864 * doc/tm.texi: Regenerate.
1865 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1866 * config/sol2-protos.h: Group by source file.
1867 (solaris_cxx_decl_mangling_context): Declare.
1868 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1869 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1871 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1872 Add sol2-stubs.o to extra_objs.
1874 2011-08-18 Jakub Jelinek <jakub@redhat.com>
1877 * stor-layout.c (update_alignment_for_field): Don't ICE on
1878 packed flexible array members if ms_bitfield_layout_p.
1881 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1882 on the result before returning it.
1885 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1886 is a debug stmt, use location of the first non-debug stmt after it.
1888 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1890 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1891 (arm_size_rtx_costs): Likewise.
1893 2011-08-18 Richard Guenther <rguenther@suse.de>
1895 * tree.h (tree_int_cst_msb): Remove.
1896 * tree.c (tree_int_cst_msb): Likewise.
1897 (tree_int_cst_sign_bit): Move from ...
1898 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1900 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1902 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1903 * doc/tm.texi: Regenerate.
1904 * target.def (rtx_costs): Add an opno parameter.
1905 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1906 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1907 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1908 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1909 * cse.c (COST_IN): Add an opno parameter.
1910 (notreg_cost): Likewise. Update call to rtx_cost.
1911 (COST, fold_rtx): Update accordingly.
1912 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1913 * expmed.c (emit_store_flag): Likewise.
1914 * optabs.c (avoid_expensive_constant): Add an opno parameter.
1915 Update call to rtx_cost.
1916 (expand_binop_directly, expand_binop): Likewise.
1917 (expand_twoval_binop, prepare_cmp_insn): Likewise.
1918 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1919 (set_src_cost, get_full_set_src_cost): Update accordingly.
1920 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
1922 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
1923 (default_adress_cost): Update calls to rtx_cost.
1925 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1926 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1927 (arm_rtx_costs): Add an opno parameter.
1928 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1929 adjust any recursive rtx-cost calls.
1930 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1931 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1932 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1933 * config/cris/cris.c (cris_rtx_costs): Likewise.
1934 * config/frv/frv.c (frv_rtx_costs): Likewise.
1935 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1936 * config/i386/i386.c (ix86_rtx_costs): Likewise.
1937 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1938 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1939 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1940 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1941 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1942 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1943 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1944 * config/mep/mep.c (mep_rtx_cost): Likewise.
1945 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1946 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1947 (mips_zero_extend_cost): Add an opno parameter.
1948 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1949 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1951 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1953 * config/pa/pa.c (hppa_rtx_costs): Likewise.
1954 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1955 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1956 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1957 (rs6000_debug_rtx_costs): Likewise.
1958 * config/s390/s390.c (s390_rtx_costs): Likewise.
1959 * config/score/score-protos.h (score_rtx_costs): Likewise.
1960 * config/score/score.c (score_rtx_costs): Likewise.
1961 * config/sh/sh.c (andcosts): Update call to rtx_cost.
1962 (sh_rtx_costs): Add an opno parameter.
1963 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1964 * config/spu/spu.c (spu_rtx_costs): Likewise.
1965 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1966 * config/v850/v850.c (v850_rtx_costs): Likewise.
1967 * config/vax/vax.c (vax_rtx_costs): Likewise.
1968 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1970 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
1972 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1973 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1975 * calls.c (precompute_register_parameters): Likewise.
1976 * combine.c (expand_compound_operation, make_extraction): Likewise.
1977 (force_to_mode, distribute_and_simplify_rtx): Likewise.
1978 * dse.c (find_shift_sequence): Likewise.
1979 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1980 * expr.c (compress_float_constant): Likewise.
1981 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1982 * gcse.c (want_to_gcse_p): Likewise.
1983 * ifcvt.c (noce_try_sign_mask): Likewise.
1984 * loop-doloop.c (doloop_optimize): Likewise.
1985 * loop-invariant.c (create_new_invariant): Likewise.
1986 * optabs.c (avoid_expensive_constant): Likewise.
1987 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1988 (try_replace_in_use, reload_cse_move2add): Likewise.
1989 * reload1.c (calculate_elim_costs_all_insns): Likewise.
1990 (note_reg_elim_costly): Likewise.
1991 * rtlanal.c (insn_rtx_cost): Likewise.
1992 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1993 * stmt.c (lshift_cheap_p): Likewise.
1994 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1995 * config/avr/avr.c (final_prescan_insn): Likewise.
1996 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1997 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1999 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2001 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2002 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2003 * cfgloopanal.c (seq_cost): Likewise.
2004 * loop-invariant.c (create_new_invariant): Likewise.
2005 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2006 (reload_cse_move2add): Use get_full_set_rtx_cost.
2008 2011-08-18 Richard Guenther <rguenther@suse.de>
2010 * expr.c (get_inner_reference): Fix typo in last change.
2012 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2013 Joseph Myers <joseph@codesourcery.com>
2015 PR tree-optimization/49963
2016 * hwint.c (absu_hwi): Define.
2017 * hwint.h (absu_hwi): Declare.
2018 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2020 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2021 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2023 2011-08-18 Richard Guenther <rguenther@suse.de>
2025 * expr.c (get_inner_reference): Sign-extend the constant
2026 twos-complement offset before doing arbitrary precision
2028 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2029 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2030 to get_constraint_for_ptr_offset.
2032 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
2035 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2037 2011-08-17 Richard Guenther <rguenther@suse.de>
2039 * tree.h (convert_to_ptrofftype_loc): New function.
2040 (convert_to_ptrofftype): Define.
2041 * builtins.c (expand_builtin_bzero): Use size_type_node.
2042 (fold_builtin_bzero): Likewise.
2043 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2044 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2045 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2046 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2047 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2048 * fold-const.c (build_range_check): Negate using the original type.
2049 (fold_unary_loc): Use fold_build_pointer_plus_loc.
2050 * gimple-fold.c (gimple_adjust_this_by_delta): Use
2051 convert_to_ptrofftype.
2052 * gimplify.c (gimplify_self_mod_expr): Likewise.
2053 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2054 (graphite_create_new_loop_guard): Likewise.
2055 * graphite-sese-to-poly.c (my_long_long): Remove.
2056 (scop_ivs_can_be_represented): Adjust.
2057 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2058 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2059 * tree-loop-distribution.c (build_size_arg_loc): Use
2061 (generate_memset_zero): Simplify.
2062 * tree-mudflap.c: Use fold_convert, not convert.
2063 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2065 (determine_offset): Likewise for DR_STEP.
2066 (valid_initializer_p): Likewise.
2067 * tree-profile.c (prepare_instrumented_value): Convert the pointer
2068 to an integer type of same size.
2069 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2070 to sizetype without need.
2071 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2072 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2073 * tree-ssa-loop-manip.c (create_iv): Likewise.
2074 (determine_exit_conditions): Adjust comment.
2075 * tree-ssa-pre.c (create_expression_by_pieces): Use
2076 convert_to_ptrofftype.
2077 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2078 * varasm.c (array_size_for_constructor): Compute using double_ints.
2080 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2082 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2083 when generating an integer result where possible. Short-cut
2084 comparison against 0 also for QImode.
2086 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2088 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2089 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2091 * config/spu/spu.c (spu_legitimize_reload_address): New function.
2092 (spu_legitimate_address_p): Do not check displacement if the base
2093 is an eliminable stack register.
2095 2011-08-16 Anatoly Sokolov <aesok@post.ru>
2097 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2098 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2099 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2100 m32c_preferred_output_reload_class): Remove.
2101 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2102 Change rclass argument and return types to reg_class_t. Use
2103 reg_class_subset_p instead of class_sizes.
2104 (m32c_preferred_output_reload_class): Make static. Change rclass
2105 argument and return types to reg_class_t.
2106 (TARGET_PREFERRED_RELOAD_CLASS,
2107 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2109 2011-08-16 Kai Tietz <ktietz@redhat.com>
2111 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2113 2011-08-16 Richard GUenther <rguenther@suse.de>
2115 PR tree-optimization/50082
2116 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2117 warnings here, instead of ...
2118 (ssa_forward_propagate_and_combine): ... here.
2119 (forward_propagate_into_comparison_1): Adjust.
2120 (forward_propagate_into_comparison): Likewise.
2121 (forward_propagate_into_gimple_cond): Likewise.
2122 (forward_propagate_into_cond): Likewise.
2124 2011-08-16 Andreas Schwab <schwab@redhat.com>
2126 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2127 instead of ggc_alloc_zone_vec_rtvec_def.
2129 2011-08-16 Richard Guenther <rguenther@suse.de>
2131 * tree.h (ptrofftype_p): New helper function.
2132 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2133 offset verification.
2134 (verify_gimple_assign_binary): Likewise.
2135 * tree.c (build2_stat): Likewise.
2136 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2137 (reset_evolution_in_loop): Likewise.
2138 * tree-chrec.h (build_polynomial_chrec): Likewise.
2140 2011-08-16 Liang Wang <lwang1@marvell.com>
2142 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2143 ggc_alloc_zone_vec_rtvec_def.
2145 2011-08-16 Richard Guenther <rguenther@suse.de>
2147 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2148 helper factored out from ...
2149 (extract_range_from_binary_expr_1): ... here. Re-structure
2150 to not glob handling too different tree codes.
2152 2011-08-15 Richard Henderson <rth@redhat.com>
2155 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2156 setting out to include allocate_stack named pattern as well.
2157 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2158 * stmt.c (expand_stack_restore): Likewise.
2160 2011-08-15 Richard Guenther <rguenther@suse.de>
2163 * fold-const.c (maybe_canonicalize_comparison_1): Properly
2164 convert the modified operand to the other operand type.
2165 (fold_comparison): Call maybe_canonicalize_comparison_1 with
2166 useless conversions stripped from comparison operands.
2168 2011-08-15 Richard Guenther <rguenther@suse.de>
2170 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2171 (extract_range_from_unary_expr_1): Restructure.
2173 2011-08-15 Richard Guenther <rguenther@suse.de>
2175 PR tree-optimization/50058
2176 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2179 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2182 * config/arm/arm.c (output_move_double): Add 2 parameters
2183 to count the number of insns emitted and whether to emit or not.
2184 Use the flag to decide when to emit and count number of instructions
2185 that will be emitted.
2186 Handle case where output_move_double might be called for calculating
2187 lengths with an invalid constant.
2188 (arm_count_output_move_double_insns): Define.
2189 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
2190 (output_move_double): Adjust prototype.
2191 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
2193 ("*movdi_vfp_cortexa8"): Likewise and add attribute
2195 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
2196 ("*movdf_soft_insn"): Likewise.
2197 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
2198 ("*cirrus_thumb2_movdi"): Likewise.
2199 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
2200 ("*cirrus_movdf_hard_insn"): Likewise.
2201 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
2202 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
2203 ("mov<mode>_internal VMMX"): Likewise.
2204 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
2206 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
2208 * config/i386/i386.c (ix86_expand_round_sse4): New function.
2209 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
2210 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
2213 (rint<mode>2): Simplify TARGET_ROUND check.
2214 (floor<mode>2): Ditto.
2215 (ceil<mode>2): Ditto.
2216 (btrunc<mode>2): Ditto.
2218 2011-08-14 Anatoly Sokolov <aesok@post.ru>
2220 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
2221 as mmix_preferred_output_reload_class.
2223 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
2226 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
2227 (branch_unspec): New insn.
2228 (branch): Beauty farm.
2229 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
2231 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
2232 New static functions.
2233 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
2234 Use CONST_INT_P. Beauty.
2236 2011-08-12 Richard Henderson <rth@redhat.com>
2239 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
2240 * sched-deps.c (init_deps): Clear it.
2241 (deps_analyze_insn): Consume it.
2242 (sched_analyze_insn): Fill it.
2244 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2247 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
2248 for tbh instructions.
2250 2011-08-12 Diego Novillo <dnovillo@google.com>
2252 * data-streamer.h (streamer_write_zero): Rename from output_zero.
2253 (streamer_write_uhwi): Rename from lto_output_uleb128.
2254 (streamer_write_hwi): Rename from output_sleb128.
2255 (streamer_write_string): Rename from lto_output_string.
2256 (streamer_string_index): Rename from lto_string_index.
2257 (streamer_write_string_with_length): Rename from
2258 lto_output_string_with_length.
2259 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
2260 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
2261 (streamer_read_string): Rename from lto_input_string.
2262 (streamer_read_indexed_string): Rename from input_string_internal.
2263 (streamer_read_uhwi): Rename from lto_input_uleb128.
2264 (streamer_read_hwi): Rename from lto_input_sleb128.
2265 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
2266 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
2267 (streamer_write_enum): Rename from lto_output_enum.
2268 (streamer_read_enum): Rename from lto_input_enum.
2269 (streamer_write_record_start): Rename from output_record_start.
2270 (streamer_read_record_start): Rename from input_record_start.
2271 (streamer_write_bitpack): Rename from lto_output_bitpack.
2272 (streamer_read_bitpack): Rename from lto_input_bitpack.
2273 (streamer_write_char_stream): Rename from lto_output_1_stream.
2274 (streamer_read_uchar): Rename from lto_input_1_unsigned.
2275 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
2276 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
2277 (streamer_read_string_cst): Rename from input_string_cst.
2278 (streamer_read_chain): Rename from lto_input_chain.
2279 (streamer_alloc_tree): Rename from lto_materialize_tree.
2280 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
2281 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
2282 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
2283 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
2284 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
2285 (streamer_write_chain): Rename from lto_output_chain.
2286 (streamer_write_tree_header): Rename from lto_output_tree_header.
2287 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
2288 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
2289 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
2290 (streamer_write_builtin): Rename from lto_output_builtin_tree.
2291 (streamer_check_handled_ts_structures): Rename from
2292 check_handled_ts_structures.
2293 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
2294 (streamer_tree_cache_insert_at): Rename from
2295 lto_streamer_cache_insert_at.
2296 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
2297 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
2298 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
2299 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
2300 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
2301 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
2302 (write_identifier): Rename from output_identifier.
2303 (write_ts_common_tree_pointers): Rename from
2304 lto_output_ts_common_tree_pointers.
2305 (write_ts_vector_tree_pointers): Rename from
2306 lto_output_ts_vector_tree_pointers.
2307 (write_ts_complex_tree_pointers): Rename from
2308 lto_output_ts_complex_tree_pointers.
2309 (write_ts_decl_minimal_tree_pointers): Rename from
2310 lto_output_ts_decl_minimal_tree_pointers.
2311 (write_ts_decl_common_tree_pointers): Rename from
2312 lto_output_ts_decl_common_tree_pointers.
2313 (write_ts_decl_non_common_tree_pointers): Rename from
2314 lto_output_ts_decl_non_common_tree_pointers.
2315 (write_ts_decl_with_vis_tree_pointers): Rename from
2316 lto_output_ts_decl_with_vis_tree_pointers.
2317 (write_ts_field_decl_tree_pointers): Rename from
2318 lto_output_ts_field_decl_tree_pointers.
2319 (write_ts_function_decl_tree_pointers): Rename from
2320 lto_output_ts_function_decl_tree_pointers.
2321 (write_ts_type_common_tree_pointers): Rename from
2322 lto_output_ts_type_common_tree_pointers.
2323 (write_ts_type_non_common_tree_pointers): Rename from
2324 lto_output_ts_type_non_common_tree_pointers.
2325 (write_ts_list_tree_pointers): Rename from
2326 lto_output_ts_list_tree_pointers.
2327 (write_ts_vec_tree_pointers): Rename from
2328 lto_output_ts_vec_tree_pointers.
2329 (write_ts_exp_tree_pointers): Rename from
2330 lto_output_ts_exp_tree_pointers.
2331 (write_ts_block_tree_pointers): Rename from
2332 lto_output_ts_block_tree_pointers.
2333 (write_ts_binfo_tree_pointers): Rename from
2334 lto_output_ts_binfo_tree_pointers.
2335 (write_ts_constructor_tree_pointers): Rename from
2336 lto_output_ts_constructor_tree_pointers.
2337 (write_ts_target_option): Rename from lto_output_ts_target_option.
2338 (write_ts_translation_unit_decl_tree_pointers): Rename from
2339 lto_output_ts_translation_unit_decl_tree_pointers.
2340 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2341 Rename from lto_streamer_cache_add_to_node_array.
2342 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
2343 (record_common_node): Rename from lto_record_common_node.
2345 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
2347 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
2349 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
2351 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
2352 (ipa-reference.o): Likewise.
2353 * lto-section-out.c: Include data-streamer.h.
2354 * ipa-reference.c: Include data-streamer.h.
2356 2011-08-12 Nick Clifton <nickc@redhat.com>
2358 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
2359 * doc/md.texi (cmpstrn): Note that the comparison stops if both
2360 fetched bytes are zero.
2362 (cmpmem): Note that the comparison does not stop if both of the
2363 fetched bytes are zero.
2365 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
2367 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
2368 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
2369 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
2370 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
2371 to integer_type_node.
2372 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
2373 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
2374 * builtins.c (expand_builtin_in): Ditto.
2375 (mathfn_built_in_1): Ditto.
2376 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
2378 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
2380 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
2381 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
2382 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
2384 2011-08-12 Richard Guenther <rguenther@suse.de>
2386 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
2388 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
2390 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2392 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
2394 * config/arm/arm.c (get_label_padding): New function.
2395 (create_fix_barrier, arm_reorg): Use it.
2397 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
2400 * config/i386/i386.md (*lea_5_zext): New.
2401 (*lea_6_zext): Ditto.
2402 * config/i386/predicates.md (const_32bit_mask): New predicate.
2403 (lea_address_operand): Reject AND.
2404 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2405 const_32bit_mask immediate.
2406 (ix86_print_operand_address): Handle AND.
2407 (memory_address_length): Ditto.
2409 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
2410 Brian Hackett <bhackett1024@gmail.com>
2412 * plugin.def: Add event for finish_decl.
2413 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2414 * c-decl.c (finish_decl): Invoke callbacks on above event.
2415 * doc/plugins.texi: Document above event.
2417 2011-08-11 Richard Guenther <rguenther@suse.de>
2419 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2420 lookups, make looking through aggregate copies stronger.
2422 2011-08-11 Richard Henderson <rth@redhat.com>
2425 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2427 2011-08-11 Richard Guenther <rguenther@suse.de>
2429 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2430 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2431 (vrp_visit_stmt): Likewise.
2433 2011-08-11 Richard Guenther <rguenther@suse.de>
2436 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2437 load of the other piece with TREE_NO_WARNING.
2438 * tree-flow.h (warn_uninit): Adjust prototype.
2439 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2440 the base variable and the expression that is used separately.
2441 Properly query all TREE_NO_WARNING flags.
2442 (struct walk_data): Remove.
2443 (warn_uninitialized_var): Likewise.
2444 (warn_uninitialized_vars): Do not walk gimple pieces but simply
2445 look at all SSA uses of the statement. Handle unused memory
2447 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2449 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
2451 * config/rx/rx.md (movsicc): Allow register to register transfers.
2452 (*movsicc): Likewise.
2453 (*stcc): Restrict this pattern to EQ and NE compares.
2454 (*stcc_reg): New pattern. Works for any comparison but only for
2457 2011-08-11 Diego Novillo <dnovillo@google.com>
2459 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2460 Call stream_write_tree instead of output_record_start.
2461 (lto_output_ts_binfo_tree_pointers): Likewise.
2463 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2464 Convert it to a macro.
2465 (stream_read_tree): Likewise.
2467 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2468 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2470 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2471 and tree_read_bitfields.
2472 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2473 (lto_write_tree): Call it.
2474 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2475 * streamer-hooks.h (struct streamer_hooks): Remove fields
2476 name, is_streamable and alloc_tree. Update all users.
2477 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2478 (lto_materialize_tree): ... here.
2479 Handle CALL_EXPR codes.
2480 Remove call to lto_streamer_cache_append.
2481 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2482 * tree-streamer.h (tree_read_bitfields): Declare.
2484 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2485 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2486 * tree-streamer.h (stream_read_tree): New. Replace all calls
2487 to lto_input_tree with it.
2488 (stream_write_tree): New. Replace all calls to lto_output_tree,
2489 lto_output_tree_ref and lto_output_tree_or_ref with it.
2490 * lto-streamer-in.c (lto_read_tree): Inline code from
2491 lto_streamer_read_tree.
2492 (lto_input_tree): Move from tree-streamer-in.c.
2493 * lto-streamer-out.c (lto_output_tree_ref): Make static.
2494 Remove handling of NULL values for EXPR.
2495 Do not handle EXPRs that are not indexable.
2496 (lto_write_tree): Move from tree-streamer-out.c.
2497 Inline lto_streamer_write_tree.
2498 (lto_output_tree): Move from tree-streamer-out.c.
2499 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2500 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2501 (lto_preload_common_nodes): Likewise.
2502 Remove assertions and adjustments for nodes
2503 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2504 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2505 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2506 * lto-streamer.h (lto_input_tree): Declare.
2507 (lto_output_tree_ref): Remove.
2508 * streamer-hooks.h (struct streamer_hooks): Remove fields
2509 preload_common_nodes, indexable_with_decls_p,
2510 pack_value_fields, unpack_value_fields and output_tree_header.
2512 * tree-streamer-in.c (lto_materialize_tree): Make extern.
2513 (lto_input_tree_pointers): Likewise.
2514 (lto_read_tree): Move to lto-streamer-in.c.
2515 (lto_input_integer_cst): Make extern.
2516 (lto_get_pickled_tree): Likewise.
2517 (lto_get_builtin_tree): Likewise.
2518 (lto_input_tree): Move to lto-streamer-in.c.
2519 * tree-streamer-out.c (pack_value_fields): Make extern.
2520 (lto_output_tree_or_ref): Remove. Replace all callers with
2521 calls to stream_write_tree.
2522 (lto_output_builtin_tree): Make extern.
2523 (lto_streamer_write_tree): Inline into lto_write_tree.
2524 (lto_output_tree_pointers): Make extern.
2525 (lto_output_tree_header): Likewise.
2526 (lto_output_integer_cst): Likewise.
2527 (lto_write_tree): Move to lto-streamer-out.c.
2528 (lto_output_tree): Likewise.
2529 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2530 (preload_common_nodes): Likewise.
2531 (lto_streamer_cache_create): Call it.
2532 * tree-streamer.h: Include streamer-hooks.h.
2533 (stream_write_tree): New.
2534 (stream_read_tree): New.
2535 (lto_input_tree): Remove.
2536 (lto_materialize_tree): Declare.
2537 (lto_input_tree_pointers): Declare.
2538 (lto_get_pickled_tree): Declare.
2539 (lto_get_builtin_tree): Declare.
2540 (lto_input_integer_cst): Declare.
2541 (lto_output_tree_header): Declare.
2542 (pack_value_fields): Declare.
2543 (lto_output_tree_pointers): Declare.
2544 (lto_output_integer_cst): Declare.
2545 (lto_output_builtin_tree): Declare.
2547 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2549 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2550 only if producer writes to the register given by regno.
2552 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2553 Alexander Monakov <amonakov@ispras.ru>
2555 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2556 (sched_get_condition_with_rev_uncached): ... this. Factor out
2557 condition caching logic into ...
2558 (sched_get_condition_with_rev): ... this. Reimplement. Do not
2559 attempt to use cache for instructions with zero luid.
2560 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2561 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2563 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2565 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2566 get_seqno_for_a_jump. Update the caller.
2567 (get_seqno_by_succs): New. Use it ...
2568 (get_seqno_for_a_jump): ... here to find a seqno if looking at
2569 predecessors was not sufficient.
2570 (get_seqno_by_preds): Include head in iteration range, exclude insn.
2572 2011-08-11 Dmitry Melnik <dm@ispras.ru>
2574 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2576 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2578 * sel-sched-ir.h (register_unavailable_p): Declare.
2579 * sel-sched-ir.c (register_unavailable_p): New. Use it...
2580 (set_unavailable_target_for_expr): ... here to properly test
2581 availability of a register.
2582 (speculate_expr): Ditto.
2583 * sel-sched.c (substitute_reg_in_expr): Ditto.
2584 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2586 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
2588 * sel-sched.c (verify_target_availability): Fix usage of
2591 2011-08-11 Dmitry Melnik <dm@ispras.ru>
2593 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2594 recognized by cannot_copy_insn_p hook and volatile instructions.
2596 2011-08-11 Dmitry Melnik <dm@ispras.ru>
2598 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2600 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
2602 * doc/md.texi (define_bypass): Say that the instruction names can
2603 be filename-style globs.
2604 * Makefile.in (FNMATCH_H): Define.
2605 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2606 * genattrtab.c: Include fnmatch.h.
2607 (bypass_list): Change field name from "insn" to "pattern".
2608 (gen_bypass_1): Update accordingly.
2609 (process_bypasses): Use fnmatch to check for matches between
2610 insn reservations and define_bypasses.
2611 * genautomata.c: Include fnmatch.h.
2612 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2613 and out_pattern respectively.
2614 (gen_bypass, insert_bypass): Update accordingly.
2615 (for_each_matching_insn, process_bypass_2, process_bypass_1)
2616 (process_bypass): New functions.
2617 (process_decls): Use process_bypass. Update after field name changes.
2619 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
2622 * config/avr/avr.md (smulqi3_highpart): New insn.
2623 (umulqi3_highpart): New insn.
2624 (*subqi3.ashiftrt7): New insn.
2625 (smulhi3_highpart): New expander.
2626 (umulhi3_highpart): Nex expander.
2627 (*smulhi3_highpart_call): New insn.
2628 (*umulhi3_highpart_call): New insn.
2629 (extend_u): New code attribute.
2630 (extend_prefix): Rename code attribute to extend_su.
2631 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2632 widening QI/HI multiply.
2634 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
2636 PR tree-optimization/50039
2637 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2638 that DEF_STMT has a stmt_vec_info.
2640 2011-08-10 Richard Guenther <rguenther@suse.de>
2642 * tree.h (can_trust_pointer_alignment): Remove.
2643 * builtins.c (can_trust_pointer_alignment): Remove.
2645 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2647 * c-typeck.c (scalar_to_vector): New function. Try scalar to
2649 (stv_conv): New enum for scalar_to_vector return type.
2650 (build_binary_op): Adjust.
2651 * doc/extend.texi: Description of scalar to vector expansion.
2653 2011-08-10 Richard Guenther <rguenther@suse.de>
2655 * tree.h (get_pointer_alignment): Remove max-align argument.
2656 (get_object_alignment): Likewise.
2657 * builtins.c (get_object_alignment_1): Adjust.
2658 (get_object_alignment): Remove max-align argument.
2659 (get_pointer_alignment): Likewise.
2660 (expand_builtin_strlen): Adjust.
2661 (expand_builtin_memcpy): Likewise.
2662 (expand_builtin_mempcpy_args): Likewise.
2663 (expand_builtin_strncpy): Likewise.
2664 (expand_builtin_memset_args): Likewise.
2665 (expand_builtin_memcmp): Likewise.
2666 (expand_builtin_strcmp): Likewise.
2667 (expand_builtin_strncmp): Likewise.
2668 (get_builtin_sync_mem): Likewise.
2669 (fold_builtin_memset): Likewise.
2670 (fold_builtin_memory_op): Likewise.
2671 (expand_builtin_memory_chk): Likewise.
2672 * emit-rtl.c (get_mem_align_offset): Likewise.
2673 (set_mem_attributes_minus_bitpos): Likewise.
2674 * expr.c (expand_assignment): Likewise.
2675 (expand_expr_real_1): Likewise.
2676 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2677 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2678 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2679 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2680 * value-prof.c (gimple_stringops_transform): Likewise.
2682 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
2684 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2685 * doc/tm.texi: Regenerate.
2687 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
2690 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2691 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2692 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2693 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2694 shift target is unused.
2696 2011-08-10 Richard Guenther <rguenther@suse.de>
2698 PR tree-optimization/49937
2699 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2700 using get_object_alignment_1.
2702 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
2704 * config/i386/i386.c (ix86_emit_i387_round): New function.
2705 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2706 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2707 Use ix86_emit_i387_round to expand round function for i387 math.
2708 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2709 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2711 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2713 * config/sync.c: Move to ../libgcc.
2714 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2715 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2718 2011-08-09 Anatoly Sokolov <aesok@post.ru>
2720 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2721 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2722 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2723 Change 'from' and 'to' arguments type to reg_class_t.
2724 (TARGET_REGISTER_MOVE_COST): Define.
2726 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
2730 PR rtl-optimization/49990
2731 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2732 ignore classes which can not change mode.
2733 (find_costs_and_classes): Ditto.
2735 2011-08-09 Richard Guenther <rguenther@suse.de>
2737 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2738 information for ranges with only negative values.
2739 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2740 BIT_AND_EXPR handling to handle ranges with negative values.
2742 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
2744 * config/i386/i386.c: Remove traling spaces.
2745 * config/i386/sse.md: Likewise.
2746 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2747 (*fma_fmsub_<mode>): Likewise.
2748 (*fma_fnmadd_<mode>): Likewise.
2749 (*fma_fnmsub_<mode>): Likewise.
2751 2011-08-09 Nick Clifton <nickc@redhat.com>
2753 * config/rx/rx.md: Disable extender peepholes at -O3.
2755 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
2758 * config/i386/i386.md (reload_noff_load): New.
2759 (reload_noff_store): Ditto.
2760 * config/i386/i386.c (ix86_secondary_reload): Use
2761 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2762 double-word moves from/to non-offsetable addresses instead of
2763 generating XMM temporary.
2765 2011-08-09 Anatoly Sokolov <aesok@post.ru>
2767 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2769 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
2771 PR tree-optimization/50014
2772 * tree-vect-loop.c (vectorizable_reduction): Get def type before
2773 calling vect_get_vec_def_for_stmt_copy ().
2775 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
2777 PR rtl-optimization/49990
2778 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2779 ignore classes which can not change mode.
2780 (find_costs_and_classes): Ditto.
2782 2011-08-08 Richard Henderson <rth@redhat.com>
2785 * config/i386/i386.c (ix86_expand_prologue): Call
2786 for SEH target gen_prologue_use instead of gen_blockage
2789 2011-08-08 Martin Jambor <mjambor@suse.cz>
2792 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2795 2011-08-08 Diego Novillo <dnovillo@google.com>
2797 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2798 (DATA_STREAMER_H): New.
2799 (GIMPLE_STREAMER_H): New.
2800 (TREE_STREAMER_H): New.
2801 (STREAMER_HOOKS_H): New.
2802 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2803 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2804 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2805 (data-streamer.o): New.
2806 (data-streamer-in.o): New.
2807 (data-streamer-out.o): New.
2808 (gimple-streamer-in.o): New.
2809 (gimple-streamer-out.o): New.
2810 (streamer-hooks.o): New.
2811 (tree-streamer.o): New.
2812 (tree-streamer-in.o): New.
2813 (tree-streamer-out.o): New.
2814 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2815 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2816 GIMPLE_STREAMER_H and TREE_STREAMER_H.
2817 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2818 GIMPLE_STREAMER_H and TREE_STREAMER_H.
2819 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2820 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2821 (ipa-inline-analysis.o): Likewise.
2822 (ipa-pure-const.o): Likewise.
2823 * data-streamer-in.c: New.
2824 * data-streamer-out.c: New.
2825 * data-streamer.c: New.
2826 * data-streamer.h: New.
2827 * gimple-streamer-in.c: New.
2828 * gimple-streamer-out.c: New.
2829 * gimple-streamer.h: New.
2830 * ipa-inline-analysis.c: Include data-streamer.h.
2831 * ipa-prop.c: Include data-streamer.h.
2832 * ipa-pure-const.c: Include data-streamer.h.
2833 * lto-cgraph.c: Include data-streamer.h.
2834 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2835 (lto_input_widest_uint_uleb128): Likewise.
2836 (lto_input_sleb128): Likewise.
2837 (bp_unpack_var_len_unsigned): Likewise.
2838 (bp_unpack_var_len_int): Likewise.
2839 * lto-section-out.c (lto_output_uleb128_stream): Move to
2840 data-streamer-out.c.
2841 (lto_output_widest_uint_uleb128_stream): Likewise.
2842 (lto_output_sleb128_stream): Likewise.
2843 (bp_pack_var_len_unsigned): Likewise.
2844 (bp_pack_var_len_int): Likewise.
2845 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2846 (struct string_slot): Remove. Update all users.
2847 (lto_tag_check_set): Make extern.
2848 (lto_tag_check_range): Move to lto-streamer.h.
2849 (lto_tag_check): Likewise.
2850 (hash_string_slot_node): Remove. Update all users.
2851 (eq_string_slot_node): Remove. Update all users.
2852 (string_for_index): Move to data-streamer-in.c
2853 (input_string_internal): Likewise.
2854 (input_string_cst): Move to tree-streamer-in.c.
2855 (input_identifier): Likewise.
2856 (lto_input_string): Move to data-streamer-in.c
2857 (input_record_start): Move to data-streamer.h
2858 (canon_file_name): Use new definition of struct string_slot
2859 from data-streamer.h. Set S_SLOT.LEN.
2860 (lto_input_location): Make extern.
2861 (lto_input_chain): Move to tree-streamer-in.c.
2862 (lto_init_eh): Make extern.
2863 (input_phi): Move to gimple-streamer-in.c.
2864 (input_gimple_stmt): Likewise.
2865 (input_bb): Likewise.
2866 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2867 (unpack_ts_real_cst_value_fields): Likewise.
2868 (unpack_ts_fixed_cst_value_fields): Likewise.
2869 (unpack_ts_decl_common_value_fields): Likewise.
2870 (unpack_ts_decl_wrtl_value_fields): Likewise.
2871 (unpack_ts_decl_with_vis_value_fields): Likewise.
2872 (unpack_ts_function_decl_value_fields): Likewise.
2873 (unpack_ts_type_common_value_fields): Likewise.
2874 (unpack_ts_block_value_fields): Likewise.
2875 (unpack_ts_translation_unit_decl_value_fields): Likewise.
2876 (unpack_value_fields): Likewise.
2877 (lto_materialize_tree): Likewise.
2878 (lto_input_ts_common_tree_pointers): Likewise.
2879 (lto_input_ts_vector_tree_pointers): Likewise.
2880 (lto_input_ts_complex_tree_pointers): Likewise.
2881 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2882 (lto_input_ts_decl_common_tree_pointers): Likewise.
2883 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2884 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2885 (lto_input_ts_field_decl_tree_pointers): Likewise.
2886 (lto_input_ts_function_decl_tree_pointers): Likewise.
2887 (lto_input_ts_type_common_tree_pointers): Likewise.
2888 (lto_input_ts_type_non_common_tree_pointers): Likewise.
2889 (lto_input_ts_list_tree_pointers): Likewise.
2890 (lto_input_ts_vec_tree_pointers): Likewise.
2891 (lto_input_ts_exp_tree_pointers): Likewise.
2892 (lto_input_ts_block_tree_pointers): Likewise.
2893 (lto_input_ts_binfo_tree_pointers): Likewise.
2894 (lto_input_ts_constructor_tree_pointers): Likewise.
2895 (lto_input_ts_target_option): Likewise.
2896 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2897 (lto_input_tree_pointers): Likewise.
2898 (lto_get_pickled_tree): Likewise.
2899 (lto_get_builtin_tree): Likewise.
2900 (lto_read_tree): Likewise.
2901 (lto_input_integer_cst): Likewise.
2902 (lto_input_tree): Likewise.
2903 * lto-streamer-out.c: Include data-streamer.h,
2904 gimple-streamer.h and streamer-hooks.h.
2905 (struct string_slot): Move to data-streamer.h.
2906 (hash_string_slot_node): Likewise.
2907 (eq_string_slot_node): Likewise.
2908 (lto_string_index): Move to data-streamer-out.c.
2909 (lto_output_string_with_length): Likewise.
2910 (lto_output_string): Likewise.
2911 (output_string_cst): Move to tree-streamer-out.c.
2912 (output_identifier): Likewise.
2913 (output_zero): Move to data-streamer-out.c
2914 (output_uleb128): Likewise.
2915 (output_sleb128): Likewise.
2916 (output_record_start): Move to data-streamer.h
2917 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2918 (pack_ts_real_cst_value_fields): Likewise.
2919 (pack_ts_fixed_cst_value_fields): Likewise.
2920 (pack_ts_decl_common_value_fields): Likewise.
2921 (pack_ts_decl_wrtl_value_fields): Likewise.
2922 (pack_ts_decl_with_vis_value_fields): Likewise.
2923 (pack_ts_function_decl_value_fields): Likewise.
2924 (pack_ts_type_common_value_fields): Likewise.
2925 (pack_ts_block_value_fields): Likewise.
2926 (pack_ts_translation_unit_decl_value_fields): Likewise.
2927 (pack_value_fields): Likewise.
2928 (lto_output_chain): Likewise.
2929 (lto_output_ts_common_tree_pointers): Likewise.
2930 (lto_output_ts_vector_tree_pointers): Likewise.
2931 (lto_output_ts_complex_tree_pointers): Likewise.
2932 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2933 (lto_output_ts_decl_common_tree_pointers): Likewise.
2934 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2935 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2936 (lto_output_ts_field_decl_tree_pointers): Likewise.
2937 (lto_output_ts_function_decl_tree_pointers): Likewise.
2938 (lto_output_ts_type_common_tree_pointers): Likewise.
2939 (lto_output_ts_type_non_common_tree_pointers): Likewise.
2940 (lto_output_ts_list_tree_pointers): Likewise.
2941 (lto_output_ts_vec_tree_pointers): Likewise.
2942 (lto_output_ts_exp_tree_pointers): Likewise.
2943 (lto_output_ts_block_tree_pointers): Likewise.
2944 (lto_output_ts_binfo_tree_pointers): Likewise.
2945 (lto_output_ts_constructor_tree_pointers): Likewise.
2946 (lto_output_ts_target_option): Likewise.
2947 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2948 (lto_output_tree_pointers): Likewise.
2949 (lto_output_tree_header): Likewise.
2950 (lto_output_builtin_tree): Likewise.
2951 (lto_write_tree): Likewise.
2952 (lto_output_integer_cst): Likewise.
2953 (lto_output_tree): Likewise.
2954 (output_phi): Move to gimple-streamer-out.c.
2955 (output_gimple_stmt): Likewise.
2956 (output_bb): Likewise.
2957 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2958 (streamer_hooks): Move to streamer-hooks.c.
2959 (check_handled_ts_structures): Move to tree-streamer.c
2960 (lto_streamer_cache_add_to_node_array): Likewise.
2961 (lto_streamer_cache_insert_1): Likewise.
2962 (lto_streamer_cache_insert): Likewise.
2963 (lto_streamer_cache_insert_at): Likewise.
2964 (lto_streamer_cache_append): Likewise.
2965 (lto_streamer_cache_lookup): Likewise.
2966 (lto_streamer_cache_get): Likewise.
2967 (lto_record_common_node): Likewise.
2968 (lto_preload_common_nodes): Likewise.
2969 (lto_streamer_cache_create): Likewise.
2970 (lto_streamer_cache_delete): Likewise.
2971 (streamer_hooks_init): Move to streamer-hooks.c.
2972 * lto-streamer.h: Include diagnostic.h
2973 (struct output_block, struct lto_input_block,
2974 struct data_in, struct bitpack_d): Remove forward declarations.
2975 (struct bitpack_d): Move to data-streamer.h.
2976 (struct lto_streamer_cache_d): Move to tree-streamer.h.
2977 (struct streamer_hooks): Move to streamer-hooks.h.
2978 (bp_pack_var_len_unsigned): Move to data-streamer.h.
2979 (bp_pack_var_len_int): Likewise.
2980 (bp_unpack_var_len_unsigned): Likewise.
2981 (bp_unpack_var_len_int): Likewise.
2982 (lto_input_location): Declare.
2983 (lto_tag_check_set): Declare.
2984 (lto_init_eh): Declare.
2985 (lto_output_tree_ref): Declare.
2986 (lto_output_location): Declare.
2987 (bitpack_create): Move to data-streamer.h.
2988 (bp_pack_value): Likewise.
2989 (lto_output_bitpack): Likewise.
2990 (lto_input_bitpack): Likewise.
2991 (bp_unpack_value): Likewise.
2992 (lto_output_1_stream): Likewise.
2993 (lto_input_1_unsigned): Likewise.
2994 (lto_output_int_in_range): Likewise.
2995 (lto_input_int_in_range): Likewise.
2996 (bp_pack_int_in_range): Likewise.
2997 (bp_unpack_int_in_range): Likewise.
2998 (lto_output_enum): Likewise.
2999 (lto_input_enum): Likewise.
3000 (bp_pack_enum): Likewise.
3001 (bp_unpack_enum): Likewise.
3002 * streamer-hooks.c: New.
3003 * streamer-hooks.h: New.
3004 * tree-streamer-in.c: New.
3005 * tree-streamer-out.c: New.
3006 * tree-streamer.c: New.
3007 * tree-streamer.h: New.
3009 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3011 * gthr-posix95.h: Remove.
3012 * gthr.h [_PTHREADS95]: Remove.
3013 * configure.ac (enable_threads): Remove posix95.
3014 * configure: Regenerate.
3015 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3017 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
3020 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3022 (ix86_print_operand_address): Handle zero-extended addresses.
3023 (memory_address_length): Add length of addr32 prefix for
3024 zero-extended addresses.
3025 (ix86_secondary_reload): Handle moves to/from double-word general
3026 registers from/to zero-extended addresses.
3027 * config/i386/predicates.md (lea_address_operand): Reject
3028 zero-extended operands.
3030 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
3033 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3035 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3036 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3038 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3039 (_Unwind_Context_Reg_Val): Likewise.
3040 (_Unwind_Get_Unwind_Word): Likewise.
3041 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3042 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3043 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3044 for EXTENDED_CONTEXT_BIT.
3045 (__frame_state_for): Likewise.
3046 (uw_init_context_1): Likewise.
3047 (_Unwind_GetGR): Updated.
3048 (_Unwind_SetGR): Likewise.
3049 (_Unwind_GetGRPtr): Likewise.
3050 (_Unwind_SetGRPtr): Likewise.
3051 (_Unwind_SetGRValue): Likewise.
3052 (_Unwind_GRByValue): Likewise.
3053 (uw_install_context_1): Likewise.
3055 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3056 ASSUME_EXTENDED_UNWIND_CONTEXT.
3057 * doc/tm.texi: Regenerated.
3059 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3061 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3063 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3065 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3067 (DEC Alpha Options, -mtune): Likewise.
3068 (MIPS Options, -march): native is supported on IRIX.
3070 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3072 * config/sparc/driver-sparc.c: New file.
3073 * config/sparc/x-sparc: New file.
3074 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3075 * config/sparc/sparc.opt (native): New value for enum processor_type.
3076 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3077 * config/sparc/sparc.c (sparc_option_override): Abort if
3078 PROCESSOR_NATIVE gets here.
3079 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3080 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3081 DRIVER_SELF_SPECS): Define.
3082 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3083 (SPARC Options, -mtune): Likewise.
3084 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3086 * configure: Regenerate.
3087 * Makefile.in (EXTRA_GCC_LIBS): Set.
3088 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3089 (cpp$(exeext)): Likewise.
3091 2011-08-08 Richard Guenther <rguenther@suse.de>
3093 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3095 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
3098 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
3100 PR tree-optimization/50005
3101 * ipa-inline-analysis (remap_predicate): Add cast to
3102 silence signed/unsigned comparison warning.
3104 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3106 * modulo-sched.c (get_sched_window): Use a table for the debug output.
3107 Print the current ii.
3108 (sms_schedule_by_order): Reduce whitespace in dump line.
3110 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3112 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3113 and one loop for successors. Fix upper bound of memory range.
3115 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3118 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3119 (TARGET_INSTANTIATE_DECLS): New define.
3121 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
3122 Mikael Morin <mikael.morin@sfr.fr>
3124 * Makefile.in (INCLUDES_FOR_TARGET): New.
3125 (LIBGCC2_CFLAGS): Use it.
3126 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3128 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3130 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3131 frame->save_regs_using_mov calculation.
3133 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3135 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3136 * config/i386/sse.md (castmode): New mode attribute.
3137 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3138 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3140 2011-08-05 Jan Hubicka <jh@suse.cz>
3143 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3145 2011-08-05 Jan Hubicka <jh@suse.cz>
3148 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3150 (create_emultls_var):New function.
3151 (ipa_lower_emutls): Handle aliases correctly.
3153 2011-08-05 Jan Hubicka <jh@suse.cz>
3156 * ipa-inline.c (recursive_inlining): Look through aliases.
3158 2011-08-05 Jason Merrill <jason@redhat.com>
3160 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3161 declarations to beginning of function.
3163 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
3165 PR rtl-optimization/49900
3166 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3167 ensure basic blocks stay in the same order.
3169 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
3171 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3173 (s390_expand_atomic): Same.
3175 2011-08-05 Richard Henderson <rth@redhat.com>
3178 * dwarf2cfi.c (scan_insn_after): Split out of ...
3179 (scan_trace): ... here. Correctly place notes wrt sequences.
3181 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
3182 Richard Henderson <rth@redhat.com>
3185 * expr.c (fixup_args_size_notes): Look through no-op moves.
3187 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
3189 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
3190 of "m" for operand 0. Add type and mode attribute.
3191 (*pushxf_nointeger"): Use "<" constraint for operand 0.
3192 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
3193 constraint instead of "o" for opreand 1.
3194 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
3195 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
3196 operand 0, alternative 4.
3197 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
3199 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
3201 * config/i386/predicates.md (lea_address_operand): Rename from
3202 no_seg_address_operand.
3203 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
3204 (*lea_1_zext): Ditto.
3206 (*lea_2_zext): Ditto.
3208 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
3210 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
3211 parts.base and parts.index.
3212 * config/i386/predicates.md (aligned_operand): Ditto.
3213 (cmpxchg8b_pic_memory_operand): Ditto.
3215 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3217 * config/soft-fp: Move to ../libgcc.
3218 * Makefile.in (SFP_MACHINE): Remove.
3219 (libgcc-support): Remove $(SFP_MACHINE) dependency.
3220 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
3221 * config/arm/t-arm-softfp: Move to
3222 ../libgcc/config/arm/t-softfp.
3223 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
3224 * config/c6x/t-c6x-softfp: Remove.
3225 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
3226 * config/i386/t-fprules-softfp: Move to
3227 ../libgcc/config/t-softfp-tf.
3228 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
3229 * config/ia64/t-fprules-softfp: Remove.
3230 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
3231 * config/lm32/t-fprules-softfp: Remove.
3232 * config/moxie/sfp-machine.h: Remove.
3233 * config/moxie/t-moxie-softfp: Remove.
3234 * config/rs6000/darwin-ldouble-format: Move to
3235 ../libgcc/config/rs6000/ibm-ldouble-format.
3236 * config/rs6000/darwin-ldouble.c: Move to
3237 ../libgcc/config/rs6000/ibm-ldouble.c
3238 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
3239 * config/rs6000/libgcc-ppc64.ver: Likewise.
3240 * config/rs6000/sfp-machine.h: Likewise.
3241 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
3242 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
3243 (LIB2FUNCS_EXTRA): Remove.
3244 (TARGET_LIBGCC2_CFLAGS): Remove.
3245 * config/rs6000/t-aix52: Likewise
3246 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3247 $(srcdir)/config/rs6000/darwin-ldouble.c.
3248 (SHLIB_MAPFILES): Remove.
3249 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
3250 $(srcdir)/config/rs6000/darwin-ldouble.c.
3251 * config/rs6000/t-fprules-softfp: Move to
3252 ../libgcc/config/t-softfp-sfdf.
3253 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
3254 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
3255 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
3256 $(srcdir)/config/rs6000/darwin-ldouble.c.
3257 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
3258 * config/score/t-score-softfp: Remove.
3259 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
3260 soft-fp/t-softfp from tmake_file.
3261 (arm*-*-uclinux*): Likewise.
3262 (arm*-*-ecos-elf): Likewise.
3263 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
3264 (arm*-*-rtems*): Likewise.
3265 (arm*-*-elf): Likewise.
3266 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
3268 (moxie-*-uclinux*): Likewise.
3269 (moxie-*-rtems*): Likewise.
3270 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
3272 (lm32-*-rtems*): Likewise.
3273 (lm32-*-uclinux*): Likewise.
3274 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
3275 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3276 (powerpc-*-linux*, powerpc64-*-linux*): Remove
3277 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
3278 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
3280 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
3282 (tic6x-*-uclinux): Likewise.
3283 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
3284 soft-fp/t-softfp from tmake_file.
3285 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
3286 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
3287 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
3288 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
3289 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
3291 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3293 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
3294 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
3295 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
3297 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
3298 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
3300 * config/arm/t-vxworks: Likewise.
3301 * config/arm/t-wince-pe: Likewise.
3302 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
3303 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3304 * config/bfin/t-bfin-elf: Likewise.
3305 * config/bfin/t-bfin-linux: Likewise.
3306 * config/bfin/t-bfin-uclinux: Likewise.
3307 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
3309 * config/fr30/t-fr30: Likewise.
3310 * config/frv/t-frv: Likewise.
3311 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
3312 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3313 * config/m32c/t-m32c: Likewise.
3314 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
3315 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3316 * config/mcore/t-mcore: Likewise.
3317 * config/mep/t-mep: Likewise.
3318 * config/microblaze/t-microblaze: Likewise.
3319 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
3320 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3321 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
3322 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3323 * config/mn10300/t-linux: Remove.
3324 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3325 * config/pdp11/t-pdp11: Likewise.
3326 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
3327 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
3328 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3329 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
3330 * config/rs6000/t-aix52: Likewise.
3331 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
3332 $(srcdir)/config/rs6000/ppc64-fp.c.
3333 * config/rs6000/t-fprules-fpbit: Remove.
3334 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
3335 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3336 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
3337 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3338 * config/sparc/t-elf: Likewise.
3339 * config/sparc/t-leon: Likewise.
3340 * config/sparc/t-leon3: Likewise.
3341 * config/spu/t-spu-elf: Likewise.
3342 (DPBIT_FUNCS): Remove.
3343 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
3344 * config/v850/t-v850: Likewise.
3345 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
3346 (avr-*-*): Likewise.
3347 (h8300-*-rtems*): Set libgcc_tm_file.
3348 (h8300-*-elf*): Likewise.
3349 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
3351 (powerpc-*-eabisim*): Likewise.
3352 (powerpc-*-elf*): Likewise.
3353 (powerpc-*-eabialtivec*): Likewise.
3354 (powerpc-xilinx-eabi*): Likewise.
3355 (powerpc-*-eabi*): Likewise.
3356 (powerpc-*-rtems*): Likewise.
3357 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
3358 (powerpcle-*-elf*): Likewise.
3359 (powerpcle-*-eabisim*): Likewise.
3360 (powerpcle-*-eabi*): Likewise.
3361 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
3362 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
3363 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
3366 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3368 * Makefile.in (UNWIND_H): Remove.
3369 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
3370 ../libgcc/Makefile.in.
3371 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
3372 (LIBUNWINDDEP): Remove.
3373 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
3374 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
3375 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
3376 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
3377 Don't copy $(UNWIND_H).
3378 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
3379 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
3380 * aclocal.m4: Regenerate.
3381 * configure: Regenerate.
3382 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
3383 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
3384 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
3385 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
3386 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
3387 * config/arm/libunwind.S, config/arm/pr-support.c,
3388 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
3389 ../libgcc/config/arm.
3390 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3391 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3392 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3393 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3394 ($(T)frvend$(objext)): Likewise.
3395 * config/ia64/t-glibc (LIB2ADDEH): Remove.
3396 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3397 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3398 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3399 ../libgcc/config/ia64.
3400 * config/ia64/t-hpux (LIB2ADDEH): Remove.
3401 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3402 * config/ia64/t-vms (LIB2ADDEH): Remove.
3403 * config/ia64/vms.h (UNW_IVMS_MODE,
3404 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3405 * config/picochip/t-picochip (LIB2ADDEH): Remove.
3406 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3407 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3408 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3409 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3410 $(srcdir)/../libgcc to refer to unwinder sources.
3411 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3412 * config/t-darwin (LIB2ADDEH): Remove.
3413 * config/t-freebsd (LIB2ADDEH): Remove.
3414 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3415 * config/t-libunwind-elf: Move to ../libgcc/config.
3416 * config/t-linux (LIB2ADDEH): Remove.
3417 * config/t-sol2 (LIB2ADDEH): Remove.
3418 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3419 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3421 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
3423 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3425 * doc/invoke.texi: Document core-avx-i.
3427 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3429 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3431 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
3433 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3434 result of multiple results reduction when extracting the final
3435 value using scalar code.
3437 2011-08-05 Richard Guenther <rguenther@suse.de>
3439 PR tree-optimization/49984
3440 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3442 2011-08-05 Richard Guenther <rguenther@suse.de>
3444 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3445 return true for constant integer ranges.
3446 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3447 BIT_IOR_EXPR handling.
3449 2011-08-04 Kai Tietz <ktietz@redhat.com>
3451 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3452 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3454 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
3456 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3457 pattern def statement, and its access macro.
3458 (NUM_PATTERNS): Set to 5.
3459 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3460 pattern def statement.
3461 (vect_transform_loop): Likewise.
3462 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3463 function vect_recog_over_widening_pattern ().
3464 (vect_operation_fits_smaller_type): New function.
3465 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3467 (vect_pattern_recog_1): Move the code that marks pattern
3468 statements to vect_mark_pattern_stmts (), and call it. Update
3470 * tree-vect-stmts.c (vect_supportable_shift): New function.
3471 (vect_analyze_stmt): Handle pattern def statement.
3472 (new_stmt_vec_info): Initialize pattern def statement.
3474 2011-08-04 Richard Henderson <rth@redhat.com>
3477 * config/i386/i386.c (ix86_expand_call): Don't create nested
3478 PARALLELs for TARGET_VZEROUPPER.
3479 (ix86_split_call_vzeroupper): Fix extraction of the original call.
3480 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3481 recognize nested PARALLELs.
3482 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3483 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3484 *sibcall_value_pop_vzeroupper): Likewise.
3486 2011-08-04 Richard Henderson <rth@redhat.com>
3489 * calls.c (expand_call): Use fixup_args_size_notes for
3491 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3492 in non-standard modes.
3494 2011-08-04 Jakub Jelinek <jakub@redhat.com>
3496 * gcc.c (self_spec): New variable.
3497 (static_specs): Add self_spec.
3498 (main): Call do_self_spec on "self_spec" specs after reading
3499 user specs files. Move compare_debug handling right after that.
3501 2011-08-04 Richard Guenther <rguenther@suse.de>
3503 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3504 (value_range_nonnegative_p): New function.
3505 (ssa_name_nonnegative_p): Use it.
3506 (value_range_constant_singleton): New function.
3507 (op_with_constant_singleton_value_range): Use it.
3508 (extract_range_from_binary_expr_1): New function, split out from ...
3509 (extract_range_from_binary_expr): ... this. Remove fallback
3510 constant folding done here.
3512 2011-08-04 Richard Guenther <rguenther@suse.de>
3514 PR tree-optimization/49806
3515 * tree-vrp.c (op_with_boolean_value_range_p): New function.
3516 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
3517 a new statement for a final conversion to bool.
3519 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
3521 * gengtype-state.c: Include "bconfig.h" if
3522 GENERATOR_FILE is defined, "config.h" otherwise.
3523 * gengtype.c: Likewise.
3524 * gengtype-lex.l: Likewise.
3525 * gengtype-parse.c: Likewise.
3526 * Makefile.in (gengtype-lex.o-warn): New variable.
3527 (plugin_resourcesdir): Likewise.
3528 (plugin_bindir): Likewise.
3529 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3530 (MOSTLYCLEANFILES): Add gengtype$(exeext).
3531 (native): Depend on gengtype$(exeext) is $enable_plugin
3533 (gtype.state): Depend on s-gtype. Use temporary file.
3534 (gengtype-lex.o): New rule.
3535 (gengtype-parse.o): Likewise.
3536 (gengtype-state.o): Likewise.
3537 (gengtype$(exeext)): Likewise.
3538 (install-gengtype): Likewise.
3539 (gengtype.o): Likewise.
3540 (build/gengtype.o): Depend on version.h.
3541 (build/gengtype-state): Depend on double-int.h, version.h,
3542 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3543 (install-plugin): Depend on install-gengtype.
3545 2011-08-04 Jakub Jelinek <jakub@redhat.com>
3548 * tree.h (init_attributes): New prototype.
3549 * attribs.c (init_attributes): No longer static.
3551 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3553 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3556 2011-08-03 David Li <davidxl@google.com>
3558 * tree-optimize.c (execute_fixup_cfg): Fix up entry
3559 outgoing edge counts after inlining.
3561 2011-08-03 David Li <davidxl@google.com>
3563 * profile.c (compute_branch_probabilities): Compute
3564 function frequency after profile annotation.
3566 2011-08-04 Alan Modra <amodra@gmail.com>
3568 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3569 use_backchain_to_restore_sp initialisation.
3570 (rs6000_legitimate_offset_address_p): Simplify offset test.
3572 2011-08-03 Richard Henderson <rth@redhat.com>
3574 * config/spu/spu.md: Use define_c_enum instead of define_constants.
3575 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3578 2011-08-03 Richard Henderson <rth@redhat.com>
3581 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3583 2011-08-03 Jakub Jelinek <jakub@redhat.com>
3585 PR tree-optimization/49948
3586 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3588 2011-08-03 Anatoly Sokolov <aesok@post.ru>
3590 * config/m32c/m32c.c (class_sizes): Remove.
3591 (reduce_class): Change arguments and return type to reg_class_t.
3592 Change type cc var to HARD_REG_SET. Change type best var to
3593 reg_class_t. Change type best_size var to unsigned int. Remove
3594 initialization class_sizes var. Use reg_class_size array instead
3595 of class_sizes. Use reg_class_contents array instead
3598 2011-08-03 Richard Guenther <rguenther@suse.de>
3601 * fold-const.c (fold_binary_loc): Only associate
3602 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3605 2011-08-03 Alan Modra <amodra@gmail.com>
3607 PR rtl-optimization/49941
3608 * jump.c (mark_jump_label): Comment.
3609 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3610 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3611 (mark_used_flags): Don't mark RETURN.
3613 2011-08-03 Richard Guenther <rguenther@suse.de>
3615 PR tree-optimization/49938
3616 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3617 deal with a POLYNOMIAL_CHREC.
3619 2011-08-03 Revital Eres <revital.eres@linaro.org>
3621 * modulo-sched.c (calculate_stage_count,
3622 calculate_must_precede_follow, get_sched_window,
3623 try_scheduling_node_in_cycle, remove_node_from_ps): Add
3625 (update_node_sched_params, set_must_precede_follow, optimize_sc):
3627 (reset_sched_times): Call update_node_sched_params.
3628 (sms_schedule): Call optimize_sc.
3629 (get_sched_window): Change function arguments.
3630 (sms_schedule_by_order): Update call to get_sched_window.
3631 Call set_must_precede_follow.
3632 (calculate_stage_count): Add function argument.
3634 2011-08-02 Richard Henderson <rth@redhat.com>
3638 * reg-notes.def (REG_ARGS_SIZE): New.
3639 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3640 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3641 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3642 different stack levels.
3643 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3644 (maybe_move_args_size_note): New.
3645 (combine_stack_adjustments_for_block): Use it.
3646 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3647 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3648 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3649 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3651 (queued_args_size): Remove.
3652 (add_cfi_args_size): Assert size is non-negative.
3653 (stack_adjust_offset, dwarf2out_args_size): Remove.
3654 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3655 (notice_args_size, notice_eh_throw): New.
3656 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3657 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3658 (dwarf2out_frame_debug_cfa_offset): Likewise.
3659 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
3660 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3661 (change_cfi_row): Don't emit args_size.
3662 (maybe_record_trace_start_abnormal): Split out from ...
3663 (maybe_record_trace_start): Here. Set args_size_undefined.
3664 (create_trace_edges): Update to match.
3665 (scan_trace): Handle REG_ARGS_SIZE.
3666 (connect_traces): Connect args_size between EH insns.
3667 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3668 * explow.c (suppress_reg_args_size): New.
3669 (adjust_stack_1): Split out from ...
3670 (adjust_stack): ... here.
3671 (anti_adjust_stack): Use it.
3672 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3673 * expr.c (mem_autoinc_base): New.
3674 (fixup_args_size_notes): New.
3675 (emit_single_push_insn_1): Rename from emit_single_push_insn.
3676 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
3677 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3678 * reload1.c (reload_as_needed): Likewise.
3679 * rtl.h (fixup_args_size_notes): Declare.
3681 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
3684 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3686 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3687 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3689 2011-08-02 Richard Henderson <rth@redhat.com>
3691 * config/h8300/h8300.c (push, pop): Return the insn.
3692 (h8300_swap_into_er6): Generate correct unwind info.
3693 (h8300_swap_out_of_er6): Likewise.
3694 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3695 complex cfa expression.
3696 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3698 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
3700 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3702 2011-08-02 Richard Henderson <rth@redhat.com>
3705 * config/h8300/h8300.c (h8300_move_ok): New.
3706 * config/h8300/h8300-protos.h: Declare it.
3707 * config/h8300/h8300.md (P): New mode iterator.
3708 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3709 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3710 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3711 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3712 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3713 and pushqi1_h8300hs_normal; use PRE_MODIFY and
3714 register_no_sp_elim_operand.
3715 (*pushhi1_h8300hs_<P>): Similarly.
3716 (pushqi1, pushhi1, pushhi1_h8300): Remove.
3717 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3719 2011-08-02 Richard Henderson <rth@redhat.com>
3722 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3724 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3726 * c-parser.c (enum c_parser_prec): New enum, moved from within
3727 c_parser_binary_expression.
3728 (c_parser_binary_expression): Add PREC argument. Stop parsing
3729 if operator has lower or equal precedence than PREC.
3730 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3732 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3733 Adjust c_finish_omp_atomic caller.
3734 (c_parser_omp_taskyield): New function.
3735 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3736 (c_parser_omp_clause_name): Handle final and mergeable clauses.
3737 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3739 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3740 and PRAGMA_OMP_CLAUSE_MERGEABLE.
3741 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3742 (c_parser_omp_clause_reduction): Handle min and max.
3743 * c-typeck.c (c_finish_omp_clauses): Don't complain about
3744 const qualified predetermined vars in firstprivate clause.
3745 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3746 Handle MIN_EXPR and MAX_EXPR.
3747 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3748 and OMP_CLAUSE_MERGEABLE.
3749 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3750 and OMP_ATOMIC_CAPTURE_NEW.
3751 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3752 OMP_CLAUSE_MERGEABLE.
3753 (omp_clause_code_name): Likewise.
3754 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3755 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3756 and OMP_CLAUSE_MERGEABLE.
3757 (OMP_CLAUSE_FINAL_EXPR): Define.
3758 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3759 OMP_CLAUSE_MERGEABLE.
3760 (expand_task_call): Likewise.
3761 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3762 (expand_omp_atomic_fetch_op): Handle cases where old or new
3763 value is needed afterwards.
3764 (expand_omp_atomic): Call expand_omp_atomic_load resp.
3765 expand_omp_atomic_store.
3766 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3767 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3768 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3769 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3770 * tree-nested.c (convert_nonlocal_omp_clauses,
3771 convert_local_omp_clauses): Likewise.
3772 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3773 OMP_ATOMIC_CAPTURE_NEW): New.
3774 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3775 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3777 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3778 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3779 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3781 2011-08-02 Kai Tietz <ktietz@redhat.com>
3783 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3785 (ssa_forward_propagate_and_combine): Interprete result of
3786 forward_propagate_comparison.
3787 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3788 boolean-typed operands for comparisons.
3790 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
3792 * config/avr/libgcc.S: Gather related function in the
3794 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3795 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3797 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3798 __udivmodsi4, __divmodsi4, __prologue_saves__,
3799 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3800 __do_copy_data, __do_clear_bss, __do_global_ctors,
3801 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3803 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
3806 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3807 (stack_protect_test): The pattern compares ptr_mode value.
3809 2011-08-02 Alan Modra <amodra@gmail.com>
3811 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3812 note for save_LR_around_toc_setup sequence.
3814 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
3816 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3818 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
3819 Joseph Myers <joseph@codesourcery.com>
3821 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3822 * hwint.c: Include diagnostic-core.h.
3824 (gcd): Moved here...
3827 (least_common_multiple): Moved here...
3828 * hwint.h (gcd): ... from here.
3829 (least_common_multiple): ... from here.
3830 (HOST_WIDE_INT_MIN): New.
3831 (HOST_WIDE_INT_MAX): New.
3832 (abs_hwi): Declared.
3834 (pos_mul_hwi): Declared.
3835 (mul_hwi): Declared.
3836 (least_common_multiple): Declared.
3837 * omega.c (check_pos_mul): Removed.
3838 (check_mul): Removed.
3839 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3840 mul_hwi instead of check_mul.
3842 2011-08-01 Richard Henderson <rth@redhat.com>
3845 * config/avr/avr.h (PUSH_ROUNDING): New.
3846 * config/avr/avr.md (pushqi1): Rename from *pushqi.
3847 (*pushhi, *pushsi, *pushsf): Remove.
3848 (MPUSH): New mode iterator.
3849 (push<MPUSH>1): New expander.
3851 2011-08-01 Anatoly Sokolov <aesok@post.ru>
3853 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3854 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3855 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3856 mmix_preferred_output_reload_class): Remove.
3857 * config/mmix/mmix.c (mmix_preferred_reload_class,
3858 mmix_preferred_output_reload_class): Make static. Change rclass
3859 argument and return type to reg_class_t.
3860 (TARGET_PREFERRED_RELOAD_CLASS,
3861 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3863 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
3865 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3868 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
3871 * config/i386/i386.md (PTR): New.
3872 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3873 (stack_protect_test): Likewise.
3874 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3875 (stack_tls_protect_set_<mode>): Likewise.
3876 (stack_tls_protect_test_<mode>): Likewise.
3878 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
3881 * config/i386/i386.c (ix86_address_subreg_operand): New.
3882 (ix86_decompose_address): Use ix86_address_subreg_operand.
3883 (ix86_legitimate_address_p): Do not assert that subregs satisfy
3884 register_no_elim_operand in DImode.
3886 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
3888 PR tree-optimization/49926
3889 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3890 in a chain doesn't have uses both inside and outside the loop.
3892 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
3894 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3895 * config/avr/avr-devices.c (avr_mcu_types): Use it.
3896 * config/avr/avr-mcus.def (AVR_MCU): Use it.
3897 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3898 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3899 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3900 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3901 to detect if XJMP must not be skipped.
3903 2011-08-02 Alan Modra <amodra@gmail.com>
3905 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3907 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3908 (rs6000_emit_prologue): Don't prematurely return when
3909 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
3910 save_toc_in_prologue case.
3911 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3914 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
3916 * config/avr/avr-devices.c: Delete SVN property svn:executable.
3917 * config/avr/predicates.md: Ditto.
3918 * config/avr/driver-avr.c: Ditto.
3919 * config/avr/genopt.sh: Set SVN property svn:executable to *.
3921 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
3923 * calls.c (emit_library_call_value_1): Declare size only if
3924 BLOCK_REG_PADDING is defined.
3926 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
3929 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3930 (x86_64-*-*): Likewise.
3931 * config/i386/i386.opt (mlzcnt): New.
3932 * config/i386/abmintrin.h: File removed.
3933 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3934 * config/i386/lzcntintrin.h: ... here. New file.
3935 (__lzcnt): Rename to ...
3936 (__lzcnt32): ... this.
3937 * config/i386/bmiintrin.h (head): Update copyright year.
3938 (__lzcnt_u16): Removed.
3939 (__lzcnt_u32): Likewise.
3940 (__lzcnt_u64): Likewise.
3941 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3942 is defined, remove abmintrin.h.
3943 * config/i386/cpuid.h (bit_LZCNT): New.
3944 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3946 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3947 __LZCNT__ if needed.
3948 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3949 (ix86_option_override_internal): Handle LZCNT option.
3950 (ix86_valid_target_attribute_inner_p): Likewise.
3951 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3952 * config/i386/i386.h (TARGET_LZCNT): New.
3953 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3954 * config/i386/i386.md (clz<mode>2): Update insn constraint.
3955 (clz<mode>2_lzcnt): Likewise.
3956 * doc/invoke.texi: Mention -mlzcnt option.
3957 * doc/extend.texi: Likewise.
3959 2011-08-01 Julian Brown <julian@codesourcery.com>
3961 * configure.ac (fixed-point): Add ARM support.
3962 * configure: Regenerate.
3963 * config/arm/arm.c (arm_fixed_mode_set): New struct.
3964 (arm_set_fixed_optab_libfunc): New.
3965 (arm_set_fixed_conv_libfunc): New.
3966 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3968 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3969 return values in SImode.
3970 (arm_return_in_msb): Return fixed-point types in the msb.
3971 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3973 (arm_scalar_mode_supported_p): Support fixed-point modes.
3974 (arm_vector_mode_supported_p): Support vector fixed-point modes.
3975 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3976 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3977 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3978 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3979 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3981 (qaddsub_suf): New mode attribute.
3982 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3984 * config/arm/predicates.md (sat_shift_operator): New predicate.
3985 * config/arm/arm-fixed.md: New.
3986 * config/arm/arm.md: Include arm-fixed.md.
3987 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3989 2011-08-01 Julian Brown <julian@codesourcery.com>
3991 * calls.c (emit_library_call_value_1): Support padding for libcall
3992 arguments and return values.
3993 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3994 downwards in big-endian mode.
3996 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3999 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4000 * config/sol2-protos.h: Likewise.
4001 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4003 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4004 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4006 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4008 2011-08-01 Julian Brown <julian@codesourcery.com>
4010 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4012 2011-08-01 Julian Brown <julian@codesourcery.com>
4014 * final.c (output_addr_const): Print fixed-point constants as
4017 2011-08-01 Richard Guenther <rguenther@suse.de>
4019 * stor-layout.c (initialize_sizetypes): Properly sign-extend
4020 bitsiztype TYPE_MAX_VALUE.
4022 2011-08-01 Julian Brown <julian@codesourcery.com>
4024 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4027 2011-07-31 Richard Henderson <rth@redhat.com>
4029 * config/h8300/crti.asm: Add flags to .section directive.
4030 * config/h8300/crtn.asm: Likewise.
4032 2011-07-31 Richard Henderson <rth@redhat.com>
4034 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4035 * tree.c (build_common_tree_nodes): Likewise.
4037 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4040 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4041 (divsi3_i1): Likewise.
4043 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4045 PR tree-optimization/49749
4046 * tree-ssa-reassoc.c (get_rank): New forward declaration.
4047 (PHI_LOOP_BIAS): New macro.
4048 (phi_rank): New function.
4049 (loop_carried_phi): Likewise.
4050 (propagate_rank): Likewise.
4051 (get_rank): Add calls to phi_rank and propagate_rank.
4053 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
4055 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4057 (PTRDIFF_TYPE): Likewise.
4059 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
4062 * config/i386/i386.md (strset): Do not expand strset_singleop
4063 when %eax or $edi are fixed.
4064 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4065 (*strsetsi_1): Ditto.
4066 (*strsethi_1): Ditto.
4067 (*strsetqi_1): Ditto.
4068 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4069 (*rep_stossi): Ditto.
4070 (*rep_stosqi): Ditto.
4071 (*strlenqi_1): Ditto.
4072 (cmpstrnsi): Also fail when %ecx is fixed.
4073 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4074 (*cmpstrnqi_1): Ditto.
4075 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4076 (*strmovsi_1): Ditto.
4077 (*strmovhi_1): Ditto.
4078 (*strmovqi_1): Ditto.
4079 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4080 (*rep_movsi): Ditto.
4081 (*rep_movqi): Ditto.
4083 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
4086 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4087 Disable instruction scheduling for non-ColdFire targets.
4088 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4090 2011-07-31 Revital Eres <revital.eres@linaro.org>
4092 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4093 of anti-dep edge from a branch.
4094 (add_cross_iteration_register_deps): Create anti-dep edge from
4097 2011-07-31 Revital Eres <revital.eres@linaro.org>
4099 * modulo-sched.c: Change comment.
4100 (reset_sched_times): Fix print message.
4101 (print_partial_schedule): Add print info.
4103 2011-07-31 Tom de Vries <tom@codesourcery.com>
4106 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4107 get_object_alignment and TYPE_ALIGN.
4109 2011-07-30 Tom de Vries <tom@codesourcery.com>
4112 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4113 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4115 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4117 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4119 (cpu_types): New array.
4120 (cputype): New function.
4121 (host_detect_local_cpu): Only define buf, f if !__sgi__.
4122 Use scaninvent instead of /proc/cpuinfo if __sgi__.
4123 * config.host: Also use driver-native.o, mips/x-native on
4125 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4126 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4127 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4129 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4133 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4134 in nested parallel and outer is a gimple_reg, mark it as addressable
4135 and set its bit in task_shared_vars bitmap too.
4137 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4139 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4141 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4143 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4144 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4145 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4146 AMASK_LOCKPFTCHOK): Define.
4147 (host_detect_local_cpu): Remove buf, f, cpu_names.
4148 Define cpu_types, implver, amask.
4149 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4151 * config.host: Also use driver-alpha.o, alpha/x-alpha on
4153 * config/alpha/osf5.h [__alpha__ || __alpha]
4154 (host_detect_local_cpu): Declare.
4155 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4156 (DRIVER_SELF_SPECS): Define.
4158 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4161 * config/i386/i386.md (*load_tp_x32): New.
4162 (*load_tp_x32_zext): Ditto.
4163 (*add_tp_x32): Ditto.
4164 (*add_tp_x32_zext): Ditto.
4165 (*load_tp_<mode>): Disable for TARGET_X32 targets.
4166 (*add_tp_<mode>): Ditto.
4167 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4168 ptr_mode and convert to Pmode if needed.
4170 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
4173 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4174 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4175 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4176 Add X to register footprint: Clobber r26/r27.
4178 2011-07-29 Richard Guenther <rguenther@suse.de>
4180 * builtins.c (fold_builtin_signbit): Build the comparison
4183 2011-07-29 Richard Guenther <rguenther@suse.de>
4185 PR tree-optimization/49893
4186 * tree-predcom.c (suitable_reference_p): Volatile references
4189 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
4192 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4193 (__ctzsi2): Result for 0 may be undefined.
4194 (__ctzhi2): Result for 0 may be undefined.
4195 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4196 (__popcountsi2): Ditto. And don't clobber r26.
4197 (__popcountdi2): Ditto. And don't clobber r27.
4198 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4199 (parityhi2): New expand.
4200 (paritysi2): New expand.
4201 (popcounthi2): New expand.
4202 (popcountsi2): New expand.
4203 (clzhi2): New expand.
4204 (clzsi2): New expand.
4205 (ctzhi2): New expand.
4206 (ctzsi2): New expand.
4207 (ffshi2): New expand.
4208 (ffssi2): New expand.
4209 (copysignsf3): New insn.
4210 (bswapsi2): New expand.
4211 (*parityhi2.libgcc): New insn.
4212 (*parityqihi2.libgcc): New insn.
4213 (*paritysihi2.libgcc): New insn.
4214 (*popcounthi2.libgcc): New insn.
4215 (*popcountsi2.libgcc): New insn.
4216 (*popcountqi2.libgcc): New insn.
4217 (*popcountqihi2.libgcc): New insn-and-split.
4218 (*clzhi2.libgcc): New insn.
4219 (*clzsihi2.libgcc): New insn.
4220 (*ctzhi2.libgcc): New insn.
4221 (*ctzsihi2.libgcc): New insn.
4222 (*ffshi2.libgcc): New insn.
4223 (*ffssihi2.libgcc): New insn.
4224 (*bswapsi2.libgcc): New insn.
4226 2011-07-29 Richard Guenther <rguenther@suse.de>
4228 * tree-vrp.c (get_value_range): Only set parameter default
4229 definitions to varying, leave others at undefined.
4230 (extract_range_from_binary_expr): Fix undefined handling.
4231 (vrp_visit_phi_node): Handle merged undefined state.
4233 2011-07-29 Wei Guozhi <carrot@google.com>
4235 PR rtl-optimization/49799
4236 * combine.c (make_compound_operation): Check if the bit field is valid
4237 before change it to bit field extraction.
4239 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
4241 PR rtl-optimization/49891
4242 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
4243 newly created returnjumps.
4245 2011-07-28 DJ Delorie <dj@redhat.com>
4247 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
4248 local frame in a naked function, and produce a suitable error for
4251 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
4252 registers to be reloaded in HI classes when the target is HI.
4254 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
4256 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
4257 bound_one, bound_two.
4259 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
4262 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
4264 (translate_clast): Same.
4265 (translate_clast_assignment): New.
4267 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
4269 PR tree-optimization/49876
4270 * sese.c (rename_uses): Do not return false on gloog_error: set
4271 the new_expr to integer_zero_node and continue code generation.
4272 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
4274 2011-07-28 Jakub Jelinek <jakub@redhat.com>
4277 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
4278 arguments also check if they aren't initialized with a MODE_INT
4279 mode of the same size.
4281 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
4283 * expr.c (get_bit_range): Handle *MEM_REF's.
4285 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
4287 * rtlanal.c (tablejump_p): False for returns.
4288 * reorg.c (first_active_target_insn): New static function.
4289 (find_end_label): Set JUMP_LABEL for a new returnjump.
4290 (optimize_skip, get_jump_flags, rare_destination,
4291 mostly_true_jump, get_branch_condition,
4292 steal_delay_list_from_target, own_thread_p,
4293 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
4294 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
4295 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
4296 * jump.c (delete_related_insns): Likewise.
4297 (jump_to_label_p): New function.
4298 (redirect_target): New static function.
4299 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
4300 (redirect_jump_1): Assert that the new label is nonnull.
4301 (redirect_jump): Likewise.
4302 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
4303 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
4305 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
4306 changed. Ensure that the right label is passed to redirect_jump.
4307 * function.c (emit_return_into_block,
4308 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
4309 ret_rtx in their JUMP_LABEL.
4310 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
4311 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
4312 pass ret_rtx as label.
4313 * cfglayout.c (fixup_reorder_chain): Use
4314 force_nonfallthru_and_redirect rather than force_nonfallthru.
4315 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
4316 * rtl.h (ANY_RETURN_P): New macro.
4317 (jump_to_label_p): Declare.
4318 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
4320 (mark_target_live_regs): Likewise.
4321 * basic-block.h (force_nonfallthru_and_redirect): Declare.
4322 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
4323 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
4324 alpha_tablejump_best_label): Remove functions.
4325 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
4326 alpha_tablejump_best_label): Remove declarations.
4327 * config/sh/sh.c (barrier_align, split_branches): Adjust for
4328 ret_rtx in JUMP_LABELs.
4329 * config/arm/arm.c (is_jump_table): Likewise.
4331 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
4333 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
4334 special predicate. Remove explicit mode checks.
4336 2011-07-28 Jakub Jelinek <jakub@redhat.com>
4338 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
4339 DW_AT_data_member_location containing just DW_OP_plus_uconst.
4342 * dwarf2out.c (size_of_die, value_format, output_die): Use
4343 DW_FORM_udata instead of DW_FORM_data[48] for
4344 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
4346 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4348 * config/i386/i386.md (*tls_global_dynamic_64): Update
4351 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
4354 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
4355 tls_symbolic_operand check. Update code sequence for TARGET_X32.
4356 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
4357 (tls_dynamic_gnu2_64): Ditto.
4358 (*tls_dynamic_gnu2_lea_64): Ditto.
4359 (*tls_dynamic_gnu2_call_64): Ditto.
4360 (*tls_dynamic_gnu2_combine_64): Ditto.
4362 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4364 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
4366 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
4369 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
4371 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4373 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
4374 before the core constraints. Adjust attributes.
4375 ("*thumb2_movdf_vfp"): Likewise.
4377 2011-07-28 Kai Tietz <ktietz@redhat.com>
4379 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
4380 (simplify_truth_ops_using_ranges): Likewise.
4381 (build_assert_expr_for): Likewise.
4382 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
4383 and handle BIT_NOT_EXPR for truth-operation.
4385 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
4388 Undo r176835 from trunk
4389 2011-07-27 Georg-Johann Lay
4391 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
4394 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4395 Add _muluhisi3, _mulshisi3, _usmulhisi3.
4396 * config/avr/libgcc.S (__mulsi3): Rewrite.
4397 (__mulhisi3): Rewrite.
4398 (__umulhisi3): Rewrite.
4399 (__usmulhisi3): New.
4403 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4405 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4406 (pseudo_register_or_const_int_operand): New.
4407 (combine_pseudo_register_operand): New.
4411 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4412 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4413 (any_extend, any_extend2): New code iterators.
4414 (extend_prefix): New code attribute.
4415 (mulsi3): Rewrite. Turn insn to expander.
4418 (usmulhisi3): New expander.
4419 (*mulsi3): New insn-and-split.
4420 (mulu<mode>si3): New insn-and-split.
4421 (muls<mode>si3): New insn-and-split.
4422 (mulohisi3): New insn-and-split.
4423 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4424 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4425 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4426 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4428 (*mulsi3_call): Rewrite.
4429 (*mulhisi3_call): Rewrite.
4430 (*umulhisi3_call): Rewrite.
4431 (*usmulhisi3_call): New insn.
4432 (*muluhisi3_call): New insn.
4433 (*mulshisi3_call): New insn.
4434 (*mulohisi3_call): New insn.
4435 (extendqihi2): Use combine_pseudo_register_operand as predicate
4437 (extendqisi2): Ditto.
4438 (zero_extendqihi2): Ditto.
4439 (zero_extendqisi2): Ditto.
4440 (zero_extendhisi2): Ditto.
4441 (extendhisi2): Ditto. Don't early-clobber operand 0.
4443 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
4445 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4447 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
4449 PR tree-optimization/49471
4450 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4451 iv only when the largest type is unsigned. Do not call
4452 lang_hooks.types.type_for_size.
4454 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
4457 * graphite-poly.c (apply_poly_transforms): Disable legality check
4458 after an openscop read.
4460 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
4463 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4464 copy_bb_and_scalar_dependences.
4465 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
4466 (graphite_copy_stmts_from_block): Update call to rename_uses.
4467 (copy_bb_and_scalar_dependences): Update call to
4468 graphite_copy_stmts_from_block.
4469 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4471 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
4474 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4475 (__ctzsi2): Result for 0 may be undefined.
4476 (__ctzhi2): Result for 0 may be undefined.
4477 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4478 (__popcountsi2): Ditto. And don't clobber r26.
4479 (__popcountdi2): Ditto. And don't clobber r27.
4480 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4481 (parityhi2): New expand.
4482 (paritysi2): New expand.
4483 (popcounthi2): New expand.
4484 (popcountsi2): New expand.
4485 (clzhi2): New expand.
4486 (clzsi2): New expand.
4487 (ctzhi2): New expand.
4488 (ctzsi2): New expand.
4489 (ffshi2): New expand.
4490 (ffssi2): New expand.
4491 (copysignsf3): New insn.
4492 (bswapsi2): New expand.
4493 (*parityhi2.libgcc): New insn.
4494 (*parityqihi2.libgcc): New insn.
4495 (*paritysihi2.libgcc): New insn.
4496 (*popcounthi2.libgcc): New insn.
4497 (*popcountsi2.libgcc): New insn.
4498 (*popcountqi2.libgcc): New insn.
4499 (*popcountqihi2.libgcc): New insn-and-split.
4500 (*clzhi2.libgcc): New insn.
4501 (*clzsihi2.libgcc): New insn.
4502 (*ctzhi2.libgcc): New insn.
4503 (*ctzsihi2.libgcc): New insn.
4504 (*ffshi2.libgcc): New insn.
4505 (*ffssihi2.libgcc): New insn.
4506 (*bswapsi2.libgcc): New insn.
4508 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
4510 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4511 the mode of symbolic_opreand RTXes.
4513 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
4515 * config/i386/predicates.md (x86_64_movabs_operand): Return false
4516 for pic_32bit_operand RTXes.
4517 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4520 2011-07-27 Kai Tietz <ktietz@redhat.com>
4522 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4524 (ix86_handle_abi_attribute): Allow function attributes
4525 ms_abi/sysv_abi in 32-bit mode, too.
4526 * doc/extend.texi: Adjust attribute documentation.
4528 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4529 expression handling.
4530 (and_var_with_comparison_1): Likewise.
4532 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
4534 * params.h (ALLOW_STORE_DATA_RACES): New.
4535 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4536 * Makefile.in (expr.o): Depend on PARAMS_H.
4537 * machmode.h (get_best_mode): Add argument.
4538 * fold-const.c (optimize_bit_field_compare): Add argument to
4540 (fold_truthop): Same.
4541 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4542 * expr.c (emit_group_store): Same.
4543 (copy_blkmode_from_reg): Same.
4544 (write_complex_part): Same.
4545 (optimize_bitfield_assignment_op): Add argument.
4546 Add argument to get_best_mode.
4547 (get_bit_range): New.
4548 (expand_assignment): Calculate maxbits and pass it down accordingly.
4549 (store_field): New argument.
4550 (expand_expr_real_2): New argument to store_field. Include params.h.
4551 * expr.h (store_bit_field): New argument.
4552 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4553 into account maxbits.
4554 * calls.c (store_unaligned_arguments_into_pseudos): New argument
4556 * expmed.c (store_bit_field_1): New argument. Use it.
4557 (store_bit_field): Same.
4558 (store_fixed_bit_field): Same.
4559 (store_split_bit_field): Same.
4560 (extract_bit_field_1): Pass new argument to get_best_mode.
4561 (extract_bit_field): Same.
4562 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4563 * doc/invoke.texi: Document parameter allow-store-data-races.
4565 2011-07-27 Jakub Jelinek <jakub@redhat.com>
4567 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4569 2011-07-27 Kai Tietz <ktietz@redhat.com>
4571 * tree-vrp.c (extract_range_from_binary_expr): Remove
4572 TRUTH-binary cases and add new bitwise-cases.
4573 (extract_range_from_assignment): Likewise.
4574 (register_edge_assert_for_1): Likeiwise.
4575 (register_edge_assert_for): Likewise.
4576 (simplify_truth_ops_using_ranges): Likewise.
4577 (simplify_stmt_using_ranges): Likewise.
4579 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
4582 * config/i386/i386.c (ix86_delegitimize_address): Call
4583 simplify_gen_subreg for PIC with mode of x only if modes of
4584 x and orig_x are different.
4586 2011-07-26 Jakub Jelinek <jakub@redhat.com>
4588 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4589 to GC allocated copy of the string.
4590 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4591 before .debug_line, not after it.
4593 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4596 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4597 evolution_function_is_affine_p on CHREC_RIGHT.
4599 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4601 * tree-data-ref.c (max_stmt_executions_tree): Do not call
4602 lang_hooks.types.type_for_size.
4604 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4607 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4608 loops using wrapping semantics.
4610 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
4613 * tree-scalar-evolution.c (instantiate_scev_r): Return
4614 chrec_dont_know for ADDR_EXPR.
4616 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
4617 H.J. Lu <hongjiu.lu@intel.com>
4621 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4622 if legitimize_tls_address returned operand in wrong mode. Allow
4623 SImode and DImode symbolic operand for PIC. Call convert_to_mode
4624 if legitimize_pic_address returned operand in wrong mode.
4626 2011-07-26 Martin Jambor <mjambor@suse.cz>
4628 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4629 return false for invariants.
4631 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
4633 * config/i386/i386.md (add->lea splitter): Implement using SWI
4634 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
4635 (add->lea zext splitter): Change operand 2 predicate to
4636 x86_64_nonmemory_operand.
4638 2011-07-26 Richard Guenther <rguenther@suse.de>
4640 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4641 frequency makes everything hot.
4643 2011-07-26 Richard Guenther <rguenther@suse.de>
4645 PR tree-optimization/49840
4646 * tree-vrp.c (range_fits_type_p): Properly handle full
4647 double-int precision.
4649 2011-07-26 Martin Jambor <mjambor@suse.cz>
4652 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4654 (update_specialized_profile): Likewise.
4656 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
4657 H.J. Lu <hongjiu.lu@intel.com>
4662 * config/i386/i386.md (i): Change SImode attribute to "e".
4663 (g): Change SImode attribute to "rme".
4664 (di): Change SImode attribute to "nF".
4665 (general_operand): Change SImode attribute to x86_64_general_operand.
4666 (general_szext_operand): Change SImode attribute to
4667 x86_64_szext_general_operand.
4668 (immediate_operand): Change SImode attribute to
4669 x86_64_immediate_operand.
4670 (nonmemory_operand): Change SImode attribute to
4671 x86_64_nonmemory_operand.
4672 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4673 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
4674 (*lea_1): Use SWI48 mode iterator.
4675 (*lea_1_zext): New insn pattern.
4676 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4678 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4679 Update operand constraints.
4680 (addsi_1_zext): Ditto.
4681 (*add<mode>2): Ditto.
4682 (*addsi_3_zext): Ditto.
4683 (*subsi_1_zext): Ditto.
4684 (*subsi_2_zext): Ditto.
4685 (*subsi_3_zext): Ditto.
4686 (*addsi3_carry_zext): Ditto.
4687 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4688 (*mulsi3_1_zext): Ditto.
4690 (*andsi_1_zext): Ditto.
4691 (*andsi_2_zext): Ditto.
4692 (*<any_or:code>si_1_zext): Ditto.
4693 (*<any_or:code>si_2_zext): Ditto.
4694 (*test<mode>_1): Use <general_operand> predicate for operand 1.
4695 (*and<mode>_2): Ditto.
4696 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
4697 (add->lea splitter): Check operand modes in insn constraint. Extend
4698 operands less than SImode wide to SImode.
4699 (add->lea zext splitter): Do not extend input operands to DImode.
4700 (*lea_general_1): Handle only QImode and HImode operands.
4701 (*lea_general_2): Ditto.
4702 (*lea_general_3): Ditto.
4703 (*lea_general_1_zext): Remove.
4704 (*lea_general_2_zext): Ditto.
4705 (*lea_general_3_zext): Ditto.
4706 (*lea_general_4): Check operand modes in insn constraint. Extend
4707 operands less than SImode wide to SImode.
4708 (ashift->lea splitter): Ditto.
4709 * config/i386/i386.c (ix86_print_operand_address): Print address
4710 registers with 'q' modifier on 64bit targets.
4711 * config/i386/predicates.md (pic_32bit_opreand): Define as special
4712 predicate. Reject non-SI and non-DI modes.
4714 2011-07-25 Andrew Pinski <apinski@cavium.com>
4717 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4718 TREE_THIS_NOTRAP into the inner most MEM_REF.
4719 Always copy TREE_THIS_VOLATILE.
4720 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4721 arguments are not volatile references.
4723 2011-07-25 Richard Henderson <rth@redhat.com>
4725 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4726 * final.c (final_scan_insn): Don't test for it.
4727 (rest_of_clean_state): Likewise.
4729 2011-07-25 Richard Henderson <rth@redhat.com>
4732 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4733 (emit_frame_save): Likewise.
4734 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4735 insn onto a dummy blockage insn after the join label.
4737 2011-07-25 Richard Henderson <rth@redhat.com>
4739 * dwarf2cfi.c (dw_trace_info): Add ID member.
4740 (get_trace_index): Remove. Change users to use ID member.
4741 (before_next_cfi_note): New.
4742 (connect_traces): Remove unreachable traces before the main loop.
4743 Look across one trace and generate remember/restore_state if needed.
4745 2011-07-25 Richard Henderson <rth@redhat.com>
4747 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4749 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
4751 * genattr.c (write_upcase, gen_attr <enum definition writing>):
4753 * genattr-common.c ... here.
4754 (main): Call gen_attr.
4755 * optc-gen.awk: Make generated program include insn-attr-common.h .
4756 * Makefile.in (oprions.o): Depend on insn-attr-common.h
4758 2011-07-25 Anatoly Sokolov <aesok@post.ru>
4760 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4761 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4762 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4763 m32c_print_operand, m32c_print_operand_address): Remove.
4764 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4765 Change return type to bool. Change argument type to bool.
4766 (m32c_print_operand, m32c_print_operand_address): Make static.
4767 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4768 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4770 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4772 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4773 attributes): Document mmap.
4775 2011-07-25 Anatoly Sokolov <aesok@post.ru>
4777 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4778 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4779 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4780 mmix_print_operand, mmix_print_operand_address): Remove.
4781 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4782 Change return type to bool. Change argument type to bool.
4783 (mmix_print_operand, mmix_print_operand_address): Make static.
4784 (mmix_intval, mmix_output_condition): Change 'x' argument type
4786 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4787 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4789 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
4792 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4793 shift counter for x << x and x >> x shifts.
4795 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4798 * config.gcc: Reject *-*-solaris2 configuration.
4800 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
4802 PR tree-optimization/49809
4803 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4804 gimple_get_lhs instead of gimple_assign_lhs.
4806 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4808 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4810 2011-07-25 Richard Guenther <rguenther@suse.de>
4812 PR tree-optimization/49822
4813 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4814 more. Make sure to preserve stmts with side-effects. Properly
4815 handle virtual defs, follow a longer def chain.
4817 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
4822 * Makefile.in: Do not flatten c-family directory when installing
4825 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
4827 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4828 original nodes if we are dealing with virtual clones.
4830 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
4832 * common/config/c6x/c6x-common.c: New file.
4834 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
4836 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4838 2011-07-25 Richard Guenther <rguenther@suse.de>
4840 PR tree-optimization/49715
4841 * tree-vrp.c: Include expr.h and optabs.h.
4842 (range_fits_type_): New function.
4843 (simplify_float_conversion_using_ranges): Likewise.
4844 (simplify_stmt_using_ranges): Call it.
4845 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4846 * optabs.c (can_float_p): Export.
4847 * optabs.h (can_float_p): Declare.
4849 2011-07-25 Richard Guenther <rguenther@suse.de>
4851 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4852 (get_value_range): For out-of-range SSA names or names created
4853 after propagation return a read-only varying range.
4854 (dump_all_value_ranges): Adjust.
4855 (vrp_initialize): Likewise.
4856 (vrp_finalize): Likewise.
4858 2011-07-24 Richard Henderson <rth@redhat.com>
4861 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
4864 2011-07-24 Richard Henderson <rth@redhat.com>
4867 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4868 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4870 2011-07-24 Richard Henderson <rth@redhat.com>
4873 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4875 2011-07-24 Richard Henderson <rth@redhat.com>
4877 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4878 Zero args_size for abnormal edges. Adjust all callers.
4880 2011-07-24 Richard Henderson <rth@redhat.com>
4883 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4885 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
4888 * collect2.c (demangle_flag): Removed.
4890 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
4892 * configure.ac (demangler_in_ld): Default to yes.
4893 * configure: Regenerated.
4894 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4895 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4896 --no-demangle options straight through to ld. When
4897 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4898 way that has the intended effect on Windows.
4900 2011-07-23 Richard Henderson <rth@redhat.com>
4902 * dwarf2cfi.c: Include basic-block.h.
4903 (dw_label_info): Remove.
4904 (trace_work_list, trace_index): New.
4905 (remember_row, emit_cfa_remember): Remove.
4906 (dw_trace_info_hash, dw_trace_info_eq): New.
4907 (get_trace_index, get_trace_info): New.
4908 (save_point_p): New.
4909 (free_cfi_row): Remove.
4910 (add_cfi): Do not emit DW_CFA_remember_state.
4911 (cfa_row_equal_p): New.
4912 (barrier_args_size): Remove.
4913 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4914 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4915 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4916 (dwarf2out_cfi_begin_epilogue): Remove.
4917 (dwarf2out_frame_debug_restore_state): Remove.
4918 (connect_traces, create_pseudo_cfg): New.
4919 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4920 * Makefile.in (dwarf2cfi.o): Update.
4922 2011-07-23 Richard Henderson <rth@redhat.com>
4924 * dwarf2cfi.c (dw_trace_info): New.
4925 (dw_label_info): New.
4926 (cie_return_save): New.
4928 (queued_args_size): Rename from args_size. Update all users.
4929 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4930 (def_cfa_1): Use cur_trace instead of cfa_*.
4931 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4932 (clobbers_queued_reg_save, reg_saved_in): Likewise.
4933 (dwarf2out_frame_debug_expr): Likewise.
4934 (create_cie_data): Split out from ...
4935 (execute_dwarf2_frame): ... here. Initialize cur_trace.
4937 2011-07-23 Richard Henderson <rth@redhat.com>
4939 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4940 Update all users to match.
4941 (execute_dwarf2_frame): Free reg_saved_in_data.
4943 2011-07-23 Richard Henderson <rth@redhat.com>
4945 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
4946 (queued_reg_saves): Don't GTY. Change to a VEC.
4947 (queue_reg_save): Update to match.
4948 (dwarf2out_flush_queued_reg_saves): Likewise.
4949 (clobbers_queued_reg_save): Likewise.
4950 (reg_saved_in): Likewise.
4951 (execute_dwarf2_frame): Free queued_reg_saves.
4953 2011-07-23 Richard Henderson <rth@redhat.com>
4955 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
4957 2011-07-23 Richard Henderson <rth@redhat.com>
4959 * dwarf2cfi.c (add_cfi_args_size): Split out from...
4960 (dwarf2out_args_size): ... here.
4961 (add_cfi_restore): Split out from ...
4962 (dwarf2out_frame_debug_cfa_restore): ... here.
4963 (def_cfa_0): Split out from ...
4964 (def_cfa_1): ... here.
4965 (cfi_oprnd_equal_p, cfi_equal_p): New.
4966 (change_cfi_row): New.
4967 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4968 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4969 (output_cfis): Remove.
4970 * dwarf2out.c (output_fde): Simplify output_cfi loop.
4971 (dwarf2out_switch_text_section): Don't call output_cfis.
4972 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4973 * dwarf2out.h: Update decls.
4974 (enum dw_val_class): Add dw_val_class_none.
4976 2011-07-23 Richard Henderson <rth@redhat.com>
4978 * dwarf2cfi.c (update_row_reg_save): New.
4979 (dwarf2out_frame_debug_cfa_expression): Use it.
4980 (dwarf2out_frame_debug_cfa_restore): Likewise.
4981 (reg_save): Likewise. Do not emit DW_CFA_same_value.
4983 2011-07-23 Richard Henderson <rth@redhat.com>
4985 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
4987 2011-07-23 Richard Henderson <rth@redhat.com>
4989 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4991 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4992 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4993 (cur_row, remember_row): New.
4994 (def_cfa_1): Use cur_row instead of the old_* variables.
4995 (dwarf2out_frame_debug_restore_state): Similarly.
4996 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4997 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4998 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4999 (dwarf2out_frame_debug_cfa_offset): Likewise.
5000 (dwarf2out_frame_debug_expr): Likewise.
5001 (execute_dwarf2_frame): Set up cur_row.
5002 * dwarf2out.h (struct cfa_loc): Mark for GTY.
5004 2011-07-23 Richard Henderson <rth@redhat.com>
5006 * basic-block.h (EDGE_PRESERVE): New.
5007 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5008 * bb-reorder.c: Include except.h.
5009 (fix_up_crossing_landing_pad): New.
5010 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5011 landing pads in the right partition. Duplicate as necessary.
5012 (partition_hot_cold_basic_blocks): Fix up DF info after
5013 duplicating landing pads.
5014 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5015 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5016 is set properly. Validate that EH edges are not CROSSING.
5017 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5018 (dw2_build_landing_pads): ... here.
5019 (convert_to_eh_region_ranges): Remove code to fixup crossing
5021 * except.h (expand_dw2_landing_pad_for_region): Declare.
5022 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5024 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
5027 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5029 2011-07-22 Jason Merrill <jason@redhat.com>
5031 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5033 2011-07-22 Richard Henderson <rth@redhat.com>
5035 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5037 2011-07-22 Richard Henderson <rth@redhat.com>
5039 * jump.c (maybe_propagate_label_ref): Split out of...
5040 (mark_all_labels): ... here. Do not attempt label_ref
5041 propagation while in cfglayout mode.
5043 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5045 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5046 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5047 (dwarf_attr_name): Handle DW_AT_GNU_macros.
5048 (dwarf2out_define): If the vector is empty and
5049 lineno is 0, emit a dummy entry first.
5050 (dwarf2out_undef): Likewise. Remove redundant semicolon.
5051 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5052 optimize_macinfo_range): New functions.
5053 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
5054 mergeable, optimize longer strings using
5055 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5056 optimize longer sequences of define/undef ops from headers
5057 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
5058 emit a section headers.
5059 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5060 and macinfo_section_label to DEBUG_MACRO_SECTION
5061 resp. DEBUG_MACRO_SECTION_LABEL.
5062 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5063 instead of DW_AT_macro_info.
5066 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5068 * dwarf2out.c: Include opts.h.
5069 (dchar_p): New typedef. Define heap VEC for it.
5070 (producer_string): New variable.
5071 (gen_producer_string): New function.
5072 (gen_compile_unit_die): Use it.
5073 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5074 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5075 * doc/invoke.texi: Document -grecord-gcc-switches and
5076 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5077 to -frecord-gcc-switches description.
5079 2011-07-22 Jason Merrill <jason@redhat.com>
5082 * c-decl.c (c_linkage_bindings): Define.
5084 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
5087 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5089 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
5091 * config/i386/i386.c (ix86_option_override_internal): Disallow
5093 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5094 only for TARGET_LP64.
5095 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5097 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5099 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5100 avoid warnings when GCC is built with a C++ compiler.
5102 2011-07-22 Martin Jambor <mjambor@suse.cz>
5105 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5106 if decl node is in another partition, call cgraph_get_node only once.
5108 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
5110 * config.gcc (x86_64-*-linux*): Set
5111 default_gnu_indirect_function to yes.
5113 2011-07-22 Richard Guenther <rguenther@suse.de>
5115 PR tree-optimization/45819
5116 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5117 preserve volatile and notrap flags.
5119 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5120 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5123 * configure.ac: Test AM_ICONV with CXX.
5124 * configure: Regenerate.
5125 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5127 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5130 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5131 (set_cloog_options): Use it.
5133 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5136 * gcc.c (main): Call stack_limit_increase (64MB).
5137 * toplev.c (toplev_main): Likewise.
5139 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5141 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5142 instead of force_reg.
5144 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5146 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5147 needed and use force_reg after convert.
5148 (ix86_expand_call): Likewise.
5149 (ix86_expand_special_args_builtin): Likewise.
5150 (ix86_expand_builtin): Likewise.
5152 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5156 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5157 in parameter. Initialize v1 and v2 based on the values returned
5158 by clast_name_to_lb_ub.
5159 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5161 (type_for_clast_bin): Same.
5162 (type_for_clast_expr): Same.
5163 (type_for_clast_eq): Update calls to type_for_clast_expr.
5164 (type_for_clast_for): Same.
5165 (build_iv_mapping): Same.
5166 * graphite-ppl.h (value_min): New.
5168 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5170 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5171 types whenever possible.
5173 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5175 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5177 (new_clast_name_index): Add lb and ub parameters.
5178 (free_clast_name_index): New.
5179 (clast_name_to_lb_ub): New.
5180 (save_clast_name_index): Add lb and ub parameters.
5181 (compute_bounds_for_param): New.
5182 (type_for_level): Removed.
5183 (type_for_clast_for): Removed level parameter. Do not call
5185 (graphite_create_new_loop): Store the lb and ub for the clast_name
5186 of the iterator of the loop that has been generated.
5187 (graphite_create_new_loop_guard): Remove parameter level.
5188 (create_params_index): Store the lb and ub of each parameter.
5189 (gloog): Use free_clast_name_index. Pass to create_params_index
5192 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5194 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
5195 (max_precision_type): Inline max_signed_precision_type.
5196 (type_for_clast_red): Use max_precision_type.
5197 (type_for_clast_bin): Same.
5198 (type_for_clast_for): Same.
5200 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5202 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
5204 (gcc_type_for_value): Renamed type_for_value.
5205 (gcc_type_for_clast_term): Renamed type_for_clast_term.
5206 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
5207 (gcc_type_for_clast_red): Renamed type_for_clast_red.
5208 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
5209 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
5210 (graphite_translate_clast_equation): Update calls.
5211 (compute_type_for_level): Renamed type_for_level.
5212 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
5213 (build_iv_mapping): Update calls.
5214 (graphite_create_new_loop_guard): Same.
5216 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5218 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
5221 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5223 * graphite-clast-to-gimple.c (struct ivs_params): New.
5224 (clast_name_to_gcc): Use ivs_params to pass around parameters.
5225 (clast_to_gcc_expression): Same.
5226 (clast_to_gcc_expression_red): Same.
5227 (gcc_type_for_clast_term): Same.
5228 (gcc_type_for_clast_expr): Same.
5229 (gcc_type_for_clast_red): Same.
5230 (gcc_type_for_clast_bin): Same.
5231 (gcc_type_for_clast_eq): Same.
5232 (graphite_translate_clast_equation): Same.
5233 (graphite_create_guard_cond_expr): Same.
5234 (graphite_create_new_guard): Same.
5235 (graphite_create_new_loop): Same.
5236 (build_iv_mapping): Same.
5237 (translate_clast_user): Same.
5238 (graphite_create_new_loop_guard): Same.
5239 (translate_clast): Same.
5240 (translate_clast_for_loop): Same.
5241 (translate_clast_for): Same.
5242 (translate_clast_guard): Same.
5243 (initialize_cloog_names): Fix typo.
5244 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
5246 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5248 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
5249 (new_clast_name_index): Add level parameter.
5250 (clast_name_to_level): New.
5251 (save_clast_name_index): Add level parameter.
5252 (newivs_to_depth_to_newiv): Removed.
5253 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
5254 (graphite_create_new_loop): Add level parameter. Pass level to
5255 save_clast_name_index.
5256 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
5257 (create_params_index): Pass level to save_clast_name_index.
5259 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5261 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
5262 recompute type, lb, and ub. Get them from...
5263 (graphite_create_new_loop_guard): ...here. Pass in parameter
5264 pointers to type, lb, and ub.
5265 (translate_clast_for_loop): Update function calls.
5266 (translate_clast_for): Same.
5268 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5270 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
5272 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
5273 (gcc_type_for_iv_of_clast_loop): Update use of level.
5274 (gloog): Start counting nesting level from 0.
5275 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
5276 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
5277 psct_dynamic_dim on level.
5279 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5281 * config/i386/i386.c (ix86_legitimize_address): Convert to
5284 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5286 * config/i386/i386.c (function_value_64): Always return pointers
5288 (ix86_promote_function_mode): New.
5289 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
5291 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5293 PR tree-optimization/49749
5294 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
5295 remove no-longer-used maxrank variable.
5297 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
5299 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
5301 2011-07-21 Jason Merrill <jason@redhat.com>
5303 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
5304 * recog.h (struct insn_data_d): Check it instead of
5305 HAVE_DESIGNATED_INITIALIZERS.
5306 * genoutput.c (output_insn_data): Likewise.
5308 2011-07-21 Richard Guenther <rguenther@suse.de>
5310 PR tree-optimization/49770
5311 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
5312 valueized any operand. Renamed from ...
5313 (valueize_refs): ... this. New wrapper around valueize_refs_1.
5314 (valueize_shared_reference_ops_from_ref): Return whether we
5315 valueized any operand.
5316 (vn_reference_lookup): Only when we valueized any operand
5317 use the valueized reference for alias analysis. Do not preserve
5318 the original reference tree in this case.
5320 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
5322 * config/i386/i386.c (ix86_decompose_address): Reject all but
5323 register operands and subregs of DImode hard registers in index.
5325 2011-07-21 Kai Tietz <ktietz@redhat.com>
5327 * fold-const.c (fold_unary_loc): Preserve indirect
5328 comparison cast to none-boolean type.
5329 * tree-ssa.c (useless_type_conversion_p): Preserve cast
5330 from/to boolean-type.
5331 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
5332 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
5333 * tree-cfg.c (verify_gimple_comparison): Check result
5334 type of comparison expression.
5335 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
5336 of condition result and disallow type-cast sinking into comparison.
5338 2011-07-21 Richard Guenther <rguenther@suse.de>
5340 * tree-ssa-forwprop.c (combine_conversions): Return whether
5341 we have to run cfg-cleanup. Properly remove dead stmts.
5342 (ssa_forward_propagate_and_combine): Adjust.
5344 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
5346 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
5348 2011-07-21 Kai Tietz <ktietz@redhat.com>
5350 * tree-ssa-propagate.c (substitute_and_fold): Use
5351 do_dce flag to deside, if BB's statements are scanned
5352 in last to first, or first to last order.
5354 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
5356 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5358 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
5359 Uros Bizjak <ubizjak@gmail.com>
5360 Richard Henderson <rth@redhat.com>
5362 * config/i386/constraints.md (w): New.
5364 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
5365 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
5367 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
5368 instead of TARGET_64BIT.
5370 * config/i386/i386.md (indirect_jump): Replace
5371 nonimmediate_operand with indirect_branch_operand.
5372 (*indirect_jump): Likewise. Replace constraint "m" with "w".
5373 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
5374 Convert operand 0 to Pmode for x32 if not PIC.
5375 (*tablejump_1): Replace nonimmediate_operand with
5376 indirect_branch_operand. Replace constraint "m" with "w".
5377 (*call_vzeroupper): Replace constraint "m" with "w".
5379 (*call_rex64_ms_sysv_vzeroupper): Likewise.
5380 (*call_rex64_ms_sysv): Likewise.
5381 (*call_value_vzeroupper): Likewise.
5382 (*call_value): Likewise.
5383 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
5384 (*call_value_rex64_ms_sysv): Likewise.
5385 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
5387 * config/i386/predicates.md (indirect_branch_operand): New.
5388 (call_insn_operand): Support x32.
5390 2011-07-20 Michael Eager <eager@eagercon.com>
5392 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5394 2011-07-20 Richard Henderson <rth@redhat.com>
5396 * cfg.c (dump_bb_info): Dump basic_block->flags.
5397 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5399 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
5401 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5402 of DImode hard registers in index.
5403 (ix86_legitimate_address_p): Allow subregs of base and index to span
5404 more than a word. Assert that subregs of base and index satisfy
5405 register_no_elim_operand predicates. Reject addresses where
5406 base and index have different modes.
5408 2011-07-20 Robert Millan <rmh@gnu.org>
5410 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5412 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5414 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5415 removing now-unnecessary assignment.
5417 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5419 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5420 memory address space to the type's address space.
5422 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
5426 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5427 and expand appropriately if there is a CONST_INT in operand2.
5428 (usmulqihi3): New insn.
5429 (*sumulqihi3): New insn.
5430 (*osmulqihi3): New insn.
5431 (*oumulqihi3): New insn.
5432 (*muluqihi3.uconst): New insn_and_split.
5433 (*muluqihi3.sconst): New insn_and_split.
5434 (*mulsqihi3.sconst): New insn_and_split.
5435 (*mulsqihi3.uconst): New insn_and_split.
5436 (*mulsqihi3.oconst): New insn_and_split.
5437 (*ashifthi3.signx.const): New insn_and_split.
5438 (*ashifthi3.signx.const7): New insn_and_split.
5439 (*ashifthi3.zerox.const): New insn_and_split.
5440 (mulsqihi3): New insn.
5441 (muluqihi3): New insn.
5442 (muloqihi3): New insn.
5443 * config/avr/predicates.md (const_2_to_7_operand): New.
5444 (const_2_to_6_operand): New.
5449 (register_or_s9_operand): New.
5451 2011-07-20 Kai Tietz <ktietz@redhat.com>
5453 * builtins.c (fold_builtin_expect): See through the cast
5454 from truthvalue_type_node to long.
5456 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5458 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5459 where we can use them from the standard and altivec instruction
5460 sets, instead of always using the 3 operand VSX forms that require
5461 the destination to overlap one of the inputs.
5466 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5468 (fmsdf4_fpr): Ditto.
5469 (nfmadf4_fpr): Ditto.
5470 (nfmsdf4_fpr): Ditto.
5472 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
5474 * genrecog.c (make_insn_sequence): Correct position numbering
5475 when filtering out match_scratch and match_dup.
5477 2011-07-20 Richard Guenther <rguenther@suse.de>
5479 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5480 against already removed statements.
5481 (forward_propagate_into_comparison): Remove dead defining stmts.
5482 (forward_propagate_into_gimple_cond): Likewise.
5483 (forward_propagate_into_cond): Simplify.
5484 (ssa_forward_propagate_and_combine): Handle changed cfg from
5485 forward_propagate_into_comparison.
5486 * tree-ssa-phiopt.c (conditional_replacement): Use proper
5487 locations for newly built statements.
5489 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
5491 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5493 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5495 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5496 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5498 2011-07-20 Richard Guenther <rguenther@suse.de>
5501 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5502 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5503 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
5505 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
5507 * config/frv/frv.c (frv_register_move_cost): Define explicitly
5508 costs for subclasses of GR_REGS.
5510 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
5513 * config/i386/predicates.md (no_seg_addres_operand): No more special.
5514 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5515 of DImode hard registers in base.
5516 (ix86_legitimate_address_p): Allow SImode and DImode base and index
5519 2011-07-20 Richard Guenther <rguenther@suse.de>
5521 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5522 (unify_nodes): Deal with that.
5523 (solve_graph): Likewise.
5525 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
5527 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5528 canonicalize left operand from ZERO_EXTEND to AND.
5530 2011-07-20 Anatoly Sokolov <aesok@post.ru>
5532 * target.def (class_max_nregs): New hook.
5533 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5534 * doc/tm.texi: Regenerate.
5535 * targhooks.c (default_class_max_nregs): New function.
5536 * targhooks.h (default_class_max_nregs): Declare.
5537 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5538 x_ira_reg_class_min_nregs arrays to unsigned char.
5539 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5540 hook instead of CLASS_MAX_NREGS macro.
5541 * reginfo.c (restore_register_info): Ditto.
5542 * ira-conflicts.c (process_regs_for_copy): Use
5543 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5544 Change type rclass and aclass vars to reg_class_t.
5545 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5546 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5548 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5549 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5551 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5552 * config/i386/i386.c (ix86_class_max_nregs): New function.
5553 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5554 instead of CLASS_MAX_NREGS macro.
5555 (TARGET_CLASS_MAX_NREGS): Define.
5556 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5557 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5558 * config/avr/avr.c (class_max_nregs): Remove function.
5559 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5560 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5561 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5562 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5563 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5564 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5565 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5566 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5567 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5568 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5569 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5570 * config/score/score.h (CLASS_MAX_NREGS): Remove.
5571 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5572 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5573 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5575 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
5577 * cif-code.def (OVERWRITABLE): Fix typo and move around.
5578 (TARGET_OPTIMIZATION_MISMATCH): Delete.
5579 (EH_PERSONALITY): Fix typo.
5580 (NON_CALL_EXCEPTIONS): Fix message.
5581 (OPTIMIZATION_MISMATCH): Adjust message.
5582 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5584 2011-07-19 Ian Lance Taylor <iant@google.com>
5586 * doc/install.texi (Configuration): Document
5587 --enable-build-poststage1-with-cxx.
5589 2011-07-19 Robert Millan <rmh@gnu.org>
5591 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
5592 (GLIBC_DYNAMIC_LINKER): Remove.
5594 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
5595 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5596 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5597 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5598 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5599 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5601 * config/mips/linux.h: Remove everything except for ...
5602 (GLIBC_DYNAMIC_LINKER): ... this macro.
5604 * config/mips/linux64.h: Remove everything except for ...
5605 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5606 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5607 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5608 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5609 (GNU_USER_LINK_EMULATIONN32): New macros.
5611 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5612 Use the new headers.
5614 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5616 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5617 Add offset_known_p and size_known_p fields.
5618 (MEM_OFFSET_KNOWN_P): Update accordingly.
5619 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5620 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5621 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5622 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5623 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5624 (init_emit_regs): Likewise.
5626 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5628 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5629 (MEM_OFFSET): Change from returning an rtx to returning a
5631 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5632 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5633 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5634 (clear_mem_offset): Declare.
5635 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5636 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5637 MEM_OFFSET to get a HOST_WIDE_INT offset.
5638 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
5639 (adjust_offset_for_component_ref): Take a bool "known_p"
5640 parameter and a HOST_WIDE_INT "offset" parameter.
5641 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5642 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5643 than an rtx. Use clear_mem_offset to clear the offset.
5644 * cfgcleanup.c (merge_memattrs): Likewise.
5645 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5646 * function.c (assign_parm_find_stack_rtl): Likewise.
5647 (assign_parm_setup_stack): Likewise.
5648 * print-rtl.c (print_rtx): Likewise.
5649 * reload.c (find_reloads_subreg_address): Likewise.
5650 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5651 * var-tracking.c (INT_MEM_OFFSET): Likewise.
5652 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5653 (get_mem_align_offset): Likewise.
5654 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5655 (clear_mem_offset): New function.
5656 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5657 offset rather than an rtx. Assume both the expressio and offset
5659 (r10k_needs_protection_p_1): Update accordingly, checking the
5660 expression and offset availability here instead.
5662 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5664 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5665 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5666 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5667 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5668 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5669 (clear_mem_size): Declare.
5670 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5671 (clear_mem_size): New function.
5672 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5673 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5674 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
5675 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
5677 (nonoverlapping_memrefs_p): Likewise.
5678 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5679 (expand_builtin_init_trampoline): Likewise.
5680 * calls.c (compute_argument_addresses): Likewise.
5681 * cfgcleanup.c (merge_memattrs): Likewise.
5682 * dce.c (find_call_stack_args): Likewise.
5683 * dse.c (record_store, scan_insn): Likewise.
5684 * dwarf2out.c (dw_sra_loc_expr): Likewise.
5685 * expr.c (emit_block_move_hints): Likewise.
5686 * function.c (assign_parm_find_stack_rtl): Likewise.
5687 * print-rtl.c (print_rtx): Likewise.
5688 * reload.c (find_reloads_subreg_address): Likewise.
5689 * rtlanal.c (may_trap_p_1): Likewise.
5690 * var-tracking.c (track_expr_p): Likewise.
5691 * varasm.c (assemble_trampoline_template): Likewise.
5692 * config/arm/arm.c (arm_print_operand): Likewise.
5693 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5694 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5695 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5696 (expand_constant_setmem_prologue): Likewise.
5697 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5698 * config/rs6000/rs6000.c (expand_block_move): Likewise.
5699 (adjacent_mem_locations): Likewise.
5700 * config/s390/s390.c (s390_expand_setmem): Likewise.
5701 (s390_expand_insv): Likewise.
5702 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5703 (*extendqi<mode>2_short_displ): Likewise.
5704 * config/sh/sh.c (expand_block_move): Likewise.
5705 * config/sh/sh.md (extv, extzv): Likewise.
5707 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5709 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5710 (mem_attrs_htab_eq): ...here.
5711 (find_mem_attrs): Replace with...
5712 (set_mem_attrs): ...this function. Take a mem_attrs structure
5713 rather than individual fields.
5714 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5715 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5716 (set_mem_size, change_address, adjust_address_1, offset_address)
5717 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5720 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5722 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5723 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5724 Provide a dummy definition of MEM_ADDR_SPACE for generators.
5725 (target_rtl): Add x_mode_mem_attrs.
5726 (mode_mem_attrs): New macro.
5727 (get_mem_attrs): New function.
5728 * emit-rtl.c (get_mem_attrs): Rename to...
5729 (find_mem_attrs): ...this.
5730 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5731 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5732 (set_mem_size, change_address, adjust_address_1, offset_address)
5733 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5735 (init_emit_regs): Initialize mode_mem_attrs.
5737 2011-07-19 Richard Guenther <rguenther@suse.de>
5739 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5740 TRUTH_*_EXPR handling.
5741 * tree-ssa-operands.c (get_expr_operands): Likewise.
5742 * tree-ssa-pre.c (fully_constant_expression): Likewise.
5743 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5745 (is_and_or_or): Likewise.
5746 (is_norm_cond_subset_of): Likewise.
5748 2011-07-19 Richard Guenther <rguenther@suse.de>
5750 * tree.h (fold_build_pointer_plus_loc): New helper function.
5751 (fold_build_pointer_plus_hwi_loc): Likewise.
5752 (fold_build_pointer_plus): Define.
5753 (fold_build_pointer_plus_hwi): Likewise.
5754 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5755 (fold_builtin_memory_op): Likewise.
5756 (fold_builtin_stpcpy): Likewise.
5757 (fold_builtin_memchr): Likewise.
5758 (fold_builtin_strstr): Likewise.
5759 (fold_builtin_strchr): Likewise.
5760 (fold_builtin_strrchr): Likewise.
5761 (fold_builtin_strpbrk): Likewise.
5762 (fold_builtin_strcat): Likewise.
5763 (expand_builtin_memory_chk): Likewise.
5764 (fold_builtin_memory_chk): Likewise.
5765 * c-typeck.c (build_unary_op): Likewise.
5766 * cgraphunit.c (thunk_adjust): Likewise.
5767 * fold-const.c (build_range_check): Likewise.
5768 (fold_binary_loc): Likewise.
5769 * omp-low.c (extract_omp_for_data): Likewise.
5770 (expand_omp_for_generic): Likewise.
5771 (expand_omp_for_static_nochunk): Likewise.
5772 (expand_omp_for_static_chunk): Likewise.
5773 * tree-affine.c (add_elt_to_tree): Likewise.
5774 * tree-data-ref.c (split_constant_offset_1): Likewise.
5775 * tree-loop-distribution.c (generate_memset_zero): Likewise.
5776 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5777 * tree-predcom.c (ref_at_iteration): Likewise.
5778 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5779 (add_to_parts): Likewise.
5780 (create_mem_ref): Likewise.
5781 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5782 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5783 (number_of_iterations_le): Likewise.
5784 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5785 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5786 (vect_create_addr_base_for_vector_ref): Likewise.
5787 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5788 (vect_create_cond_for_alias_checks): Likewise.
5789 * tree-vrp.c (extract_range_from_assert): Likewise.
5790 * config/alpha/alpha.c (alpha_va_start): Likewise.
5791 (alpha_gimplify_va_arg_1): Likewise.
5792 * config/i386/i386.c (ix86_va_start): Likewise.
5793 (ix86_gimplify_va_arg): Likewise.
5794 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5795 * config/mep/mep.c (mep_expand_va_start): Likewise.
5796 (mep_gimplify_va_arg_expr): Likewise.
5797 * config/mips/mips.c (mips_va_start): Likewise.
5798 (mips_gimplify_va_arg_expr): Likewise.
5799 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5800 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5801 (rs6000_gimplify_va_arg): Likewise.
5802 * config/s390/s390.c (s390_va_start): Likewise.
5803 (s390_gimplify_va_arg): Likewise.
5804 * config/sh/sh.c (sh_va_start): Likewise.
5805 (sh_gimplify_va_arg_expr): Likewise.
5806 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5807 * config/spu/spu.c (spu_va_start): Likewise.
5808 (spu_gimplify_va_arg_expr): Likewise.
5809 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5811 (xstormy16_gimplify_va_arg_expr): Likewise.
5812 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5813 (xtensa_gimplify_va_arg_expr): Likewise.
5815 2011-07-19 Richard Guenther <rguenther@suse.de>
5817 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5818 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5822 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5823 result of BIT_*_EXPR to bitfield precision.
5825 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
5827 PR tree-optimization/49742
5828 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5829 as a potential write.
5831 2011-07-19 Richard Guenther <rguenther@suse.de>
5833 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5834 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5835 (forward_propagate_comparison): Simplify, remove obsolete code.
5837 2011-07-19 Richard Guenther <rguenther@suse.de>
5839 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5840 BIT_XOR_EXPR, same as the RTL expander does.
5841 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5842 (verify_gimple_assign_unary): Likewise.
5843 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5844 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5845 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5847 2011-07-19 Jakub Jelinek <jakub@redhat.com>
5849 PR tree-optimization/49768
5850 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5851 if offset is smaller than bitoffset, but offset+size is bigger
5854 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
5856 PR tree-optimization/49771
5857 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5858 zero step, set segment length to the size of the data-ref's type.
5860 2011-07-18 Martin Jambor <mjambor@suse.cz>
5862 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5864 (ipcp_values_pool): Declare.
5865 (ipcp_sources_pool): Likewise.
5866 (ipcp_lattice): Changed to forward declaration.
5867 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5868 cannot_devirtualize.
5869 (ipa_node_params): New fields descriptors, lattices, known_vals,
5870 clone_for_all_contexts and node dead, removed fields params and
5872 (ipa_set_param_count): Removed.
5873 (ipa_get_param_count): Made to work with descriptors vector.
5874 (ipa_get_param): Updated.
5875 (ipa_param_cannot_devirtualize_p): Removed.
5876 (ipa_param_types_vec_empty): Likewise.
5877 (ipa_set_param_used): New function.
5878 (ipa_get_param_used): Updated to use descriptors vector.
5879 (ipa_func_list): Removed.
5880 (ipa_init_func_list): Removed declaration.
5881 (ipa_push_func_to_list_1): Likewise.
5882 (ipa_pop_func_from_list): Likewise.
5883 (ipa_push_func_to_list): Removed.
5884 (ipa_lattice_from_jfunc): Remove declaration.
5885 (ipa_get_jf_pass_through_result): Declare.
5886 (ipa_get_jf_ancestor_result): Likewise.
5887 (ipa_value_from_jfunc): Likewise.
5888 (ipa_get_lattice): Update.
5889 (ipa_lat_is_single_const): New function.
5890 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5891 (ipa_init_func_list): Likewise.
5892 (ipa_pop_func_from_list): Likewise.
5893 (ipa_get_param_decl_index): Fix coding style.
5894 (count_formal_params): Removed.
5895 (count_formal_params_1): Renamed to count_formal_params.
5896 (ipa_populate_param_decls): Update to use descriptors vector.
5897 (ipa_initialize_node_params): Likewise.
5898 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5899 (ipa_analyze_params_uses): Likewise.
5900 (ipa_free_node_params_substructures): Likewise and free also lattices
5902 (duplicate_array): Removed.
5903 (ipa_edge_duplication_hook): Add the new edge to the list of edge
5905 (ipa_node_duplication_hook): Update to use new lattices.
5906 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5907 (ipa_free_all_structures_after_iinln): Likewise.
5908 (ipa_write_node_info): Update to use new lattices.
5909 (ipa_read_node_info): Likewise.
5910 (ipa_get_jf_pass_through_result): New function.
5911 (ipa_get_jf_ancestor_result): Likewise.
5912 (ipa_value_from_jfunc): Likewise.
5913 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5914 * ipa-cp.c: Reimplemented.
5915 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5916 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5917 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5918 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5919 * doc/invoke.texi (devirt-type-list-size): Removed description.
5920 (ipa-cp-value-list-size): Added description.
5922 2011-07-18 Richard Henderson <rth@redhat.com>
5924 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5925 before calling create_basic_block.
5927 2011-07-18 Jakub Jelinek <jakub@redhat.com>
5930 * tree.c (build_common_builtin_nodes): Register
5931 __builtin_return_address, __cyg_profile_func_enter
5932 and __cyg_profile_func_exit.
5934 2011-07-18 Richard Henderson <rth@redhat.com>
5936 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5937 (add_labels_and_missing_jumps): ... here.
5938 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5940 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
5943 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5944 of DImode hard registers in PLUS address chains.
5946 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5949 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5950 (alpha*-*-freebsd*): Likewise.
5951 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5952 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5953 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5954 crtprec80.o, crtfastmath.o to extra_parts for all targets.
5955 (ia64*-*-elf*): Remove extra_parts.
5956 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5957 (sparc64-*-linux*): Likewise.
5958 (sparc64-*-freebsd*): Likewise.
5961 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5962 (ia64*-*-linux*): Likewise.
5963 (mips64*-*-linux*): Likewise.
5964 (mips*-*-linux*): Likewise.
5966 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
5968 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5970 2011-07-18 Richard Guenther <rguenther@suse.de>
5972 * gimplify.c (gimplify_expr): Use input_location, not saved_location
5973 when building new trees.
5975 2011-07-18 Richard Guenther <rguenther@suse.de>
5977 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5978 expansion result to bitfield precision if required.
5980 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5982 * config.gcc (i[3456x]86-*-netware*): Remove.
5984 * gthr-nks.h: Remove.
5985 * configure.ac (enable_threads): Remove nks.
5986 * configure: Regenerate.
5988 * config/i386/i386.c (ix86_encode_section_info): Remove netware
5990 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5991 <netware.h> reference.
5993 * config/i386/netware-libgcc.c,
5994 gcc/config/i386/netware-libgcc.def,
5995 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5996 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5997 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5998 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6000 * doc/extend.texi (Function Attributes,
6001 callee_pop_aggregate_return): Remove i?86-netware reference.
6002 * doc/install.texi (Configuration, --enable-threads): Remove nks.
6004 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6008 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6010 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6013 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
6016 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6018 2011-07-16 Matthias Klose <doko@ubuntu.com>
6020 * doc/install.texi: Document --enable-static-libjava.
6022 2011-07-15 Richard Henderson <rth@redhat.com>
6024 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6025 Replace all three arguments by returning a VEC of edges.
6026 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6027 pointers and counts.
6028 (fix_edges_for_rarely_executed_code): Merge ...
6029 (rest_of_handle_partition_blocks): ... into...
6030 (partition_hot_cold_basic_blocks): ... here. Return todo items if
6031 any work was performed.
6032 (pass_partition_blocks): Clear todo_flags_finish.
6034 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
6035 Jakub Jelinek <jakub@redhat.com>
6036 Jonathan Wakely <jwakely.gcc@gmail.com>
6039 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6040 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6042 2011-07-15 Jason Merrill <jason@redhat.com>
6045 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6046 rather than --tool_opts.
6048 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
6050 * doc/plugins.texi (Building GCC plugins): gengtype needs its
6051 corresponding gtype.state.
6053 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6056 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6058 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
6061 * doc/md.texi (Standard Names): Document window_save.
6062 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6063 expand_debug_expr and expand_debug_source_expr. If the target has
6064 a window_save instruction, adjust the ENTRY_VALUE_EXP.
6065 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6066 SSA_NAME_VAR is a parameter.
6067 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6068 * var-tracking.c (parm_reg_t): New type and associated vector type.
6069 (windowed_parm_regs): New variable.
6070 (adjust_insn): If the target has a window_save instruction and this
6071 is the instruction, make its effect on parameter registers explicit.
6072 (next_non_note_insn_var_location): New function.
6073 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6074 (vt_add_function_parameter): If the target has a window_save insn,
6075 adjust the incoming RTL and record that in windowed_parm_regs.
6076 (vt_finalize): Free windowed_parm_regs.
6078 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
6080 * doc/invoke.texi (C6X Options): New section.
6081 * doc/md.texi (TI C6X family): New section.
6082 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6084 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6085 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6086 Provide C6X definitions.
6087 * config/c6x/c6x.md: New file.
6088 * config/c6x/constraints.md: New file.
6089 * config/c6x/predicates.md: New file.
6090 * config/c6x/c6x-sched.md.in: New file.
6091 * config/c6x/c6x-sched.md: New file.
6092 * config/c6x/gensched.sh: New file.
6093 * config/c6x/c6x-mult.md.in: New file.
6094 * config/c6x/genmult.sh: New file.
6095 * config/c6x/c6x-mult.md: New file.
6096 * config/c6x/sync.md: New file.
6097 * config/c6x/c6x-protos.h: New file.
6098 * config/c6x/sfp-machine.h: New file.
6099 * config/c6x/c6x.c: New file.
6100 * config/c6x/c6x.h: New file.
6101 * config/c6x/crti.s: New file.
6102 * config/c6x/crtn.s: New file.
6103 * config/c6x/lib1funcs.asm: New file.
6104 * config/c6x/c6x-modes.def: New file.
6105 * config/c6x/genopt.sh: New file.
6106 * config/c6x/c6x.opt: New file.
6107 * config/c6x/c6x-tables.opt: New file.
6108 * config/c6x/c6x-opts.h: New file.
6109 * config/c6x/c6x-isas.def: New file.
6110 * config/c6x/elf.h: New file.
6111 * config/c6x/elf-common.h: New file.
6112 * config/c6x/uclinux-elf.h: New file.
6113 * config/c6x/t-c6x: New file.
6114 * config/c6x/t-c6x-elf: New file.
6115 * config/c6x/t-c6x-uclinux: New file.
6116 * config/c6x/t-c6x-softfp: New file.
6117 * config/c6x/gtd.c: New file.
6118 * config/c6x/gtf.c: New file.
6119 * config/c6x/ltd.c: New file.
6120 * config/c6x/ltf.c: New file.
6121 * config/c6x/ged.c: New file.
6122 * config/c6x/gef.c: New file.
6123 * config/c6x/led.c: New file.
6124 * config/c6x/lef.c: New file.
6125 * config/c6x/eqd.c: New file.
6126 * config/c6x/eqf.c: New file.
6127 * config/c6x/libgcc-c6xeabi.ver: New file.
6130 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
6131 PR rtl-optimization/11320
6132 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6133 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6134 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6135 current_sched_info->compute_jump_reg_dependencies. Record which
6136 registers are used and which registers are set by the jump.
6137 Clear deps->reg_conditional_sets after a barrier.
6138 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6139 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6140 (init_deps): Initialize reg_conditional_sets.
6141 (free_deps): Clear reg_conditional_sets.
6142 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6143 Mark registers live on entry of the fallthrough block and conditionally
6144 set as set by the jump. Mark registers live on entry of non-fallthrough
6145 blocks as used by the jump.
6146 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6147 Mark new parameters as unused.
6149 2011-07-14 Andrew Pinski <pinskia@gmail.com>
6152 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6153 Use fold_build2_loc instead of build2.
6154 Use the correct type for the new tree.
6156 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6158 PR rtl-optimization/11320
6159 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6160 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6162 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
6165 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6167 (*rotw<mode>): Use const_int_operand for operand2.
6168 Use match_scatch for operand3.
6169 (*rotb<mode>): Ditto
6170 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6172 2011-07-14 Richard Guenther <rguenther@suse.de>
6174 PR tree-optimization/49651
6175 * tree-ssa-structalias.c (get_constraint_for_1): Properly
6176 handle dereferences with subvariables.
6178 2011-07-14 Richard Guenther <rguenther@suse.de>
6180 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6181 (fold_stmt_1): Do it here directly on gimple and as a first thing.
6183 2011-07-14 Richard Guenther <rguenther@suse.de>
6185 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
6186 not bool_var when folding bool_var != 1 or bool_var == 0.
6188 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6190 * haifa-sched.c (schedule_insns): Remove outdated comment.
6191 (schedule_block): When computing a known value for TODO_SPEC,
6192 just set it rather than using logical operations.
6193 (try_ready): Likewise. Use a local variable rather than a
6194 pointer to TODO_SPEC. Reorder an if statement to move the
6195 easy case to the then block.
6196 * sched-deps.c (dep_spec_p): New static function.
6197 (update_dep): Use it to decide whether to call
6198 change_spec_dep_to_hard.
6199 (get_back_and_forw_lists): Use it.
6200 (sd_resolve_dep): Likewise.
6201 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
6202 (haifa_note_mem_dep): Likewise.
6203 (check_dep): Likewise.
6204 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
6205 (sched_free_deps): Free in two passes.
6207 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
6210 * expr.c (all_zeros_p): Undo bogus part of last change.
6212 2011-07-14 Matthias Klose <doko@ubuntu.com>
6214 * doc/extend.texi (optimize attribute): Fix typo.
6216 2011-07-14 Richard Guenther <rguenther@suse.de>
6218 * gimplify.c (gimplify_expr): Only do required conversions.
6220 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
6223 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
6224 i.e. use default_elf_select_section.
6225 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
6226 (READONLY_DATA_SECTION_ASM_OP): Remove.
6227 (TARGET_ASM_NAMED_SECTION): Move from here...
6228 * config/avr/avr.c: ...to here.
6229 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
6230 (avr_asm_named_section): Make static.
6232 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6235 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
6236 and crtfastmath.o for Linux/x86.
6238 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6240 * haifa-sched.c: Include "hashtab.h"
6241 (sched_no_dce): New global variable.
6242 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
6243 SHADOW_P): New macros.
6244 (last_clock_var, cycle_issued_insns): Move declarations.
6245 (must_backtrack): New static variable.
6246 (struct delay_pair): New structure.
6247 (delay_htab, delay_htab_i2): New static variables.
6248 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
6249 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
6251 (dep_cost_1): If delay pairs exist, try to look up the insns and
6252 use the correct pair delay if we find them.
6253 (rank-for_schedule): Tweak priority for insns that must be scheduled
6254 soon to avoid backtracking.
6255 (queue_insn): Detect conditions which force backtracking.
6256 (ready_add): Likewise.
6257 (struct sched_block_state): Add member shadows_only_p.
6258 (struct haifa_save_data): New structure.
6259 (backtrack_queue): New static variable.
6260 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
6261 unschedule_insns_until, restore_last_backtrack_point,
6262 free_topmost_backtrack_point, free_backtrack_queue,
6263 estimate_insn_tick, estimate_shadow_tick): New functions.
6264 (prune_ready_list): New arg shadows_only_p. All callers changed.
6265 If true, remove everything that isn't SHADOW_P. Look up delay
6266 pairs and estimate ticks to avoid scheduling the first insn too early.
6267 (verify_shadows): New function.
6268 (schedule_block): Add machinery to enable backtracking.
6269 (sched_init): Take sched_no_dce into account when setting
6271 (free_delay_pairs): New function.
6272 (init_h_i_d): Initialize INSN_EXACT_TICK.
6273 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
6274 * sched-deps.c (sd_unresolve_dep): New function.
6275 * sched-int. (struct haifa_sched_info): New fields save_state
6277 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
6278 feeds_backtrack_insn and shadow_p.
6279 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
6280 (sched_no_dce): Declare variable.
6281 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
6282 sd_unresolve_dep): Declare functions.
6283 * modulo-sched.c (sms_sched_info): Clear the two new fields.
6284 * sched-rgn.c (rgn_const_sched_info): Likewise.
6285 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6286 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
6287 (ebb_sched_info): Add them for the two new fields.
6288 (add_deps_for_risky_insns): Call add_delay_dependencies.
6290 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6292 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
6294 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
6295 (rs6000_call_indirect_aix): Ditto.
6296 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
6297 (call_indirect_aix<ptrsize>_internal): Ditto.
6298 (call_indirect_aix<ptrsize>_nor11): Ditto.
6299 (call_indirect_aix<ptrsize>_internal2): Ditto.
6300 (call_value_indirect_aix<ptrsize>): Ditto.
6301 (call_value_indirect_aix<ptrsize>_internal): Ditto.
6302 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6303 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6304 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
6306 2011-07-13 Jason Merrill <jason@redhat.com>
6308 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
6310 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6312 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
6313 * config/spu/spu.md ("clrsb<mode>2"): New expander.
6315 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
6317 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
6318 * configure: Regenerate.
6320 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6322 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
6323 (asm_file_start): Remove.
6324 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
6325 free_bb_for_insn around code that modifies insns before
6326 restarting df analysis.
6328 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6331 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
6332 (LINK_SPEC): ... here.
6334 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
6336 * haifa-sched.c (struct sched_block_state): New.
6337 (schedule_block): Move some local variables into such a structure.
6339 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6341 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
6342 * config/i386/t-crtpc: Remove.
6343 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6344 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
6346 (x86_64-*-darwin*): Likewise.
6347 (i[34567]86-*-linux*): Likewise.
6348 (x86_64-*-linux*): Likewise.
6350 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
6351 Handle -mpc32, -mpc64, -mpc80.
6353 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6355 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
6356 * config/alpha/t-crtfm: Remove.
6357 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
6358 * config/i386/t-crtfm: Remove.
6359 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
6360 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
6361 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
6362 * config/sparc/t-crtfm: Remove.
6364 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
6365 (alpha*-*-freebsd*): Likewise.
6366 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
6367 (x86_64-*-darwin*): Likewise.
6368 (i[34567]86-*-linux*): Likewise.
6369 (x86_64-*-linux*): Likewise.
6370 (x86_64-*-mingw*): Likewise.
6371 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
6372 (ia64*-*-freebsd*): Likewise.
6373 (ia64*-*-linux*): Likewise.
6374 (mips64*-*-linux*): Likewise.
6375 (mips*-*-linux*): Likewise.
6376 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
6377 (sparc64-*-linux*): Likewise.
6378 (sparc64-*-freebsd*): Likewise.
6380 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6382 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
6383 * config/darwin-crt3.c: Move to ../libgcc/config.
6384 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
6385 ($(T)crt3$(objext)): Remove.
6386 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
6387 ($(T)crt2$(objext)): Remove.
6388 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
6389 (powerpc64-*-darwin*): Likewise.
6391 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
6393 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6395 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6396 (addsi_1_zext): This.
6398 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
6400 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6401 * doc/tm.texi: Regenerate.
6402 * target.def (mergeable_rodata_prefix): New defhookpod.
6403 * varasm.c (mergeable_string_section, mergeable_constant_section):
6404 Use it. Allocate name with alloca.
6406 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
6408 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6410 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
6412 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6415 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
6417 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
6418 (count_type_elements): Delete.
6419 (complete_ctor_at_level_p): Declare.
6420 * expr.c (flexible_array_member_p): New function, split out from...
6421 (count_type_elements): ...here. Make static. Replace allow_flexarr
6422 parameter with for_ctor_p. When for_ctor_p is true, return the
6423 number of elements that should appear in the top-level constructor,
6424 otherwise return an estimate of the number of scalars.
6425 (categorize_ctor_elements): Replace p_must_clear with p_complete.
6426 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
6427 (complete_ctor_at_level_p): New function, borrowing union logic
6428 from old categorize_ctor_elements_1.
6429 (mostly_zeros_p): Return true if the constructor is not complete.
6430 (all_zeros_p): Update call to categorize_ctor_elements.
6431 * gimplify.c (gimplify_init_constructor): Update call to
6432 categorize_ctor_elements. Don't call count_type_elements.
6433 Unconditionally prevent clearing for variable-sized types,
6434 otherwise rely on categorize_ctor_elements to detect
6435 incomplete initializers.
6437 2011-07-13 Richard Guenther <rguenther@suse.de>
6439 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6440 the final type is integral.
6442 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
6444 * sched-int.h (struct _dep): Add member cost.
6445 (DEP_COST, UNKNOWN_DEP_COST): New macros.
6446 * sched-deps.c (init_dep_1): Initialize DEP_COST.
6447 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6448 (sched_change_pattern): Reset it for dependent insns.
6450 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6452 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6453 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6454 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6455 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6456 (CRT0_S, MCRT0_S): Remove.
6457 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6460 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6462 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
6464 * cse.c (insert_with_costs): Put semi-colon after empty loop body
6466 * emit-rtl.c (push_to_sequence): Likewise.
6467 * haifa-sched.c (max_issue): Likewise.
6468 * matrix-reorg.c (add_allocation_site): Likewise.
6469 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6470 * reload.c (alternative_allows_const_pool_ref): Likewise.
6471 * sched-rgn.c (rgn_add_block): Likewise.
6472 (rgn_fix_recovery_cfg): Likewise.
6473 * tree.c (attribute_list_contained): Likewise.
6475 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
6477 * config/i386/i386.c: Tidy processor feature bitmasks.
6480 2011-07-12 Andrew Pinski <pinskia@gmail.com>
6483 * cprop.c (find_implicit_sets): Correct the condition.
6485 2011-07-12 Richard Henderson <rth@redhat.com>
6488 * dwarf2out.h (dwarf_frame_regnum): Remove.
6489 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
6490 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
6491 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6492 (execute_dwarf2_frame): Initialize them.
6493 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6494 users of the macros with the variables.
6495 (expand_builtin_dwarf_sp_column): Revert last change.
6496 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
6497 result of DWARF_FRAME_REGNUM into a local variable.
6499 2011-07-12 Richard Henderson <rth@redhat.com>
6502 * config/i386/i386.c (x86_output_mi_thunk): Use
6503 machopic_indirect_call_target instead of machopic_indirection_name
6506 2011-07-12 Laurent GUERBY <laurent@guerby.net>
6507 Eric Botcazou <ebotcazou@adacore.com>
6509 * prefix.h: Wrap up in extern "C" block.
6511 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
6513 AMD bdver2 Enablement
6514 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6515 (case ${target}): Add bdver2.
6516 * config/i386/driver-i386.c (host_detect_local_cpu): Let
6517 -march=native recognize bdver2 processors.
6518 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6519 bdver2 def_and_undef
6520 * config/i386/i386.c (struct processor_costs bdver2_cost): New
6522 (m_BDVER2): New definition.
6523 (m_AMD_MULTIPLE): Includes m_BDVER2.
6524 (initial_ix86_tune_features): Add bdver2 tuning.
6525 (processor_target_table): Add bdver2 entry.
6526 (static const char *const cpu_names): Add bdver2 entry.
6527 (ix86_option_override_internal): Add bdver2 instruction sets.
6528 (ix86_issue_rate): Add bdver2.
6529 (ix86_adjust_cost): Add bdver2.
6530 (has_dispatch): Add bdver2.
6531 * config/i386/i386.h (TARGET_BDVER2): New definition.
6532 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6533 (enum processor_type): Add PROCESSOR_BDVER2.
6534 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6535 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6538 2011-07-12 Richard Henderson <rth@redhat.com>
6541 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6542 destination address in memory on some paths.
6544 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
6546 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6547 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6548 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6549 * function.c (locate_and_pad_parm): Take it into account.
6550 * target.def (function_arg_round_boundary): New hook.
6551 * targhooks.c (default_function_arg_round_boundary): New function.
6552 * targhooks.h (default_function_arg_round_boundary): Declare.
6553 * doc/tm.texi: Regenerate.
6555 2011-07-12 Richard Guenther <rguenther@suse.de>
6557 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6558 Do not perform no-op changes.
6560 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
6562 * config/arm/predicates.md (neon_struct_operand): Make a normal
6564 (neon_struct_or_register_operand): New predicate.
6565 * config/arm/neon.md (movmisalign<mode>): Replace predicates
6566 with neon_struct_or_register_operand.
6567 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6568 neon_struct_operand instead of memory_operand.
6570 2011-07-12 Martin Jambor <mjambor@suse.cz>
6572 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6573 * cgraph.c (cgraph_get_node_or_alias): Removed.
6574 (change_decl_assembler_name): Changed all calls to
6575 cgraph_get_node_or_alias to a call to cgraph_get_node.
6576 (cgraph_make_decl_local): Likewise.
6577 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6578 * varasm.c (default_binds_local_p_1): Likewise.
6579 (decl_binds_to_current_def_p): Likewise.
6581 2011-07-12 Jakub Jelinek <jakub@redhat.com>
6583 PR tree-optimization/49712
6584 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6586 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
6588 * genautomata.c (add_arc): Return void. All callers changed.
6589 (make_automaton): Remove dead code.
6591 2011-07-11 Richard Henderson <rth@redhat.com>
6593 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6594 (DW_FRAME_POINTER_REGNUM): New.
6595 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6596 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6598 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6599 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6600 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6602 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6603 * dwarf2out.h (dwarf_frame_regnum): New.
6604 (struct cfa_loc): Document the domain of the reg member.
6606 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
6608 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6609 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
6611 2011-07-11 Jakub Jelinek <jakub@redhat.com>
6614 * dwarf2out.c (int_shift_loc_descriptor): New function.
6615 (int_loc_descriptor): If shorter, emit i as
6616 (i >> shift), shift, DW_OP_shl for suitable shift value.
6617 Similarly, try to optimize large negative values using
6618 DW_OP_neg of a positive value if shorter.
6619 (size_of_int_shift_loc_descriptor): New function.
6620 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6622 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6623 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6624 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6626 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6627 addend as added DW_OP_plus if it is shorter.
6629 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6631 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6632 (DTORS_SECTION_ASM_OP): Define.
6634 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6636 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6637 * config/t-dfprules: Move to ../libgcc/config.
6638 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6639 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6640 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6641 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6643 (i[34567]86-*-cygwin*): Likewise.
6644 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6645 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6646 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6647 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6648 D64PBIT_FUNCS, D128PBIT_FUNCS.
6650 2011-07-11 Richard Guenther <rguenther@suse.de>
6652 * tree-vrp.c (simplify_conversion_using_ranges): Manually
6653 translate the source value-range through the conversion chain.
6655 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
6657 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6659 2011-07-11 Arthur Loiret <aloiret@debian.org>
6661 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6662 a bi-arch compiler defaulting to 31-bit. In this case:
6663 (tmake_file): Add s390/t-linux64.
6664 * doc/install.texi: Add s390-linux to the list of targets supporting
6665 --enable-targets=all.
6667 2011-07-11 Arthur Loiret <aloiret@debian.org>
6668 Matthias Klose <doko@debian.org>
6670 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6671 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6672 (tm_file): Add mips/linux64.h.
6673 (tmake_file): Add mips/t-linux64.
6674 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6675 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6676 instead of hardcoded mabi=n32.
6677 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6678 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6681 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6683 * passes.c (init_optimization_passes): Add invariant motion pass
6684 after induction variable optimization.
6686 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
6689 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6690 offsets 1..5 set cc0 in a usable way.
6692 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
6694 * tree.h (call_expr_arg): Remove.
6695 (call_expr_argp): Likewise.
6697 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
6699 * config/sparc/sparc.md (save_register_window_1): Rename to...
6700 (window_save): ...this.
6701 * config/sparc/sparc.c (emit_save_register_window): Rename to...
6702 (emit_window_save): ...this.
6703 (sparc_expand_prologue): Adjust to above renaming.
6705 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
6707 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6710 2011-07-10 Richard Henderson <rth@redhat.com>
6712 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6713 run final, instead of emitting text directly.
6715 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
6717 * config/i386/i386.c (ix86_option_override_internal): Turn on
6718 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
6719 small PIC models for TARGET_X32.
6721 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
6724 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6728 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6729 stray notes and debug insns by using prev_nonnote_nondebug_insn
6730 instead of PREV_INSN.
6732 2011-07-09 Richard Henderson <rth@redhat.com>
6734 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6735 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6736 * dwarf2out.c: ... here.
6737 (output_all_cfis): Remove.
6738 (dwarf2out_switch_text_section): Use output_cfis directly.
6739 (size_of_locs): Export.
6740 (output_loc_sequence, output_loc_sequence_raw): Export.
6741 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6742 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6743 output_cfa_loc_raw): Move to ...
6744 * dwarfcfi.c: ... here.
6745 * dwarf2out.h: Update decls.
6747 2011-07-09 Richard Henderson <rth@redhat.com>
6749 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6750 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6751 * dwarf2cfi.c: ... here.
6752 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6753 (DWARF_ROUND, DWARF_CIE_ID): Remove.
6754 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6755 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6756 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6758 2011-07-09 Richard Henderson <rth@redhat.com>
6760 * dwarf2cfi.c (cie_return_save): New.
6761 (queue_reg_save): Use compare_reg_or_pc.
6762 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6763 (dwarf2out_frame_debug_expr): Likewise.
6764 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6765 (initial_return_save): Likewise.
6766 (execute_dwarf2_frame): Save and restore initial return save from
6768 * config/mips/mips.c (mips_frame_set): Remove special case for
6769 DWARF_FRAME_RETURN_COLUMN.
6771 2011-07-09 Richard Henderson <rth@redhat.com>
6773 * dwarf2cfi.c (lookup_cfa): Remove.
6774 (execute_dwarf2_frame): Assert queues are empty on entry.
6775 Setup initial cfa directly, not via lookup_cfa.
6776 Don't clear args_size state here.
6778 2011-07-09 Richard Henderson <rth@redhat.com>
6780 * dwarf2cfi.c (add_cfi_vec): New.
6781 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
6782 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
6783 (execute_dwarf2_frame): Set add_cfi_vec.
6785 2011-07-09 Richard Henderson <rth@redhat.com>
6787 * defaults.h (ASM_COMMENT_START): Move here...
6788 * dwarf2asm.c: ... from here.
6789 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6790 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6791 * varasm.c: Likewise.
6793 2011-07-09 Richard Henderson <rth@redhat.com>
6796 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6797 (create_cfi_notes): ... do it here instead.
6799 2011-07-09 Jakub Jelinek <jakub@redhat.com>
6802 * dwarf2out.c (size_of_int_loc_descriptor): New function.
6803 (address_of_int_loc_descriptor): Use it.
6804 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6806 2011-07-09 Richard Henderson <rth@redhat.com>
6808 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6809 (prologue, epilogue): New.
6810 (return, *rts): New.
6811 (blockage, setd, seti): New.
6812 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6813 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6814 (pdp11_saved_regno): New.
6815 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6816 generate rtl instead of text.
6817 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6818 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
6819 * config/pdp11/pdp11-protos.h: Update.
6821 2011-07-09 Richard Henderson <rth@redhat.com>
6823 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6824 try to insert an rtl prologue here.
6825 (rs6000_output_function_epilogue): Similarly.
6826 * config/rs6000/rs6000.md (prologue): Emit a barrier to
6827 satisfy !TARGET_SCHED_PROLOG.
6828 (epilogue, sibcall_epilogue): Likewise.
6830 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
6832 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6834 (IN_OR_GLOBAL_P): Likewise.
6836 2011-07-08 Jason Merrill <jason@redhat.com>
6839 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6840 compound assignment.
6842 * cgraph.c (cgraph_add_to_same_comdat_group): New.
6843 * cgraph.h: Declare it.
6844 * ipa.c (function_and_variable_visibility): Make sure thunks
6845 have the right visibility.
6847 2011-07-08 Richard Henderson <rth@redhat.com>
6850 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6851 any tablejump vector.
6854 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6855 end of the prologue.
6857 2011-07-08 Jakub Jelinek <jakub@redhat.com>
6860 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6861 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6862 * config/rs6000/vector.md (vector_select_<mode>,
6863 vector_select_<mode>_uns): Change second operand of NE to
6864 CONST0_RTX (<MODE>mode) instead of const0_rtx.
6865 * config/rs6000/altivec.md (*altivec_vsel<mode>,
6866 *altivec_vsel<mode>_uns): Expect second operand of NE to be
6867 zero_constant of the corresponding vector mode.
6868 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6871 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
6873 * graphite-dependences.c (build_alias_set_powerset): Remove
6874 continue from loop, add one more assert.
6876 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
6879 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6880 In particular, allow 8-bit values in r28 and r29.
6881 (avr_hard_regno_scratch_ok): Disallow any register that might be
6882 part of the frame pointer.
6883 (avr_hard_regno_rename_ok): Same.
6884 (avr_legitimate_address_p): Don't allow SUBREGs.
6886 2011-07-08 Julian Brown <julian@codesourcery.com>
6888 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6890 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6891 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6892 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6893 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6894 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6895 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6896 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6897 registers in big-endian mode.
6899 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
6901 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6902 in terms of another.
6903 (write_attr_value): Write a cast if necessary.
6905 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6906 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6907 (REG_WORDS_BIG_ENDIAN): Document.
6908 * doc/tm.texi: Regenerate.
6909 * reload.c (operands_match_p): Take it into account.
6910 (reload_adjust_reg_for_mode): Likewise.
6911 * rtlanal.c (subreg_get_info): Likewise.
6913 2011-07-08 Richard Guenther <rguenther@suse.de>
6915 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6918 2011-07-08 Kai Tietz <ktietz@redhat.com>
6920 * fold-const.c (fold_truth_andor): Factored out truth_andor
6921 label from fold_binary as function.
6922 (fold_binary_loc): Replace truth_andor lable
6923 by function fold_truth_andor.
6925 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
6928 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6929 check if address is stored in register. If so - give up.
6930 (check_sibcall_argument_overlap_1): Do not perform check of
6931 overlapping when it is call to address.
6933 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
6935 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6938 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
6940 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6941 GET_MODE_BITSIZE where appropriate.
6942 (widen_leading, expand_parity, expand_ctz, expand_ffs,
6943 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6944 expand_float, expand_fix): Likewise.
6945 * expr.c (convert_move, convert_modes, expand_expr_real_2,
6946 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6947 * stor-layout.c (get_mode_bounds): Likewise.
6948 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6950 * convert.c (convert_to_integer): Likewise.
6951 * expmed.c (expand_shift_1): Likewise.
6953 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6956 * optabs.c (expand_binop): Tighten conditions for doubleword
6958 (widen_bswap): Assert that mode bitsize and precision are the same.
6959 * stor-layout.c (get_best_mode): Skip modes that have lower
6960 precision than bitsize.
6961 * recog.c (simplify_while_replacing): Assert that bitsize and
6962 precision are the same.
6964 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6966 * Makefile.in (LIBGCOV): Remove.
6967 (libgcc.mvars): Remove LIBGCOV.
6968 * libgov.c: Move to ../libgcc.
6970 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6972 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6974 2011-07-08 Martin Jambor <mjambor@suse.cz>
6976 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6977 is too big for total scalarization.
6979 2011-07-07 Richard Henderson <rth@redhat.com>
6981 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6982 (DBX_DEBUGGING_INFO): Undef.
6984 2011-07-07 Richard Henderson <rth@redhat.com>
6986 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
6987 Handle some opcodes specially for debugging.
6988 * print-rtl.c: Include dwarf2out.h
6989 (print_rtx): Handle NOTE_INSN_CFI.
6990 * Makefile.in (print-rtl.o): Update.
6992 2011-07-07 Richard Henderson <rth@redhat.com>
6994 * tree-pass.h (pass_dwarf2_frame): Declare.
6995 * passes.c (init_optimization_passes): Add it.
6996 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6997 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6998 make static, do not call add_cfis_to_fde.
6999 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7000 dwarf2out_frame_init): Merge into...
7001 (execute_dwarf2_frame): ... here. New function.
7002 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
7003 saved_do_cfi_asm to a tri-state variable.
7004 (gate_dwarf2_frame, pass_dwarf2_frame): New.
7005 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7006 if it has yet to be done. Don't call dwarf2cfi_function_init.
7007 * dwarf2out.h, debug.h: Update decls.
7008 * final.c (final_start_function): Don't call
7009 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7010 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7011 * toplev.c (lang_dependent_init): Likewise.
7013 2011-07-07 Richard Henderson <rth@redhat.com>
7015 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7016 FDE_TABLE_INCREMENT): Replace with...
7017 (fde_vec): ... this, a new vector.
7018 (current_fde): Remove. Replace all users with cfun->fde.
7019 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7020 (size_of_aranges, dwarf2out_finish): Likewise.
7021 (dwarf2out_alloc_current_fde): Break out from ...
7022 (dwarf2out_begin_prologue): ... here.
7023 (dwarf2out_frame_init): Remove.
7024 * dwarf2cfi.c: Update all users of current_fde.
7025 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7026 * dwarf2out.h: Update decls.
7027 (dw_fde_node): Add fde_index member.
7028 * function.h (struct function): Add fde member.
7030 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7031 Richard Henderson <rth@redhat.com>
7033 * dwarf2cfi.c (add_cfi): Remove.
7034 (dwarf2out_cfi_label): Remove force argument. Only generate the
7036 (add_fde_cfi): Simplify the different code paths.
7038 (old_cfa, old_cfa_remember): New.
7039 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7040 (last_reg_save_label): Remove.
7041 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7042 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7043 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7044 dwarf2out_frame_debug_cfa_expression,
7045 dwarf2out_frame_debug_cfa_restore,
7046 dwarf2out_frame_debug_cfa_window_save,
7047 dwarf2out_frame_debug_expr): Remove label parameter.
7048 (cfi_label_required_p, add_cfis_to_fde): New.
7049 (dwarf2out_frame_debug_after_prologue): New.
7050 (dwarf2cfi_frame_init): Initialize old_cfa.
7051 (dwarf2out_frame_debug_restore_state): Likewise.
7052 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7053 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7054 * final.c (final_start_function): Call
7055 dwarf2out_frame_debug_after_prologue.
7057 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7058 Richard Henderson <rth@redhat.com>
7060 * dwarf2cfi.c (cfi_insn): New.
7061 (dwarf2out_cfi_label): Don't emit cfi label here.
7062 (add_fde_cfi): Create a NOTE_INSN_CFI.
7063 (dwarf2out_frame_debug): Setup cfi_insn.
7064 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7065 (dwarf2out_cfi_begin_epilogue): Make static.
7066 (dwarf2out_frame_debug_restore_state): Make static.
7067 * dwarf2out.c (output_cfi_directive): Make static.
7068 (dwarf2out_emit_cfi): New.
7069 * dwarf2out.h: Update.
7070 * final.c (final): Remove CFI notes.
7071 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7072 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7073 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7074 * insn-notes.def (NOTE_INSN_CFI): New.
7075 (NOTE_INSN_CFI_LABEL): New.
7076 * rtl.h (union rtunion_def): Add rt_cfi member.
7077 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7079 2011-07-07 Richard Henderson <rth@redhat.com>
7081 * dwarf2cfi.c: New file.
7082 * Makefile.in (OBJS): Add it.
7083 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7084 * gengtype.c (open_base_files): Include dwarf2out.h.
7085 * coretypes.h (enum var_init_status): Move from ...
7087 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7088 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7089 expand_builtin_dwarf_sp_column, init_return_column_size,
7090 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7091 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7092 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7093 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7094 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7095 compute_barrier_args_size, dwarf2out_args_size,
7096 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7097 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7098 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7099 queue_reg_save, dwarf2out_flush_queued_reg_saves,
7100 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7101 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7102 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7103 dwarf2out_frame_debug_cfa_expression,
7104 dwarf2out_frame_debug_cfa_restore,
7105 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7106 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7107 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7108 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7109 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7110 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7111 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7112 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7113 dw_loc_descr_node): Move to dwarf2out.h.
7114 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7115 mem_loc_descriptor): Export.
7116 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
7117 (dwarf2out_frame_init): Extract CIE generation code to
7118 dwarf2cfi_frame_init.
7120 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
7123 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7124 MASK_V8PLUS, remove commented out flag and reorder.
7126 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7129 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7130 one non-complex and one complex argument, call c_save_expr on both
7133 2011-07-07 Martin Jambor <mjambor@suse.cz>
7136 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7137 (verify_cgraph_node): Some functinality moved to
7138 verify_edge_corresponds_to_fndecl, call it.
7140 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7142 * config.gcc (*local*): Remove.
7143 * doc/install-old.texi: Don't mention local configurations.
7145 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7148 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7149 referencing debug insns that have been reset.
7150 (dead_debug_insert_before): Don't assert reg is non-NULL,
7151 instead return immediately if it is NULL.
7153 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7155 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7157 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7159 * hw-doloop.c: New file.
7160 * hw-doloop.h: New file.
7161 * Makefile.in (OBJS): Add hw-doloop.o.
7162 (hw-doloop.o): New rule.
7163 ($(obj_out_file)): Add hw-doloop.h dependency.
7164 * config/bfin/bfin.c: Include "hw-doloop.h".
7165 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7166 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7167 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
7168 type changed to hwloop_info. Return bool, true if the loop was
7169 successfully optimized. Remove code that was moved to
7170 hw-doloop.c, and adjust other parts.
7171 (hwloop_fail): New static function, containing parts that used
7172 to be in bfin_optimize_loop.
7173 (bfin_discover_loop, bfin_discover_loops, free_loops,
7174 bfin_reorder_loops): Remove.
7175 (hwloop_pattern_reg): New static function.
7176 (bfin_doloop_hooks): New variable.
7177 (bfin_reorg_loops): Remove most code, call reorg_loops.
7178 * config/bfin/bfin.md (doloop_end splitter): Also enable if
7179 loop counter is a memory_operand.
7181 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
7183 * config.gcc: Support --with-multilib-list for x86 Linux targets.
7185 * configure.ac: Mention x86-64 for --with-multilib-list.
7186 * configure: Regenerated.
7188 * config/i386/gnu-user64.h (SPEC_64): Support x32.
7189 (SPEC_32): Likewise.
7190 (ASM_SPEC): Likewise.
7191 (LINK_SPEC): Likewise.
7192 (TARGET_THREAD_SSP_OFFSET): Likewise.
7193 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
7196 * config/i386/i386.h (TARGET_X32): New.
7198 (LONG_TYPE_SIZE): Likewise.
7199 (POINTER_SIZE): Likewise.
7200 (POINTERS_EXTEND_UNSIGNED): Likewise.
7201 (OPT_ARCH64): Support x32.
7202 (OPT_ARCH32): Likewise.
7204 * config/i386/i386.opt (mx32): New.
7206 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
7207 (GLIBC_DYNAMIC_LINKERX32): Likewise.
7208 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
7209 (GLIBC_DYNAMIC_LINKERX32): Likewise.
7211 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
7212 (BIONIC_DYNAMIC_LINKERX32): Likewise.
7213 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
7215 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
7217 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
7219 * doc/invoke.texi: Document -mx32.
7221 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
7223 * doc/invoke.texi (mwords-little-endian): Deprecate.
7224 * config/arm/arm.opt (mwords-little-endian): Likewise.
7225 * config/arm/arm.c (arm_option_override): Warn about the deprecation
7226 of -mwords-little-endian.
7228 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
7230 * reload1.c (choose_reload_regs): Use mode sizes to check whether
7231 an old reload register completely defines the required value.
7233 2011-07-07 Richard Guenther <rguenther@suse.de>
7235 * fold-const.c (fold_unary_loc): Do not strip sign-changes
7238 2011-07-07 Richard Guenther <rguenther@suse.de>
7240 * tree-vrp.c (simplify_conversion_using_ranges): New function.
7241 (simplify_stmt_using_ranges): Call it.
7243 2011-07-07 Kai Tietz <ktietz@redhat.com>
7245 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
7246 (lookup_logical_inverted_value): Likewise.
7247 (simplify_bitwise_binary_1): Likewise.
7248 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
7250 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7252 * gcc.c (%[Spec]): Don't document.
7253 (struct spec_list): Update comment.
7254 (do_spec_1): Don't handle %[Spec].
7255 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
7257 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7259 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
7260 default based on TARGET_ASM_NAMED_SECTION.
7261 * common/common-target.def (have_named_sections): Default to true.
7262 * common/config/default-common.c: Don't include tm.h.
7263 * common/config/picochip/picochip-common.c
7264 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
7265 * common/config/m32c/m32c-common.c: Remove.
7266 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
7267 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7268 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7269 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7270 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7271 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7272 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
7274 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7277 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
7278 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
7280 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7283 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
7285 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7288 * configure.ac (gcc_cv_as_hidden): Also accept
7289 x86_64-*-solaris2.1[0-9]*.
7290 (gcc_cv_as_cfi_directive): Likewise.
7291 (gcc_cv_as_comdat_group_group): Likewise.
7292 (set_have_as_tls): Likewise.
7293 * configure: Regenerate.
7294 * config.gcc (i[34567]86-*-solaris2*): Also handle
7295 x86_64-*-solaris2.1[0-9]*.
7296 * config.host (i[34567]86-*-solaris2*): Likewise.
7297 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7298 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
7299 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
7300 (TARGET_LD_EMULATION): Use it.
7301 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
7302 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
7303 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
7304 (ASM_CPU64_DEFAULT_SPEC): Define.
7305 (ASM_CPU_SPEC): Use %(asm_cpu_default).
7306 (ASM_SPEC): Redefine.
7307 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
7308 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
7309 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
7310 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
7312 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
7314 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7316 * config/sol2.h (ASM_SPEC): Split into ...
7317 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
7318 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
7319 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7320 (ASM_SPEC): Use ASM_SPEC_BASE.
7321 * config/sparc/sol2.h (ASM_SPEC): Redefine.
7323 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
7325 * config/avr/avr.md (*reload_insi): Change predicate #1 to
7326 const_int_operand. Ditto for peep2 producing this insn.
7327 Add argument to output_reload_insisf call.
7328 (*movsi,*movsf): Add argument to output_movsisf call.
7329 (*reload_insf): New insn and new peep2 to produce it.
7330 * config/avr/avr-protos.h (output_movsisf): Change prototype.
7331 (output_reload_insisf): Change prototype.
7332 * config/avr/avr.c (avr_asm_len): New function.
7333 (output_reload_insisf): Rewrite.
7334 (output_movsisf): Change prototype. output_reload_insisf for
7335 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
7336 (adjust_insn_length): Add argument to output_movsisf and
7337 output_reload_insisf call.
7339 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7341 * emit-rtl.c (paradoxical_subreg_p): New function.
7342 * rtl.h (paradoxical_subreg_p): Declare.
7343 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
7344 apply_distributive_law, simplify_comparison, simplify_set): Use it.
7345 * cse.c (record_jump_cond, cse_insn): Likewise.
7346 * expr.c (force_operand): Likewise.
7347 * rtlanal.c (num_sign_bit_copies1): Likewise.
7348 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
7349 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
7350 (push_reload): Use precision to check for paradoxical subregs.
7351 * expmed.c (extract_bit_field_1): Likewise.
7353 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
7354 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
7355 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
7356 simplify_set, simplify_logical, expand_compound_operation,
7357 make_extraction, force_to_mode, if_then_else_cond, extended_count,
7358 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
7359 record_value_for_reg): Likewise.
7360 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
7361 * simplify-rtx. c (simplify_unary_operation_1,
7362 simplify_binary_operation_1, simplify_const_relational_operation):
7365 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
7366 instead of GET_MODE_BITSIZE where appropriate.
7367 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
7368 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
7369 init_num_sign_bit_copies_in_rep): Likewise.
7370 * cse.c (fold_rtx, cse_insn): Likewise.
7371 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
7372 * simplify-rtx.c (simplify_unary_operation_1,
7373 simplify_const_unary_operation, simplify_binary_operation_1,
7374 simplify_const_binary_operation, simplify_ternary_operation,
7375 simplify_const_relational_operation, simplify_subreg): Likewise.
7376 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
7377 simplify_if_then_else, simplify_set, expand_compound_operation,
7378 expand_field_assignment, make_extraction, if_then_else_cond,
7379 make_compound_operation, force_to_mode, make_field_assignment,
7380 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
7381 extended_count, try_widen_shift_mode, simplify_shift_const_1,
7382 simplify_comparison, record_promoted_value, simplify_compare_const,
7383 record_dead_and_set_regs_1): Likewise.
7386 * simplify-rtx.c (simplify_const_binary_operation): Use the
7387 shift_truncation_mask hook instead of performing modulo by width.
7388 Compare against mode precision, not bitsize.
7389 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7390 Use shift_truncation_mask instead of constructing the value manually.
7392 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7394 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7396 (rs6000_save_toc_in_prologue_p): Ditto.
7398 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7399 up the static chain (r11) during indirect function calls.
7400 (-msave-toc-indirect): New undocumented debug switch.
7402 * config/rs6000/rs6000.c (struct machine_function): Add
7403 save_toc_in_prologue field to note whether the prologue needs to
7404 save the TOC value in the reserved stack location.
7405 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
7406 to save the TOC in the prologue, do so.
7407 (rs6000_trampoline_init): Don't allow creating AIX style
7408 trampolines if -mno-r11 is in effect.
7409 (rs6000_call_indirect_aix): New function to create AIX style
7410 indirect calls, adding support for -mno-r11 to suppress loading
7411 the static chain, and saving the TOC in the prologue instead of
7413 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7414 TOC in the prologue.
7416 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7418 (TOC_REGNUM): Ditto.
7419 (STATIC_CHAIN_REGNUM): Ditto.
7420 (ARG_POINTER_REGNUM): Ditto.
7421 (SFP_REGNO): Delete, unused.
7422 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7423 function descriptor offsets.
7424 (TOC_SAVE_OFFSET_64BIT): Ditto.
7425 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7426 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7427 (AIX_FUNC_DESC_SC_32BIT): Ditto.
7428 (AIX_FUNC_DESC_SC_64BIT): Ditto.
7429 (ptrload): New mode attribute for the appropriate load of a pointer.
7430 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7431 (call_indirect_aix64): Ditto.
7432 (call_value_indirect_aix32): Ditto.
7433 (call_value_indirect_aix64): Ditto.
7434 (call_indirect_nonlocal_aix32_internal): Ditto.
7435 (call_indirect_nonlocal_aix32): Ditto.
7436 (call_indirect_nonlocal_aix64_internal): Ditto.
7437 (call_indirect_nonlocal_aix64): Ditto.
7438 (call): Rewrite AIX indirect function calls. Add support for
7439 eliminating the static chain, and for moving the save of the TOC
7440 to the function prologue.
7441 (call_value): Ditto.
7442 (call_indirect_aix<ptrsize>): Ditto.
7443 (call_indirect_aix<ptrsize>_internal): Ditto.
7444 (call_indirect_aix<ptrsize>_internal2): Ditto.
7445 (call_indirect_aix<ptrsize>_nor11): Ditto.
7446 (call_value_indirect_aix<ptrsize>): Ditto.
7447 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7448 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7449 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7450 (call_nonlocal_aix32): Relocate in the rs6000.md file.
7451 (call_nonlocal_aix64): Ditto.
7453 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7454 -mno-r11 documentation.
7456 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7459 * doc/extend.texi (Compound Literals): Fix typo.
7461 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
7463 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7465 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
7467 * configure.ac (plugin-version.h): Generate
7468 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7469 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7472 * configure: Regenerate.
7474 * doc/plugins.texi (Building GCC plugins): Mention
7475 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7477 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
7479 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7480 * combine.c (make_extraction, gen_lowpart_or_truncate,
7481 apply_distributive_law, simplify_comparison,
7482 reg_truncated_to_mode, record_truncated_value): Use it.
7483 * cse.c (notreg_cost): Likewise.
7484 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7485 * expr.c (convert_move, convert_modes): Likewise.
7486 * optabs.c (expand_binop, expand_unop): Likewise.
7487 * postreload.c (move2add_last_label): Likewise.
7488 * regmove.c (optimize_reg_copy_3): Likewise.
7489 * rtlhooks.c (gen_lowpart_general): Likewise.
7490 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7492 2011-07-06 Joseph Myers <joseph@codesourcery.com>
7494 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7496 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
7498 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7499 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7500 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7501 (simplify_const_unary_operation, simplify_binary_operation_1,
7502 simplify_const_binary_operation, simplify_const_relational_operation):
7503 Use them. Use GET_MODE_MASK for masking and sign-extensions.
7504 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7505 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7506 simplify_shift_const_1, simplify_comparison): Likewise.
7507 * expr.c (convert_modes): Likewise.
7508 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7509 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7510 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7512 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7514 2011-07-06 Richard Guenther <rguenther@suse.de>
7516 PR tree-optimization/49645
7517 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7519 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7520 in type qualification here ...
7521 (copy_reference_ops_from_ref): ... not here.
7522 (vn_reference_lookup_3): ... or here.
7523 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7524 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7526 2011-07-06 Ian Lance Taylor <iant@google.com>
7528 * doc/install.texi (Configuration): It's
7529 --enable-gnu-indirect-function, not --enable-indirect-function.
7531 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
7533 * simplify-rtx.c (simplify_const_binary_operation): Use the
7534 shift_truncation_mask hook instead of performing modulo by width.
7535 Compare against mode precision, not bitsize.
7536 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7537 Use shift_truncation_mask instead of constructing the value manually.
7539 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
7542 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7543 address computation and convert to address_mode if needed.
7545 2011-07-06 Richard Guenther <rguenther@suse.de>
7547 * tree.c (build_common_tree_nodes_2): Merge with
7548 build_common_tree_nodes.
7549 * tree.h (build_common_tree_nodes): Adjust prototype.
7550 (build_common_tree_nodes_2): Remove.
7551 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7552 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7554 2011-07-05 Jakub Jelinek <jakub@redhat.com>
7556 PR tree-optimization/49618
7557 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7558 t recurse on the decl.
7559 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7560 return true if expr isn't known to be defined in current
7561 TU or some other LTO partition.
7563 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7565 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7566 override CASE_VALUES_THRESHOLD.
7568 * stmt.c (toplevel): Include params.h.
7569 (case_values_threshold): Use the --param case-values-threshold
7570 value if non-zero, otherwise use machine dependent value.
7571 (expand_case): Use case_values_threshold.
7573 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7575 * doc/invoke.texi (--param case-values-threshold): Document.
7577 2011-07-05 Richard Henderson <rth@redhat.com>
7579 * dwarf2out.c (dwarf2out_cfi_label): Make static.
7580 (dwarf2out_flush_queued_reg_saves): Make static.
7581 (dwarf2out_reg_save): Remove.
7582 (dwarf2out_return_save): Remove.
7583 (dwarf2out_return_reg): Remove.
7584 (dwarf2out_reg_save_reg): Remove.
7585 (dwarf2out_def_cfa): Merge into ...
7586 (dwarf2out_frame_init): ... here.
7587 * dwarf2out.h, tree.h: Remove declarations as necessary.
7589 2011-07-05 Richard Henderson <rth@redhat.com>
7591 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7592 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7593 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7596 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7597 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7598 (process_epilogue): Don't call dwarf2out_def_cfa.
7600 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7601 indicate the return address save.
7602 (process_cfa_register): Likewise.
7604 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7605 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7607 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7608 for ar.pfs save at alloc insn.
7610 2011-07-05 Richard Henderson <rth@redhat.com>
7612 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7613 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7614 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7616 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7617 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
7618 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7619 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7621 2011-07-05 Richard Henderson <rth@redhat.com>
7623 * config/vax/vax.md (define_c_enum unspecv): New. Define the
7624 VUNSPEC_* constants here instead of via define_constants.
7625 (VUNSPEC_PEM): New constant.
7626 (procedure_entry_mask): New insn.
7627 (prologue): New expander.
7628 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7629 (vax_expand_prologue): Rename from vax_output_function_prologue;
7630 emit rtl instead of text.
7631 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7632 (print_operand): Add 'x' prefix.
7634 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
7637 * calls.c (precompute_register_parameters): Promote the function
7638 argument before checking non-legitimate constant.
7640 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7642 PR tree-optimization/47654
7643 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7644 (lst_do_strip_mine_loop): Return an int.
7645 (lst_do_strip_mine): Same.
7646 (scop_do_strip_mine): Same.
7647 (scop_do_block): Loop blocking should strip-mine at least two loops.
7648 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7649 (scop_do_interchange): Same.
7650 * graphite-poly.h (scop_do_interchange): Update declaration.
7651 (scop_do_strip_mine): Same.
7653 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7655 * graphite-clast-to-gimple.c (precision_for_value): Removed.
7656 (precision_for_interval): Removed.
7657 (gcc_type_for_interval): Use mpz_sizeinbase.
7659 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7661 * graphite-ppl.h (value_max): Correct computation of max.
7663 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
7665 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7667 2011-07-05 Richard Guenther <rguenther@suse.de>
7669 * c-decl.c (c_init_decl_processing): Defer building common
7670 tree nodes to c_common_nodes_and_builtins.
7672 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
7674 PR tree-optimization/49580
7675 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7676 the loop's number of iterations.
7677 * tree-parloops.c (transform_to_exit_first_loop): Add the
7678 handling of the loop's number of iterations before the call
7679 to gimple_duplicate_sese_tail.
7680 Insert the stmt caclculating the new rhs of the loop's
7681 condition stmt to the preheader instead of iters_bb.
7683 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
7685 PR rtl-optimization/47449
7686 * fwprop.c (forward_propagate_subreg): Don't propagate hard
7687 register nor zero/sign extended hard register.
7689 2011-07-05 Richard Guenther <rguenther@suse.de>
7691 PR tree-optimization/49518
7692 PR tree-optimization/49628
7693 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7694 irrelevant and invariant data-references.
7695 (vect_analyze_data_ref_access): For invariant loads clear the
7698 2011-07-04 Jakub Jelinek <jakub@redhat.com>
7700 PR rtl-optimization/49619
7701 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7702 pass VOIDmode as op0_mode to recursive call, and return temp even
7703 when different from tor, just if it is not IOR of the original
7706 PR rtl-optimization/49472
7707 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7708 negating MULT, negate the second operand instead of first.
7709 (simplify_binary_operation_1) <case MULT>: If one operand is
7710 a NEG and the other is MULT, don't attempt to optimize by negation
7711 of the MULT operand if it only moves the NEG operation around.
7714 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7715 get_current_def return value if it can't be trusted to be
7716 the current value of the variable in the current bb.
7718 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
7721 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7722 general register to memory for !TARGET_INTER_UNIT_MOVES.
7724 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
7727 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7728 instead of TREE_READONLY.
7730 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
7732 * doc/extend.texi (AVR Built-in Functions): Update documentation
7733 of __builtin_avr_fmul*.
7734 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7735 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7736 * config/avr/avr.md (fmul): Rename to fmul_insn.
7737 (fmuls): Rename to fmuls_insn.
7738 (fmulsu): Rename to fmulsu_insn.
7739 (fmul,fmuls,fmulsu): New expander.
7740 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7741 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7742 * config/avr/libgcc.S (__fmul): New function.
7743 (__fmuls): New function.
7744 (__fmulsu,__fmulsu_exit): New function.
7746 2011-07-04 Richard Guenther <rguenther@suse.de>
7748 PR tree-optimization/49615
7749 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7750 basic-block index check.
7752 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
7754 * longlong.h (count_leading_zeros, count_trailing_zeros,
7755 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7758 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
7760 PR tree-optimization/49610
7761 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7764 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
7765 Olivier Hainque <hainque@adacore.com>
7766 Nicolas Setton <setton@adacore.com>
7768 * tree.h (TYPE_ARTIFICIAL): New flag.
7769 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7770 the DIE of the type if it is artificial.
7771 (gen_array_type_die): Likewise.
7772 (gen_enumeration_type_die): Likewise.
7773 (gen_struct_or_union_type_die): Likewise.
7774 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7775 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7777 2011-07-01 Jakub Jelinek <jakub@redhat.com>
7779 * tree-object-size.c (pass_through_call): Handle
7780 BUILT_IN_ASSUME_ALIGNED.
7782 2011-07-01 Martin Jambor <mjambor@suse.cz>
7784 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7786 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
7789 * explow.c (update_nonlocal_goto_save_area): Use proper mode
7790 for stack save area.
7791 * function.c (expand_function_start): Likewise.
7793 2011-07-01 Richard Guenther <rguenther@suse.de>
7796 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7797 may have unknown refs.
7799 2011-07-01 Kai Tietz <ktietz@redhat.com>
7801 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7803 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7805 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7806 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7807 (Specific, mips-sgi-irix6): Likewise.
7809 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7812 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7814 2011-07-01 Jakub Jelinek <jakub@redhat.com>
7816 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7817 [idx]= and [idx1 ... idx2]= before initializers if needed for
7820 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
7822 * config.gcc (score-*-elf): Remove score7.o.
7823 * config/score/t-score-elf: Likewise.
7824 * config/score/score.c: Merge score7 to score.c and
7825 remove forwarding functions.
7826 * config/score/score7.c: Deleted.
7827 * config/score/score7.h: Deleted.
7829 2011-07-01 Richard Guenther <rguenther@suse.de>
7831 PR tree-optimization/49603
7832 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7834 2011-06-30 Martin Jambor <mjambor@suse.cz>
7836 * tree-sra.c (struct access): Rename total_scalarization to
7837 grp_total_scalarization
7838 (completely_scalarize_var): New function.
7839 (sort_and_splice_var_accesses): Set total_scalarization in the
7840 representative access.
7841 (analyze_access_subtree): Propagate total scalarization accross the
7842 tree, no holes in totally scalarized trees, simplify coverage
7844 (analyze_all_variable_accesses): Call completely_scalarize_var instead
7845 of completely_scalarize_record.
7847 2011-06-30 Richard Henderson <rth@redhat.com>
7849 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7850 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7851 * config/i386/i386.c: Don't include dwarf2out.h.
7852 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7853 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7854 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
7855 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7856 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7858 2011-06-30 Richard Henderson <rth@redhat.com>
7860 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7861 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7862 * final.c (final_scan_insn): Look for it, and invoke
7863 dwarf2out_frame_debug before the insn if found.
7865 2011-06-30 Richard Henderson <rth@redhat.com>
7867 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7868 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7870 2011-06-30 Richard Henderson <rth@redhat.com>
7872 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7873 Define a vector of this type.
7874 (regs_saved_in_regs): Use a VEC.
7875 (num_regs_saved_in_regs): Remove.
7876 (compare_reg_or_pc): New.
7877 (record_reg_saved_in_reg): Split out from...
7878 (dwarf2out_flush_queued_reg_saves): ... here.
7879 (clobbers_queued_reg_save): Update for VEC.
7880 (reg_saved_in): Likewise.
7881 (dwarf2out_frame_debug_init): Likewise.
7882 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7883 (dwarf2out_frame_debug_cfa_register): Likewise.
7885 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
7887 PR tree-optimization/49572
7888 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7889 type of the RHS instead of that of the LHS for the expression type.
7891 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
7893 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7896 2011-06-30 Richard Guenther <rguenther@suse.de>
7898 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7899 * tree-ssa-structalias.c (create_variable_info_for): Do not
7900 add initial constraints for non-var-decls. Properly handle
7901 globals in other ltrans partitions.
7902 (intra_create_variable_infos): Manually create constraints for
7903 the fake no-alias parameter.
7904 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7905 and assert there are no clones.
7907 2011-06-30 Richard Guenther <rguenther@suse.de>
7909 PR tree-optimization/46787
7910 * tree-data-ref.c (dr_address_invariant_p): Remove.
7911 (find_data_references_in_stmt): Invariant accesses are ok now.
7912 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7913 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7916 2011-06-30 Martin Jambor <mjambor@suse.cz>
7918 PR tree-optimization/49094
7919 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7920 (build_accesses_from_assign): Use it.
7922 2011-06-30 Jakub Jelinek <jakub@redhat.com>
7924 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7925 handling of BUILT_IN_ASSUME_ALIGNED.
7928 * dwarf2out.c (output_abbrev_section): Don't return early
7929 if abbrev_die_table_in_use is 1.
7930 (dwarf2out_finish): Instead don't call output_abbrev_section
7931 nor emit abbrev_section_label in that case.
7933 2011-06-30 Nick Clifton <nickc@redhat.com>
7935 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7938 2011-06-30 Jakub Jelinek <jakub@redhat.com>
7940 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7941 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7943 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
7945 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7946 both pattern and original statements if necessary.
7947 (vect_transform_loop): Likewise.
7948 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7949 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7950 Mark the pattern statement only if the original statement doesn't
7952 (process_use): Call vect_mark_relevant with additional parameter.
7953 (vect_mark_stmts_to_be_vectorized): Likewise.
7954 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7955 (vect_analyze_stmt): Handle both pattern and original statements
7957 (vect_transform_stmt): Don't store vectorized pattern statement
7958 in the original statement.
7959 (vect_is_simple_use_1): Use related pattern statement only if the
7960 original statement is irrelevant.
7961 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7963 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
7965 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7967 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7969 (TARGET_AVX128_OPTIMAL): New definition.
7970 * config/i386/i386.c (initial_ix86_tune_features): Initialize
7971 X86_TUNE_AVX128_OPTIMAL entry.
7972 (ix86_option_override_internal): Enable the generation
7973 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7974 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7975 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7977 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
7979 PR tree-optimization/49539
7980 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7981 names by means of stmt_references_abnormal_ssa_name.
7982 (associate_plusminus): Call can_propagate_from before propagating
7983 from definition statements.
7984 (ssa_forward_propagate_and_combine): Remove superfluous newline.
7986 2011-06-29 Richard Guenther <rguenther@suse.de>
7988 * doc/invoke.texi: Document -scev dump modifier.
7989 * tree-pass.h (TDF_SCEV): New dump flag.
7990 * tree-dump.c (dump_option_value_in): Add scev.
7991 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7992 * tree-scalar-evolution.c: Likewise.
7994 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
7996 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7997 (cxa_type_match): Correct declaration.
7998 (__gnu_unwind_pr_common): Reconstruct additional indirection
7999 when __cxa_type_match returns succeeded_with_ptr_to_base.
8001 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8003 PR rtl-optimization/49114
8004 * reload.c (struct replacement): Remove SUBREG_LOC member.
8005 (push_reload): Do not set it.
8006 (push_replacement): Likewise.
8007 (subst_reload): Remove dead code.
8008 (copy_replacements): Remove assertion.
8009 (copy_replacements_1): Do not handle SUBREG_LOC.
8010 (move_replacements): Likewise.
8011 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
8012 Detect subregs via recursive descent instead of via SUBREG_LOC.
8014 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8016 * config/avr/avr.c (avr_encode_section_info): Dispatch to
8017 default_encode_section_info.
8019 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
8021 PR tree-optimization/49545
8022 * builtins.c (get_object_alignment_1): Update function comment.
8023 Do not use DECL_ALIGN for functions, but test
8024 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8025 * fold-const.c (get_pointer_modulus_and_residue): Don't check
8027 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8029 2011-06-29 Jakub Jelinek <jakub@redhat.com>
8032 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8033 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8035 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8038 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8039 about uninitialized data attributed 'progmem' from here...
8040 (avr_encode_section_info): ...to this new function.
8041 (TARGET_ENCODE_SECTION_INFO): New define.
8042 (avr_section_type_flags): For data in ".progmem.data", remove
8043 section flag SECTION_WRITE.
8045 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8047 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8049 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8050 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
8051 (__umulhisi3): Ditto.
8052 * config/avr/avr.md (mulhisi3): New insn expender.
8053 (umulhisi3): New insn expender.
8054 (*mulhisi3_call): New insn.
8055 (*umulhisi3_call): New insn.
8057 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8059 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8061 2011-06-28 Richard Henderson <rth@redhat.com>
8063 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
8064 all code and arguments that handled pushes. Update all callers.
8066 2011-06-28 Richard Henderson <rth@redhat.com>
8068 * config/arm/arm.c (arm_output_function_prologue): Don't call
8069 thumb1_output_function_prologue.
8070 (arm_expand_prologue): Avoid dead store.
8071 (number_of_first_bit_set): Use ctz_hwi.
8072 (thumb1_emit_multi_reg_push): New.
8073 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8074 to emit the entire prologue as rtl.
8075 (thumb1_output_interwork): Split out from
8076 thumb1_output_function_prologue.
8077 (thumb1_output_function_prologue): Remove.
8078 (arm_attr_length_push_multi): Handle thumb1.
8079 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8080 (prologue_thumb1_interwork): New.
8081 (*push_multi): Allow thumb1; use push_mult_memory_operand.
8082 * config/arm/predicates.md (push_mult_memory_operand): New.
8084 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8086 * config/sparc/sync.md (*stbar): Delete.
8087 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8089 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8091 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8093 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8095 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8096 (TARGET_64BIT_DEFAULT): Define.
8097 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8099 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8101 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8103 * common.opt (in_lto_p): New Variable entry.
8104 * flags.h (in_lto_p): Move to common.opt.
8105 * gcc.c: Include params.h.
8106 (set_option_handlers): Also use common_handle_option and
8107 target_handle_option.
8108 (main): Call global_init_params, finish_params and init_options_struct.
8109 * opts.c (debug_type_names): Move from toplev.c.
8110 (print_filtered_help): Access quiet_flag through opts pointer.
8111 (common_handle_option): Return early in the driver for some options.
8112 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8114 * toplev.c (in_lto_p): Move to common.opt.
8115 (debug_type_names): Move to opts.c.
8116 * Makefile.in (OBJS): Remove opts.o.
8117 (OBJS-libcommon-target): Add opts.o.
8118 (gcc.o): Update dependencies.
8120 2011-06-28 Kai Tietz <ktietz@redhat.com>
8122 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8124 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8126 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8127 with '=' constraint modifier.
8128 (*divdf3_vfp): Likewise.
8129 ("*mulsf3_vfp"): Likewise.
8130 ("*muldf3_vfp"): Likewise.
8131 ("*mulsf3negsf_vfp"): Likewise.
8132 ("*muldf3negdf_vfp"): Likewise.
8134 2011-06-28 Nick Clifton <nickc@redhat.com>
8136 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8137 relaxation when performing an incremental link.
8139 2011-06-28 Kai Tietz <ktietz@redhat.com>
8141 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8142 within BB from last to first.
8144 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8146 * genattr-common.c: New. Based on genattr.c.
8147 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8148 (MOSTLYCLEANFILES): Add insn-attr-common.h.
8149 (opts.o): Update dependencies.
8150 (.PRECIOUS): Add insn-attr-common.h.
8151 (simple_rtl_generated_h): Add insn-attr-common.h.
8152 (build/genattr-common.o): New.
8153 (genprogrtl): Add attr-common.
8154 * genattr.c (main): Include insn-attr-common.h. Don't generate
8155 definitions of DELAY_SLOTS or INSN_SCHEDULING.
8156 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8158 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
8160 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8161 avr-*-* and avr-*-rtems* targets.
8163 * config/avr/elf.h: New file.
8164 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8165 (TARGET_ASM_SELECT_SECTION): Define.
8166 (INIT_SECTION_ASM_OP): Undefine.
8167 (FINI_SECTION_ASM_OP): Undefine.
8168 (READONLY_DATA_SECTION_ASM_OP): Undefine.
8169 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8170 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8172 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8173 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8174 (MAX_OFILE_ALIGNMENT): Move to elf.h.
8175 (STRING_LIMIT): Move to elf.h.
8176 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8177 (ASM_DECLARE_OBJECT_NAME): Remove.
8179 (ASM_OUTPUT_SKIP): Remove.
8180 (DWARF2_DEBUGGING_INFO): Remove.
8181 (OBJECT_FORMAT_ELF): Remove.
8182 (USER_LABEL_PREFIX): Remove.
8183 (ASM_OUTPUT_EXTERNAL): Remove.
8184 (ASM_OUTPUT_ASCII): Remove.
8185 (TYPE_ASM_OP): Remove.
8186 (SIZE_ASM_OP): Remove.
8187 (WEAK_ASM_OP): Remove.
8188 (STRING_ASM_OP): Remove.
8189 (SET_ASM_OP): Remove.
8190 (ASM_WEAKEN_LABEL): Remove.
8191 (TYPE_OPERAND_FMT): Remove.
8192 (ASM_DECLARE_FUNCTION_SIZE): Remove.
8193 (ASM_FINISH_DECLARE_OBJECT): Remove.
8194 (NO_DOLLAR_IN_LABEL): Remove.
8195 (ASM_GENERATE_INTERNAL_LABEL): Remove.
8196 (ASM_OUTPUT_CASE_LABEL): Remove.
8197 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
8198 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
8199 (gas_output_ascii): Remove.
8200 (gas_output_limited_string): Remove.
8201 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
8202 * config/avr/avr-protos.h
8203 (gas_output_ascii): Remove prototye.
8204 (gas_output_limited_string): Remove prototype.
8206 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
8209 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
8212 2011-06-27 Jan Hubicka <jh@suse.cz>
8214 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
8215 node instead of references in node.
8217 2011-06-27 Richard Henderson <rth@redhat.com>
8219 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
8220 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
8223 2011-06-27 Jakub Jelinek <jakub@redhat.com>
8225 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
8227 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
8228 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
8229 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
8230 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
8231 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
8232 (evaluate_stmt, execute_fold_all_builtins): Handle
8233 BUILT_IN_ASSUME_ALIGNED.
8234 * tree-ssa-dce.c (propagate_necessity): Likewise.
8235 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8236 call_may_clobber_ref_p_1): Likewise.
8237 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
8238 (expand_builtin_assume_aligned): New function.
8239 * doc/extend.texi (__builtin_assume_aligned): Document.
8242 * cselib.c (promote_debug_loc): If cselib_preserve_constants
8243 and l has two DEBUG_INSN owned locs instead of just one, adjust
8244 the second location's setting_insn too.
8246 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8249 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
8251 2011-06-27 Nick Clifton <nickc@redhat.com>
8253 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
8254 bit position of highest bit set into a count of the high zero bits.
8256 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8258 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
8260 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8263 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
8266 2011-06-27 Richard Guenther <rguenther@suse.de>
8268 PR tree-optimization/49394
8269 * passes.c (execute_one_pass): Restore current_pass after
8270 applying IPA transforms.
8272 2011-06-27 Kai Tietz <ktietz@redhat.com>
8274 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
8275 out of type precision after operation.
8276 (find_bswap): Take for limit value the integer auto-promotion
8279 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8281 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
8282 forward scan as well.
8284 2011-06-27 Tristan Gingold <gingold@adacore.com>
8287 * config/vms/vms-protos.h: New file.
8288 * config/vms/vms-crtlmap.map: New file.
8289 * config/vms/vms.c: New file.
8290 * config/vms/make-crtlmap.awk: New file.
8291 * config/vms/vms-crtl.h: File removed.
8292 * config/vms/vms-crtl-64.h: File removed.
8293 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
8294 * config/alpha/vms64.h: Do not include vms-crtl-64.h
8295 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
8296 clear some builtins on VMS. Calls vms_patch_builtins.
8297 (avms_asm_output_external): Remove.
8298 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
8299 (struct crtl_name_spec): Remove
8300 (DO_CTRL_NAMES): Remove.
8301 * config/ia64/vms.h (struct crtl_name_spec): Remove
8302 (DO_CTRL_NAMES): Remove.
8303 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
8304 clear some builtins on VMS. Calls vms_patch_builtins.
8305 (ia64_asm_output_external): Remove DO_CRTL_NAME.
8306 * config/ia64/vms64.h: Do not include vms-crtl-64.h
8307 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
8309 2011-06-27 Tristan Gingold <gingold@adacore.com>
8311 * config/alpha/alpha.c (alpha_end_function): Always generate .end
8314 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
8316 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
8317 the function receives nonlocal gotos.
8319 2011-06-27 Richard Guenther <rguenther@suse.de>
8321 PR tree-optimization/49536
8322 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
8323 For non-scalar inner types use a scalar type according to
8324 the scalar inner mode.
8326 2011-06-27 Richard Guenther <rguenther@suse.de>
8328 PR tree-optimization/49365
8329 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
8331 2011-06-27 Richard Guenther <rguenther@suse.de>
8333 PR tree-optimization/49169
8334 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
8335 the alignment of function decls.
8337 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
8340 * config/darwin.c (darwin_mergeable_string_section): Place string
8341 constants in '.cstring' rather than '.const' when CF/NSStrings are
8344 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
8346 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
8347 (emit_save_register_window): Likewise.
8348 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
8349 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
8350 Swap back %o7/%i7 in register naming.
8352 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
8355 * config/darwin.c (darwin_override_options): Improve warning when
8356 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
8357 is given with fpie/fPIE.
8358 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
8359 * config/darwin9.h (PIE_SPEC): New.
8361 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
8363 * timevar.c (timevar_print): Increase width for display of timevar
8366 2011-06-24 Jakub Jelinek <jakub@redhat.com>
8369 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
8370 instead of TYPE_CHAIN for chain_next for types.
8372 2011-06-24 Richard Henderson <rth@redhat.com>
8374 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
8375 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
8376 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
8377 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
8378 (sparc_flat_expand_prologue): Emit individual instructions
8379 instead of one of the above.
8381 2011-06-24 Easwaran Raman <eraman@google.com>
8383 PR rtl-optimization/49429
8385 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
8386 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
8387 used to copy y into x.
8388 * calls.c (initialize_argument_information): Mark
8389 an argument addressable if it is passed by invisible reference.
8390 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
8391 if it is passed by reference.
8393 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
8395 PR rtl-optimization/49504
8396 * rtlanal.c (nonzero_bits1): Properly handle addition or
8397 subtraction of a pointer in Pmode if pointers extend unsigned.
8398 (num_sign_bit_copies1): Likewise.
8400 2011-06-24 Martin Jambor <mjambor@suse.cz>
8402 PR tree-optimizations/49516
8403 * tree-sra.c (sra_modify_assign): Choose the safe path for
8404 aggregate copies if we also did scalar replacements.
8406 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8409 * config/arm/predicates.md (add_operator): New.
8410 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8412 2011-06-24 Andi Kleen <ak@linux.intel.com>
8414 * tree-sra.c (type_internals_preclude_sra_p): Add msg
8415 parameter. Split up ifs and report reason in *msg.
8417 (find_var_candiate): Add msg variable.
8418 Split up ifs and report reason to reject.
8419 (find_param_candidates): Add msg variable.
8420 Pass msg to type_internals_preclude_sra_p.
8422 2011-06-23 Jeff Law <law@redhat.com>
8425 * reload.h (reload): Change to return a bool.
8426 * ira.c (ira): If requested by reload, run a fast DCE pass after
8427 reload has completed. Fix comment typo.
8428 * reload1.c (need_dce): New file scoped static.
8429 (reload): Set reload_completed here. Return whether or not a DCE
8430 pass after reload is needed.
8431 (delete_dead_insn): Set need_dce as needed.
8434 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8435 to detect threading through joiner block. If there was already
8436 an edge to the new target, then do not change the PHI nodes.
8438 2011-06-23 Jakub Jelinek <jakub@redhat.com>
8440 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8441 get_pointer_alignment to see if base isn't sufficiently aligned.
8443 2011-06-23 Jan Hubicka <jh@suse.cz>
8445 PR tree-optimize/49373
8446 * tree-pass.h (all_late_ipa_passes): Declare.
8447 * cgraphunit.c (init_lowered_empty_function): Fix properties.
8448 (cgraph_optimize): Execute late passes; remove unreachable funcions
8449 after materialization.
8450 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8452 * passes.c (all_late_ipa_passes): Declare.
8453 (dump_passes, register_pass): Handle late ipa passes.
8454 (init_optimization_passes): Move ipa_pta to late passes; schedule
8455 fixup_cfg at beggining of all_passes.
8456 (apply_ipa_transforms): New function.
8457 (execute_one_pass): When doing simple ipa pass, apply all transforms.
8459 2011-06-23 Joseph Myers <joseph@codesourcery.com>
8461 * params.c: Include common/common-target.h. Don't include tm.h.
8462 (lang_independent_params): Move from toplev.c.
8463 (global_init_params): New.
8464 * params.h (global_init_params): Declare.
8465 * target.def (default_params): Move to common-target.def.
8466 * toplev.c (lang_independent_options): Remove.
8467 (lang_independent_params): Move to params.c.
8468 (general_init): Use global_init_params.
8469 * common/common-target.def (option_default_params): Move from
8471 * common/config/ia64/ia64-common.c: Include params.h.
8472 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8474 * common/config/rs6000/rs6000-common.c: Include params.h.
8475 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8477 * common/config/sh/sh-common.c: Include params.h.
8478 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8480 * common/config/spu/spu-common.c: Include params.h.
8481 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8483 * config/ia64/ia64.c (ia64_option_default_params,
8484 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8485 * config/rs6000/rs6000.c (rs6000_option_default_params,
8486 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8487 * config/sh/sh.c (sh_option_default_params,
8488 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8489 * config/spu/spu.c (spu_option_default_params,
8490 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8491 * Makefile.in (OBJS): Remove params.o.
8492 (OBJS-libcommon-target): Add params.o.
8493 (params.o, $(common_out_object_file)): Update dependencies.
8494 * doc/tm.texi: Regenerate.
8496 2011-06-23 Alan Modra <amodra@gmail.com>
8499 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8500 invocation for 2011-06-09 changes.
8502 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8505 * omp-low.c (expand_omp_for_static_nochunk): Only
8506 use n ceil/ nthreads size for the first n % nthreads threads in the
8507 team instead of all threads except for the last few ones which
8508 get less work or none at all.
8511 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8514 2011-06-22 Richard Guenther <rguenther@suse.de>
8516 PR tree-optimization/49493
8517 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8518 Refer to the alias target of variables.
8519 (associate_varinfo_to_alias_1): Remove.
8520 (ipa_pta_execute): Do not associate aliases with anything.
8521 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8522 (cgraph_function_node): Likewise.
8523 (cgraph_function_or_thunk_node): Likewise.
8524 (varpool_variable_node): Likewise.
8526 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
8528 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8529 * config.gcc (arm*-*-linux*): Default to gnu tls.
8530 (arm*-*-*): Add --with-tls option.
8531 (all_defaults): Add 'tls'.
8533 2011-06-22 Richard Henderson <rth@redhat.com>
8535 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8536 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8537 (dwarf2out_frame_debug_cfa_window_save): Rename from
8538 dwarf2out_window_save; make static.
8539 * tree.h (dwarf2out_window_save): Don't declare.
8541 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8542 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8543 (emit_save_register_window): Rename from gen_save_register_window;
8544 emit the insn and add REG_CFA_* notes.
8545 (sparc_expand_prologue): Update to match.
8546 * config/sparc/sparc.md (save_register_window_1): Simplify from
8547 save_register_window<P:mode>.
8549 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
8552 * config/i386/i386.md (*lea_general_2): Always allow SImode.
8553 (*lea_general_2_zext): Likewise.
8554 (imul to lea peepholes): Use const359_operand and check
8555 TARGET_PARTIAL_REG_STALL.
8557 * config/i386/predicates.md (const359_operand): New.
8559 2011-06-22 Michael Matz <matz@suse.de>
8561 * cgraphunit.c (assemble_thunk): Use correct return type.
8563 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
8564 Dmitry Melnik <dm@ispras.ru>
8566 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8567 (neon_output_shift_immediate): Ditto.
8568 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8570 (neon_output_shift_immediate): Ditto.
8571 * config/arm/neon.md (vashl<mode>3): Modified constraint.
8572 (vashr<mode>3_imm): New insn pattern.
8573 (vlshr<mode>3_imm): Ditto.
8574 (vashr<mode>3): Modified constraint.
8575 (vlshr<mode>3): Ditto.
8576 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8578 (imm_for_neon_rshift_operand): Ditto.
8579 (imm_lshift_or_reg_neon): Ditto.
8580 (imm_rshift_or_reg_neon): Ditto.
8582 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8584 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8586 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8587 builtin calls even if likelyvalue is not CONSTANT.
8588 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8589 Return get_value_for_expr of first operand
8590 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8591 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8592 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8593 their non-checking counterparts.
8594 (call_may_clobber_ref_p_1): Likewise.
8595 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8596 like their non-checking counterparts.
8597 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8598 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8599 like their non-checking counterparts.
8600 (find_func_clobbers): Likewise.
8601 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8602 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8604 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8605 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8606 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8607 of base type reference as argument.
8608 (resolve_addr_in_expr): Likewise. Fix keep computation.
8609 (convert_descriptor_to_signed): Renamed to...
8610 (convert_descriptor_to_mode): ... this. For wider types convert to
8611 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8612 (typed_binop): New function.
8613 (scompare_loc_descriptor, ucompare_loc_descriptor,
8614 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8615 default to unsigned type instead of signed.
8618 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8619 (gimple_build_debug_source_bind_stat): New prototype.
8620 (gimple_build_debug_source_bind): Define.
8621 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8622 gimple_debug_source_bind_get_value,
8623 gimple_debug_source_bind_get_value_ptr,
8624 gimple_debug_source_bind_set_var,
8625 gimple_debug_source_bind_set_value): New inlines.
8626 * gimple.c (gimple_build_debug_source_bind_stat): New function.
8627 * gimple-pretty-print.c (dump_gimple_debug): Handle
8628 GIMPLE_DEBUG_SOURCE_BIND.
8629 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8630 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8631 * tree-parloops.c (eliminate_local_variables,
8632 separate_decls_in_region): Likewise.
8633 (separate_decls_in_region_debug): Renamed from
8634 separate_decls_in_region_debug_bind. Handle
8635 gimple_debug_source_bind_p.
8636 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8638 (DECL_HAS_DEBUG_ARGS_P): Define.
8639 (struct tree_function_decl): Add has_debug_args_flag field.
8640 * tree.c (debug_args_for_decl): New variable.
8641 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8642 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8643 (rewrite_debug_stmt_uses): New function.
8644 (rewrite_stmt): Use it to rewrite debug stmt uses.
8645 * rtl.def (DEBUG_PARAMETER_REF): New.
8646 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8647 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8648 DEBUG_PARAMETER_REF.
8649 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8650 * print-rtl.c (print_rtx): Likewise.
8651 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8652 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8653 debug stmts in the first bb.
8654 * tree-inline.c (remap_ssa_name): If remapping default def
8655 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8656 a source bind debug stmt.
8657 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8658 (maybe_move_debug_stmts_to_successors): Likewise.
8659 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
8660 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8661 debug args vector from old_decl to new_decl.
8662 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8663 or modified parameters, add debug bind stmts before call
8664 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8665 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8666 on DECL_DEBUG_EXPRs from debug args vector.
8667 (expand_debug_source_expr): New function.
8668 (expand_debug_locations): Use it for source bind insns.
8669 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8670 * var-tracking.c (prepare_call_arguments): Add debug args
8671 to call_arguments if any.
8672 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8673 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8674 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8675 (get_ref_die_offset, parameter_ref_descriptor): New functions.
8676 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8677 (gen_subprogram_die): Handle parameters identified by
8678 DEBUG_PARAMETER_REF.
8680 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
8682 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8683 * doc/install.texi (Configuration): Document --with-tls.
8684 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8685 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8686 (arm_tls_descseq_addr): New.
8687 (legitimize_tls_address): Add tlsdesc support.
8688 (arm_cannot_copy_insn_p): Check for tlscall.
8689 (arm_emit_tls_decoration): Likewise.
8690 * config/arm/arm.h (TARGET_GNU2_TLS): New.
8691 (OPTION_DEFAULT_SPECS): Add with-tls support.
8692 * config/arm/arm.md (R1_REGNUM): Define.
8694 * config/arm/arm.opt (tls_type): New enumeration type and values.
8695 (mtls-dialect): New switch.
8696 * config/arm/arm-opts.h (enum tls_type): New.
8698 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
8700 * attribs.c (register_attribute): Added assert to check that all
8701 attribute specs are registered with a name that is not empty and
8702 does not start with '_'.
8703 (decl_attributes): Avoid the lookup of the "naked" attribute spec
8704 if the function has no attributes.
8705 * tree.c (is_attribute_with_length_p): Removed.
8706 (is_attribute_p): Removed.
8707 (private_is_attribute_p): New.
8708 (private_lookup_attribute): New.
8709 (lookup_attribute): Removed.
8710 (lookup_ident_attribute): New.
8711 (remove_attribute): Require the first argument to be in the form
8712 'text', not '__text__'. Updated asserts.
8713 (merge_attributes): Use lookup_ident_attributes instead of
8715 (merge_dllimport_decl_attributes): Use remove_attribute.
8716 (attribute_list_contained): Likewise.
8717 (attribute_list_equal): Immediately return 1 if the arguments are
8719 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
8720 'int'. Require the first argument to be in the form 'text', not
8721 '__text__'. Require the second argument to be an identifier.
8722 (lookup_attribute): Made inline. Require the first argument to be
8723 in the form 'text', not '__text__'.
8724 (private_is_attribute_p, private_lookup_attribute): New.
8727 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
8729 * builtins.c: Add sync_ or SYNC__ to builtin names.
8730 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8731 * omp-low.c: Add sync_ or SYNC__ to builtin names.
8733 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
8736 * config/avr/avr.md (extzv): New expander.
8738 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8739 * config/avr/constraints.md (C04): New constraint.
8740 * doc/md.texi (Machine Constraints): Document it.
8742 2011-06-21 Jakub Jelinek <jakub@redhat.com>
8745 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8746 unsignedp argument instead of 1 for clrsb_optab.
8747 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8748 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
8749 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8750 * optabs.c (widen_leading): Call widen_operand and expand_unop
8751 with 0 as unsignedp argument instead of 1 for clrsb_optab.
8752 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8754 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
8756 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8758 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
8760 * gensupport.c (add_define_attr): New static function.
8761 (is_predicable): Allow multi-alternative lists for the "predicable"
8763 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8764 (process_one_cond_exec): Call alter_attrs_for_insn.
8765 * doc/md.texi (Defining Attributes): Mention some standard names.
8766 (Conditional Execution): Update documentation for "predicable".
8768 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8769 __builtin_clrsbll): Document.
8770 * doc/rtl.texi (clrsb): New entry.
8771 * optabs.c (widen_leading): Renamed from widen_clz. New argument
8772 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
8773 (expand_unop): Handle clrsb_optab.
8774 (init_optabs): Initialize it.
8775 * optabs.h (enum optab_index): New entry OTI_clrsb.
8776 (clrsb_optab): Define.
8777 * genopinit.c (optabs): Add an entry for it.
8778 * builtins.c (expand_builtin): Handle clrsb builtin functions.
8779 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8780 BUILT_IN_CLRSBLL): New.
8781 * rtl.def (CLRSB): New code.
8782 * dwarf2out.c (mem_loc_descriptor): Handle it.
8783 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8784 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8786 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8787 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8788 (__ctzDI2): Move declaration.
8789 * config/bfin/bfin.md (clrsbsi2): New expander.
8790 (signbitssi2): Use the CLRSB rtx.
8791 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
8792 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8794 2011-06-21 Richard Guenther <rguenther@suse.de>
8796 * ipa-inline-transform.c (inline_transform): Fix previous change.
8798 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
8800 PR tree-optimization/49478
8801 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8802 with constant operand.
8804 2011-06-21 Richard Guenther <rguenther@suse.de>
8806 * ipa-inline-transform.c (inline_transform): Fix typo.
8808 2011-06-21 Richard Guenther <rguenther@suse.de>
8810 PR tree-optimization/49483
8811 * tree-vect-stmts.c (vectorizable_assignment): Also handle
8812 VIEW_CONVERT_EXPR conversions.
8814 2011-06-21 Joseph Myers <joseph@codesourcery.com>
8816 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8817 * config/avr/avr-tables.opt: New file (generated).
8818 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8819 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8821 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8822 (avr_option_override): Don't process -mmcu= argument here. Set
8823 avr_current_device using avr_mcu_index.
8824 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8825 * config/avr/avr.opt (mmcu=): Use Enum.
8826 * config/avr/t-avr (avr-devices.o): Update dependencies.
8827 ($(srcdir)/config/avr/avr-tables.opt): New.
8828 * target.def (help): Remove.
8829 * doc/tm.texi.in (TARGET_HELP): Remove.
8830 * doc/tm.texi: Regenerate.
8831 * opts.c: Don't include target.h.
8832 (common_handle_option): Don't call targetm.help.
8833 * system.h (TARGET_HELP): Poison.
8834 * Makefile.in (opts.o): Update dependencies.
8836 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8838 * config/usegld.h: New file.
8839 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8840 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8841 (LIB_SPEC): Likewise. Search /lib.
8842 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8843 (RDYNAMIC_SPEC): Handle GNU ld.
8844 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8846 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8847 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8848 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8849 (STACK_CHECK_STATIC_BUILTIN): Define.
8850 * config/sol2.opt (compat-bsd): Remove.
8851 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8852 * config/sol2-bi.h: New file.
8853 * config/sol2-gld.h: Remove.
8854 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8855 (NO_DBX_BNSYM_ENSYM): Remove.
8856 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8857 (STACK_CHECK_STATIC_BUILTIN): Remove.
8858 Test USE_GLD instead of TARGET_GNU_LD.
8859 * config/i386/sol2-10.h: Rename to ...
8860 * config/i386/sol2-bi.h .. this.
8861 (SUBTARGET_EXTRA_SPECS): Redefine.
8862 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8863 (MULTILIB_DEFAULTS): Remove.
8864 (DEFAULT_ARCH32_P): Define.
8865 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8866 (ARCH64_SUBDIR): Define.
8867 Test USE_GLD instead of TARGET_GNU_LD.
8868 (I386_EMULATION): Rename to ...
8869 (ARCH32_EMULATION): ... this.
8870 (X86_64_EMULATION): Rename to ...
8871 (ARCH64_EMULATION): ... this.
8872 (TARGET_LD_EMULATION): Remove.
8873 (LINK_ARCH_SPEC): Remove.
8874 * config/i386/sol2-gas.h: Remove.
8875 * config/i386/t-sol2-10: Rename to ...
8876 * config/i386/t-sol2-64: ... this.
8877 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8878 (AS_SPARC64_FLAG): Define.
8879 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8880 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8881 depending on TARGET_CPU_DEFAULT.
8882 (CPP_CPU_SPEC): Redefine.
8883 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8884 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8885 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8886 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8887 ASM_ARCH_DEFAULT_SPEC): Redefine.
8888 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8889 LINK_ARCH_DEFAULT_SPEC.
8890 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8891 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8892 (ARCH64_SUBDIR): Define.
8893 (LINK_ARCH64_SPEC): Redefine.
8894 (CC1_SPEC): Redefine.
8895 (OPTION_DEFAULT_SPECS): Redefine.
8896 (MULTILIB_DEFAULTS): Define.
8897 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8898 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8899 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8900 (NO_DBX_BNSYM_ENSYM): Remove.
8901 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8902 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8903 (TARGET_ASM_NAMED_SECTION): Likewise.
8904 (STACK_CHECK_STATIC_BUILTIN): Remove.
8905 * config/sparc/sol2-bi.h: Remove.
8906 * config/sparc/sol2-gas-bi.h: Remove.
8907 * config/sparc/sol2-gas.h: Remove.
8908 * config/sparc/sol2-gld-bi.h: Remove.
8909 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8911 (*-*-solaris2*): ... here.
8913 2011-06-21 Christian Bruel <christian.bruel@st.com>
8916 * ipa-inline.c (can_inline_edge_p): Check
8917 !DECL_DISREGARD_INLINE_LIMITS.
8919 2011-06-21 Christian Bruel <christian.bruel@st.com>
8922 * cgraphunit.c (process_function_and_variable_attributes): warn when
8923 always_inline functions that are not inline.
8924 * ipa-inline-transform.c (inline_transform): Always call
8926 * tree-inline.c (tree_inlinable_function_p): Use error instead
8928 (expand_call_inline): Likewise.
8930 2011-06-21 Jakub Jelinek <jakub@redhat.com>
8932 * Makefile.in (dg_target_exps): Set.
8933 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8934 instead of 7, try to divide it more evenly.
8936 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
8939 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8940 (avx256_split_unaligned_store): New definition.
8941 (ix86_option_override_internal): Enable avx256 unaligned load/store
8942 splitting only when avx256_split_unaligned_load/store is set.
8944 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
8946 * regrename.c (scan_rtx_reg): Handle the case where we write to an
8947 open chain in a smaller mode without failing the entire block.
8949 2011-06-21 Alan Modra <amodra@gmail.com>
8951 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8952 CONST high part large-toc address.
8953 (rs6000_tls_referenced_p): Make static.
8954 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8956 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8959 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8960 one of the operands is a register.
8962 2011-06-20 Kai Tietz <ktietz@redhat.com>
8964 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8965 operations in combination with binary and.
8967 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
8969 * regrename.c (do_replace): Don't update notes.
8971 2011-06-20 Alan Modra <amodra@gmail.com>
8973 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8974 of toc-relative address in CONST.
8975 (rs6000_delegitimize_address): Recognize changed address.
8976 (rs6000_legitimize_reload_address): Likewise.
8977 (rs6000_emit_move): Don't force these constants to memory.
8978 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8979 toc-relative address in CONST.
8980 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8981 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8983 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
8985 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8986 (count_trailing_zeros): Likewise.
8988 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
8991 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8992 .init_array can be used with .ctors on targets.
8993 * configure: Regenerated.
8995 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
8997 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8998 if the element type is volatile.
9000 2011-06-18 Jan Hubicka <jh@suse.cz>
9002 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9004 (lto_symtab_resolve_can_prevail_p): Likewise.
9005 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9006 * cgraphbuild.c (record_reference): Remove extra body alias code.
9007 (mark_load): Likewise.
9008 (mark_store): Likewise.
9009 * cgraph.h (varpool_node): Remove extra_name filed;
9010 add alias_of and extraname_alias.
9011 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9012 (varpool_alias_aliased_node): New inline function.
9013 (varpool_variable_node): New function.
9014 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9015 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9016 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9017 (input_varpool_node): Likewise.
9018 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9019 (varpool_externally_visible_p): Remove extra body alias code.
9020 (function_and_variable_visibility): Likewise.
9021 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9022 (ipa_pta_execute): Use it.
9023 * varpool.c (varpool_remove_node): Remove extra name alias code.
9024 (varpool_mark_needed_node): Likewise.
9025 (varpool_analyze_pending_decls): Analyze aliases.
9026 (assemble_aliases): New functoin.
9027 (varpool_assemble_decl): Use it.
9028 (varpool_create_variable_alias): New function.
9029 (varpool_extra_name_alias): Rewrite.
9030 (varpool_for_node_and_aliases): New function.
9032 2011-06-18 Jakub Jelinek <jakub@redhat.com>
9035 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9036 last_arg_constant and last argument doesn't match its predicate,
9037 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9038 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9039 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9040 spelling of error message.
9041 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9042 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9043 const_0_to_255_operand instead of const_int_operand.
9046 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9048 * config/i386/sse.md (blendbits): Remove mode attribute.
9049 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9050 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9051 Check integer value of operand 3 in insn constraint.
9053 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
9055 PR rtl-optimization/48542
9056 * reload.c (find_equiv_reg): Stop looking when finding a
9058 * reload1.c (reload_as_needed): Invalidate all reload
9059 registers when crossing a setjmp-type call.
9061 2011-06-16 Jeff Law <law@redhat.com>
9063 * tree-ssa-threadupdate.c (struct redirection_data): New field
9065 (THREAD_TARGET2): Define.
9066 (redirection_data_eq): Also check that the intermediate edge is equal.
9067 (lookup_redirection_data): Drop useless argument. Extract the
9068 outgoing_edge and intermediate edge from E. Callers updated.
9069 (copy_phi_args, update_destination_phis): New functions.
9070 (fix_duplicate_block_edges): Likewise.
9071 (create_edge_and_update_destination_phis): Duplicate all the edges
9072 hung off e->aux. Use copy_phi_args.
9073 (create_duplicates): Use fix_duplicate_block_edges.
9074 (fixup_template_block): Likewise.
9075 (redirect_edges): If necessary, redirect the joiner block's incoming
9076 edge to the duplicate of the joiner block.
9077 (thread_block): Don't muck up loops when threading through a joiner
9079 (thread_through_loop_header): Handle threading through a joiner block.
9080 (mark_threaded_blocks, register_jump_thread): Likewise.
9081 * tree-flow.h (register_jump_thread): Add new argument. Callers
9083 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9084 (thread_across_edge): Handle threading through a joiner block.
9086 2011-06-16 Martin Jambor <mjambor@suse.cz>
9088 PR tree-optimization/49343
9089 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9090 calculate offset, provide 2nd operand for the new COMPONENT_REF.
9092 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
9094 * config/darwin-protos.h (machopic_select_rtx_section): Move to
9095 inside RTX_CODE ifdef.
9097 2011-06-16 Tom de Vries <tom@codesourcery.com>
9100 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9101 Disallow NULL pointer for pointer arithmetic.
9103 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9107 2011-06-10 Wei Guozhi <carrot@google.com>
9110 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9111 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9112 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9114 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9116 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9117 (arm_legitimate_ldrd_p): New prototype.
9118 (arm_output_ldrd): New prototype.
9119 * config/arm/arm.c (arm_check_ldrd_operands): New function.
9120 (arm_legitimate_ldrd_p): New function.
9121 (arm_output_ldrd): New function.
9123 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
9126 * doc/tm.texi.in: Update Copyright date.
9127 * doc/tm.texi: Regenerate.
9128 * targhooks.c (default_setup_incoming_varargs): Replace
9129 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9130 (default_pretend_outgoing_varargs_named): Likewise.
9131 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9132 (hook_callee_copies_named): Likewise.
9133 (default_function_arg_advance): Likewise.
9134 (default_function_arg): Likewise.
9135 (default_function_incoming_arg): Likewise.
9136 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9137 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9138 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9139 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9140 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9141 * targhooks.h (default_setup_incoming_varargs): Likewise.
9142 (default_pretend_outgoing_varargs_named): Likewise.
9143 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9144 (hook_callee_copies_named): Likewise.
9145 (default_function_arg_advance): Likewise.
9146 (default_function_arg): Likewise.
9147 (default_function_incoming_arg): Likewise.
9148 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9149 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9150 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9151 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9152 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9153 * target.def (pass_by_reference): Likewise.
9154 (setup_incoming_varargs, strict_argument_naming): Likewise.
9155 (pretend_outgoing_varargs_named, callee_copies): Likewise.
9156 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9157 (function_incoming_arg): Likewise.
9158 * target.h: Don't include "tm.h" .
9159 (cumulative_args_t): New typedef.
9160 [GCC_TM_H] (get_cumulative_args): New static inline function.
9161 [GCC_TM_H] (pack_cumulative_args): Likewise.
9162 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9163 argument type with cumulative_args_t.
9164 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9165 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9166 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9167 (frv_arg_partial_bytes, frv_function_arg): Likewise.
9168 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9169 (frv_function_arg_1): Likewise.
9170 * config/s390/s390.c (s390_pass_by_reference): Likewise.
9171 (s390_function_arg_advance, s390_function_arg): Likewise.
9172 * config/m32c/m32c.c (m32c_function_arg): Likewise.
9173 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9174 (m32c_strict_argument_naming): Likewise.
9175 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9176 (spu_function_arg_advance): Likewise.
9177 (spu_setup_incoming_varargs): Likewise. Make static.
9178 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9180 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9181 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9182 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
9183 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
9184 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
9185 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
9186 (mep_pass_by_reference, mep_function_arg): Likewise.
9187 (mep_function_arg_advance): Likewise.
9188 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
9189 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
9190 (m32r_function_arg, m32r_function_arg_advance): Likewise.
9191 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
9192 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
9193 (ix86_function_arg, ix86_pass_by_reference): Likewise.
9194 (ix86_setup_incoming_varargs): Likewise.
9195 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
9196 (sh_strict_argument_naming): Likewise.
9197 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
9198 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
9199 (sh_function_arg_advance, sh_function_arg): Likewise.
9200 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
9201 (pdp11_function_arg_advance): Likewise.
9202 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9204 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
9205 * config/avr/avr.c (avr_function_arg): Likewise.
9206 (avr_function_arg_advance): Likewise.
9207 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
9208 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
9209 (xtensa_function_arg_1): Likewise.
9210 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
9212 (xstormy16_function_arg): Likewise.
9213 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
9214 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
9215 (fr30_function_arg_advance): Likewise.
9216 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
9217 (lm32_function_arg, lm32_function_arg_advance): Likewise.
9218 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
9219 (moxie_function_arg, moxie_function_arg_advance): Likewise.
9220 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
9221 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
9222 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
9223 (cris_function_arg, cris_function_incoming_arg): Likewise.
9224 (cris_function_arg_advance, cris_function_arg_1): Likewise.
9225 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
9226 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
9227 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
9228 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
9229 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
9230 (mn10300_arg_partial_bytes): Likewise.
9231 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
9232 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
9233 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
9234 (ia64_function_arg_1): Likewise.
9235 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
9236 (m68k_function_arg): Likewise.
9237 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
9238 (rs6000_function_arg, setup_incoming_varargs): Likewise.
9239 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
9240 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
9241 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
9242 (picochip_arg_advance): Likewise.
9243 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
9244 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
9245 (mcore_function_arg_advance): Likewise.
9246 * config/score/score.c (score_pass_by_reference): Likewise.
9247 (score_function_arg_advance): Likewise.
9248 (score_arg_partial_bytes): Likewise. Make static.
9249 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
9250 * config/arm/arm.c (arm_arg_partial_bytes): Replace
9251 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9252 (arm_function_arg, arm_function_arg_advance): Likewise.
9253 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
9254 * config/pa/pa.c (pa_pass_by_reference): Likewise.
9255 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
9256 (pa_function_arg): Likewise.
9257 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
9258 (mips_function_arg, mips_function_arg_advance): Likewise.
9259 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
9260 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
9261 * config/vax/vax.c (vax_function_arg): Likewise.
9262 (vax_function_arg_advance): Likewise.
9263 * config/h8300/h8300.c (h8300_function_arg): Likewise.
9264 (h8300_function_arg_advance): Likewise.
9265 * config/v850/v850.c (v850_pass_by_reference): Likewise.
9266 (v850_strict_argument_naming, v850_function_arg): Likewise.
9267 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
9268 (v850_setup_incoming_varargs): Likewise.
9269 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
9270 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
9271 (mmix_function_arg, mmix_pass_by_reference): Likewise.
9272 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
9274 * config/bfin/bfin.c (setup_incoming_varargs): Replace
9275 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9276 (bfin_function_arg_advance, bfin_function_arg): Likewise.
9277 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
9278 * calls.c (emit_call_1): Change type of args_so_far to
9279 cumulative_args_t. Changed all callers.
9280 (initialize_argument_information): Likewise.
9281 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
9282 * dse.c (get_call_args): Likewise.
9283 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
9284 * function.c (pass_by_reference, reference_callee_copied): Likewise.
9285 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
9286 New member args_so_far_v. Changed all users.
9287 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
9288 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
9289 * config/mips/mips.c (mips_output_args_xfer): Likewise.
9290 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
9291 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9292 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9294 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
9295 m32r_pass_by_reference.
9297 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
9299 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
9300 argument to be a VEC of statements.
9301 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
9302 assert that pattern statements have to have their vector type set.
9303 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
9304 Change the first argument to be a VEC of statements. Update
9306 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
9307 (vect_handle_widen_mult_by_const): New function.
9308 (vect_recog_widen_mult_pattern): Change the first argument to be a
9309 VEC of statements. Update documentation. Check that the constant is
9310 INTEGER_CST. Support multiplication by a constant that fits an
9311 intermediate type - call vect_handle_widen_mult_by_const.
9312 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
9313 call. Handle additional pattern statements if necessary.
9315 2011-06-16 Nick Clifton <nickc@redhat.com>
9318 * config.gcc: Set cpu_type to v850 for any V850 architecture.
9319 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
9320 md_file, extra_modes, out_file and extra_options are these are all
9321 deduced from cpu_type.
9323 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
9325 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
9326 truncation mask to 63.
9328 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
9332 * longlong.h: Add AVR support:
9333 (count_leading_zeros): New macro.
9334 (count_trailing_zeros): New macro.
9335 (COUNT_LEADING_ZEROS_0): New macro.
9336 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
9337 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
9338 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
9339 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
9340 (LIB2FUNCS_EXCLUDE): Add _clz.
9341 * config/avr/libgcc.S (XCALL): Move up in file.
9342 (XJMP): New C Macro.
9343 (DEFUN): New asm macro.
9344 (ENDF): New asm macro.
9345 (__ffssi2): New function.
9346 (__ffshi2): New function.
9347 (__loop_ffsqi2): New function.
9348 (__ctzsi2): New function.
9349 (__ctzhi2): New function.
9350 (__clzdi2): New function.
9351 (__clzsi2): New function.
9352 (__clzhi2): New function.
9353 (__paritydi2): New function.
9354 (__paritysi2): New function.
9355 (__parityhi2): New function.
9356 (__parityqi2): New function.
9357 (__popcounthi2): New function.
9358 (__popcountsi2): New function.
9359 (__popcountdi2): New function.
9360 (__popcountqi2): New function.
9361 (__bswapsi2): New function.
9362 (__bswapdi2): New function.
9363 (__ashldi3): New function.
9364 (__ashrdi3): New function.
9365 (__lshrdi3): New function.
9366 Fix suspicous lines.
9368 2011-06-16 Richard Guenther <rguenther@suse.de>
9370 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
9372 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
9374 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
9375 equality compares against zero for the lower bit.
9377 2011-06-16 Jakub Jelinek <jakub@redhat.com>
9379 PR tree-optimization/49419
9380 * tree-vrp.c (execute_vrp): Call init_range_assertions
9381 before estimate_numbers_of_iterations, call
9382 free_number_of_iterations_estimates before calling
9383 remove_range_assertions.
9385 2011-06-16 Revital Eres <revital.eres@linaro.org>
9387 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
9388 (struct partial_schedule): Add rows_length field.
9389 (verify_partial_schedule): Check rows_length.
9390 (ps_insert_empty_row): Handle rows_length.
9391 (create_partial_schedule): Likewise.
9392 (free_partial_schedule): Likewise.
9393 (reset_partial_schedule): Likewise.
9394 (create_ps_insn): Remove rest_count argument.
9395 (remove_node_from_ps): Update rows_length.
9396 (add_node_to_ps): Update rows_length and call create_ps_insn
9397 without passing row_rest_count.
9398 (rotate_partial_schedule): Update rows_length.
9400 2011-06-16 Revital Eres <revital.eres@linaro.org>
9402 * ddg.c (add_intra_loop_mem_dep): New function.
9403 (build_intra_loop_deps): Call it.
9405 2011-06-13 Jeff Law <law@redhat.com>
9407 * df-problems.c (df_lr_local_compute): Manually CSE
9408 PIC_OFFSET_TABLE_REGNUM.
9409 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9410 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9412 2011-06-13 Jan Hubicka <jh@suse.cz>
9414 * cgraphunit.c (handle_alias_pairs): New function.
9415 (cgraph_finalize_compilation_unit): Use it.
9416 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9417 as externally visible.
9419 2011-06-15 Richard Guenther <rguenther@suse.de>
9421 * expr.c (expand_expr_real_2): Reduce all integral types to
9423 (expand_expr_real_1): Likewise.
9425 2011-06-15 Martin Jambor <mjambor@suse.cz>
9427 PR tree-optimization/48613
9428 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9429 ipa_node_params_vector is NULL.
9431 2011-06-15 Jakub Jelinek <jakub@redhat.com>
9434 * dwarf2out.c (dw_loc_list_node): Add force field.
9435 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9436 location in the list, even if it is modified before first real insn.
9437 (output_loc_list): Emit empty ranges with force flag set.
9438 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9440 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
9443 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9444 (fence_to_rewind). Use it to notice when bookkeeping will be placed
9445 above a fence. Update comments.
9446 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9447 placed just above it. Do not allow NULL place_to_insert.
9449 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
9451 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9452 (slpeel_tree_peel_loop_to_edge): Don't call
9453 remove_dead_stmts_from_loop.
9454 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9455 remove irrelevant pattern statements. For irrelevant statements
9456 check if it is the last statement of a detected pattern, use
9457 corresponding pattern statement instead.
9458 (destroy_loop_vec_info): No need to remove pattern statements,
9459 only free stmt_vec_info.
9460 (vect_transform_loop): For irrelevant statements check if it is
9461 the last statement of a detected pattern, use corresponding
9462 pattern statement instead.
9463 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9464 pattern statements. Set basic block for the new statement.
9465 (vect_pattern_recog): Update documentation.
9466 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9467 operands of pattern statements.
9468 (vectorizable_call): Fix printing. In case of a pattern statement
9469 use the lhs of the original statement when creating a dummy
9470 statement to replace the original call.
9471 (vect_analyze_stmt): For irrelevant statements check if it is
9472 the last statement of a detected pattern, use corresponding
9473 pattern statement instead.
9474 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9475 statements use gsi of the original statement.
9477 2011-06-14 Joseph Myers <joseph@codesourcery.com>
9479 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9480 common/common-target-def.h.
9481 * target.def (default_target_flags, handle_option,
9482 supports_split_stack, optimization_table, init_struct,
9483 except_unwind_info, unwind_tables_default, have_named_sections):
9484 Move to common/common-target.def.
9485 * target.h (enum opt_levels, struct default_options): Move to
9486 common/common-target.h.
9487 * targhooks.c (default_except_unwind_info,
9488 dwarf2_except_unwind_info, sjlj_except_unwind_info,
9489 default_target_handle_option, empty_optimization_table): Move to
9490 common/common-targhooks.c.
9491 * targhooks.h (default_except_unwind_info,
9492 dwarf2_except_unwind_info, sjlj_except_unwind_info,
9493 default_target_handle_option, empty_optimization_table): Move to
9494 common/common-targhooks.h.
9495 * common/common-target-def.h: Include common/common-targhooks.h.
9496 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9498 * common/common-target.def (handle_option, option_init_struct,
9499 option_optimization_table, default_target_flags,
9500 except_unwind_info, supports_split_stack, unwind_tables_default,
9501 have_named_sections): Move from target.def.
9502 (HOOK_PREFIX): Undefine at end of file.
9503 * common/common-target.h: Include input.h.
9504 (enum opt_levels, struct default_options): Move from target.h.
9505 * common/common-targhooks.c, common/common-targhooks.h: New.
9506 * config.gcc (target_has_targetm_common): Default to yes.
9507 (moxie*): Set target_has_targetm_common=no.
9508 (hppa*-*-*): Don't set target_has_targetm_common=yes.
9509 * doc/tm.texi: Regenerate.
9510 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9511 (C_TARGET_DEF_H): Add common/common-targhooks.h.
9512 (GCC_OBJS): Remove vec.o.
9513 (OBJS): Remove hooks.o and vec.o.
9514 (OBJS-libcommon-target): Add vec.o, hooks.o and
9515 common/common-targhooks.o.
9516 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9517 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9518 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9519 cfglayout.o, $(out_object_file), $(common_out_object_file)):
9520 Update dependencies.
9521 (common/common-targhooks.o): New.
9522 * common/config/default-common.c: Include tm.h. Add FIXME comment.
9523 * common/config/pa/pa-common.c: Include more headers. Take
9524 copyright dates from pa.c.
9525 (pa_option_optimization_table, pa_handle_option,
9526 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9527 TARGET_HANDLE_OPTION): Move from pa.c.
9528 * common/config/alpha/alpha-common.c,
9529 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9530 common/config/bfin/bfin-common.c,
9531 common/config/cris/cris-common.c,
9532 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9533 common/config/h8300/h8300-common.c,
9534 common/config/i386/i386-common.c,
9535 common/config/ia64/ia64-common.c,
9536 common/config/iq2000/iq2000-common.c,
9537 common/config/lm32/lm32-common.c,
9538 common/config/m32c/m32c-common.c,
9539 common/config/m32r/m32r-common.c,
9540 common/config/m68k/m68k-common.c,
9541 common/config/mcore/mcore-common.c,
9542 common/config/mep/mep-common.c,
9543 common/config/microblaze/microblaze-common.c,
9544 common/config/mips/mips-common.c,
9545 common/config/mmix/mmix-common.c,
9546 common/config/mn10300/mn10300-common.c,
9547 common/config/pdp11/pdp11-common.c,
9548 common/config/picochip/picochip-common.c,
9549 common/config/rs6000/rs6000-common.c,
9550 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9551 common/config/score/score-common.c, common/config/sh/sh-common.c,
9552 common/config/sparc/sparc-common.c,
9553 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9554 common/config/vax/vax-common.c,
9555 common/config/xstormy16/xstormy16-common.c,
9556 common/config/xtensa/xtensa-common.c: New.
9557 * config/alpha/alpha.c: Include common/common-target.h.
9558 (alpha_option_optimization_table, alpha_handle_option,
9559 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9560 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9561 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9562 * config/arm/arm.c (arm_option_optimization_table,
9563 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9564 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9566 * config/avr/avr.c (avr_option_optimization_table,
9567 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9569 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9570 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9571 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9572 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9573 * config/cris/cris.c (cris_option_optimization_table,
9574 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9575 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9577 * config/fr30/fr30.c (fr30_option_optimization_table,
9578 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9580 * config/frv/frv.c (frv_option_optimization_table,
9581 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9582 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9583 * config/h8300/h8300.c (h8300_option_optimization_table,
9584 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9585 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9586 * config/i386/i386-protos.h (ix86_handle_option): Declare.
9587 * config/i386/i386.c: Include common/common-target.h.
9588 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9589 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9590 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9591 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9592 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9593 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9594 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9595 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9596 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9597 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9598 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9599 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9600 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9601 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9602 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9603 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9604 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9605 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9606 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9607 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9608 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9609 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9610 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9611 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9612 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9613 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9614 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9615 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9616 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9617 ix86_option_optimization_table, ix86_option_init_struct,
9618 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9619 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9620 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9622 * config/i386/t-i386 (i386.o): Update dependencies.
9623 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9624 * config/ia64/ia64.c (ia64_option_optimization_table,
9625 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9626 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9627 ia64_handle_option): Move to ia64-common.c.
9628 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9629 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9630 * config/lm32/lm32.c (lm32_option_optimization_table,
9631 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9633 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9635 * config/m32r/m32r.c (m32r_option_optimization_table,
9636 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9637 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9638 m32r_handle_option): Move to m32r-common.c.
9639 (m32r_memory_move_cost): Remove comment referring to
9640 TARGET_HANDLE_OPTION.
9641 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9642 Move to m68k-common.c.
9643 * config/mcore/mcore.c (mcore_option_optimization_table,
9644 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9645 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9646 * config/mep/mep.c (mep_option_optimization_table,
9647 mep_handle_option, TARGET_HANDLE_OPTION,
9648 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9649 Move to mep-common.c.
9650 * config/microblaze/microblaze.c
9651 (microblaze_option_optimization_table,
9652 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9653 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9654 * config/mips/mips.c (mips_handle_option,
9655 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9656 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9658 * config/mmix/mmix.c (mmix_option_optimization_table,
9659 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9660 Move to mmix-common.c.
9661 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9662 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9663 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9664 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9665 * config/pa/pa.c: Include common/common-target.h.
9666 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9667 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9668 pa_handle_option): Move to pa-common.c.
9669 (pa_option_override): Use targetm_common.except_unwind_info.
9670 (pa_asm_output_mi_thunk, pa_function_section): Use
9671 targetm_common.have_named_sections.
9672 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9673 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9674 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9675 pdp11_handle_option, pdp11_option_init_struct): Move to
9677 * config/picochip/picochip.c (picochip_option_optimization_table,
9678 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9679 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9680 * config/rs6000/rs6000.c: Include common/common-target.h.
9681 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9682 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9683 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9684 rs6000_handle_option): Move to rs6000-common.c.
9685 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9686 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9687 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9688 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9689 * config/s390/s390.c (processor_flags_table,
9690 s390_option_optimization_table, s390_option_init_struct,
9691 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9692 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9693 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9694 * config/s390/s390.h (processor_flags_table): Declare.
9695 * config/score/score.c (score_option_optimization_table,
9696 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9697 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9698 score_handle_option): Move to score-common.c.
9699 * config/sh/sh.c (sh_option_optimization_table,
9700 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9701 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9702 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9703 * config/sparc/sparc.c: Include common/common-target.h.
9704 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9705 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9706 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9707 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9708 spu_option_init_struct): Move to spu-common.c.
9709 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9710 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9711 * config/v850/v850.c (small_memory_physical_max,
9712 v850_handle_memory_optionn v850_handle_option,
9713 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9714 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9716 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9717 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9718 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9719 Move to xtensa-common.c.
9720 * cfglayout.c: Include common/common-target.h.
9721 (fixup_reorder_chain): Use targetm_common.have_named_sections.
9722 * cfgrtl.c: Include common/common-target.h.
9723 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9724 targetm_common.have_named_sections.
9725 * dbxout.c: Include common/common-target.h.
9726 (dbxout_function_end): Use targetm_common.have_named_sections.
9727 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9728 targetm_common.except_unwind_info.
9729 * dwarf2out.c: Include common/common-target.h.
9730 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9731 dwarf2out_begin_prologue, dwarf2out_frame_init,
9732 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9733 targetm_common.except_unwind_info.
9734 * except.c: Include common/common-target.h.
9735 (init_eh, finish_eh_generation,
9736 output_one_function_exception_table): Use
9737 targetm_common.except_unwind_info.
9738 (switch_to_exception_section): Use targetm_common.have_named_sections.
9739 * explow.c: Include common/common-target.h.
9740 * expr.c: Include common/common-target.h.
9741 (build_personality_function): Use targetm_common.except_unwind_info.
9742 * function.c: Include common/common-target.h.
9743 (expand_function_end): Use targetm_common.except_unwind_info.
9744 * haifa-sched.c: Include common/common-target.h.
9745 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9746 * lto-opts.c: Include common/common-target.h instead of target.h.
9747 (lto_reissue_options): Use targetm_common.handle_option.
9748 * opts.c: Include common/common-target.h.
9749 (target_handle_option): Use targetm_common.handle_option.
9750 (init_options_struct): Update comment referring to
9751 targetm.target_option.optimization. Use
9752 targetm_common.default_target_flags,
9753 targetm_common.unwind_tables_default and
9754 targetm_common.option_init_struct.
9755 (default_options_optimization): Use
9756 targetm_common.option_optimization_table.
9757 (finish_options): Use targetm_common.except_unwind_info,
9758 targetm_common.unwind_tables_default,
9759 targetm_common.have_named_sections and
9760 targetm_common.supports_split_stack.
9761 * toplev.c: Include common/common-target.h.
9762 (process_options): Use targetm_common.have_named_sections.
9763 * tree-tailcall.c: Include common/common-target.h.
9764 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9765 * tree.c: Include common/common-target.h.
9766 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9767 * varasm.c: Include common/common-target.h.
9768 (resolve_unique_section, hot_function_section,
9769 default_function_section): Use targetm_common.have_named_sections.
9771 2011-06-14 Easwaran Raman <eraman@google.com>
9773 PR rtl-optimization/44194
9774 * dse.c: Include tree-flow.h
9775 (insn_info): Add new field non_frame_wild_read.
9776 (group_info): Add new fields escaped_n and escaped_p.
9777 (kill_on_calls): New variable.
9778 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9779 (dse_step0): Initialize kill_on_calls.
9780 (can_escape): New function.
9781 (set_usage_bits): Add additional parameter; record information
9782 about escaped locations.
9783 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9784 (dse_step2_nospill): Set kill_on_calls based on
9785 group->escaped_n and group->escaped_n.
9786 (add_wild_read): Refactor into...
9787 (reset_active_stores): ... New function, and
9788 (free_read_records): ... New function.
9789 (add_non_frame_wild_read): New function.
9790 (scan_insn): Call add_non_frame_wild_read on non-const calls.
9791 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9792 (dse_step5_nospill): Call scan_reads_nospill for instructions
9793 marked as non_frame_wild_read.
9794 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9796 2011-06-14 Joseph Myers <joseph@codesourcery.com>
9798 * common/common-target-def.h, common/common-target.def,
9799 common/common-target.h, common/config/default-common.c,
9800 common/config/pa/pa-common.c: New files.
9801 * Makefile.in (common_out_file, common_out_object_file,
9802 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9803 (OBJS-libcommon-target): Include $(common_out_object_file).
9804 (prefix.o): Update dependencies.
9805 ($(common_out_object_file), common/common-target-hooks-def.h,
9806 s-common-target-hooks-def-h): New.
9807 (s-tm-texi): Also check timestamp on common-target.def.
9808 (build/genhooks.o): Update dependencies.
9809 * config.gcc (common_out_file, target_has_targetm_common): Define.
9810 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9811 TARGET_ALWAYS_STRIP_DOTDOT.
9812 * configure.ac (common_out_object_file): Define.
9813 (common_out_file, common_out_object_file): Substitute.
9814 (common): Create directory.
9815 * configure: Regenerate.
9816 * doc/tm.texi.in (targetm_common): Document.
9817 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9818 * doc/tm.texi: Regenerate.
9819 * genhooks.c (hook_array): Also include common/common-target.def.
9820 * prefix.c (tm.h): Don't include.
9821 (common/common-target.h): Include.
9822 (ALWAYS_STRIP_DOTDOT): Don't define.
9823 (update_path): Use targetm_common.always_strip_dotdot instead of
9824 ALWAYS_STRIP_DOTDOT.
9825 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9827 2011-06-14 David Li <davidxl@google.com>
9829 * passes.c (execute_function_todo): Remove TODO_dump_func.
9830 (execute_one_pass): Remove TODO_dump_func.
9831 (execute_function_dump): New function.
9832 * tree-vrp.c: Remove TODO_dump_func.
9833 * regrename.c: Remove TODO_dump_func.
9834 * fwprop.c: Remove TODO_dump_func.
9835 * tree-into-ssa.c: Remove TODO_dump_func.
9836 * tree-complex.c: Remove TODO_dump_func.
9837 * tracer.c: Remove TODO_dump_func.
9838 * tree-loop-distribution.c: Remove TODO_dump_func.
9839 * postreload-gcse.c: Remove TODO_dump_func.
9840 * postreload.c: Remove TODO_dump_func.
9841 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9842 * tree-tailcall.c: Remove TODO_dump_func.
9843 * ipa-cp.c: Remove TODO_dump_func.
9844 * final.c: Remove TODO_dump_func.
9845 * tree-emutls.c: Remove TODO_dump_func.
9846 * omp-low.c: Remove TODO_dump_func.
9847 * tree-ssa-dse.c: Remove TODO_dump_func.
9848 * tree-ssa-uncprop.c: Remove TODO_dump_func.
9849 * auto-inc-dec.c: Remove TODO_dump_func.
9850 * reorg.c: Remove TODO_dump_func.
9851 * tree-ssa-copyrename.c: Remove TODO_dump_func.
9852 * tree-ssa-ccp.c: Remove TODO_dump_func.
9853 * compare-elim.c: Remove TODO_dump_func.
9854 * mode-switching.c: Remove TODO_dump_func.
9855 * modulo-sched.c: Remove TODO_dump_func.
9856 * tree-call-cdce.c: Remove TODO_dump_func.
9857 * cse.c: Remove TODO_dump_func.
9858 * web.c: Remove TODO_dump_func.
9859 * tree-stdarg.c: Remove TODO_dump_func.
9860 * lto-streamer-out.c: Remove TODO_dump_func.
9861 * tree-ssa-math-opts.c: Remove TODO_dump_func.
9862 * tree-ssa-dom.c: Remove TODO_dump_func.
9863 * tree-nrv.c: Remove TODO_dump_func.
9864 * loop-init.c: Remove TODO_dump_func.
9865 * gimple-low.c: Remove TODO_dump_func.
9866 * ipa-inline.c: Remove TODO_dump_func.
9867 * tree-ssa-sink.c: Remove TODO_dump_func.
9868 * jump.c: Remove TODO_dump_func.
9869 * ifcvt.c: Remove TODO_dump_func.
9870 * tree-ssa-loop.c: Remove TODO_dump_func.
9871 * recog.c: Remove TODO_dump_func.
9872 * dse.c: Remove TODO_dump_func.
9873 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9874 * matrix-reorg.c: Remove TODO_dump_func.
9875 * tree-eh.c: Remove TODO_dump_func.
9876 * regmove.c: Remove TODO_dump_func.
9877 * function.c: Remove TODO_dump_func.
9878 * tree-vectorizer.c: Remove TODO_dump_func.
9879 * ipa-split.c: Remove TODO_dump_func.
9880 * gcse.c: Remove TODO_dump_func.
9881 * tree-if-conv.c: Remove TODO_dump_func.
9882 * init-regs.c: Remove TODO_dump_func.
9883 * tree-ssa-phiopt.c: Remove TODO_dump_func.
9884 * implicit-zee.c: Remove TODO_dump_func.
9885 * lower-subreg.c: Remove TODO_dump_func.
9886 * bt-load.c: Remove TODO_dump_func.
9887 * tree-dfa.c: Remove TODO_dump_func.
9888 * except.c: Remove TODO_dump_func.
9889 * emit-rtl.c: Remove TODO_dump_func.
9890 * store-motion.c: Remove TODO_dump_func.
9891 * cfgexpand.c: Remove TODO_dump_func.
9892 * tree-cfgcleanup.c: Remove TODO_dump_func.
9893 * cfgcleanup.c: Remove TODO_dump_func.
9894 * tree-ssa-pre.c: Remove TODO_dump_func.
9895 * tree-sra.c: Remove TODO_dump_func.
9896 * tree-mudflap.c: Remove TODO_dump_func.
9897 * tree-ssa-copy.c: Remove TODO_dump_func.
9898 * cfglayout.c: Remove TODO_dump_func.
9899 * tree-ssa-forwprop.c: Remove TODO_dump_func.
9900 * tree-ssa-dce.c: Remove TODO_dump_func.
9901 * ira.c: Remove TODO_dump_func.
9902 * tree-ssa.c: Remove TODO_dump_func.
9903 * integrate.c: Remove TODO_dump_func.
9904 * tree-optimize.c: Remove TODO_dump_func.
9905 * tree-ssa-phiprop.c: Remove TODO_dump_func.
9906 * tree-object-size.c: Remove TODO_dump_func.
9907 * combine.c: Remove TODO_dump_func.
9908 * bb-reorder.c: Remove TODO_dump_func.
9909 * cprop.c: Remove TODO_dump_func.
9910 * var-tracking.c: Remove TODO_dump_func.
9911 * tree-profile.c: Remove TODO_dump_func.
9912 * tree-vect-generic.c: Remove TODO_dump_func.
9913 * reg-stack.c: Remove TODO_dump_func.
9914 * sched-rgn.c: Remove TODO_dump_func.
9915 * tree-ssa-structalias.c: Remove TODO_dump_func.
9916 * tree-switch-conversion.c: Remove TODO_dump_func.
9917 * tree-cfg.c: Remove TODO_dump_func.
9918 * tree-ssa-reassoc.c: Remove TODO_dump_func.
9919 * combine-stack-adj.c: Remove TODO_dump_func.
9920 * dce.c: Remove TODO_dump_func.
9921 * tree-ssanames.c: Remove TODO_dump_func.
9922 * regcprop.c: Remove TODO_dump_func.
9924 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
9927 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9928 and properly handle result not in Pmode.
9930 2011-06-14 Robert Millan <rmh@gnu.org>
9932 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9933 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9936 * config/i386/kfreebsd-gnu64.h: New file.
9937 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9938 with `i386/kfreebsd-gnu64.h'.
9940 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9941 (GNU_USER_LINK_EMULATION64): New macros.
9942 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9943 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9944 of hardcoding `elf_i386' and `elf_x86_64'.
9946 2011-06-14 Nick Clifton <nickc@redhat.com>
9949 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9952 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9954 2011-06-14 Jakub Jelinek <jakub@redhat.com>
9957 * tree.h (DECL_NONSHAREABLE): Define.
9958 (struct tree_decl_common): Change decl_common_unused to
9959 decl_nonshareable_flag.
9960 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9961 Ignore vars with DECL_NONSHAREABLE bit set.
9962 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9963 on stores to automatic aggregate vars.
9965 PR rtl-optimization/49390
9967 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
9969 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9972 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
9973 Tom de Vries <tom@codesourcery.com>
9976 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9977 Document changed semantics.
9978 (max_stmt_executions, max_stmt_executions_int): Declare.
9979 * tree-data-ref.c (estimated_loop_iterations)
9980 (estimated_loop_iterations_int): Move functions...
9981 * tree-ssa-loop-niter.c (estimated_loop_iterations)
9982 (estimated_loop_iterations_int): here.
9983 (record_estimate): Change nb_iterations_upper_bound and
9984 nb_iterations_estimate semantics.
9985 (max_stmt_executions, max_stmt_executions_int): New function.
9986 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9987 (max_stmt_executions_tree): this.
9988 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9989 estimated_loop_iterations_tree.
9990 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9991 max_stmt_executions_int instead of estimated_loop_iterations_int.
9992 * predict.c (predict_loops): Idem.
9993 * tree-parloops.c (parallelize_loops): Idem.
9994 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9995 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9996 (init_omega_for_ddr_1): Idem.
9997 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9998 (loop_prefetch_arrays): Idem
9999 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10000 max_stmt_executions instead of estimated_loop_iterations.
10001 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10002 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10003 instead of nb_iterations_upper_bound.
10005 2011-06-13 Jan Hubicka <jh@suse.cz>
10007 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10009 2011-06-14 Richard Henderson <rth@redhat.com>
10012 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10013 (based_loc_descr): Assert it's true.
10014 (compute_frame_pointer_to_fb_displacement): Set it, rather than
10015 aborting immediately.
10017 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
10018 Mingfeng Wu <mingfeng@faraday-tech.com>
10020 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10022 2011-06-13 Jan Hubicka <jh@suse.cz>
10024 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10026 2011-06-13 Jan Hubicka <jh@suse.cz>
10028 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10029 similarly to DECL_COMDAT.
10030 * cgraphunit.c (cgraph_analyze_function): Likewise.
10031 * ipa.c (function_and_variable_visibility): Likewise.
10033 2011-06-13 Jan Hubicka <jh@suse.cz>
10035 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10036 BINFO_VIRTUALS when streaming for ltrans unit.
10038 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
10040 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10041 (movdi_internal64): Same.
10043 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
10046 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10047 a set of similar patterns, where the MATCH_OPERAND for the function
10048 argument is replaced with individual references to hardware registers.
10049 (save_fpregs_<mode>): Ditto
10050 (restore_gpregs_<mode>): Ditto
10051 (return_and_restore_gpregs_<mode>): Ditto
10052 (return_and_restore_fpregs_<mode>): Ditto
10053 (return_and_restore_fpregs_aix_<mode>): Ditto
10055 2011-06-13 Jan Hubicka <jh@suse.cz>
10057 * ipa-utils.c (postorder_stack): New structure.
10058 (ipa_reverse_postorder): Handle aliases.
10060 2011-06-13 Jan Hubicka <jh@suse.cz>
10062 * ipa-inline.c (reset_edge_caches): Walk aliases.
10063 (update_caller_keys): Do not test inlinability of aliases.
10064 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10065 (do_estimate_growth): Fix typo.
10067 2011-06-13 Jan Hubicka <jh@suse.cz>
10069 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10070 (can_remove_node_now_p): ... here; handle same comdat groups.
10071 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10072 (inline_call): Update use of can_remove_node_now_p.
10074 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10076 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10077 condition to disallow non-identical memory locations.
10078 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10079 preference to bit manipulation instructions.
10081 2011-06-13 Jan Hubicka <jh@suse.cz>
10083 * cgraph.c (cgraph_for_node_thunks_and_aliases,
10084 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10085 (nonremovable_p): New function.
10086 (cgraph_can_remove_if_no_direct_calls_p): New function.
10087 (used_from_object_file_p): New functoin.
10088 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10089 references from aliases.
10090 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10091 * ipa-inline.c (check_caller_edge): New function.
10092 (want_inline_function_called_once_p): Use it; accept aliases called
10094 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10096 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10099 * config/arm/neon.md (vec_pack_trunc): Set the lengths
10100 correctly for the case with Quad vectors.
10102 2011-06-13 Jakub Jelinek <jakub@redhat.com>
10103 Ira Rosen <ira.rosen@linaro.org>
10105 PR tree-optimization/49352
10106 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10107 all, make sure loop_use_stmt after the loop is a def stmt of a used
10108 SSA_NAME that is the only one defined inside of the loop. Don't
10109 check for COND_EXPR and GIMPLE_BINARY_RHS.
10110 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10111 check_reduction is true.
10113 2011-06-11 Jan Hubicka <jh@suse.cz>
10115 PR middle-end/49373
10116 * ipa.c (cgraph_externally_visible_p): Check resolution info.
10118 2011-06-11 Jan Hubicka <jh@suse.cz>
10120 PR middle-end/48836
10121 * ipa-inline-transform.c: Include tree-pass.h
10122 (inline_transform): Set TODO_update_ssa_only_virtuals.
10123 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10125 2011-06-11 Jan Hubicka <jh@suse.cz>
10127 PR middle-end/49378
10128 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10129 aliases and thunks.
10131 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
10133 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10134 Take number of iterations to peel into account for equally frequent
10135 misalignment values.
10137 2011-06-11 Jan Hubicka <jh@suse.cz>
10139 * lto-streamer-out.c (produce_symtab): Stream out the newly
10140 represented aliases.
10142 2011-06-11 Jan Hubicka <jh@suse.cz>
10144 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10146 (ipa_update_after_lto_read): Likewise.
10147 (ipa_write_node_info): Do not sream call_with_var_arguments.
10148 (ipa_read_node_info): Likewise.
10150 2011-06-11 Jan Hubicka <jh@suse.cz>
10152 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10154 2011-06-11 Jan Hubicka <jh@suse.cz>
10156 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10157 (lto_symtab_resolve_can_prevail_p): Likewise.
10158 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10159 * cgraph.c (same_body_aliases_done): New global var.
10160 (cgraph_same_body_alias_1): Rename to ...
10161 (cgraph_create_function_alias): ... this one; reorg to new
10163 (cgraph_same_body_alias): Use cgraph_create_function_alias;
10164 record references when asked to.
10165 (cgraph_add_thunk): Fix formating.
10166 (cgraph_get_node): Kill same body alias code.
10167 (cgraph_node_for_asm): Likewise.
10168 (cgraph_remove_same_body_alias): Remove.
10169 (cgraph_remove_node): Kill same body alias code.
10170 (cgraph_mark_address_taken_node): Mark also the aliased function
10171 as having address taken.
10172 (dump_cgraph_node): Dump same body aliases.
10173 (cgraph_for_node_thunks_and_aliases): Update for new alias
10175 (cgraph_for_node_and_aliases): Likewise.
10176 * cgraph.h (same_body): Kll pointer.
10177 (same_body_alias): Update comment.
10178 (same_body_aliases_done): Declare.
10179 (cgraph_remove_same_body_alias): Remove declaration.
10180 (cgraph_create_function_alias): Declare.
10181 (cgraph_process_same_body_aliases): Declare.
10182 (cgraph_function_with_gimple_body_p): Check for alias.
10183 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
10184 (cgraph_alias_aliased_node): New function.
10185 (cgraph_function_node): Update for new aliases.
10186 (cgraph_function_or_thunk_node): Likewise.
10187 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
10188 (inline_call): Remove dead aliases.
10189 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
10190 name hack for same body aliases.
10191 (clone_of_p): Look through aliases.
10192 (verify_cgraph_node): Verify aliases.
10193 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
10194 (cgraph_process_same_body_aliases): New function.
10195 (process_function_and_variable_attributes): Disable weakref warning on
10197 (cgraph_analyze_functions): Handle aliases.
10198 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
10199 (assemble_thunks): Rename to ...
10200 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
10201 (cgraph_expand_function): Remove alias output code.
10202 (cgraph_output_in_order): Skip aliases.
10203 (cgraph_preserve_function_body_p): Aliases don't need preserving.
10204 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
10205 (ipa_record_reference): Do not assert on alias references.
10206 (ipa_ref_has_aliases_p): New function.
10207 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
10208 (ipa_ref_has_aliases_p): Declare.
10209 * lto-cgraph.c (lto_output_node): Handle aliases.
10210 (input_node): Likewise.
10211 * lto-streamer-out.c (lto_output): Skip aliases.
10212 (produce_symtab): Kill same_body_alias code.
10213 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
10214 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
10215 * ipa-inline.c (update_caller_keys): Walk aliases.
10216 (inline_small_functions): Fix thinko in previous patch.
10217 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
10218 (function_and_variable_visibility): Do not walk same body aliases.
10219 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
10220 (ipa_pta_execute): Use it.
10222 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
10224 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
10225 (*vec_dupv2df): Rename from vec_dupv2df.
10226 (vec_dupv2df): New expander.
10228 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
10230 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
10232 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
10234 * config/i386/i386.md: Use default value in "isa" attribute.
10235 * config/i386/sse.md: Ditto.
10236 * config/i386/mmx.md: Ditto.
10238 2011-06-10 Wei Guozhi <carrot@google.com>
10241 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10242 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10243 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10245 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10247 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10248 (arm_legitimate_ldrd_p): New prototype.
10249 (arm_output_ldrd): New prototype.
10250 * config/arm/arm.c (arm_check_ldrd_operands): New function.
10251 (arm_legitimate_ldrd_p): New function.
10252 (arm_output_ldrd): New function.
10254 2011-06-10 David Li <davidxl@google.com>
10256 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10257 * passes.c (passr_eq): New function.
10258 (create_pass_tab): New function.
10259 (pass_traverse): New function.
10260 (dump_one_pass): New function.
10261 (dump_pass_list): New function.
10262 (dump_passes): New function.
10264 2011-06-10 Jan Hubicka <jh@suse.cz>
10266 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
10267 setting the nothrow flag.
10268 * ipa-reference.c (propagate): Skip aliases.
10269 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
10270 (propagate_nothrow): Skip aliases; do not update cgraph.
10271 (local_pure_const): Do not update cgraph.
10272 * tree-profile.c (tree_profiling): Do fixup_cfg.
10274 2011-06-10 Jan Hubicka <jh@suse.cz>
10276 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
10277 (cgraph_local_node_p): ... here; handle aliases.
10278 (has_addr_references_p): Break out from ...;
10279 (cgraph_remove_unreachable_nodes) ... here.
10281 2011-06-10 Jan Hubicka <jh@suse.cz>
10283 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
10284 * common.opt (flag_inline_functions_called_once): Do not
10287 2011-06-10 Jan Hubicka <jh@suse.cz>
10289 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
10290 (ipcp_initialize_node_lattices): Do not deal with aliases;
10291 Do not try to propagate through thunks.
10292 (ipcp_change_tops_to_bottom): Do not deal with aliases.
10294 2011-06-10 Jan Hubicka <jh@suse.cz>
10296 * ipa-prop.c (ipa_write_node_info): Stream jump functions
10297 for indirect calls.
10298 (ipa_read_node_info): Likewise.
10300 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10303 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
10304 (build_and_insert_call): Likewise.
10305 (build_and_insert_ref): New.
10306 (gimple_expand_builtin_pow): Minor cleanup.
10307 (gimple_expand_builtin_cabs): New.
10308 (execute_cse_sincos): Add case for BUILT_IN_CABS.
10310 2011-06-10 Jan Hubicka <jh@suse.cz>
10312 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
10313 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
10314 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
10315 (ipcp_propagate_stage): Skip aliases when propagating.
10316 (ipcp_need_redirect_p): Skip aliases.
10317 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
10318 collect_callers_of_node.
10319 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
10321 (ipa_compute_jump_functions): Look through aliases.
10323 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10325 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
10327 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10329 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
10331 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
10333 2011-06-10 Jan Hubicka <jh@suse.cz>
10335 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
10336 Update call of gimple_get_virt_method_for_binfo.
10337 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
10338 refuse_thunks parameter.
10339 (gimple_fold_call): Update.
10340 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
10342 2011-06-10 Jan Hubicka <jh@suse.cz>
10344 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
10345 (not_all_callers_have_enough_arguments_p): ... this one; turn into
10346 worker for cgraph_for_node_and_aliases.
10347 (convert_callers_for_node): Break out from ...
10348 (convert_callers): ... here.
10349 (modify_function): Use collect_callers_of_node.
10350 (ipa_early_sra): Use cgraph_for_node_and_aliases.
10352 2011-06-10 Richard Guenther <rguenther@suse.de>
10354 PR tree-optimization/49361
10355 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
10356 when not already in gimple form.
10358 2011-06-10 Richard Guenther <rguenther@suse.de>
10361 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
10362 FOR_EACH_PHI_OR_STMT_USE.
10364 2011-06-10 Jan Hubicka <jh@suse.cz>
10366 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
10367 (clone_inlined_nodes): ... here.
10368 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
10369 to real destination prior inlining.
10370 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
10371 can_early_inline_edge_p, want_early_inline_function_p,
10372 want_early_inline_function_p, want_inline_small_function_p,
10373 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
10374 edge_badness, update_all_callee_keys, lookup_recursive_calls,
10375 add_new_edges_to_heap, inline_small_functions, flatten_function,
10376 inline_always_inline_functions, early_inline_small_functions): Use
10377 cgraph_function_or_thunk_node.
10378 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
10379 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
10380 (do_estimate_edge_growth_1): Break out from ...
10381 (do_estimate_growth) ... here; walk aliases.
10382 (inline_generate_summary): Skip aliases.
10384 2011-06-10 Richard Guenther <rguenther@suse.de>
10386 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
10387 forward when combining, visit inserted stmts when a stmt was changed.
10389 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
10391 * tree.h (error_operand_p): Add.
10392 * dbxout.c (dbxout_type_fields): Use the latter.
10393 * c-decl.c (add_stmt): Likewise.
10394 * gimplify.c (omp_add_variable, omp_notice_variable,
10395 gimplify_scan_omp_clauses): Likewise.
10397 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
10399 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10400 when a value is actually passed in regs.
10402 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
10403 Laurent Rougé <laurent.rouge@menta.fr>
10405 * doc/invoke.texi (SPARC options): Add -mflat.
10406 * config/sparc/sparc.opt: Likewise.
10407 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10408 (sparc_flat_expand_prologue): Declare.
10409 (sparc_flat_expand_epilogue): Likewise.
10410 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10411 (CPP_ENDIAN_SPEC): Replace with...
10412 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
10413 (CPP_SPEC): Adjust to above change.
10414 (EXTRA_SPECS): Likewise.
10415 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10416 (INCOMING_REGNO): Likewise.
10417 (OUTGOING_REGNO): Likewise.
10418 (LOCAL_REGNO): Likewise.
10419 (SETUP_FRAME_ADDRESSES): Likewise.
10420 (FIXED_REGISTERS): Set 0 for %fp.
10421 (CALL_USED_REGISTERS): Likewise.
10422 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10423 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10424 (RETURN_ADDR_REGNUM): Define.
10425 (RETURN_ADDR_RTX): Use it.
10426 (INCOMING_RETURN_ADDR_REGNUM): Define.
10427 (INCOMING_RETURN_ADDR_RTX): Use it.
10428 (DWARF_FRAME_RETURN_COLUMN): Likewise.
10429 (EH_RETURN_REGNUM): Define.
10430 (EH_RETURN_STACKADJ_RTX): Use it.
10431 (EH_RETURN_HANDLER_RTX): Delete.
10432 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10433 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10435 (struct machine_function): Add frame_size, apparent_frame_size,
10436 frame_base_reg, frame_base_offset, n_global_fp_regs and
10437 save_local_in_regs_p fields.
10438 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10439 sparc_frame_base_offset, sparc_n_global_fp_regs,
10440 sparc_save_local_in_regs_p): New macros.
10441 (sparc_option_override): Error out if -fcall-saved-REG is specified
10443 (eligible_for_restore_insn): Fix formatting.
10444 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
10445 (eligible_for_sibcall_delay): Likewise.
10446 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10447 (sparc_legitimate_address_p): Adjust to above change.
10448 (save_global_or_fp_reg_p): New predicate.
10449 (return_addr_reg_needed_p): Likewise.
10450 (save_local_or_in_reg_p): Likewise.
10451 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
10452 (SORR_SAVE, SORR_RESTORE): Delete.
10453 (sorr_pred_t): New typedef.
10454 (sorr_act_t): New enum.
10455 (save_or_restore_regs): Rename to...
10456 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
10457 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10458 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
10459 mechanism. Add CFI information for double-word saves in 32-bit mode.
10460 (emit_adjust_base_to_offset): New function extracted from...
10461 (emit_save_or_restore_regs): ...this. Rename the rest to...
10462 (emit_save_or_restore_regs_global_fp_regs): ...this.
10463 (emit_save_or_restore_regs_local_in_regs): New function.
10464 (gen_create_flat_frame_[123]): New functions.
10465 (sparc_expand_prologue): Use SIZE local variable. Adjust.
10466 (sparc_flat_expand_prologue): New function.
10467 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10468 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
10469 (sparc_flat_expand_epilogue): New function.
10470 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10471 (output_return): Likewise.
10472 (output_sibcall): Likewise.
10473 (sparc_output_mi_thunk): Likewise.
10474 (sparc_frame_pointer_required): Likewise.
10475 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10476 function optimization.
10477 * config/sparc/sparc.md (flat): New attribute.
10478 (prologue): Add TARGET_FLAT handling.
10479 (save_register_window): Disable if TARGET_FLAT.
10480 (create_flat_frame_[123]): New patterns.
10481 (epilogue): Add TARGET_FLAT handling.
10482 (sibcall_epilogue): Likewise.
10483 (eh_return): New expander.
10484 (eh_return_internal): New insn and splitter.
10485 (return_internal): Add TARGET_FLAT handling.
10486 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10487 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10488 (nonlocal_goto): Add TARGET_FLAT handling.
10489 * config/sparc/t-elf: Add -mflat multilib.
10490 * config/sparc/t-leon: Likewise.
10492 2011-06-10 Jan Hubicka <jh@suse.cz>
10494 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10495 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10496 (self_recursive_p): Use cgraph_function_node.
10497 (propagate_pure_const): Likewise.
10498 (propagate_nothrow): Likewise.
10499 * ipa-reference.c (ipa_reference_get_not_read_global): Use
10500 cgraph_function_node.
10501 (propagate_bits): Likewise.
10502 (propagate): Likewise.
10504 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10505 Richard Earnshaw <rearnsha@arm.com>
10507 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10508 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10509 (*thumb2_movdi_vfp): Delete.
10510 (*arm_movdi_vfp_cortexa8): Delete.
10511 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10512 (*movdi_vfp_cortexa8): Likewise.
10514 2011-06-10 Richard Guenther <rguenther@suse.de>
10516 * stor-layout.c (initialize_sizetypes): Give names to all
10519 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
10521 PR tree-optimization/49318
10522 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10523 irrelevant pattern statements.
10525 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10527 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10530 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10531 to last assignment.
10533 2011-06-09 Jan Hubicka <jh@suse.cz>
10535 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10536 do not recompute reachable flag.
10537 (cgraph_finalize_function, cgraph_analyze_functions): Set
10538 redefined_extern_inline here.
10540 2011-06-09 Jan Hubicka <jh@suse.cz>
10542 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10543 (cgraph_only_called_directly_p): ... this one; bring offline.
10544 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10545 varpool_used_from_object_file_p): Drop names from the declaratoin.
10546 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10547 collect_callers_of_node): New.
10548 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10549 (cgraph_edge_recursive_p): Use cgraph_function_node.
10550 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10551 (cgraph_node_cannot_be_local_p_1): Break out from ...
10552 (cgraph_node_can_be_local_p): ... here; walk aliases.
10553 (cgraph_for_node_thunks_and_aliases): New function.
10554 (cgraph_for_node_and_aliases): New function.
10555 (cgraph_make_node_local_1): Break out from ...
10556 (cgraph_make_node_local) ... here; use
10557 cgraph_for_node_thunks_and_aliases.
10558 (cgraph_set_nothrow_flag_1): Break out from ...
10559 (cgraph_set_nothrow_flag) ... here;
10560 use cgraph_for_node_thunks_and_aliases.
10561 (cgraph_set_const_flag_1): Break out from ...
10562 (cgraph_set_const_flag) ... here;
10563 use cgraph_for_node_thunks_and_aliases.
10564 (cgraph_set_pure_flag_1): Break out from ...
10565 (cgraph_set_pure_flag) ... here;
10566 use cgraph_for_node_thunks_and_aliases.
10567 (cgraph_propagate_frequency_1): Break out from ...
10568 (cgraph_propagate_frequency) ... here; use
10569 cgraph_for_node_thunks_and_aliases.
10570 (cgraph_used_from_object_file_p): Do not care about aliases.
10571 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10573 (collect_callers_of_node_1, collect_callers_of_node): New functions.
10575 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10577 PR rtl-optimization/49154
10578 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10579 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10580 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10581 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10582 * config/cris/cris.h (cris_register_move_cost): Remove
10583 !TARGET_V32 code. Tweak comments.
10585 2011-06-09 Jan Hubicka <jh@suse.cz>
10587 * cgraphbuild.c (record_eh_tables): Mark personality function as having
10590 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
10592 PR rtl-optimization/49154
10593 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10594 is a matching slot in the hashtable, assign it to classes_ptr.
10596 PR rtl-optimization/49154
10597 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10599 * doc/tm.texi: Regenerate.
10601 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
10604 * config/sh/sh.md (UNSPEC_CHKADD): New.
10605 (chk_guard_add): New define_insn_and_split.
10606 (symGOT_load): Use chk_guard_add instead of blockage.
10608 2011-06-09 Kai Tietz <ktietz@redhat.com>
10610 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10612 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
10614 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10616 2011-06-09 Wei Guozhi <carrot@google.com>
10619 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10620 (peephole2 for conditional move): Generate 16 bit instructions.
10622 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
10624 * config/i386/i386.md (*movdi_internal_rex64): Merge
10625 alternatives 6 and 8.
10627 2011-06-09 David Li <davidxl@google.com>
10629 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10630 * passes.c (passr_eq): New function.
10631 (create_pass_tab): New function.
10632 (pass_traverse): New function.
10633 (dump_one_pass): New function.
10634 (dump_pass_list): New function.
10635 (dump_passes): New function.
10637 2011-06-09 David Li <davidxl@google.com>
10639 * tree-complex.c (tree_lower_complex): Gate cleanup.
10640 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10641 (execute_optimize_stdarg): Ditto.
10642 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10643 (execute_cleanup_eh_1): Ditto.
10644 (execute_cleanup_eh): Ditto.
10645 * gcse.c (gate_rtl_pre): Ditto.
10646 (execute_rtl_pre): Ditto.
10647 * except.c (finish_eh_generation): Ditto.
10648 (convert_to_eh_region_ranges): Ditto.
10649 * cprop.c (one_cprop_pass): Ditto.
10651 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
10654 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10655 in all basic blocks.
10657 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10659 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10660 (HAVE_ENABLE_EXECUTE_STACK): Define.
10661 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10662 (HAVE_ENABLE_EXECUTE_STACK): Define.
10663 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10664 (HAVE_ENABLE_EXECUTE_STACK): Define.
10665 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10666 (ENABLE_EXECUTE_STACK): Remove.
10667 (HAVE_ENABLE_EXECUTE_STACK): Define.
10668 [IN_LIBGCC2]: Don't include <windows.h>.
10669 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10670 (HAVE_ENABLE_EXECUTE_STACK): Define.
10671 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10672 (HAVE_ENABLE_EXECUTE_STACK): Define.
10673 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10674 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10675 (HAVE_ENABLE_EXECUTE_STACK): Define.
10676 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10677 (HAVE_ENABLE_EXECUTE_STACK): Define.
10678 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10679 (HAVE_ENABLE_EXECUTE_STACK): Define.
10680 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10681 (HAVE_ENABLE_EXECUTE_STACK): Define.
10682 * config/alpha/alpha.c (alpha_trampoline_init): Test
10683 HAVE_ENABLE_EXECUTE_STACK.
10684 * config/i386/i386.c (ix86_trampoline_init): Likewise.
10685 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10686 (sparc64_initialize_trampoline): Likewise.
10687 * libgcc2.c [L_enable_execute_stack]: Remove.
10688 * system.h (ENABLE_EXECUTE_STACK): Poison.
10689 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10690 * doc/tm.texi: Regenerate.
10691 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10693 2011-06-09 Jakub Jelinek <jakub@redhat.com>
10695 PR middle-end/49308
10696 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10697 variable. After resetting and rescanning insn continue with previous
10700 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10702 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10703 (gcc_cv_ld_hidden): Likewise.
10704 * configure: Regenerate.
10705 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10706 (ix86_stack_protect_fail): Mark unused.
10707 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10708 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10709 [TARGET_MACHO]: Don't define.
10710 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10711 (TARGET_STACK_PROTECT_FAIL): Likewise.
10712 (rs6000_stack_protect_fail): Mark unused.
10713 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10714 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
10716 2011-06-08 Andi Kleen <ak@linux.intel.com>
10718 * varasm.c (get_section): Print location of other conflict
10719 for section conflicts.
10721 2011-06-08 Andi Kleen <ak@linux.intel.com>
10723 * config/i386/driver-i386.c (host_detect_local_cpu):
10724 Add model 0x2d Intel CPU.
10726 2011-06-08 Andi Kleen <ak@linux.intel.com>
10728 * reginfo.c (global_regs_decl): Add.
10729 (globalize_reg): Add decl parameter. Compute location. Pass location
10730 to warnings and add inform. Store decl in global_regs_decl.
10731 * rtl.h (globalize_reg): Update prototype.
10732 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10734 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
10736 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10738 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
10741 * config/sh/predicates.md (general_movsrc_operand): Check
10742 mode for memory with indexed address for QI and HImode.
10743 (general_movdst_operand): Likewise.
10745 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
10747 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10749 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
10751 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10752 (num_ssa_operands): Likewise.
10753 (op_iter_init_phiuse): Forward-declare.
10754 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10756 2011-06-08 Nick Clifton <nickc@redhat.com>
10758 * doc/invoke.texi (ARM Options): Update description of
10761 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
10763 * config/i386/driver-i386.c (host_detect_local_cpu): Support
10764 unknown Intel family 0x6 CPUs.
10766 2011-06-08 Martin Jambor <mjambor@suse.cz>
10768 * tree-sra.c (mark_rw_status): Removed.
10769 (analyze_access_subtree): New parameter parent instead of
10770 mark_read and mark_write, propagate from that.
10772 2011-06-08 Julian Brown <julian@codesourcery.com>
10774 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10775 for double-precision helper functions in hard-float mode if only
10776 single-precision arithmetic is supported in hardware.
10778 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
10780 PR rtl-optimization/49303
10781 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
10782 code_motion_path_driver returned 0 or 1.
10783 (sel_region_finish): Clear h_d_i_d.
10785 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
10787 * config/sh/sh.c (prepare_move_operands): Set pic register
10788 appropriately for global and local dynamic tls models even
10789 if flag_pic is unset.
10791 2011-06-07 Jason Merrill <jason@redhat.com>
10793 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10795 2011-06-07 Xinliang David Li <davidxl@google.com>
10796 * passes.c (enable_disable_pass): Handle assembler name.
10797 (is_pass_explicitly_enabled_or_disabled): Ditto.
10799 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10801 PR tree-optimization/48497
10802 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10804 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10806 PR tree-optimization/46728
10807 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10808 to use gimple_val_nonnegative_real_p.
10809 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10810 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10812 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
10814 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10816 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
10818 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10821 2011-06-07 Richard Guenther <rguenther@suse.de>
10823 * stor-layout.c (initialize_sizetypes): Initialize all
10824 sizetypes based on target definitions.
10825 (set_sizetype): Remove.
10826 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10827 * tree.h (set_sizetype): Remove.
10829 2011-06-07 Nick Clifton <nickc@redhat.com>
10831 * config.gcc: Unify V850 architecture options and add support for
10832 newer V850 architectures.
10833 * config/v850/t-v850e: Delete.
10835 2011-06-07 Richard Guenther <rguenther@suse.de>
10837 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10838 Call set_sizetype from here.
10840 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
10842 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10843 (*maddhisi4tb, *maddhisi4tt): New define_insns.
10845 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
10846 Andrew Stubbs <ams@codesourcery.com>
10848 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10850 * doc/md.texi (Canonicalization of Instructions): Document widening
10851 multiply canonicalization.
10853 2011-06-07 Jakub Jelinek <jakub@redhat.com>
10855 PR gcov-profile/49299
10856 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10858 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
10860 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10862 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10863 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10864 vect_recog_pow_pattern): Likewise.
10865 (vect_pattern_recog_1): Remove declaration.
10866 (widened_name_p): Remove declaration. Add new argument to specify
10867 whether to check that both types are either signed or unsigned.
10868 (vect_recog_widen_mult_pattern): Update documentation. Handle
10869 unsigned patterns and multiplication by constants.
10870 (vect_pattern_recog_1): Update vect_recog_func references. Use
10871 statement information from the statement returned from pattern
10872 detection functions.
10873 (vect_pattern_recog): Update vect_recog_func reference.
10874 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10875 multiplication by a constant use the type of the other operand.
10877 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
10879 PR rtl-optimization/49145
10880 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10882 2011-06-06 Jakub Jelinek <jakub@redhat.com>
10885 * dwarf2out.c (native_encode_initializer): Decrement count in each
10889 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10890 non-MODE_INT modes.
10893 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10894 if stmt folded into nothing.
10895 * tree-inline.c (fold_marked_statements): If a builtin at the end of
10896 a bb folded into nothing, just update cgraph edges and move to next bb.
10897 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10898 to be NULL. Don't compute count and frequency if new_call is NULL.
10900 2011-06-04 Diego Novillo <dnovillo@google.com>
10902 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10903 (cgraph.o): Likewise.
10904 (cgraphunit.o): Likewise.
10905 * cgraphunit.c: Include lto-streamer.h
10906 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10908 * lto-streamer-in.c (unpack_value_fields): Call
10909 streamer_hooks.unpack_value_fields if set.
10910 (lto_materialize_tree): For unhandled nodes, first try to
10911 call lto_streamer_hooks.alloc_tree, if it exists.
10912 (lto_input_ts_decl_common_tree_pointers): Move reading of
10913 DECL_INITIAL to lto_streamer_read_tree.
10914 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10915 (lto_streamer_read_tree): New.
10916 (lto_reader_init): Rename from lto_init_reader.
10917 Move initialization code to lto/lto.c.
10918 * lto-streamer-out.c (pack_value_fields): Call
10919 streamer_hooks.pack_value_fields if set.
10920 (lto_output_tree_ref): For tree nodes that are not normally indexable,
10921 call streamer_hooks.indexable_with_decls_p before giving up.
10922 (lto_output_ts_decl_common_tree_pointers): Move handling
10923 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10924 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10925 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
10926 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10927 (lto_streamer_write_tree): New.
10928 (lto_output): Call lto_streamer_init directly.
10929 (lto_writer_init): Remove.
10930 * lto-streamer.c (streamer_hooks): New.
10931 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10932 instead of lto_preload_common_nodes.
10933 (lto_is_streamable): Move from lto-streamer.h
10934 (lto_streamer_hooks_init): New.
10935 (streamer_hooks): New.
10936 (streamer_hooks_init): New.
10937 * lto-streamer.h (struct output_block): Forward declare.
10938 (struct lto_input_block): Likewise.
10939 (struct data_in): Likewise.
10940 (struct bitpack_d): Likewise.
10941 (struct streamer_hooks): Declare.
10942 (streamer_hooks): Declare.
10943 (lto_streamer_hooks_init): Declare.
10944 (lto_streamer_write_tree): Declare.
10945 (lto_streamer_read_tree): Declare.
10946 (streamer_hooks_init): Declare.
10947 (lto_is_streamable): Move to lto-streamer.c
10949 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10951 * longlong.h (smul_ppmm): The resulting register pair contains the
10952 higher order word first.
10954 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10956 PR tree-optimization/46728
10957 * builtins.c (powi_table): Remove.
10958 (powi_lookup_cost): Remove.
10959 (powi_cost): Remove.
10960 (expand_powi_1): Remove.
10961 (expand_powi): Remove.
10962 (expand_builtin_pow_root): Remove.
10963 (expand_builtin_pow): Remove.
10964 (expand_builtin_powi): Eliminate handling of constant exponent.
10965 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10967 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10969 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10971 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10973 * dce.c (reset_unmarked_insns_debug_uses): New.
10974 (delete_unmarked_insns): Skip debug insns.
10975 (prescan_insns_for_dce): Likewise.
10976 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10977 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10978 active reg can be found.
10979 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
10980 (convert_regs_1): Use it.
10982 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10984 * tree-pretty-print.c (dump_function_header): Add flags.
10985 Don't dump decl_uid with nouid.
10986 * tree-pretty-print.h (dump_function_header): Adjust.
10987 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10988 * passes.c (pass_init_dump_file): Pass dump_flags on.
10989 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10991 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
10994 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10996 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
10998 PR tree-optimization/49243
10999 * calls.c (setjmp_call_p): Also check if fndecl has the
11000 returns_twice attribute.
11002 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11004 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11007 2011-06-06 Richard Henderson <rth@redhat.com>
11008 Georg-Johann Lay <avr@gjlay.de>
11011 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11013 * config/avr/avr.md ("insv"): New insn expander.
11014 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11015 "*insv.not.io", "*insv.reg"): New insns.
11017 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
11020 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11021 to nonimmediate_operand from memory_operand for the operand that is to
11022 be forced to memory by the expander. Lose the constraints.
11024 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
11026 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11027 EH return when delayed branches are disabled.
11029 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
11031 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11032 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
11034 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11035 Simplify MODE_V1DF and MODE_V2SF handling.
11036 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11037 Simplify MODE_SF handling.
11039 2011-06-04 Jan Hubicka <jh@suse.cz>
11041 PR tree-optimization/48893
11042 PR tree-optimization/49091
11043 PR tree-optimization/49179
11044 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11047 2011-06-04 Jan Hubicka <jh@suse.cz>
11050 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11053 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
11055 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11057 2011-06-04 Jakub Jelinek <jakub@redhat.com>
11060 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11061 to be strictly smaller than 1 << shiftcount.
11063 2011-06-04 Jan Hubicka <jh@suse.cz>
11065 PR tree-optimize/48929
11066 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11067 of empty predicate.
11069 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
11072 * calls.c (emit_call_1): Prefer the __builtin declaration of
11075 2011-06-03 Diego Novillo <dnovillo@google.com>
11077 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11078 (lto_input_tree_pointers): Likewise.
11079 * lto-streamer-out.c (pack_value_fields): Likewise.
11080 (lto_output_tree_pointers): Likewise.
11081 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11082 and OPTIMIZATION_NODE.
11084 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11086 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11087 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11088 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11089 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11090 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11091 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11092 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11093 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11094 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11095 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11096 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11097 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11098 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11099 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11100 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11101 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11102 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11103 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11104 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11105 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11106 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11107 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11108 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11109 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11110 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11111 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11112 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11113 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11114 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11115 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11116 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11117 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11118 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11119 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11120 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11121 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11122 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11123 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11124 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11125 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11126 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11127 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11128 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11129 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11130 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11131 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11132 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11133 * system.h (MD_UNWIND_SUPPORT): Poison.
11134 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11135 * doc/tm.texi: Regenerate.
11136 * unwind-dw2.c: Include md-unwind-support.h instead of
11138 * config/ia64/unwind-ia64.c: Likewise.
11139 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11141 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
11143 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11145 2011-06-03 Richard Henderson <rth@redhat.com>
11146 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11148 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11149 (sigill_hdlr): Correct insn, insn size.
11150 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11152 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11154 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11156 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11157 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11158 * config/mips/t-iris: Remove.
11159 * config/mips/t-irix6: New file.
11160 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11162 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11164 * Makefile.in (LIB2ADDEHDEP): Remove.
11165 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11166 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11167 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11168 * config/t-darwin (LIB2ADDEHDEP): Remove.
11169 * config/t-freebsd (LIB2ADDEHDEP): Remove.
11170 * config/t-linux (LIB2ADDEHDEP): Remove.
11172 2011-06-03 Diego Novillo <dnovillo@google.com>
11174 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11175 (lto_register_var_decl_in_symtab): Likewise.
11176 (lto_register_function_decl_in_symtab): Likewise.
11177 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11178 logic to uniquify_nodes.
11180 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11182 * config/alpha/t-osf5: Remove.
11183 * config/alpha/t-osf-pthread: Remove.
11184 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
11185 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
11187 2011-06-03 Julian Brown <julian@codesourcery.com>
11189 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
11190 (strongarm1110): Use strongarm tuning.
11191 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
11192 * config/arm/arm.c (arm_strongarm_tune): New.
11193 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11194 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
11195 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
11196 setting, using previous defaults or 1 for Cortex-A5.
11197 (arm_option_override): Set max_insns_skipped from current tuning.
11199 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
11201 * doc/install.texi (Options specification): Document --with-specs.
11203 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11205 * config/arm/neon.md (orndi3_neon): Actually split it.
11207 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
11209 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
11210 * var-tracking.c (reverse_op): Limite recurse depth to 5.
11212 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
11215 * target.def (delay_sched2, delay_vartrack): New.
11216 * doc/tm.texi.in: Update.
11217 * doc/tm.texi: Rebuild.
11218 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
11219 * var-tracking.c (gate_handle_var_tracking): Likewise.
11220 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
11221 (bfin_flag_var_tracking): Drop.
11222 (output_file_start): Don't save and override flag_var_tracking.
11223 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
11224 (bfin_reorg): Test original variables.
11225 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11226 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
11227 (ia64_flag_var_tracking): Drop.
11228 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11229 (ia64_file_start): Don't save and override flag_var_tracking.
11230 (ia64_override_options_after_change): Ditto
11231 flag_schedule_insns_after_reload.
11232 (ia64_reorg): Test original variables.
11233 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
11234 (picochip_flag_var_tracking): Drop.
11235 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
11236 (picochip_option_override): Don't save and override
11237 flag_schedule_insns_after_reload.
11238 (picochip_asm_file_start): Ditto flag_var_tracking.
11239 (picochip_reorg): Test original variables.
11240 * config/spu/spu.c (spu_flag_var_tracking): Drop.
11241 (TARGET_DELAY_VARTRACK): Define.
11242 (spu_var_tracking): New.
11243 (spu_machine_dependent_reorg): Call it.
11244 (asm_file_start): Don't save and override flag_var_tracking.
11246 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
11249 * config/sh/predicates.md (general_movsrc_operand): Return 0
11250 for memory and memory subreg of which address is an invalid
11251 indexed address for QI and HImode.
11252 (general_movdst_operand): Likewise.
11254 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
11256 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
11257 edges only, when there is a non-local label in the function.
11258 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
11260 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
11262 * config/i386/constraints.md (Y3): New register constraint.
11263 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
11264 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
11265 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
11266 *sse2_interleave_lowv2df.
11268 2011-06-02 Julian Brown <julian@codesourcery.com>
11270 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
11271 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
11272 (arm_cortex_a5_tune): New.
11274 2011-06-02 Julian Brown <julian@codesourcery.com>
11276 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
11277 * config/arm/arm.c (arm_default_branch_cost): New.
11278 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
11279 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
11280 (arm_fa726_tune): Set branch_cost field using
11281 arm_default_branch_cost.
11282 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
11283 current_tune structure.
11284 * dojump.c (tm_p.h): Include file.
11286 2011-06-02 Julian Brown <julian@codesourcery.com>
11288 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
11290 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
11291 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
11292 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
11294 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
11295 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
11296 (arm_fa726te_tune): Add prefer_constant_pool setting.
11297 (arm_v6t2_tune, arm_cortex_tune): New.
11298 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
11299 prefer_constant_pool setting.
11301 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
11303 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
11305 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
11306 (*movdf_internal) <case 6,7,8>: Ditto.
11308 * config/i386/constraints.md (Y4): New register constraint.
11309 * config/i386/sse.md (vec_set<mode>_0): Merge with
11310 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
11311 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
11312 *vec_extractv2di_1_sse.
11313 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
11314 and *vec_concatv2di_rex64_sse.
11316 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
11319 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
11320 of cgraph_local_info for null before attempting to use it.
11322 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
11324 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
11325 (current_function_dynamic_alloc_count): Delete.
11326 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
11327 (expand_builtin_nonlocal_goto): Remove obsolete comment.
11328 (expand_builtin_update_setjmp_buf): Remove dead code.
11329 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
11330 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
11332 * function.c (instantiate_virtual_regs): Likewise.
11333 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
11334 for a block with a single abnormal incoming edge.
11335 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
11336 (SETJMP_VIA_SAVE_AREA): Delete.
11337 * config/sparc/sparc-protos.h (load_got_register): Declare.
11338 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11339 (load_got_register): Make global.
11340 (sparc_frame_pointer_required): Add 'static'.
11341 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
11342 (sparc_builtin_setjmp_frame_value): New function.
11343 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
11344 (save_stack_nonlocal): New expander.
11345 (restore_stack_nonlocal): Likewise.
11346 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
11347 (nonlocal_goto_internal): New insn.
11348 (goto_handler_and_restore): Delete.
11349 (builtin_setjmp_setup): Likewise.
11350 (do_builtin_setjmp_setup): Likewise.
11351 (setjmp): Likewise.
11352 (builtin_setjmp_receiver): New expander.
11354 2011-06-01 David Li <davidxl@google.com>
11356 PR middle-end/49261
11357 * tree-pretty-print.c (dump_function_header): Format cleanup.
11359 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
11362 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
11363 needed when original operands are used for msw_skip comparison.
11365 2011-06-01 Jakub Jelinek <jakub@redhat.com>
11368 * var-tracking.c (add_uses, add_stores): Don't call
11369 cselib_subst_to_values on ENTRY_VALUE.
11371 2011-06-01 Diego Novillo <dnovillo@google.com>
11373 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
11374 output_record_start with LTO_null instead of output_zero.
11375 (lto_output_ts_binfo_tree_pointers): Likewise.
11376 (lto_output_tree): Likewise.
11377 (output_eh_try_list): Likewise.
11378 (output_eh_region): Likewise.
11379 (output_eh_lp): Likewise.
11380 (output_eh_regions): Likewise.
11381 (output_bb): Likewise.
11382 (output_function): Likewise.
11383 (output_unreferenced_globals): Likewise.
11384 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
11385 instead of NUM_TREE_CODES.
11386 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
11387 (lto_output_int_in_range): Change << to >> when shifting VAL.
11389 2011-06-01 Diego Novillo <dnovillo@google.com>
11391 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11392 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11394 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11397 * optabs.h (valid_multiword_target_p): Declare.
11398 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11399 doing multi-word operations.
11400 * optabs.c (expand_binop): Likewise.
11401 (expand_doubleword_bswap): Likewise.
11402 (expand_absneg_bit): Likewise.
11403 (expand_unop): Likewise.
11404 (expand_copysign_bit): Likewise.
11405 (multiword_target_p): New function.
11407 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11409 PR rtl-optimization/48830
11410 PR rtl-optimization/48808
11411 PR rtl-optimization/48792
11412 * reload.c (push_reload): Check contains_reg_of_mode.
11413 * reload1.c (strip_paradoxical_subreg): New function.
11414 (gen_reload_chain_without_interm_reg_p): Use it to handle
11415 paradoxical subregs.
11416 (emit_output_reload_insns, gen_reload): Likewise.
11418 2011-06-01 David Li <davidxl@google.com>
11420 * predict.c : Change pass name
11423 * tree-profile.c: Ditto.
11426 2011-06-01 David Li <davidxl@google.com>
11428 * tree-pretty-print.c (dump_function_header): New function.
11429 * final.c (rest_of_clean_state): Use header dumper.
11430 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11431 * passes.c (pass_init_dump_file): Use header dumper.
11433 2011-06-01 Jakub Jelinek <jakub@redhat.com>
11435 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11436 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11437 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11439 (mem_loc_descriptor): Use them.
11441 * var-tracking.c (create_entry_value): New function.
11442 (vt_add_function_parameter): Use it.
11444 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11446 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11447 Include <signal.h>, <ucontext.h>.
11448 (sigill_caught): Define.
11449 (sigill_hdlr): New function.
11450 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11451 insns can be executed.
11452 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11453 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11455 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11457 * config/t-slibgcc-darwin: Move to ...
11458 * config/t-slibgcc-dummy: ... this. Clarify comments.
11459 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11460 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11461 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11462 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
11463 Remove i386/t-crtstuff from tmake_file.
11464 (i[34567]86-*-solaris2*): Remove t-svr4,
11465 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11467 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11468 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11469 sparc/t-crtfm from tmake_file.
11470 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11471 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11472 Remove extra_parts.
11473 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11474 * config/i386/t-nwld (SHLIB_LINK): Remove.
11475 * config/i386/t-rtems-i386: Rename to ...
11476 * config/i386/t-rtems: ... this.
11477 ($(T)crti.o, $(T)crtn.o): Remove.
11478 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11479 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11480 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11481 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11482 EXTRA_MULTILIB_PARTS): Remove.
11483 * config/sparc/t-sol2-64: Likewise.
11484 * config/sparc/t-sol2: Remove.
11485 * config/sparc/t-crtin: Remove.
11486 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11487 * config/i386/gmon-sol2.c: Remove.
11488 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11489 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11490 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11491 * config/i386/sol2-gc1.asm: Remove.
11492 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11493 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11494 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11495 * config/t-slibgcc-sld: Remove.
11497 2011-06-01 Jakub Jelinek <jakub@redhat.com>
11499 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11500 base_type_for_mode with op_mode instead of mode.
11502 2011-06-01 Paul Brook <paul@cpodesourcery.com>
11504 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
11506 * config/arm/arm-tune.md: Regenerate.
11507 * config/arm/arm-tables.opt: Regenerate.
11508 * config/arm/arm.c (FL_DIV): Rename...
11509 (FL_THUMB_DIV): ... to this.
11510 (FL_ARM_DIV): Define.
11511 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11512 (arm_arch_hwdiv): Remove.
11513 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11514 (arm_issue_rate): Add cortexr5.
11515 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11516 __ARM_ARCH_EXT_IDIV__.
11517 (TARGET_IDIV): Define.
11518 (arm_arch_hwdiv): Remove.
11519 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11520 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11521 (divsi3, udivsi3): New patterns.
11522 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11523 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11525 2011-06-01 Martin Jambor <mjambor@suse.cz>
11527 * ipa-utils.c (ipa_dfs_info): New field scc_no.
11528 * ipa-utils.c (searchc): Set scc_no.
11530 2011-06-01 Martin Jambor <mjambor@suse.cz>
11532 * ipa-utils.c (searchc_env): New field allow_overwritable.
11533 (searchc): do not ignore edges to overwritable nodes if indicated
11534 by env->allow_overwritable.
11535 (ipa_reduced_postorder): Set env.allow_overwritable.
11537 2011-06-01 Richard Guenther <rguenther@suse.de>
11539 * tree.c (free_lang_data): Do not reset boolean_type_node nor
11541 * lto-streamer.c (lto_record_common_node): Take node pointer,
11542 do not register types.
11543 (lto_preload_common_nodes): Explicitly skip preloading nodes
11544 that differ between frontends.
11546 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
11548 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11551 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
11553 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11554 parameter value for dump. Dump cost on outermost call only.
11555 (rs6000_memory_move_cost): Dump cost on outermost call only.
11557 2011-05-31 Jakub Jelinek <jakub@redhat.com>
11559 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11560 DW_OP_GNU_convert ops.
11562 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11563 cselib_preserve_constants.
11564 (cselib_lookup_1): If cselib_preserve_constants,
11565 a new VALUE is being created for REG and there is a VALUE for the
11566 same register in wider mode, add another loc with lowpart SUBREG of
11568 (cselib_subst_to_values): Handle ENTRY_VALUE.
11569 * var-tracking.c (replace_expr_with_values): Return NULL for
11571 * dwarf2out.c (convert_descriptor_to_signed): New function.
11572 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11573 instead of two shifts.
11574 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11575 the right mode if needed.
11576 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11577 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11578 convert_descriptor_to_signed.
11579 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11580 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11583 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11585 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
11587 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11588 of X87MODEI12 and SWI48x instead of SSEMODEI24.
11589 (SWI248x): New mode iterator, rename from X87MODEI.
11590 (X87MODEI): Remove mode iterator.
11591 (X87MODEI12): Ditto.
11592 (SSEMODEI24): Ditto.
11594 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11596 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11597 * doc/invoke.texi: Document max-vartrack-expr-depth.
11598 * var-tracking.c (EXPR_DEPTH): New.
11599 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11601 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11603 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11604 * config/i386/sse.md: Add n to negated FMA pattern names.
11606 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11608 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11610 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
11612 * gengtype-state.c (read_state_params_structs): Initialize previous.
11614 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
11616 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11617 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11619 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
11621 * config/i386/i386.md (*movtf_internal): Avoid allocating general
11622 registers. Penalize F*r->o alternative to prevent partial memory
11623 stalls. Slightly penalize *roF->*r alternative. Generate SSE
11624 CONST_DOUBLE immediates when optimizing function for size. Do not move
11625 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11626 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11627 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11628 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11630 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11632 (fp_register_operand splitters): Use fp_register_operand
11633 constraint. Do not use FP_REG_P in insn condition.
11634 (any_fp_register_operand splitters): Use any_fp_register_operand
11635 constraint. Do not use ANY_FP_REG_P in insn condition.
11637 2011-05-31 Jan Hubicka <jh@suse.cz>
11639 * cgraph.h (cgraph_inline_failed_t): Give enum a name
11640 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11641 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11642 (lto_output_edge): Use output_enum and var_len_unsigned.
11643 (lto_output_varpool_node): Likewise.
11644 (input_overwrite_node): Do not take resolution parameter;
11645 extract it from a bitpack.
11646 (input_node): Do not read resolution; use input_enum and
11648 (input_varpool_node): Likewise.
11649 (input_edge): Likewise.
11650 (input_cgraph_1): Likewise.
11652 2011-05-31 Richard Guenther <rguenther@suse.de>
11654 * gimple.c (gimple_register_canonical_type): Do not register
11655 any types via gimple_register_type.
11657 2011-05-31 Jan Hubicka <jh@suse.cz>
11659 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11662 2011-05-31 Jakub Jelinek <jakub@redhat.com>
11664 PR rtl-optimization/49235
11665 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11666 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11668 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
11670 PR tree-optimization/49093
11671 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11674 2011-05-31 Dodji Seketeli <dodji@redhat.com>
11677 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11678 for concrete functions containing the code of cloned functions.
11680 2011-05-31 Richard Guenther <rguenther@suse.de>
11682 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11684 (forward_propagate_into_comparison_1): ... this.
11685 (forward_propagate_comparison): Rename to ...
11686 (forward_propagate_into_comparison): ... this. Split out
11687 real forward propagation code to ...
11688 (forward_propagate_comparison): ... this.
11689 (forward_propagate_into_gimple_cond): Remove looping.
11690 (forward_propagate_into_cond): Likewise.
11691 (simplify_not_neg_expr): Return whether we have done something.
11692 (simplify_gimple_switch): Likewise.
11693 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11694 (ssa_forward_propagate_and_combine): ... this. Re-structure
11695 to do a forward forward-propagation walk on BBs and a backward
11696 stmt combining walk on BBs. Consistently re-scan changed statements.
11697 (pass_forwprop): Adjust.
11699 2011-05-30 Ian Lance Taylor <iant@google.com>
11701 * godump.c (go_format_type): Correct length of name added to
11702 obstack for anonymous field.
11704 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
11707 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11708 part of the second operand is 0.
11710 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
11712 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11713 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
11714 to memory for !TARGET_MEMORY_MISMATCH_STALL.
11715 (*movdf_internal_rex64): Do not penalize F->r alternative.
11716 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11717 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
11718 when optimizing function for size. Do not move CONST_DOUBLEs
11719 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11720 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
11721 SUBREGs. Do not check for MEM_P operands in the insn condition,
11722 check for ANY_FP_REGNO_P instead.
11723 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11724 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11725 function for speed.
11726 * config/i386/i386.c (ix86_option_override_internal): Do not
11727 set TARGET_INTEGER_DFMODE_MOVES here.
11729 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
11732 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11734 2011-05-30 Jakub Jelinek <jakub@redhat.com>
11736 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11737 DW_TAG_rvalue_reference_type even for
11738 -gdwarf-4 -fno-debug-types-section.
11740 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11742 PR tree-optimization/46728
11743 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11744 (build_and_insert_binop): New.
11745 (gimple_expand_builtin_pow): Reorder args for
11746 build_and_insert_call; use build_and_insert_binop; add more
11747 optimizations for fractional exponents.
11749 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
11754 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
11756 * tree.h (struct tree_identifier): Inherit from tree_typed, not
11758 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11759 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11760 TS_BASE instead of TS_COMMON.
11761 * varasm.c (assemble_name): Remove assert.
11763 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
11765 * config.gcc: Keep obselete list sorted.
11767 2011-05-30 Jakub Jelinek <jakub@redhat.com>
11768 Eric Botcazou <ebotcazou@adacore.com>
11770 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11771 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11772 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11773 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11774 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11776 2011-05-30 Richard Guenther <rguenther@suse.de>
11778 * gimple.c (gimple_types_compatible_p_1): Compare record
11779 and union type members properly.
11781 2011-05-30 Richard Guenther <rguenther@suse.de>
11783 PR tree-optimization/49210
11784 * ipa-split.c (split_function): Care for the case where the call
11785 result is not trivially convertible to the result holding variable.
11787 2011-05-30 Richard Guenther <rguenther@suse.de>
11789 PR tree-optimization/49218
11790 * tree-vrp.c (adjust_range_with_scev): Properly check whether
11793 2011-05-30 Richard Guenther <rguenther@suse.de>
11795 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11796 New function split out from ...
11797 (forward_propagate_into_gimple_cond): ... here. Adjust.
11798 (forward_propagate_into_cond): Likewise.
11799 (forward_propagate_comparison): Also propagate into
11800 comparisons on assignment RHS. Change return value to
11801 behave similar to forward_propagate_into_cond.
11802 (tree_ssa_forward_propagate_single_use_vars): Handle
11803 strict-overflow warnings properly for forward_propagate_comparison.
11805 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11807 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11808 from plugin linker.
11809 * configure: Regenerate.
11811 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
11813 PR tree-optimization/49199
11814 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11815 non-reduction operands are either defined in the loop or by induction.
11817 2011-05-29 Xinliang David Li <davidxl@google.com>
11819 * opts-global.c (handle_common_deferred_options): Handle new options.
11820 * passes.c (register_one_dump_file): Call register_pass_name.
11821 (execute_one_pass): Check explicit enable/disable flag.
11822 (passr_hash): New function.
11824 (register_pass_name): Ditto.
11825 (get_pass_by_name): Ditto.
11826 (pass_hash): Ditto.
11828 (enable_pass): Ditto.
11829 (disable_pass): Ditto.
11830 (is_pass_explicitly_enabled_or_disabled): Ditto.
11832 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
11834 * config/i386/i386.md (*movoi_internal_avx): Use
11835 standard_sse_constant_opcode for alternative 0.
11836 (*movti_internal_sse): Ditto.
11837 (*movti_internal_rex64): Use standard_sse_constant_opcode for
11839 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11840 sselog1 type moves.
11841 (*movsi_internal): Ditto.
11842 (*movdi_internal): Ditto. Add ssecvt type moves.
11844 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
11847 * rtlanal.c (simplify_subreg_regno): Adjust comment.
11849 2011-05-29 Jakub Jelinek <jakub@redhat.com>
11851 PR rtl-optimization/49095
11852 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11853 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11855 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
11858 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11859 recurse_p argument. Only follow register copies if it is set,
11860 and prevent mips_find_pic_call_symbol from recursing.
11861 (mips_find_pic_call_symbol): Add a recurse_p argument.
11862 Pass it to mips_pic_call_symbol_from_set.
11863 (mips_annotate_pic_calls): Update accordingly.
11865 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
11867 * emit-rtl.c (try_split): Use a loop to search for
11868 NOTE_INSN_CALL_ARG_LOCATIONs.
11870 2011-05-29 Richard Guenther <rguenther@suse.de>
11872 PR tree-optimization/49217
11873 * ipa-pure-const.c (propagate_pure_const): Fix typos.
11875 2011-05-28 Jan Hubicka <jh@suse.cz>
11877 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11879 (string_slot_free): Remove
11880 (create_output_block): Initialize obstack.
11881 (destroy_output_block): Free obstack.
11882 (lto_string_index): Add PERSISTENT parameter; do not duplicate
11883 the string unless it needs to be added into the hash.
11884 (lto_output_string_with_length): Add persistent attribute;
11885 handle NULL strings.
11886 (lto_output_string): Add PERSISTENT parameter.
11887 (output_string_cst, output_identifier): Simplify.
11888 (lto_output_location_bitpack): Update.
11889 (lto_output_builtin_tree): Update.
11890 * lto-streamer.h (struct output_block): Add obstack.
11891 (lto_output_string, lto_output_string_with_length): Remove
11892 declarations; functions are static now.
11894 2011-05-28 Jan Hubicka <jh@suse.cz>
11896 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11897 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11898 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11899 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11900 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11901 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11902 unpack_ts_decl_with_vis_value_fields,
11903 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11904 lto_get_builtin_tree): Use enum and variable length i/o.
11905 * basic-block.h (profile_status_d): Add PROFILE_LAST.
11906 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11908 (bp_pack_enum, bp_unpack_enum): New macros.
11910 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11912 * genrecog.c: Remove redundant forward declarations.
11914 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11916 * config.gcc: Deprecate mips*-*-openbsd*.
11918 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
11921 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11924 2011-05-27 Andrew Pinski <pinskia@gmail.com>
11926 PR middle-end/48981
11927 * gengtype.c (vec_prefix_type): New function.
11928 (note_def_vec): Use vec_prefix_type and change the length
11929 attribute to be based on the prefix.
11930 * vec.c: Include coretypes.h before vec.h.
11931 (struct vec_prefix): Remove.
11932 (vec_gc_p_reserve): Change the offsetof to sizeof.
11933 (vec_gc_p_reserve_exact): Likewise.
11934 (vec_heap_p_reserve): Likewise.
11935 (vec_heap_p_reserve_exact): Likewise.
11936 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11937 (vec_stack_p_reserve): Change the offsetof to sizeof.
11938 (vec_stack_p_reserve_exact): Likewise.
11939 * vec.h (struct vec_prefix): New struct definition.
11940 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11941 (VEC_T_GTY(T,B)): Likewise.
11942 (DEF_VEC_FUNC_P(T)): Use prefix field.
11943 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11944 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11946 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11948 PR tree-optimization/46728
11949 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11950 (powi_as_mults): Add gimple_set_location.
11951 (build_and_insert_call): New.
11952 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11953 0.5, 0.25, 0.75, 1./3., or 1./6.
11955 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
11957 * doc/contrib.texi: Update copyright years.
11958 (Contributors): Add Zdenek Sojka.
11960 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
11962 * c-decl.c (c_push_function_context): Copy the current statement
11964 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11965 (finish_struct): Call building_stmt_list_p instead of checking
11967 * c-parser.c (c_parser_postfix_expression): Likewise.
11968 * c-typeck.c (c_end_compound_stmt): Likewise.
11969 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11970 * tree-iterator.c (stmt_list_cache): Change to a VEC.
11971 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11972 (free_stmt_list): Likewise.
11973 * tree.h (struct tree_statement_list): Include typed_tree instead
11975 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11976 as TS_TYPED instead of TS_COMMON.
11978 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11979 Uros Bizjak <ubizjak@gmail.com>
11981 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11982 (HAVE_AS_IX86_TLSGDPTL): Define.
11983 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11984 (HAVE_AS_IX86_TLSLDMPLT): Define.
11985 * configure: Regenerate.
11986 * config.in: Regenerate.
11987 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11988 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11989 TARGET_SUN_TLS, use @tlsgdplt or @plt.
11990 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11991 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11992 @tlsldmplt or @plt.
11993 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11995 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
11997 * sched-int.h (struct _haifa_deps_insn_data): New members cond
11999 (INSN_COND, INSN_REVERSE_COND): New macros.
12000 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12002 (sched_get_condition_with_rev): Cache the results, and look them up
12004 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12005 are clobbered by the current insn.
12006 * target.def (exposed_pipline): New sched data hook.
12007 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12008 * doc/tm.texi: Regenerate.
12010 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12012 PR tree-optimization/49170
12013 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
12016 2011-05-27 Richard Guenther <rguenther@suse.de>
12018 PR middle-end/49189
12019 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12022 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12024 * haifa-sched.c (sched_scan_info): Remove.
12025 (schedule_block): Call sched_extend_luids rather than sched_init_luids
12027 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12029 (sched_scan): Remove.
12030 (sched_extend_luids): Renamed from luids_extend_insn and no longer
12031 static. All callers changed.
12032 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12033 static. All callers changed.
12034 (sched_init_luids): Remove all arguments except the first. All
12035 callers changed. Don't use sched_scan.
12036 (haifa_init_h_i_d): Likewise.
12037 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12038 manually rather than using sched_init_luids. Likewise with
12039 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12040 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12041 rather than sched_init_luids with NULL args.
12042 * sel-sched-ir.c (new_insns): Remove variable.
12043 (sched_scan): New static function, previously in haifa-sched.c. Remove
12044 all arguments but the first two; all callers changed.
12045 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12046 rather than sched_init_luids.
12047 (sel_init_bbs): Remove second argument. All callers changed.
12048 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12049 with NULL arguments.
12050 (create_insn_rtx_from_pattern): Likewise.
12051 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12052 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12053 (sched_init_insn_luid, sched_extend_luids): Declare.
12054 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12057 2011-05-27 Richard Guenther <rguenther@suse.de>
12059 PR middle-end/49177
12060 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12061 A CMP B ? (T) true : (T) false for non-integral types T again.
12063 2011-05-27 Jan Hubicka <jh@suse.cz>
12065 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12066 so 0 means NULL string.
12067 (lto_output_string_with_length): ... here.
12068 (lto_output_string, output_string_cst, output_identifier): Update
12069 handling of NULL strings.
12070 (lto_output_location_bitpack): New function.
12071 (lto_output_location): Use it.
12072 (lto_output_tree_ref): Use output_record_start.
12073 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12075 * lto-streamer-in.c (string_for_index): Break out from ...; offset
12077 (input_string_internal): ... here;
12078 (input_string_cst, input_identifier, lto_input_string): Update handling
12080 (lto_input_location_bitpack): New function
12081 (lto_input_location): Use it.
12082 (unpack_ts_type_common_value_fields): Pack align & alias in var len
12084 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12085 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12086 (bp_pack_value): Sanity check the value range.
12087 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12089 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12092 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
12094 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12095 call_arg_location instructions down the floor.
12097 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
12099 PR rtl-optimization/49154
12100 * ira.c (setup_pressure_classes): Process class without sublcasses
12101 as a candidate for pressure classes.
12103 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
12105 PR rtl-optimization/48575
12106 * genrecog.c (position_type): New enum.
12107 (position): New structure.
12108 (decision): Use position structure instead of a string.
12109 (root_pos, peep2_insn_pos_list): New variables.
12110 (next_position, compare_positions): New functions.
12111 (new_decision): Use position structures instead of strings.
12112 (maybe_both_true): Likewise.
12113 (change_state): Likewise.
12114 (write_tree): Likewise.
12115 (make_insn_sequence): Likewise.
12117 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12119 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12120 TS_BASE instead of TS_COMMON.
12121 (find_decls_types_r): Check for TS_TYPED structure before looking at
12123 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12125 (BLOCK_CHAIN): Use new chain field.
12127 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
12129 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12130 moves expensive on Power7 also.
12132 2011-05-26 Richard Guenther <rguenther@suse.de>
12134 * fold-const.c (fold_unary_loc): Remove bogus code.
12136 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12138 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12140 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12141 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12142 TS_BASE instead of TS_COMMON.
12143 * varasm.c (assemble_name): Remove assert.
12145 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12147 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12149 * libgcc-std.ver: Delete file.
12151 2011-05-26 Richard Guenther <rguenther@suse.de>
12153 PR tree-optimization/48702
12154 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12155 only when we know the base address is within bounds.
12156 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12157 assume the base address of TARGET_MEM_REFs is in bounds.
12159 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12162 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12163 declaration in TARGET_SOLARIS.
12165 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
12167 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12168 The instruction is then expanded explicitly.
12169 (supported_compare): Callable instruction.
12170 (compare): Likewise.
12172 2011-05-26 Jakub Jelinek <jakub@redhat.com>
12175 * gimplify.c (shortcut_cond_r): Don't special case
12176 COND_EXPRs if they have void type on one of their arms.
12178 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12180 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12181 to reduce duplication, and to achieve a slightly more logical order
12184 2011-05-26 Jakub Jelinek <jakub@redhat.com>
12186 PR tree-optimization/49161
12187 * tree-vrp.c (struct case_info): New type.
12188 (compare_case_labels): Sort case_info structs instead of
12189 trees, and not primarily by CASE_LABEL uids but by
12190 label_for_block indexes.
12191 (find_switch_asserts): Put case labels into struct case_info
12192 array instead of TREE_VEC, adjust sorting, compare label_for_block
12193 values instead of CASE_LABELs.
12195 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12197 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
12198 ("orndi3_neon"): Likewise.
12199 ("bic<mode>3_neon"): Likewise.
12201 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
12203 PR tree-optimization/49038
12204 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
12205 Ensure at least one epilogue iteration if required by data
12206 accesses with gaps.
12207 * tree-vectorizer.h (struct _loop_vec_info): Add new field
12208 to mark loops that require peeling for gaps.
12209 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
12210 (vect_get_known_peeling_cost): Take peeling for gaps into
12212 (vect_transform_loop): Generate epilogue if required by data
12214 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
12215 loop as requiring an epilogue if there are gaps in the end of
12218 2011-05-25 Ian Lance Taylor <iant@google.com>
12220 * godump.c (go_format_type): Output the first field with a usable
12223 2011-05-25 Ian Lance Taylor <iant@google.com>
12225 * godump.c (go_format_type): Check for invalid type names, pointer
12226 target types, and struct field types.
12228 2011-05-25 Jason Merrill <jason@redhat.com>
12230 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
12232 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
12234 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
12236 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12238 * config/i386/i386.md (*movqi_extv_1)): Put back
12239 "register_operand" check in "type" calculation.
12240 (*movqi_extzv_2): Likewise.
12242 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12244 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
12246 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
12249 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
12250 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
12251 __divxc3, __divtc3): Wrap definitions in #ifndef.
12253 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12256 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
12257 "register_operand" check and replace q_regs_operand with
12258 QIreg_operand in "type" calculation.
12259 (*movqi_extv_1): Likewise.
12260 (*movqi_extzv_2_rex64): Likewise.
12261 (*movqi_extzv_2): Likewise.
12263 * config/i386/predicates.md (QIreg_operand): New.
12265 2011-05-25 Richard Guenther <rguenther@suse.de>
12267 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12268 type-based offset disambiguation, streamline MEM_REF and
12269 TARGET_MEM_REF handling.
12271 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
12273 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
12274 (bdesc_special_args): Add pause intrinsic.
12276 * config/i386/i386.md (UNSPEC_PAUSE): New.
12278 (*pause): Likewise.
12279 * config/i386/ia32intrin.h (__pause): Likewise.
12281 * doc/extend.texi (X86 Built-in Functions): Add documentation for
12284 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12286 PR tree-optimization/46728
12287 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
12288 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
12290 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
12292 * tree.h (struct tree_exp): Inherit from struct tree_typed.
12293 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
12294 instead of TS_COMMON.
12296 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
12298 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
12299 LIBGCC2_GNU_PREFIX is defined.
12301 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
12302 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
12303 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
12304 __clz_tab): Define using __N.
12305 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
12306 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
12307 * target.def (libfunc_gnu_prefix): New hook.
12308 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
12309 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
12310 * doc/tm.texi: Regenerate.
12311 * system.h (LIBGCC2_GNU_PREFIX): Poison.
12312 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
12314 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12315 (init_optabs): Likewise for the bswap libfuncs.
12316 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
12318 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
12319 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
12320 * libgcc-std.ver: Remove.
12321 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
12322 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
12324 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12325 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
12326 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
12327 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
12328 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
12329 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12330 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
12331 * config/fixed-bit.h (FIXED_OP): Define differently depending on
12332 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
12333 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
12335 2011-05-25 Jan Hubicka <jh@suse.cz>
12337 * lto-streamer-out.c (output_record_start): Use lto_output_enum
12338 (lto_output_tree): Use output_record_start.
12339 * lto-streamer-in.c (input_record_start): Use lto_input_enum
12340 (lto_get_pickled_tree): Use input_record_start.
12341 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
12342 (lto_value_range_error): New function.
12343 * lto-streamer.h (lto_value_range_error): Declare.
12344 (lto_output_int_in_range, lto_input_int_in_range): New functions.
12345 (lto_output_enum, lto_input_enum): New macros.
12347 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
12349 * common.opt (flag_stack_usage_info): New variable.
12350 (-Wstack-usage): New option.
12351 * doc/invoke.texi (Warning options): Document -Wstack-usage.
12352 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
12353 <OPT_fstack_usage>: Likewise.
12354 * toplev.c (output_stack_usage): Handle -Wstack-usage.
12355 * calls.c (expand_call): Test flag_stack_usage_info variable instead
12356 of flag_stack_usage.
12357 (emit_library_call_value_1): Likewise.
12358 * explow.c (allocate_dynamic_stack_space): Likewise.
12359 * function.c (instantiate_virtual_regs ): Likewise.
12360 (prepare_function_start): Likewise.
12361 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
12362 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
12363 * config/arm/arm.c (arm_expand_prologue): Likewise.
12364 (thumb1_expand_prologue): Likewise.
12365 * config/avr/avr.c (expand_prologue): Likewise.
12366 * config/i386/i386.c (ix86_expand_prologue): Likewise.
12367 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12368 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
12369 * config/mips/mips.c (mips_expand_prologue): Likewise.
12370 * config/pa/pa.c (hppa_expand_prologue): Likewise.
12371 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12372 * config/s390/s390.c (s390_emit_prologue): Likewise.
12373 * config/sh/sh.c (sh_expand_prologue): Likewise.
12374 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12375 * config/spu/spu.c (spu_expand_prologue): Likewise.
12377 2011-05-25 Richard Guenther <rguenther@suse.de>
12379 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
12380 (gimple_canonical_types_compatible_p): Likewise.
12382 2011-05-25 Jan Hubicka <jh@suse.cz>
12384 PR middle-end/49062
12385 * ipa.c (function_and_variable_visibility): Only add to same
12386 comdat group list if DECL_ONE_ONLY.
12388 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
12390 PR rtl-optimization/49014
12391 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12393 2011-05-25 Jakub Jelinek <jakub@redhat.com>
12396 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12398 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
12400 PR rtl-optimization/48757
12401 * ira-build.c (loop_with_eh_edge_p): Rename to
12402 loop_with_complex_edge_p, check edges on complexity, make function
12404 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12407 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
12409 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12410 force flag_ira_share_save_slots to 0.
12412 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
12414 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12415 (vt_initialize): Set PROLOGUE_BB unconditionally.
12416 Add block comment about CFA_BASE_RTX machinery.
12417 Reset FP_CFA_OFFSET to -1 on all invalid paths.
12418 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12420 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
12423 * c-parser.c (c_parser_objc_class_instance_variables): More robust
12424 parsing of syntax error in ObjC instance variable lists. In
12425 particular, avoid an infinite loop if there is a stray ']'.
12426 Updated error message.
12428 2011-05-24 Ian Lance Taylor <iant@google.com>
12430 * godump.c (go_define): Don't accept a string immediately after
12433 2011-05-24 Ian Lance Taylor <iant@google.com>
12435 * godump.c (struct godump_container): Add invalid_hash field.
12436 (go_format_type): Return false if type is found in invalid_hash.
12437 (go_output_typedef): Add invalid type to invalid_hash.
12438 (go_finish): Create and delete invalid_hash.
12440 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12442 PR tree-optimization/46728
12443 * tree-ssa-math-opts.c (powi_table): New.
12444 (powi_lookup_cost): New.
12446 (powi_as_mults_1): New.
12447 (powi_as_mults): New.
12448 (gimple_expand_builtin_powi): New.
12449 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12450 (gate_cse_sincos): Remove sincos/cexp restriction.
12452 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12455 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12457 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12458 * mips-tdump.c: Likewise.
12460 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
12463 * config/i386/driver-i386.c (host_detect_local_cpu): Always
12464 add -mno-XXX. Handle FMA.
12466 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
12468 PR rtl-optimization/48633
12469 * ira-build.c (loop_with_eh_edge_p): New function.
12470 (mark_loops_for_removal): Use it.
12472 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
12474 PR rtl-optimization/48971
12475 * ira.c (setup_pressure_classes): Don't check register move cost
12476 for classes with one registers. Don't add pressure class if there
12477 is a pressure class with the same available hard registers.
12478 Check contains_reg_of_mode. Fix a typo in collecting
12479 temp_hard_regset. Ignore hard registers not belonging to a class.
12481 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
12484 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12486 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
12487 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12489 PR gcov-profile/48845
12490 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12492 2011-05-24 Richard Guenther <rguenther@suse.de>
12494 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12495 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12496 (gimple_types_compatible_p_1): Adjust.
12497 (iterative_hash_canonical_type): Do not bother about complete vs.
12499 (gimple_canonical_types_compatible_p): Likewise.
12501 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12503 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12505 2011-05-24 Richard Guenther <rguenther@suse.de>
12508 * gimple.c (gimple_register_canonical_type): Revert
12510 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12511 does not for a tree for the case where it matters. Cache
12512 pointer-type alias-sets.
12514 2011-05-24 Joseph Myers <joseph@codesourcery.com>
12516 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12517 (OBJS): Remove options.o, opts-common.o and prefix.o.
12518 (OBJS-libcommon-target): New.
12519 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12520 (BACKEND): Include libcommon-target.a.
12521 (MOSTLYCLEANFILES): Include libcommon-target.a.
12522 (libcommon-target.a): New.
12523 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12526 2011-05-23 Joseph Myers <joseph@codesourcery.com>
12528 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
12529 parts of output shared with the driver.
12530 * optc-gen.awk: Don't generate parts of output not shared with the
12532 * opth-gen.awk: Remove GCC_DRIVER conditionals.
12533 * doc/options.texi (SourcerInclude): Mention options-save.c.
12534 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12535 (OBJS): Add options-save.o.
12536 (options-save.c, options-save.o): New.
12537 (options.o): Update dependencies.
12538 (gcc-options.o): Remove.
12539 (mostlyclean): Remove options-save.c.
12541 2011-05-23 Jakub Jelinek <jakub@redhat.com>
12544 * dbxout.c: Include cgraph.h.
12545 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12546 and without value expr, return NULL if no varpool node exists for
12547 it or if it is not needed.
12548 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12551 * c-decl.c (start_decl): Convert expr to void_type_node.
12553 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
12555 PR rtl-optimization/48826
12556 * emit-rtl.c (try_split): When splitting a call that is followed
12557 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12559 2011-05-23 Jakub Jelinek <jakub@redhat.com>
12561 * cfgexpand.c (expand_debug_expr): For unused non-addressable
12562 parameters passed in memory prefer using DECL_INCOMING_RTL over
12563 the pseudos it will be copied into.
12565 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
12568 * config/i386/i386.c (ix86_option_override_internal): Save the
12569 initial options after checking vzeroupper.
12571 2011-05-23 David Li <davidxl@google.com>
12573 PR tree-optimization/48988
12574 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12575 Initialize has_valid_pred for each pred chain.
12577 2011-05-23 Richard Guenther <rguenther@suse.de>
12579 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12580 (iterative_hash_gimple_type): Always hash type names.
12582 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
12584 * c-typeck.c (build_function_call_vec): Tweak call to
12585 check_function_arguments.
12587 2011-05-23 Richard Guenther <rguenther@suse.de>
12589 PR tree-optimization/49115
12590 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12591 is not necessarily carried out, do not claim it kills the ref.
12592 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12594 2011-05-23 Richard Guenther <rguenther@suse.de>
12596 PR middle-end/15419
12597 * builtins.c (fold_builtin_memory_op): Be less restrictive about
12598 what pointer types we accept for folding.
12600 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12602 * gthr-gnat.c: Remove.
12603 * gthr-gnat.h: Remove.
12604 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12605 * config/t-freebsd (LIB2ADDEH): Likewise.
12606 * config/t-linux (LIB2ADDEH): Likewise.
12607 * config/t-sol2 (LIB2ADDEH): Likewise.
12608 * config/ia64/t-vms (LIB2ADDEH): Likewise.
12609 * configure.ac (target_thread_file): Remove gnat handling.
12610 * configure: Regenerate.
12611 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12613 2011-05-23 Tristan Gingold <gingold@adacore.com>
12614 Eric Botcazou <ebotcazou@adacore.com>
12616 * gcov.c (create_file_names): If no object directory is specified,
12617 keep the directory of the file.
12619 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12621 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12622 * configure: Regenerate.
12624 2011-05-23 Jakub Jelinek <jakub@redhat.com>
12626 PR middle-end/48973
12627 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12628 failed and the comparison has a single bit signed type, use
12629 constm1_rtx instead of const1_rtx for true value.
12630 (do_store_flag): If ops->type is single bit signed type, disable
12631 signel bit test optimization and pass -1 instead of 1 as last
12632 parameter to emit_store_flag_force.
12634 2011-05-23 Tom de Vries <tom@codesourcery.com>
12637 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12639 (infer_loop_bounds_from_undefined): Use new function.
12641 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
12643 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12644 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
12645 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12647 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12649 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
12651 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12652 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12655 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
12657 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12659 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
12661 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12662 UNSPEC_MOVE_PIC pattern.
12664 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
12666 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12667 (sparc-*-rtems*): Likewise.
12668 (sparc64-*-elf*): Likewise.
12669 (sparc64-*-rtems*): Likewise.
12670 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
12671 * config/sparc/t-crtin: New file.
12672 * config/sparc/t-sol2 (crti.o): Delete rule.
12673 (crtn.o): Likewise.
12674 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12675 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12676 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12677 (ENDFILE_SPEC): Add crtn.o.
12679 2011-05-22 Tom de Vries <tom@codesourcery.com>
12681 PR middle-end/48689
12682 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12683 CODE_CONTAINS_STRUCT (TS_COMMON).
12685 2011-05-22 Jakub Jelinek <jakub@redhat.com>
12687 PR middle-end/49029
12688 * expmed.c (extract_fixed_bit_field): Test whether target can be used
12689 only after deciding which mode to use.
12691 2011-05-22 Tom de Vries <tom@codesourcery.com>
12694 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12695 for call to get_shiftadd_cost.
12697 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
12700 * config/i386/cpuid.h (bit_MMXEXT): New define.
12702 2011-05-22 Nick Clifton <nickc@redhat.com>
12704 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12705 initialisation of non-existant args[2] element. Use args[] array
12706 not arg[] array to pass arguments to build_function_type_list.
12708 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
12710 PR tree-optimization/49087
12711 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12713 2011-05-21 Jason Merrill <jason@redhat.com>
12716 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12717 static storage duration.
12719 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
12721 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12724 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
12726 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12727 false if there are call-saved registers here...
12728 (sparc_can_use_return_insn_p): ...but here instead.
12729 (save_or_restore_regs): Fix thinko.
12730 (sparc_expand_prologue): Use current_function_is_leaf.
12731 (sparc_frame_pointer_required): Likewise.
12733 2011-05-21 Nick Clifton <nickc@redhat.com>
12736 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12738 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
12740 * gengtype.c (walk_type): Implemented "atomic" GTY option.
12741 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12743 2011-05-21 Joseph Myers <joseph@codesourcery.com>
12745 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
12746 * optc-gen.awk: Move common code to opt-read.awk.
12747 * opth-gen.awk: Likewise.
12748 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12750 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
12752 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12754 2011-05-20 Tom de Vries <tom@codesourcery.com>
12757 * tree-ssa-loop-ivopts.c: Include expmed.h.
12758 (get_shiftadd_cost): New function.
12759 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
12761 2011-05-20 Jakub Jelinek <jakub@redhat.com>
12764 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12765 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12767 2011-05-20 Joseph Myers <joseph@codesourcery.com>
12769 * Makefile.in: Update comment referring to $(OBJS-common).
12771 2011-05-20 Ian Lance Taylor <iant@google.com>
12773 * godump.c (go_output_typedef): Put enum constants in the macro
12774 hash table to avoid duplicate Go const definitions.
12776 2011-05-20 Joseph Myers <joseph@codesourcery.com>
12778 * Makefile.in (LIBDEPS): Add libcommon.a.
12780 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12781 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12782 pretty-print.o and version.o.
12783 (OBJS-libcommon): New.
12784 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12785 (BACKEND): Add libcommon.a.
12786 (MOSTLYCLEANFILES): Likewise.
12787 (libcommon.a): New.
12788 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12789 (cpp$(exeext)): Likewise.
12790 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12791 pretty-print.o and input.o.
12792 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12793 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12794 (errors.o): Remove.
12795 (mips-tfile): Don't explicitly use version.o.
12796 (mips-tdump): Likewise.
12797 (gcov.o): Depend on $(DIAGNOSTIC_H).
12798 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12799 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12800 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12801 * gcov-dump.c: Include intl.h and diagnostic.h.
12802 (main): Initialize diagnostics.
12803 * gcov.c: Include diagnostic.h.
12805 (main): Initialize diagnostics.
12806 * lto-wrapper.c: Include diagnostic.h.
12807 (main): Initialize diagnostics.
12809 2011-05-20 Michael Matz <matz@suse.de>
12811 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12813 2011-05-20 Michael Matz <matz@suse.de>
12814 Richard Guenther <rguenther@suse.de>
12816 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12817 use lto_streamer_cache_append directly instead of returning a VEC.
12818 (preload_common_node): Remove.
12819 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12821 (lto_streamer_cache_create): Call lto_preload_common_nodes.
12823 2011-05-20 Richard Guenther <rguenther@suse.de>
12825 PR tree-optimization/49079
12826 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12827 MEM_REFs correctly for the trailing array access detection.
12828 Special case constants the same way as decls for overall size
12831 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
12833 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12834 argument expansion.
12836 2011-05-20 Jakub Jelinek <jakub@redhat.com>
12838 PR tree-optimization/49073
12839 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12840 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12841 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12843 2011-05-20 Richard Guenther <rguenther@suse.de>
12845 PR middle-end/48849
12846 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12847 of pointer types the same way the middle-end does.
12849 2011-05-20 Richard Guenther <rguenther@suse.de>
12851 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12852 or pointer-to chains. Delay all fixup to uniquify_nodes.
12854 2011-05-19 Quentin Neill <quentin.neill@amd.com>
12856 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12857 (fma4_fmaddsub): Likewise
12859 2011-05-19 Jan Hubicka <jh@suse.cz>
12861 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12862 (GIMPLE_TYPE_PAIR_SIZE): New macro.
12863 (type_pair_cache): New static var.
12864 (lookup_type_pair): Use fixed sized custom hash; make inline.
12865 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12866 calls of lookup_type_pair.
12867 (print_gimple_types_stats): Remove cache stats.
12868 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12871 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
12873 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12874 when TARGET_RDRND is active.
12875 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12876 Generate dummy SImode target register when target is NULL.
12878 2011-05-19 Joseph Myers <joseph@codesourcery.com>
12880 * config/arm/arm-fpus.def: New.
12881 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12883 * config/arm/arm-tables.opt: Regenerate.
12884 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12885 (arm_option_override): Don't decode FPU name to string here.
12886 * config/arm/arm.opt (mfpu=): Use Enum.
12887 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12888 Update dependencies.
12890 2011-05-19 Joseph Myers <joseph@codesourcery.com>
12892 * collect2.c: Include diagnostic.h.
12893 (fatal_perror, fatal, error, fancy_abort): Remove.
12894 (main): Set progname. Call xmalloc_set_program_name and
12895 diagnostic_initialize.
12896 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12897 scan_libraries, resolve_lib_name): Call fatal_error instead of
12898 fatal and fatal_perror.
12899 * collect2.h (error, fatal, fatal_perror): Don't declare.
12900 * tlink.c: Include diagnostic-core.h.
12901 (recompile_files): Call fatal_error instead of fatal_perror.
12902 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12903 pretty-print.o and input.o.
12904 (collect2.o, tlink.o): Update dependencies.
12906 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12908 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12910 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12913 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12914 COMDAT group syntax, both SPARC and x86 variants.
12915 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12916 * configure: Regenerate.
12917 * config/sol2.h (TARGET_SOLARIS): Define.
12918 (PUSHSECTION_FORMAT): Remove.
12919 (SECTION_NAME_FORMAT): Define.
12920 * config/sol2.c: Include hashtab.h.
12921 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12922 expansion, using SECTION_NAME_FORMAT.
12923 (solaris_comdat_htab): New variable.
12924 (struct comdat_entry): Define.
12925 (comdat_hash): New function.
12926 (comdat_eq): New function.
12927 (solaris_elf_asm_comdat_section): New function.
12928 (solaris_define_comdat_signature): New function.
12929 (solaris_code_end): New function.
12930 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12931 (solaris_code_end): Declare.
12932 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12933 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12935 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12936 Remove ATTRIBUTE_UNUSED.
12937 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12938 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12939 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12940 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12941 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12942 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12943 (PUSHSECTION_FORMAT): Remove.
12944 (SECTION_NAME_FORMAT): Redefine.
12946 2011-05-19 Kai Tietz <ktietz@redhat.com>
12948 * tree-cfg.c (verify_gimple_assign_binary): Barf on
12949 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12950 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12952 2011-05-19 Anatoly Sokolov <aesok@post.ru>
12953 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12955 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12957 2011-05-19 Richard Guenther <rguenther@suse.de>
12959 PR middle-end/48985
12960 * tree-object-size.c (addr_object_size): If the pointed-to
12961 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12963 2011-05-19 Richard Guenther <rguenther@suse.de>
12965 * gimple.c (gimple_types_compatible_p_1): Compare names of
12966 the types themselves.
12967 (iterative_hash_gimple_type): And hash them that way.
12968 (gimple_register_type_1): If we register a main variant properly
12969 initialize the leader to ourselves.
12971 2011-05-19 Tom de Vries <tom@codesourcery.com>
12974 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12975 get_loop_invariant_expr_id.
12976 (get_loop_invariant_expr_id): Use get_expr_id.
12977 (parm_decl_cost): New function.
12978 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12979 Improve bound cost estimation. Use different inv_expr_id for elim and
12982 2011-05-19 Tom de Vries <tom@codesourcery.com>
12985 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12986 cost_base.cost == 0.
12988 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
12991 * config/i386/sse.md
12992 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12995 2011-05-18 Jakub Jelinek <jakub@redhat.com>
12997 PR tree-optimization/49039
12998 * tree-vrp.c (extract_range_from_binary_expr): For
12999 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13000 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13002 2011-05-18 Tom de Vries <tom@codesourcery.com>
13005 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13007 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
13009 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13010 (*tls_global_dynamic_64): Ditto.
13011 (*tls_local_dynamic_base_32_gnu): Ditto.
13012 (*tls_local_dynamic_base_64): Ditto.
13013 (tls_initial_exec_64_sun): Ditto.
13015 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
13017 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13018 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13020 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13021 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13022 * config/bfin/bfin.c (bfin_cpus): Add bf592.
13023 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13024 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13025 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13026 * config/bfin/elf.h (LIB_SPEC): Add bf592.
13028 2011-05-18 Joseph Myers <joseph@codesourcery.com>
13030 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13031 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13032 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13033 target_thread_pointer, arm_structure_size_boundary, struct
13034 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13035 struct abi_name, arm_all_abis): Remove.
13036 (arm_option_override) Don't process most enumerated option values here.
13037 Don't process target_fpe_name here. Work with integer not string for
13038 structure size boundary; use separate diagnostics for each case.
13039 * config/arm/arm.h (enum float_abi_type, enum
13040 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13042 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13043 arm_structure_size_boundary): Remove.
13044 * config/arm/arm.opt (mabi=): Use Enum and Init.
13045 (arm_abi_type): New Enum and EnumValue entries.
13046 (mfloat-abi=): Use Enum and Init.
13047 (float_abi_type): New Enum and EnumValue entries.
13048 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13049 (mfp16-format=): Use Enum and Init.
13050 (arm_fp16_format_type): New Enum and EnumValue entries.
13051 (mstructure-size-boundary=): Use UInteger and Init.
13052 (mtp=): Use Enum and Init.
13053 (arm_tp_type): New Enum and EnumValue entries.
13055 2011-05-18 Richard Guenther <rguenther@suse.de>
13057 PR tree-optimization/49018
13058 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13059 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13060 gimple_has_side_effects.
13062 2011-05-18 Richard Guenther <rguenther@suse.de>
13064 * gimple.c (gimple_register_type_1): New function, split out from ...
13065 (gimple_register_type): ... here. Avoid infinite recursion.
13067 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13069 PR tree-optimization/41881
13070 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13071 reduction_chains along with a macro for its access.
13072 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13073 (destroy_loop_vec_info): Free reduction chains.
13074 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13075 (vect_is_slp_reduction): New function.
13076 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13077 (vect_create_epilog_for_reduction): Support SLP reduction chains.
13078 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13079 definition types for reduction chains.
13080 (vect_supported_load_permutation_p): Don't allow permutations for
13082 (vect_analyze_slp_instance): Support reduction chains.
13083 (vect_analyze_slp): Try to build SLP instance from reduction chains.
13084 (vect_get_constant_vectors): Handle reduction chains.
13085 (vect_schedule_slp_instance): Mark the first statement of the
13086 reduction chain as reduction.
13088 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13090 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13091 names for group elements access.
13092 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13093 reduction chains as well. Remove data reference and interleaving
13094 related words from the fields names.
13095 * tree-vect-loop.c (vect_transform_loop): Use new names for group
13097 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13098 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13099 vect_update_interleaving_chain, vect_same_range_drs,
13100 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13101 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13102 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13103 vect_analyze_group_access, vect_analyze_data_ref_access,
13104 vect_create_data_ref_ptr, vect_transform_strided_load,
13105 vect_record_strided_load_vectors): Likewise.
13106 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13107 vect_model_load_cost, vectorizable_store, vectorizable_load,
13108 vect_remove_stores, new_stmt_vec_info): Likewise.
13109 * tree-vect-slp.c (vect_build_slp_tree,
13110 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13112 2011-05-18 Richard Guenther <rguenther@suse.de>
13114 PR middle-end/48989
13115 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13116 operand verification.
13117 (verify_gimple_assign_binary): Likewise.
13118 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13119 to non-1-precision BOOLEAN_TYPEs.
13121 2011-05-18 Tom de Vries <tom@codesourcery.com>
13124 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13126 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13128 PR tree-optimization/49000
13129 * tree-ssa.c (execute_update_addresses_taken): Call
13130 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
13131 be rewritten and decl has been marked for renaming, reset
13134 2011-05-17 Joseph Myers <joseph@codesourcery.com>
13136 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13137 enum_opts_set when testing if attributes have set -mfpmath=.
13139 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
13141 * config/mips/mips.c (mips_handle_option): Remove unused variable.
13143 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13145 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13147 * tree-inline.c (maybe_inline_call_in_expr): Initialize
13148 id.transform_lang_insert_block with NULL.
13150 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13152 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13153 (output_fp_compare): Change args 3 and 4 to bool.
13154 (ix86_expand_call): Change arg 6 to bool.
13155 (ix86_attr_length_immediate_default): Change arg 2 to bool.
13156 (ix86_attr_length_vex_default): Change arg 3 to bool.
13157 * config/i386/i386.md: Update all uses.
13158 * config/i386/i386.c: Ditto.
13159 (ix86_flags_dependent): Change return type to bool.
13161 2011-05-17 Richard Guenther <rguenther@suse.de>
13163 * gimple.c (type_hash_pair_compare): Fix comparison.
13165 2011-05-17 Richard Guenther <rguenther@suse.de>
13167 * gimple.c (iterative_hash_gimple_type): Simplify singleton
13168 case some more, fix final hash value of the non-singleton case.
13170 2011-05-17 Richard Guenther <rguenther@suse.de>
13174 2011-05-16 Richard Guenther <rguenther@suse.de>
13176 * gimple.c (gimple_types_compatible_p_1): Use names of the
13177 type itself, not its main variant.
13178 (iterative_hash_gimple_type): Likewise.
13180 2011-05-17 Richard Guenther <rguenther@suse.de>
13182 * gimple.c (gimple_register_canonical_type): Use the main-variant
13183 leader for computing the canonical type.
13185 2011-05-17 Nick Clifton <nickc@redhat.com>
13187 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
13190 * config/rx/rx.md: Add peephole to remove redundant extensions
13192 (bitset_in_memory): Use rx_restricted_mem_operand.
13193 (bitinvert_in_memory): Likewise.
13194 (bitclr_in_memory): Likewise.
13196 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
13197 Nick Clifton <nickc@redhat.com>
13199 * config/rx/rx.md: Add peepholes to match a register move followed
13200 by a comparison of the moved register. Replace these with an
13201 addition of zero that does both actions in one instruction.
13203 2011-05-17 Jakub Jelinek <jakub@redhat.com>
13206 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
13207 predicate to allow CONST_INT.
13208 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
13210 2011-05-16 Joseph Myers <joseph@codesourcery.com>
13212 * opts-common.c (opt_enum_arg_to_value): New.
13213 * opts.h (opt_enum_arg_to_value): Declare.
13214 * config/i386/i386.opt (fpmath): Remove.
13215 (mfpmath=): Use Enum, Init and Save.
13216 (fpmath_unit): New Enum and EnumValue entries.
13217 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
13218 name for function fpmath state.
13219 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
13220 * config/i386/i386.c: Include diagnostic.h.
13221 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
13222 (ix86_target_string): Take enum fpmath_unit value instead of string.
13223 (ix86_debug_options): Update call to ix86_target_string.
13224 (ix86_option_override_internal): Don't process fpmath strings here.
13225 (x86_function_specific_save, ix86_function_specific_restore):
13226 Don't handle fpmath state specially.
13227 (ix86_function_specific_print): Pass fpmath state to
13228 ix86_target_string instead of printing in this function.
13229 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
13230 Handle enum attributes.
13231 (IX86_ATTR_ENUM, ix86_opt_enum): New.
13232 (ix86_valid_target_attribute_tree): Update option_strings
13233 handling. Handle fpmath as enum option.
13234 (ix86_can_inline_p): Update field names for function fpmath state.
13235 (ix86_expand_builtin): Update call to ix86_target_string.
13236 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
13237 (ix86_fpmath): Remove.
13238 * config/i386/t-i386 (i386.o): Update dependencies.
13240 2011-05-16 Joseph Myers <joseph@codesourcery.com>
13242 PR preprocessor/48677
13243 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
13244 from decoded_options[0], not from itself.
13246 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
13248 * config/i386/constraints.md (z): New constraint.
13249 * config/i386/i386.c (c): New mode attribute.
13250 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
13251 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
13252 constraint for operand 0.
13253 (*call_vzeroupper): Ditto.
13254 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
13255 (*call_rex64_ms_sysv_vzeroupper): Ditto.
13256 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
13257 Use "lzm" constraint for operand 0.
13258 (*call_pop_vzeroupper): Ditto.
13259 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
13260 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
13261 constraint for operand 0.
13262 (*sibcall_vzeroupper): Ditto.
13263 (*sibcall_rex64_ms_sysv): Ditto.
13264 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
13265 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
13266 *sibcall_pop_1. Use "Uz" constraint for operand 0.
13267 (*sibcall_pop_vzeroupper): Ditto.
13268 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
13269 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
13270 mode iterator. Use "<c>zm" constraint for operand 1.
13271 (*call_value_vzeroupper): Ditto.
13272 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
13274 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
13275 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
13276 *call_value_pop_1. Use "lzm" constraint for operand 1.
13277 (*call_value_pop_vzeroupper): Ditto.
13278 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
13279 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
13280 mode iterator. Use "Uz" constraint for operand 1.
13281 (*sibcall_value_vzeroupper): Ditto.
13282 (*sibcall_value_rex64_ms_sysv): Ditto.
13283 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
13284 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
13285 constraint for operand 1.
13286 (*sibcall_value_pop_vzeroupper): Ditto.
13287 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
13288 and "z" constraint for operand 2.
13289 (*tls_global_dynamic_32_gnu): Ditto.
13290 (*tls_local_dynamic_base_32_gnu): Ditto.
13291 (*tls_local_dynamic_base_64): Ditto.
13292 (*tls_local_dynamic_32_once): Ditto.
13293 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
13294 Update all callers.
13295 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
13297 2011-05-16 Richard Guenther <rguenther@suse.de>
13299 * gimple.c (gimple_types_compatible_p_1): Use names of the
13300 type itself, not its main variant.
13301 (iterative_hash_gimple_type): Likewise.
13303 2011-05-16 Richard Guenther <rguenther@suse.de>
13305 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
13306 always visit pointer target and function result and argument types.
13308 2011-05-16 Jason Merrill <jason@redhat.com>
13311 * tree-inline.c (copy_statement_list): Put back recursion.
13313 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
13317 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
13318 * config/avr/avr.md ("*ior<mode>qi.byte0",
13319 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
13321 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
13324 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
13325 register is needed for a function argument.
13327 2011-05-16 Richard Guenther <rguenther@suse.de>
13329 * gimple.c (struct type_hash_pair): New type.
13330 (type_hash_pair_compare): New function.
13331 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
13333 2011-05-16 Revital Eres <revital.eres@linaro.org>
13335 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
13337 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
13339 * config/i386/i386.md (floating point move splitters): Fix
13340 usage of standard_80387_constant_p.
13341 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
13343 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
13345 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
13347 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
13349 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
13350 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
13351 (tree_ssa_lim_finalize): Likewise.
13353 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
13355 * config/i386/constraint.md (Yd, Yx): New register constraints.
13356 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
13357 Yd conditional register constraint.
13358 (*movtf_internal): Use standard_sse_constant_opcode.
13359 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
13360 Yx conditional register constraint.
13361 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
13362 Yd conditional register constraint. Use standard_sse_constant_p to
13363 check for valid SSE constants and call standard_sse_constant_opcode to
13365 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
13366 constants and call standard_sse_constant_opcode to output SSE insn.
13367 * config/i386/i386.c (ix86_option_ovverride_internal): Set
13368 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
13369 optimize_size is set.
13370 (standard_sse_constant_opcode): Output conditional AVX insn templates.
13372 2011-05-14 Tobias Burnus <burnus@net-b.de>
13374 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
13376 2011-05-13 Martin Jambor <mjambor@suse.cz>
13378 * ipa-prop.c (ipa_cst_from_jfunc): New function.
13379 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
13380 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
13381 (evaluate_conditions_for_ipcp_clone): Removed.
13382 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
13383 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
13384 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
13386 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
13388 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
13389 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13390 lieu of MAY_HAVE_DEBUG_STMTS.
13391 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13392 debug statements if !MAY_HAVE_DEBUG_STMTS.
13394 2011-05-13 Martin Thuresson <martint@google.com>
13396 PR gcov-profile/47793
13397 * libgcov.c (gcov_exit): Support relative profile paths.
13398 * doc/invoke.texi (-fprofile-dir): Update for above change.
13400 2011-05-13 Richard Guenther <rguenther@suse.de>
13402 * gimple.c (gimple_canonical_types_compatible_p): Do not use
13403 type-pair caching, do not compare hashes.
13405 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
13407 PR middle-end/48965
13408 * tree-cfg.c (edge_to_cases_cleanup): Return true.
13409 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13411 2011-05-13 Kai Tietz <ktietz@redhat.com>
13413 * gimplify.c (gimplify_expr): Make sure operand is boolified.
13414 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13415 compatible type for TRUTH_NOT_EXPR.
13417 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
13419 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13420 (ix86_hard_regno_mode_ok): Change return value to bool. Use
13421 can_create_pseudo_p ().
13423 2011-05-13 Richard Guenther <rguenther@suse.de>
13426 * gimple.c (iterative_hash_gimple_type): Revert change in
13427 pointer target and function result and argument hashing.
13429 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
13431 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13432 (*movxf_internal_nointeger): Ditto.
13433 (*movdf_internal_rex64): Ditto.
13434 (*movdf_internal): Ditto.
13435 (*movdf_internal_nointeger): Ditto.
13436 (*movsf_internal): Ditto.
13437 (sincos splitters): Use can_create_pseudo ().
13439 2011-05-13 Joseph Myers <joseph@codesourcery.com>
13441 * config/i386/i386-opts.h: New.
13442 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13443 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13444 ix86_section_threshold): Remove.
13445 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
13446 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13448 (ix86_option_override_internal): Don't decode strings for options
13449 other than -march=, -mtune= and -mfpmath=. Don't allow for
13450 __attribute__ uses in remaining diagnostics for options with
13451 string arguments. Don't check for integer arguments being negative.
13452 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13453 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13454 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13455 ix86_branch_cost, ix86_section_threshold): Remove.
13456 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13458 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13460 (masm=): Use Enum and Init.
13461 (asm_dialect): New Enum and EnumValue entries.
13462 (mbranch-cost=): Use UInteger.
13463 (mlarge-data-threshold=): Use UInteger and Init.
13464 (mcmodel=): Use Enum and Init.
13465 (cmodel): New Enum and EnumValue entries.
13466 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13467 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13468 mregparm=): Use UInteger.
13469 (mstringop-strategy=): Use Enum and Init.
13470 (stringop_alg): New Enum and EnumValue entries.
13471 (mtls-dialect=): Use Enum and Init.
13472 (tls_dialect): New Enum and EnumValue entries.
13473 (mabi=): Use Enum and Init.
13474 (calling_abi): New Enum and EnumValue entries.
13475 (mveclibabi=): Use Enum and Init.
13476 (ix86_veclibabi): New Enum and EnumValue entries.
13478 2011-05-13 Nick Clifton <nickc@redhat.com>
13480 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13481 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13483 2011-05-13 Kai Tietz <ktietz@redhat.com>
13485 PR middle-end/48984
13486 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13487 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13488 (gimple_boolify): Check for cast for boolean_type_node instead for
13491 2011-05-13 Richard Guenther <rguenther@suse.de>
13493 PR tree-optimization/48172
13494 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13495 multiplying by number of iterations for equal step.
13496 (vect_create_cond_for_alias_checks): Likewise.
13498 2011-05-13 Andreas Schwab <schwab@redhat.com>
13500 * configure.ac: Use AS_HELP_STRING throughout.
13501 * configure: Regenerate.
13503 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
13505 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13506 (ix86_emit_restore_regs_using_mov): Likewise.
13507 (ix86_emit_restore_sse_regs_using_mov): Likewise.
13509 2011-05-12 Anatoly Sokolov <aesok@post.ru>
13511 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13512 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13513 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13514 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13515 RTX_OK_FOR_OLO10_P): ...here.
13516 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13519 2011-05-12 Kai Tietz <ktietz@redhat.com>
13521 * gimplify.c (gimple_boolify): Re-boolify expression
13522 arguments even if expression type is of kind BOOLEAN_TYPE.
13523 (gimplify_boolean_expr): Removed.
13524 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13525 and XOR. Additional take care that we keep expression's type.
13526 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13527 of TRUTH_AND|OR|XOR_EXPR.
13529 2011-05-12 Jakub Jelinek <jakub@redhat.com>
13531 PR tree-optimization/48975
13532 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13533 on all bbs here and free and clear ifc_bbs at the end.
13535 2011-05-12 Richard Guenther <rguenther@suse.de>
13537 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13538 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
13539 until after simple checks.
13540 (gimple_types_compatible_p): Likewise.
13541 (iterative_hash_gimple_type): Always hash pointer targets
13542 and function return and argument types.
13543 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13544 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
13545 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13546 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
13547 completely in the simple compare section.
13548 (gimple_register_canonical_type): Query the cache again after
13551 2011-05-12 Richard Guenther <rguenther@suse.de>
13553 PR tree-optimization/48172
13554 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13555 the number of iterations from the segment size calculation.
13556 (vect_create_cond_for_alias_checks): Adjust.
13558 2011-05-12 Jakub Jelinek <jakub@redhat.com>
13561 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13562 if validate_subreg fails.
13564 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
13566 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13567 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13570 2011-05-12 DJ Delorie <dj@redhat.com>
13572 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13573 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13574 created builtin into rx_builtins array.
13575 (rx_builtin_decl): New function.
13576 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
13578 2011-05-12 DJ Delorie <dj@redhat.com>
13579 Nick Clifton <nickc@redhat.com>
13581 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13582 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13583 (rx_is_legitimate_address): Add pre-decrement and post-increment
13584 addressing in HImode and QImode. Fix test for out of range
13585 REG+INT addressing.
13586 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13587 (rx_align_for_label): Test label before extracting its usage count.
13588 (rx_adjust_insn_lengths): Fix selection of insn codes.
13589 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13591 2011-05-11 Jason Merrill <jason@redhat.com>
13593 * tree.c (type_hash_canon): Use struct tree_type_non_common.
13595 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
13597 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13598 reindent the subsequent block.
13600 2011-05-11 Satoru Takabayashi <satorux@google.com>
13601 Paul Pluzhnikov <ppluzhnikov@google.com>
13603 * doc/install.texi (Configuration): Document --with-linker-hash-style.
13604 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13605 * config.in: Add LINKER_HASH_STYLE.
13606 * configure.ac: Add --with-linker-hash-style.
13607 * configure: Regenerate.
13609 2011-05-11 Richard Guenther <rguenther@suse.de>
13611 PR middle-end/48964
13612 * gimple.c (iterative_hash_canonical_type): Fix typo.
13614 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
13616 * config/i386/i386.c (legitimize_tls_address)
13617 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13618 expanders directly for TARGET_GNU2_TLS. Determine pic and
13619 __tls_get_addr symbol reference here. Update call to
13620 gen_tls_global_dynamic_{32,64} for added arguments.
13621 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13622 expanders directly for TARGET_GNU2_TLS. Determine
13623 __tls_get_addr symbol reference here. Update call to
13624 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
13625 unique UNSPEC REG_EQUIV to libcall block.
13626 (ix86_tls_get_addr): Declare static.
13627 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13628 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13629 Do not determine pic and __tls_get_addr symbol reference here. Do not
13630 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13631 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13632 (tls_global_dynamic_64): Add operand 2. Do not determine
13633 __tls_get_addr symbol reference here. Do not call
13634 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13635 (tls_local_dynamic_base64): Ditto for operand 1.
13637 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
13639 * function.c (expand_function_start): Initialize stack_check_probe_note
13640 only if the generic stack checking mechanism is used.
13642 2011-05-11 Richard Guenther <rguenther@suse.de>
13644 PR tree-optimization/15256
13645 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13646 (A & B) | C, combine (A op CST1) op CST2.
13647 (tree_ssa_forward_propagate_single_use_vars): Only bother to
13648 visit assigns that have uses.
13650 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
13652 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13653 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13654 (unpack_ts_type_common_value_fields): ...this. Update comment.
13655 (unpack_value_fields): Adjust for renaming.
13656 (lto_input_ts_type_tree_pointers): Split into...
13657 (lto_input_ts_type_common_tree_pointer): ...this and...
13658 (lto_input_ts_type_non_common_tree_pointers): ...this.
13659 (lto_input_tree_pointers): Adjust for above split.
13660 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13661 (pack_ts_type_common_value_fields): ...this. Update comment.
13662 (lto_output_ts_type_tree_pointers): Split into...
13663 (lto_output_ts_type_common_tree_pointers): ...this and...
13664 (lto_output_ts_type_non_common_tree_pointers): ...this.
13665 (lto_output_tree_pointers): Adjust for above split.
13666 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13667 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13668 * stor-layout.c (vector_type_mode): Adjust location of mode field.
13669 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13671 (struct tree_type): Split into...
13672 (struct tree_type_common: ...this and...
13673 (struct tree_type_with_lang_specific): ...this and...
13674 (struct tree_type_non_common): ...this. Adjust accessor macros
13676 (TYPE_VALUES_RAW): Define.
13677 (union tree_node): Update for above changes.
13678 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13679 TS_TYPE_NON_COMMON.
13680 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13681 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13682 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13683 * treestructu.def (TS_TYPE): Remove.
13684 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13687 2011-05-11 Jakub Jelinek <jakub@redhat.com>
13690 * tree-ssa.c (reset_debug_uses): New function.
13691 * tree-flow.h (reset_debug_uses): New prototype.
13692 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13693 * tree-loop-distribution.c (generate_loops_for_partition): Call
13694 reset_debug_uses on the stmts that will be removed. Keep around
13695 all debug stmts, don't count them as bits in partition bitmap.
13696 (generate_builtin): Don't count debug stmts or labels as bits in
13699 2011-05-11 Richard Guenther <rguenther@suse.de>
13701 * gimple.c (gimple_type_hash_1): Merge with ...
13702 (gimple_type_hash): ... this.
13703 (gtc_visit): Remove mode parameter and simplify accordingly.
13704 (gimple_types_compatible_p_1): Likewise.
13705 (gimple_types_compatible_p): Likewise.
13706 (iterative_hash_gimple_type): Likewise.
13708 (gimple_type_eq): Adjust.
13710 2011-05-11 Revital Eres <revital.eres@linaro.org>
13712 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13713 enters the branch create an anti edge in the opposite direction
13714 to prevent the creation of reg-moves.
13715 * modulo-sched.c: Adjust comment to reflect the fact we are
13716 scheduling closing branch.
13717 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13718 (stage_count): New field in struct partial_schedule.
13719 (calculate_stage_count): New function.
13720 (normalize_sched_times): Rename to reset_sched_times and handle
13721 incrementing the sched time of the nodes by a constant value
13722 passed as parameter.
13723 (duplicate_insns_of_cycles): Skip closing branch.
13724 (sms_schedule_by_order): Schedule closing branch.
13725 (ps_insn_find_column): Handle closing branch.
13726 (sms_schedule): Call reset_sched_times and adjust the code to
13727 support scheduling of the closing branch.
13728 (ps_insert_empty_row): Update calls to normalize_sched_times
13729 and rotate_partial_schedule functions.
13731 2011-05-11 Richard Guenther <rguenther@suse.de>
13733 PR middle-end/48953
13734 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13736 2011-05-11 Joseph Myers <joseph@codesourcery.com>
13738 * opts.c (finish_options): Move warning settings from process_options.
13739 * toplev.c (process_options): Move warning settings to finish_options.
13741 2011-05-11 Richard Guenther <rguenther@suse.de>
13743 PR tree-optimization/18041
13744 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13745 (simplify_bitwise_binary): ... this. Handle operand conversions
13746 by applying them to the result instead.
13747 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
13749 2011-05-11 Richard Guenther <rguenther@suse.de>
13751 * gimple.c (gimple_canonical_types_compatible_p): Split out
13752 from gimple_types_compatible_p and friends. Do not recurse
13753 to pointed-to types.
13754 (gimple_canonical_type_eq): Use it.
13755 (iterative_hash_canonical_type): Split out from
13756 iterative_hash_gimple_type and friends. Do not recurse
13757 to pointed-to types.
13758 (gimple_canonical_type_hash): Use it, allocate the hash here.
13760 2011-05-11 Revital Eres <revital.eres@linaro.org>
13762 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13763 recognizing doloop.
13765 2011-05-11 Revital Eres <revital.eres@linaro.org>
13767 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13768 instead of PREV_INSN.
13770 2011-05-11 Revital Eres <revital.eres@linaro.org>
13772 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13773 * loop-doloop.c (doloop_condition_get): Likewise.
13774 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13776 * config/arm/arm.md (*addsi3_compare0): Remove "*".
13778 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
13780 * tree.def (CASE_LABEL_EXPR): Add an operand.
13781 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13783 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13785 * c-decl.c (c_override_global_bindings_to_false): Remove.
13786 (global_bindings_p): Don't check
13787 c_override_global_bindings_to_false.
13788 * c-tree.h (c_override_global_bindings_to_false): Remove.
13789 * c-typeck.c (composite_type): Don't set
13790 c_override_global_bindings_to_false.
13792 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13794 PR target/48857, 48495
13795 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13797 (VSX_MOVE_MODE): Ditto.
13798 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13799 VSX vector types. Add V2DImode.
13800 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13801 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13802 (MODES_TIEABLE_P): Ditto.
13804 * config/rs6000/rs6000.c (rs6000_emit_move): Use
13805 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13807 (init_cumulative_args): Ditto.
13808 (rs6000_function_arg_boundary): Ditto.
13809 (rs6000_function_arg_advance_1): Ditto.
13810 (rs6000_function_arg): Ditto.
13811 (rs6000_function_ok_for_sibcall): Ditto.
13812 (emit_frame_save): Ditto.
13813 (rs6000_function_value): Ditto.
13814 (rs6000_libcall_value): Ditto.
13816 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13818 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13819 i386/darwin-lib.h to $libgcc_tm_file.
13820 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13822 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13824 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13826 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13828 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13829 * config/rs6000/rs6000-tables.opt: New file (generated).
13830 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13831 rs6000/rs6000-tables.opt to extra_options.
13832 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13833 * config/rs6000/rs6000.c (rs6000_select): Remove.
13834 (processor_target_table): Move contents to rs6000-cpus.def.
13835 (darwin_rs6000_override_options): Check
13836 global_options_set.x_rs6000_cpu_index instead of
13837 rs6000_select[1].string.
13838 (rs6000_option_override_internal): Likewise.
13839 (rs6000_handle_option): Don't assert that global structures are in
13840 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
13841 (rs6000_default_cpu): New variable.
13842 (rs6000_file_start): Set it instead of local default_cpu. Check
13843 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13844 global_options_set.x_rs6000_tune_index instead of rs6000_select.
13845 (rs6000_darwin_file_start): Check rs6000_default_cpu and
13846 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13847 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13848 rs6000_select): Remove.
13849 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13851 (mcpu=, mtune=): Use Var, Init, Enum and Save.
13852 * config/rs6000/t-rs6000
13853 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13854 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13855 global_options_set.x_rs6000_cpu_index instead of
13856 rs6000_select[1].string.
13857 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13858 global_options_set.x_rs6000_cpu_index instead of
13859 rs6000_select[1].string.
13861 2011-05-10 Joseph Myers <joseph@codesourcery.com>
13863 * config.gcc (libgcc_tm_file): Define instead of including files
13864 from ../../libgcc/config/ in tm_file.
13865 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13866 * configure: Regenerate.
13867 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13868 libgcc_tm.h, cs-libgcc_tm.h): New.
13869 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13870 (clean): Remove libgcc_tm.h.
13871 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13872 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13873 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13875 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
13878 * config/avr/avr.c (avr_ret_register): Return unsigned int
13880 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13881 it to avr_libcall_value.
13882 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13884 (avr_expand_binop_builtin): Ditto.
13885 (avr_expand_unop_builtin): Ditto.
13887 2011-05-10 DJ Delorie <dj@redhat.com>
13889 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13890 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13891 * config/rx/rx.c (rx_align_for_label): Add label and
13892 uses_threshold parameters. Do not align when the label is not
13894 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13896 2011-05-10 Richard Guenther <rguenther@suse.de>
13898 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13899 a series of conversions and apply foldings similar to what
13901 (tree_ssa_forward_propagate_single_use_vars): Call it.
13903 2011-05-10 Jakub Jelinek <jakub@redhat.com>
13905 PR tree-optimization/48611
13906 PR tree-optimization/48794
13907 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13908 referenced from RESX or EH_DISPATCH arguments.
13911 * dfp.c (decimal_to_decnumber): Handle conversion from
13912 dconst{1,2,m1,half}.
13914 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13916 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13917 for !flag_prefer_avx128.
13918 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13920 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
13922 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13923 (fold_ternary_loc): Use expr_location_or.
13925 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
13928 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13929 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13930 Pmode and mem_mode is not VOIDmode.
13932 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
13934 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13935 TYPE_QUAL_RESTRICT): Convert to enum.
13937 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13939 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13940 (const_pow2_1_to_8_operand): Ditto.
13941 (const_pow2_1_to_128_operand): Ditto.
13942 (const_pow2_1_to_32768_operand): Ditto.
13943 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13944 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
13945 in insn constraint to check integer value of operand 3.
13946 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13948 (PINSR_MODE): New mode iterator.
13949 (sse2p4_1): New mode attribute.
13950 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13951 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13952 iterator. Use const_int_operand instead of
13953 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
13954 exact_log2 in insn constraint to check integer value of operand 3.
13956 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13958 * config/i386/sse.md (blendbits): Remove mode attribute.
13959 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13960 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13961 Check integer value of operand 3 in insn constraint.
13963 2011-05-09 Richard Guenther <rguenther@suse.de>
13965 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13967 (lto_symtab_merge): Likewise. Do not register types here.
13968 (lto_symtab_merge_decls_2): Likewise.
13969 (lto_symtab_merge_decls_1): Likewise.
13970 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13971 * gimple.c (enum gtc_mode): Declare.
13972 (gimple_types_compatible_p): Make static.
13974 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13976 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13977 temporary register to match Pmode.
13979 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13981 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13982 and *vec_concatv4si_1_avx.
13984 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
13986 PR rtl-optimization/48927
13987 * ira-conflicts.c (commutative_constraint_p): Use
13988 recog_data.alternative_enabled_p to disable alternatives where
13989 "enabled" attribute is false.
13990 (get_dup_num): Ditto.
13991 * ira-lives.c (single_reg_class): Ditto.
13992 (ira_implicitly_set_insn_hard_regs): Ditto.
13994 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
13996 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13997 (dataflow_set_preserve_mem_locs): Likewise.
13999 2011-05-09 Philipp Thomas <pth@suse.de>
14001 * config/mep/mep.c (mep_validate_vliw): Syntax description
14002 should not be translated.
14004 2011-05-09 Joseph Myers <joseph@codesourcery.com>
14006 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14007 * config/mips/mips-tables.opt: New file (generated).
14008 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14009 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14010 MIPS_ARCH_OPTION_NATIVE): Define.
14011 * config/mips/mips.c (mips_cpu_info_table): Move contents to
14013 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14014 mips_parse_cpu): Remove.
14015 (mips_cpu_info_from_opt, mips_default_arch): New.
14016 (mips_handle_option): Don't assert that global structures are in
14017 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14018 (mips_option_override): Use new variables and functions to set
14019 state of these options. Use strcmp to check for individual CPU names.
14020 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14022 * config/mips/mips.opt (march=): Use ToLower and Enum.
14023 (mips): Use ToLower, Enum and Var.
14024 (mtune=): Use ToLower and Enum.
14025 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14027 2011-05-08 Jan Hubicka <jh@suse.cz>
14029 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14030 Arrange type pairs to be UID ordered.
14031 (gimple_lookup_type_leader): Make inline.
14033 2011-05-09 Nick Clifton <nickc@redhat.com>
14036 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14040 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14043 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
14045 * combine.c (simplify_comparison): Abstract out parts into...
14046 (simplify_compare_const): ... new function.
14047 (try_combine): Generalize parallel arithmetic/compare combining
14048 to call simplify_compare_const() and CANONICALIZE_COMPARE().
14050 2011-05-08 Jan Hubicka <jh@suse.cz>
14052 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14053 (cgraph_create_virtual_clone): Call hooks once virtual clone
14055 * cgraph.h (cgraph_clone_node): Update prototype.
14056 * ipa-cp.c (ipcp_estimate_growth): Use
14057 estimate_ipcp_clone_size_and_time.
14058 * ipa-inline-transform.c (clone_inlined_nodes): Update.
14059 * lto-cgraph.c (input_node): Update.
14060 * ipa-inline.c (recursive_inlining): Update.
14061 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14062 (evaluate_conditions_for_known_args): Break out from ...
14063 (evaluate_conditions_for_edge): ... here.
14064 (evaluate_conditions_for_ipcp_clone): New function.
14065 (inline_node_duplication_hook): Update clone summary based
14067 (estimate_callee_size_and_time): Rename to ...
14068 (estimate_node_size_and_time): take NODE instead of EDGE;
14069 take POSSIBLE_TRUTHS as argument.
14070 (estimate_callee_size_and_time): Update.
14071 (estimate_ipcp_clone_size_and_time): New function.
14072 (do_estimate_edge_time): Update.
14074 2011-05-08 Richard Guenther <rguenther@suse.de>
14076 PR middle-end/48908
14077 PR middle-end/48905
14078 * expmed.c (expand_shift_1): Compute adjusted constant shift
14081 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14083 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14085 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14087 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14089 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
14091 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14093 2011-05-07 Jan Hubicka <jh@suse.cz>
14095 * ipa-inline-transform.c (inline_call): Account when program size
14097 * ipa-inline.c (relative_time_benefit): New function.
14098 (edge_badness): Reorganize to be power 2 based; fix thinko when
14099 computing badness for negative growth; update comments to match
14100 reality; better dumps.
14102 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14104 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14105 type to bool and adjust comment.
14106 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14107 (fold_mathfn_compare): Remove calls to global_bindings_p.
14108 (fold_inf_compare): Likewise.
14109 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14110 * c-tree.h (global_bindings_p): Adjust prototype.
14111 * c-decl.c (global_bindings_p): Return bool and simplify.
14113 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
14115 PR tree-optimization/48837
14116 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14117 when accumulator transformation is performed.
14119 2011-05-06 Jan Hubicka <jh@suse.cz>
14121 * i386.h (ix86_tune_indices): Add
14122 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14123 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14124 * i386.c (initial_ix86_tune_features): Add
14125 X86_SOFTARE_PREFETCHING_BENEFICIAL.
14126 (software_prefetching_beneficial_p): Remove predicate.
14127 (ix86_option_override_internal): Use new macro.
14129 2011-05-06 Jan Hubicka <jh@suse.cz>
14131 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14133 2011-05-06 Jan Hubicka <jh@suse.cz>
14135 * cgraph.c (cgraph_add_thunk): Create real function node instead
14136 of alias node; finalize it and mark needed/reachale; arrange visibility
14137 to be right and add it into the corresponding same comdat group list.
14138 (dump_cgraph_node): Dump thunks.
14139 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14140 cgraph_function_with_gimple_body_p,
14141 cgraph_first_function_with_gimple_body,
14142 cgraph_next_function_with_gimple_body): New functions.
14143 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14145 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14146 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14147 * cgraphunit.c (cgraph_finalize_function): Only look into possible
14148 devirtualization when optimizing.
14149 (verify_cgraph_node): Verify thunks.
14150 (cgraph_analyze_function): Analyze thunks.
14151 (cgraph_mark_functions_to_output): Output thunks only in combination
14152 with function they are assigned to.
14153 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14154 alias into normal node.
14155 (assemble_thunks): New functoin.
14156 (cgraph_expand_function): Use it.
14157 * lto-cgraph.c (lto_output_node): Stream thunks.
14158 (input_overwrite_node): Stream in thunks.
14159 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14160 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14161 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14162 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14163 (inline_analyze_function): Do not care about thunk jump functions.
14164 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14165 * ipa-prop.c (ipa_prop_write_jump_functions): Use
14166 cgraph_function_with_gimple_body_p.
14167 * passes.c (do_per_function_toporder): Use
14168 cgraph_function_with_gimple_body_p.
14169 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14170 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14171 (function_called_by_processed_nodes_p): Likewise.
14173 2011-05-06 Joseph Myers <joseph@codesourcery.com>
14175 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14176 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14178 (mabi=): Replace with separate entries for mabi=altivec,
14179 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14180 mabi=ieeelongdouble and mabi=ibmlongdouble.
14181 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14182 check for -mabi=spe without SPE ABI support here.
14183 (rs6000_handle_option): Replace OPT_mabi_ handling with
14184 OPT_mabi_altivec and OPT_mabi_spe handling.
14186 2011-05-06 Cary Coutant <ccoutant@google.com>
14188 * dwarf2out.c (contains_subprogram_definition): New function.
14189 (should_move_die_to_comdat): Call it.
14191 2011-05-06 Jeff Law <law@redhat.com>
14193 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
14194 remove_ctrl_stmt_and_useless_edges.
14195 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
14196 (fixup_template_block, thread_single_edge): Likewise.
14197 (mark_threaded_blocks): Use THREAD_TARGET.
14199 2011-05-06 Alan Modra <amodra@gmail.com>
14202 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14203 const0_rtx as the arg to the dummy __tls_get_addr libcall.
14205 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
14207 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
14208 constraint modifier to "r".
14210 2011-05-06 Joseph Myers <joseph@codesourcery.com>
14212 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
14213 fall through for OPT_mcmodel_.
14215 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14217 * config/s390/s390.c (s390_asm_trampoline_template): Comment
14219 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
14221 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14224 * config/arm/arm.opt (marm): Document it.
14225 (mthumb): Reject negative variant.
14227 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
14230 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14231 Fix typo in "ccvt" variable name.
14233 2011-05-06 Tristan Gingold <gingold@adacore.com>
14236 * config/vms/vms-ar.c (main): Remove cwd variable.
14238 2011-05-06 Jakub Jelinek <jakub@redhat.com>
14241 * var-tracking.c (prepare_call_arguments): Move else before #endif.
14243 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
14245 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
14246 * gimplify.c (gimplify_switch_expr): Likewise.
14247 * omp-low.c (expand_omp_sections): Likewise.
14248 * tree-eh.c (lower_try_finally_switch): Likewise.
14249 (lower_eh_dispatch): Likewise.
14250 * tree.h (build_case_label): Declare.
14251 * tree.c (build_case_label): Define.
14253 2011-05-05 Jason Merrill <jason@redhat.com>
14256 * tree-inline.c (copy_tree_r): Use copy_statement_list.
14257 (copy_statement_list): Don't recurse.
14258 * stor-layout.c (copy_self_referential_tree_r): Don't allow
14261 2011-05-05 Joseph Myers <joseph@codesourcery.com>
14263 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
14264 through from -mfpu= handling.
14265 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
14267 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
14269 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
14272 2011-05-05 Steve Ellcey <sje@cup.hp.com>
14274 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
14276 (hppa[12]*-*-hpux11*): Ditto.
14277 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
14278 * config/ia64/hpux-unix2003.h: New.
14279 * config/pa/pa-hpux1131.opt: New.
14280 * config/pa/pa-hpux1131.h: New.
14281 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
14282 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
14283 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
14285 2011-05-05 Jakub Jelinek <jakub@redhat.com>
14288 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
14289 instead of mode as 3rd argument to recursive call.
14290 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
14291 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
14293 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
14294 don't give up if mode is Pmode and mem_mode is not VOIDmode.
14295 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
14296 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
14298 2011-05-05 Julian Brown <julian@codesourcery.com>
14300 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
14301 parenthesis in D-register case.
14303 2011-05-05 Joseph Myers <joseph@codesourcery.com>
14305 * opt-functions.awk (var_type_struct): Handle Enum options.
14306 * optc-gen.awk: Don't check range of variables of character type.
14307 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
14308 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
14309 rs6000_sdata_name, rs6000_explicit_options): Remove.
14310 (rs6000_option_override_internal): Check for -malign-power here.
14311 Use global_options_set instead of rs6000_explicit_options.
14312 (rs6000_parse_fpu_option): Remove.
14313 (rs6000_handle_option): Access variables via opts and opts_set
14314 pointers. Use error_at and warning_at. Add fall-through
14315 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
14316 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
14317 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
14318 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
14319 here. Don't use rs6000_parse_fpu_option.
14320 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
14321 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
14322 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
14323 (mrecip=): Use Var.
14324 (mspe): Use Var and Save.
14325 (mtraceback=): Use Enum and Var.
14326 (rs6000_traceback_type): New Enum and EnumValue entries.
14327 (mfloat-gprs=): Use Enum, Var and Save.
14328 (rs6000_float_gprs): New Enum and EnumValue entries.
14329 (mlong-double-): use Var and Save.
14330 (msched-costly-dep=, minsert-sched-nops=): Use Var.
14331 (malign-): Use Enum and Var.
14332 (rs6000_alignment_flags): New Enum and EnumValue entries.
14334 (fpu_type_t): New Enum and EnumValue entries.
14335 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14336 global_options_set instead of rs6000_explicit_options.
14337 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14338 global_options_set instead of rs6000_explicit_options.
14339 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14340 global_options_set instead of rs6000_explicit_options.
14341 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
14342 global_options_set instead of rs6000_explicit_options.
14343 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
14344 global_options_set instead of rs6000_explicit_options.
14345 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14346 global_options_set instead of rs6000_explicit_options.
14347 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
14349 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14350 global_options_set instead of rs6000_explicit_options.
14351 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
14352 (rs6000_cmodel): New Enum and EnumValue entries.
14353 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
14354 global_options_set instead of rs6000_explicit_options.
14355 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
14356 (mtls-size=): Use Enum and Var.
14357 (rs6000_tls_size): New Enum and EnumValue entries.
14359 2011-05-05 Michael Matz <matz@suse.de>
14361 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
14362 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
14363 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
14364 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
14365 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
14366 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
14367 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
14368 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
14369 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
14370 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
14371 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
14372 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
14373 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
14374 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
14375 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
14376 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
14378 2011-05-05 Richard Guenther <rguenther@suse.de>
14380 * expmed.c (expand_variable_shift): Rename to ...
14381 (expand_shift_1): ... this. Take an expanded shift amount.
14382 For rotates recurse directly not building trees for the shift amount.
14383 (expand_variable_shift): Wrap around expand_shift_1.
14384 (expand_shift): Adjust.
14386 2011-05-05 Jakub Jelinek <jakub@redhat.com>
14388 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
14390 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
14392 * tree.h (get_pending_sizes): Remove prototype.
14393 (put_pending_size): Likewise.
14394 (put_pending_sizes): Likewise.
14395 * stor-layout.c (pending_sizes): Delete.
14396 (get_pending_sizes): Likewise.
14397 (put_pending_size): Likewise.
14398 (put_pending_sizes): Likewise.
14399 (variable_size): Do not call put_pending_size and tidy up.
14400 * function.h (struct function): Remove dont_save_pending_sizes_p.
14401 * lto-streamer-in.c (input_function): Do not stream it.
14402 * lto-streamer-out.c (output_function): Likewise.
14403 * tree-inline.c (initialize_cfun): Do not copy it.
14404 * c-decl.c (store_parm_decls): Do not set it.
14405 * omp-low.c (create_task_copyfn): Likewise.
14406 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14408 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
14410 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14412 (*movdf_internal): Ditto.
14413 (*movdf_internal_nointeger): Ditto.
14414 (*movsf_internal): Ditto.
14416 2011-05-05 Joseph Myers <joseph@codesourcery.com>
14418 * c-decl.c (finish_decl): Don't call get_pending_sizes.
14419 (grokparm): Add parameter expr. Pass it to grokdeclarator.
14420 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
14421 (c_variable_size): Remove.
14422 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
14423 call put_pending_sizes.
14424 (get_parm_info): Add parameter expr. Use it to set
14425 arg_info->pending_sizes.
14426 (store_parm_decls): Use arg_info->pending_sizes instead or calling
14428 * c-parser.c (c_parser_parms_declarator): Update call to
14429 c_parser_parms_list_declarator.
14430 (c_parser_parms_list_declarator): Take parameter expr. Update
14431 call to push_parm_decl. Update recursive call. Don't call
14432 get_pending_sizes. Update calls to get_parm_info.
14433 (c_parser_objc_method_definition): Update calls to
14434 c_parser_objc_method_decl and objc_start_method_definition.
14435 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14436 (c_parser_objc_method_decl): Add parameter expr. Update call to
14438 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14439 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14440 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14442 2011-05-05 Michael Hope <michael.hope@linaro.org>
14445 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14446 __ARM_EABI__ hosts.
14448 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14450 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14451 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14452 (spu_output_mi_thunk): New function.
14454 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14456 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14457 targetm.asm_out.print_operand.
14458 * config/sol2.c: Include target.h.
14460 2011-05-04 Jan Hubicka <jh@suse.cz>
14462 * ipa-inline.c (reset_edge_caches): New function.
14463 (update_caller_keys): Add check_inlinablity_for; do not
14464 reset edge caches; remove now unnecesary loop.
14465 (update_callee_keys): Add comments; reset node_growth_cache of callee.
14466 (update_all_callee_keys): Likewise.
14467 (inline_small_functions): Sanity check cache; update code
14470 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
14472 PR rtl-optimization/47612
14473 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14474 as the last insn of the sequence to be moved.
14476 2011-05-04 Tobias Burnus <burnus@net-b.de>
14479 * doc/invoke.texi (Ofast): Document that it
14480 enables Fortran's -fno-protect-parens.
14482 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
14484 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14486 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
14488 * stor-layout.c (variable_size): Do not issue errors.
14490 2011-05-04 Richard Guenther <rguenther@suse.de>
14492 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14493 for array-ref indices.
14494 (tree_coverage_counter_addr): Likewise.
14495 (build_fn_info_type): Use size_int for index types.
14496 (build_gcov_info): Likewise.
14498 2011-05-04 Richard Guenther <rguenther@suse.de>
14500 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14502 * c-typeck.c (really_start_incremental_init): Use bitsize_int
14503 for constructor indices.
14504 (push_init_level): Likewise.
14506 2011-05-04 Richard Guenther <rguenther@suse.de>
14508 * explow.c (promote_mode): Move variable declarations before code.
14510 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
14512 * tree.h (build_function_type_array): Declare.
14513 (build_varargs_function_type_array): Declare.
14514 (build_function_type_vec, build_varargs_function_type_vec): Define.
14515 * tree.c (build_function_type_array_1): New function.
14516 (build_function_type_array): New function.
14517 (build_varargs_function_type_array): New function.
14519 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
14521 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14522 before setting STMT_VINFO_TYPE.
14524 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14526 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14527 instead of spu_pass_by_reference.
14529 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14531 * calls.c (emit_library_call_value_1): Invoke
14532 promote_function_mode hook on libcall arguments.
14533 * explow.c (promote_function_mode, promote_mode): Handle TYPE
14534 argument being NULL.
14535 * targhooks.c (default_promote_function_mode): Lisewise.
14536 * config/s390/s390.c (s390_promote_function_mode): Likewise.
14537 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14539 * doc/tm.texi: Document that TYPE argument might be NULL.
14541 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14543 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14545 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14548 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14550 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14552 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14553 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14555 * mips-tfile.c: ... here.
14556 Don't include coretypes.h, tm.h, filenames.h.
14557 (saber_stop): Remove definition and all calls.
14558 [__SABER__]: Remove.
14559 (__LINE__): Remove default.
14560 (Size_t, Ptrdiff_t): Remove definitions.
14561 Replace by size_t, ptrdiff_t.
14562 [!MIPS_DEBUGGING_INFO]: Remove.
14563 (SHASH_SIZE, THASH_SIZE): Remove defaults.
14564 (progname): Add const.
14566 Replace all uses by static.
14567 (ALIGN_SYMTABLE_OFFSET): Remove default.
14568 * mips-tdump.c: Don't include coretypes.h, tm.h.
14569 Remove !MIPS_IS_STAB guard.
14570 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14571 $(TM_H), filenames.h dependencies.
14572 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14574 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14577 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14578 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14580 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14583 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14584 account and save/restore RETS.
14585 (PROFILE_BEFORE_PROLOGUE): Define.
14586 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
14587 the push insn to use predecrement.
14589 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
14592 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14594 2011-05-04 Nick Clifton <nickc@redhat.com>
14596 * config/mn10300/mn10300.c: Include cfgloop.h.
14598 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
14599 Lcc or a FLcc insn into the instruction stream.
14600 (mn10300_block_contains_call): New function. Returns true if the
14601 given basic block contains a CALL insn.
14602 (mn10300_loop_contains_call_insn): New function. Returns true if
14603 the given loop contains a CALL insn.
14604 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
14605 to use the SETLB and Lcc or FLcc insns.
14606 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14607 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14608 * config/mn10300/mn10300.opt (msetlb): New option. Used to
14609 disable the SETLB optimization.
14610 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14611 __SETLB__ or __NO_SETLB__.
14612 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14613 (movsf_internal): Handle MDR register.
14614 (cmpsi): Make visible.
14615 (setlb): New pattern.
14616 (Lcc): New pattern.
14617 (FLcc): New pattern.
14619 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
14622 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14623 for reg<->xmm moves.
14624 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14625 (vec_concatv2di_rex64_sse): Ditto.
14626 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14627 (*vec_extractv2di_1_rex64): Ditto.
14630 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
14632 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14634 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14636 2011-05-04 Richard Guenther <rguenther@suse.de>
14638 * tree.h (int_const_binop): Remove notrunc argument.
14639 * fold-const.c (int_const_binop): Remove notrunc argument. Always
14640 create integer constants that are properly truncated.
14641 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14642 (const_binop): Remove zero notrunc argument to int_const_binop.
14643 (size_binop_loc): Likewise.
14644 (fold_div_compare): Likewise.
14645 (maybe_canonicalize_comparison_1): Likewise.
14646 (fold_comparison): Likewise.
14647 (fold_binary_loc): Likewise.
14648 (multiple_of_p): Likewise.
14649 * expr.c (store_constructor): Likewise.
14650 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14651 (maybe_fold_stmt_addition): Likewise.
14652 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14653 * stor-layout.c (layout_type): Likewise.
14654 * tree-data-ref.c (tree_fold_divides_p): Likewise.
14655 * tree-sra.c (build_ref_for_offset): Likewise.
14656 (build_user_friendly_ref_for_offset): Likewise.
14657 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14658 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14659 * tree-ssa-loop-niter.c (inverse): Likewise.
14660 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14661 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14662 * tree-switch-conversion.c (check_range): Likewise.
14663 (build_constructors): Likewise.
14664 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14665 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14666 (extract_range_from_assert): Likewise.
14667 (vrp_int_const_binop): Likewise.
14668 (extract_range_from_binary_expr): Likewise.
14669 (extract_range_from_unary_expr): Likewise.
14670 (check_array_ref): Likewise.
14671 (find_case_label_range): Likewise.
14672 (simplify_div_or_mod_using_ranges): Likewise.
14673 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14674 comparing case labels for merging.
14676 2011-05-03 Mark Wielaard <mjw@redhat.com>
14678 * dwarf2out.c (debug_str_hash_forced): Removed.
14679 (gen_label_for_indirect_string): Removed.
14680 (get_debug_string_label): Removed.
14681 (AT_string_form): Generate label directly.
14682 (output_indirect_string): Test indirect_string_node for
14683 DW_FORM_strp instead of checking label and refcount.
14684 (prune_indirect_string): Removed.
14685 (prune_unused_types): Don't check debug_str_hash_forced or
14686 call prune_indirect_string.
14688 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
14691 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14693 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
14697 * combine.c (try_combine): Skip debug insns at m_split tests.
14699 2011-04-26 Mark Wielaard <mjw@redhat.com>
14702 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14703 when info_section_emitted.
14705 2011-05-03 Joseph Myers <joseph@codesourcery.com>
14707 * config/mips/mips-opts.h: New.
14708 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14710 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14711 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14712 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
14714 * config/mips/mips.h (enum mips_code_readable_setting): Move to
14716 (mips_abi, mips_code_readable): Don't declare.
14717 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14718 (mabi=): Use Enum and Var.
14719 (mips_abi): New Enum and EnumValue entries.
14720 (mcode-readable=): Use Enum and Var.
14721 (mips_code_readable_setting): New Enum and EnumValue entries.
14722 (mr10k-cache-barrier=): Use Enum and Var.
14723 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14725 2011-05-03 Jan Hubicka <jh@suse.cz>
14727 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14728 replace hash by pointer map.
14729 (cgraph_node_set_element_def, cgraph_node_set_element,
14730 const_cgraph_node_set_element, varpool_node_set_element_def,
14731 varpool_node_set_element, const_varpool_node_set_element): Remove.
14732 (free_cgraph_node_set, free_varpool_node_set): New function.
14733 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14734 * tree-emutls.c: Free varpool node set.
14735 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14736 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14737 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14738 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14739 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14740 Move here from ipa.c; implement using pointer_map
14741 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14742 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14743 debug_cgraph_node_set, varpool_node_set_new,
14744 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14745 dump_varpool_node_set, debug_varpool_node_set):
14746 Move to ipa-uitls.c.
14747 * passes.c (ipa_write_summaries): Update.
14749 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14751 From Mike Frysinger:
14752 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14753 bf542/bf544/bf547/bf548/bf549.
14755 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
14757 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14759 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14761 From Bernd Schmidt:
14762 * config/bfin/bfin.md (MOVCC): New mode_macro.
14763 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14764 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
14765 comments from generated assembly.
14767 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14770 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14771 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14772 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14773 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14774 * config/bfin/lib1funcs.asm (___muldi3): New function.
14776 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14778 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14779 build_function_type_list instead of build_function_type.
14780 Rearrange initialization of `args' to do so.
14782 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14784 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14785 instead of build_function_type.
14787 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14789 * config/rs6000/rs6000.c (spe_init_builtins): Call
14790 build_function_type_list instead of build_function_type.
14791 (paired_init_builtins, altivec_init_builtins): Likewise.
14792 (builtin_function_type): Likewise.
14794 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14796 * config/sh/sh.c (sh_media_init_builtins): Call
14797 build_function_type_list instead of build_function_type.
14799 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14801 * config/sparc/sparc.c (sparc_file_end): Call
14802 build_function_type_list instead of build_function_type.
14804 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14806 * config/alpha/alpha.c (alpha_init_builtins): Call
14807 build_function_type_list instead of build_function_type.
14809 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14811 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
14812 build_function_type_list instead of build_function_type.
14814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14816 * config/iq2000/i2000.c (iq2000_init_builtins): Call
14817 build_function_type_list instead of build_function_type.
14818 Delete `endlink' variable.
14820 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14822 * config/avr/avr.c (avr_init_builtins): Call
14823 build_function_type_list instead of build_function_type.
14825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14827 * config/picochip/picochip.c (picochip_init_builtins): Call
14828 build_function_type_list instead of build_function_type.
14829 Delete `endlink' variable.
14831 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
14833 * config/bfin/bfin.c (bfin_init_builtins): Call
14834 build_function_type_list instead of build_function_type.
14836 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14839 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14840 that's not CONST_INT. Seemingly redundant check is due to PR39768.
14842 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14845 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14846 libbffastfp overrides libgcc when -mfast-fp.
14848 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14850 Originally from Bernd Schmidt
14851 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14852 * config/bfin/bfin.c (override_options): Test it and error if
14855 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
14857 Originally From Bernd Schmidt
14858 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14861 2011-05-03 Jeff Law <law@redhat.com>
14863 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14864 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14865 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14866 than accessing AUX field directly. Free the AUX field before
14868 (thread_block, thread_through_loop_header): Likewise.
14869 (thread_single_edge, mark_threaded_blocks): Likewise.
14870 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
14871 (register_jump_thread): Do not attempt to thread to a NULL edge.
14873 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
14875 * function.c (init_function_start): Call decide_function_section.
14876 * varasm.c (decide_function_section): New function.
14877 (assemble_start_function): When not using
14878 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14879 or first_function_block_is_cold.
14880 * rtl.h (decide_function_section): Declare.
14882 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
14883 Jakub Jelinek <jakub@redhat.com>
14886 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14887 only succeed if req_mode is the same as set_mode.
14889 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
14891 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14892 * genemit.c (gen_exp): Handle RETURN.
14893 * emit-rtl.c (verify_rtx_sharing): Likewise.
14894 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14895 * rtl.c (copy_rtx): RETURN is shared.
14896 * rtl.h (enum global_rtl_index): Add GR_RETURN.
14898 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14899 * config/s390/s390.c (s390_emit_epilogue): Likewise.
14900 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14901 * config/cris/cris.c (cris_expand_return): Likewise.
14902 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14903 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14904 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14905 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14906 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14908 * config/v850/v850.c (expand_epilogue): Likewise.
14909 * config/bfin/bfin.c (bfin_expand_call): Likewise.
14910 * config/arm/arm.md (epilogue): Likewise.
14911 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14912 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14913 variable to ret_reg.
14915 2011-05-03 Richard Guenther <rguenther@suse.de>
14918 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14919 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14920 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14922 2011-05-03 Richard Guenther <rguenther@suse.de>
14924 * c-decl.c (grokdeclarator): Instead of looking at
14925 TREE_OVERFLOW check if the constant fits in the index type.
14927 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
14929 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14930 (vec_store_lanes<mode><mode>): Likewise.
14932 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
14934 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14935 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14936 convert_optab_index values.
14937 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14938 * genopinit.c (optabs): Initialize the new optabs.
14939 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14940 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14941 (expand_STORE_LANES): New functions.
14942 * tree.h (build_array_type_nelts): Declare.
14943 * tree.c (build_array_type_nelts): New function.
14944 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14945 (vect_model_load_cost): Likewise.
14946 (vect_store_lanes_supported, vect_load_lanes_supported)
14947 (vect_record_strided_load_vectors): Declare.
14948 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14949 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14950 (vect_transform_strided_load): Split out statement recording into...
14951 (vect_record_strided_load_vectors): ...this new function.
14952 * tree-vect-stmts.c (create_vector_array, read_vector_array)
14953 (write_vector_array, create_array_ref): New functions.
14954 (vect_model_store_cost): Add store_lanes_p argument.
14955 (vect_model_load_cost): Add load_lanes_p argument.
14956 (vectorizable_store): Try to use store-lanes functions for
14957 interleaved stores.
14958 (vectorizable_load): Likewise load-lanes and loads.
14959 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14960 to vect_model_store_cost.
14961 (vect_build_slp_tree): Likewise vect_model_load_cost.
14963 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
14965 * hooks.h (hook_bool_mode_uhwi_false): Declare.
14966 * hooks.c (hook_bool_mode_uhwi_false): New function.
14967 * target.def (array_mode_supported_p): New hook.
14968 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14969 * doc/tm.texi: Regenerate.
14970 * stor-layout.c (mode_for_array): New function.
14971 (layout_type): Use it.
14972 * config/arm/arm.c (arm_array_mode_supported_p): New function.
14973 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14975 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
14978 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14979 for -fstack-check if the size to allocate is negative.
14981 2011-05-02 Lawrence Crowl <crowl@google.com>
14983 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14984 (timevar_cond_start): New for starting a timer only when it is not
14986 (timevar_cond_stop): New for stopping a timer when it was not already
14989 * timevar.c (timevar_stop): Enable start/stop timers to start again.
14990 (timevar_cond_start): New as above.
14991 (timevar_cond_stop): New as above.
14993 * timevar.def: Add start/stop timers for compiler phases,
14994 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14995 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14996 and TV_PHASE_FINALIZE.
14997 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14998 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14999 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15000 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15001 Make unused TV_OVERLOAD into a start/stop timer.
15003 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15004 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15005 to indicate that they are start/stop timers.
15007 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15008 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15009 Move initialization to do_compile.
15010 (do_compile): Add initialization from above.
15011 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15013 * c-decl.c (c_write_global_declarations): Add start/stop of
15014 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15016 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15017 or TV_PARSE_INLINE, as appropriate.
15018 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15019 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15021 2011-05-02 Jason Merrill <jason@redhat.com>
15024 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15026 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
15029 * c-decl.c (finish_decl): Only create a composite if the types are
15032 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15034 * config/fr30/fr30-protos.h (Mmode): Don't define.
15035 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
15036 definition where used.
15037 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15038 define. Expand definitions where used.
15039 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15040 Expand definitions where used.
15041 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15042 rx_function_arg, rx_function_arg_advance,
15043 rx_function_arg_boundary): Expand definitions of those macros.
15044 * config/v850/v850-protos.h (Mmode): Don't define. Expand
15045 definition where used.
15047 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15049 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15051 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15052 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
15053 with *movv2sf_internal_rex64_avx.
15054 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15055 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15056 Use %v prefix in insn mnemonic to handle TARGET_AVX.
15057 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
15058 "vex" in "prefix" attribute calculation.
15059 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
15061 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
15064 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15065 inputs match the output.
15067 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
15070 * config/m68k/m68k.c (m68k_expand_prologue): Set
15071 current_function_static_stack_size.
15073 2011-05-02 Jan Hubicka <jh@suse.cz>
15075 * lto-streamer.c (lto_streamer_cache_insert_1,
15076 lto_streamer_cache_lookup, lto_streamer_cache_create,
15077 lto_streamer_cache_delete): Use pointer map instead of hashtable.
15078 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15080 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15082 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15083 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15084 config/m68k/t-opts: New files.
15085 * config/m68k/m68k-tables.opt: New file (generated).
15086 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15087 extra_options and m68k/t-opts to tmake_file.
15088 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15089 (all_isas): Initialize using m68k-isas.def.
15090 (all_microarchs): Initialize using m68k-microarchs.def.
15091 (m68k_find_selection): Remove.
15092 (m68k_handle_option): Don't assert that global structures are in
15093 use. Use error_at. Access variables via opts pointer. Don't
15094 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
15095 directly for -m68020-40 and -m68020-60.
15096 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15097 m68k_tune_entry here.
15098 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15100 (m68k_library_id_string): Remove declaration.
15101 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15102 (m68k_library_id_string): New Variable.
15103 (march=, mcpu=, mtune=): Use Enum and Var.
15105 2011-05-02 Richard Guenther <rguenther@suse.de>
15107 * varasm.c (output_constructor_regular_field): Compute zero-based
15108 index with double-ints. Make sure to ICE instead of producing
15110 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15111 in asserts. Properly use a signed type.
15113 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15115 * config/i386/sse.md (V): New mode iterator.
15116 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
15118 (V_256): Rename from AVX256MODE.
15119 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
15120 condition to all users.
15122 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
15123 condition to all users.
15124 (VF_128): Make V4SF mode unconditional.
15125 (VF_256): Rename from AVX256MODEF2P.
15126 (VI4F_128): Rename from SSEMODE4S.
15127 (VI8F_128): Rename from SSEMODE2D.
15128 (VI4F_256): Rename from AVX256MODE8P.
15129 (VI8F_256): Rename from AVX256MODE4P.
15130 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15131 (ssescalarmodesuffix): Remove SF and DF modes.
15132 (SSEMODE124): Remove.
15133 (SSEMODE1248): Ditto.
15134 (SSEMODEF2P): Ditto.
15135 (AVXMODEF2P): Ditto.
15136 (AVXMODEFDP): Ditto.
15137 (AVXMODEFSP): Ditto.
15138 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15140 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
15142 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15143 xop_pcmov_<mode>256. Use V mode iterator.
15145 Adjust RTX patterns globally for renamed mode attributes.
15147 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15149 * haifa-sched.c (sched_emit_insn): Emit insn before first
15150 non-scheduled insn. Inform back-end about new insn. Add
15151 new insn to scheduled_insns list.
15153 2011-05-02 Richard Guenther <rguenther@suse.de>
15155 PR tree-optimization/48822
15156 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15157 (process_scc): Indicate which iteration we start.
15159 2011-05-02 Jan Hubicka <jh@suse.cz>
15161 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15162 (lto_section_overrun): New.
15163 * lto-section-out.c (append_block): Rename to ...
15164 (lto_append_block): ... this one; export.
15165 (lto_output_1_stream): Move lto lto-streamer.h
15166 (lto_output_data_stream): Update.
15167 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15168 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15171 2011-05-02 Richard Guenther <rguenther@suse.de>
15173 * tree.c (tree_code_counts): New global array.
15174 (record_node_allocation_statistics): Count individual tree codes.
15175 (dump_tree_statistics): Dump individual code stats.
15177 2011-05-01 Jan Hubicka <jh@suse.cz>
15179 * ipa-inline.c (caller_growth_limits): Fix thinko when
15180 looking for largest stack frame.
15181 * ipa-inline.h (dump_inline_summary): Declare.
15182 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
15184 (dump_inline_summary): Export.
15185 (debug_inline_summary): Declare as DEBUG_FUNCTION.
15187 2011-05-01 Anatoly Sokolov <aesok@post.ru>
15189 * reginfo.c (memory_move_cost): Change rclass argument type form
15190 'enum reg_class' to reg_class_t.
15191 * reload.h (memory_move_cost): Update prototype.
15192 * postreload.c reload_cse_simplify_set): Change type dclass var to
15194 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
15196 (ira_allocate_and_set_costs): Change aclass argument type form
15197 'enum reg_class' to reg_class_t.
15198 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
15199 Change aclass argument type to reg_class_t.
15200 (update_conflict_hard_reg_costs): Change type aclass and pref vars
15202 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
15203 memory_move_cost call.
15205 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
15206 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
15207 Change type tmp var to reg_class_t.
15209 2011-04-30 Jan Hubicka <jh@suse.cz>
15211 * ipa-inline.c (can_inline_edge_p): Disregard limits when
15212 inlining into function with flatten attribute.
15213 (want_inline_small_function_p): Be more realistic about inlining
15214 cold calls where callee size grows.
15216 2011-04-30 Jan Hubicka <jh@suse.cz>
15218 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
15221 2011-04-30 Anatoly Sokolov <aesok@post.ru>
15223 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
15224 PRINT_OPERAND_PUNCT_VALID_P): Remove.
15225 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
15226 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
15227 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15228 (print_operand): Rename to...
15229 (sparc_print_operand): ...this. Make static. Adjust
15230 sparc_print_operand function call.
15231 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
15234 2011-04-30 Jan Hubicka <jh@suse.cz>
15236 PR middle-end/48752
15237 * ipa-inline.c (early_inliner): Disable when doing late
15238 addition of function.
15240 2011-04-30 Jakub Jelinek <jakub@redhat.com>
15242 * dwarf2out.c (get_address_mode): New inline.
15243 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
15244 if not dwarf_strict emit
15245 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
15246 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
15247 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
15248 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
15249 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
15250 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
15251 mem_loc_descriptor callers.
15252 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15253 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
15254 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
15255 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
15256 (base_types): New variable.
15257 (get_base_type_offset, calc_base_type_die_sizes,
15258 base_type_for_mode, mark_base_types, base_type_cmp,
15259 move_marked_base_types): New functions.
15260 (calc_die_sizes): Assert that die_offset is 0 or equal to
15262 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
15263 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
15264 callers. If not dwarf_strict, call mem_loc_descriptor even for
15265 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
15266 (gen_subprogram_die): Don't give up on call site parameters
15267 with non-integral or large integral modes. Adjust
15268 mem_loc_descriptor callers.
15269 (prune_unused_types): Call prune_unused_types_mark on base_types
15271 (resolve_addr): Call mark_base_types.
15272 (dwarf2out_finish): Call move_marked_base_types.
15274 PR tree-optimization/48809
15275 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
15277 (gen_inbound_check): Don't compute index_expr - range_min in utype
15278 again, instead reuse SSA_NAME initialized in build_arrays.
15279 Remove two useless gsi_for_stmt calls.
15281 2011-04-29 Jeff Law <law@redhat.com>
15283 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
15285 2011-04-29 Martin Jambor <mjambor@suse.cz>
15287 * cgraph.h (cgraph_postorder): Remove declaration.
15288 * ipa-utils.h (ipa_free_postorder_info): Declare.
15289 (ipa_reverse_postorder): Likewise.
15290 * cgraphunit.c: Include ipa-utils.h.
15291 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
15292 * ipa-inline.c: Include ipa-utils.h.
15293 (ipa_inline): Update call to ipa_reverse_postorder.
15294 * ipa-pure-const.c (propagate_pure_const): Update call to
15295 ipa_reduced_postorder and ipa_print_order. Call
15296 ipa_free_postorder_info to clean up.
15297 (propagate_nothrow): Likewise.
15298 * ipa-reference.c (propagate): Removed a useless call to
15299 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
15300 and ipa_print_order. Call ipa_free_postorder_info to clean up.
15301 * ipa.c: Include ipa-utils.h.
15302 (ipa_profile): Update call to ipa_reverse_postorder.
15303 (cgraph_postorder): Moved to...
15304 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
15305 (ipa_utils_print_order): Renamed to ipa_print_order.
15306 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
15308 (ipa_free_postorder_info): New function.
15309 * passes.c: Include ipa-utils.h.
15310 (do_per_function_toporder): Update call to ipa_reverse_postorder.
15311 (ipa_write_summaries): Likewise.
15312 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
15313 (cgraphunit.o): Likewise.
15315 (ipa-inline.o): Likewise.
15317 2011-04-29 Jan Hubicka <jh@suse.cz>
15319 * gcc.dg/tree-ssa/inline-10.c: New testcase.
15320 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
15321 * ipa-inline.h (clause_t): Turn into unsigned int.
15322 * ipa-inline-analysis.c (add_clause): Do more simplification.
15323 (and_predicates): Shortcut more cases.
15324 (predicates_equal_p): Move forward; check that clauses are properly
15326 (or_predicates): Shortcut more cases.
15327 (edge_execution_predicate): Rewrite as...
15328 (set_cond_stmt_execution_predicate): ... this function; handle
15329 __builtin_constant_p.
15330 (set_switch_stmt_execution_predicate): New .
15331 (compute_bb_predicates): New.
15332 (will_be_nonconstant_predicate): Update TODO.
15333 (estimate_function_body_sizes): Use compute_bb_predicates
15334 and free them later, always try to estimate if stmt is constant.
15335 (estimate_time_after_inlining, estimate_size_after_inlining):
15336 Gracefully handle optimized out edges.
15337 (read_predicate): Fix off by one error.
15339 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
15341 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
15343 2011-04-27 Xinliang David Li <davidxl@google.com>
15345 * tree-profile.c (init_ic_make_global_vars): Set
15346 tls attribute on ic vars.
15347 * coverage.c (coverage_end_function): Initialize
15348 function_list with zero.
15350 2011-04-29 Richard Guenther <rguenther@suse.de>
15352 * builtins.c (fold_builtin_classify_type): Use integer_type_node
15353 for the type of the result.
15354 (fold_builtin_isascii): Likewise.
15355 (fold_builtin_toascii): Use integer_type_node where appropriate.
15356 (fold_builtin_logb): Likewise.
15357 (fold_builtin_frexp): Likewise.
15358 (fold_builtin_strstr): Likewise.
15359 (fold_builtin_strpbrk): Likewise.
15360 (fold_builtin_fputs): Likewise.
15361 (fold_builtin_sprintf): Likewise.
15362 (fold_builtin_snprintf): Likewise.
15363 (fold_builtin_printf): Likewise.
15364 (do_mpfr_remquo): Use a proper type for the assigned constant.
15365 (do_mpfr_lgamma_r): Likewise.
15366 * dwarf2out.c (resolve_one_addr): Use size_int.
15367 * except.c (init_eh): Likewise.
15368 (assign_filter_values): Use integer_type_node for filter values.
15369 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
15371 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
15372 for EH region numbers.
15373 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
15374 for the shift amount.
15376 2011-04-29 Richard Guenther <rguenther@suse.de>
15378 * expr.h (expand_shift): Rename to ...
15379 (expand_variable_shift): ... this.
15380 (expand_shift): Take a constant shift amount.
15381 * expmed.c (expand_shift): Rename to ...
15382 (expand_variable_shift): ... this.
15383 (expand_shift): New wrapper around expand_variable_shift.
15384 * expr.c (convert_move, emit_group_load_1, emit_group_store,
15385 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
15386 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
15387 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
15388 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
15389 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15390 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15391 emit_store_flag_1, emit_store_flag): Likewise.
15392 * builtins.c (expand_builtin_signbit): Likewise.
15393 * calls.c (load_register_parameters): Likewise.
15394 * function.c (assign_parm_setup_block): Likewise.
15395 * lower-subreg.c (resolve_shift_zext): Likewise.
15396 * optabs.c (widen_bswap, expand_abs_nojump,
15397 expand_one_cmpl_abs_nojump, expand_float): Likewise.
15398 * spu/spu.c (spu_expand_extv): Likewise.
15399 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15401 2011-04-29 Richard Guenther <rguenther@suse.de>
15403 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15404 for the remapped region number.
15405 * predict.c (build_predict_expr): Use integer_type_node for the
15407 * fold-const.c (fold_binary_loc): Use integer_type_node for
15408 the shift amount. Use a proper type for the PLUS_EXPR operand.
15410 2011-04-29 Michael Matz <matz@suse.de>
15412 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15413 other trees that just builtins.
15414 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15416 2011-04-29 Richard Guenther <rguenther@suse.de>
15418 * tree-nested.c (get_trampoline_type): Use size_int.
15419 (get_nl_goto_field): Likewise.
15420 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15422 (lower_eh_constructs_2): Likewise.
15423 (lower_resx): Likewise.
15424 (lower_eh_dispatch): Likewise.
15425 * tree-mudflap.c (mf_build_string): Use size_int.
15426 (mudflap_register_call): Use integer_type_node for the flag.
15427 (mudflap_enqueue_constant): Use size_int.
15428 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15429 instead of rebuilding it.
15431 2011-04-29 Richard Guenther <rguenther@suse.de>
15433 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15434 Handle OBJ_TYPE_REF.
15435 (find_func_aliases_for_call): Use it more consistently.
15437 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
15439 * haifa-sched.c (last_nondebug_scheduled_insn): New.
15440 (rank_for_schedule): Use it.
15441 (schedule_block): Set it.
15443 2011-04-28 David Li <davidxl@google.com>
15445 * tree.c (crc32_string): Use crc32_byte.
15446 (crc32_byte): New function.
15447 * tree.h (crc32_byte): New function.
15448 * gcov.c (read_graph_file): Handle new cfg_cksum.
15449 (read_count_file): Ditto.
15450 * profile.c (instrument_values): Ditto.
15451 (get_exec_counts): Ditto.
15452 (read_profile_edge_counts): Ditto.
15453 (compute_branch_probabilities): Ditto.
15454 (compute_value_histograms): Ditto.
15455 (branch_prob): Ditto.
15456 (end_branch_prob): Ditto.
15457 * coverage.c (read_counts_file): Ditto.
15458 (get_coverage_counts): Ditto.
15459 (tree_coverage_counter_addr): Ditto.
15460 (coverage_checksum_string): Ditto.
15461 (coverage_begin_output): Ditto.
15462 (coverage_end_function): Ditto.
15463 (build_fn_info_type): Ditto.
15464 (build_fn_info_value): Ditto.
15465 * libgcov.c (gcov_exit): Ditto.
15466 * gcov-dump.c (tag_function): Ditto.
15467 (compute_checksum): Remove.
15469 2011-04-29 Alan Modra <amodra@gmail.com>
15471 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15472 unspec plus offset. Tidy macho code.
15474 2011-04-29 Martin Jambor <mjambor@suse.cz>
15476 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15477 node instead of a decl. Update all callers.
15478 * cgraph.h: Update declaration.
15480 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
15482 PR tree-optimization/48765
15483 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15484 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15485 to indicate if loop aware SLP is being used. Scan the statements
15486 and update the vectorization factor according to the type of
15487 vectorization before statement analysis.
15488 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15489 pass it to vect_analyze_loop_operations.
15490 (vectorizable_reduction): Set number of copies to 1 in case of pure
15492 * tree-vect-stmts.c (vectorizable_conversion,
15493 vectorizable_assignment, vectorizable_shift,
15494 vectorizable_operation, vectorizable_type_demotion,
15495 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15497 (vectorizable_condition): Move the check that it is not SLP
15498 vectorization before the number of copies check.
15499 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15500 to vectorize the loop using SLP.
15502 2011-04-28 Jakub Jelinek <jakub@redhat.com>
15504 PR middle-end/48597
15505 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15508 2011-04-28 Joseph Myers <joseph@codesourcery.com>
15510 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15511 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15512 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15513 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15514 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15516 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15517 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15518 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15519 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15520 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15521 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15523 * config/i386/linux.h (REG_NAME): Don't define.
15524 * config/i386/linux64.h (REG_NAME): Don't define.
15525 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15526 Undefine before defining.
15528 2011-04-28 Jan Hubicka <jh@suse.cz>
15530 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15531 nonconstant_names array.
15532 (estimate_function_body_sizes): Build nonconstant_names array; handle
15533 BUILT_IN_CONSTANT_P.
15535 2011-04-28 Richard Guenther <rguenther@suse.de>
15539 2011-04-28 Richard Guenther <rguenther@suse.de>
15541 * tree-ssa-structalias.c (solve_constraints): Build succ graph
15542 as late as possible.
15544 2011-04-28 Richard Guenther <rguenther@suse.de>
15546 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15547 (debug_constraint): Do it here.
15548 (dump_constraints): And here.
15549 (rewrite_constraints): And here.
15550 (dump_constraint_edge): Remove.
15551 (dump_constraint_graph): Rewrite to produce DOT output.
15552 (solve_constraints): Build succ graph as late as possible.
15553 Dump constraint graphs before and after solving.
15555 2011-04-28 Richard Guenther <rguenther@suse.de>
15557 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15558 New function split out from ...
15559 (find_func_aliases): ... here. Call it.
15560 (find_func_aliases_for_call): Likewise.
15562 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
15564 * internal-fn.h (internal_fn_name_array): Declare.
15565 (internal_fn_flags_array): Likewise.
15567 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
15569 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
15570 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15572 (ssemodefsuffix): Remove.
15573 (ssevecmodesuffix): New mode attribute.
15574 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15575 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15576 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15577 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15578 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15579 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15580 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15581 ssemodesuffix mode attribute.
15582 (float splitters): Use ssevecmodesuffix mode attribute.
15583 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15584 (sseinsmode): Rename from avxvecmode.
15585 (avxsizesuffix): Rename from avxmodesuffix.
15586 (sseintvecmode): Rename from avxpermvecmode.
15587 (ssedoublevecmode): Rename from ssedoublesizemode.
15588 (ssehalfvecmode): Rename from avxhalfvecmode.
15589 (ssescalarmode): Rename from avxscalarmode.
15590 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15591 templates for ssemodesuffix mode attribute.
15592 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15595 Adjust RTX patterns globally for renamed mode attributes.
15597 2011-04-27 Jan Hubcika <jh@suse.cz>
15599 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15600 * ipa-inline-analysis.c: Include alloc-pool.h.
15601 (edge_predicate_pool): New.
15602 (trye_predicate_p): New function
15603 (false_predicate_p): New function.
15604 (add_clause): Sanity check that false clauses are "optimized";
15605 never add clauses to predicate that is already known to be false.
15606 (and_predicate): Use flase_predicate_p.
15607 (evaulate_predicate): Rename to ...
15608 (evaluate_predicate): ... this one; update all callers; assert
15609 that false is not listed among possible truths.
15610 (dump_predicate): Use true_predicate_p.
15611 (account_size_time): Use false_predicate_p.
15612 (evaulate_conditions_for_edge): Rename to ...
15613 (evaluate_conditions_for_edge) ... this one.
15614 (edge_set_predicate): New function.
15615 (inline_edge_duplication_hook): Duplicate edge predicates.
15616 (inline_edge_removal_hook): Free edge predicates.
15617 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15618 (dump_inline_summary): Update.
15619 (estimate_function_body_sizes): Set edge predicates.
15620 (estimate_calls_size_and_time): Handle predicates.
15621 (estimate_callee_size_and_time): Update.
15622 (remap_predicate): Add toplev_predicate; update comment.
15623 (remap_edge_predicates): New function.
15624 (inline_merge_summary): Compute toplev predicate; update.
15625 (read_predicate): New function.
15626 (read_inline_edge_summary): Use it.
15627 (inline_read_section): Likewise.
15628 (write_predicate): New function.
15629 (write_inline_edge_summary): Use it.
15630 (inline_write_summary): Likewise.
15631 (inline_free_summary): Free alloc pool and edge summary vec.
15633 2011-04-27 Richard Guenther <rguenther@suse.de>
15635 * tree-ssa-structalias.c (changed_count): Remove.
15636 (changed): Use a bitmap.
15637 (unify_nodes): Adjust.
15638 (do_sd_constraint): Likewise.
15639 (do_ds_constraint): Likewise.
15640 (do_complex_constraint): Likewise.
15641 (solve_graph): Likewise.
15643 2011-04-27 Jan Hubicka <jh@suse.cz>
15645 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15647 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
15649 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15650 (avx_vperm2f128_*_operand): Ditto.
15651 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15652 Use avx_vpermilp_parallel in insn condition.
15653 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15654 Use avx_vperm2f128_parallel in insn condition.
15656 2011-04-27 Richard Guenther <rguenther@suse.de>
15658 * Makefile.in (tree-ssa-structalias.o): Remove
15659 gt-tree-ssa-structalias.h dependency.
15660 (GTFILES): Remove tree-ssa-structalias.c.
15661 * tree.c (allocate_decl_uid): New function.
15662 (make_node_stat): Use it.
15663 (copy_node_stat): Likewise.
15664 * tree.h (allocate_decl_uid): Declare.
15665 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15666 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15667 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15668 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15669 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15670 (struct heapvar_map): Likewise.
15671 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15672 heapvar_insert): Likewise.
15673 (make_heapvar_for): Rename to ...
15674 (make_heapvar): ... this. Simplify.
15675 (fake_var_decl_obstack): New global var.
15676 (build_fake_var_decl): New function.
15677 (make_constraint_from_heapvar): Adjust.
15678 (handle_lhs_call): Likewise.
15679 (create_function_info_for): Likewise.
15680 (intra_create_variable_infos): Likewise.
15681 (init_alias_vars): Allocate fake_var_decl_obstack.
15682 (init_alias_heapvars, delete_alias_heapvars): Remove.
15683 (compute_points_to_sets): Do not call init_alias_heapvars.
15684 (ipa_pta_execute): Likewise.
15685 (delete_points_to_sets): Free fake_var_decl_obstack.
15687 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15689 * config/spu/divmovti4.c (union qword_UTItype): New data type.
15690 (si_from_UTItype, si_to_UTItype): New functions.
15691 (__udivmodti4): Use them to implement type-punning.
15692 * config/spu/multi3.c (union qword_TItype): New data type.
15693 (si_from_TItype, si_to_TItype): New functions.
15694 (__multi3): Use them to implement type-punning.
15696 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15698 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15700 2011-04-27 Jan Hubicka <jh@suse.cz>
15702 * ipa-prop.c (function_insertion_hook_holder): New holder.
15703 (ipa_add_new_function): New function.
15704 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15705 Register/deregister holder.
15707 2011-04-27 Richard Guenther <rguenther@suse.de>
15709 PR tree-optimization/48772
15710 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15712 2011-04-27 Richard Guenther <rguenther@suse.de>
15714 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15715 TARGET_MEM_REF handling.
15717 2011-04-27 Nick Clifton <nickc@redhat.com>
15719 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15720 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15721 (REG_CLASS_NAMES): Likewise.
15722 (REG_CLASS_CONTENTS): Likewise.
15723 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
15724 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
15725 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
15726 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
15727 (EVEN_REGS): New macro. Alias for QUAD_REGS.
15728 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15729 duplicate register classes.
15730 (frv_class_likely_spilled_p): Likewise.
15731 (frv_register_move_cost): Likewise.
15733 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15734 end of the regno_reg_class array.
15736 2011-04-27 Jakub Jelinek <jakub@redhat.com>
15739 * c-typeck.c (build_binary_op): Don't wrap arguments if
15740 int_operands is true.
15742 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
15745 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15746 targetm.calls.must_pass_in_stack for void type.
15748 2011-04-26 Jan Hubicka <jh@suse.cz>
15750 * cgraphbuild.c (build_cgraph_edges): Update call
15751 of cgraph_create_edge and cgraph_create_indirect_edge.
15752 * cgraph.c (cgraph_create_edge_including_clones,
15753 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15754 cgraph_update_edges_for_call_stmt_node): Do not take nest
15755 argument; do not initialize call_stmt_size/time.
15756 (dump_cgraph_node): Do not dump nest.
15757 (cgraph_clone_edge): Do not take loop_nest argument;
15758 do not propagate it; do not clone call_stmt_size/time.
15759 (cgraph_clone_node): Likewise.
15760 (cgraph_create_virtual_clone): Update.
15761 * cgraph.h (struct cgraph_edge): Remove
15762 call_stmt_size/call_stmt_time/loop_nest.
15763 (cgraph_create_edge, cgraph_create_indirect_edge,
15764 cgraph_create_edge_including_clones, cgraph_clone_node): Update
15766 * tree-emutls.c (gen_emutls_addr): Update.
15767 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15768 loop_nest; handle indirect calls, too.
15769 (clone_inlined_nodes): Do not care about updating inline summaries.
15770 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15771 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15772 stream call_stmt_size/call_stmt_time/loop_nest.
15773 * ipa-inline.c (edge_badness): Update.
15774 (ipa_inline): dump summaries after inlining.
15775 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15777 (inline_edge_summary): New function.
15778 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15779 (inline_edge_removal_hook): Handle edge summaries.
15780 (inline_edge_duplication_hook): New hook.
15781 (inline_summary_alloc): Alloc hooks.
15782 (initialize_growth_caches): Do not register removal hooks.
15783 (free_growth_caches); Do not free removal hook.
15784 (dump_inline_edge_summary): New function.
15785 (dump_inline_summary): Use it.
15786 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15787 (inline_update_callee_summaries): New function.
15788 (inline_merge_summary): Use it.
15789 (do_estimate_edge_time, do_estimate_edge_growth): Update.
15790 (read_inline_edge_summary): New function.
15791 (inline_read_section): Use it.
15792 (write_inline_edge_summary): New function.
15793 (inline_write_summary): Use it.
15794 (inline_free_summary): Free edge new holders.
15795 * tree-inline.c (copy_bb): Update.
15797 2011-04-26 Jason Merrill <jason@redhat.com>
15799 * tree-eh.c (lower_try_finally_switch): Create the label along with
15800 the CASE_LABEL_EXPR.
15802 2011-04-26 David S. Miller <davem@davemloft.net>
15803 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15805 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15806 * configure: Regenerate.
15808 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15811 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15813 (VEC_reduc): New code iterator and splitters for vector reduction.
15814 (VEC_reduc_name): Ditto.
15815 (VEC_reduc_rtx): Ditto.
15816 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15817 (reduc_<VEC_reduc_name>_v4sf): Ditto.
15819 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15820 support for extracting SF on VSX.
15822 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15823 generating xscvspdp.
15824 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15825 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15826 double add, minimum, maximum vector reduction.
15827 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15828 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15829 optimize double vector reduction.
15830 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15832 2011-04-26 Joseph Myers <joseph@codesourcery.com>
15834 * config/fr30/fr30.h (inhibit_libc): Don't define.
15835 * config/m32r/m32r-protos.h: Correct comment.
15836 * config/v850/v850.h (GHS_default_section_names,
15837 GHS_current_section_names): Use tree, not union tree_node *.
15839 2011-04-26 Xinliang David Li <davidxl@google.com>
15841 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15842 * c-family/c-opts.c (c_common_handle_option): Set
15843 warn_maybe_uninitialized.
15844 * opts.c (common_handle_option): Ditto.
15845 * common.opt: New option.
15846 * tree-ssa.c (warn_uninit): Add one more parameter.
15847 (warn_uninitialized_var): Pass warning code.
15848 * tree-flow.h: Interface change.
15850 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15852 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15853 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15854 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15856 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15858 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15859 * config/mips/mips.opt (mmips-tfile): Remove.
15861 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15862 mips-tdump reference to ...
15863 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
15864 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15865 reference by Tru64 UNIX.
15867 2011-04-26 Jakub Jelinek <jakub@redhat.com>
15870 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15871 is error_mark_node, set value to NULL.
15873 PR tree-optimization/48734
15874 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15875 if return value from maybe_fold_*_comparsions isn't something
15876 the code is prepared to handle.
15878 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
15880 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15882 (ext_QIreg_nomode_operands): Remove.
15883 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15887 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
15889 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15891 2011-04-26 Richard Guenther <rguenther@suse.de>
15893 * c-typeck.c (build_unary_op): Do not expand array-refs via
15894 pointer arithmetic. Only adjust qualifiers for function types.
15896 2011-04-26 Richard Guenther <rguenther@suse.de>
15898 PR middle-end/48694
15899 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15900 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15901 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
15902 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15904 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
15906 * doc/extend.texi: Document __underlying_type.
15908 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
15910 * config/rs6000/titan.md (automata_option "progress"): Remove.
15912 2011-04-25 Jeff Law <law@redhat.com>
15914 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15916 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15918 * system.h (ENUM_BITFIELD): Remove.
15920 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
15921 Eric Botcazou <ebotcazou@adacore.com>
15923 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15924 for STORE_FLAG_VALUE==-1 case.
15926 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
15929 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15930 LEGITIMATE_PIC_OPERAND_P.
15932 2011-04-24 Jan Hubicka <jh@suse.cz>
15934 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15936 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15937 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15938 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15939 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15940 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15941 Sanity check predicate length.
15942 (remap_predicate): Likewise; sanity check jump functions.
15943 (inline_read_section, inline_write_summary): Sanity check
15946 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
15949 * doc/extend.texi (Type Traits): Document __is_standard_layout,
15950 __is_literal_type, and __is_trivial; update throughout about
15951 possibly cv-qualified void types.
15953 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
15955 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15956 testsuite and make it version agnostic.
15958 2011-04-22 Jan Hubicka <jh@suse.cz>
15960 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15962 2011-04-23 Jakub Jelinek <jakub@redhat.com>
15965 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15966 to VOID_TYPE even around MODIFY_EXPR.
15968 2011-04-22 Mike Stump <mikestump@comcast.net>
15970 * gensupport.c (read_md_rtx): Fix typo in comment.
15971 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15974 2011-04-22 Jan Hubicka <jh@suse.cz>
15976 * gengtype.c (open_base_files): Add ipa-inline.h include.
15977 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15978 ipa-prop.c; update all uses.
15979 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15980 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15981 merge summary of inlined function into former caller.
15982 * ipa-inline.c (max_benefit): Remove.
15983 (edge_badness): Compensate for removal of benefits.
15984 (update_caller_keys): Use
15985 reset_node_growth_cache/reset_edge_growth_cache.
15986 (update_callee_keys): Likewise.
15987 (update_all_callee_keys): Likewise.
15988 (inline_small_functions): Do not collect max_benefit; do not reset
15989 estimated_growth; call free_growth_caches and initialize_growth_caches.
15990 * ipa-inline.h (struct condition, type clause_t, struct predicate,
15991 struct size_time_entry): New structures.
15992 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15993 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15994 and estimated_growth.
15995 (edge_growth_cache_entry): New structure.
15996 (node_growth_cache, edge_growth_cache): New global vars.
15997 (estimate_growth): Turn into inline.
15998 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15999 initialize_growth_caches, free_growth_caches): Declare.
16000 (estimate_edge_growth): Rewrite.
16001 (estimate_edge_time): Implement as inline cache lookup.
16002 (reset_node_growth_cache, reset_edge_growth_cache): New inline
16004 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16005 (NUM_CONDITIONS): New constant.
16006 (predicate_conditions): New enum.
16007 (IS_NOT_CONSTANT): New constant.
16008 (edge_removal_hook_holder): New var.
16009 (node_growth_cache, edge_growth_cache): New global vars.
16010 (true_predicate, single_cond_predicate, false_predicate,
16011 not_inlined_predicate, add_condition, add_clause, and_predicates,
16012 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16013 dump_clause, dump_predicate, account_size_time,
16014 evaulate_conditions_for_edge): New functions.
16015 (inline_summary_alloc): Move to heap.
16016 (inline_node_removal_hook): Clear condition and entry vectors.
16017 (inline_edge_removal_hook): New function.
16018 (initialize_growth_caches, free_growth_caches): New function.
16019 (dump_inline_summary): Update.
16020 (edge_execution_predicate): New function.
16021 (will_be_nonconstant_predicate): New function.
16022 (estimate_function_body_sizes): Compute BB and constantness predicates.
16023 (compute_inline_parameters): Do not clear estimated_growth.
16024 (estimate_edge_size_and_time): New function.
16025 (estimate_calls_size_and_time): New function.
16026 (estimate_callee_size_and_time): New function.
16027 (remap_predicate): New function.
16028 (inline_merge_summary): New function.
16029 (do_estimate_edge_time): New function based on...
16030 (estimate_edge_time): ... this one.
16031 (do_estimate_edge_growth): New function.
16032 (do_estimate_growth): New function based on....
16033 (estimate_growth): ... this one.
16034 (inline_analyze_function): Analyze after deciding on jump functions.
16035 (inline_read_section): New function.
16036 (inline_read_summary): Use it.
16037 (inline_write_summary): Write all the new data.
16038 * ipa-prop.c (ipa_get_param_decl_index): Export.
16039 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16040 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16042 (ipa_get_lattice): Move here from ipa-cp.c
16043 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16044 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16045 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16046 cgraph_edge_inlinable_p): Remove.
16047 * cgraphunit.c: Include ipainline.h
16048 (cgraph_process_new_functions): Update call of
16049 compute_inline_parameters.
16051 2011-04-22 Richard Guenther <rguenther@suse.de>
16053 * tree.c (build_int_cst): Properly create canonicalized integer
16055 (build_int_cst_type): Remove scary comments.
16057 2011-04-22 Xinliang David Li <davidxl@google.com>
16059 * toplev.c (process_options): Enable -Werror=coverage-mismatch
16060 by default when -Wno-error is not specified.
16061 * opts-global.c (decode_options): Remove call to
16062 control_warning_options.
16064 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16066 PR tree-optimization/48717
16067 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16068 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16070 2011-04-22 Joseph Myers <joseph@codesourcery.com>
16072 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
16073 definition where used.
16075 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16078 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16079 TREE_STATIC variables declared inside of some OpenMP construct.
16081 2011-04-22 Martin Jambor <mjambor@suse.cz>
16083 PR middle-end/48585
16084 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16086 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
16089 * c-typeck.c (pop_init_level): Do not warn about initializing
16092 2011-04-22 Alan Modra <amodra@gmail.com>
16094 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16095 when returning call_cookie.
16096 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16097 pointers, to functions with no more vector args than the current
16098 function, and some non-local calls for ABI_V4.
16099 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16100 sibcall_nonlocal_aix64): Combine to ..
16101 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
16102 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16103 (sibcall_value_nonlocal_aix<mode>): ..likewise.
16104 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16105 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
16107 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16108 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16109 sibcall_value_symbolic_64): Delete.
16111 2011-04-21 Xinliang David Li <davidxl@google.com>
16113 * cgraph.h: Remove pid.
16114 * cgraph.c: Remove pid.
16115 * value-prof.c (init_node_map): New function.
16116 (del_node_map): New function.
16117 (find_func_by_funcdef_no): New function.
16118 (gimple_ic_transform): Call new function.
16119 * cgraphunit.c (cgraph_finalize_function): Remove pid.
16120 * function.c (get_last_funcdef_no): New function.
16121 * function.h (get_last_funcdef_no): New function.
16122 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16123 to libgcov function.
16124 (tree-profiling): Call node map init and delete function.
16126 2011-04-21 Ian Lance Taylor <iant@google.com>
16128 * godump.c (go_format_type): Use exported Go name for anonymous
16131 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16133 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16134 Call builtin_function_type_list instead of builtin_function_type.
16135 (UNARY, BINARY, TRINARY, QUAD): Likewise.
16137 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16139 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16140 build_function_type_list instead of build_function_type.
16141 Delete variable `endlink'.
16143 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16145 * config/s390/s390.c (s390_init_builtins): Call
16146 build_function_type_list instead of build_function_type.
16148 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16150 * config/ia64/ia64.c (ia64_init_builtins): Call
16151 build_function_type_list instead of builtin_function_type.
16153 2011-04-21 Easwaran Raman <eraman@google.com>
16155 * cfgexpand.c (stack_var): Remove OFFSET...
16156 (add_stack_var): ...and its reference here...
16157 (expand_stack_vars): ...and here.
16158 (stack_var_cmp): Sort by descending order of size.
16159 (partition_stack_vars): Change heuristic.
16160 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16161 (dump_stack_var_partition): Add newline after each partition.
16163 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
16164 Jeff Law <law@redhat.com>
16166 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16167 * gengtype.c (matching_file_name_substitute): Likewise.
16169 2011-04-21 Richard Guenther <rguenther@suse.de>
16172 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16174 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
16176 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16178 2011-04-21 Richard Guenther <rguenther@suse.de>
16180 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16183 2011-04-21 Richard Guenther <rguenther@suse.de>
16185 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
16186 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
16187 Use DECL_P, not SSA_VAR_P.
16188 (ptr_derefs_may_alias_p): Likewise.
16189 (ptr_deref_may_alias_ref_p_1): Likewise.
16190 (decl_refs_may_alias_p): Likewise.
16191 (refs_may_alias_p_1): Likewise.
16192 (ref_maybe_used_by_call_p_1): Likewise.
16193 (call_may_clobber_ref_p_1): Likewise.
16194 (indirect_ref_may_alias_decl_p): Assume indirect refrences
16195 are either MEM_REF or TARGET_MEM_REF.
16196 (indirect_refs_may_alias_p): Likewise.
16197 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
16198 for MEM_EXPR of indirect calls.
16200 2011-04-21 Tristan Gingold <gingold@adacore.com>
16202 * vmsdbgout.c (write_srccorr): Compute file length from the string.
16203 (dst_file_info_struct): Remove flen field.
16204 (lookup_filename): Remove code that set flen field.
16206 2011-04-21 Tristan Gingold <gingold@adacore.com>
16208 * config/ia64/ia64.c (ia64_start_function): Add a guard.
16210 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
16213 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
16214 vec_extract and vec_concat for non-SSE4_1 targets.
16216 2011-04-21 Richard Guenther <rguenther@suse.de>
16218 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
16221 2011-04-21 Joseph Myers <joseph@codesourcery.com>
16223 * config/i386/cygming.h (union tree_node, TREE): Don't define or
16225 (FILE): Don't undefine.
16227 2011-04-21 Joseph Myers <joseph@codesourcery.com>
16229 * config/alpha/alpha.c (struct machine_function): Use rtx, not
16231 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
16233 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
16234 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
16235 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
16237 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
16238 definitions where used.
16239 * config/microblaze/microblaze.h (struct microblaze_args): Use
16240 rtx, not struct rtx_def *.
16241 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
16243 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
16244 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
16245 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
16246 not struct rtx_def *.
16247 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
16249 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
16251 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
16253 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16255 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
16256 operand_equal_p to compare DR_BASE_ADDRESSes.
16257 (vect_check_interleaving): Likewise.
16259 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16262 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
16263 for all Neon struct constants.
16265 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16267 * target.def (legitimate_constant_p): New hook.
16268 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
16269 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
16270 * doc/tm.texi: Regenerate.
16271 * hooks.h (hook_bool_mode_rtx_true): Declare.
16272 * hooks.c (hook_bool_mode_rtx_true): Define.
16273 * system.h (LEGITIMATE_CONSTANT_P): Poison.
16274 * calls.c (precompute_register_parameters): Replace uses of
16275 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
16276 (emit_library_call_value_1): Likewise.
16277 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
16278 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
16279 * ira-costs.c (scan_one_insn): Likewise.
16280 * recog.c (general_operand, immediate_operand): Likewise.
16281 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
16282 * reload1.c (init_eliminable_invariants): Likewise.
16284 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
16286 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
16287 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
16289 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16290 * config/alpha/predicates.md (input_operand): Update call to
16291 alpha_legitimate_constant_p.
16293 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
16294 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
16295 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
16296 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16297 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
16298 (arm_legitimate_constant_p): New functions.
16299 (arm_cannot_force_const_mem): Make static.
16301 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
16303 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
16304 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
16305 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
16306 instead of bfin_legitimate_constant_p.
16307 (bfin_legitimate_constant_p): Make static. Add a mode argument.
16308 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16310 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
16312 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
16314 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
16315 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
16316 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16317 (frv_legitimate_constant_p): Make static. Add a mode argument.
16319 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
16320 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
16321 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
16323 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
16324 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
16325 * config/i386/i386.c (legitimate_constant_p): Rename to...
16326 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
16328 (ix86_cannot_force_const_mem): Update accordingly.
16329 (ix86_legitimate_address_p): Likewise.
16330 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16331 * config/i386/i386.md: Update commentary.
16333 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
16334 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
16335 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16336 (ia64_legitimate_constant_p): Make static. Add a mode argument.
16338 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
16340 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
16341 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
16342 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16343 (lm32_legitimate_constant_p): Make static. Add a mode argument.
16345 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
16346 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
16347 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
16349 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
16350 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16351 (m32r_legitimate_constant_p): New function.
16353 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
16354 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
16355 LEGITIMATE_CONSTANT_P.
16356 (LEGITIMATE_CONSTANT_P): Delete.
16357 * config/m68k/m68k.c (m68k_expand_prologue): Call
16358 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
16359 (m68k_legitimate_constant_p): New function.
16360 * config/m68k/m68k.md: Update comments.
16362 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
16363 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16364 (mcore_legitimate_constant_p): New function.
16366 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
16367 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
16368 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
16369 Add a mode argument.
16370 (mep_legitimate_address): Update accordingly.
16371 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16373 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
16375 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
16376 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
16377 static. Check OP's mode for VOIDmode.
16378 (microblaze_legitimate_constant_p): New function.
16379 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16381 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
16382 * config/mips/mips.c (mips_legitimate_constant_p): New function.
16383 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
16384 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16385 * config/mips/predicates.md: Update comments.
16387 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
16388 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
16389 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16390 (mmix_legitimate_constant_p): Make static, return a bool, and take
16392 (mmix_print_operand_address): Update accordingly.
16394 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16396 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16397 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16398 static. Add a mode argument.
16399 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16401 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16403 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16404 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16405 (pa_legitimate_constant_p): New function.
16407 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16409 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16410 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16411 (pdp11_legitimate_constant_p): New function.
16413 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16414 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16415 (rs6000_legitimate_constant_p): New function.
16417 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16418 (rx_legitimate_constant_p): ...this.
16419 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16420 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16421 (rx_legitimate_constant_p): ...this.
16422 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16423 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16425 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16426 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16427 * config/s390/s390.c (legitimate_constant_p): Rename to...
16428 (s390_legitimate_constant_p): ...this. Make static, return a bool,
16429 and add a mode argument.
16430 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16432 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16434 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16435 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16436 (sh_legitimate_constant_p): New function.
16438 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16439 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16440 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16441 (legitimate_constant_p): Rename to...
16442 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
16444 (constant_address_p): Update accordingly.
16446 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16447 argument and return a bool.
16448 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16449 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16450 (spu_legitimate_constant_p): Add a mode argument and return a bool.
16451 (spu_rtx_costs): Update accordingly.
16452 * config/spu/predicates.md (vec_imm_operand): Likewise.
16454 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16456 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16457 * config/v850/v850.c (v850_legitimate_constant_p): New function.
16458 (TARGET_LEGITIMATE_CONSTANT_P): Define.
16460 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16461 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16462 * config/vax/vax.c (legitimate_constant_p): Likewise.
16464 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16465 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16466 (xtensa_legitimate_constant_p): New function.
16468 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
16470 * target.def (cannot_force_const_mem): Add a mode argument.
16471 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16472 * doc/tm.texi: Regenerate.
16473 * hooks.h (hook_bool_mode_rtx_false): Declare.
16474 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16475 (hook_bool_mode_const_rtx_true): Likewise.
16476 (hook_bool_mode_rtx_false): New function.
16477 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16478 to be non-VOID. Update call to cannot_force_const_mem.
16479 (find_reloads): Update accordingly.
16480 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16481 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16483 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16484 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16485 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16486 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16487 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16488 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16489 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16490 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16491 (m68k_cannot_force_const_mem): ...this new function.
16492 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16494 (mips_const_insns, mips_legitimize_const_move): Update calls.
16495 (mips_secondary_reload_class): Likewise.
16496 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16497 (pa_cannot_force_const_mem): ...this new function.
16498 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16499 (rs6000_cannot_force_const_mem): ...this new function.
16500 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16502 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16503 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16505 (xtensa_cannot_force_const_mem): ...this new function.
16507 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
16509 * config/mips/mips.c (mips16_build_function_stub): Call
16510 build_function_type_list instead of build_function_type.
16511 (mips16_build_call_stub): Likewise.
16513 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
16515 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16516 instead of build_function_type.
16518 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
16520 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16521 instead of build_function_type.
16523 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
16526 * config/i386/i386.md (insv): Change operand 0 constraint to
16527 "register_operand". Change operand 1 and 2 constraint to
16528 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
16529 * config/i386/sse.md (sse4_1_pinsrb): Export.
16530 (sse2_pinsrw): Ditto.
16531 (sse4_1_pinsrd): Ditto.
16532 (sse4_1_pinsrq): Ditto.
16533 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16534 * config/i386/i386.c (ix86_expand_pinsr): New.
16536 2011-04-20 Easwaran Raman <eraman@google.com>
16538 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16539 containing union type only with -fstrict-aliasing.
16541 2011-04-20 Jim Meyering <meyering@redhat.com>
16543 Remove useless if-before-free tests.
16544 * calls.c (expand_call, save_area): Likewise.
16545 * cfgcleanup.c (try_forward_edges): Likewise.
16546 * collect2.c (collect_execute): Likewise.
16547 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16548 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16549 * coverage.c (coverage_checksum_string): Likewise.
16550 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16551 * cselib.c (cselib_init): Likewise.
16552 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16553 (df_set_clean_cfg): Likewise.
16554 * function.c (free_after_compilation): Likewise.
16555 * gcc.c (do_spec_1, main): Likewise.
16556 * gcov.c (create_file_names): Likewise.
16557 * gensupport.c (identify_predicable_attribute): Likewise.
16558 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16559 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16560 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16561 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16562 * ipa-pure-const.c (local_pure_const): Likewise.
16563 * ipa-reference.c (propagate): Likewise.
16564 * ira-costs.c (free_ira_costs): Likewise.
16565 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16566 * matrix-reorg.c (mat_free): Likewise.
16567 * prefix.c (get_key_value): Likewise.
16568 * profile.c (compute_value_histograms): Likewise.
16569 * reload1.c (free_reg_equiv): Likewise.
16570 * sched-deps.c (free_deps): Likewise.
16571 * sel-sched-ir.c (fence_clear): Likewise.
16572 * sese.c (set_rename, if_region_set_false_region): Likewise.
16573 * tree-data-ref.c (free_rdg): Likewise.
16574 * tree-eh.c (lower_try_finally): Likewise.
16575 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16576 * tree-ssa-live.c (delete_var_map): Likewise.
16577 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16578 * tree-ssa-pre.c (phi_trans_add): Likewise.
16580 2011-04-20 Jakub Jelinek <jakub@redhat.com>
16582 PR tree-optimization/48611
16583 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16584 beyond ERT_MUST_NOT_THROW region.
16586 2011-04-20 Catherine Moore <clm@codesourcery.com>
16588 * config/mips/mips.opt (mfix-24k): New.
16589 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16590 * config/mips/mips.md (length): Increase by 4 for stores if
16592 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16593 all noreorder if fixing 24K errata.
16594 * doc/invoke.texi: Document mfix-24k.
16596 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
16598 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16599 quad-word modes, reduce to 9-bit index range when above 1016 limit.
16601 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
16603 * config/arm/arm.c (arm_gen_constant): Move movw support ....
16604 (const_ok_for_op): ... to here.
16606 2011-04-20 Kai Tietz <ktietz@redhat.com>
16608 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16609 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16611 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
16613 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16615 2011-04-20 Richard Guenther <rguenther@suse.de>
16617 PR tree-optimization/47892
16618 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16619 are if-convertible.
16621 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
16623 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16625 2011-04-20 Tristan Gingold <gingold@adacore.com>
16627 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16629 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
16633 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16634 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16635 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16636 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16637 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16639 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16642 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16643 (avr_asm_named_section, avr_asm_output_aligned_common,
16644 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16645 New functions to update...
16646 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16647 (avr_asm_init_sections): Overwrite section callbacks for
16648 data_section, bss_section.
16649 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16651 (avr_file_end): ...here.
16653 2011-04-20 Richard Guenther <rguenther@suse.de>
16655 PR middle-end/48695
16656 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16657 objects and types here. Adjust for their offset before comparing.
16659 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
16661 * tree-vect-stmts.c (vectorizable_store): Only chain one related
16662 statement per copy.
16664 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
16666 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16667 (GIMPLE_H): Include $(INTERNAL_FN_H).
16668 (OBJS-common): Add internal-fn.o.
16669 (internal-fn.o): New rule.
16670 * internal-fn.def: New file.
16671 * internal-fn.h: Likewise.
16672 * internal-fn.c: Likewise.
16673 * gimple.h: Include internal-fn.h.
16674 (GF_CALL_INTERNAL): New gf_mask.
16675 (gimple_statement_call): Put fntype into a union with a new
16677 (gimple_build_call_internal): Declare.
16678 (gimple_build_call_internal_vec): Likewise.
16679 (gimple_call_same_target_p): Likewise.
16680 (gimple_call_internal_p): New function.
16681 (gimple_call_internal_fn): Likewise.
16682 (gimple_call_fntype): Return null for internal calls.
16683 (gimple_call_set_fntype): Assert that the function is not internal.
16684 (gimple_call_set_fn): Likewise.
16685 (gimple_call_set_fndecl): Likewise.
16686 (gimple_call_set_internal_fn): New function.
16687 (gimple_call_addr_fndecl): Handle null functions.
16688 (gimple_call_return_type): Likewise null types.
16689 * gimple.c (gimple_build_call_internal_1): New function.
16690 (gimple_build_call_internal): Likewise.
16691 (gimple_build_call_internal_vec): Likewise.
16692 (gimple_call_same_target_p): Likewise.
16693 (gimple_call_flags): Handle calls to internal functions.
16694 (gimple_call_fnspec): New function.
16695 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16696 (gimple_has_side_effects): Handle null functions.
16697 (gimple_rhs_has_side_effects): Likewise.
16698 (gimple_call_copy_skip_args): Handle calls to internal functions.
16699 * cfgexpand.c (expand_call_stmt): Likewise.
16700 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16701 * gimple-fold.c (gimple_fold_call): Handle null functions.
16702 (gimple_fold_stmt_to_constant_1): Don't fold
16703 calls to internal functions.
16704 * gimple-low.c (gimple_check_call_args): Handle calls to internal
16706 * gimple-pretty-print.c (dump_gimple_call): Likewise.
16707 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16708 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16709 (do_warn_unused_result): Likewise.
16710 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16711 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16712 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16713 the target of a call.
16714 (initialize_hash_element): Update accordingly.
16715 (hashable_expr_equal_p): Use gimple_call_same_target_p.
16716 (iterative_hash_hashable_expr): Handle calls to internal functions.
16717 (print_expr_hash_elt): Likewise.
16718 * tree-ssa-pre.c (can_value_number_call): Likewise.
16719 (eliminate): Handle null functions.
16720 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16721 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16722 (find_func_aliases): Likewise.
16723 * value-prof.c (gimple_ic_transform): Likewise.
16724 (gimple_indirect_call_to_profile): Likewise.
16725 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16726 * lto-streamer-out.c (output_gimple_stmt): Likewise.
16728 2011-04-19 Jan Hubicka <jh@suse.cz>
16730 * ipa-inline-transform.c (save_inline_function_body): Add comments.
16731 * ipa-inline.c (inline_small_functions): Compute summaries first,
16732 populate heap later.
16734 2011-04-19 Jan Hubicka <jh@suse.cz>
16736 * cgraph.h (save_inline_function_body): Remove.
16737 * ipa-inline-transform.c: New file, broke out of...
16738 * ipa-inline.c: ... this one; Update toplevel comment.
16739 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16741 (update_noncloned_frequencies): Move to ipa-inline-transform.c
16742 (cgraph_mark_inline_edge): Rename to inline_call; move to
16743 ipa-inline-transform.c.
16744 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16745 move to ipa-inline-transform.c
16746 (recursive_inlining, inline_small_functions, flatten_function,
16747 ipa_inline, inline_always_inline_functions,
16748 early_inline_small_functions): Update.
16749 (inline_transform): Move to ipa-inline-transform.c.
16750 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16752 * Makefile.in (ipa-inline-transform.o): New file.
16753 * cgraphunit.c (save_inline_function_body): Move to
16754 ipa-inline-transform.c
16756 2011-04-19 DJ Delorie <dj@redhat.com>
16758 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16759 registers if we already know there aren't any.
16760 (m32c_emit_epilogue): Don't emit a barrier here.
16761 (m32c_emit_eh_epilogue): Likewise.
16762 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16763 operands at expand time.
16764 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16766 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16767 duplicates. Provide aliases instead.
16768 * config/m32c/prologue.md (eh_return): Emit a barrier here.
16769 (eh_epilogue): Add a "(return)" here as a hint to other parts of
16772 2011-04-19 Anatoly Sokolov <aesok@post.ru>
16774 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16775 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16776 (general_or_i64_p, sparc_register_move_cost): New function.
16778 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16780 * doc/install.texi (Configuration, --enable-threads): Remove mach.
16781 Add lynx, mipssde. Sort table.
16783 2011-04-19 Xinliang David Li <davidxl@google.com>
16785 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16788 2011-04-19 Jakub Jelinek <jakub@redhat.com>
16791 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16792 is a SUBREG with non-MODE_INT mode inside of it.
16794 2011-04-19 Martin Jambor <mjambor@suse.cz>
16796 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16797 also according to actual contants.
16798 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16799 (gimple_fold_call): Use it.
16800 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16802 2011-04-19 Martin Jambor <mjambor@suse.cz>
16804 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16805 non-pointer assignments.
16807 2011-04-19 Martin Jambor <mjambor@suse.cz>
16809 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16810 account anc_offset and otr_type from the indirect edge info.
16811 * ipa-prop.c (get_ancestor_addr_info): New function.
16812 (compute_complex_ancestor_jump_func): Assignment analysis moved to
16813 get_ancestor_addr_info, call it.
16814 (ipa_note_param_call): Do not initialize information about polymorphic
16815 calls, return the indirect call graph edge. Remove the last
16816 parameter, adjust all callers.
16817 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16818 parameters. Initialize polymorphic information in the indirect edge.
16820 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
16823 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16824 the types if they have different enumeration identifiers.
16826 2011-04-19 Jan Hubicka <jh@suse.cz>
16828 * cgraph.h (cgraph_optimize_for_size_p): Declare.
16829 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16830 * predict.c (cgraph_optimize_for_size_p): Break out from ...
16831 (optimize_function_for_size_p) ... here.
16833 2011-04-19 Richard Guenther <rguenther@suse.de>
16836 * tree.c (free_lang_data): Do not reset the decl-assembler-name
16839 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
16841 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16842 if DECL_NO_INLINE_WARNING_P is set on the function.
16844 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
16847 * reload1.c (inc_for_reload): Return void. All callers changed.
16848 (emit_input_reload_insns): Don't try to delete previous output
16849 reloads to a register, or record spill_reg_store for autoincs.
16851 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
16853 * gengtype.h: Updated copyright year.
16854 (struct input_file_st): Add inpisplugin field.
16855 (type_fileloc): New function.
16857 (write_typed_struct_alloc_def): Add gcc_assert.
16858 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16859 (write_typed_alloc_defns): Don't output for plugin files.
16860 (input_file_by_name): Clear inpisplugin field.
16861 (main): Set inpisplugin field for plugin files.
16863 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
16865 * gengtype-state.c (string_eq): New.
16866 (read_state): Use string_eq instead of strcmp when creating the
16869 2011-04-19 Wei Guozhi <carrot@google.com>
16872 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16873 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16875 * config/arm/constraints.md (Uu): New constraint.
16876 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16878 2011-04-19 Tristan Gingold <gingold@adacore.com>
16880 * config.gcc (-*-*-*vms): Added.
16881 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16883 * config/vms/vms-ld.c: New file.
16884 * config/vms/vms-ar.c: New file.
16885 * config/vms/t-vmsnative: New file.
16887 2011-04-18 Xinliang David Li <davidxl@google.com>
16889 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16891 2011-04-18 Jakub Jelinek <jakub@redhat.com>
16893 PR middle-end/48661
16894 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16895 if TREE_TYPE (v) is non-NULL.
16897 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16898 gimple_get_virt_mehtod_for_binfo.
16899 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16900 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16902 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16904 2011-04-18 Michael Matz <matz@suse.de>
16905 Steve Ellcey <sje@cup.hp.com>
16907 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16908 use its mode as source mode if it isn't VOIDmode.
16910 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
16912 * doc/passes.texi: Fill crossref nodes.
16914 2011-04-18 Jim Meyering <meyering@redhat.com>
16916 Fix doubled-word typos in comments and strings
16917 * config/alpha/vms-unwind.h: s/for for/for/
16918 * config/arm/unwind-arm.h: Likewise.
16919 * config/microblaze/microblaze.c: Likewise.
16920 * config/sh/constraints.md: s/in in/in/
16921 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16923 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
16925 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16926 (AVX_FLOAT_MODE_P): Ditto.
16927 (AVX128_VEC_FLOAT_MODE_P): Ditto.
16928 (AVX256_VEC_FLOAT_MODE_P): Ditto.
16929 (AVX_VEC_FLOAT_MODE_P): Ditto.
16930 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16931 (UNSPEC_MASKSTORE): Ditto.
16932 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16933 Merge from <sse>_movmsk<ssemodesuffix> and
16934 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
16935 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
16937 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16938 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16939 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16941 2011-04-18 Jan Hubicka <jh@suse.cz>
16943 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16945 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16946 (want_inline_function_called_once_p): Break out the logic from
16948 (edge_badness): Ensure that profile is not misupdated.
16949 (lookup_recursive_calls): Prioritize by call frequencies.
16950 (inline_small_functions): Move program size estimates here;
16951 actually process whole queue even when unit growth has been
16952 met. (to properly compute inline_failed reasons and for the
16953 case unit size decrease.) Revisit comments on recursive inlining.
16954 (ipa_inline): Remove unit summary code; first inline hot calls
16955 of functions called once, cold calls next.
16956 (order, nnodes): Remove unused variables.
16957 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16958 (GTFILES): Remove ipa-inline.c
16959 * sel-sched.c (fill_insns): Silence uninitialized var warning.
16961 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
16963 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16965 2011-04-18 Jie Zhang <jie@codesourcery.com>
16966 Richard Earnshaw <rearnsha@arm.com>
16968 * arm.c (neon_builtin_type_bits): Remove.
16969 (typedef enum neon_builtin_mode): New.
16970 (T_MAX): Don't define.
16971 (typedef enum neon_builtin_datum): Remove bits, codes[],
16972 num_vars and base_fcode. Add mode, code and fcode.
16973 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16974 VAR10): Change accordingly.
16975 (neon_builtin_data[]): Change accordingly
16976 (arm_init_neon_builtins): Change accordingly.
16977 (neon_builtin_compare): Remove.
16978 (locate_neon_builtin_icode): Remove.
16979 (arm_expand_neon_builtin): Change accordingly.
16981 * arm.h (enum arm_builtins): Move to ...
16982 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16984 * arm.c (arm_builtin_decl): Declare.
16985 (TARGET_BUILTIN_DECL): Define.
16986 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16987 (arm_builtin_decls[]): New.
16988 (arm_init_neon_builtins): Store builtin declarations in
16989 arm_builtin_decls[].
16990 (arm_init_tls_builtins): Likewise.
16991 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
16992 (arm_builtin_decl): New.
16994 2011-04-18 Richard Guenther <rguenther@suse.de>
16996 * tree.c (upper_bound_in_type): Build properly canonicalized
16998 (lower_bound_in_type): Likewise.
17000 2011-04-18 Richard Guenther <rguenther@suse.de>
17002 * gimple.h (gimple_call_addr_fndecl): New function.
17003 (gimple_call_fndecl): Use it.
17004 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17006 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17007 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17009 2011-04-18 Richard Guenther <rguenther@suse.de>
17011 PR middle-end/48650
17012 * tree.c (build_string): STRING_CST is now derived from tree_typed.
17014 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17017 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17018 DECL_IN_CONSTANT_POOL without RTL.
17020 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
17021 Ira Rosen <ira.rosen@linaro.org>
17024 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17025 to match neon_vzip/vuzp/vtrn_internal.
17026 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17027 outputs explicitly dependent on both inputs.
17028 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17030 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17032 PR tree-optimization/48616
17033 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17034 whether the shift is by scalar or vector based on whether all SLP
17035 scalar stmts have the same rhs.
17037 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
17039 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17042 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
17045 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17048 2011-04-17 Jan Hubicka <jh@suse.cz>
17050 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17051 * cgrpahunit.c (cgraph_finalize_function): Do not set
17052 finalized_by_frontend.
17053 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17054 finalized_by_frontend.
17056 2011-04-17 Jan Hubicka <jh@suse.cz>
17058 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17059 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17060 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17061 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17063 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17065 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17067 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17070 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17071 is non-null before accessing it.
17072 (input_cgraph): Remove trailing spaces.
17074 2011-04-17 Revital Eres <revital.eres@linaro.org>
17076 * params.def (sms-min-sc): New param flag.
17077 * modulo-sched.c (sms_schedule): Use it.
17078 * doc/invoke.texi (sms-min-sc): Document it.
17080 2011-04-17 Jan Hubicka <jh@suse.cz>
17082 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17083 present, also set gimple_call_set_cannot_inline.
17084 * ipa-inline.c: Update toplevel comment.
17085 (MAX_TIME): Remove.
17086 (cgraph_clone_inlined_nodes): Fix linebreaks.
17087 (cgraph_check_inline_limits): Restructure to ...
17088 (caller_growth_limits): ... this one; be more tolerant
17089 on growth in nested inline chains; add explanatory comment;
17090 fix stack accounting thinko introduced by previous patch.
17091 (cgraph_default_inline_p): Remove.
17092 (report_inline_failed_reason): New function.
17093 (can_inline_edge_p): New function.
17094 (can_early_inline_edge_p): New function.
17095 (leaf_node_p): Move upwards in file.
17096 (want_early_inline_function_p): New function.
17097 (want_inline_small_function_p): New function.
17098 (want_inline_self_recursive_call_p): New function.
17099 (cgraph_edge_badness): Rename to ...
17100 (edge_badness) ... this one; fix linebreaks.
17101 (update_edge_key): Update call of edge_baddness; add
17102 detailed dump about queue updates.
17103 (update_caller_keys): Use can_inline_edge_p and
17104 want_inline_small_function_p.
17105 (cgraph_decide_recursive_inlining): Rename to...
17106 (recursive_inlining): Use can_inline_edge_p and
17107 want_inline_self_recursive_call_p; simplify and remove no longer
17109 (cgraph_set_inline_failed): Remove.
17110 (add_new_edges_to_heap): Use can_inline_edge_p and
17111 want_inline_small_function_p.
17112 (cgraph_decide_inlining_of_small_functions): Rename to ...
17113 (inline_small_functions): ... this one; cleanup; use
17114 can/want predicates; cleanup debug ouput; work edges till fibheap
17115 is exhausted and do not stop once unit growth is reached; remove
17116 later loop processing remaining edges.
17117 (cgraph_flatten): Rename to ...
17118 (flatten_function): ... this one; use can_inline_edge_p
17119 and can_early_inline_edge_p predicates.
17120 (cgraph_decide_inlining): Rename to ...
17121 (ipa_inline): ... this one; remove unreachable nodes before
17122 inlining functions called once; simplify the pass.
17123 (cgraph_perform_always_inlining): Rename to ...
17124 (inline_always_inline_functions): ... this one; use
17125 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17126 (cgraph_decide_inlining_incrementally): Rename to ...
17127 (early_inline_small_functions): ... this one; simplify
17128 using new predicates; cleanup; make dumps prettier.
17129 (cgraph_early_inlining): Rename to ...
17130 (early_inliner): newer inline regular functions into always-inlines;
17131 fix updating of call stmt summaries.
17132 (pass_early_inline): Update for new names.
17133 (inline_transform): Fix formating.
17134 (gate_cgraph_decide_inlining): Rename to ...
17135 (pass_ipa_inline): ... this one.
17136 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17137 * ipa-inline-analysis.c (dump_inline_summary): Update.
17138 (compute_inline_parameters): Do not compute disregard_inline_limits;
17139 look for mismatching arguments.
17140 (estimate_growth): Fix handlig of non-trivial self recursion.
17141 (inline_read_summary): Do not read info->disregard_inline_limits.
17142 (inline_write_summary): Do not write info->disregard_inline_limits.
17143 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17144 and move all checks into can_inline_edge_p predicate; re-enable code
17145 comparing optimization levels.
17146 (expand_call_inline): Do not test inline_forbidden_into_p.
17147 * Makefile.in (ipa-inline.o): Update arguments.
17149 2011-04-17 Revital Eres <revital.eres@linaro.org>
17151 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17153 2011-04-17 Revital Eres <revital.eres@linaro.org>
17155 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17157 2011-04-17 Michael Matz <matz@suse.de>
17159 PR tree-optimization/48622
17161 * ipa-inline-analysis.c (inline_read_summary): Read size/time
17162 in same order as they're written.
17164 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17166 * config/pa/predicates.md: Reorganize and simplify predicates.
17167 Eliminate duplicate code checks.
17168 (arith_operand): Rename to arith14_operand
17169 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17170 * config/pa/pa.md: Use renamed operands.
17171 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17172 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17173 arith11_operand, adddi3_operand, indexed_memory_operand,
17174 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17175 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17176 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17177 move_dest_operand, move_src_operand, prefetch_cc_operand,
17178 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17179 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17180 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17181 div_operand, int5_operand, movb_comparison_operator,
17182 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
17183 arith_double_operand, ireg_operand, lhs_lshift_operand,
17184 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
17185 integer_store_memory_operand): Likewise.
17186 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
17187 (integer_store_memory_operand, read_only_operand,
17188 function_label_operand, borx_reg_operand,
17189 non_hard_reg_operand): Likewise.
17190 (eq_neq_comparison_operator): Delete unused operator.
17191 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
17192 function_label_operand.
17193 (emit_move_sequence): Likewise.
17195 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
17197 * config/i386/sse.md (sseunpackmode): New mode attribute.
17198 (ssepackmode): Ditto.
17199 (vec_pack_trunc_<mode>): Macroize expander from
17200 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
17201 (vec_unpacks_lo_<mode>): Macroize expander from
17202 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17203 (vec_unpacks_hi_<mode>): Macroize expander from
17204 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17205 (vec_unpacku_lo_<mode>): Macroize expander from
17206 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17207 (vec_unpacku_hi_<mode>): Macroize expander from
17208 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
17209 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
17210 ix86_expand_sse4_unpack.
17211 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
17213 2011-04-16 Jan Hubicka <jh@suse.cz>
17215 * cgraphbuild.c: Include ipa-inline.h.
17216 (reset_inline_failed): Use initialize_inline_failed.
17217 * cgraph.c: Include ipa-inline.h.
17218 (cgraph_create_node_1): Do not initialize estimated_growth.
17219 (initialize_inline_failed): More to ipa-inline-analysis.c
17220 (dump_cgraph_node): Do not dump inline flags.
17221 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
17222 and disregard_inline_limits flags.
17223 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
17224 time, size, estimated_growth.
17225 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
17227 * cgraphunit.c (cgraph_decide_is_function_needed): Use
17228 DECL_DISREGARD_INLINE_LIMITS.
17229 (cgraph_analyze_function): Do not initialize
17230 node->local.disregard_inline_limits.
17231 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17232 inlinable, versionable and disregard_inline_limits.
17233 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
17234 cgraph_check_inline_limits, cgraph_default_inline_p,
17235 cgraph_edge_badness, update_caller_keys, update_callee_keys,
17236 add_new_edges_to_heap): Update.
17237 (cgraph_decide_inlining_of_small_function): Update; set
17238 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
17239 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
17240 cgraph_decide_inlining_incrementally): Update.
17241 * ipa-inline.h (inline_summary): Add inlinable, versionable,
17242 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
17243 time, size and estimated_growth parameters.
17244 (estimate_edge_growth): Update.
17245 (initialize_inline_failed): Declare.
17246 * ipa-split.c: Include ipa-inline.h
17247 (execute_split_functions): Update.
17248 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
17249 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
17250 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
17251 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
17252 estimated_growth to INT_MIN.
17253 (inline_node_duplication_hook): Likewise.
17254 (dump_inline_summary): Dump new fields.
17255 (compute_inline_parameters): Update.
17256 (estimate_edge_time, estimate_time_after_inlining,
17257 estimate_size_after_inlining, estimate_growth, inline_read_summary,
17258 inline_write_summary):
17259 (initialize_inline_failed): Move here from cgraph.c.
17260 * tree-sra.c: Include ipa-inline.h.
17261 (ipa_sra_preliminary_function_checks): Update.
17262 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
17265 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
17267 * config/i386/sse.md (V16): New mode iterator.
17269 (AVXMODEQI, AVXMODEDI): Remove.
17270 (sse2, sse3): New mode attribute.
17271 (mov<mode>): Use V16 mode iterator.
17272 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
17273 (push<mode>1): Use V16 mode iterator.
17274 (movmisalign<mode>): Ditto.
17275 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17276 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
17277 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
17278 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
17279 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
17280 avx_movdqu<avxmodesuffix>.
17281 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
17282 *avx_movdqu<avxmodesuffix>.
17283 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
17284 avx_lddqu<avxmodesuffix>.
17285 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
17286 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
17287 avx_movnt<AVXMODEDI:mode>.
17288 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
17289 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
17291 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
17294 * haifa-sched.c (prune_ready_list, schedule_block): Use
17295 sched_pressure_p rather than flag_sched_pressure.
17297 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
17299 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17300 cgraph_get_node instead of cgraph_get_create_node.
17302 2011-04-15 Jakub Jelinek <jakub@redhat.com>
17304 * cfgexpand.c (expand_debug_expr): Use
17305 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
17307 2011-04-15 Michael Matz <matz@suse.de>
17309 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
17310 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
17311 * function.c (gimplify_parameters): Ditto.
17312 * gimplify.c (gimplify_vla_decl): Ditto.
17314 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
17315 (gimple_call_set_alloca_for_var): New inline function.
17316 (gimple_call_alloca_for_var_p): Ditto.
17317 * gimple.c (gimple_build_call_from_tree): Remember
17318 CALL_ALLOCA_FOR_VAR_P state.
17319 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
17321 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
17322 calls if they were for VLA objects.
17324 2011-04-15 Martin Jambor <mjambor@suse.cz>
17326 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
17329 2011-04-15 Martin Jambor <mjambor@suse.cz>
17331 PR middle-end/48601
17332 * tree-emutls.c (lower_emutls_function_body): Call
17333 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
17334 result is non-NULL.
17336 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
17338 * c-decl.c (detect_field_duplicates): Call
17339 objc_detect_field_duplicates instead of objc_get_interface_ivars.
17341 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
17343 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
17344 * gimple.c (gimple_asm_clobbers_memory_p): Define.
17345 * ipa-pure-const.c (check_stmt): Call it.
17346 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
17348 2011-04-15 Richard Guenther <rguenther@suse.de>
17350 PR tree-optimization/48290
17351 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
17352 Properly decide inhibiting propagation based on the valueized
17353 operand. Do loop-closed SSA form preserving here ...
17354 (init_copy_prop): ... not here.
17356 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
17359 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
17360 (*ieee_smax<mode>3): Likewise.
17362 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17364 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
17365 Replace match_operand with match_dup for the third operand in
17368 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
17370 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
17371 to track processing of conditionals. Update all callers.
17372 (try_combine, simplify_if_then_else): Update.
17374 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
17376 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
17379 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
17381 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
17382 instead of match_operand for operand 3.
17384 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
17386 * recog.h (insn_operand_data): Add an "allows_mem" field.
17387 * genoutput.c (output_operand_data): Initialize it.
17388 * optabs.c (maybe_legitimize_operand_same_code): New function.
17389 (maybe_legitimize_operand): Use it when matching the original
17392 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
17394 * gimplify.c: Fix issues in comments throughout.
17395 (voidify_wrapper_expr): Fix long line.
17396 (build_stack_save_restore): Likewise.
17397 (gimplify_loop_expr): Likewise.
17398 (gimplify_compound_lval): Likewise.
17399 (gimplify_init_ctor_eval): Likewise.
17400 (gimplify_modify_expr_rhs): Likewise.
17401 (omp_notice_threadprivate_variable): Likewise.
17403 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
17405 * cfgexpand.c (expand_call_stmt): Convert the function type to the
17406 original one if this is not a builtin function.
17408 2011-04-14 Jakub Jelinek <jakub@redhat.com>
17411 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17412 offset it as needed based on top 2 bits in operands[3], change
17413 MEM mode to SFmode and mask those 2 bits away from operands[3].
17415 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
17417 * c-parser.c (c_parser_objc_protocol_definition): Updated for
17418 change from objc_declare_protocols() to objc_declare_protocol().
17420 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
17422 * config/i386/sse.md (sse4_1): New mode attribute.
17423 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17424 avx_blend<ssemodesuffix><avxmodesuffix> and
17425 sse4_1_blend<ssemodesuffix> using VF mode iterator.
17426 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17427 avx_blendv<ssemodesuffix><avxmodesuffix> and
17428 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17429 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17430 avx_dp<ssemodesuffix><avxmodesuffix> and
17431 sse4_1_dp<ssemodesuffix> using VF mode iterator.
17432 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17433 (sse4_1_packusdw): Merge with *avx_packusdw.
17434 (sse4_1_pblendvb): Merge with *avx_pblendvb.
17435 (sse4_1_pblendw): Merge with *avx_pblendw.
17436 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17437 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17438 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17440 (sse4_1_round<ssescalarmodesuffix>): Merge with
17441 *avx_round<ssescalarmodesuffix>.
17442 (aesenc): Merge with *avx_aesenc.
17443 (aesenclast): Merge with *avx_aesenclast.
17444 (aesdec): Merge with *avx_aesdec.
17445 (aesdeclast): Merge with *avx_aesdeclast.
17446 (pclmulqdq): Merge with *pclmulqdq.
17447 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17449 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17451 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
17453 PR middle-end/48608
17454 * cfgexpand.c (get_decl_align_unit): Renamed to ...
17455 (align_local_variable): This. Update DECL_ALIGN.
17456 (add_stack_var): Updated.
17457 (expand_one_stack_var): Likewise.
17459 2011-04-14 Richard Guenther <rguenther@suse.de>
17461 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17463 (dse_initialize_block_local_data, dse_leave_block,
17464 record_voperand_set, get_stmt_uid): Likewise.
17465 (dse_possible_dead_store_p): Allow any kind of killing stmt.
17466 (dse_optimize_stmt): Remove voperand set handling code.
17467 Simplify and improve to handle any kind of killing stmt.
17468 (dse_record_phi): Remove.
17469 (dse_enter_block): Simplify.
17470 (tree_ssa_dse): Likewise.
17471 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17473 2011-04-14 Jan Hubicka <jh@suse.cz>
17475 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17476 * cgraph.h (struct inline_summary): Move to ipa-inline.h
17477 (cgraph_local_info): Remove inline_summary.
17478 * ipa-cp.c: Include ipa-inline.h.
17479 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17480 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17482 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17483 (input_overwrite_node): Do not set inline summary.
17484 (input_node): Do not stream inline summary.
17485 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17486 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17487 growth; we do not have inline parameters computed for that anyway.
17488 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17489 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17490 (inline_summary_t): New type and VECtor.
17491 (debug_inline_summary, dump_inline_summaries): Declare.
17492 (inline_summary): Use VOCtor.
17493 (estimate_edge_growth): Kill hack computing call stmt size directly.
17494 * lto-section-in.c (lto_section_name): Add inline section.
17495 * ipa-inline-analysis.c: Include lto-streamer.h
17496 (node_removal_hook_holder, node_duplication_hook_holder): New holders
17497 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17498 (inline_summary_vec): Define.
17499 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17500 dump_inline_summaries): New functions.
17501 (estimate_function_body_sizes): Properly compute size/time of outgoing
17503 (compute_inline_parameters): Alloc inline_summary; do not compute
17504 size/time of incomming calls.
17505 (estimate_edge_time): Avoid missing time summary hack.
17506 (inline_read_summary): Read inline summary info.
17507 (inline_write_summary): Write inline summary info.
17508 (inline_free_summary): Free all hooks and inline summary vector.
17509 * lto-streamer.h: Add LTO_section_inline_summary section.
17510 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17511 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17513 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17515 * tree-vectorizer.h (vect_strided_store_supported): Add a
17516 HOST_WIDE_INT argument.
17517 (vect_strided_load_supported): Likewise.
17518 (vect_permute_store_chain): Return void.
17519 (vect_transform_strided_load): Likewise.
17520 (vect_permute_load_chain): Delete.
17521 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17522 count argument. Check that the count is a power of two.
17523 (vect_strided_load_supported): Likewise.
17524 (vect_permute_store_chain): Return void. Update after above changes.
17525 Assert that the access is supported.
17526 (vect_permute_load_chain): Likewise.
17527 (vect_transform_strided_load): Return void.
17528 * tree-vect-stmts.c (vectorizable_store): Update calls after
17529 above interface changes.
17530 (vectorizable_load): Likewise.
17531 (vect_analyze_stmt): Don't check for strided powers of two here.
17533 2011-04-14 Richard Guenther <rguenther@suse.de>
17535 PR tree-optimization/48590
17536 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17537 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17538 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17539 BUILT_IN_STACK_SAVE.
17540 * tree-ssa-dce.c (propagate_necessity): Handle
17541 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17543 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
17545 * c-parser.c (c_parser_objc_class_declaration): Updated call to
17546 objc_declare_class.
17548 2011-04-14 Richard Guenther <rguenther@suse.de>
17550 * tree.h (get_object_alignment_1): Declare.
17551 * builtins.c (get_object_alignment_1): Split out worker from ...
17552 (get_object_alignment): ... here.
17553 * fold-const.c (get_pointer_modulus_and_residue): Use
17554 get_object_alignment_1.
17556 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17558 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17560 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17561 parameter. Generalise code to handle arrays as well as vectors.
17562 (vect_setup_realignment): Update accordingly.
17563 * tree-vect-stmts.c (vectorizable_store): Likewise.
17564 (vectorizable_load): Likewise.
17566 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17568 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17569 within the per-copy loop.
17571 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17573 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17576 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
17578 * doc/options.texi (Negative): Explicitly mention that the
17579 Negative chain must be circular.
17581 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
17583 * function.h (block_chainon): Declare.
17584 * function.c (block_chainon): Define.
17586 2011-04-14 Anatoly Sokolov <aesok@post.ru>
17587 Eric Weddington <eric.weddington@atmel.com>
17588 Georg-Johann Lay <avr@gjlay.de>
17590 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17592 (avr_init_builtins, avr_expand_builtin,
17593 avr_expand_delay_cycles, avr_expand_unop_builtin,
17594 avr_expand_binop_builtin ): New functions.
17595 (avr_builtin_id): New enum
17596 (struct avr_builtin_description): New struct
17597 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17598 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17600 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17601 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17602 UNSPECV_DELAY_CYCLES): new enumeration values
17603 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17604 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17605 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17606 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17607 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17608 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17609 "fmulsu"): New insns
17611 * config/avr/avr-c.c: fix line endings
17612 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17613 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17614 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17615 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17616 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17618 * doc/extend.texi (AVR Built-in Functions): New node
17619 (Target Builtins): Add documentation of AVR
17620 built-in functions.
17622 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
17625 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17626 alone. Error if non-const data has attribute progmem.
17628 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17630 * tree.h (struct tree_constructor): Include tree_typed instead of
17632 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17633 TS_TYPED instead of TS_COMMON.
17635 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
17637 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17638 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17639 (sse2_psadbw): Merge with *avx_psadbw.
17640 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17641 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17642 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17643 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17644 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17645 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17646 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17647 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17648 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17649 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17650 (ssse3_palignrti): Merge with *avx_palignrti.
17652 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17654 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17655 * tree-ssanames.c (fini_ssanames): VEC_free it.
17656 (make_ssa_name_fn): Update for VECness of free_ssanames.
17657 (release_ssa_name, release_dead_ssa_names): Likewise.
17658 * tree.h (struct tree_ssa_name): Include tree_typed instead of
17660 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17661 TS_TYPED instead of TS_COMMON.
17663 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17665 * postreload-gcse.c (gcse_after_reload_main): Add calls to
17666 statistics_counter_event.
17667 * tree-ssa-copyrename.c (stats): Define.
17668 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
17669 statistics_counter_event.
17670 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17671 (bswap_stats, widen_mul_stats): Define.
17672 (insert_reciprocals): Increment rdivs_inserted.
17673 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
17674 rfuncs_inserted. Add calls to statistics_counter_event.
17675 (execute_cse_sincos_1): Increment inserted.
17676 (execute_cse_sincos): Zeroize sincos_stats. Add call to
17677 statistics_counter_event.
17678 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
17679 of bswap_stats. Add calls to statistics_counter_event.
17680 (convert_mult_to_widen): Increment widen_mults_inserted.
17681 (convert_plusminus_to_widen): Increment maccs_inserted.
17682 (convert_mult_to_fma): Increment fmas_inserted.
17683 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
17684 calls to statistics_counter_event.
17686 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
17688 PR rtl-optimization/48455
17689 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17690 `temp_costs->mem_cost'.
17692 2011-04-13 Jan Hubicka <jh@suse.cz>
17694 * ipa-inline.h: New file.
17695 * ipa-inline-analysis.c: New file. Broken out of ...
17696 * ipa-inline.c: ... this file; update toplevel comment;
17697 include ipa-inline.h
17698 (inline_summary): Move to ipa-inline.h
17699 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17700 ipa-inline-analysis.c.
17701 (cgraph_estimate_time_after_inlining): Rename to
17702 estiamte_time_after_inlining; move to ipa-inline-analysis.c
17703 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17704 to estimate_edge_growth.
17705 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17706 rename to estimate_size_after_inlining.
17707 (cgraph_mark_inline_edge): Update for new naming convention.
17708 (cgraph_check_inline_limits): Likewise.
17709 (cgraph_edge_badness): Likewise.
17710 (cgraph_decide_recursive_inlining): Likewise.
17711 (cgraph_decide_inlining_of_small_functions): Likewise.
17712 (cgraph_decide_inlining_incrementally): Likewise.
17713 (cgraph_estimate_growth): Rename to estimate_growth; move to
17714 ipa-inline-analysis.c.
17715 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17716 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17717 (compute_inline_parameters): Likewise.
17718 (compute_inline_parameters_for_current): Likewise.
17719 (pass_inline_parameters): Likewise.
17720 (inline_indirect_intraprocedural_analysis): Likewise.
17721 (analyze_function): Rename to inline_analyze_function; likewise.
17722 (add_new_function): Move to ipa-inline-analysis.c.
17723 (inline_generate_summary): Likewise.
17724 (inline_read_summary): Likewise.
17725 (inline_write_summary): Likewise.
17726 * Makefile.in (ipa-inline-analysis.c): New file.
17728 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17730 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17731 * configure: Regenerate.
17733 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
17735 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17736 instead of tree_common.
17737 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17739 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17740 TS_TYPED rather than TS_COMMON.
17741 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17743 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
17746 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17747 r20 around calls of __tablejump_elpm__
17749 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17751 PR middle-end/48591
17752 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17754 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17756 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
17758 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17759 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17760 (cfi_vec): New typedef.
17761 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17762 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17763 (cie_cfi_vec): New static variable.
17764 (cie_cfi_head): Delete.
17765 (add_cfi): Accept a cfi_vec * as first argument. All callers and
17766 declaration changed. Use vector rather than list operations.
17767 (new_cfi): Don't initialize the dw_cfi_next field.
17768 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17769 rather than list operations.
17770 (lookup_cfa): Use vector rather than list operations.
17771 (output_cfis): New argument upto. Accept a cfi_vec rather than
17772 a dw_cfi_ref list head as argument. All callers changed.
17773 Iterate over the vector using upto as a maximum index.
17774 (output_all_cfis): New static function.
17775 (output_fde): Use vector rather than list operations. Use the
17776 new upto argument for output_cfis rather than manipulating a
17778 (dwarf2out_begin_prologue): Change initializations to match
17779 new struct members.
17780 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17781 from the vector length rather than searching for the end of a list.
17782 Use output_all_cfis.
17783 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17785 2011-04-13 Nick Clifton <nickc@redhat.com>
17787 * config/rx/rx.md (movmemsi): Do not use this pattern when
17788 volatile pointers are involved.
17790 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
17792 * config/i386/sse.md (pinsrbits): Remove.
17793 (sse2_packsswb): Merge with *avx_packsswb.
17794 (sse2_packssdw): Merge with *avx_packssdw.
17795 (sse2_packuswb): Merge with *avx_packuswb.
17796 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17797 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17798 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17799 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17800 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17801 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17802 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17803 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17804 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17805 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17806 (sse2_loadld): Merge with *avx_loadld.
17807 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17808 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17809 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17810 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17811 (vec_concatv2di): Merge with *vec_concatv2di_avx.
17813 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
17815 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17816 calling TREE_CHAIN.
17817 * print-tree.c (print_node): Likewise.
17818 * tree-inline.c (copy_tree_r): Likewise.
17819 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17820 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17821 instead of TS_COMMON.
17822 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17823 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17824 (copy_node_stat): Zero TREE_CHAIN only if necessary.
17825 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17826 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17828 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17830 (TREE_CHAIN): Check for a TS_COMMON structure.
17831 (TREE_TYPE): Check for a TS_TYPED structure.
17833 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
17835 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17836 cgraph_get_create_node instead of cgraph_node.
17838 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
17840 * c-parser.c (c_parser_initelt): Updated call to
17841 objc_build_message_expr.
17842 (c_parser_postfix_expression): Likewise.
17844 2011-04-12 Kai Tietz <ktietz@redhat.com>
17846 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17847 MASK_MS_BITFIELD_LAYOUT bit.
17849 2011-04-12 Jakub Jelinek <jakub@redhat.com>
17851 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17852 assert it is always true.
17853 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17856 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
17858 * c-parser.c (c_lex_one_token): Rewritten conditional used when
17859 compiling Objective-C to be more efficient.
17861 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
17863 * opts-common.c (decode_cmdline_options_to_array): Remove variable
17866 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17868 * recog.h, genoutput.c, optabs.c: Revert last patch.
17870 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17873 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17875 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17877 * recog.h (insn_operand_data): Add an "allows_mem" field.
17878 * genoutput.c (output_operand_data): Initialize it.
17879 * optabs.c (maybe_legitimize_operand_same_code): New function.
17880 (maybe_legitimize_operand): Use it when matching the original
17883 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17885 * genpreds.c (process_define_predicate): Move most processing
17886 to gensupport.c. Continue to validate the expression.
17887 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17888 (process_define_predicate): Move processing to gensupport.c.
17889 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17890 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17891 (compute_predicate_codes): Moved from genrecog.c. Add lineno
17893 (valid_predicate_name_p): New function, split out from old
17894 genpreds.c:process_define_predicate.
17895 (process_define_predicate): New function, combining code from
17896 old genpreds.c and genrecog.c functions.
17897 (process_rtx): Call it for DEFINE_PREDICATE and
17898 DEFINE_SPECIAL_PREDICATE.
17900 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
17902 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17903 size of a '%A' memory reference.
17904 (T_DREG, T_QREG): New neon_builtin_type_bits.
17905 (arm_init_neon_builtins): Assert that the load and store operands
17906 are neon_struct_operands.
17907 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17908 (NEON_ARG_MEMORY): New builtin_arg.
17909 (neon_dereference_pointer): New function.
17910 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17911 Handle NEON_ARG_MEMORY.
17912 (arm_expand_neon_builtin): Update after above interface changes.
17913 Use NEON_ARG_MEMORY for loads and stores.
17914 * config/arm/predicates.md (neon_struct_operand): New predicate.
17915 * config/arm/iterators.md (V_two_elem): Tweak formatting.
17916 (V_three_elem): Use BLKmode for accesses that have no associated mode.
17917 (V_four_elem): Tweak formatting.
17918 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17919 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17920 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17921 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17922 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17923 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17924 (neon_vst4<mode>): Replace pointer operand with a memory operand.
17925 Use %A in the output template.
17926 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17927 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17928 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17929 the width of the memory access. Remove post-increment.
17930 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17932 2011-04-12 Nick Clifton <nickc@redhat.com>
17934 * config/v850/v850.c (expand_prologue): Do not use the CALLT
17935 instruction for interrupt handlers if the target is the basic V850
17937 (expand_epilogue): Likewise.
17939 2011-04-12 Jakub Jelinek <jakub@redhat.com>
17941 PR rtl-optimization/48549
17942 * combine.c (propagate_for_debug): Also stop after BB_END of
17943 this_basic_block. Process LAST and just stop processing after it.
17944 (combine_instructions): If last_combined_insn has been deleted,
17945 set last_combined_insn to its PREV_INSN.
17947 2011-04-12 Richard Guenther <rguenther@suse.de>
17949 PR tree-optimization/46076
17950 * gimple.h (struct gimple_statement_call): Add fntype field.
17951 (gimple_call_fntype): Adjust.
17952 (gimple_call_set_fntype): New function.
17953 * gimple.c (gimple_build_call_1): Set the call function type.
17954 * gimplify.c (gimplify_call_expr): Preserve the function
17955 type the frontend used for the call.
17956 (gimplify_modify_expr): Likewise.
17957 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17959 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17961 * tree-ssa.c (useless_type_conversion_p): Function pointer
17962 conversions are useless.
17964 2011-04-12 Martin Jambor <mjambor@suse.cz>
17966 * cgraph.h (cgraph_node): Remove function declaration.
17967 (cgraph_create_node): Declare.
17968 (cgraph_get_create_node): Likewise.
17969 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17970 Updated all callers.
17971 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17972 the decl does not already exist. Call cgraph_get_create_node instead
17974 (cgraph_get_create_node): New function.
17975 (cgraph_same_body_alias): Update comment.
17976 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17977 assert it does not return NULL.
17978 (cgraph_update_edges_for_call_stmt): Likewise.
17979 (cgraph_clone_edge): Likewise.
17980 (cgraph_create_virtual_clone): Likewise.
17981 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17982 instead of cgraph_node.
17983 (cgraph_add_new_function): Call cgraph_create_node or
17984 cgraph_get_create_node instead of cgraph_node.
17985 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17986 instead of cgraph_node.
17987 (record_eh_tables): Likewise.
17988 (mark_address): Likewise.
17989 (mark_load): Likewise.
17990 (build_cgraph_edges): Call cgraph_get_create_node instead
17992 (rebuild_cgraph_edges): Likewise.
17993 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17994 instead of cgraph_node.
17995 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17997 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17998 cgraph_create_node instead of cgraph_node.
17999 * c-decl.c (finish_function): Call cgraph_get_create_node instead
18001 * lto-cgraph.c (input_node): Likewise.
18002 * lto-streamer-in.c (input_function): Likewise.
18003 * varasm.c (mark_decl_referenced): Likewise.
18004 (assemble_alias): Likewise.
18006 2011-04-12 Martin Jambor <mjambor@suse.cz>
18008 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18009 instead of cgraph_node and assert it does not return NULL.
18010 * lto-streamer-in.c (lto_read_body): Likewise.
18011 * omp-low.c (new_omp_context): Likewise.
18012 (create_task_copyfn): Likewise.
18013 * tree-emutls.c (lower_emutls_function_body): Likewise.
18014 * matrix-reorg.c (transform_allocation_sites): Likewise.
18016 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18019 * c-typeck.c (build_asm_expr): Error out on attempts to use
18020 void type outputs or inputs for constraints that allow reg or
18021 don't allow memory.
18023 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
18024 Richard Earnshaw <rearnsha@arm.com>
18027 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18028 to use sign-magnitude offsets. Reject unsupported unaligned
18029 cases. Add detailed description in comments.
18030 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18031 condition from TARGET_32BIT to TARGET_ARM.
18033 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
18035 * tree.h (struct typed_tree): New.
18036 (struct tree_common): Include it instead of tree_base.
18037 (TREE_TYPE): Update for new location of type field.
18038 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18039 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18040 (union tree_node): Add typed field.
18041 * treestruct.def (TS_TYPED): New.
18042 * lto-streamer.c (check_handled_ts_structures): Handle it.
18043 * tree.c (MARK_TS_TYPED): New macro.
18044 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18046 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
18048 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18049 (force_nonfallthru): Do not alter the loop nest if no basic block
18052 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18054 * config/i386/sse.md (VI): New mode iterator.
18055 (SSEMODEI): Remove.
18056 (AVX256MODEI): Ditto.
18057 (AVXMODEF4P): Ditto.
18058 (avxvecpsmode): Ditto.
18059 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
18060 (sse2_andnot<mode>3): New expander.
18061 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18062 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
18063 (<any_logic:code><mode>3): Use VI mode iterator.
18064 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18065 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
18066 (*andnottf3): Handle AVX three-operand constraints.
18067 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18069 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18070 Robert Millan <rmh@gnu.org>
18072 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18073 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18074 GNU_USER_DYNAMIC_LINKER64): Define.
18075 (REG_NAME): Don't undefine.
18076 (MD_UNWIND_SUPPORT): Undefine.
18077 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18078 (REG_NAME): Don't undefine.
18079 (MD_UNWIND_SUPPORT): Undefine.
18080 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18082 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18084 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18085 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18087 2011-04-11 Xinliang David Li <davidxl@google.com>
18089 * value-profile.c (check_ic_target): New function.
18090 (gimple_ic_transform): Sanity check indirect call target.
18091 * gimple-low.c (gimple_check_call_args): Interface change.
18092 (gimple_check_call_matching_types): New function.
18093 * tree-inline.c (tree_can_inline_p): Call new function.
18095 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
18097 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18098 tree-pretty-print.h & realmpfr.h.
18100 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
18102 PR middle-end/48464
18103 * ira.c (setup_pressure_classes): Fix typo in loop condition.
18104 (setup_allocno_and_important_classes): Ditto.
18106 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18108 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18109 GNU_USER_DYNAMIC_LINKER.
18110 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18112 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18113 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18114 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18115 GNU_USER_TARGET_OS_CPP_BUILTINS.
18116 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18117 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18118 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18119 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18120 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18121 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18122 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18123 GNU_USER_TARGET_OS_CPP_BUILTINS.
18124 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18125 GNU_USER_DYNAMIC_LINKER.
18126 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18127 GNU_USER_TARGET_OS_CPP_BUILTINS.
18128 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18129 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18130 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18131 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18132 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18133 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18134 GNU_USER_DYNAMIC_LINKER64): Remove.
18135 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18136 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18137 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18138 GNU_USER_DYNAMIC_LINKER.
18139 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18140 GNU_USER_TARGET_OS_CPP_BUILTINS.
18141 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18142 GNU_USER_TARGET_OS_CPP_BUILTINS.
18143 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18144 to GNU_USER_TARGET_OS_CPP_BUILTINS.
18145 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18146 GNU_USER_TARGET_OS_CPP_BUILTINS.
18147 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18148 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18149 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18150 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18151 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18152 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18153 GNU_USER_DYNAMIC_LINKER.
18154 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18155 GNU_USER_TARGET_OS_CPP_BUILTINS.
18156 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18158 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18159 GNU_USER_DYNAMIC_LINKER.
18160 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18161 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18162 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
18163 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18164 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18165 GNU_USER_DYNAMIC_LINKER.
18166 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18167 GNU_USER_DYNAMIC_LINKERN32.
18168 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18169 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
18170 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
18171 GNU_USER_DYNAMIC_LINKER32.
18172 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18173 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18174 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18175 GNU_USER_DYNAMIC_LINKER.
18176 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18177 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18178 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18179 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18180 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18181 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
18182 GNU_USER_DYNAMIC_LINKER32.
18183 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18184 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
18185 GNU_USER_DYNAMIC_LINKER.
18186 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
18187 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18188 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18189 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
18190 GNU_USER_DYNAMIC_LINKER64.
18191 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
18192 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18193 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18194 GNU_USER_DYNAMIC_LINKER.
18195 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
18196 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18197 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18198 GNU_USER_DYNAMIC_LINKER.
18199 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
18200 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18201 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
18202 GNU_USER_DYNAMIC_LINKER32.
18203 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18204 GNU_USER_DYNAMIC_LINKER64.
18205 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
18206 GNU_USER_DYNAMIC_LINKER64.
18207 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
18208 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18209 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
18210 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18211 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18213 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18215 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
18216 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
18217 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
18218 GNU_USER_DYNAMIC_LINKER.
18219 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18220 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
18221 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
18222 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
18223 GNU_USER_DYNAMIC_LINKER64.
18224 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
18225 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
18226 GNU_USER_LINK_EMULATION.
18227 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
18228 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
18229 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
18230 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
18231 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
18232 CPP_SPEC, CC1_SPEC): Remove.
18233 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
18234 (GNU_USER_DYNAMIC_LINKER): Define.
18235 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
18236 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
18237 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
18238 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
18239 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
18240 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
18241 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18242 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
18243 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
18244 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
18245 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
18246 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
18247 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
18248 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
18249 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
18250 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
18251 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18252 GNU_USER_DYNAMIC_LINKER.
18253 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18254 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
18255 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18256 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
18257 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
18258 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
18259 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
18260 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
18261 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
18262 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
18264 2011-04-11 Kai Tietz <ktietz@redhat.com>
18268 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
18269 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
18271 (ix86_is_msabi_thiscall): Removed.
18272 (ix86_is_type_thiscall): Likewise.
18273 (ix86_get_callcvt): New function.
18274 (ix86_comp_type_attributes): Simplify check.
18275 (ix86_function_regparm): Use ix86_get_callcvt for calling
18276 convention attribute checks.
18277 (ix86_return_pops_args): Likewise.
18278 (ix86_static_chain): Likewise.
18279 (x86_this_parameter): Likewise.
18280 (x86_output_mi_thunk): Likewise.
18281 (ix86_function_type_abi): Optimize check for types without attributes.
18282 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
18283 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
18284 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
18286 (IX86_BASE_CALLCVT): Helper macro.
18287 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18288 Use ix86_get_callcvt for calling convention attribute checks and avoid
18289 symbol-decoration for stdcall in TARGET_RTD case.
18290 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
18292 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
18295 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18297 * config/i386/sse.md (VI_128): New mode iterator.
18298 (VI12_128): Rename from SSEMODE12.
18299 (VI14_128): Rename from SSEMODE14.
18300 (VI124_128): New mode iterator.
18301 (VI24_128): Rename from SSEMODE248.
18302 (VI248_128): Rename from SSEMODE248.
18303 (SSEMODE124C8): Remove.
18304 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18305 (*sse2_<plusminus_insn><mode>3): Merge with
18306 *avx_<plusminus_insn><mode>3.
18307 (*mulv8hi3): Merge with *avx_mulv8hi3.
18308 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
18309 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
18310 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
18311 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
18312 (ashr<mode>3): Merge with *avx_ashr<mode>3.
18313 (lshr<mode>3): Merge with *avx_lshr<mode>3.
18314 (ashl<mode>3): Merge with *avx_ashl<mode>3.
18315 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
18316 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
18317 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18318 (*<smaxmin:code>v8hi3): Ditto.
18319 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
18320 (*<smaxmin:code>v16qi3): Ditto.
18321 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
18322 (*sse2_eq<mode>3): Ditto.
18323 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
18324 (*sse2_gt<mode>3): Ditto.
18325 (vcondv2di): Split out of vcond<mode>.
18326 (vconduv2di): Split out of vcondu<mode>.
18328 2011-04-11 Richard Guenther <rguenther@suse.de>
18330 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
18331 before calling tree_low_cst.
18333 2011-04-11 Richard Guenther <rguenther@suse.de>
18335 * stor-layout.c (layout_type): Compute all array index size operations
18336 in the original type.
18337 (initialize_sizetypes): Add comment.
18338 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
18340 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18342 * common.opt (Tbss=, Tdata=, Ttext=): New options.
18344 2011-04-11 Martin Jambor <mjambor@suse.cz>
18346 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
18347 of cgraph_node, handle NULL return value.
18348 (cgraph_global_info): Likewise.
18349 (cgraph_rtl_info): Likewise.
18350 * tree-inline.c (estimate_num_insns): Likewise.
18351 * gimplify.c (unshare_body): Likewise.
18352 (unvisit_body): Likewise.
18353 (gimplify_body): Likewise.
18354 * predict.c (optimize_function_for_size_p): Likewise.
18355 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
18356 (call_may_clobber_ref_p_1): Likewise.
18357 * varasm.c (function_section_1): Likewise.
18358 (assemble_start_function): Likewise.
18360 2011-04-11 Martin Jambor <mjambor@suse.cz>
18362 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
18364 * final.c (rest_of_clean_state): Likewise.
18365 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
18366 * passes.c (pass_init_dump_file): Likewise.
18367 (execute_all_ipa_transforms): Likewise.
18368 (function_called_by_processed_nodes_p): Likewise.
18369 * predict.c (maybe_hot_frequency_p): Likewise.
18370 (probably_never_executed_bb_p): Likewise.
18371 (compute_function_frequency): Likewise.
18372 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
18373 (unnest_nesting_tree_1): Likewise.
18374 (lower_nested_functions): Likewise.
18375 * tree-optimize.c (execute_fixup_cfg): Likewise.
18376 (tree_rest_of_compilation): Likewise.
18377 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
18378 * tree-sra.c (ipa_early_sra): Likewise.
18379 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18380 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
18381 * ipa.c (record_cdtor_fn): Likewise.
18382 * ipa-inline.c (cgraph_early_inlining): Likewise.
18383 (compute_inline_parameters_for_current): Likewise.
18384 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
18385 * ipa-pure-const.c (local_pure_const): Likewise.
18386 * ipa-split.c (split_function): Likewise.
18387 (execute_split_functions): Likewise.
18388 * cgraphbuild.c (build_cgraph_edges): Likewise.
18389 (rebuild_cgraph_edges): Likewise.
18390 (cgraph_rebuild_references): Likewise.
18391 (remove_cgraph_callee_edges): Likewise.
18392 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18393 (verify_cgraph_node): Likewise.
18394 (cgraph_analyze_functions): Likewise.
18395 (cgraph_preserve_function_body_p): Likewise.
18396 (save_inline_function_body): Likewise.
18397 (save_inline_function_body): Likewise.
18398 * tree-inline.c (copy_bb): Likewise.
18399 (optimize_inline_calls): Likewise.
18401 2011-04-11 Martin Jambor <mjambor@suse.cz>
18403 PR tree-optimization/48195
18404 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18405 ipa_check_create_edge_args.
18406 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18407 ipa_check_create_edge_args.
18408 * ipa-inline.c (inline_generate_summary): Do not call
18409 ipa_check_create_node_params and ipa_check_create_edge_args.
18410 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18411 ipa_check_create_edge_args.
18413 2011-04-09 Anatoly Sokolov <aesok@post.ru>
18415 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18417 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18418 * function.c (record_hard_reg_sets): Likewise.
18419 * ira.c (compute_regs_asm_clobbered): Likewise.
18420 * sched-deps.c (sched_analyze_1): Likewise.
18421 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18423 2011-04-09 Xinliang David Li <davidxl@google.com>
18425 PR tree-optimization/PR48484
18426 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18427 has_valid_pred lazily
18429 2011-04-09 Duncan Sands <baldrick@free.fr>
18431 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18433 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
18435 * combine.c (combine_validate_cost): Adjust comments. Set registered
18436 cost of I0 to zero at the end, if any.
18438 2011-04-08 Xinliang David Li <davidxl@google.com>
18440 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18441 to insane profile data.
18443 2011-04-08 Xinliang David Li <davidxl@google.com>
18445 * ipa-cp.c (ipcp_update_profiling): Correct
18446 negative scale factor due to insane profile data.
18448 2011-04-08 Xinliang David Li <davidxl@google.com>
18450 * final.c (dump_basic_block_info): New function.
18451 (final): Dump basic block.
18452 (final_scan_insn): Remove old dump.
18454 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
18457 * config.gcc (i386-*-freebsd): Disable unwind table generation for
18460 2011-04-08 Michael Matz <matz@suse.de>
18462 PR middle-end/48389
18463 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18465 (rebuild_jump_labels): Call rebuild_jump_labels_1.
18466 * rtl.h (rebuild_jump_labels_chain): Declare.
18467 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18468 insns inserted on edges.
18470 2011-04-08 Joseph Myers <joseph@codesourcery.com>
18472 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18473 * config/arm/arm-arches.def: New.
18474 * config/arm/arm-opts.h: New.
18475 * config/arm/genopt.sh: New.
18476 * config/arm/arm-tables.opt: New (generated).
18477 * config/arm/arm.c (arm_handle_option, arm_target_help,
18478 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18479 (all_architectures): Get most table contents from arm-arches.def.
18480 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18481 arm_selected_tune here.
18482 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18483 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18484 (march=, mcpu=, mtune=): Use Enum and Var.
18485 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18486 (arm.o): Update dependencies.
18488 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
18490 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18492 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18493 (write_typed_alloc_defns): Likewise.
18494 (main): Calls write_typed_alloc_defns with output_header.
18496 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
18498 PR inline-asm/48435
18499 * ira-color.c (setup_profitable_hard_regs): Add comments.
18500 Don't take prohibited hard regs into account.
18501 (setup_conflict_profitable_regs): Rename to
18502 get_conflict_profitable_regs.
18503 (check_hard_reg_p): Check prohibited hard regs.
18505 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
18507 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18508 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18509 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18511 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18514 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18515 move from floating point to shift amount register.
18516 (emit_move_sequence): Remove secondary reload support for floating
18517 point to shift amount amount register copies.
18518 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18519 amount register copies.
18520 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18521 register, return false if mode isn't a scalar integer mode.
18522 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18524 2011-04-08 Richard Guenther <rguenther@suse.de>
18526 * gimple.c (gimple_call_flags): Remove kludge.
18528 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18530 * sel-sched.c (sel_region_init): Move call to
18531 sel_setup_region_sched_flags after setup_current_loop_nest.
18533 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
18535 PR rtl-optimization/48272
18536 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18537 init_insn_reg_pressure_info. Adjust a caller.
18538 * sched-int.h (init_insn_reg_pressure_info): Declare.
18539 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18540 when sched-pressure is enabled.
18542 2011-04-08 Richard Guenther <rguenther@suse.de>
18544 * gimple.c (gimple_set_modified): Do not queue calls to
18545 MODIFIED_NORETURN_CALLS here ...
18546 * tree-ssa-operands.c (update_stmt_operands): ... but here.
18548 2011-04-08 Richard Guenther <rguenther@suse.de>
18551 * toplev.c (lang_dependent_init): Do not open asm_out_file
18552 in WPA mode, nor perform debug machinery initialization.
18553 (finalize): Do not unlink asm_out_file in WPA mode.
18555 2011-04-08 Richard Guenther <rguenther@suse.de>
18557 * gimple.h (gimple_call_fntype): New function.
18558 (gimple_call_return_type): Use it.
18559 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18560 * gimple-low.c (gimple_check_call_args): Likewise.
18561 * gimple.c (gimple_call_flags): Likewise.
18562 (gimple_call_arg_flags): Likewise.
18563 (gimple_call_return_flags): Likewise.
18564 * tree-cfg.c (verify_gimple_call): Likewise.
18565 (do_warn_unused_result): Likewise.
18566 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18567 * value-prof.c (gimple_ic_transform): Fix fndecl check.
18569 2011-04-08 Dmitry Melnik <dm@ispras.ru>
18571 PR rtl-optimization/48235
18572 * sel-sched.c (code_motion_process_successors): Recompute the last
18573 insn in basic block if control flow changed.
18574 (code_motion_path_driver): Ditto. Recompute the first insn as well.
18575 Update condition for ilist_remove.
18577 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18579 PR rtl-optimization/48302
18580 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18581 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
18582 it to record added preheader blocks.
18583 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
18584 on to sel_add_loop_preheaders.
18585 (sel_region_init): Move call to setup_current_loop_nest after
18588 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18591 * cfgloop.h (loop_has_exit_edges): New helper.
18592 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18594 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18595 that have no exit edges.
18597 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
18599 PR rtl-optimization/48442
18600 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
18601 all callers. Adjust assert.
18603 2011-04-08 Jakub Jelinek <jakub@redhat.com>
18605 PR tree-optimization/48377
18606 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18607 is_packed to true even for types with smaller TYPE_ALIGN than
18610 2011-04-08 Richard Guenther <rguenther@suse.de>
18613 * doc/tm.texi: Re-generate.
18615 2011-04-08 Wei Guozhi <carrot@google.com>
18618 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18619 * config/arm/arm.c (arm_attr_length_push_multi): New function.
18620 * config/arm/arm.md (*push_multi): Change the length computation to
18623 2011-04-08 Anatoly Sokolov <aesok@post.ru>
18625 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18626 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18627 * doc/tm.texi: Regenerate.
18628 * system.h (ASM_OUTPUT_BSS): Poison.
18629 * varasm.c (asm_output_bss): Remove function.
18630 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18632 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18633 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18634 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18635 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18637 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18639 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18641 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18643 2011-04-07 Joseph Myers <joseph@codesourcery.com>
18645 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18648 2011-04-07 Joseph Myers <joseph@codesourcery.com>
18650 * config/m68k/m68k.c (m68k_handle_option): Don't handle
18651 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18652 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18654 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18655 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18656 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18657 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18658 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18659 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18660 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18661 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18662 options. Don't map other m68k options manually. Don't handle
18663 old-style options as canonical.
18664 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18665 * doc/install.texi (m68k-*-*): Document binutils version requirement.
18667 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
18669 * basic-block.h (force_nonfallthru): Move to...
18670 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18671 (force_nonfallthru): ...here.
18672 * cfghooks.c (force_nonfallthru): New function.
18673 * cfgrtl.c (force_nonfallthru): Rename into...
18674 (rtl_force_nonfallthru): ...this.
18675 (commit_one_edge_insertion): Do not set AUX field.
18676 (commit_edge_insertions): Do not discover new basic blocks.
18677 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18678 (cfg_layout_rtl_cfg_hooks): Likewise.
18679 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18680 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
18681 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18683 2011-04-07 Anatoly Sokolov <aesok@post.ru>
18685 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18688 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
18690 * config/i386/sse.md: Update copyright year.
18691 (avxcvtvecmode): Remove.
18692 (sse_movhlps): Merge with *avx_movhlps.
18693 (sse_movlhps): Merge with *avx_movlhps.
18694 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18695 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18696 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18697 (sse_loadhps): Merge with *avx_loadhps.
18698 (sse_storelps): Merge with *avx_storelps.
18699 (sse_loadlps): Merge with *avx_loadlps.
18700 (sse_movss): Merge with *avx_movss.
18701 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18702 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18703 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18704 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18705 (vec_set<mode>_0): Ditto.
18706 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18707 (sse4_1_insertps): Merge with *avx_insertps.
18708 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18709 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18710 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18711 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18712 (sse2_storehpd): Merge with *avx_storehpd.
18713 (sse2_loadhpd): Merge with *avx_loadhpd.
18714 (sse2_loadlpd): Merge with *avx_loadlpd.
18715 (sse2_movsd): Merge with *avx_movsd.
18716 (*vec_concatv2df): Merge with *vec_concatv2df.
18718 2011-04-07 Jakub Jelinek <jakub@redhat.com>
18721 * combine.c (combine_instructions): Add last_combined_insn,
18722 update it if insn is after it, pass it to all try_combine calls.
18723 (try_combine): Add last_combined_insn parameter, pass it instead of
18724 i3 to propagate_for_debug.
18726 2011-04-07 Nick Clifton <nickc@redhat.com>
18728 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18729 to handle MDR <-> data register transfers.
18730 (movhi_internal): Likewise.
18732 2011-04-07 Alan Modra <amodra@gmail.com>
18734 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18735 previous stack info.
18737 2011-04-07 Tom de Vries <tom@codesourcery.com>
18740 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
18741 flow_find_cross_jump. Swap variables to implement backward replacement.
18742 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18744 2011-04-07 Tom de Vries <tom@codesourcery.com>
18747 * cfgcleanup.c (walk_to_nondebug_insn): New function.
18748 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
18750 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18751 src1 or src2. Redirect edges to the last basic block. Update
18752 frequency and count on multiple basic blocks in case of fallthru.
18754 2011-04-07 Tom de Vries <tom@codesourcery.com>
18757 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18759 (old_insns_match_p): Change return type. Replace return false/true
18760 with return dir_none/dir_both. Use can_replace_by.
18761 (flow_find_cross_jump): Add dir_p parameter. Init replacement
18762 direction from dir_p. Register replacement direction in dir, last_dir
18763 and afterlast_dir. Handle new return type of old_insns_match_p using
18764 merge_dir. Return replacement direction in dir_p.
18765 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18766 return type of old_insns_match_p.
18767 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18768 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18769 flow_find_cross_jump.
18770 * basic-block.h (enum replace_direction): New type.
18771 (flow_find_cross_jump): Add parameter to declaration.
18773 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
18775 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18776 (AVXMODEDCVTPS2DQ): Ditto.
18777 (VEC_FLOAT_MODE): Ditto.
18778 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
18779 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18780 (<any_logic:code><mode>3): Use VF mode iterator.
18781 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18782 Use VF mode iterator.
18783 (copysign<mode>3): Use VF mode iterator.
18784 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
18785 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18786 (*<any_logic:code><MODEF:mode>3): Merge with
18787 *avx_<any_logic:code><MODEF:mode>3.
18788 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18789 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18790 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18791 (avx_cvtdq2ps<avxmodesuffix>): Remove.
18792 (sse2_cvtdq2ps): Use %v modifier.
18793 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18794 (avx_cvtps2dq<avxmodesuffix>): Remove.
18795 (sse2_cvtps2dq): Use %v modifier.
18796 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18797 (avx_cvttps2dq<avxmodesuffix>): Remove.
18798 (sse2_cvttps2dq): Use %v modifier.
18799 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18800 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18801 (sse2_cvtsd2siq): Fix insn template.
18802 (sse2_cvtsd2siq_2): Ditto.
18803 (sse2_cvttsd2siq): Ditto.
18804 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18805 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18807 2011-04-06 Joseph Myers <joseph@codesourcery.com>
18809 * gcov-io.c: Use GCC Runtime Library Exception.
18811 2011-04-06 Jakub Jelinek <jakub@redhat.com>
18814 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18815 as base_reg whatever register reg has been eliminated to, instead
18816 of hardcoding STACK_POINTER_REGNUM.
18818 2011-04-06 Joseph Myers <joseph@codesourcery.com>
18820 * doc/tm.texi.in: Document C target hooks as separate from general
18822 * doc/tm.texi: Regenerate.
18823 * genhooks.c (struct hook_desc): Add docname field.
18824 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
18826 (hook_array): Include c-target.def.
18827 (emit_documentation): Use docname field in output.
18828 (emit_init_macros): Take docname argument. Only emit definitions
18829 for hooks matching docname.
18830 (main): Expect additional arguments in all cases. Pass argument
18831 to emit_init_macros.
18832 * target.def: Move initial macro definitions and comments to
18833 target-hooks-macros.h.
18834 (gcc_targetcm): Move to c-family/c-target.def.
18835 * target.h (targetcm): Move declaration to c-family/c-target.h.
18836 * targhooks.c (default_handle_c_option): Move to
18838 * targhooks.h (default_handle_c_option): Move declaration to
18839 c-family/c-common.h.
18840 * target-hooks-macros.h: New file.
18841 * config.gcc (target_has_targetcm): Define and use to add to
18842 c_target_objs and cxx_target_objs.
18843 * config/default-c.c: New file.
18844 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18845 of target.h and target-def.h.
18846 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18847 (darwin_objc_construct_string, darwin_cfstring_ref_p,
18848 darwin_check_cfstring_format_arg): Make static.
18849 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18850 TARGET_STRING_OBJECT_REF_TYPE_P,
18851 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18852 * config/darwin-protos.h (darwin_objc_construct_string,
18853 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18855 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18856 TARGET_STRING_OBJECT_REF_TYPE_P,
18857 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18858 * config/t-darwin (darwin-c.o): Update dependencies.
18859 * system.h (TARGET_HAS_TARGETCM): Poison.
18860 * Makefile.in (TARGET_H): Update.
18861 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18862 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18863 (default-c.o): New target.
18864 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18865 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18866 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
18868 (build/genhooks.o): Update dependencies.
18870 2011-04-06 Richard Guenther <rguenther@suse.de>
18872 * ipa-inline.c (enum inlining_mode): Remove.
18873 (cgraph_flatten): Use some other token.
18874 (cgraph_edge_early_inlinable_p): New function, split out from ...
18875 (cgraph_perform_always_inlining): New function, split out from ...
18876 (cgraph_decide_inlining_incrementally): ... here.
18877 (cgraph_mark_inline_edge): Adjust.
18878 (cgraph_early_inlining): Re-structure.
18879 (pass_early_inline): Require SSA form.
18881 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
18882 Julian Brown <julian@codesourcery.com>
18883 Mark Shinwell <shinwell@codesourcery.com>
18885 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18886 LO_REGS only for Thumb-1.
18887 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18888 be used in short instructions when optimising for size on Thumb-2.
18890 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
18892 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18893 associated with user returns to be preserved.
18895 2011-04-06 Tristan Gingold <gingold@adacore.com>
18897 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18898 symbol_queue_size, DBXOUT_DECR_NESTING,
18899 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18900 if XCOFF_DEBUGGING_INFO.
18902 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
18904 * config/i386/i386.md (attribute isa): New.
18905 (attribute enabled): New.
18906 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18907 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18908 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18909 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18910 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18911 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18912 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18913 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18915 * config/i386/sse.md (VF): New mode iterator.
18919 (SSEMODEF4): Remove.
18920 (attribute sse): Handle V8SF and V4DF modes.
18921 (<absneg:code><mode>2): Use VF mode iterator.
18922 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
18924 (<plusminus_insn><mode>3): Use VF mode iterator.
18925 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18926 Use VF mode iterator.
18927 (<sse>_vm<plusminus_insn><mode>3): Merge with
18928 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
18929 (mul<mode>3): Use VF mode iterator.
18930 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
18931 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
18933 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18934 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18935 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
18936 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
18938 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18939 Use VF1 mode iterator.
18940 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18941 (sqrt<VF2:mode>2): New expander.
18942 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18943 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18944 and sqrtv2df2. Use VF mode iterator.
18945 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
18947 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18948 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18949 Use VF1 mode iterator.
18950 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18951 (<smaxmin:code><mode>3): Use VF mode iterator.
18952 (*<smaxmin:code><mode>3_finite): Merge with
18953 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
18954 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18955 (<sse>_vm<smaxmin:code><mode>2): Merge with
18956 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
18957 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
18959 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
18961 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18962 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18963 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18964 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18965 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
18967 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18968 Use VF_128 mode iterator.
18969 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
18971 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
18972 VF_128 mode iterator.
18973 (vcond<mode>): Use VF mode iterator.
18974 * config/i386/predicates.md (sse_comparison_operator): Merge with
18975 avx_comparison_float_operator. Do not declare as special_predicate.
18976 * config/i386/i386.c (struct builtin_description): Update for renamed
18978 (ix86_expand_args_builtin): Ditto.
18979 (ix86_expand_sse_compare_mask): Ditto.
18981 2011-04-06 Richard Guenther <rguenther@suse.de>
18983 * tree-inline.c (estimate_num_insns): For calls simply account
18984 for all passed arguments and a used return value.
18986 2011-04-06 Richard Guenther <rguenther@suse.de>
18988 PR tree-optimization/47663
18989 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18990 call_stmt_time fields.
18991 (cgraph_edge_inlinable_p): Declare.
18992 (cgraph_edge_recursive_p): New inline function.
18993 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18994 (cgraph_clone_edge): Copy it.
18995 * ipa-inline.c (cgraph_estimate_edge_time): New function.
18996 Account for call stmt time.
18997 (cgraph_estimate_time_after_inlining): Take edge argument.
18998 (cgraph_estimate_edge_growth): Account call stmt size.
18999 (cgraph_estimate_size_after_inlining): Take edge argument.
19000 (cgraph_mark_inline_edge): Adjust.
19001 (cgraph_check_inline_limits): Likewise.
19002 (cgraph_recursive_inlining_p): Remove.
19003 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19004 (cgraph_decide_recursive_inlining): Take edge argument and
19006 (cgraph_decide_inlining_of_small_functions): Do not avoid
19007 diags for recursive inlining here.
19008 (cgraph_flatten): Adjust.
19009 (cgraph_decide_inlining_incrementally): Likewise.
19010 (estimate_function_body_sizes): Remove call cost handling.
19011 (compute_inline_parameters): Initialize caller edge call costs.
19012 (cgraph_estimate_edge_growth): New function.
19013 (cgraph_estimate_growth): Use it.
19014 (cgraph_edge_badness): Likewise.
19015 (cgraph_check_inline_limits): Take an edge argument.
19016 (cgraph_decide_inlining_of_small_functions): Adjust.
19017 (cgraph_decide_inlining): Likewise.
19018 * tree-inline.c (estimate_num_insns): Only account for call
19019 return value if it is used.
19020 (expand_call_inline): Avoid diagnostics on recursive inline
19022 * lto-cgraph.c (lto_output_edge): Output edge call costs.
19023 (input_edge): Input edge call costs.
19025 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19027 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19029 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
19031 * doc/invoke.texi (Spec Files): Fix typo.
19033 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19035 * profile.c (branch_prob): Move declaration of local variable. Remove
19036 obsolete ??? comment. Expand the location explicitly instead of using
19037 the LOCATION_FILE and LOCATION_LINE macros.
19039 2011-04-06 Wei Guozhi <carrot@google.com>
19042 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19043 (arm_cond_branch): Likewise.
19044 (arm_cond_branch_reversed): Likewise.
19045 (arm_jump): Likewise.
19046 (push_multi): Likewise.
19047 * config/arm/constraints.md (Py): New constraint.
19049 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19052 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19054 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19055 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19056 #ifdef DBX_DEBUGGING_INFO.
19058 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
19061 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19062 if old and new states differ.
19064 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19066 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19067 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19068 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19069 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19070 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19071 mcfv4e): Use Alias.
19072 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19073 ColdFire options to -mcpu= options.
19075 2011-04-05 Jeff Law <law@redhat.com>
19077 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19078 check if BB is a successor of LOOP->header and return
19079 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19081 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19083 * cprop.c (struct reg_use): Remove.
19084 (reg_use_table): Make an array of RTX.
19085 (find_used_regs, constprop_register, local_cprop_pass,
19086 bypass_block): Simplify users of reg_use_table.
19087 (cprop_insn): Likewise. Iterate if copy propagation succeeded
19088 on one of the uses found by find_used_regs.
19090 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19093 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19096 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19098 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19100 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19102 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19104 PR middle-end/48441
19105 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19107 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19109 * combine.c: Include obstack.h.
19110 (struct insn_link): Define.
19111 (uid_log_links): Adjust type.
19112 (FOR_EACH_LOG_LINK): New macro.
19113 (insn_link_obstack): Declare.
19114 (alloc_insn_link): Define.
19115 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
19116 type of link variables.
19117 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19118 (try_combine, record_promoted_values, distribute_notes): Likewise.
19119 (distribute_links): Likewise. Tweak prototype.
19120 (clear_log_links): Delete.
19121 (adjust_for_new_dest): Call alloc_insn_link.
19122 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19124 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19126 * gcse.c (modify_mem_list): Convert to an array of VECs.
19127 (canon_modify_mem_list, compute_transp): Tweak formatting.
19128 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
19129 (load_killed_in_block_p): Likewise.
19130 (record_last_mem_set_info): Likewise.
19131 (clear_modify_mem_tables): Likewise.
19133 2011-04-05 Tom de Vries <tom@codesourcery.com>
19135 PR middle-end/48461
19136 * function.c (emit_use_return_register_into_block): Only define if
19139 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
19141 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19143 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19145 * config/rx/rx-opts.h: New.
19146 * config/rx/rx.c (rx_cpu_type): Remove.
19147 (rx_handle_option): Don't assert that global structures are in
19148 use. Access variables via opts pointer. Defer most handling of
19149 OPT_mint_register_. Use error_at.
19150 (rx_option_override): Handle deferred OPT_mint_register_ here.
19151 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19152 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19153 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19154 (rx_cpu_types): New Enum and EnumValue entries.
19155 (mint-register=): Use Defer and use Var accordingly.
19157 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19159 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19160 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19161 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19163 (debug_free_queue, debug_nesting, symbol_queue_index):
19165 * dbxout.c: ...to here. Make static.
19167 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19169 * gcse.c (modify_pair): Define. Define a VEC of it.
19170 (canon_modify_mem_list): Convert to an array of VECs.
19171 (free_insn_expr_list_list): Delete.
19172 (clear_modify_mem_tables): Call VEC_free instead.
19173 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19174 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19175 (canon_list_insert, compute_transp): Likewise.
19177 2011-04-05 Tom de Vries <tom@codesourcery.com>
19180 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19183 2011-04-05 Tom de Vries <tom@codesourcery.com>
19186 * function.c (emit_use_return_register_into_block): New function.
19187 (thread_prologue_and_epilogue_insns): Use
19188 emit_use_return_register_into_block.
19190 2011-04-05 Tom de Vries <tom@codesourcery.com>
19193 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
19196 2011-04-05 Tom de Vries <tom@codesourcery.com>
19198 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
19200 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
19202 * config/arm/arm.md (define_constants for unspec): Replace with
19204 (define_constants for unspecv): Replace with define_c_enum.
19205 * config/arm/neon.md (define_constants for unspec): Replace with
19208 2011-04-04 Richard Henderson <rth@redhat.com>
19211 * dwarf2out.c (output_line_info): Always emit line info from
19212 at least one section.
19213 (dwarf2out_init): Create text_section_line_info here ...
19214 (set_cur_line_info_table): ... not here.
19216 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
19219 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
19222 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
19224 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
19226 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
19227 (expr_equiv_p): Remove.
19228 (insert_set_in_table): Look at <dest, src> pair instead of expr.
19229 (hash_scan_set): Update call to insert_set_in_table.
19230 (dump_hash_table): Dump <dest, src> pair.
19231 (lookup_set): Simplify. Lookup <dest, src> pair.
19232 (compute_transp): Remove, fold heavily simplified code into...
19233 (compute_local_properties): ...here. Expect COMP and TRANSP
19235 (find_avail_set): Take set directly from struct expr.
19236 (find_bypass-set): Likewise.
19237 (bypass_block): Likewise.
19238 (cprop_insn): Likewise. Remove redundant INSN_P test.
19240 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
19241 checks on form of COND from find_implicit_sets to here.
19242 (find_implicit_sets): Cleanup control flow. Split critical edges
19243 if it exposes implicit sets. Allocate/resize implicit_sets as
19245 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
19246 changed something. Run df_analyze after find_implicit_sets if any
19247 edges were split. Do not allocate implicit_sets here.
19249 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
19250 (gcse_obstack): Renamed to cprop_obstack.
19251 (GNEW, GNEWVEC, GNEWVAR): Remove.
19253 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
19254 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
19255 (gcse_alloc): Likewise, and rename to cprop_alloc.
19256 (alloc_gcse_men, free_gcse_mem): Remove.
19257 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
19258 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
19259 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
19261 * cprop.c (oprs_not_set_p): Remove.
19262 (mark_set, mark_clobber): Remove.
19263 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
19264 (reg_not_set_p): New function.
19265 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
19266 (cprop_insn): Likewise.
19267 (cprop_jump): Use FOR_EACH_EDGE.
19269 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
19272 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
19273 (rank_for_schedule): Use scheduled_insns vector instead of
19274 last_scheduled_insn.
19275 (ok_for_early_queue_removal): Likewise.
19276 (queue_to_ready): Search forward in nonscheduled_insns_begin if
19278 (choose_ready): Likewise.
19279 (commit_schedule): Use VEC_iterate.
19280 (schedule_block): Initialize nonscheduled_insns_begin. If we have
19281 a dbg_cnt, use it and ensure the first insn is in the ready list.
19282 (haifa_sched_init): Allocate scheduled_insns.
19283 (sched_extend_ready_list): Don't allocate it; reserve space.
19284 (haifa_sched_finish): Free it.
19286 2011-04-04 Joseph Myers <joseph@codesourcery.com>
19288 * optc-gen.awk: Always remove type from Variable entry before
19289 recording in var_seen.
19291 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
19293 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
19294 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
19295 call to tidy_fallthru_edges.
19297 2011-04-04 Joseph Myers <joseph@codesourcery.com>
19299 * doc/options.texi (ToLower): Document.
19300 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
19301 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
19302 * opts.h (cl_option): Add cl_tolower field.
19303 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
19304 arguments with lowercase strings.
19305 * config/rx/rx.opt (mcpu=): Add ToLower.
19306 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
19309 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
19311 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
19313 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
19315 * config/vax/vax.c: Include reload.h.
19317 2011-04-04 Anatoly Sokolov <aesok@post.ru>
19319 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
19320 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19321 (sparc_preferred_reload_class): New function.
19323 2011-04-04 Jakub Jelinek <jakub@redhat.com>
19326 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19327 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
19329 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
19331 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
19332 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
19334 2011-04-03 Anatoly Sokolov <aesok@post.ru>
19336 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
19337 (ASM_OUTPUT_ALIGNED_BSS): Define.
19339 2011-04-03 Michael Matz <matz@suse.de>
19341 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
19342 and next_slot members.
19343 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
19344 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
19345 (lto_streamer_cache_append): Declare.
19346 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
19347 unsigned index, remove offset parameter, ensure that we append
19348 or update existing entries.
19349 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
19350 parameter, update next_slot for append.
19351 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
19353 (lto_streamer_cache_insert_at): Likewise.
19354 (lto_streamer_cache_append): New function.
19355 (lto_streamer_cache_lookup): Use unsigned index.
19356 (lto_streamer_cache_get): Likewise.
19357 (lto_record_common_node): Don't test tree_node_can_be_shared.
19358 (preload_common_node): Adjust call to lto_streamer_cache_insert.
19359 (lto_streamer_cache_delete): Don't free offsets member.
19360 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
19361 (lto_output_string_with_length): Use lto_output_data_stream.
19362 (lto_output_tree_header): Remove ix parameter, don't write it.
19363 (lto_output_builtin_tree): Likewise.
19364 (lto_write_tree): Adjust callers to above, don't track and write
19365 offset, write unsigned index.
19366 (output_unreferenced_globals): Don't emit all global vars.
19367 (write_global_references): Use unsigned indices.
19368 (lto_output_decl_state_refs): Likewise.
19369 (write_symbol): Likewise.
19370 * lto-streamer-in.c (lto_input_chain): Move earlier.
19371 (input_function): Use unsigned index.
19372 (input_alias_pairs): Don't read and then ignore all global vars.
19373 (lto_materialize_tree): Remove ix_p parameter, don't read index,
19374 don't pass it back, use lto_streamer_cache_append.
19375 (lto_register_var_decl_in_symtab): Use unsigned index.
19376 (lto_register_function_decl_in_symtab): Likewise.
19377 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
19379 (lto_get_builtin_tree): Don't read index, use
19380 lto_streamer_cache_append.
19381 (lto_read_tree): Adjust call to lto_materialize_tree.
19383 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
19384 don't use function calls in arguments to MIN.
19386 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
19389 * gimple.c (gimple_type_leader_entry): Mark deletable.
19391 2011-04-03 Alan Modra <amodra@gmail.com>
19393 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19395 2011-04-03 Michael Matz <matz@suse.de>
19397 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19399 * tree.h (tree_decl_non_common.vindex): Adjust comment.
19401 2011-04-03 Michael Matz <matz@suse.de>
19403 * cgraphbuild.c (record_reference): Canonicalize constructor values.
19404 * gimple-fold.c (canonicalize_constructor_val): Accept being called
19405 without function context.
19406 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19407 current_function_decl and cfun.
19409 2011-04-03 Michael Matz <matz@suse.de>
19411 * tree.c (decl_init_priority_insert): Don't create entry for
19413 (decl_fini_priority_insert): Ditto.
19414 (fields_compatible_p, find_compatible_field): Remove.
19415 * tree.h (fields_compatible_p, find_compatible_field): Remove.
19416 * gimple.c (gimple_compare_field_offset): Adjust block comment.
19418 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
19420 * combine.c (try_combine): Remove useless local variable.
19422 2011-04-03 Richard Guenther <rguenther@suse.de>
19423 Ira Rosen <ira.rosen@linaro.org>
19425 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19426 non-variable offsets and compare the remaining bases of the two
19427 accesses instead of looking for exact same data-ref.
19429 2011-04-02 Kai Tietz <ktietz@redhat.com>
19432 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19434 * i386.c (ix86_is_msabi_thiscall): New helper function.
19435 (ix86_is_type_thiscall): New helper function.
19436 (ix86_comp_type_attributes): Handle thiscall for method-functions
19438 (init_cumulative_args): Likewise.
19439 (find_drap_reg): Likewise.
19440 (ix86_static_chain): Likewise.
19441 (x86_this_parameter): Likewise.
19442 (x86_output_mi_thunk): Likewise.
19444 2011-04-01 Olivier Hainque <hainque@adacore.com>
19445 Nicolas Setton <setton@adacore.com>
19446 Eric Botcazou <ebotcazou@adacore.com>
19448 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19449 (add_gnat_descriptive_type_attribute): New function.
19450 (gen_array_type_die): Call it.
19451 (gen_enumeration_type_die): Likewise.
19452 (gen_struct_or_union_type_die): Likewise.
19453 (modified_type_die): Likewise.
19454 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19455 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19456 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19458 2011-04-01 Jakub Jelinek <jakub@redhat.com>
19461 * dwarf2out.c (resolve_addr): Don't call force_decl_die
19462 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19465 2011-03-17 Richard Guenther <rguenther@suse.de>
19468 * lto-cgraph.c (input_overwrite_node): Clear the abstract
19469 origin for decls in other ltrans units.
19470 (input_varpool_node): Likewise.
19472 2011-04-01 Jakub Jelinek <jakub@redhat.com>
19474 PR middle-end/48335
19475 * expr.c (expand_assignment): Handle all possibilities
19476 if TO_RTX is CONCAT.
19477 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19478 (store_split_bit_field): If SUBREG_REG (op0) or
19479 op0 itself has smaller mode than word, return it
19480 for offset 0 and const0_rtx for out-of-bounds stores.
19481 If word is const0_rtx, skip it.
19483 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
19485 * config/h8300/h8300.c (print_operand_address): Rename to...
19486 (h8300_print_operand_address): ...this. Make static. Adjust comments.
19487 Call h8300_print_operand and h8300_print_operand_address instead of
19488 print_operand and print_operand_address. Declare.
19489 (print_operand): Renake to...
19490 (h8300_print_operand): ...this. Make static. Adjust comments.
19491 Call h8300_print_operand instead of print_operand. Declare.
19492 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19493 (h8300_register_move_cost): Likewise.
19494 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19495 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19496 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19497 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19498 * config/h8300/h8300-protos.h (print_operand): Delete.
19499 (print_operand_address): Delete.
19501 2011-04-01 Richard Henderson <rth@redhat.com>
19504 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19505 in strict mode before dwarf4. Re-order tests to early out
19506 before switching sections.
19508 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
19510 * config/h8300/constraints.md: New file.
19511 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
19512 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19513 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19514 * config/h8300/predicates.md (bit_operand): Likewise.
19515 (incdec_operand): Use satisfies_constraint_M and
19516 satisfies_constraint_O. Don't use C code block.
19517 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19518 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19519 (compute_mov_length): Use satisfies_constraint_G.
19520 (fix_bit_operand): Use satisfies_constraint_U.
19521 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19522 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19523 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19524 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19525 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19526 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19527 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19528 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19529 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19530 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19531 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19532 (EXTRA_MEMORY_CONSTRAINT): Delete.
19534 2011-04-01 Andrew Pinski <pinskia@gmail.com>
19535 Michael Meissner <meissner@linux.vnet.ibm.com>
19538 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19539 operands, as per the specifications.
19541 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19542 (vec_extract_evenv4sf): Ditto.
19543 (vec_extract_evenv8hi): Ditto.
19544 (vec_extract_evenv16qi): Ditto.
19545 (vec_extract_oddv4si): Ditto.
19547 2011-03-31 Mark Wielaard <mjw@redhat.com>
19549 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19550 high_pc attribute if the CU has no associated code. Only output
19551 DW_AT_entry_pc for CU if not generating strict dwarf and
19554 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
19556 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19557 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19559 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19560 * final.c (final_start_function): Call the new function rather
19561 than using a NULL argument for dwarf2out_frame_debug.
19563 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19564 that contains the prologue.
19566 * haifa-sched.c (queue_insn): New arg REASON. All callers
19567 changed. Print it in debugging output.
19569 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19571 * sched-ebb.c (begin_schedule_ready): Remove second argument.
19572 Split most of the code into...
19573 (begin_move_insn): ... here. New function.
19574 (ebb_sched_info): Add a pointer to it.
19575 * haifa-sched.c (scheduled_insns): New static variable.
19576 (sched_extend_ready_list): Allocate it.
19577 (schedule_block): Use it to record the order of scheduled insns.
19578 Perform RTL changes to move insns only after all scheduling
19579 decisions have been made.
19580 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19581 begin_move_insn field.
19582 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19583 * sched-int.h (struct haifa_sched_info): Remove second argument
19584 from begin_schedule_ready hook. Add new member begin_move_insn.
19585 * sched-rgn.c (begin_schedule_ready): Remove second argument.
19586 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19588 * haifa-sched.c (prune_ready_list): New function, broken out of
19590 (schedule_block): Use it.
19592 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19594 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19596 2011-04-01 Kai Tietz <ktietz@redhat.com>
19598 * config.gcc (*-*-mingw*): Allow as option the
19599 posix threading model.
19600 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
19601 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19603 (CPP_SPEC): Add pthread/no-pthread handling.
19604 (LIB_SPEC): Likewise.
19605 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19606 (LIB_SPEC): Likewise.
19607 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19608 flag to pass -pthread option for shared libgcc build.
19609 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19610 for shared libgcc build.
19611 * config/i386/t-mingw-pthread: New file.
19612 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19613 New define to enable use of library pthread by default.
19614 * config/i386/mingw.opt (pthread): New driver option.
19615 (no-pthread): New driver option.
19616 * config/i386/cygming.opt: Make sure trailing empty line is retained.
19617 * config/i386/mingw-w64.opt: Likewise.
19619 2011-04-01 Gary Funck <gary@intrepid.com>
19621 * c-decl.c (grokdeclarator): Fix formatting.
19623 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
19625 * expr.c (emit_block_move_via_movmem): Use n_generator_args
19626 instead of n_operands.
19627 (set_storage_via_setmem): Likewise.
19628 * optabs.c (maybe_gen_insn): Likewise.
19629 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19630 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19631 (mips_expand_builtin_direct): Likewise.
19632 * config/spu/spu.c (expand_builtin_args): Likewise.
19634 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
19636 * recog.h (insn_data_d): Add n_generator_args.
19637 * genoutput.c (data): Likewise.
19638 (output_insn_data): Print it.
19639 (max_opno, num_dups): Delete.
19640 (scan_operands): Just fill in "d->operand[...]".
19641 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19643 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
19645 * gensupport.h (pattern_stats): New structure.
19646 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19647 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19648 (max_operand_1, max_operand_vec): Delete.
19649 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19651 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
19653 * emit-rtl.c (emit_pattern_after_setloc): New function.
19654 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19655 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19656 (emit_pattern_after): New function.
19657 (emit_insn_after, emit_jump_insn_after): Call it.
19658 (emit_call_insn_after, emit_debug_insn_after): Likewise.
19659 (emit_pattern_before_setloc): New function.
19660 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19661 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19663 (emit_pattern_before): New function.
19664 (emit_insn_before, emit_jump_insn_before): Call it.
19665 (emit_call_insn_before, emit_debug_insn_before): Likewise.
19667 2011-03-31 Richard Henderson <rth@redhat.com>
19669 * dwarf2out.c (dw_separate_line_info_ref): Remove.
19670 (dw_separate_line_info_entry): Remove.
19671 (enum dw_line_info_opcode): New.
19672 (dw_line_info_entry): Use it.
19673 (dw_line_info_table, dw_line_info_table_p): New.
19674 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19675 (line_info_table, line_info_label_num): Remove.
19676 (line_info_table_in_use): Remove.
19677 (separate_line_info_table): Remove.
19678 (separate_line_info_table_allocated): Remove.
19679 (separate_line_info_table_in_use): Remove.
19680 (LINE_INFO_TABLE_INCREMENT): Remove.
19681 (line_info_label_num): New.
19682 (cur_line_info_table): New.
19683 (text_section_line_info, cold_text_section_line_info): New.
19684 (separate_line_info): New.
19685 (SEPARATE_LINE_CODE_LABEL): Remove.
19686 (print_dwarf_line_table): Remove.
19687 (debug_dwarf): Don't dump it.
19688 (output_one_line_info_table): New.
19689 (output_line_info): Use it.
19690 (new_line_info_table): New.
19691 (set_cur_line_info_table): New.
19692 (dwarf2out_switch_text_section): Use it.
19693 (dwarf2out_begin_function): Likewise.
19694 (push_dw_line_info_entry): New.
19695 (dwarf2out_source_line): Rewrite for new line info tables.
19696 (dwarf2out_init): Remove dead initailizations.
19698 2011-03-31 Joseph Myers <joseph@codesourcery.com>
19700 * opts.h (cl_option): Add comments to fields. Add bit-fields for
19702 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19703 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19704 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19705 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19706 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19707 * opt-functions.awk (flag_init, switch_bit_fields): New.
19708 (switch_flags): Don't handle flags moved to bit-fields. Don't
19709 generate CL_MISSING_OK or CL_SAVE.
19710 * optc-gen.awk: Update to generate bit-field output as well as
19712 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19713 bit-field instead of CL_REJECT_DRIVER flag.
19714 * opts-common.c (generate_canonical_option,
19715 decode_cmdline_option): Use bit-fields instead of CL_* flags.
19716 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19717 instead of CL_REJECT_NEGATIVE flag.
19718 * toplev.c (print_switch_values): Use cl_report bit-field instead
19721 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
19723 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19724 a zero minimum index only if it is redundant.
19726 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
19728 PR rtl-optimization/48381
19729 * ira-color.c (assign_hard_reg): Use hard reg set intersection
19730 instead of ira_class_hard_reg_index for calculating conflicting
19733 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
19735 * cprop.c: Clean up hash table building.
19736 (reg_avail_info): Remove.
19737 (oprs_available_p): Remove.
19738 (record_last_reg_set_info): Remove.
19739 (record_last_set_info): Remove.
19740 (reg_available_p): New function.
19741 (gcse_constant_p): Do not treat unfolded conditions as constants.
19742 (make_set_regs_unavailable): New function.
19743 (hash_scan_set): Simplify with new reg_available_p.
19744 (compute_hash_table_work): Traverse insns stream only once.
19745 Do not compute reg_avail_info. Traverse insns in reverse order.
19746 Record implicit sets after recording explicit sets from the block.
19748 2011-03-31 Michael Matz <matz@suse.de>
19750 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19752 2011-03-31 Anatoly Sokolov <aesok@post.ru>
19754 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19755 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19756 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19757 (h8300_mode_dependent_address_p): New function.
19758 (h8300_get_index): Make static.
19760 2011-03-31 Jeff Law <law@redhat.com>
19762 * reload1.c (elimination_effects): Fix typo in recent change.
19764 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19765 typo potentially leading to null pointer dereference.
19767 * caller-save.c (new_saved_hard_reg): Eliminate return value.
19768 (setup_save_areas): Corresponding changes to avoid useless
19771 * jump.c (reversed_comparison_code_parts): Avoid successive return
19772 statements when REVERSE_CONDITION is defined.
19774 * expr.c (expand_assignment): Avoid useless assignments.
19775 (expand_expr_real_1): Likewise.
19776 (expand_expr_real_2): Avoid useless statements.
19778 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19780 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19782 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19785 * stmt.c (expand_expr_stmt): Avoid useless assignment.
19787 2011-03-31 Joseph Myers <joseph@codesourcery.com>
19790 * doc/tm.texi.in (TARGET_VERSION): Remove.
19791 * doc/tm.texi: Regenerate.
19792 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19793 * collect2.c (main): Don't use TARGET_VERSION.
19794 * mips-tdump.c (main): Don't use TARGET_VERSION.
19795 * mips-tfile.c (main): Don't use TARGET_VERSION.
19796 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19797 * config/rs6000/vxworksae.h: Remove.
19798 * config/alpha/alpha.h (TARGET_VERSION): Remove.
19799 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19800 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19801 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19802 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19803 * config/arm/arm.h (TARGET_VERSION): Remove.
19804 * config/arm/coff.h (TARGET_VERSION): Remove.
19805 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19806 * config/arm/elf.h (TARGET_VERSION): Remove.
19807 * config/arm/freebsd.h (TARGET_VERSION): Remove.
19808 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19809 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19810 * config/arm/pe.h (TARGET_VERSION): Remove.
19811 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19812 * config/arm/semi.h (TARGET_VERSION): Remove.
19813 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19814 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19815 * config/arm/vxworks.h (TARGET_VERSION): Remove.
19816 * config/avr/avr.h (TARGET_VERSION): Remove.
19817 * config/bfin/bfin.h (TARGET_VERSION): Remove.
19818 * config/fr30/fr30.h (TARGET_VERSION): Remove.
19819 * config/frv/frv.h (TARGET_VERSION): Remove.
19820 * config/h8300/h8300.h (TARGET_VERSION): Remove.
19821 * config/i386/cygwin.h (TARGET_VERSION): Remove.
19822 * config/i386/darwin.h (TARGET_VERSION): Remove.
19823 * config/i386/darwin64.h (TARGET_VERSION): Remove.
19824 * config/i386/djgpp.h (TARGET_VERSION): Remove.
19825 * config/i386/freebsd.h (TARGET_VERSION): Remove.
19826 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19827 * config/i386/gnu.h (TARGET_VERSION): Remove.
19828 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19829 * config/i386/i386elf.h (TARGET_VERSION): Remove.
19830 * config/i386/linux.h (TARGET_VERSION): Remove.
19831 * config/i386/linux64.h (TARGET_VERSION): Remove.
19832 * config/i386/lynx.h (TARGET_VERSION): Remove.
19833 * config/i386/mingw32.h (TARGET_VERSION): Remove.
19834 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19835 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19836 * config/i386/netware.h (TARGET_VERSION): Remove.
19837 * config/i386/nto.h (TARGET_VERSION): Remove.
19838 * config/i386/openbsd.h (TARGET_VERSION): Remove.
19839 * config/i386/vxworks.h (TARGET_VERSION): Remove.
19840 * config/ia64/elf.h (TARGET_VERSION): Remove.
19841 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19842 * config/ia64/hpux.h (TARGET_VERSION): Remove.
19843 * config/ia64/linux.h (TARGET_VERSION): Remove.
19844 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19845 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19846 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19847 * config/lm32/lm32.h (TARGET_VERSION): Remove.
19848 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19849 * config/m32c/m32c.h (TARGET_VERSION): Remove.
19850 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19851 * config/m32r/m32r.h (TARGET_VERSION): Remove.
19852 * config/m68k/linux.h (TARGET_VERSION): Remove.
19853 * config/m68k/m68k.h (TARGET_VERSION): Remove.
19854 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19855 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19856 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19857 * config/mep/mep.h (TARGET_VERSION): Remove.
19858 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19859 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19860 * config/mips/iris6.h (MACHINE_TYPE): Remove.
19861 * config/mips/linux.h (TARGET_VERSION): Remove.
19862 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19863 * config/mips/vxworks.h (TARGET_VERSION): Remove.
19864 * config/mmix/mmix.h (TARGET_VERSION): Remove.
19865 * config/mn10300/linux.h (TARGET_VERSION): Remove.
19866 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19867 * config/pa/pa.h (TARGET_VERSION): Remove.
19868 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19869 * config/picochip/picochip.h (TARGET_VERSION): Remove.
19870 * config/rs6000/aix.h (TARGET_VERSION): Remove.
19871 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19872 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19873 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19874 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19875 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19876 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19877 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19878 * config/rs6000/linux.h (TARGET_VERSION): Remove.
19879 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19880 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19881 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19882 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19883 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19884 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19885 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19886 * config/s390/linux.h (TARGET_VERSION): Remove.
19887 * config/s390/s390.h (TARGET_VERSION): Remove.
19888 * config/s390/tpf.h (TARGET_VERSION): Remove.
19889 * config/score/score.h (TARGET_VERSION): Remove.
19890 * config/sh/linux.h (TARGET_VERSION): Remove.
19891 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19892 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19893 * config/sh/sh.h (TARGET_VERSION): Remove.
19894 * config/sh/sh64.h (TARGET_VERSION): Remove.
19895 * config/sh/superh.h (TARGET_VERSION): Remove.
19896 * config/sh/vxworks.h (TARGET_VERSION): Remove.
19897 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19898 * config/sparc/linux.h (TARGET_VERSION): Remove.
19899 * config/sparc/linux64.h (TARGET_VERSION): Remove.
19900 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19901 TARGET_NAME32, TARGET_NAME): Remove.
19902 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19903 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19904 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19905 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19906 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19907 * config/spu/spu.h (TARGET_VERSION): Remove.
19908 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19909 * config/v850/v850.h (TARGET_VERSION): Remove.
19910 * config/vax/linux.h (TARGET_VERSION): Remove.
19911 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19912 * config/xtensa/elf.h (TARGET_VERSION): Remove.
19913 * config/xtensa/linux.h (TARGET_VERSION): Remove.
19915 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
19918 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19919 frame-related from frame-unrelated adjustments to the stack pointer.
19921 2011-03-31 Jakub Jelinek <jakub@redhat.com>
19923 * common.opt (fdebug-types-section): Move earlier.
19924 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19926 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
19928 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19931 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
19933 * tree.h (CASE_CHAIN): Define.
19934 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19935 (gimple_redirect_edge_and_branch): Likewise.
19937 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
19939 PR middle-end/48367
19940 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19943 2011-03-30 Jeff Law <law@redhat.com>
19945 * PR bootstrap/48371
19946 * reload1.c (reload): Fix botch in last change.
19948 * reload.h (struct reload): Fix typo introduced in last change.
19950 2011-03-30 Joseph Myers <joseph@codesourcery.com>
19952 * config/arm/arm.opt (mhard-float, msoft-float): Mark
19953 Undocumented. Remove help text.
19954 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19957 2011-03-30 Joseph Myers <joseph@codesourcery.com>
19959 * doc/options.texi (NegativeAlias): Document.
19960 (Alias): Mention NegativeAlias.
19961 * opt-functions.awk: Handle NegativeAlias.
19962 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19963 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19964 * opts.h (CL_NEGATIVE_ALIAS): Define.
19965 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19966 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19968 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19970 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19971 mno-spe and mno-isel instead of mspe=no and -misel=no.
19973 2011-03-29 Mark Wielaard <mjw@redhat.com>
19975 * common.opt (fdebug-types-section): New flag.
19976 * doc/invoke.texi: Document new -fno-debug-types-section flag.
19977 * dwarf2out.c (use_debug_types): New define.
19978 (struct die_struct): Mark die_id with GTY desc use_debug_types.
19979 (print_die): Guard output of type unit signatures using
19981 (build_abbrev_table): Replace assert of dwarf_version >= 4
19982 with assert on use_debug_types.
19983 (size_of_die): Likewise.
19984 (unmark_dies): Likewise.
19985 (value_format): Decide AT_ref_external form on use_debug_types.
19986 (output_die): Replace dwarf_version version check guard with
19987 use_debug_types where appropriate.
19988 (modified_type_die): Likewise.
19989 (gen_reference_type_die): Likewise.
19990 (dwarf2out_start_source_file): Likewise.
19991 (dwarf2out_end_source_file): Likewise.
19992 (prune_unused_types_walk_attribs): Likewise.
19993 (dwarf2out_finish): Likewise.
19995 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
19997 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19999 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20001 PR rtl-optimization/48332
20002 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20003 mode of input operand N and modeN to its actual mode.
20005 2011-03-30 Jeff Law <law@redhat.com>
20007 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20008 define accessor macro.
20009 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20010 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20011 (reg_equiv_init): Likewise.
20012 (reg_equivs_size): New variable.
20013 (reg_equiv_init_size): Remove.
20014 (allocate_initial_values): Move prototype to here from....
20015 * integrate.h (allocate_initial_values): Remove prototype.
20016 * integrate.c: Include reload.h.
20017 (allocate_initial_values): Corresponding changes.
20018 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20019 (fix_reg_equiv_init, no_equiv): Corresponding changes.
20020 (update_equiv_regs): Corresponding changes.
20021 (ira): Corresponding changes.
20022 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20023 (push_secondary_reload): Corresponding changes.
20024 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20025 (make_memloc, find_reloads_address): Corresponding changes.
20026 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20027 (find_reloads_address_1): Corresponding changes.
20028 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20029 (refers_to_regno_for_reload_p): Corresponding changes.
20030 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20031 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20032 * reload1.c: Include ggc.h.
20033 (grow_reg_equivs): New function.
20034 (replace_pseudos_in, reload): Corresponding changes.
20035 (calculate_needs_all_insns, alter_regs): Corresponding changes.
20036 (eliminate_regs_1, elimination_effects): Corresponding changes.
20037 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20038 (delete_output_reload): Likewise.
20039 * caller-save.c (mark_referenced_regs): Corresponding changes.
20040 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20041 * frv/predicates.md (frv_load_operand): Corresponding changes.
20042 * microblaze/microblaze.c (double_memory_operand): Corresponding
20044 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20045 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20046 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20047 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20048 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20050 * pa/pa.c (emit_move_sequence): Corresponding changes.
20051 * vax/vax.c (nonindexed_address_p): Corresponding changes.
20053 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20056 * config/arm/arm.c (coproc_secondary_reload_class): Handle
20057 structure modes. Don't check neon_vector_mem_operand for
20058 vector or structure modes.
20060 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20061 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20064 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20065 operand 1 and reshuffle the operands to match.
20066 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20068 2011-03-30 Christian Schüler <cschueler@gmx.de>
20071 * config/c.opt (F): Added 'Driver' to -F option.
20074 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20076 * config/darwin.opt: Added '-arch' option.
20078 2011-03-30 Nick Clifton <nickc@redhat.com>
20080 * config/rx/rx.md: Add peepholes and patterns to combine
20081 extending loads and simple arithmetic instructions.
20082 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20083 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20084 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20085 modes to use pre-decrement and post-increment addressing.
20086 (rx_is_restricted_memory_address): Add range checking of REG+INT
20088 (rx_print_operand): Add support for %Q. Fix handling of %Q.
20089 (rx_memory_move_cost): Adjust cost of stores.
20090 (rx_adjust_insn_length): New function.
20092 2011-03-30 Jakub Jelinek <jakub@redhat.com>
20095 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20096 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20097 matching arg00/arg01 types.
20099 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
20101 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20102 last_location to UNKNOWN_LOCATION.
20104 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
20107 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20110 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20111 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20114 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20115 Init(PROCESSOR_V7).
20116 (sparc_cpu): Likewise.
20117 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20120 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20123 PR middle-end/48342
20124 PR rtl-optimization/48345
20125 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20126 hard regs for given mode from profitable regs when doing secondary
20129 2011-03-29 Jeff Law <law@redhat.com>
20132 * tree-ssa-threadupdate.c (struct redirection_data): Remove
20133 do_not_duplicate field.
20134 (lookup_redirection_data): Corresponding changes.
20135 (create_duplicates): Always create a template block.
20136 (redirect_edges): Remove code which reused the original block
20137 when it was going to become unreachable code.
20138 (thread_block): Don't set do_not_duplicate field.
20140 2011-03-29 Joseph Myers <joseph@codesourcery.com>
20142 * lto-opts.c (register_user_option_p, lto_register_user_option):
20143 Make type argument unsigned.
20144 * lto-streamer.h (lto_register_user_option): Make type argument
20146 * opth-gen.awk: Make CL_* macros unsigned.
20147 * opts-common.c (find_opt): Make lang_mask argument unsigned.
20148 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20149 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20150 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20151 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20152 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20153 (find_opt): Make lang_mask argument unsigned.
20155 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20157 PR rtl-optimization/48331
20158 PR rtl-optimization/48334
20159 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20160 for any used algorithm.
20162 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20164 * ira-conflicts.c (build_object_conflicts): Add unused attribute
20167 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
20169 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20170 (alpha_option_override): Don't set alpha_sr_alias_set.
20171 (emit_frame_store_1): Use gen_frame_mem rather than calling
20173 (alpha_expand_epilogue): Ditto.
20175 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
20177 PR tree-optimization/48290
20178 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20179 vectorization, check that relevant phis in the basic block after
20180 the inner loop are really inner loop's exit phis.
20182 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
20185 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
20186 (cached_dw_loc_list_def): New structure.
20187 (cached_dw_loc_list): New typedef.
20188 (cached_dw_loc_list_table): New variable.
20189 (cached_dw_loc_list_table_hash): New function.
20190 (cached_dw_loc_list_table_eq): Likewise.
20191 (add_location_or_const_value_attribute): Take a bool cache_p.
20192 Cache the list when the parameter is true.
20193 (gen_formal_parameter_die): Update caller.
20194 (gen_variable_die): Likewise.
20195 (dwarf2out_finish): Likewise.
20196 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
20197 while generating debug info for the decl.
20198 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
20199 (dwarf2out_init): Initialize cached_dw_loc_list_table.
20200 (resolve_addr): Cache the result of resolving a chain of
20203 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
20205 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
20206 conflict object hard regset nodes have intersecting hard reg sets.
20208 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
20209 after regstat_init_n_sets_and_refs.
20211 * ira.c: Add more comments at the top.
20212 (setup_stack_reg_pressure_class, setup_pressure_classes):
20213 Add comments how we compute the register pressure classes.
20214 (setup_allocno_and_important_classes): Add more comments.
20215 (setup_class_translate_array, reorder_important_classes)
20216 (setup_reg_class_relations): Add comments.
20218 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
20221 * ira-color.c: Add 2011 to the Copyright line.
20222 (assign_hard_reg): Add more comments.
20223 (improve_allocation): Ditto.
20225 * ira-costs.c: Add 2011 to the Copyright line.
20226 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
20228 (setup_regno_cost_classes_by_mode): Ditto.
20230 Initial patches from ira-improv branch:
20232 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
20234 * ira-build.c (ira_create_object): Remove initialization of
20235 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
20236 (ira_create_allocno): Remove initialization of
20237 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
20238 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
20239 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20240 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
20241 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
20242 Initialize ALLOCNO_ADD_DATA.
20243 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
20244 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
20246 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
20247 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
20249 * ira.c (ira_reallocate): Remove.
20250 (setup_pressure_classes): Call
20251 ira_init_register_move_cost_if_necessary. Use
20252 ira_register_move_cost instead of ira_get_register_move_cost.
20253 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
20254 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
20256 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
20257 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
20258 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
20259 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
20260 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
20261 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
20263 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
20264 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20265 (struct allocno_color_data): New.
20266 (allocno_color_data_t): New typedef.
20267 (allocno_color_data): New definition.
20268 (ALLOCNO_COLOR_DATA): New macro.
20269 (struct object_color_data): New.
20270 (object_color_data_t): New typedef.
20271 (object_color_data): New definition.
20272 (OBJECT_COLOR_DATA): New macro.
20273 (update_copy_costs, calculate_allocno_spill_cost): Call
20274 ira_init_register_move_cost_if_necessary. Use
20275 ira_register_move_cost instead of ira_get_register_move_cost.
20276 (move_spill_restore, update_curr_costs): Ditto.
20277 (allocno_spill_priority): Make it inline.
20278 (color_pass): Allocate and free allocno_color_dat and object_color_data.
20279 (struct coalesce_data, coalesce_data_t): New.
20280 (allocno_coalesce_data): New definition.
20281 (ALLOCNO_COALESCE_DATA): New macro.
20282 (merge_allocnos, coalesced_allocno_conflict_p): Use
20283 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
20284 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
20285 (coalesce_allocnos): Ditto.
20286 (setup_coalesced_allocno_costs_and_nums): Ditto.
20287 (collect_spilled_coalesced_allocnos): Ditto.
20288 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
20289 (setup_slot_coalesced_allocno_live_ranges): Ditto.
20290 (coalesce_spill_slots): Ditto.
20291 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
20292 free allocno_coalesce_data.
20294 * ira-conflicts.c: Fix formatting.
20295 (process_regs_for_copy): Call
20296 ira_init_register_move_cost_if_necessary. Use
20297 ira_register_move_cost instead of ira_get_register_move_cost.
20298 (build_object_conflicts): Optimize.
20300 * ira-costs.c (record_reg_classes): Optimize. Call
20301 ira_init_register_move_cost_if_necessary. Use
20302 ira_register_move_cost, ira_may_move_in_cost, and
20303 ira_may_move_out_cost instead of ira_get_register_move_cost and
20304 ira_get_may_move_cost.
20305 (record_address_regs): Ditto.
20306 (scan_one_insn): Optimize.
20307 (find_costs_and_classes): Optimize.
20308 (process_bb_node_for_hard_reg_moves): Call
20309 ira_init_register_move_cost_if_necessary. Use
20310 ira_register_move_cost instead of ira_get_register_move_cost.
20312 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
20313 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
20314 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
20315 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
20317 (ira_initiate_emit_data, ira_finish_emit_data)
20318 (create_new_allocno): New functions.
20319 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
20320 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
20321 Use ira_register_move_cost instead of ira_get_register_move_cost.
20323 * ira-int.h: Fix some comments.
20324 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
20325 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
20326 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
20327 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
20329 (struct ira_allocno): Make mode and aclass a bitfield. Move other
20330 bitfield after mode. Make hard_regno a short int. Make
20331 hard_regno short. Remove first_coalesced_allocno and
20332 next_coalesced_allocno. Move mem_optimized_dest_p,
20333 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
20334 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
20335 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
20336 temp, colorable_p. Add new member add_data.
20337 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
20338 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
20339 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
20340 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
20341 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
20342 (ALLOCNO_ADD_DATA): New macro.
20343 (ira_emit_data_t): New typedef.
20344 (struct ira_emit_data): New. Move mem_optimized_dest_p,
20345 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
20346 from struct ira_allocno.
20347 (ALLOCNO_EMIT_DATA): New macro.
20348 (ira_allocno_emit_data, allocno_emit_reg): New.
20349 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
20350 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
20351 (OBJECT_ADD_DATA): New macro.
20352 (ira_reallocate): Remove.
20353 (ira_initiate_emit_data, ira_finish_emit_data): New.
20354 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
20355 (ira_init_register_move_cost_if_necessary): New.
20356 (ira_object_conflict_iter_next): Merge into
20357 ira_object_conflict_iter_cond.
20358 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
20360 * ira-live.c (process_single_reg_class_operands): Call
20361 ira_init_register_move_cost_if_necessary. Use
20362 ira_register_move_cost instead of ira_get_register_move_cost.
20364 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
20366 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
20368 * ira-costs.c: Fix formatting.
20369 (cost_classes, cost_classes_num): Remove.
20370 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
20371 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
20372 (cost_classes_del, cost_classes_htab): New.
20373 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
20374 (initiate_regno_cost_classes, setup_cost_classes): New.
20375 (setup_regno_cost_classes_by_aclass): New.
20376 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
20377 (record_reg_classes): Use regno_cost_classes instead of
20378 cost_classes. Move checking opposite operand up.
20379 (record_address_regs): Use regno_cost_classes
20380 instead of cost_classes.
20381 (scan_one_insn): Ditto. Use always general register.
20382 (print_allocno_costs): Use regno_cost_classes instead of
20384 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
20385 (find_costs_and_classes): Set up cost classes for each registers.
20386 Use also their mode for this. Use regno_cost_classes instead of
20388 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
20390 (free_ira_costs, ira_init_costs): Don't use cost_classes.
20391 (ira_costs, ira_set_pseudo_classes): Call
20392 initiate_regno_cost_classes and finish_regno_cost_classes.
20394 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
20396 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20398 * target.def (ira_cover_classes): Remove.
20400 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20402 * doc/tm.texi.in: Ditto.
20404 * ira-conflicts.c: Remove mentioning cover classes from the file.
20405 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
20406 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
20408 * targhooks.c (default_ira_cover_classes): Remove.
20410 * targhooks.h (default_ira_cover_classes): Ditto.
20412 * haifa-sched.c: Remove mentioning cover classes from the file.
20413 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
20414 ira_pressure_classes and ira_pressure_classes_num instead of
20415 ira_reg_class_cover_size and ira_reg_class_cover. Use
20416 sched_regno_pressure_class instead of sched_regno_cover_class.
20417 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20418 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20420 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
20421 classes from the file.
20422 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20423 (struct object_hard_regs, struct object_hard_regs_node): New.
20424 (struct ira_object): New members profitable_hard_regs,
20425 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20426 (struct ira_allocno): Rename cover_class to aclass. Rename
20427 cover_class_cost and updated_cover_class_cost to class_cost and
20428 updated_class_cost. Remove splay_removed_p and
20429 left_conflict_size. Add new members colorable_p.
20430 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20431 (ALLOCNO_COLORABLE_P): New macro.
20432 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20433 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20434 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20435 (OBJECT_...): Rename parameter C to O.
20436 (OBJECT_PROFITABLE_HARD_REGS): New macro.
20437 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20438 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20439 (struct target_ira_int): New members x_ira_max_memory_move_cost,
20440 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20441 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20442 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20443 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
20444 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
20445 x_ira_reg_class_subunion.
20446 (ira_max_memory_move_cost, ira_max_register_move_cost)
20447 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20448 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20449 (ira_important_class_nums, ira_reg_class_superunion): New macros.
20450 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20451 (ira_reg_class_union): Rename to ira_reg_class_subunion.
20452 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20453 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20454 (ira_tune_allocno_costs_and_cover_classes): Rename to
20455 ira_tune_allocno_costs.
20456 (ira_debug_hard_regs_forest): New.
20457 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20458 (ira_object_conflict_iter_next): Fix comments.
20459 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20460 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20461 cover_class to aclass.
20462 (ira_allocate_and_accumulate_costs): Ditto.
20463 (ira_allocate_and_set_or_copy_costs): Ditto.
20465 * opts.c (decode_options): Remove ira_cover_class check.
20467 * ira-color.c: Remove mentioning cover classes from the file. Use
20468 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20469 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20470 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
20471 (splay-tree.h): Remove include.
20472 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20473 before copy_freq_compare_func.
20474 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20475 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20477 (hard_regs_roots, hard_regs_node_vec): Ditto.
20478 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20479 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20480 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20481 (create_new_object_hard_regs_node): Ditto.
20482 (add_new_object_hard_regs_node_to_forest): Ditto.
20483 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20484 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20486 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20487 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20488 (remove_unused_object_hard_regs_nodes): Ditto.
20489 (enumerate_object_hard_regs_nodes): Ditto.
20490 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20491 (object_hard_regs_subnode_t): Ditto.
20492 (struct object_hard_regs_subnode): Ditto.
20493 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20494 (setup_object_hard_regs_subnode_index): Ditto.
20495 (get_object_hard_regs_subnodes_num): Ditto.
20496 (form_object_hard_regs_nodes_forest): Ditto.
20497 (finish_object_hard_regs_nodes_tree): Ditto.
20498 (finish_object_hard_regs_nodes_forest): Ditto.
20499 (allocnos_have_intersected_live_ranges_p): Rename to
20500 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
20501 (pseudos_have_intersected_live_ranges_p): Rename to
20502 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
20503 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20504 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20505 (update_copy_costs): Remove assert. Skip cost update if the hard
20506 reg does not belong the class.
20507 (assign_hard_reg): Process only profitable hard regs.
20508 (uncolorable_allocnos_num): Make it scalar.
20509 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20510 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20511 and ira_reg_class_max_nregs.
20512 (bucket_allocno_compare_func): Check frequency first.
20513 (sort_bucket): Add compare function as a parameter.
20514 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20515 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20516 (push_allocno_to_stack): Rewrite for checking new allocno
20518 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
20519 (push_only_colorable): Pass new parameter to sort_bucket.
20520 (push_allocno_to_spill): Remove.
20521 (allocno_spill_priority_compare): Make it inline and rewrite.
20522 (splay_tree_allocate, splay_tree_free): Remove.
20523 (allocno_spill_sort_compare): New function.
20524 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
20525 build and use splay tree. Choose first allocno in uncolorable
20526 allocno bucket to spill. Remove setting spill cost.
20527 (all_conflicting_hard_regs): Remove.
20528 (setup_allocno_available_regs_num): Check only profitable hard
20529 regs. Print info about hard regs nodes.
20530 (setup_allocno_left_conflicts_size): Remove.
20531 (put_allocno_into_bucket): Don't call
20532 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
20533 (improve_allocation): New.
20534 (color_allocnos): Call setup_profitable_hard_regs,
20535 form_object_hard_regs_nodes_forest, improve_allocation,
20536 finish_object_hard_regs_nodes_forest. Setup spill cost.
20537 (print_loop_title): Use pressure classes.
20538 (color_allocnso): Ditto.
20539 (do_coloring): Remove allocation and freeing splay_tree_node_pool
20540 and allocnos_for_spilling.
20541 (ira_sort_regnos_for_alter_reg): Don't setup members
20542 {first,next}_coalesced_allocno.
20543 (color): Remove allocating and freeing removed_splay_allocno_vec.
20544 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20545 prohibited_class_mode_regs.
20547 * ira-lives.c: Remove mentioning cover classes from the file. Fix
20549 (update_allocno_pressure_excess_length): Use pressure classes.
20550 (inc_register_pressure, dec_register_pressure): Check for pressure
20552 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20553 pressure class. Use ira_reg_class_nregs instead of
20554 ira_reg_class_max_nregs.
20555 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20556 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20557 (single_reg_class): Use ira_reg_class_nregs instead of
20558 ira_reg_class_max_nregs.
20559 (process_bb_node_lives): Use pressure classes.
20561 * ira-emit.c: Remove mentioning cover classes from the file. Use
20562 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
20563 (change_loop): Use pressure classes.
20564 (modify_move_list): Call ira_set_allocno_class instead of
20565 ira_set_allocno_cover_class.
20567 * ira-build.c: Remove mentioning cover classes from the file. Use
20568 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20569 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
20570 ALLOCNO_UPDATED_CLASS_COST instead of
20571 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
20572 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20573 (ira_create_allocno): Remove initialization of
20574 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
20575 ALLOCNO_COLORABLE_P.
20576 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20577 Update conflict regs for the objects.
20578 (create_cap_allocno): Remove assert. Don't propagate
20579 ALLOCNO_AVAILABLE_REGS_NUM.
20580 (ira_free_allocno_costs): New function.
20581 (finish_allocno): Change a part of code into call of
20582 ira_free_allocno_costs.
20583 (low_pressure_loop_node_p): Use pressure classes.
20584 (object_range_compare_func): Don't compare classes.
20585 (setup_min_max_conflict_allocno_ids): Ditto.
20587 * loop-invariant.c: Remove mentioning cover classes from the file.
20588 Use ira_pressure_classes and ira_pressure_classes_num instead of
20589 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
20590 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20591 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20592 Use reg_allocno_class instead of reg_cover_class.
20593 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20594 STACK_REG_COVER_CLASS.
20595 (get_regno_cover_class): Rename to get_regno_pressure_class.
20596 (move_loop_invariants): Initialize and finalize regstat.
20598 * ira.c: Remove mentioning cover classes from the file. Add
20599 comments about coloring without cover classes. Use ALLOCNO_CLASS
20600 instead of ALLOCNO_COVER_CLASS. Fix formatting.
20601 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20602 setup_class_subset_and_memory_move_costs.
20603 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20604 (setup_cover_and_important_classes): Rename to
20605 setup_allocno_and_important_classes.
20606 (setup_class_translate_array): New.
20607 (setup_class_translate): Call it for allocno and pressure classes.
20608 (cover_class_order): Rename to allocno_class_order.
20609 (comp_reg_classes_func): Use ira_allocno_class_translate instead
20610 of ira_class_translate.
20611 (reorder_important_classes): Set up ira_important_class_nums.
20612 (setup_reg_class_relations): Set up ira_reg_class_superunion.
20613 (print_class_cover): Rename to print_classes. Add parameter.
20614 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20615 Print pressure classes too.
20616 (find_reg_class_closure): Rename to find_reg_classes. Don't call
20617 setup_reg_subclasses.
20618 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20619 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20620 (setup_prohibited_class_mode_regs): Use
20621 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20622 (clarify_prohibited_class_mode_regs): New function.
20623 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20624 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20625 (ira_init_once): Initialize them.
20626 (free_register_move_costs): Process them.
20627 (ira_init): Move calls of find_reg_classes and
20628 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20629 Call clarify_prohibited_class_mode_regs.
20630 (ira_no_alloc_reg): Remove.
20631 (too_high_register_pressure_p): Use pressure classes.
20633 * sched-deps.c: Remove mentioning cover classes from the file.
20634 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
20635 ira_pressure_classes and ira_pressure_classes_num instead of
20636 ira_reg_class_cover_size and ira_reg_class_cover.
20637 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20638 sched_regno_pressure_class instead of sched_regno_cover_class.
20639 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
20640 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20642 * ira.h: Add 2010 to Copyright.
20643 (ira_no_alloc_reg): Remove external.
20644 (struct target_ira): Rename x_ira_hard_regno_cover_class,
20645 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20646 x_ira_class_translate to x_ira_hard_regno_allocno_class,
20647 x_ira_allocno_classes_num, x_ira_allocno_classes, and
20648 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
20649 x_ira_pressure_classes, x_ira_pressure_class_translate, and
20650 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
20651 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
20652 x_ira_no_alloc_regs.
20653 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20654 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20655 ira_allocno_classes_num and ira_allocno_classes.
20656 (ira_class_translate): Rename to ira_allocno_class_translate.
20657 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20658 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20659 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20660 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20661 (ira_no_alloc_regs): New.
20663 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
20664 classes from the file. Use ALLOCNO_CLASS instead of
20665 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
20666 ALLOCNO_COVER_CLASS_COST.
20667 (regno_cover_class): Rename to regno_aclass.
20668 (record_reg_classes): Use ira_reg_class_subunion instead of
20669 ira_reg_class_union.
20670 (record_address_regs): Check overflow.
20671 (scan_one_insn): Ditto.
20672 (print_allocno_costs): Print total mem cost fore regional allocation.
20673 (print_pseudo_costs): Use REG_N_REFS.
20674 (find_costs_and_classes): Use classes intersected with them on the
20675 1st pass. Check overflow. Use ira_reg_class_subunion instead of
20676 ira_reg_class_union. Use ira_allocno_class_translate and
20677 regno_aclass instead of ira_class_translate and regno_cover_class.
20678 Modify code for finding regno_aclass. Setup preferred classes for
20680 (setup_allocno_cover_class_and_costs): Rename to
20681 setup_allocno_class_and_costs. Use regno_aclass instead of
20682 regno_cover_class. Use ira_set_allocno_class instead of
20683 ira_set_allocno_cover_class.
20684 (init_costs, finish_costs): Use regno_aclass instead of
20686 (ira_costs): Use setup_allocno_class_and_costs instead of
20687 setup_allocno_cover_class_and_costs.
20688 (ira_tune_allocno_costs_and_cover_classes): Rename to
20689 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
20690 by processing objects. Use ira_reg_class_max_nregs instead of
20691 ira_reg_class_nregs.
20693 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20695 * sched-int.h: Remove mentioning cover classes from the file.
20696 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20698 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
20699 classes from the file.
20700 (struct reg_pref): Rename coverclass into allocnoclass.
20701 (reg_cover_class): Rename to reg_allocno_class.
20703 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20705 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20707 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20709 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20711 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20713 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20715 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20717 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20719 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20721 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20723 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20724 (i386_ira_cover_classes): Ditto.
20726 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20728 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20730 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20732 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20734 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20736 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20738 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20739 (mips_ira_cover_classes): Ditto.
20741 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20743 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20745 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20747 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20749 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20751 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20752 (IRA_COVER_CLASSES_VSX): Ditto.
20754 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20755 (rs6000_ira_cover_classes): Ditto.
20757 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20759 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20761 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20763 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20765 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20767 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20769 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20771 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20773 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20775 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20777 2011-03-29 Jakub Jelinek <jakub@redhat.com>
20780 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20781 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20782 dw_fde_unlikely_section_end_label, cold_in_std_section,
20783 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20784 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20786 (output_fde): Use dw_fde_second_{begin,end} if second is
20787 true, otherwise dw_fde_{begin,end}.
20788 (output_call_frame_info): Test dw_fde_second_begin != NULL
20789 instead of dw_fde_switched_sections.
20790 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20791 fields, initialize new fields. Initialize in_std_section
20792 unconditionally from the first partition.
20793 (dwarf2out_end_epilogue): Don't override dw_fde_end when
20794 dw_fde_second_begin is non-NULL.
20795 (dwarf2out_switch_text_section): Stop initializing removed
20796 dw_fde_struct fields, initialize new fields, initialize
20797 also dw_fde_end here. Set dw_fde_switch_cfi even when
20798 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
20799 (struct var_loc_list_def): Add last_before_switch field.
20800 (arange_table, arange_table_allocated, arange_table_in_use,
20801 ARANGE_TABLE_INCREMENT, add_arange): Removed.
20802 (size_of_aranges): Count !in_std_section and !second_in_std_section
20803 hunks in fdes, instead of looking at arange_table_in_use.
20804 (output_aranges): Add aranges_length argument, don't call
20805 size_of_aranges here. Instead of using aranges_table*
20806 emit ranges for fdes when !in_std_section resp.
20807 !second_in_std_section.
20808 (dw_loc_list): Break ranges crossing section switch.
20809 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
20810 use dw_fde_second_end instead of dw_fde_end as end of last range.
20811 (gen_subprogram_die): Don't call add_arange. Use
20812 dw_fde_{begin,end} for first partition and if switched
20813 section dw_fde_second_{begin,end} for the second.
20814 (var_location_switch_text_section_1,
20815 var_location_switch_text_section): New functions.
20816 (dwarf2out_begin_function): Initialize cold_text_section even
20817 when function_section () isn't text_section.
20818 (prune_unused_types): Don't walk arange_table.
20819 (dwarf2out_finish): Don't needlessly test
20820 flag_reorder_blocks_and_partition when testing cold_text_section_used.
20821 If info_section_emitted, call size_of_aranges and if it indicates
20822 non-empty .debug_aranges, call output_aranges with the computed
20823 size. Stop using removed dw_fde_struct fields, use
20824 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20828 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20829 create ENTRY_VALUE if incoming or address of incoming's MEM
20831 * dwarf2out.c (mem_loc_descriptor): Don't emit
20832 DW_OP_GNU_entry_value of DW_OP_fbreg.
20833 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20834 on ENTRY_VALUE is able to find the canonical parameter VALUE.
20835 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20836 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20838 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20839 is a REG_P or MEM_P with REG_P address, compute hash directly
20840 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20841 (preserve_only_constants): Don't clear VALUES forwaring
20842 ENTRY_VALUE to some other VALUE.
20844 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
20846 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20847 instead of GEN_INT.
20849 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
20851 * cfgexpand.c (expand_gimple_cond): Always set the source location and
20852 block before expanding the statement.
20853 (expand_gimple_stmt_1): Likewise. Set them here...
20854 (expand_gimple_stmt): ...and not here. Tidy.
20855 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20858 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
20860 * Makefile.in: New rule for cprop.o.
20861 * gcse.c: Move constant/copy propagation to cprop.c.
20862 (compute_local_properties): Only handle expression tables.
20863 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20864 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20865 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20866 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20867 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20868 compute_cprop_data, find_used_regs, try_replace_reg,
20869 find_avail_set, cprop_jump, constprop_register, cprop_insn,
20870 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20871 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20872 find_bypass_set, reg_killed_on_edge, bypass_block,
20873 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20874 execute_rtl_cprop, pass_rtl_cprop): Move to...
20875 * cprop.c: ...here. New file, constant/copy propagation for RTL
20876 moved from gcse.c to here with minor cleanups in duplicated code.
20878 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
20880 * config/i386/i386.c (flag_opts): Fix a typo in
20881 -mavx256-split-unaligned-store.
20883 2011-03-28 Anatoly Sokolov <aesok@post.ru>
20885 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20886 LIBCALL_VALUE): Remove macros.
20887 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20888 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20889 (h8300_function_value, h8300_libcall_value,
20890 h8300_function_value_regno_p): New functions.
20892 2011-03-28 Anatoly Sokolov <aesok@post.ru>
20894 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20896 2011-03-28 Jeff Law <law@redhat.com>
20898 * tree-ssa-threadupdate.c (redirect_edges): Call
20899 create_edge_and_update_destination_phis as needed.
20900 (create_edge_and_update_destination_phis): Accept new BB argument.
20901 All callers updated.
20902 (thread_block): Do not update the profile when threading around
20903 intermediate blocks.
20904 (thread_single_edge): Likewise.
20905 (determine_bb_domination_status): If BB is not a successor of the
20906 loop header, return NONDOMINATING.
20907 (register_jump_thread): Note when we register a jump thread around
20908 an intermediate block.
20909 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20910 (thread_across_edge): Use it.
20912 2011-03-28 Tristan Gingold <gingold@adacore.com>
20914 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20915 when for_return is 2.
20917 2011-03-28 Jeff Law <law@redhat.com>
20919 * var-tracking.c (canonicalize_values_mark): Delete unused
20921 (canonicalize_values_star, set_variable_part): Likewise.
20922 (clobber_variable_part, delete_variable_part): Likewise.
20924 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
20926 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20928 2011-03-28 Martin Jambor <mjambor@suse.cz>
20930 * tree-inline.c (expand_call_inline): Do not check that destination
20932 (optimize_inline_calls): Assert that destination node is analyzed.
20933 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20934 not call tree_lowering_passes.
20935 * cgraph.h (cgraph_analyze_function): Declare.
20936 * cgraphunit.c (cgraph_analyze_function): Make public.
20938 2011-03-28 Joseph Myers <joseph@codesourcery.com>
20940 * config/sparc/sparc-opts.h: New.
20941 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20942 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20943 (sparc_option_override): Store processor_type enumeration rather
20944 than string in cpu_default. Remove name and enumeration from
20945 cpu_table. Directly default -mcpu then default -mtune from -mcpu
20946 without using sparc_select. Use target_flags_explicit instead of
20948 * config/sparc/sparc.h (enum processor_type): Move to
20950 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20951 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20952 HeaderInclude entry.
20953 (mcpu=, mtune=): Use Var and Enum.
20954 (sparc_processor_type): New Enum and EnumValue entries.
20956 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20957 Iain Sandoe <iains@gcc.gnu.org>
20960 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20962 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
20964 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20965 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20966 Insert new statements at it in lieu of STMT.
20967 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20968 * tree-vect-stmts.c (vectorizable_store): Likewise.
20969 (vectorizable_load): Likewise.
20971 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
20973 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20978 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
20980 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20981 unaligned 256bit load/store.
20982 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20983 (*avx_movdqu<avxmodesuffix>): Likewise.
20985 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20988 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20989 * config/pa/pa.md (iordi3): Use new predicate in expander.
20990 (iorsi3): Likewise.
20992 2011-03-27 Anatoly Sokolov <aesok@post.ru>
20994 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20995 FUNCTION_VALUE_REGNO_P): Remove macros.
20996 * config/mips/mips-protos.h (mips_function_value): Remove.
20997 * config/mips/mips.c (mips_function_value): Rename to...
20998 (mips_function_value_1): ... this. Make static. Handle receiving
20999 the function type in 'fn_decl_or_type' argument.
21000 (mips_function_value, mips_libcall_value,
21001 mips_function_value_regno_p): New function.
21002 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21003 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21005 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21007 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21008 and -mavx256-split-unaligned-store.
21009 (ix86_option_override_internal): Split 32-byte AVX unaligned
21010 load/store by default.
21011 (ix86_avx256_split_vector_move_misalign): New.
21012 (ix86_expand_vector_move_misalign): Use it.
21014 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21015 -mavx256-split-unaligned-store.
21017 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21018 256bit load/store. Generate unaligned store on misaligned memory
21020 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21022 (*avx_movdqu<avxmodesuffix>): Likewise.
21024 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21025 -mavx256-split-unaligned-store.
21027 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21030 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21033 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21035 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21036 opno arguments with an expand_operand. Use create_input_operand.
21037 (mips_prepare_builtin_target): Delete.
21038 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21040 (mips_expand_builtin_direct): Use create_output_operand and
21041 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
21042 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
21043 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21045 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
21047 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21049 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21051 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
21053 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21054 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
21055 basic blocks and call commit_edge_insertions directly.
21056 (fixup_abnormal_edges): Move from here to...
21057 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
21058 on the edges and return whether some have actually been inserted.
21059 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21062 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
21064 PR rtl-optimization/48144
21065 * sel-sched-ir.c (merge_history_vect): Factor out from ...
21066 (merge_expr_data): ... here.
21067 (av_set_intersect): Rename to av_set_code_motion_filter.
21068 Update all callers. Call merge_history_vect when an expression
21069 is found in both sets.
21070 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21072 2011-03-26 Alan Modra <amodra@gmail.com>
21074 * config/rs6000/predicates.md (word_offset_memref_op): Handle
21075 cmodel medium addresses.
21076 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21077 64-bit gpr loads and stores.
21078 (rs6000_secondary_reload_ppc64): New function.
21079 * config/rs6000/rs6000-protos.h: Declare it.
21080 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21082 2011-03-26 Alan Modra <amodra@gmail.com>
21085 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21086 GNU Go in traceback table.
21088 2011-03-25 Richard Henderson <rth@redhat.com>
21090 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21091 if there are exactly 6 operands.
21092 (set_storage_via_setmem): Similarly.
21094 2011-03-25 Kai Tietz <ktietz@redhat.com>
21096 * collect2.c (write_c_file_stat): Handle backslash
21097 as right-hand directory separator.
21098 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21099 checking just for slash.
21100 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21101 instead of checking for trailing slash.
21102 * gcc.c (record_temp_file): Use filename_cmp instead
21104 (do_spec_1): Likewise.
21105 (replace_outfile_spec_function): Likewise.
21106 (is_directory): Use filename_ncmp instead of strncmp.
21107 (print_multilib_info): Likewise.
21108 * gcov.c (find_source): Use filename_cmp instead
21110 (make_gcov_file_name): Fix order of slash/backslash
21112 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21113 (add_standard_paths): Likewise.
21114 * mips-tfile.c (saber_stop): Handle backslash.
21115 * prefix.c (update_path): Use filename_ncmp instead of
21117 * profile.c (output_location): Use filename_cmp instead
21119 * read-md.c (handle_toplevel_file): Handle backslash.
21120 * tlink.c (frob_extension): Likewise.
21121 * tree-cfg.c (same_line_p): Use filename_cmp instead of
21123 * tree-dump.c (dequeue_and_dump): Handle backslash.
21124 * tree.c (get_file_function_name): Likewise.
21125 * gengtype.c (read_input_list): Likewise.
21126 (get_file_realbasename): Likewise.
21127 (get_output_file_with_visibility): Use filename_cmp
21130 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
21132 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21135 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
21137 * fold-const.c (expr_location_or): New function.
21138 (fold_truth_not_expr): Call it.
21140 2011-03-25 Jeff Law <law@redhat.com>
21142 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21144 * c-family/c-common.c (def_fn_type): Likewise.
21145 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21146 * emit-rtl.c (gen_rtvec): Likewise.
21147 * lto/lto-lang.c (def_fn_type): Likewise.
21149 2011-03-25 Richard Guenther <rguenther@suse.de>
21151 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21152 also generate copies.
21153 (fini_copy_prop): Handle constant values properly.
21155 2011-03-25 Jakub Jelinek <jakub@redhat.com>
21157 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21158 mode size instead of bitsize with DWARF2_ADDR_SIZE.
21159 (hash_loc_operands, compare_loc_operands): Handle
21160 DW_OP_GNU_entry_value.
21162 2011-03-25 Kai Tietz <ktietz@redhat.com>
21164 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21165 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21166 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21167 comment and use macro TARGET_64BIT_MS_ABI instead.
21168 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21169 and change default behavior for 32-bit MS_ABI.
21170 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21171 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21173 (ix86_cfun_abi): Likewise.
21174 (ix86_maybe_switch_abi): Adjust comment.
21175 (init_cumulative_args): Check for bit-ness in MS_ABI case.
21176 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21177 instead of checking for SYSV_ABI.
21178 (ix86_nsaved_sseregs): Likewise.
21179 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21181 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
21182 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
21183 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
21184 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
21185 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
21187 2011-03-25 Richard Guenther <rguenther@suse.de>
21189 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
21190 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21191 (verify_gimple): Remove.
21192 * tree-cfg.c (verify_gimple_call): Merge verification
21194 (verify_gimple_phi): Merge verification from verify_stmts.
21195 (verify_gimple_label): New function.
21196 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
21197 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
21198 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
21199 (verify_stmts): Rename to verify_gimple_in_cfg.
21200 (verify_gimple_in_cfg): New function.
21201 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
21202 * tree-ssa.c (verify_ssa): Likewise.
21203 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
21205 2011-03-25 Richard Guenther <rguenther@suse.de>
21207 * passes.c (init_optimization_passes): Add FRE pass after
21210 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
21211 Andrew Stubbs <ams@codesourcery.com>
21213 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
21215 (arm_movdi_vfp_cortexa8): New pattern.
21216 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
21217 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
21218 instructions when tuning for Cortex-A8. Set attribute "arch".
21219 * config/arm/arm.md: Move include arm-tune.md up a bit.
21220 (define_attr "arch"): Add "onlya8" and "nota8" values.
21221 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
21223 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
21227 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21229 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21230 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
21231 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21232 * passes.c (init_optimization_passes): Move
21233 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21235 2011-03-25 Kai Tietz <ktietz@redhat.com>
21237 * c-typeck.c (comptypes_internal): Replace target
21238 hook call of comp_type_attributes by version in tree.c file.
21239 * gimple.c (gimple_types_compatible_p_1): Likewise.
21240 * tree-ssa.c (useless_type_conversion_p): Likewise.
21241 * tree.c (build_type_attribute_qual_variant): Likewise.
21242 (attribute_value_equal): New static helper function.
21243 (comp_type_attributes): New function.
21244 (merge_attributes): Use attribute_value_equal for comparison.
21245 (attribute_list_contained): Likewise.
21246 * tree.h (comp_type_attributes): New prototype.
21248 2011-03-25 Richard Guenther <rguenther@suse.de>
21250 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
21251 of complex types at -O0.
21252 (verify_gimple_assign_binary): Likewise.
21253 (verify_gimple_assign_ternary): Likewise.
21255 2011-03-24 Mark Wielaard <mjw@redhat.com>
21257 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
21258 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
21260 2011-03-24 Mark Wielaard <mjw@redhat.com>
21263 * dwarf2out.c (output_abbrev_section): Only write table when
21264 abbrev_die_table_in_use > 1.
21266 2011-02-24 Richard Henderson <rth@redhat.com>
21268 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
21269 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
21270 (alpha_expand_unaligned_load_words): Use extql.
21271 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
21272 (emit_insxl): Handle all modes for consistency.
21274 2011-02-24 Richard Henderson <rth@redhat.com>
21276 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
21277 (alpha_expand_unaligned_load): Likewise.
21278 (alpha_expand_unaligned_store): Likewise.
21279 (alpha_expand_unaligned_load_words): Likewise.
21280 (alpha_expand_unaligned_store_words): Likewise.
21281 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
21282 (alpha_split_lock_test_and_set_12): Likewise.
21283 (print_operand, alpha_fold_builtin_extxx): Likewise.
21284 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
21285 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
21286 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
21287 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
21288 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
21289 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
21290 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
21291 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
21292 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
21293 (extwl, extll, extql): Similarly.
21294 (inswh, inslh, insqh): Similarly.
21295 (mskbl, mskwl, mskll, mskql): Similarly.
21296 (mskwh, msklh, mskqh): Similarly.
21298 2011-02-24 Richard Henderson <rth@redhat.com>
21300 * config/alpha/alpha.md (attribute isa): Add er, ner.
21301 (attribute enabled): Handle them.
21302 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
21304 2011-02-24 Richard Henderson <rth@redhat.com>
21306 * config/alpha/alpha.md (attribute isa): Add vms.
21307 (attribute enabled): Handle it.
21308 (*movsf): Merge *movsf_{nofix,fix,nofp}.
21309 (*movdf): Merge *movdf_{nofix,fix,nofp}.
21310 (*movtf): Rename from *movtf_internal for consistency.
21311 (*movsi): Merge with *movsi_nt_vms.
21312 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
21313 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
21314 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
21315 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
21317 2011-02-24 Richard Henderson <rth@redhat.com>
21319 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
21320 (extendqisi2, extendhisi2): Likewise.
21321 (extendqidi2): Simplify BWX/non-BWX expansions.
21322 (extendhidi2): Similarly.
21324 2011-02-24 Richard Henderson <rth@redhat.com>
21326 * config/alpha/alpha.md (attribute isa): New.
21327 (attribute enabled): New.
21328 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
21329 (zero_extendqisi2, zero_extendqidi2): Similarly.
21330 (zero_extendhisi2, zero_extendhidi2): Similarly.
21331 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
21333 2011-02-24 Richard Henderson <rth@redhat.com>
21335 * config/alpha/predicates.md (input_operand): Revert last change;
21336 update comment to mention 32-bit VMS rather than Windows.
21338 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21340 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
21341 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
21342 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
21343 * passes.c (init_optimization_passes): Move
21344 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
21346 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
21348 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
21350 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
21352 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
21355 2011-03-24 Jakub Jelinek <jakub@redhat.com>
21358 * simplify-rtx.c (simplify_const_unary_operation): Call
21359 real_convert when changing mode class with FLOAT_EXTEND.
21361 2011-03-24 Nick Clifton <nickc@redhat.com>
21363 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
21364 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21365 * config/rx/rx.c (rx_option_override): Set align_jumps,
21366 align_loops and align_labels if not set by the user.
21367 (rx_align_for_label): New function.
21368 (rx_max_skip_for_label): New function.
21369 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
21370 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
21371 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
21372 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
21373 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
21375 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
21377 PR rtl-optimization/48263
21378 * optabs.c (expand_binop_directly): Reinstate convert_modes code
21379 and original commutative_p handling. Use maybe_gen_insn.
21381 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21383 * reload.c (find_reloads_subreg_address): Add address_reloaded
21384 parameter and return true there if the full address has been
21386 (find_reloads_toplev): Pass address_reloaded flag.
21387 (find_reloads_address_1): Don't use address_reloaded parameter.
21389 2011-03-24 Jeff Law <law@redhat.com>
21391 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21392 unused variable "ann".
21393 (remove_unused_locals): Likewise.
21395 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21398 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21401 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21403 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21404 for invalid symbolic addresses.
21405 (s390_secondary_reload): Don't use s390_check_symref_alignment for
21408 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
21410 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21411 the argument in calls to fold_truth_not_expr.
21413 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21415 * tree.c (record_node_allocation_statistics): New function.
21416 (make_node_stat, copy_node_stat, build_string): Call it.
21417 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21418 (build1_stat, build_omp_clause): Likewise.
21420 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
21422 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21425 2011-03-24 Richard Guenther <rguenther@suse.de>
21427 PR tree-optimization/48271
21428 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21429 blocks that still exist.
21431 2011-03-24 Richard Guenther <rguenther@suse.de>
21433 PR tree-optimization/48270
21434 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21435 not free datarefs before ddrs.
21437 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
21439 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21440 from the address built for a reference with variable offset.
21442 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
21445 * config/i386/i386.md (*movdf_internal_rex64): Do not split
21446 alternatives that can be handled with movq or movabsq insn.
21447 (*movdf_internal): Disable for !TARGET_64BIT.
21448 (*movdf_internal_nointeger): Ditto.
21449 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21451 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
21453 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21454 (FUNCTION_ARG_ADVANCE): Likewise.
21455 * tm.texi.in: Change references to them to hook references.
21456 * tm.texi: Regenerate.
21457 * targhooks.c (default_function_arg): Eliminate check for target macro.
21458 (default_function_incoming_arg): Likewise.
21459 (default_function_arg_advance): Likewise.
21460 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21461 (function_arg_advance): Likewise.
21462 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21464 2011-03-24 Richard Guenther <rguenther@suse.de>
21466 PR middle-end/48269
21467 * tree-object-size.c (addr_object_size): Do not double-account
21468 for MEM_REF offsets.
21470 2011-03-24 Diego Novillo <dnovillo@google.com>
21472 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21473 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21474 (lto_input_data_block): Move from lto-opts.c. Make extern.
21476 (lto_input_string): Rename from input_string. Make extern.
21478 * lto-streamer-out.c (lto_output_string_with_length): Rename from
21479 output_string_with_length.
21480 Output 0 to indicate a non-NULL string. Update all callers to
21482 (lto_output_string): Rename from output_string. Make extern.
21484 (lto_output_decl_state_streams): Make extern.
21485 (lto_output_decl_state_refs): Make extern.
21486 * lto-streamer.h (lto_input_string): Declare.
21487 (lto_input_data_block): Declare.
21488 (lto_output_string): Declare.
21489 (lto_output_string_with_length): Declare.
21490 (lto_output_decl_state_streams): Declare.
21491 (lto_output_decl_state_refs): Declare.
21493 2011-03-24 Richard Guenther <rguenther@suse.de>
21495 PR tree-optimization/46562
21496 * tree.c (build_invariant_address): New function.
21497 * tree.h (build_invariant_address): Declare.
21498 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21499 a renamed function moved ...
21500 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21501 Take valueization callback parameter.
21502 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21503 * gimple-fold.h: New file.
21504 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21505 (ccp_fold, fold_const_aggregate_ref,
21506 fold_ctor_reference, fold_nonarray_ctor_reference,
21507 fold_array_ctor_reference, fold_string_cst_ctor_reference,
21508 get_base_constructor): Move ...
21509 * gimple-fold.c: ... here.
21510 (gimple_fold_stmt_to_constant_1): New function
21511 split out from ccp_fold. Take a valueization callback parameter.
21512 Valueize all operands.
21513 (gimple_fold_stmt_to_constant): New wrapper function.
21514 (fold_const_aggregate_ref_1): New function split out from
21515 fold_const_aggregate_ref. Take a valueization callback parameter.
21516 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21517 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21518 invariant POINTER_PLUS_EXPRs to invariant form.
21519 (vn_valueize): New function.
21520 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21521 * tree-vrp.c (vrp_valueize): New function.
21522 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21523 to fold statements to constants.
21524 * tree-ssa-pre.c (eliminate): Properly guard propagation of
21525 function declarations.
21526 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21527 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21529 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
21531 * config/h8300/predicates.md (jump_address_operand): Fix register
21534 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
21536 * doc/invoke.texi (max-stores-to-sink): Document.
21537 * params.h (MAX_STORES_TO_SINK): Define.
21538 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21539 if either vectorization or if-conversion is disabled.
21540 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21541 tree-vect-data-refs.c vect_equal_offsets.
21542 (dr_equal_offsets_p): New function.
21543 (find_data_references_in_bb): Remove static.
21544 * tree-data-ref.h (find_data_references_in_bb): Declare.
21545 (dr_equal_offsets_p): Likewise.
21546 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21547 (vect_drs_dependent_in_basic_block): Update calls to
21548 vect_equal_offsets.
21549 (vect_check_interleaving): Likewise.
21550 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21551 (cond_if_else_store_replacement): Rename to...
21552 (cond_if_else_store_replacement_1): ... this. Change arguments and
21554 (cond_if_else_store_replacement): New function.
21555 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21556 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21558 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
21561 * config/arm/arm.md (casesi): Use the gen_int_mode() function
21562 to subtract lower bound instead of GEN_INT().
21564 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
21569 * doc/extend.texi (Alignment): Move section to match order in TOC.
21570 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21571 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21573 2011-03-23 Jeff Law <law@redhat.com>
21575 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21576 before removing the edge.
21578 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21579 it may have been freed by redirect_branch_edge or
21580 redirect_edge_succ_nodup.
21582 2011-03-23 Richard Guenther <rguenther@suse.de>
21584 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21585 (check_va_list_escapes): Likewise.
21586 (check_all_va_list_escapes): Likewise.
21588 2011-03-23 Richard Guenther <rguenther@suse.de>
21590 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21591 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21592 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21593 (alias.o): Likewise.
21594 (ipa-type-escape.o): Remove.
21595 (ipa-struct-reorg.o): Likewise.
21596 (GTFILES): Remove ipa-struct-reorg.c.
21597 * alias.c: Do not include ipa-type-escape.h.
21598 * tree-ssa-alias.c: Likewise.
21599 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21600 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21601 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21602 and ipa-type-escape passes.
21603 * tree-pass.h (pass_ipa_type_escape): Remove.
21604 (pass_ipa_struct_reorg): Likewise.
21605 * ipa-struct-reorg.h: Remove.
21606 * ipa-struct-reorg.c: Likewise.
21607 * ipa-type-escape.h: Likewise.
21608 * ipa-type-escape.c: Likewise.
21609 * doc/invoke.texi (-fipa-struct-reorg): Remove.
21610 (--param struct-reorg-cold-struct-ratio): Likewise.
21611 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21612 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21613 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21615 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21617 * config/s390/2084.md: Enable all insn reservations also for z9_ec
21618 cpu attribute value.
21619 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21620 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21621 * config/s390/s390.c (processor_flags_table): New constant array.
21622 (s390_handle_arch_option): Remove.
21623 (s390_handle_option): Remove s390_handle_arch_option invocations
21624 and OPT_mwarn_framesize_ handling.
21625 (s390_option_override): Remove s390_handle_arch_option invocation.
21626 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21628 * config/s390/s390.md (cpu attribute): Add z9_ec value.
21629 * config/s390/s390.opt (s390_tune, s390_arch)
21630 (march=): Replace s390_arch_option enum and values with
21631 processor_type. Set variable name to s390_arch. Set
21632 initialization value.
21633 (mtune=): Replace s390_arch_option with processor_type. Set
21634 variable name to s390_tune. Set initialization value.
21636 2011-03-23 Julian Brown <julian@codesourcery.com>
21638 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21639 accesses which are not naturally aligned.
21641 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
21644 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21646 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
21648 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21649 parameter from "int" to "enum insn_code".
21650 (expand_operand_type): New enum.
21651 (expand_operand): New structure.
21652 (create_expand_operand): New function.
21653 (create_fixed_operand, create_output_operand): Likewise
21654 (create_input_operand, create_convert_operand_to): Likewise.
21655 (create_convert_operand_from, create_address_operand): Likewise.
21656 (create_integer_operand): Likewise.
21657 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21658 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21659 (expand_insn, expand_jump_insn): Likewise.
21660 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21661 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21662 (expand_movstr, expand_builtin___clear_cache): Likewise.
21663 (expand_builtin_lock_release): Likewise.
21664 * explow.c (allocate_dynamic_stack_space): Likewise.
21665 (probe_stack_range): Likewise. Allow check_stack to FAIL,
21666 and use the default handling in that case.
21667 * expmed.c (check_predicate_volatile_ok): Delete.
21668 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21669 (emit_cstore): Likewise.
21670 * expr.c (emit_block_move_via_movmem): Likewise.
21671 (set_storage_via_setmem, expand_assignment): Likewise.
21672 (emit_storent_insn, try_casesi): Likewise.
21673 (emit_single_push_insn): Likewise. Allow the expansion to fail.
21674 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21675 (expand_vec_shift_expr, expand_binop_directly): Likewise.
21676 (expand_twoval_unop, expand_twoval_binop): Likewise.
21677 (expand_unop_direct, emit_indirect_jump): Likewise.
21678 (emit_conditional_move, vector_compare_rtx): Likewise.
21679 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21680 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21681 (expand_sync_lock_test_and_set): Likewise.
21682 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
21683 (emit_unop_insn): Likewise.
21684 (expand_copysign_absneg): Change icode to an insn_code.
21685 (create_convert_operand_from_type): New function.
21686 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21687 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21688 (expand_insn, expand_jump_insn): Likewise.
21689 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21690 than const_int_operand for operand 2.
21692 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21694 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21697 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21699 * emit-rtl.c (emit_pattern_before_noloc): New function.
21700 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21701 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21702 (emit_pattern_after_noloc): New function.
21703 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21704 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21706 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
21708 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21709 (__ffsDI2): Likewise.
21711 2011-03-22 Richard Henderson <rth@redhat.com>
21713 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21714 of !TARGET_ABI_OPEN_VMS.
21715 (alpha_trampoline_init, alpha_start_function): Likewise.
21716 (alpha_expand_epilogue, alpha_file_start): Likewise.
21717 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21718 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21719 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21720 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21721 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21723 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21725 * config/s390/s390-opts.h: New.
21726 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21727 s390_arch_flags, s390_warn_framesize, s390_stack_size,
21728 s390_stack_guard): Remove.
21729 (s390_handle_arch_option): Return void. Take enum
21730 s390_arch_option value instead of string and searching array.
21731 (s390_handle_option): Don't assert that global structures are in
21732 use. Access variables via opts pointer. Use error_at. Don't use
21733 sscanf for -mstack-guard= or -mstack-size=. Update call to
21734 s390_handle_arch_option.
21735 (s390_option_override): Update call to s390_handle_arch_option.
21736 (s390_emit_prologue): Use %d format for s390_stack_size in
21737 diagnostic. Use %wd for HOST_WIDE_INT.
21738 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21739 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21740 * config/s390/s390.opt (config/s390/s390-opts.h): New
21741 HeaderInclude entry.
21742 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21743 s390_arch_flags, s390_warn_framesize): New Variable entries.
21744 (s390_arch_option): New Enum and EnumValue entries.
21745 (march=): Use Enum instead of Var.
21746 (mstack-guard=, mstack-size=): Use UInteger and Var.
21747 (mtune=): Use Enum.
21749 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21751 * config/score/score.c (score_handle_option): Don't assert that
21752 global structures are in use. Access target_flags via opts
21753 pointer. Use value of -march= option to determine target_flags
21755 * config/score/score.opt (march=): Use Enum.
21756 (score_arch): New Enum and EnumValue entries.
21758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21760 * config/mep/mep.c (option_mtiny_specified): Remove.
21761 (mep_option_override): Move register handling for -mivc2 from
21762 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
21763 instead of option_mtiny_specified.
21764 (mep_handle_option): Access target_flags via opts pointer. Don't
21765 assert that global structures are in use. Defer part of -mivc2
21766 handling and move it to mep_option_override.
21767 * config/mep/mep.opt (IVC2): New Mask entry.
21768 (mivc2): Use Var and Defer instead of Mask.
21770 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21772 * config/v850/v850-opts.h: New.
21773 * config/v850/v850.c (small_memory): Replace with
21774 small_memory_physical_max array. Make that array static const.
21775 (v850_handle_memory_option): Take integer value of argument. Take
21776 gcc_options pointer, option text and location. Return void.
21777 Update for changes to small memory structures.
21778 (v850_handle_option): Access target_flags via opts pointer. Don't
21779 assert that global structures are in use. Update calls to
21780 v850_handle_memory_option.
21781 (v850_encode_data_area): Update references to small memory settings.
21782 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21783 (enum small_memory_type): Move to v850-opts.h.
21784 * config/v850/v850.opt (config/v850/v850-opts.h): New
21785 HeaderInclude entry.
21786 (small_memory_max): New Variable entry.
21787 (msda): Replace by pair of options msda= and msda-. Use UInteger.
21788 (mtda, mzda): Likewise.
21790 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21792 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21793 pointer. Don't assert that global structures are in use.
21795 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21797 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21798 via opts pointer. Don't assert that global structures are in use.
21800 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21802 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21803 (munix=93): Use Var.
21804 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21805 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21806 * config/pa/pa-opts.h: New.
21807 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21808 (pa_handle_option): Don't assert that global structures are in
21809 use. Access target_flags via opts pointer. Don't handle
21810 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21812 (pa_option_override): Handle deferred OPT_mfixed_range_.
21814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21816 * config/mn10300/mn10300-opts.h: New.
21817 * config/mn10300/mn10300.c (mn10300_processor,
21818 mn10300_tune_string): Remove.
21819 (mn10300_handle_option): Don't assert that global structures are
21820 in use. Access mn10300_processor via opts pointer. Don't handle
21822 * config/mn10300/mn10300.h (enum processor_type): Move to
21824 (mn10300_processor): Remove.
21825 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21826 HeaderInclude entry.
21827 (mn10300_processor): New Variable entry.
21830 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21832 * config/microblaze/microblaze.c: Don't include opts.h.
21833 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21834 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21835 (mno-clearbss): Use Var and Warn.
21837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21839 * config/m32r/m32r-opts.h: New.
21840 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21841 (m32r_handle_option): Don't assert that global structures are in
21842 use. Access target_flags and m32r_cache_flush_func via opts
21843 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
21844 OPT_mno_flush_trap here.
21845 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21846 include of m32r-opts.h.
21847 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21848 HeaderInclude entry.
21849 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21850 (mmodel=): Use Enum and Var.
21851 (m32r_model): New Enum and EnumValue entries.
21852 (mno-flush-trap): Use Var.
21853 (msdata=): Use Enum and Var.
21854 (m32r_sdata): New Enum and EnumValue entries.
21856 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21858 * config/m32c/m32c.c: Don't include opts.h.
21859 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21860 m32c_handle_option): Remove.
21861 (m32c_option_override): Check global_options_set.x_target_memregs
21862 instead of target_memregs_set.
21863 * config/m32c/m32c.h (target_memregs): Remove.
21864 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21867 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21869 * config/iq2000/iq2000-opts.h: New.
21870 * config/iq2000/iq2000.c: Don't include opts.h.
21871 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21872 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21873 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21874 HeaderInclude entry.
21875 (iq2000_tune): New Variable entry.
21876 (march=): Add comment. Use Enum.
21877 (iq2000_arch): New Enum and EnumValue entries.
21878 (mcpu=): Use Enum and Var.
21879 (iq2000_tune): New Enum and EnumValue entries.
21881 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21883 * config/ia64/ia64-opts.h: New.
21884 * config/ia64/ia64.c (ia64_tune): Remove.
21885 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21886 here. Use error_at.
21887 (ia64_option_override): Handle deferred OPT_mfixed_range_.
21888 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21889 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21890 HeaderInclude entry.
21891 (ia64_tune): New Variable entry.
21892 (mfixed-range=): Use Defer and Var.
21893 (mtune=): Use Enum and Var.
21894 (ia64_tune): New Enum and EnumValue entries.
21896 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21898 * config/frv/frv-opts.h: New.
21899 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21901 (frv_cpu_type): Remove.
21902 * config/frv/frv.c: Don't include opts.h.
21903 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21904 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21905 (frv_cpu_type): New Variable entry.
21906 (frv_cpu): New Enum and EnumValue entries.
21908 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21910 * config/cris/cris.c (cris_handle_option): Access target_flags via
21911 opts pointer. Don't assert that global structures are in use.
21912 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21913 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21915 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21917 * config/bfin/bfin-opts.h: New.
21918 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21919 bfin_si_revision, bfin_workarounds): Remove.
21920 (bfin_cpus): Make static const.
21921 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21922 not bfin_lib_id_given.
21923 (bfin_handle_option): Don't set bfin_lib_id_given. Access
21924 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21925 pointer. Use error_at. Don't assert that global structures are in use.
21926 * config/bfin/bfin.h: Include bfin-opts.h.
21927 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21928 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21929 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21930 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21935 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21936 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21937 or -msoft-float here.
21938 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21939 -msoft-float and -mhard-float.
21940 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21941 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21943 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21945 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21946 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21948 (LIBGCC_SPEC): Don't handle -msoft-float.
21949 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21951 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21953 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21954 -mfloat-abi=*, not -msoft-float and -mhard-float.
21955 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21957 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21958 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21959 mhard-float and msoft-float.
21960 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21961 mfloat-abi=soft in comments, not mhard-float and msoft-float.
21962 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21963 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21965 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21966 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21968 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21970 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21973 2011-03-22 Richard Henderson <rth@redhat.com>
21975 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21976 TARGET_ABI_WINDOWS_NT.
21977 (alpha_output_function_end_prologue): Likewise.
21978 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21979 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21980 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21981 (trap, *movsi_nt_vms): Likewise.
21982 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21983 (*tablejump_osf_nt_internal): Remove.
21984 * config/alpha/predicates.md (input_operand): Only test Pmode.
21986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21988 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21989 via opts pointer. Use error_at. Don't assert that global
21990 structures are in use.
21992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
21994 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21995 (ix86_handle_option): Access ix86_isa_flags and
21996 ix86_isa_flags_explicit via opts pointer. Don't assert that
21997 global structures are in use.
21998 (ix86_function_specific_save, ix86_function_specific_restore):
21999 Update ix86_isa_flags_explicit field name.
22000 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22001 (ix86_isa_flags_explicit): Rename TargetSave entry to
22002 x_ix86_isa_flags_explicit.
22004 2011-03-22 Richard Henderson <rth@redhat.com>
22006 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22007 (alpha_option_override, direct_return): Likewise.
22008 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22009 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22010 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22011 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22012 (alpha_expand_epilogue, alpha_end_function): Likewise.
22013 (alpha_init_libfuncs): Likewise.
22014 (struct machine_function): Remove unicosmk members.
22015 (print_operand) ['t']: Remove.
22016 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22017 unicosmk_output_module_name, unicosmk_output_common,
22018 current_section_align, unicosmk_output_text_section_asm_op,
22019 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22020 unicosmk_section_type_flags, unicosmk_unique_section,
22021 unicosmk_asm_named_section, unicosmk_insert_attributes,
22022 unicosmk_output_align, unicosmk_defer_case_vector,
22023 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22024 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22025 unicosmk_output_ssib, unicosmk_add_call_info_word,
22026 unicosmk_extern_head, unicosmk_output_default_externs,
22027 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22028 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22029 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22030 * config/alpha/alpha-protos.h: Update.
22031 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22032 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22033 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22034 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22035 (*mulsi_se, mulvsi3): Likewise.
22036 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22037 (*divmodsi_internal, call, call_value, realign): Likewise.
22038 (moddi3, umoddi3): Likewise; remove duplicate expander.
22039 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22040 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22041 (*movdi_nofix): Remove r/U alternative.
22042 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22043 * config/alpha/constraints.md ("U"): Remove.
22044 * config/alpha/predicates.md (call_operand"): Don't test
22045 TARGET_ABI_UNICOSMK.
22047 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22049 * target.def (handle_option): Take gcc_options and
22050 cl_decoded_option pointers and location_t.
22051 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22052 * doc/tm.texi: Regenerate.
22053 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22054 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22055 * lto-opts.c (lto_reissue_options): Generate option structure for
22056 targetm.handle_option call.
22057 * opts.c (target_handle_option): Update call to
22058 targetm.handle_option. Remove assertions about values now passed
22060 * targhooks.c (default_target_handle_option): New.
22061 * targhooks.h (default_target_handle_option): Declare.
22062 * config/alpha/alpha.c: Include opts.h.
22063 (alpha_handle_option): Update to new hook interface.
22064 * config/arm/arm.c: Include opts.h.
22065 (arm_handle_option): Update to new hook interface.
22066 * config/arm/t-arm (arm.o): Update dependencies.
22067 * config/bfin/bfin.c: Include opts.h.
22068 (bfin_handle_option): Update to new hook interface.
22069 * config/cris/cris.c: Include opts.h.
22070 (cris_handle_option): Update to new hook interface.
22071 * config/frv/frv.c: Include opts.h.
22072 (frv_handle_option): Update to new hook interface.
22073 * config/i386/i386.c: Include opts.h.
22074 (ix86_handle_option): Update to new hook interface.
22075 (ix86_valid_target_attribute_inner_p): Generate option structure
22076 for call to ix86_handle_option.
22077 * config/i386/t-i386 (i386.o): Update dependencies.
22078 * config/ia64/ia64.c: Include opts.h.
22079 (ia64_handle_option): Update to new hook interface.
22080 * config/ia64/t-ia64 (ia64.o): Update dependencies.
22081 * config/iq2000/iq2000.c: Include opts.h.
22082 (iq2000_handle_option): Update to new hook interface.
22083 * config/m32c/m32c.c: Include opts.h.
22084 (m32c_handle_option): Update to new hook interface.
22085 * config/m32r/m32r.c: Include opts.h.
22086 (m32r_handle_option): Update to new hook interface.
22087 * config/m68k/m68k.c: Include opts.h.
22088 (m68k_handle_option): Update to new hook interface.
22089 * config/mep/mep.c: Include opts.h.
22090 (mep_handle_option): Update to new hook interface.
22091 * config/microblaze/microblaze.c: Include opts.h.
22092 (microblaze_handle_option): Update to new hook interface.
22093 * config/mips/mips.c: Include opts.h.
22094 (mips_handle_option): Update to new hook interface.
22095 * config/mn10300/mn10300.c: Include opts.h.
22096 (mn10300_handle_option): Update to new hook interface.
22097 * config/pa/pa.c: Include opts.h.
22098 (pa_handle_option): Update to new hook interface.
22099 * config/pdp11/pdp11.c: Include opts.h.
22100 (pdp11_handle_option): Update to new hook interface.
22101 * config/rs6000/rs6000.c: Include opts.h.
22102 (rs6000_handle_option): Update to new hook interface.
22103 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22104 * config/rx/rx.c: Include opts.h.
22105 (rx_handle_option): Update to new hook interface.
22106 * config/s390/s390.c: Include opts.h.
22107 (s390_handle_option): Update to new hook interface.
22108 * config/score/score.c: Include opts.h.
22109 (score_handle_option): Update to new hook interface.
22110 * config/sh/sh.c: Include opts.h.
22111 (sh_handle_option): Update to new hook interface.
22112 * config/sparc/sparc.c: Include opts.h.
22113 (sparc_handle_option): Update to new hook interface.
22114 * config/v850/v850.c: Include opts.h.
22115 (v850_handle_option): Update to new hook interface.
22117 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22119 * gcc.c (driver_unknown_option_callback): Only permit and save
22120 unknown -Wno- options.
22121 (driver_wrong_lang_callback): Save options directly instead of via
22122 driver_unknown_option_callback.
22124 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
22126 * combine.c (simplify_set): Try harder to find the best CC mode when
22127 simplifying a nested COMPARE on the RHS.
22129 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22131 * config/alpha/gnu.h: Remove.
22132 * config/arc: Remove directory.
22133 * config/arm/netbsd.h: Remove.
22134 * config/arm/t-pe: Remove.
22135 * config/crx: Remove directory.
22136 * config/i386/netbsd.h: Remove.
22137 * config/m68hc11: Remove directory.
22138 * config/m68k/uclinux-oldabi.h: Remove.
22139 * config/mcore/mcore-pe.h: Remove.
22140 * config/mcore/t-mcore-pe: Remove.
22141 * config/netbsd-aout.h: Remove.
22142 * config/rs6000/gnu.h: Remove.
22143 * config/sh/sh-symbian.h: Remove.
22144 * config/sh/symbian-base.c: Remove.
22145 * config/sh/symbian-c.c: Remove.
22146 * config/sh/symbian-cxx.c: Remove.
22147 * config/sh/symbian-post.h: Remove.
22148 * config/sh/symbian-pre.h: Remove.
22149 * config/sh/t-symbian: Remove.
22150 * config/svr3.h: Remove.
22151 * config/vax/netbsd.h: Remove.
22152 * config.build: Don't handle i[34567]86-*-pe.
22153 * config.gcc: Remove handling of deprecations for most deprecated
22155 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22156 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22157 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22158 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22159 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22160 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22162 * config.host: Don't handle i[34567]86-*-pe.
22163 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22164 (ASM_SPEC32): Don't handle -mcall-gnu.
22165 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22167 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22168 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22169 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22170 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22171 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22172 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22173 conditional on SYMBIAN.
22174 * configure.ac: Don't handle powerpc*-*-gnu*.
22175 * configure: Regenerate.
22176 * doc/extend.texi (interrupt attribute): Don't mention CRX.
22177 * doc/install-old.texi (m6811, m6812): Don't mention.
22178 * doc/install.texi (arc-*-elf*): Don't document multilib option.
22179 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22180 (m68k-uclinuxoldabi): Don't mention.
22181 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
22183 (-mcall-gnu): Remove.
22184 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
22185 families): Remove constraint documentation.
22187 2011-03-22 Marius Strobl <marius@FreeBSD.org>
22189 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
22190 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
22191 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
22193 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22196 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
22197 vector when peeking at the next token for vector, don't expand the
22200 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
22202 * config/avr/avr-protos.h (expand_epilogue): Change prototype
22203 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
22204 * config/avr/avr.c (init_cumulative_args)
22205 (avr_function_arg_advance): Use it.
22206 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
22208 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
22209 (avr_function_ok_for_sibcall): ...this new function.
22210 (avr_lookup_function_attribute1): New static Function.
22211 (avr_naked_function_p, interrupt_function_p)
22212 (signal_function_p, avr_OS_task_function_p)
22213 (avr_OS_main_function_p): Use it.
22214 * config/avr/avr.md ("sibcall", "sibcall_value")
22215 ("sibcall_epilogue"): New expander.
22216 ("*call_insn", "*call_value_insn"): New insn.
22217 ("call_insn", "call_value_insn"): Remove
22218 ("call", "call_value", "epilogue"): Change expander to handle
22221 2011-03-21 Nick Clifton <nickc@redhat.com>
22223 * doc/invoke.texi (Overall Options): Move closing brace to end of
22225 (Optimization Options): Add missing @gol.
22226 (Directory Options): Likewise.
22227 (i386 and x86-64 Options): Likewise.
22228 (RS6000 and PowerPC Options): Likewise.
22229 (i386 and x86-64 Windows Options): Likewise.
22230 (V850 Options): Add text missing from descriptions.
22232 2011-03-22 Richard Henderson <rth@redhat.com>
22234 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
22235 (avr_incoming_return_addr_rtx): New.
22236 (emit_push_byte): New.
22237 (expand_prologue): Use it. Remove incorrect dwarf annotation for
22238 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
22239 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
22240 (emit_pop_byte): New.
22241 (expand_epilogue): Use it. Pop frame pointer by bytes.
22242 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
22243 (INCOMING_RETURN_ADDR_RTX): New.
22244 (INCOMING_FRAME_SP_OFFSET): New.
22245 (ARG_POINTER_CFA_OFFSET): New.
22246 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
22247 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
22250 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
22252 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22254 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22255 (FUNCTION_ARG_ADVANCE): Likewise.
22256 * tm.texi.in: Change references to them to hook references.
22257 * tm.texi: Regenerate.
22258 * targhooks.c (default_function_arg): Eliminate check for target
22260 (default_function_incoming_arg): Likewise.
22261 (default_function_arg_advance): Likewise.
22262 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22263 (function_arg_advance): Likewise.
22264 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22266 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22268 * tree.c (build_call_1): New function.
22269 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
22271 2011-03-22 Richard Guenther <rguenther@suse.de>
22273 PR tree-optimization/48228
22274 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
22275 for single-arg PHIs.
22277 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
22279 PR rtl-optimization/48143
22280 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
22281 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
22282 sse2_cvtps2pd): Likewise.
22284 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22286 * recog.c (canonicalize_change_group): Use validate_unshare_change.
22288 2011-03-22 Richard Guenther <rguenther@suse.de>
22290 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
22291 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
22292 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
22293 and REALIGN_LOAD_EXPR.
22294 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
22295 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
22296 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
22297 DOT_PROD_EXPR case ...
22298 (expand_expr_real_2): ... here.
22299 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
22300 and REALIGN_LOAD_EXPR.
22301 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
22302 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
22303 (vect_create_epilog_for_reduction): Likewise.
22304 (vectorizable_reduction): Likewise.
22305 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
22306 * tree-vect-stmts.c (vectorizable_load): Likewise.
22308 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
22310 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
22312 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22314 * config/s390/s390.c (s390_delegitimize_address): Fix offset
22315 handling for PLTOFF/GOTOFF.
22317 2011-03-22 Nick Clifton <nickc@redhat.com>
22319 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
22320 trailing backslash from the end of the macro definition.
22322 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22324 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
22327 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
22329 * expr.h (prepare_operand): Move to...
22330 * optabs.h (prepare_operand): ...here and change the insn code
22331 parameter from "int" to "enum insn_code".
22332 (insn_operand_matches): Declare.
22333 * expr.c (init_expr_target): Use insn_operand_matches.
22334 (compress_float_constant): Likewise.
22335 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
22336 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
22337 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
22338 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
22340 (gen_cond_trap): Likewise.
22341 (prepare_operand): Likewise. Change icode to an insn_code.
22342 (insn_operand_matches): New function.
22343 * reload.c (find_reloads_address_1): Use insn_operand_matches.
22344 * reload1.c (gen_reload): Likewise.
22345 * targhooks.c (default_secondary_reload): Likewise.
22347 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
22349 * config/alpha/alpha.md (unspec): New define_c_enum.
22352 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
22355 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
22356 between a call and its CALL_ARG_LOCATION note.
22358 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
22360 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
22362 2011-03-21 Jakub Jelinek <jakub@redhat.com>
22366 * c-common.c (shorten_compare): If primopN is first sign-extended
22367 to opN and then zero-extended to result type, set primopN to opN.
22369 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
22371 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
22372 for barrier handlers.
22374 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
22376 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
22377 UNSPEC constants to be in the unspec enumeration, and redefine
22378 all UNSPECV constants to be in the unspecv enumeration, so that
22379 dumps print which unspec/unspec_volatile this is.
22380 * config/rs6000/vector.md (UNSPEC_*): Ditto.
22381 * config/rs6000/paired.md (UNSPEC_*): Ditto.
22382 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
22383 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
22384 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
22386 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
22387 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
22388 UNSPECV_LWSYNC, since these are used as unspec_volatile.
22389 * config/rs6000/sync.md (isync, lwsync): Ditto.
22391 2011-03-21 Richard Guenther <rguenther@suse.de>
22393 * params.def (lto-min-partition): Fix typo.
22395 2011-03-21 Richard Guenther <rguenther@suse.de>
22398 * c-decl.c (grokdeclarator): Drop to the main variant only
22399 for array types. Drop flag_gen_aux_info check.
22401 2011-03-21 Richard Guenther <rguenther@suse.de>
22403 PR translation/47911
22404 * params.def (lto-partitions): Fix typo.
22405 (lto-min-partition): Fix wording.
22407 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
22409 * config/rs6000/t-freebsd: Remove duplication from file.
22411 2011-03-21 Richard Guenther <rguenther@suse.de>
22413 PR middle-end/47661
22414 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22416 2011-03-21 Richard Guenther <rguenther@suse.de>
22419 * params.def (lto-partitions): Require at least 1 partition.
22421 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22423 * gthr-solaris.h: Remove.
22424 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22425 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22426 (LIB_SPEC): Likewise.
22427 * config/sol2.opt (threads): Remove.
22428 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22429 (sparc*-*-solaris2*): Likewise.
22430 * configure.ac (enable_threads): Enable solaris support.
22431 * configure: Regenerate.
22432 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22433 * doc/install.texi (Configuration, --enable-threads=lib): Remove
22436 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22438 * config.gcc: Obsolete *-*-solaris2.8*.
22439 * doc/install.texi (Specific, *-*-solaris2*): Document it.
22441 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22444 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22445 reference. Solaris 8 perl works.
22447 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22450 * doc/install.texi (Prerequisites): Move jar etc. up.
22451 Explain support library version requirements.
22453 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22456 * doc/install.texi (Prerequisites): Move Perl to build
22457 requirements. Always necessary on Solaris 2 with Sun ld.
22459 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22461 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22463 (Specific, i?86-*-solaris2.[89]): Likewise.
22464 (Specific, i?86-*-solaris2.10): Likewise.
22465 (Specific, mips-sgi-irix6): Likewise.
22466 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22467 Update for binutils 2.21.
22469 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22471 * configure.ac (gcc_cv_lto_plugin): Fix typo.
22472 Allow -fuse-linker-plugin for non-default plugin linker.
22473 * configure: Regenerate.
22475 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
22478 * gengtype.c (files_rules): Added rule for cp/parser.h.
22480 2011-03-21 Jakub Jelinek <jakub@redhat.com>
22483 * config/s390/s390.c (s390_delegitimize_address): Don't call
22484 lowpart_subreg if orig_x has BLKmode.
22486 2011-03-21 Kai Tietz <ktietz@redhat.com>
22489 * doc/plugins.texi: Adjust documentation for plugin register_callback.
22490 * tree.h (attribute_spec): Add new member affects_type_identity.
22491 * attribs.c (empty_attribute_table): Adjust attribute_spec
22493 * config/alpha/alpha.c: Likewise.
22494 * config/arc/arc.c: Likewise.
22495 * config/arm/arm.c: Likewise.
22496 * config/avr/avr.c: Likewise.
22497 * config/bfin/bfin.c: Likewise.
22498 * config/crx/crx.c: Likewise.
22499 * config/darwin.h: Likewise.
22500 * config/h8300/h8300.c: Likewise.
22501 * config/i386/cygming.h: Likewise.
22502 * config/i386/i386.c: Likewise.
22503 * config/ia64/ia64.c: Likewise.
22504 * config/m32c/m32c.c: Likewise.
22505 * config/m32r/m32r.c: Likewise.
22506 * config/m68hc11/m68hc11.c: Likewise.
22507 * config/m68k/m68k.c: Likewise.
22508 * config/mcore/mcore.c: Likewise.
22509 * config/mep/mep.c: Likewise.
22510 * config/microblaze/microblaze.c: Likewise.
22511 * config/mips/mips.c: Likewise.
22512 * config/rs6000/rs6000.c: Likewise.
22513 * config/rx/rx.c: Likewise.
22514 * config/sh/sh.c: Likewise.
22515 * config/sol2.h: Likewise.
22516 * config/sparc/sparc.c: Likewise.
22517 * config/spu/spu.c: Likewise.
22518 * config/stormy16/stormy16.c: Likewise.
22519 * config/v850/v850.c: Likewise.
22521 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
22523 * simplify-rtx.c (simplify_binary_operation_1): Handle
22524 (xor (and A B) C) case when B and C are both constants.
22526 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
22528 * tree-dfa.c (add_referenced_var): Fix typo in comment.
22530 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
22533 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22535 2011-03-20 Jakub Jelinek <jakub@redhat.com>
22537 PR rtl-optimization/48156
22538 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22539 assume df and df_lr are not NULL.
22541 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22544 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22545 between a call and its CALL_ARG_LOCATION note.
22547 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22550 * config/sh/sh.c (find_barrier): Don't emit a constant pool
22551 between a call and its corresponding CALL_ARG_LOCATION note.
22553 2011-03-19 Anatoly Sokolov <aesok@post.ru>
22555 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22556 instead of loop. Use HARD_REGISTER_NUM_P predicate.
22557 * haifa-sched.c (setup_ref_regs): Ditto.
22558 * caller-save.c (add_used_regs_1): Ditto.
22559 * dse.c (look_for_hardregs): Ditto.
22560 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22561 * sched-rgn.c (check_live_1): Ditto.
22563 2011-03-18 Joseph Myers <joseph@codesourcery.com>
22565 * c-decl.c (diagnose_mismatched_decls): Give an error for
22566 redefining a typedef with variably modified type.
22568 2011-03-18 Joseph Myers <joseph@codesourcery.com>
22570 * c-decl.c (grokfield): Don't allow typedefs for structures or
22571 unions with no tag by default.
22572 * doc/extend.texi (Unnamed Fields): Update.
22574 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
22576 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22577 Rewrite using indirect functions.
22578 (lwp_slwpcb): Ditto.
22579 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22580 (avx_vinsertf128<mode>): Ditto.
22582 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22584 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22587 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22589 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22590 splitting between a call and its corresponding CALL_ARG_LOCATION note.
22592 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22594 PR rtl-optimization/48170
22595 * gcse.c (hoist_code): Remove bogus asserts.
22597 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
22599 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22600 computation for prologue/epilogue.
22602 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22604 * Makefile.in (check-consistency): Remove.
22606 2011-03-18 Jakub Jelinek <jakub@redhat.com>
22609 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22610 arange_table_in_use is 0, but either text_section_used or
22611 cold_text_section_used is true. Don't call it if
22612 !info_section_emitted.
22614 2011-03-18 Anatoly Sokolov <aesok@post.ru>
22616 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22617 FUNCTION_VALUE_REGNO_P): Remove.
22618 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22620 * config/avr/avr.c (avr_ret_register): Make static inline.
22621 (avr_function_value_regno_p): New function.
22622 (avr_libcall_value): Make static. Add 'func' argument.
22623 (avr_function_value): Make static. Rename 'func' argument to
22624 'fn_decl_or_type', forward it to avr_libcall_value. Call
22625 avr_ret_register function instead of RET_REGISTER macro.
22626 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22628 2011-03-18 Jason Merrill <jason@redhat.com>
22631 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22633 2011-03-18 Richard Guenther <rguenther@suse.de>
22635 * doc/install.texi (--enable-gold): Remove.
22636 (--with-plugin-ld): Document.
22637 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22639 2011-03-18 Andrew Pinski <pinskia@gmail.com>
22641 PR middle-end/47790
22642 * expr.c (optimize_bitfield_assignment_op): Revamp to work
22643 again after expansion changes.
22645 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
22647 * combine.c (try_combine): Do simplification only call of
22648 subst() on i2 even when i1 is present. Update comments.
22650 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
22652 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22653 and UNSPEC_PCREL_SYMOFF.
22655 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22657 * config/s390/s390.md: Use define_c_enum for the unspec constant
22660 2011-03-18 Richard Henderson <rth@redhat.com>
22661 Jakub Jelinek <jakub@redhat.com>
22664 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22665 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22667 2011-03-17 Anatoly Sokolov <aesok@post.ru>
22669 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22670 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22671 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22672 Change return type to bool.
22673 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22675 2011-03-17 Jakub Jelinek <jakub@redhat.com>
22678 * var-tracking.c (prepare_call_arguments): If CALL target
22679 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22680 pc instead of looking it up using cselib_lookup and use
22681 Pmode for it if x has VOIDmode.
22682 * dwarf2out.c (gen_subprogram_die): If also both first and
22683 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22686 * function.c (assign_parms): For data.passed_pointer parms
22687 use MEM of data.entry_parm instead of data.entry_parm itself
22688 as DECL_INCOMING_RTL.
22689 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22690 also when passed and declared mode is the same, DECL_RTL
22691 is a MEM with pseudo as address and DECL_INCOMING_RTL is
22694 2011-03-16 Jeff Law <law@redhat.com>
22696 PR rtl-optimization/37273
22697 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22698 handle them like argument loads from stack slots. Do not double
22699 count memory for memory constants and argument loads from stack slots.
22701 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
22704 * var-tracking.c (prepare_call_arguments): Check SUBREG.
22706 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
22709 * config/i386/i386.opt: Add Save to -mavx and -mfma.
22711 2011-03-17 Jakub Jelinek <jakub@redhat.com>
22714 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22716 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22717 Clear call_arg_locations and call_arg_loc_last always.
22719 PR middle-end/48152
22720 * var-tracking.c (prepare_call_arguments): If argument needs to be
22721 passed by reference, adjust argtype and mode.
22723 2011-03-17 Richard Guenther <rguenther@suse.de>
22725 PR middle-end/48134
22726 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22727 a value make sure to fold the statement.
22729 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
22732 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22733 return condition with !cfun->calls_alloca.
22735 2011-03-17 Richard Guenther <rguenther@suse.de>
22738 * lto-cgraph.c (input_overwrite_node): Clear the abstract
22739 origin for decls in other ltrans units.
22740 (input_varpool_node): Likewise.
22742 2011-03-17 Richard Guenther <rguenther@suse.de>
22744 PR middle-end/48165
22745 * tree-object-size.c (compute_object_offset): Properly return
22746 the offset operand of MEM_REFs as sizetype.
22748 2011-03-17 Jakub Jelinek <jakub@redhat.com>
22750 PR rtl-optimization/48141
22751 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22752 * dse.c: Include params.h.
22753 (active_local_stores_len): New variable.
22754 (add_wild_read, dse_step1): Clear it when setting active_local_stores
22756 (record_store, check_mem_read_rtx): Decrease it when removing
22758 (scan_insn): Likewise. Increase it when adding to chain, if it
22759 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22760 set active_local_stores to NULL before the addition.
22761 * Makefile.in (dse.o): Depend on $(PARAMS_H).
22763 PR rtl-optimization/48141
22764 * dse.c (record_store): If no positions are needed in an insn
22765 that cannot be deleted, at least unchain it from active_local_stores.
22767 2011-03-16 Dodji Seketeli <dodji@redhat.com>
22770 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22771 (lookup_type_die_strip_naming_typedef): ... here.
22772 (get_context_die): Use it.
22773 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22774 the anonymous struct named by the naming typedef.
22776 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
22779 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22780 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22782 2011-03-16 Jeff Law <law@redhat.com>
22784 * tree-vrp.c (identify_jump_threads): Slightly simplify type
22785 check for operands of conditional. Allow type to be a pointer.
22787 2011-03-16 Richard Guenther <rguenther@suse.de>
22789 PR tree-optimization/48149
22790 * fold-const.c (fold_binary_loc): Fold
22791 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22793 2011-03-16 Richard Guenther <rguenther@suse.de>
22795 PR tree-optimization/26134
22796 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22797 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22798 (non_rewritable_mem_ref_base): Handle complex type component
22799 accesses, constrain offsets for vector and complex extracts
22802 2011-03-16 Richard Guenther <rguenther@suse.de>
22804 PR tree-optimization/48146
22805 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22806 operands avoiding the need for renaming.
22808 2011-03-16 Richard Guenther <rguenther@suse.de>
22810 * gimple-fold.c (maybe_fold_reference): Open-code relevant
22811 constant folding. Move MEM_REF canonicalization first.
22812 Rely on fold_const_aggregate_ref for initializer folding.
22813 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22815 2011-03-16 Jakub Jelinek <jakub@redhat.com>
22817 PR middle-end/48136
22818 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22819 arg0/arg1 or their arguments are always fold converted to matching
22822 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22825 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22828 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22829 Handle in-tree gold.
22830 (ld_vers): Extract binutils version for gold.
22831 (gcc_cv_ld_hidden): Handle gold here.
22832 (gcc_cv_lto_plugin): Determine level of linker plugin support.
22833 * configure: Regenerate.
22834 * config.in: Regenerate.
22835 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22836 -fuse-linker-plugin otherwise.
22837 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
22838 (LINK_COMMAND_SPEC): Use it.
22839 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22841 2011-03-16 Jakub Jelinek <jakub@redhat.com>
22843 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22844 * calls.c: Remove debug.h include.
22845 (emit_call_1): Don't call virtual_call_token debug hook.
22846 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22847 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22848 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22849 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22850 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22851 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22852 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22853 dwarf2out_virtual_call): Remove.
22854 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22855 copy_call_info and virtual_call hooks.
22856 (dwarf2out_init): Don't initialize vcall_insn_table,
22857 debug_dcall_section and debug_vcall_section.
22858 (prune_unused_types): Don't mark nodes from dcall_table.
22859 (dwarf2out_finish): Don't output dcall or vcall tables.
22860 * final.c (final_scan_insn): Don't call direct_call or
22861 virtual_call debug hooks.
22862 * debug.h (struct gcc_debug_hooks): Remove direct_call,
22863 virtual_call_token, copy_call_info and virtual_call hooks.
22864 (debug_nothing_uid): Remove prototype.
22865 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22866 copy_call_info and virtual_call hooks.
22867 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22868 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22869 * debug.c (do_nothing_debug_hooks): Likewise.
22870 (debug_nothing_uid): Remove.
22871 * doc/invoke.texi (-fenable-icf-debug): Remove.
22872 * common.opt (-fenable-icf-debug): Likewise.
22874 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22875 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22876 call's MEM. Handle functions returning aggregate through a hidden
22877 first pointer. For virtual calls add clobbered pc to call arguments
22879 * dwarf2out.c (gen_subprogram_die): Emit
22880 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22884 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22885 * rtl.h (ENTRY_VALUE_EXP): Define.
22886 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22887 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22888 * print-rtl.c (print_rtx): Likewise.
22889 * gengtype.c (adjust_field_rtx_def): Likewise.
22890 * var-tracking.c (vt_add_function_parameter): Adjust
22891 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22892 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22893 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22894 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22895 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22897 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22898 Call var_location debug hook even on CALL_INSNs.
22899 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22900 * rtl.def (ENTRY_VALUE): New.
22901 * dwarf2out.c: Include cfglayout.h.
22902 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22903 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22904 (struct call_arg_loc_node): New type.
22905 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22906 tail_call_site_count): New variables.
22907 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22908 DW_TAG_GNU_call_site_parameter.
22909 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22910 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22911 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22912 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22913 and DW_AT_GNU_all_source_call_sites.
22914 (mem_loc_descriptor): Handle ENTRY_VALUE.
22915 (add_src_coords_attributes): Don't add enything if
22916 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22917 (dwarf2out_abstract_function): Save and clear call_arg_location,
22918 call_site_count and tail_call_site_count around dwarf2out_decl call.
22919 (gen_call_site_die): New function.
22920 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22921 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22922 (dwarf2out_function_decl): Clear call_arg_locations,
22923 call_arg_loc_last, set call_site_count and tail_call_site_count
22924 to -1 and free block_map.
22925 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22926 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
22927 followed by any real instructions.
22928 (dwarf2out_begin_function): Set call_site_count and
22929 tail_call_site_count to 0.
22930 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22931 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22932 attempt to force a DIE for it and worst case remove the attribute.
22933 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22934 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22936 * var-tracking.c: Include tm_p.h.
22937 (vt_stack_adjustments): For calls call note_register_arguments.
22938 (argument_reg_set): New variable.
22939 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22940 ensure the VALUE is resolved.
22941 (call_arguments): New variable.
22942 (prepare_call_arguments): New function.
22943 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22944 (struct expand_loc_callback_data): Add ignore_cur_loc field.
22945 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22946 always use the best expression.
22947 (vt_expand_loc): Add ignore_cur_loc argument.
22948 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22949 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22950 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22951 note for all calls.
22952 (vt_add_function_parameter): Use cselib_lookup_from_insn.
22953 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22954 argument. Don't call cselib_preserve_only_values and
22955 cselib_reset_table.
22956 (note_register_arguments): New function.
22957 (vt_initialize): Compute argument_reg_set. Call
22958 vt_add_function_parameters before processing basic blocks instead of
22959 afterwards. For calls call prepare_call_arguments before calling
22960 cselib_process_insn.
22961 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22962 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22963 (var-tracking.o): Depend on $(TM_P_H).
22964 * cfglayout.h (insn_scope): New prototype.
22965 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22966 * cfglayout.c (insn_scope): No longer static.
22967 * insn-notes.def (CALL_ARG_LOCATION): New.
22968 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22969 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22970 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22971 nothing for DECL_EXTERNAL BLOCK_VARS.
22973 2011-03-16 Alan Modra <amodra@gmail.com>
22976 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22977 create invalid offset address for vsx splat insn.
22978 * config/rs6000/predicates.md (splat_input_operand): New.
22979 * config/rs6000/vsx.md (vsx_splat_*): Use it.
22981 2011-03-15 Xinliang David Li <davidxl@google.com>
22984 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22985 (normalize_preds): New function.
22986 (is_use_properly_guarded): Normalize def predicates.
22988 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22991 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22992 in the output template.
22994 2011-03-15 Richard Guenther <rguenther@suse.de>
22996 PR middle-end/47650
22997 * tree-pretty-print.c (dump_function_declaration): Properly
22998 dump unprototyped and varargs function types.
23000 2011-03-15 Richard Guenther <rguenther@suse.de>
23002 PR tree-optimization/13954
23003 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23006 2011-03-15 Richard Guenther <rguenther@suse.de>
23008 PR tree-optimization/48037
23009 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23010 selects into BIT_FIELD_REFs.
23011 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23014 2011-03-15 Jakub Jelinek <jakub@redhat.com>
23016 PR tree-optimization/48129
23017 * builtins.c (fold_builtin_snprintf): Convert to type of
23018 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23019 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23021 2011-03-15 Richard Guenther <rguenther@suse.de>
23023 PR tree-optimization/41490
23024 * tree-ssa-dce.c (propagate_necessity): Handle returns without
23025 value but with VUSE.
23026 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23028 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23029 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23030 * tree-tailcall.c (find_tail_calls): Ignore returns.
23032 2011-03-15 Richard Guenther <rguenther@suse.de>
23034 PR middle-end/48031
23035 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23036 or variable-indexed array accesses when in gimple form.
23038 2011-03-15 Richard Guenther <rguenther@suse.de>
23040 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23042 2011-03-15 Alan Modra <amodra@gmail.com>
23045 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23046 presume symbol_refs without a symbol_ref_decl are suitably
23047 aligned, nor other trees we may see here. Handle anchor symbols.
23048 (legitimate_constant_pool_address_p): Comment. Add mode param.
23049 Check cmodel=medium addresses. Adjust all calls.
23050 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23051 creating cmodel=medium optimized access to locals.
23052 * config/rs6000/constraints.md (R): Pass QImode to
23053 legitimate_constant_pool_address_p.
23054 * config/rs6000/predicates.md (input_operand): Pass mode to
23055 legitimate_constant_pool_address_p.
23056 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23059 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23062 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23063 64-bit constants being loaded into registers other than GPRs such
23064 as loading 0 into a VSX register.
23066 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23068 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23070 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23072 PR middle-end/47917
23073 * builtins.c (fold_builtin_snprintf): New function.
23074 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23075 (fold_builtin_4): Likewise.
23077 PR middle-end/38878
23078 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23079 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
23080 and C - X == X also strip nops from +/-/p+ operand.
23081 When optimizing -X == C, fold C to arg0's type.
23084 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23085 emit it as add_AT_int instead of add_AT_unsigned.
23087 2011-03-14 Tom Tromey <tromey@redhat.com>
23089 * unwind-dw2.c: Include sys/sdt.h if it exists.
23090 (_Unwind_DebugHook): Use STAP_PROBE2.
23091 * config.in, configure: Rebuild.
23092 * configure.ac: Check for sys/sdt.h.
23094 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
23096 * config/i386/i386.md (ROUND_FLOOR): New constant.
23097 (ROUND_CEIL): Ditto.
23098 (ROUND_TRUNC): Ditto.
23099 (ROUND_MXCSR): Ditto.
23100 (ROUND_NO_EXC): Ditto.
23101 (rint<mode>2): Use new defines instead of numerical constants.
23102 (floor<mode>2): Ditto.
23103 (ceil<mode>2): Ditto.
23104 (btrunc<mode>2): Ditto.
23105 * config/i386/i386-builtin-types.def: Define ROUND function type
23107 * config/i386/i386.c (enum ix86_builtins): Add
23108 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23109 (struct builtin_description): Add
23110 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23111 (ix86_expand_sse_round): New static function.
23112 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23114 (ix86_builtin_vectorized_function): Handle
23115 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23117 2011-03-14 Tom Tromey <tromey@redhat.com>
23119 * c-parser.c (c_parser_asm_string_literal): Clear
23120 warn_overlength_strings.
23122 2011-03-14 Tom Tromey <tromey@redhat.com>
23124 * c-parser.c (disable_extension_diagnostics): Save
23125 warn_overlength_strings.
23126 (restore_extension_diagnostics): Restore warn_overlength_strings.
23128 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23130 * BASE-VER: Change to 4.7.0.
23132 2011-03-14 Richard Guenther <rguenther@suse.de>
23134 PR middle-end/48098
23135 * tree.c (build_vector_from_val): Adjust assert to requirements
23138 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23141 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23143 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
23145 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23146 terms of target_flags_explicit. Adjust copyright year.
23148 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23149 * config/rs6000/t-freebsd: New file. Add override for
23152 2011-03-13 Chris Demetriou <cgd@google.com>
23154 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23155 (-fno-diagnostics-show-option): this, to reflect current default.
23156 (-Werror=): Update text about -fno-diagnostics-show-option.
23158 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
23161 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23162 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23163 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23164 mode is not V2DImode or V2DFmode.
23165 (vspltis_constant): Do not handle V2DImode and V2DFmode.
23166 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23167 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23169 (movdi_internal64): Likewise.
23171 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
23173 PR tree-optimization/47127
23174 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23176 (set_cloog_options): Same.
23177 (scop_to_clast): Same.
23178 (print_clast_stmt): Do not call cloog_state_malloc and
23180 (print_generated_program): Same.
23182 * graphite-clast-to-gimple.h (cloog_state): Declared.
23183 (scop_to_clast): Adjust declaration.
23184 * graphite.c (cloog_state): Defined here.
23185 (graphite_initialize): Call cloog_state_malloc.
23186 (graphite_finalize): Call cloog_state_free.
23188 2011-03-11 Jason Merrill <jason@redhat.com>
23190 * attribs.c (lookup_attribute_spec): Take const_tree.
23193 2011-03-11 Joseph Myers <joseph@codesourcery.com>
23195 * config/sparc/sparc.c (sparc_option_override): Use
23196 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
23198 2011-03-11 Richard Guenther <rguenther@suse.de>
23200 PR tree-optimization/48067
23201 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
23202 multiplication result will be only used once on the target
23205 2011-03-11 Richard Guenther <rguenther@suse.de>
23207 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
23209 2011-03-11 Richard Guenther <rguenther@suse.de>
23212 * tree.c (find_decls_types_r): Do not walk types only reachable
23213 from IDENTIFIER_NODEs.
23215 2011-03-11 Jakub Jelinek <jakub@redhat.com>
23217 PR middle-end/48044
23218 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
23219 all vnode->force_output nodes as needed.
23221 2011-03-11 Jason Merrill <jason@redhat.com>
23224 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
23225 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
23227 2011-03-11 Martin Jambor <mjambor@suse.cz>
23229 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
23232 2011-03-11 Jakub Jelinek <jakub@redhat.com>
23234 PR tree-optimization/48063
23235 * ipa-inline.c (cgraph_decide_inlining): Don't try to
23236 inline functions called once if !tree_can_inline_p (node->callers).
23238 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
23240 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
23242 * config/score/score3.c: Delete.
23243 * config/score/score3.h: Delete.
23244 * config/score/mul-div.S: Delete.
23245 * config/score/sfp-machine.h: Add new file.
23246 * config/score/constraints.md: Add new file.
23247 * config/score/t-score-softfp: Add new file.
23248 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
23249 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
23250 (score7_extra_constraint): Delete.
23251 (score7_option_override): Remove unused code.
23252 * config/score/score.c: Remove score3 and score5 define and code.
23253 * config/score/score.h: Remove score3 and score5 define and code.
23254 * config/score/score.md: Remove score3 template and unusual insn.
23255 * config/score/score.opt: Remove score3 and score5 options.
23257 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23259 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
23260 when _HPUX_SOURCE is defined.
23261 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
23263 2011-03-10 Jason Merrill <jason@redhat.com>
23266 * stor-layout.c (layout_type): Don't set structural equality
23267 on arrays of incomplete type.
23268 * tree.c (type_hash_eq): Handle comparing them properly.
23270 2011-03-10 Jakub Jelinek <jakub@redhat.com>
23273 * config/s390/s390.c (s390_delegitimize_address): Make sure the
23274 result mode matches original rtl mode.
23276 2011-03-10 Nick Clifton <nickc@redhat.com>
23278 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
23279 (andsi3, andsi3_flags): Fix timings for three operand alternative.
23281 2011-03-09 Jakub Jelinek <jakub@redhat.com>
23283 PR rtl-optimization/47866
23284 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
23285 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
23286 if target wasn't scalar.
23287 * function.c (assign_stack_temp_for_type): Assert that neither
23288 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
23289 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
23291 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
23293 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23295 * config/s390/s390-protos.h (s390_label_align): New prototype.
23296 * config/s390/s390.c (s390_label_align): New function.
23297 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
23299 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
23302 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
23303 V2DI/V2DF constants. Only all 0's or all 1's are easy.
23304 (output_vec_const_move): Ditto.
23306 2011-03-08 Anatoly Sokolov <aesok@post.ru>
23308 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
23309 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
23310 * config/mips/mips.c (mips_preferred_reload_class): Make static.
23311 Change 'rclass' argument and result type to reg_class_t.
23312 (TARGET_PREFERRED_RELOAD_CLASS): Define.
23314 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
23316 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23317 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
23318 (TARGET_MEMORY_MOVE_COST): Define.
23319 (avr_register_move_cost, avr_memory_move_cost): New Functions.
23321 2011-03-08 Jakub Jelinek <jakub@redhat.com>
23324 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
23327 PR tree-optimization/48022
23328 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
23331 2011-03-07 Jakub Jelinek <jakub@redhat.com>
23334 * var-tracking.c (find_use_val): Return NULL for
23335 cui->sets && cui->store_p BLKmode MEMs.
23337 2011-03-07 Anatoly Sokolov <aesok@post.ru>
23339 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
23341 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
23342 xstormy16_print_operand_address): Remove.
23343 * config/stormy16/stormy16.c (xstormy16_print_operand,
23344 xstormy16_print_operand_address): Make static.
23345 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23347 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
23350 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23351 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
23354 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
23357 * cfgloopmanip.c (fix_bb_placements): Return immediately
23358 if FROM is BASE_LOOP's header.
23360 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
23362 * gimplify.c (gimplify_function_tree): Fix building calls
23363 to __builtin_return_address.
23365 2011-03-07 Alan Modra <amodra@gmail.com>
23367 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
23368 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
23369 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
23370 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
23372 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
23373 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
23374 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
23375 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
23376 * config/rs6000/rs6000.c
23377 (rs6000_elf_end_indicate_exec_stack): Rename to..
23378 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
23379 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
23380 (rs6000_file_start): ..here.
23381 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
23382 file scope variables.
23383 (call_ABI_of_interest): New function.
23384 (init_cumulative_args): Set above vars when function return value
23385 is a float, vector, or small struct.
23386 (rs6000_function_arg_advance_1): Likewise for function args.
23387 (rs6000_va_start): Set rs6000_passes_float if variable arg function
23388 references float args.
23390 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
23392 * doc/cfg.texi: Remove "See" before @ref.
23393 * doc/invoke.texi: Likewise.
23395 2011-03-05 Jason Merrill <jason@redhat.com>
23397 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23399 2011-03-05 Anthony Green <green@moxielogic.com>
23401 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23403 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
23405 PR rtl-optimization/47899
23406 * cfgloopmanip.c (fix_bb_placements): Fix first argument
23407 to flow_loop_nested_p when moving the loop upward.
23409 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
23412 * arm.md (movhi_insn_arch4): Accept any immediate constant.
23414 2011-03-05 Jakub Jelinek <jakub@redhat.com>
23416 PR tree-optimization/47967
23417 * ipa-cp.c (build_const_val): Return NULL instead of creating
23418 VIEW_CONVERT_EXPR for mismatching sizes.
23419 (ipcp_create_replace_map): Return NULL if build_const_val failed.
23420 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23421 give up on versioning.
23423 2011-03-05 Alan Modra <amodra@gmail.com>
23426 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23427 full cmodel medium/large lo_sum + high addresses.
23429 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23431 * config/s390/s390.c (s390_decompose_address): Reject non-literal
23432 pool references in UNSPEC_LTREL_OFFSET.
23434 2011-03-04 Jan Hubicka <jh@suse.cz>
23437 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23438 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23439 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23441 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23442 cgraph_add_thunk): Add node pointers.
23443 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23444 associated to right node.
23445 (input_node): Update use of cgraph_same_body_alias
23446 and cgraph_add_thunk.
23448 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
23450 * config/i386/i386.opt (mprefer-avx128): New flag.
23451 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23452 modes when the flag -mprefer-avx128 is on.
23454 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
23456 * dwarf2out.c (compare_loc_operands): Fix address handling.
23458 2011-03-04 Alan Modra <amodra@gmail.com>
23460 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23462 2011-03-04 Richard Guenther <rguenther@suse.de>
23464 PR middle-end/47968
23465 * expmed.c (extract_bit_field_1): Prefer vector modes that
23466 vec_extract patterns can handle.
23468 2011-03-04 Richard Guenther <rguenther@suse.de>
23470 PR middle-end/47975
23471 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23473 2011-03-04 Richard Henderson <rth@redhat.com>
23475 * explow.c (emit_stack_save): Remove 'after' parameter.
23476 (emit_stack_restore): Likewise.
23477 * expr.h: Update to match.
23478 * builtins.c, calls.c, stmt.c: Likewise.
23479 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23480 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23481 * function.c (expand_function_end): Insert the emit_stack_save
23482 sequence before parm_birth_insn instead of after.
23484 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
23486 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23487 (ssse3_pmaddubsw128): Ditto.
23488 (ssse3_pmaddubsw): Ditto.
23490 2011-03-03 Steve Ellcey <sje@cup.hp.com>
23492 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23494 2011-03-03 Jakub Jelinek <jakub@redhat.com>
23497 * gimplify.c (omp_add_variable): Only call omp_notice_variable
23498 on TYPE_SIZE_UNIT if it is a DECL.
23501 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23502 first operand is not is_gimple_mem_ref_addr, try to fold it.
23503 If the operand still isn't is_gimple_mem_ref_addr, clear
23506 2011-03-03 Richard Guenther <rguenther@suse.de>
23508 PR middle-end/47283
23509 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23511 (refs_may_alias_p_1): For release branches return true if
23512 we are confused by our input.
23514 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23516 * config/s390/s390.c (s390_function_value): Rename to ...
23517 (s390_function_and_libcall_value): ... this.
23518 (s390_function_value): New function.
23519 (s390_libcall_value): New function.
23520 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23521 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23522 target macro definitions.
23523 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23525 2011-03-02 Joseph Myers <joseph@codesourcery.com>
23527 * config/i386/freebsd64.h (CC1_SPEC): Define.
23528 * config/i386/linux64.h (CC1_SPEC): Define.
23529 * config/i386/x86-64.h (CC1_SPEC): Don't define.
23531 2011-03-02 Anatoly Sokolov <aesok@post.ru>
23533 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23535 * config/stormy16/stormy16.c: Include reload.h.
23536 (xstormy16_memory_move_cost): New function.
23537 (TARGET_MEMORY_MOVE_COST): Define.
23539 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
23541 PR rtl-optimization/47925
23542 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23543 with side effects. Remove the more-specific check for volatile asms.
23545 2011-03-02 Alan Modra <amodra@gmail.com>
23548 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23549 toc relative addresses for valid offsets.
23551 2011-03-01 Richard Guenther <rguenther@suse.de>
23553 PR tree-optimization/47890
23554 * tree-vect-loop.c (get_initial_def_for_induction): Set
23555 related stmt properly.
23557 2011-03-01 Richard Guenther <rguenther@suse.de>
23560 * lto-streamer.c (lto_record_common_node): Also register
23561 the canonical type.
23563 2011-03-01 Richard Guenther <rguenther@suse.de>
23566 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23567 Do not stream DECL_ABSTRACT_ORIGIN.
23568 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23569 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23570 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23571 Do not stream DECL_ABSTRACT_ORIGIN.
23572 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23573 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23575 2011-02-28 Anatoly Sokolov <aesok@post.ru>
23577 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23578 FUNCTION_VALUE_REGNO_P): Remove.
23579 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23580 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23581 Add 'outgoing' argument.
23582 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23584 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23585 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23587 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
23590 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23591 (lookup_filename): Likewise.
23592 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23594 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
23595 Jakub Jelinek <jakub@redhat.com>
23597 PR middle-end/47893
23598 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23599 (assign_stack_local_1): Change last argument type to int.
23600 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23601 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
23602 don't record padding space into frame_space_list nor use those areas.
23603 (assign_stack_local): Adjust caller.
23604 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23605 of assign_stack_local, pass 0 as last argument.
23606 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23609 2011-02-28 Jakub Jelinek <jakub@redhat.com>
23612 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23613 Use target address_mode and pointer_mode hooks instead of hardcoded
23614 Pmode and ptr_mode. Handle some simple cases of extending if
23615 POINTERS_EXTEND_UNSIGNED < 0.
23616 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23617 Call convert_debug_memory_address.
23618 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23619 convert_debug_memory_address.
23621 PR middle-end/46790
23622 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23623 * configure: Regenerated.
23624 * config.in: Regenerated.
23625 * varasm.c (default_function_section): Return NULL
23626 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23628 2011-02-28 Martin Jambor <mjambor@suse.cz>
23630 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23631 the description to match the printed values.
23633 2011-02-28 Richard Guenther <rguenther@suse.de>
23635 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23636 of the copied scope tree.
23638 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23640 * doc/extend.texi (Function Attributes): Avoid deeply (and
23641 wrongly) nested tables.
23643 2011-02-27 Jakub Jelinek <jakub@redhat.com>
23645 PR middle-end/47903
23646 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23647 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23648 r isn't op0 nor op1.
23650 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
23652 * config/avr/avr.md: Remove magic comment for emacs.
23654 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
23657 * config/avr/avr.c (avr_option_override): Use error on bad options.
23658 (avr_help): New function.
23659 (TARGET_HELP): Define.
23661 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
23664 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23665 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23667 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
23669 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23670 (ARM Options): Ditto.
23671 (i386 and x86-64 Options): Ditto.
23672 (RX Options): Ditto.
23673 (SPARC Options): Ditto.
23675 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
23677 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23678 FreeBSD 6 and later. Generally use cpu generic.
23680 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
23682 * doc/cpp.texi: Update copyright years.
23684 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
23687 * config/lm32/lm32.md (ashrsi3): Added needed variable.
23689 2011-02-25 Jon Beniston <jon@beniston.com>
23692 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23693 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23694 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23695 (lm32_block_move_inline): Add type cast to remove warning.
23696 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23697 (gen_int_relational): Move declarations to start of function.
23699 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
23701 PR tree-optimization/45470
23702 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23703 can throw internally only.
23704 * tree-vect-stmts.c (vectorizable_call): Likewise.
23706 2011-02-24 Anatoly Sokolov <aesok@post.ru>
23708 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23709 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23710 * config/stormy16/stormy16-protos.h
23711 (xstormy16_preferred_reload_class): Remove.
23712 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23713 static. Change 'rclass' argument and return type to reg_class_t.
23714 (TARGET_PREFERRED_RELOAD_CLASS,
23715 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23717 2011-02-24 Richard Guenther <rguenther@suse.de>
23719 * lto-streamer-in.c (input_bb): Do not find referenced vars
23720 in debug statements.
23722 2011-02-23 Jason Merrill <jason@redhat.com>
23724 * common.opt (fabi-version): Document v5 and v6.
23726 2011-02-23 Richard Guenther <rguenther@suse.de>
23728 PR tree-optimization/47849
23729 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23731 2011-02-23 Jie Zhang <jie@codesourcery.com>
23733 * opts-common.c (decode_cmdline_option): Print empty string
23734 argument as "" in decoded->orig_option_with_args_text.
23735 * gcc.c (execute): Print empty string argument as ""
23736 in the verbose output.
23737 (do_spec_1): Keep empty string argument.
23739 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
23741 * config.gcc: Declare score-* and crx-* obsolete.
23743 2011-02-23 Jie Zhang <jie@codesourcery.com>
23745 PR rtl-optimization/47763
23746 * web.c (web_main): Ignore naked clobber when replacing register.
23748 2011-02-22 Anatoly Sokolov <aesok@post.ru>
23750 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23753 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
23756 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23758 2011-02-22 Mike Stump <mikestump@comcast.net>
23760 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23762 * configure: Regenerate.
23764 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
23766 PR rtl-optimization/46002
23767 * ira-color.c (update_copy_costs): Change class intersection
23768 test to reg_class_contents[] test of 'hard_regno'.
23770 2011-02-21 Joseph Myers <joseph@codesourcery.com>
23772 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23773 than Driver option.
23774 * config/hpux11.opt (mt): Likewise.
23775 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23776 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23777 * config/vax/elf.opt (mno-asm-pic): Likewise.
23778 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23780 2011-02-21 Mike Stump <mikestump@comcast.net>
23783 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23784 tree so we can get save the type.
23785 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23786 for CFString instead of trying to use past the end of the builtins.
23787 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23788 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23789 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23790 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23791 Rename to darwin_builtin_cfstring.
23792 (darwin_init_cfstring_builtins): Return the built type.
23794 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
23797 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23798 (_mm256_insert_epi64): Use _mm_insert_epi64.
23800 2011-02-21 Anatoly Sokolov <aesok@post.ru>
23802 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23803 * config/stormy16/stormy16-protos.h
23804 (xstormy16_mode_dependent_address_p): Remove.
23805 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23806 Make static. Change return type to bool. Change argument type to
23807 const_rtx. Remove dead code.
23808 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23810 2011-02-21 Richard Guenther <rguenther@suse.de>
23813 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23814 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23815 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23817 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23818 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23820 2011-02-20 Richard Guenther <rguenther@suse.de>
23823 * tree.c (free_lang_data_in_decl): Clean builtins from
23824 the TU decl BLOCK_VARS.
23826 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
23830 * haifa-sched.c (fix_tick_ready): Skip tick computation
23833 2011-02-19 Richard Guenther <rguenther@suse.de>
23836 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23837 Remove lazy BLOCK_VARS streaming.
23838 (lto_input_ts_block_tree_pointers): Likewise.
23839 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23841 2011-02-19 Joseph Myers <joseph@codesourcery.com>
23843 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23845 2011-02-19 Joseph Myers <joseph@codesourcery.com>
23847 * config/i386/biarch32.h, config/i386/mach.h,
23848 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23850 2011-02-19 Jakub Jelinek <jakub@redhat.com>
23853 * config/i386/i386.md (peephole2 for shift and plus): Use
23854 operands[1] original mode in the first insn.
23856 2011-02-18 Mike Stump <mikestump@comcast.net>
23858 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23860 2011-02-18 Jan Hubicka <jh@suse.cz>
23862 PR middle-end/47788
23863 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23864 to zero when the function is not inlinable at all.
23866 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23868 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23869 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23870 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23871 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23872 * config/pa/t-pa64: Likewise.
23873 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23875 2011-02-18 Jakub Jelinek <jakub@redhat.com>
23878 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23880 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23883 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23885 2011-02-18 Anatoly Sokolov <aesok@post.ru>
23887 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23888 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23889 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23890 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23891 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23892 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23893 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23894 m32r_load_postinc_p, m32r_store_preinc_predec_p,
23895 m32r_legitimate_address_p): New functions.
23896 * config/m32r/constraints.md (constraint "S"): Don't use
23897 STORE_PREINC_PREDEC_P.
23898 (constraint "U"): Don't use LOAD_POSTINC_P.
23900 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
23902 PR rtl-optimization/46178
23903 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23904 compute ira_hard_regno_cover_class[].
23906 2011-02-18 Richard Guenther <rguenther@suse.de>
23909 * lto-streamer.h (lto_global_var_decls): Declare.
23910 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23911 statics for global var processing.
23913 2011-02-18 Richard Guenther <rguenther@suse.de>
23915 PR tree-optimization/47737
23916 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23917 edge dominance check.
23919 2011-02-18 Jakub Jelinek <jakub@redhat.com>
23922 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23923 avoid invalid rtx sharing.
23925 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
23927 * doc/cpp.texi (Obsolete Features): Add background on the
23928 origin of assertions.
23930 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
23932 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23934 * config/darwin.c (output_objc_section_asm_op): Added support for
23936 (is_objc_metadata): New.
23937 (darwin_objc2_section): New.
23938 (darwin_objc1_section): New.
23939 (machopic_select_section): Added support for ABI v1 and v2.
23940 (darwin_emit_objc_zeroed): New.
23941 (darwin_output_aligned_bss): Detect objc metadata and treat it
23943 (darwin_asm_output_aligned_decl_common): Same.
23944 (darwin_asm_output_aligned_decl_local): Same.
23945 * config/darwin-sections.def: Updated for ABI v1 and v2.
23946 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23947 compiling Objective-C code for the NeXT runtime, default to using
23948 ABI version 0 for 32-bit, and version 2 for 64-bit.
23950 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23952 * common.opt (optimize_fast): New Variable.
23953 * opts.c (default_options_optimization): Use opts->x_optimize_fast
23954 instead of local variable ofast.
23956 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
23958 * doc/invoke.texi (fobjc-abi-version): Documented.
23959 (fobjc-nilcheck): Documented.
23960 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23963 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23966 * common.opt (export-dynamic): New Driver option.
23967 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23969 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23971 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23973 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
23974 Jan Hubicka <jh@suse.cz>
23978 * cfgexpand.c (account_used_vars_for_block): Remove.
23979 (estimated_stack_frame_size): Use referenced vars.
23980 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23981 that were referenced in the original function. Test src_fn
23982 rather than cfun. Drop redundant get_var_ann.
23983 (setup_one_parameter): Drop redundant get_var_ann.
23984 (declare_return_variable): Likewise.
23985 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23986 (copy_arguments_for_versioning): Drop redundant get_var_ann.
23987 * ipa-inline.c (compute_inline_parameters): Do not compute
23988 disregard_inline_limits here.
23989 (compute_inlinable_for_current, pass_inlinable): New.
23990 (pass_inline_parameters): Require PROP_referenced_vars.
23991 * cgraphunit.c (cgraph_process_new_functions): Don't run
23992 compute_inline_parameters explicitly unless function is in SSA form.
23993 (cgraph_analyze_function): Set .disregard_inline_limits.
23994 * tree-sra.c (convert_callers): Compute inliner parameters
23995 only for functions already in SSA form.
23997 2011-02-17 Joseph Myers <joseph@codesourcery.com>
23999 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24000 -mlittle-endian-data.
24002 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24004 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24005 -mno-fpu, not -fpu and -no-fpu.
24006 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24007 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24009 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
24012 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24013 input reload with PLUS RTX.
24015 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24017 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24018 of InverseVar(MDMX).
24020 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24022 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24025 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24027 * config/mn10300/mn10300.opt (mno-crt0): New.
24029 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24031 * config/m68k/uclinux.opt (static-libc): New Driver option.
24033 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24035 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24037 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24039 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24040 %{muser-extend-enabled}.
24042 2011-02-16 Richard Guenther <rguenther@suse.de>
24044 PR tree-optimization/47738
24045 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24046 the TODO from tree_predictive_commoning.
24048 2011-02-15 Jeff Law <law@redhat.com>
24051 2011-01-25 Jeff Law <law@redhat.com>
24053 PR rtl-optimization/37273
24054 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24055 handle them like argument loads from stack slots. Do not double
24056 count memory for memory constants and argument loads from stack slots.
24058 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24061 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24062 mode for vector constants. Remove code that checks for TImode.
24064 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24068 * cgraph.h (compute_inline_parameters): Return void.
24069 * ipa-inline.c (compute_inline_parameters): Adjust.
24071 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24075 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24077 * cfgexpand.c (estimated_stack_frame_size): Likewise.
24078 * ipa-inline.c (compute_inline_parameters): Adjust.
24080 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24084 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24085 Adjust all users. Pass FN to...
24086 * tree-flow-inline.h (first_referenced_var): ... this. Add
24088 * ipa-struct-reorg.c: Adjust.
24089 * tree-dfa.c: Adjust.
24090 * tree-into-ssa.c: Adjust.
24091 * tree-sra.c: Adjust.
24092 * tree-ssa-alias.c: Adjust.
24093 * tree-ssa-live.c: Adjust.
24094 * tree-ssa.c: Adjust.
24095 * tree-ssanames.c: Adjust.
24096 * tree-tailcall.c: Adjust.
24098 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24102 * tree-flow.h (referenced_var_lookup): Add fn parameter.
24103 Adjust all callers.
24104 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24105 * tree-flow-inline.h: Adjust.
24106 * gimple-pretty-print.c: Adjust.
24107 * tree-into-ssa.c: Adjust.
24108 * tree-ssa.c: Adjust.
24109 * cfgexpand.c: Adjust.
24111 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24113 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24114 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24115 (EXTRA_CONSTRAINT): Delete.
24116 * config/iq2000/constraints.md: New file.
24117 * config/iq2000/iq2000.md: Include it.
24118 (define_insn ""): Delete.
24119 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24120 unsupported constraint letters from patterns.
24121 (call_value, call_value_internal1): Likewise.
24122 (call_value_multiple_internal1): Likewise.
24124 2011-02-15 Nick Clifton <nickc@redhat.com>
24126 * config/mn10300/mn10300.c: Include tm-constrs.h.
24127 (struct liw_data): New data structure describing an LIW candidate
24129 (extract_bundle): Use struct liw_data. Allow small integer
24130 operands for some instructions.
24131 (check_liw_constraints): Use struct liw_data. Remove swapped
24132 parameter. Add comments describing the checks. Fix bug when
24133 assigning the source of liw1 to the source of liw2.
24134 (liw_candidate): Delete. Code moved into extract_bundle.
24135 (mn10300_bundle_liw): Use struct liw_data. Check constraints
24137 * config/mn10300/predicates.md (liw_operand): New predicate.
24138 Allows registers and small integer constants.
24139 * config/mn10300/constraints.md (O): New constraint. Accetps
24140 integers in the range -8 to +7 inclusive.
24141 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24142 for moving a small integer into a register. Give this alternative
24144 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24145 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24146 using the J,K,L and M constraints,
24147 (liw): Remove SI mode on second operands to allow for HI and QI
24149 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
24152 2011-02-15 Richard Guenther <rguenther@suse.de>
24154 PR tree-optimization/47743
24155 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24156 for a non-type-compatible VN lookup bail out.
24158 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24160 * config/fr30/constraints.md: New file.
24161 * config/fr30/fr30.md: Include it.
24162 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24163 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24164 (EXTRA_CONSTRAINT): Delete.
24166 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24168 * config/frv/constraints.md: New file.
24169 * config/frv/predicates.md: Include it.
24170 * config/frv/frv.c (reg_class_from_letter): Delete.
24171 (frv_option_override): Don't initialize it.
24172 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24173 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24174 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24175 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24176 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24177 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24178 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24179 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24180 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24181 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
24182 (REG_CLASS_FROM_CONSTRAINT): Delete.
24184 2011-02-15 Jakub Jelinek <jakub@redhat.com>
24186 PR middle-end/47581
24187 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
24188 if frame size is 0 in a leaf function.
24190 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24193 * config/alpha/host-osf.c: New file.
24194 * config/alpha/x-osf: New file.
24195 * config.host (alpha*-dec-osf*): Use it.
24197 2011-02-14 Anatoly Sokolov <aesok@post.ru>
24199 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24200 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
24201 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
24202 (rx_mode_dependent_address_p): ...this. Make static. Change argument
24204 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24206 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
24208 * config/stormy16/constraints.md: New file.
24209 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
24210 Use satisfies_constraint_Q and satisfies_constraint_R.
24211 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
24213 (xstormy16_legitiamte_address_p): Declare.
24214 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
24215 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24216 (EXTRA_CONSTRAINT): Delete.
24217 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
24219 (xstormy16_extra_constraint_p): Delete.
24221 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
24223 PR tree-optimization/46494
24224 * loop-unroll.c (split_edge_and_insert): Adjust comment.
24225 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
24226 (pass_rtl_loop_done): Add TODO_verify_flow.
24227 * fwprop.c (pass_rtl_fwprop): Likewise.
24228 * modulo-sched.c (pass_sms): Likewise.
24229 * tree-ssa-dom.c (pass_dominator): Likewise.
24230 * tree-ssa-loop-ch.c (pass_ch): Likewise.
24231 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
24232 (pass_tree_loop_done): Likewise.
24233 * tree-ssa-pre.c (execute_pre): Likewise.
24234 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
24235 * tree-ssa-sink.c (pass_sink_code): Likewise.
24236 * tree-vrp.c (pass_vrp): Likewise.
24238 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
24240 * config/v850/constraints.md: New file.
24241 * config/v850/v850.md: Include it.
24242 * config/v850/predicates.md (reg_or_0_operand): Use
24243 satisfies_constraint_G.
24244 (special_symbolref_operand): Use satisfies_constraint_K.
24245 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
24246 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
24247 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
24248 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24249 (EXTRA_CONSTRAINT): Delete.
24250 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
24251 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
24252 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
24254 2011-02-14 Anatoly Sokolov <aesok@post.ru>
24257 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
24260 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
24262 * config/mcore/constraints.md: New file.
24263 * config/mcore/mcore.md: Include it.
24264 * config/mcore/mcore.c (reg_class_from_letter): Delete.
24265 * config/mcore/mcore.h (reg_class_from_letter): Delete.
24266 (REG_CLASS_FROM_LETTER): Delete.
24267 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
24268 insn_const_int_ok_for_constraint.
24269 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
24270 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
24271 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24272 (EXTRA_CONSTRAINT): Delete.
24274 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24277 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
24278 (IS_SIGHANDLER): Define.
24279 (sparc64_is_sighandler): New function, split off from
24280 sparc64_fallback_frame_state.
24281 (sparc_is_sighandler): New function, split off from
24282 sparc_fallback_frame_state.
24283 (sparc64_fallback_frame_state): Merge with ...
24284 (sparc_fallback_frame_state): ... this into ...
24285 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
24286 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
24287 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
24288 stack instead of hardcoded offsets.
24290 2011-02-14 Andriy Gapon <avg@freebsd.org>
24293 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
24295 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24297 * configure: Regenerate.
24299 2011-02-12 Joseph Myers <joseph@codesourcery.com>
24302 * gcc.c (asm_options): Correct spec matching --target-help.
24304 2011-02-12 Martin Jambor <mjambor@suse.cz>
24306 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
24307 to gimple call error.
24309 2011-02-12 Mike Stump <mikestump@comcast.net>
24311 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
24312 comments in backslash regions.
24314 2011-02-12 Mike Stump <mikestump@comcast.net>
24315 Jakub Jelinek <jakub@redhat.com>
24316 Iain Sandoe <iains@gcc.gnu.org>
24319 * dwarf2out.c (output_cfa_loc): When required, apply the
24320 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
24321 (output_loc_sequence): Likewise.
24322 (output_loc_operands_raw): Likewise.
24323 (output_loc_sequence_raw): Likewise.
24324 (output_cfa_loc): Likewise.
24325 (output_loc_list): Suppress register number adjustment when
24326 calling output_loc_sequence()
24327 (output_die): Likewise.
24329 2011-02-12 Anatoly Sokolov <aesok@post.ru>
24331 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24333 * config/xtensa/xtensa.c (xtensa_register_move_cost,
24334 xtensa_memory_move_cost): New functions.
24335 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
24337 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
24340 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
24341 in the current directory.
24342 * configure: Rebuilt.
24344 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
24346 * config/darwin.c (darwin_override_options): Add a hunk missed
24347 from the commit of r168571. Trim comment line lengths and
24348 correct indents of the preceding block.
24350 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
24352 * gcc.c (driver_handle_option): Concatenate the argument to -F with
24355 2011-02-11 Joseph Myers <joseph@codesourcery.com>
24357 * common.opt (nostartfiles): New Driver option.
24359 2011-02-11 Xinliang David Li <davidxl@google.com>
24361 PR tree-optimization/47707
24362 * tree-chrec.c (convert_affine_scev): Keep type precision.
24364 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
24366 PR tree-optimization/47420
24367 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
24369 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
24371 PR rtl-optimization/47614
24372 * rtl.h (check_for_inc_dec): Declare.
24373 * dse.c (check_for_inc_dec): Externalize...
24374 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
24375 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
24377 2011-02-11 Joseph Myers <joseph@codesourcery.com>
24380 * gcc.c (main): Do not compile inputs if there were errors in
24382 * opts-common.c (read_cmdline_option): Check for wrong language
24383 after other error checks.
24385 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
24387 * cgraph.c: Fix comment typos.
24388 * cgraph.h: Likewise.
24389 * cgraphunit.c: Likewise.
24390 * ipa-cp.c: Likewise.
24391 * ipa-inline.c: Likewise.
24392 * ipa-prop.c: Likewise.
24393 * ipa-pure-const.c: Likewise.
24394 * ipa-ref.c: Likewise.
24395 * ipa-reference.c: Likewise.
24397 2011-02-11 Jakub Jelinek <jakub@redhat.com>
24400 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24402 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24405 * doc/sourcebuild.texi (Require Support): Document
24406 dg-require-ascii-locale.
24408 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
24410 * doc/lto.texi (Write summary): Fix missing parentheses.
24412 2011-02-10 DJ Delorie <dj@redhat.com>
24414 * config/m32c/m32c.c (m32c_option_override): Disable
24415 -fcombine-stack-adjustments until flag value tracking and compare
24416 optimization can be rewritten.
24418 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
24420 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24422 (PROCESSOR_DEFAULT64): Likewise.
24424 2011-02-10 Richard Henderson <rth@redhat.com>
24426 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24427 change from 2011-02-03.
24428 * config/rx/rx.c (flags_from_code): Likewise.
24429 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24430 is valid, n/pz otherwise.
24431 (rx_select_cc_mode): Return CCmode if Y is not zero.
24433 2011-02-10 Richard Guenther <rguenther@suse.de>
24435 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24437 2011-02-10 Richard Guenther <rguenther@suse.de>
24439 PR tree-optimization/47677
24440 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24442 2011-02-10 Jakub Jelinek <jakub@redhat.com>
24445 * combine.c (make_compound_operation): Only change shifts into
24446 multiplication for SCALAR_INT_MODE_P.
24448 2011-02-10 Jie Zhang <jie@codesourcery.com>
24452 2011-02-05 Jie Zhang <jie@codesourcery.com>
24454 * web.c (entry_register): Don't clobber the number of the
24455 first uninitialized reference in used[].
24457 2011-02-09 Richard Guenther <rguenther@suse.de>
24459 PR tree-optimization/47664
24460 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24463 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
24467 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24469 (PROCESSOR_DEFAULT64): Same.
24470 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24472 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24474 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24476 2011-02-09 Martin Jambor <mjambor@suse.cz>
24478 PR middle-end/45505
24479 * tree-sra.c (struct access): New flags grp_scalar_read and
24480 grp_scalar_write. Changed description of assignment read and write
24482 (dump_access): Dump new flags, reorder all of them.
24483 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24484 to detect multiple scalar reads.
24485 (analyze_access_subtree): Use the new scalar read write flags instead
24486 of the old flags. Adjusted comments.
24488 2011-02-08 DJ Delorie <dj@redhat.com>
24491 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24494 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24496 * config/m68k/uclinux.opt: New.
24497 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24499 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24501 * config/cris/elf.opt (sim): New Driver option.
24503 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24505 * config/xtensa/elf.opt: New.
24506 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24508 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24510 * config/vax/elf.opt: New.
24511 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24513 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24515 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24517 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24519 * config/gnu-user.opt: New.
24520 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24521 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24522 *-*-uclinux*): Use gnu-user.opt.
24524 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
24526 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24527 * config/i386/gnu.h (CPP_SPEC): Likewise.
24529 2011-02-08 Ian Lance Taylor <iant@google.com>
24531 * common.opt (fcx-limited-range): Add SetByCombined flag.
24532 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24533 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24534 (fassociative-math, freciprocal-math): Likewise.
24535 (funsafe-math-optimizations): Likewise.
24536 * opth-gen.awk: Handle SetByCombined.
24537 * optc-gen.awk: Likewise.
24538 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24539 (set_unsafe_math_optimizations_flags): Likewise.
24540 * doc/options.texi (Option properties): Document SetByCombined.
24542 2011-02-08 Joseph Myers <joseph@codesourcery.com>
24544 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24545 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24546 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24547 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24548 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24550 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
24552 PR tree-optimization/46834
24553 PR tree-optimization/46994
24554 PR tree-optimization/46995
24555 * graphite-sese-to-poly.c (used_outside_reduction): New.
24556 (detect_commutative_reduction): Call used_outside_reduction.
24557 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24558 translate_scalar_reduction_to_array only when at least one
24559 loop-phi/close-phi tuple has been detected.
24561 2011-02-08 Richard Guenther <rguenther@suse.de>
24563 PR middle-end/47639
24564 * tree-vect-generic.c (expand_vector_operations_1): Update
24566 (expand_vector_operations): ... not here. Cleanup EH info
24567 and the CFG if required.
24569 2011-02-08 Richard Guenther <rguenther@suse.de>
24571 PR tree-optimization/47641
24572 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24573 require type compatibility.
24575 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24577 * gimple-low.c (lower_function_body): Don't remove the location of
24578 the return statement here.
24579 (lower_gimple_return): Do it here instead but only if the return
24580 statement is actually used twice.
24582 2011-02-08 Richard Guenther <rguenther@suse.de>
24584 PR tree-optimization/47632
24585 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24586 unused up_to_stmt parameter, return whether cfg-cleanup is
24587 necessary, remove EH info properly.
24588 (forward_propagate_into_gimple_cond): Adjust caller.
24589 (forward_propagate_into_cond): Likewise.
24590 (forward_propagate_comparison): Likewise.
24591 (tree_ssa_forward_propagate_single_use_vars): Make
24592 forward_propagate_comparison case similar to the two others.
24594 2011-02-08 Nick Clifton <nickc@redhat.com>
24596 * config/mn10300/mn10300.opt (mliw): New command line option.
24597 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24598 (liw_bundling): New automaton.
24599 (liw): New attribute.
24600 (liw_op): New attribute.
24601 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24602 (movsi_internal): Add LIW attributes.
24603 (andsi3): Likewise.
24604 (iorsi3): Likewise.
24605 (xorsi3): Likewise.
24606 (addsi3): Separate register and immediate alternatives.
24607 Add LIW attributes.
24608 (subsi3): Likewise.
24610 (aslsi3): Likewise.
24611 (lshrsi3): Likewise.
24612 (ashrsi3): Likewise.
24613 (liw): New pattern.
24614 * config/mn10300/mn10300.c (liw_op_names): New
24615 (mn10300_print_operand): Handle 'W' operand descriptor.
24616 (extract_bundle): New function.
24617 (check_liw_constraints): New function.
24618 (liw_candidate): New function.
24619 (mn10300_bundle_liw): New function.
24620 (mn10300_reorg): New function.
24621 (TARGET_MACHINE_DEPENDENT_REORG): Define.
24622 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24623 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24624 __LIW__ or __NO_LIW__.
24625 * doc/invoke.texi: Describe the -mliw command line option.
24627 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24629 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24630 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24631 pthread_mutex_unlock): Remove.
24632 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24633 * config/pa/t-pa64: Likewise.
24634 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24635 shared libc if not linking against libpthread.
24636 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24638 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
24641 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24642 on 10.6 and later to ensure that we always use the unwinder from
24643 the system. Only add -no_compact_unwind when tarteting darwin
24646 2011-02-07 Steve Ellcey <sje@cup.hp.com>
24649 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24650 (vec_interleave_lowv2sf): Ditto.
24651 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24652 (vec_extract_oddv2sf): Ditto.
24654 2011-02-07 Mike Stump <mikestump@comcast.net>
24657 Add __ieee_divdc3 entry point.
24658 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24660 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24661 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24662 * config/darwin.c (darwin_rename_builtins): Add.
24663 * config/darwin-protos.h (darwin_rename_builtins): Add.
24665 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
24668 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24671 2011-02-07 Mike Stump <mikestump@comcast.net>
24673 * config/darwin.opt (mmacosx-version-min): Update default OS version.
24675 2011-02-07 Denis Chertykov <chertykov@gmail.com>
24678 * config/avr/libgcc.S (exit): Move .endfunc
24680 2011-02-07 Richard Guenther <rguenther@suse.de>
24682 PR tree-optimization/47615
24683 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24684 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24685 (run_scc_vn): Initialize it.
24686 (visit_reference_op_load): Use it.
24687 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24689 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24691 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24692 DImode trapping arithmetic libfuncs.
24694 2011-02-07 Richard Guenther <rguenther@suse.de>
24696 PR tree-optimization/47621
24697 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24699 (execute_update_addresses_taken): ... here. Make it more
24700 conservative in what we accept.
24702 2011-02-06 Joseph Myers <joseph@codesourcery.com>
24704 * config/sparc/freebsd.h (ASM_SPEC): Define.
24705 * config/sparc/vxworks.h (ASM_SPEC): Define.
24707 2011-02-06 Joseph Myers <joseph@codesourcery.com>
24709 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24711 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
24713 * doc/invoke.texi: Remove reference to compiler internals from
24714 user documentation.
24716 * reg-notes.def: Remove REG_VALUE_PROFILE.
24717 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24719 2011-02-05 Jakub Jelinek <jakub@redhat.com>
24721 PR middle-end/47610
24722 * varasm.c (default_section_type_flags): If decl is NULL,
24723 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24725 2011-02-05 Jie Zhang <jie@codesourcery.com>
24728 * web.c (entry_register): Don't clobber the number of the
24729 first uninitialized reference in used[].
24731 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
24733 PR tree-optimization/46194
24734 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24735 (build_classic_dist_vector_1): Do not represent classic distance
24736 vectors when the access functions are variating in different loops.
24738 2011-02-04 Joseph Myers <joseph@codesourcery.com>
24740 * config/mips/iris6.opt: New.
24741 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24743 2011-02-04 Richard Henderson <rth@redhat.com>
24744 Steve Ellcey <sje@cup.hp.com>
24747 * config/ia64/predicates.md (mux1_brcst_element): New.
24748 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24749 * config/ia64/ia64.c (ia64_unpack_assemble): New.
24750 (ia64_unpack_sign): New.
24751 (ia64_expand_unpack): Rewrite using new routines.
24752 (ia64_expand_widen_sum): Ditto.
24753 (ia64_expand_dot_prod_v8qi): Ditto.
24754 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24755 routines, add endian check.
24756 (pmpy2_even): Rename from pmpy2_r, add endian check.
24757 (pmpy2_odd): Rename from pmpy2_l, add endian check.
24758 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24759 (vec_widen_smult_hi_v4hi): Ditto.
24760 (vec_widen_umult_lo_v4hi): Ditto.
24761 (vec_widen_umult_hi_v4hi): Ditto.
24762 (mulv2si3): Change endian checks.
24763 (sdot_prodv4hi): Rewrite with new calls.
24764 (udot_prodv4hi): New.
24765 (vec_pack_ssat_v4hi): Add endian check.
24766 (vec_pack_usat_v4hi): Ditto.
24767 (vec_pack_ssat_v2si): Ditto.
24768 (max1_even): Rename from max1_r, add endian check.
24769 (max1_odd): Rename from max1_l, add endian check.
24770 (*mux1_rev): Format change.
24771 (*mux1_mix): Ditto.
24772 (*mux1_shuf): Ditto.
24773 (*mux1_alt): Ditto.
24774 (*mux1_brcst_v8qi): Use new predicate.
24775 (vec_extract_evenv8qi): Remove endian check.
24776 (vec_extract_oddv8qi): Ditto.
24777 (vec_interleave_lowv4hi): Format change.
24778 (vec_interleave_highv4hi): Ditto.
24779 (mix2_even): Rename from mix2_r, add endian check.
24780 (mix2_odd): Rename from mux2_l, add endian check.
24781 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24782 (vec_extract_evenodd_helper): Format change.
24783 (vec_extract_evenv4hi): Remove endian check.
24784 (vec_extract_oddv4hi): Remove endian check.
24785 (vec_interleave_lowv2si): Format change.
24786 (vec_interleave_highv2si): Format change.
24787 (vec_initv2si): Remove endian check.
24788 (vecinit_v2si): Add endian check.
24789 (reduc_splus_v2sf): Add endian check.
24790 (reduc_smax_v2sf): Ditto.
24791 (reduc_smin_v2sf): Ditto.
24792 (vec_initv2sf): Remove endian check.
24793 (fpack): Add endian check.
24794 (fswap): Add endian check.
24795 (vec_interleave_highv2sf): Add endian check.
24796 (vec_interleave_lowv2sf): Add endian check.
24797 (fmix_lr): Add endian check.
24798 (vec_setv2sf): Format change.
24799 (*vec_extractv2sf_0_be): Use shift to extract operand.
24800 (*vec_extractv2sf_1_be): New.
24801 (vec_pack_trunc_v4hi): Add endian check.
24802 (vec_pack_trunc_v2si): Format change.
24804 2011-02-04 Jakub Jelinek <jakub@redhat.com>
24806 PR inline-asm/23200
24807 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
24808 do bb, locus and block comparison and disallow loads if it is not set.
24809 (stmt_is_replaceable_p): New function.
24810 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24812 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24813 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24815 * tree-flow.h (stmt_is_replaceable_p): New prototype.
24817 2011-02-04 Joseph Myers <joseph@codesourcery.com>
24819 * config/rs6000/xilinx.opt: New.
24820 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24822 2011-02-04 Joseph Myers <joseph@codesourcery.com>
24824 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24826 2011-02-03 Anatoly Sokolov <aesok@post.ru>
24828 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24829 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24830 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24831 secondary_reload_info, xtensa_secondary_reload): Remove.
24832 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24833 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24834 (xtensa_preferred_reload_class): Make static. Change return and
24835 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24836 Use CONST_DOUBLE_P predicate.
24837 (xtensa_preferred_output_reload_class): New function.
24838 (xtensa_secondary_reload): Make static.
24840 2011-02-03 Joseph Myers <joseph@codesourcery.com>
24842 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24843 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24844 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24846 2011-02-03 Jakub Jelinek <jakub@redhat.com>
24848 PR middle-end/31490
24849 * output.h (SECTION_RELRO): Define.
24850 (SECTION_MACH_DEP): Adjust.
24851 (get_variable_section): New prototype.
24852 * varpool.c (varpool_finalize_named_section_flags): New function.
24853 (varpool_assemble_pending_decls): Call it.
24854 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24855 * cgraphunit.c (cgraph_output_in_order): Call
24856 varpool_finalize_named_section_flags.
24857 * varasm.c (get_section): Allow section flags conflicts between
24858 relro and read-only sections if the section hasn't been declared yet.
24859 Set SECTION_OVERRIDE after diagnosing section type conflict.
24860 (get_variable_section): No longer static.
24861 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24862 readonly sections that need relocations.
24863 (decl_readonly_section_1): New function.
24864 (decl_readonly_section): Use it.
24867 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
24868 Steve Ellcey <sje@cup.hp.com>
24870 PR middle-end/31490
24871 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24872 if section attribute used.
24874 2011-02-03 Jakub Jelinek <jakub@redhat.com>
24876 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24877 * config/darwin.c (SECTION_NO_ANCHOR): Define.
24878 (darwin_init_sections): Remove assertion.
24880 2011-02-03 Nick Clifton <nickc@redhat.com>
24882 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24884 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24885 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24886 instead of "n" and "pz".
24887 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24890 2011-02-03 Jakub Jelinek <jakub@redhat.com>
24893 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24894 fma, expand FMA_EXPR as fma{,f,l} call.
24897 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24898 copy them into a unsigned char variable and pass address of it to
24899 lto_output_data_stream.
24902 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24903 around backend_init_target and lang_dependent_init_target calls.
24904 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24905 (verify_cgraph_node): Don't call set_cfun here. Use
24906 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24907 Set error_found for incorrectly represented calls to thunks.
24909 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
24912 PR rtl-optimization/43494
24913 * rtl.h (for_each_inc_dec_fn): New type.
24914 (for_each_inc_dec): Declare.
24915 * rtlanal.c (struct for_each_inc_dec_ops): New type.
24916 (for_each_inc_dec_find_inc_dec): New fn.
24917 (for_each_inc_dec_find_mem): New fn.
24918 (for_each_inc_dec): New fn.
24919 * dse.c (struct insn_size): Remove.
24920 (replace_inc_dec, replace_inc_dec_mem): Remove.
24921 (emit_inc_dec_insn_before): New fn.
24922 (check_for_inc_dec): Use it, along with for_each_inc_dec.
24923 (canon_address): Pass mem modes to cselib_lookup.
24924 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
24925 (cselib_lookup_from_insn): Likewise.
24926 (cselib_subst_to_values): Likewise.
24927 * cselib.c (find_slot_memmode): New var.
24928 (cselib_find_slot): New fn. Use it instead of
24929 htab_find_slot_with_hash everywhere.
24930 (entry_and_rtx_equal_p): Use find_slot_memmode.
24931 (autoinc_split): New fn.
24932 (rtx_equal_for_cselib_p): Rename and implement in terms of...
24933 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
24934 Deal with autoinc. Special-case recursion into MEMs.
24935 (cselib_hash_rtx): Likewise.
24936 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
24937 address and MEM modes.
24938 (cselib_subst_to_values): Add memmode, pass it on.
24940 (cselib_lookup): Add memmode argument, pass it on.
24941 (cselib_lookup_from_insn): Add memmode.
24942 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24943 (struct cselib_record_autoinc_data): New.
24944 (cselib_record_autoinc_cb): New fn.
24945 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
24946 mode to cselib_lookup. Reset autoinced REGs here instead of...
24947 (cselib_process_insn): ... here.
24948 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24950 (add_uses): Likewise, also to cselib_subst_to_values.
24951 (add_stores): Likewise.
24952 * sched-deps.c (add_insn_mem_dependence): Pass mode to
24953 cselib_subst_to_values.
24954 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
24955 * gcse.c (do_local_cprop): Adjusted.
24956 * postreload.c (reload_cse_simplify_set): Adjusted.
24957 (reload_cse_simplify_operands): Adjusted.
24958 * sel-sched-dump (debug_mem_addr_value): Pass mode.
24960 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
24962 PR tree-optimization/45122
24963 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24964 unsafe assumptions when there's more than one loop exit.
24966 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24969 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24970 Document using vector double with the load/store builtins, and
24971 that the load/store builtins always use Altivec instructions.
24973 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24974 to use altivec memory instructions, even on VSX.
24975 (vector_altivec_store_<mode>): Ditto.
24977 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24980 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24981 V2DF, V2DI support to load/store overloaded builtins.
24983 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24984 altivec load/store builtins for V2DF/V2DI types.
24986 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24987 set avoid indexed addresses on power6 if -maltivec.
24988 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24989 vector_altivec_load/vector_altivec_store builtins.
24990 (altivec_expand_st_builtin): Ditto.
24991 (altivec_expand_builtin): Add VSX memory builtins.
24992 (rs6000_init_builtins): Add V2DI types to internal types.
24993 (altivec_init_builtins): Add support for V2DF/V2DI altivec
24994 load/store builtins.
24995 (rs6000_address_for_altivec): Insure memory address is appropriate
24998 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24999 vec_vsx_ld and vec_vsx_st.
25000 (vsx_store_<mode>): Ditto.
25002 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25003 variables to hold long long types for VSX vector memory builtins.
25004 (RS6000_BTI_unsigned_long_long): Ditto.
25005 (long_long_integer_type_internal_node): Ditti.
25006 (long_long_unsigned_type_internal_node): Ditti.
25008 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25009 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25010 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25012 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25014 (vec_vsx_st): Ditto.
25016 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25018 * config/pa/pa-hpux10.opt: New.
25019 * config/hpux11.opt (pthread): New Driver option.
25020 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25021 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25023 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25025 * config/ia64/vms.opt: New.
25026 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25028 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25031 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25032 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25033 generator functions.
25034 (vsx_floatuns<VSi><mode>2): Ditto.
25035 (vsx_fix_trunc<mode><VSi>2): Ditto.
25036 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25038 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25040 * config/i386/djgpp.opt (posix): New Driver option.
25042 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
25044 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25045 Move to the unsupported targets list.
25047 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
25049 PR rtl-optimization/47525
25050 * df-scan.c: Update copyright years.
25051 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25052 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25054 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25056 * config/i386/sysv4.h (TARGET_VERSION): Remove.
25057 (SUBTARGET_RETURN_IN_MEMORY): Remove.
25058 (ASM_OUTPUT_ASCII): Remove.
25059 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25061 2011-02-02 Jeff Law <law@redhat.com>
25063 PR middle-end/47543
25064 * reload.c (find_reloads_address): Handle reg+d address where both
25065 components are invalid by reloading the entire address.
25067 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25068 Richard Guenther <rguenther@suse.de>
25070 PR tree-optimization/40979
25072 * passes.c (init_optimization_passes): After LIM call copy_prop
25073 and DCE to clean up.
25074 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25076 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25078 PR tree-optimization/47576
25079 PR tree-optimization/47555
25080 * doc/invoke.texi (scev-max-expr-complexity): Documented.
25081 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25082 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25083 * tree-scalar-evolution.c (follow_ssa_edge): Use
25084 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25086 2011-02-02 Richard Guenther <rguenther@suse.de>
25088 PR tree-optimization/47566
25089 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25091 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25095 * tree-inline.c (declare_return_variable): Remove unused caller
25100 * tree-flow-inline.h (clear_is_used, is_used_p): New.
25101 * cfgexpand.c (account_used_vars_for_block): Use them.
25102 * tree-nrv.c (tree_nrv): Likewise.
25103 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25104 (dump_scope_block): Likewise.
25105 (remove_unused_locals): Likewise.
25109 * tree-inline.c (declare_return_variable): Add result decl to
25110 local decls only once.
25111 * gimple-low.c (record_vars_into): Mark newly-created variables
25114 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25120 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25122 (no_real_insns_p, schedule_block, set_priorities): Drop special
25123 treatment of boundary debug insns.
25124 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25125 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25126 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25127 (BOUNDARY_DEBUG_INSN_P): Likewise.
25128 (SCHEDULE_DEBUG_INSN_P): Likewise.
25129 * sched-rgn.c (init_ready_list): Drop special treatment of
25130 boundary debug insns.
25131 * final.c (rest_of_clean_state): Clear notes' BB.
25133 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25135 * config/openbsd.opt (assert=): New Driver option.
25137 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25139 * config/i386/nto.opt: New.
25140 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25142 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25144 * config/i386/netware.opt: New.
25145 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25147 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25149 * config/interix.opt (posix): New Driver option.
25151 2011-02-01 DJ Delorie <dj@redhat.com>
25153 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25155 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25158 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
25160 PR tree-optimization/47561
25161 * toplev.c (process_options): Print the Graphite flags. Add
25162 flag_loop_flatten to the list of options requiring Graphite.
25164 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25166 * config/i386/cygming.opt (posix): New Driver option.
25168 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25170 * config/arm/vxworks.opt: New.
25171 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25173 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25175 * config/alpha/elf.opt: New.
25176 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25177 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25179 2011-02-01 Richard Guenther <rguenther@suse.de>
25181 PR tree-optimization/47559
25182 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
25183 store-motion on references that can throw.
25185 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
25187 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
25188 * tree-pass.h (TDF_CSELIB): New macro.
25189 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
25190 cselib_lookup): Check for it rather than for TDF_DETAILS.
25192 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
25195 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
25196 is HOST_BIT_BUCKET.
25198 * opts.c (finish_options): Don't add x_aux_base_name if it is
25201 2011-02-01 Richard Guenther <rguenther@suse.de>
25203 PR tree-optimization/47555
25205 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
25207 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25209 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
25212 * config/lm32/t-lm32: Add multilib for all CPU options.
25214 2011-02-01 Richard Guenther <rguenther@suse.de>
25216 PR tree-optimization/47541
25217 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
25218 sure to have a field at offset zero.
25220 2011-01-31 Joseph Myers <joseph@codesourcery.com>
25222 * config/arc/arc.opt (EB, EL): New Driver options.
25224 2011-01-31 Joseph Myers <joseph@codesourcery.com>
25226 * config/alpha/osf5.opt: New.
25227 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
25229 2011-01-31 Joseph Myers <joseph@codesourcery.com>
25231 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
25233 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
25235 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
25236 -floop-interchange.
25237 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
25238 is an alias of -floop-interchange and that it requires the
25239 Graphite infrastructure.
25240 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
25241 flag_loop_interchange based on the value of flag_tree_loop_linear.
25243 2011-01-31 Jakub Jelinek <jakub@redhat.com>
25244 Richard Guenther <rguenther@suse.de>
25246 PR tree-optimization/47538
25247 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
25248 type instead of r1type, except for comparisons. For right
25249 shifts and comparisons punt if there are mismatches in
25250 sizetype vs. non-sizetype types.
25252 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25254 * doc/sourcebuild.texi (Effective-Target Keywords): Document
25257 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25259 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
25261 * configure: Regenerate.
25263 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25265 * configure.ac (gcc_cv_ld_static_option): Define.
25266 (gcc_cv_ld_dynamic_option): Define.
25267 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
25269 (HAVE_LD_STATIC_DYNAMIC): Update message.
25270 (LD_STATIC_OPTION): Define.
25271 (LD_DYNAMIC_OPTION): Define.
25272 * configure: Regenerate.
25273 * config.in: Regenerate.
25274 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
25275 HAVE_LD_STATIC_DYNAMIC]: Use them.
25277 2011-01-31 Nick Clifton <nickc@redhat.com>
25279 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
25280 registers inside interrupt handlers if the handler is not a leaf
25283 2011-01-31 Nick Clifton <nickc@redhat.com>
25285 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
25286 reg_renumber returning an INVALID_REGNUM.
25288 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
25291 * doc/install.texi: Document host options discarded when cross
25292 configuring target libraries.
25294 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
25297 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
25300 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25302 (no_real_insns_p, schedule_block, set_priorities): Drop special
25303 treatment of boundary debug insns.
25304 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25305 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25306 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25307 (BOUNDARY_DEBUG_INSN_P): Likewise.
25308 (SCHEDULE_DEBUG_INSN_P): Likewise.
25309 * sched-rgn.c (init_ready_list): Drop special treatment of
25310 boundary debug insns.
25311 * final.c (rest_of_clean-state): Clear notes' BB.
25313 2011-01-31 Alan Modra <amodra@gmail.com>
25315 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
25316 toc relative expressions as we do in print_operand_address.
25318 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
25320 * doc/extend.texi: Follow spelling conventions.
25321 * doc/invoke.texi: Fix a typo.
25323 2011-01-30 Joseph Myers <joseph@codesourcery.com>
25325 * config/hpux11.opt: New.
25326 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
25327 ia64*-*-hpux*): Use hpux11.opt.
25329 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
25331 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
25334 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
25336 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
25339 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
25341 * doc/install.texi (Binaries): Remove outdated reference for
25342 Motorola 68HC11/68HC12 downloads.
25344 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
25346 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
25349 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
25352 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
25355 2011-01-28 Ahmad Sharif <asharif@google.com>
25357 * value-prof.c (check_counter): Corrected error message.
25359 2011-01-29 Jie Zhang <jie@codesourcery.com>
25361 * config/arm/arm.c (arm_legitimize_reload_address): New.
25362 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25363 arm_legitimize_reload_address.
25364 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
25366 2011-01-28 Ian Lance Taylor <iant@google.com>
25368 * godump.c (go_define): Ignore macros whose definitions include
25369 two adjacent operands.
25371 2011-01-28 Jakub Jelinek <jakub@redhat.com>
25374 * varasm.c (force_const_mem): Store copy of x in desc->constant
25375 instead of x itself.
25376 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
25377 itself into REG_EQUAL note.
25379 2011-01-28 Joseph Myers <joseph@codesourcery.com>
25381 * config/freebsd.opt (posix, rdynamic): New Driver options.
25383 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25385 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
25386 -Bstatic/-Bdynamic.
25387 * configure: Regenerate.
25389 2011-01-27 Joseph Myers <joseph@codesourcery.com>
25391 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25392 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25394 2011-01-27 Anatoly Sokolov <aesok@post.ru>
25396 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25397 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25398 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25399 (s390_preferred_reload_class): Make static. Change return and
25400 'rclass' argument type to reg_class_t.
25402 2011-01-27 Jan Hubicka <jh@suse.cz>
25404 PR middle-end/46949
25405 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25406 (process_function_and_variable_attributes): Check defined weakrefs.
25408 2011-01-27 Martin Jambor <mjambor@suse.cz>
25410 PR tree-optimization/47228
25411 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25412 build_ref_for_offset.
25414 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25416 * config/spu/spu-elf.h (ASM_SPEC): Remove.
25418 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
25420 PR rtl-optimization/46856
25421 * postreload.c (reload_combine_recognize_const_pattern): Do not
25422 separate cc0 setter and user on cc0 targets.
25424 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
25427 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25428 passed a VOID_TYPE expression, immediately emit an error and
25429 return error_mark_node.
25431 2011-01-26 Jeff Law <law@redhat.com>
25433 PR rtl-optimization/47464
25434 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25435 rather than may_trap_p as needed.
25437 2011-01-26 DJ Delorie <dj@redhat.com>
25439 PR rtl-optimization/46878
25440 * combine.c (insn_a_feeds_b): Check for the implicit cc0
25441 setter/user dependency as well.
25443 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
25445 PR rtl-optimization/44469
25446 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25447 after removing trivially dead basic blocks.
25449 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25451 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25452 * config/frv/frv.h (LINK_SPEC): Likewise.
25453 * config/i386/netware.h (LINK_SPEC): Likewise.
25454 * config/m68k/linux.h (ASM_SPEC): Likewise.
25455 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25456 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25457 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25458 * config/sparc/linux.h (ASM_SPEC): Likewise.
25459 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25460 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25462 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25464 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25465 * config/frv/frv.h (ASM_SPEC): Likewise.
25466 * config/m68k/linux.h (ASM_SPEC): Likewise.
25467 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25468 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25469 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25470 * config/sparc/linux.h (ASM_SPEC): Likewise.
25471 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25472 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25474 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25476 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25477 * config/frv/frv.h (LINK_SPEC): Likewise.
25478 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25480 2011-01-26 Joseph Myers <joseph@codesourcery.com>
25482 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25483 * config/frv/frv.h (ASM_SPEC): Likewise.
25484 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25485 * config/m68k/linux.h (ASM_SPEC): Likewise.
25486 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25487 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25488 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25489 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25490 * config/sparc/linux.h (ASM_SPEC): Likewise.
25491 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25492 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25493 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25495 2011-01-26 Steve Ellcey <sje@cup.hp.com>
25498 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25500 (vec_extract_evenodd_help): Ditto.
25501 (vec_extract_evenv4hi): Ditto.
25502 (vec_extract_oddv4hi): Ditto.
25503 (vec_interleave_lowv2si): Ditto.
25504 (vec_interleave_highv2si): Ditto.
25505 (vec_extract_evenv2si): Ditto.
25506 (vec_extract_oddv2si: Ditto.
25507 (vec_pack_trunc_v2si): Ditto.
25509 2011-01-22 Jan Hubicka <jh@suse.cz>
25512 * cgraph.h (cgraph_local_info): New field can_change_signature.
25513 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25514 signature can change.
25515 (ipcp_estimate_growth): Call sequence simplify only if calle signature
25517 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25518 (cgraph_function_versioning): We can not change signature of functions
25519 that don't allow that.
25520 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25521 (lto_input_node): Likewise.
25522 * ipa-inline.c (compute_inline_parameters): Compute
25523 local.can_change_signature.
25524 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25525 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25526 functions that can not change signature.
25527 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25528 init_cumulative_args): Do not use local calling conventions
25529 for functions that can not change signature.
25531 2011-01-22 Jan Hubicka <jh@suse.cz>
25533 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25535 2011-01-26 Richard Guenther <rguenther@suse.de>
25537 PR tree-optimization/47190
25538 * cgraphunit.c (process_common_attributes): New function.
25539 (process_function_and_variable_attributes): Use it.
25541 2011-01-26 Richard Guenther <rguenther@suse.de>
25544 * cgraphbuild.c (record_eh_tables): Record reference to personality
25547 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
25550 * sel-sched.c (moveup_expr): Don't let debug insns prevent
25551 non-debug insns from moving up.
25553 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
25556 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25557 t-dlldir{,-x} fragment for build and add it to tmake_file.
25558 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25559 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25560 * config/i386/t-dlldir: New file.
25561 (SHLIB_DLLDIR): Define.
25562 * config/i386/t-dlldir-x: New file.
25563 (SHLIB_DLLDIR): Define.
25564 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25565 (SHLIB_INSTALL): Use it.
25567 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
25570 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25571 lower bound of the allowed Thumb-2 coprocessor load/store
25572 index range to -256. Add explaining comment.
25574 2011-01-25 Ian Lance Taylor <iant@google.com>
25576 * godump.c (go_define): Improve lexing of macro expansion to only
25577 accept expressions which match Go spec.
25579 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
25582 * tree.c (handle_dll_attribute): Handle it.
25583 * doc/extend.texi (@item dllexport): Mention it.
25584 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25586 2011-01-25 Ian Lance Taylor <iant@google.com>
25588 PR tree-optimization/26854
25589 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25590 (decl_jump_unsafe): Move higher in file, with no other change.
25591 (bind): Set has_jump_unsafe_decl if appropriate.
25592 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25593 (check_earlier_gotos): Likewise.
25594 (c_check_switch_jump_warnings): Likewise.
25596 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
25598 * doc/invoke.texi (Warning Options): Add missing hyphen.
25599 (-fprofile-dir): Minor grammatical fixes.
25600 (-fbranch-probabilities): Likewise.
25602 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
25606 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25608 (no_real_insns_p, schedule_block, set_priorities): Drop special
25609 treatment of boundary debug insns.
25610 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25611 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25612 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25613 (BOUNDARY_DEBUG_INSN_P): Likewise.
25614 (SCHEDULE_DEBUG_INSN_P): Likewise.
25615 * sched-rgn.c (init_ready_list): Drop special treatment of
25616 boundary debug insns.
25617 * final.c (rest_of_clean-state): Clear notes' BB.
25619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25621 * Makefile.in (LAMBDA_H): Removed.
25622 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25623 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25624 lambda-trans.o, and tree-loop-linear.o.
25625 (lto-symtab.o): Remove dependence on LAMBDA_H.
25626 (tree-loop-linear.o): Remove rule.
25627 (lambda-mat.o): Same.
25628 (lambda-trans.o): Same.
25629 (lambda-code.o): Same.
25630 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25631 (tree-vect-slp.o): Same.
25632 * hwint.h (gcd): Moved here.
25633 (least_common_multiple): Same.
25634 * lambda-code.c: Removed.
25635 * lambda-mat.c: Removed.
25636 * lambda-trans.c: Removed.
25637 * lambda.h: Removed.
25638 * tree-loop-linear.c: Removed.
25639 * lto-symtab.c: Do not include lambda.h.
25640 * omega.c (gcd): Removed.
25641 * passes.c (init_optimization_passes): Remove pass_linear_transform.
25642 * tree-data-ref.c (print_lambda_vector): Moved here.
25643 (lambda_vector_copy): Same.
25644 (lambda_matrix_copy): Same.
25645 (lambda_matrix_id): Same.
25646 (lambda_vector_first_nz): Same.
25647 (lambda_matrix_row_add): Same.
25648 (lambda_matrix_row_exchange): Same.
25649 (lambda_vector_mult_const): Same.
25650 (lambda_vector_negate): Same.
25651 (lambda_matrix_row_negate): Same.
25652 (lambda_vector_equal): Same.
25653 (lambda_matrix_right_hermite): Same.
25654 * tree-data-ref.h: Do not include lambda.h.
25655 (lambda_vector): Moved here.
25656 (lambda_matrix): Same.
25657 (dependence_level): Same.
25658 (lambda_transform_legal_p): Removed declaration.
25659 (lambda_collect_parameters): Same.
25660 (lambda_compute_access_matrices): Same.
25661 (lambda_vector_gcd): Same.
25662 (lambda_vector_new): Same.
25663 (lambda_vector_clear): Same.
25664 (lambda_vector_lexico_pos): Same.
25665 (lambda_vector_zerop): Same.
25666 (lambda_matrix_new): Same.
25667 * tree-flow.h (least_common_multiple): Removed declaration.
25668 * tree-parloops.c (lambda_trans_matrix): Moved here.
25669 (LTM_MATRIX): Same.
25670 (LTM_ROWSIZE): Same.
25671 (LTM_COLSIZE): Same.
25672 (LTM_DENOMINATOR): Same.
25673 (lambda_trans_matrix_new): Same.
25674 (lambda_matrix_vector_mult): Same.
25675 (lambda_transform_legal_p): Same.
25676 * tree-pass.h (pass_linear_transform): Removed declaration.
25677 * tree-ssa-loop.c (tree_linear_transform): Removed.
25678 (gate_tree_linear_transform): Removed.
25679 (pass_linear_transform): Removed.
25680 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25681 flag_loop_interchange.
25683 2011-01-25 Jakub Jelinek <jakub@redhat.com>
25685 PR tree-optimization/47265
25686 PR tree-optimization/47443
25687 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25688 if name still has some uses.
25690 2011-01-25 Martin Jambor <mjambor@suse.cz>
25692 PR tree-optimization/47382
25693 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25694 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25696 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
25698 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25699 sjlj_except_unwind_info.
25701 2011-01-25 Richard Guenther <rguenther@suse.de>
25703 PR tree-optimization/47426
25704 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25705 visible functions results escape.
25707 2011-01-25 Jakub Jelinek <jakub@redhat.com>
25710 * config/arm/arm.c (any_sibcall_uses_r3): New function.
25711 (arm_get_frame_offsets): Use it.
25713 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25714 Jakub Jelinek <jakub@redhat.com>
25716 PR tree-optimization/47271
25717 * tree-if-conv.c (bb_postdominates_preds): New.
25718 (if_convertible_bb_p): Call bb_postdominates_preds.
25719 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25720 (predicate_scalar_phi): Call bb_postdominates_preds.
25722 2011-01-25 Nick Clifton <nickc@redhat.com>
25724 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25725 * config/rx/rx.c (rx_function_value): Likewise.
25726 (rx_promote_function_mode): Likewise.
25727 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25728 in order to make it legitimate.
25729 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25730 make sure that the first operand is the same as the result register.
25731 (addsi3_unspec): Delete.
25732 (subdi3): Do not accept immediate operands.
25733 (subdi3_internal): Likewise.
25735 2011-01-25 Jeff Law <law@redhat.com>
25737 PR rtl-optimization/37273
25738 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25739 handle them like argument loads from stack slots. Do not double
25740 count memory for memory constants and argument loads from stack slots.
25742 2011-01-25 Jakub Jelinek <jakub@redhat.com>
25744 PR tree-optimization/47427
25745 PR tree-optimization/47428
25746 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25747 coalesce if the new root var would be TREE_READONLY.
25749 2011-01-25 Richard Guenther <rguenther@suse.de>
25751 PR middle-end/47414
25752 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25753 correct type for TBAA.
25755 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25757 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25758 (close_phi_written_to_memory): Call for_each_index with
25759 dr_indices_valid_in_loop.
25761 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25763 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25764 when it is initialized.
25766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25768 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25769 call to graphite_find_data_references_in_stmt.
25770 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25771 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
25772 call to graphite_find_data_references_in_stmt.
25773 (analyze_drs_in_stmts): Same.
25774 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25775 in which the scalar analysis of indices is performed.
25776 (create_data_ref): Same. Update call to dr_analyze_indices.
25777 (find_data_references_in_stmt): Update call to create_data_ref.
25778 (graphite_find_data_references_in_stmt): Same.
25779 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25781 (create_data_ref): Same.
25782 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25783 call to create_data_ref.
25785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25787 * graphite-sese-to-poly.c (build_poly_scop): Move
25788 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25792 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25793 VAR_DECL, PARM_DECL, and RESULT_DECL.
25795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25797 * graphite-dependences.c (reduction_dr_1): Allow several reductions
25798 in a reduction PBB.
25799 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25800 that have already been marked as PBB_IS_REDUCTION.
25802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25804 * graphite-scop-detection.c (same_close_phi_node): New.
25805 (remove_duplicate_close_phi): New.
25806 (make_close_phi_nodes_unique): New.
25807 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25811 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25812 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25813 of both data references to be the same.
25815 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25817 * graphite-dependences.c (build_lexicographical_constraint): Remove
25818 the gdim parameter.
25819 (build_lexicographical_constraint): Adjust call to
25820 ppl_powerset_is_empty.
25821 (dependence_polyhedron): Same.
25822 (graphite_legal_transform_dr): Same.
25823 (graphite_carried_dependence_level_k): Same.
25824 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25826 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25828 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25830 * graphite-sese-to-poly.c
25831 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25832 (close_phi_written_to_memory): New.
25833 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25838 * doc/install.texi: Update the expected version number of PPL to 0.11.
25839 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25840 #if PPL_VERSION_MINOR < 11.
25842 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25844 * graphite-dependences.c: Include graphite-cloog-util.h.
25845 (new_poly_ddr): Inlined into dependence_polyhedron.
25846 (free_poly_ddr): Moved close by new_poly_ddr.
25847 (dependence_polyhedron_1): Renamed dependence_polyhedron.
25848 Early return NULL when ppl_powerset_is_empty returns true.
25849 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
25850 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
25851 (graphite_legal_transform_dr): Call new_poly_ddr.
25852 (graphite_carried_dependence_level_k): Same.
25853 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
25854 (dot_transformed_deps_stmt_1): Removed.
25855 (dot_deps_stmt_1): Call dot_deps_stmt_2.
25856 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
25857 (dot_deps_1): Call dot_deps_2.
25858 * Makefile.in (graphite-dependences.o): Add missing dependence on
25859 graphite-cloog-util.h.
25861 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25863 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25864 (build_lexicographical_constraint): Same.
25865 (dependence_polyhedron_1): Same.
25866 (graphite_legal_transform_dr): Same.
25867 (graphite_carried_dependence_level_k): Same.
25868 * graphite-ppl.c (ppl_powerset_is_empty): New.
25869 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25870 * tree-data-ref.c (dump_data_reference): Print the basic block index.
25872 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25874 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25875 the "a followed by b" relation and document it.
25877 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25879 * graphite-dependences.c (build_lexicographical_constraint): Stop the
25880 iteration when the bag of constraints is empty.
25882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25884 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25886 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25888 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25889 nest and two loop depths as parameters.
25890 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25891 lst_perfect_nestify.
25893 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25895 * graphite-dependences.c (print_pddr): Call
25896 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
25900 * graphite-ppl.c (debug_gmp_value): New.
25901 * graphite-ppl.h (debug_gmp_value): Declared.
25903 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
25905 * doc/install.texi: Document availability of cloog-0.16.
25907 2011-01-25 Vladimir Kargov <kargov@gmail.com>
25909 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25910 invalid postdominance info.
25912 2011-01-24 Jan Hubicka <jh@suse.cz>
25915 * doc/extend.texi (weak pragma): Drop claim that it must
25916 appear before definition.
25917 * varasm.c (merge_weak, declare_weak): Only sanity check
25918 that DECL is not output at a time it is declared weak.
25920 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
25922 * machmode.def: Fixed comments.
25924 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
25926 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25928 2011-01-24 Paul Koning <ni1d@arrl.net>
25930 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25933 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
25936 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25937 (block_info): Add scanned and prev.
25938 (move_or_delete_vzeroupper_2): Return if the basic block
25939 has been scanned and the upper 128bit state is unchanged
25940 from the last scan.
25941 (move_or_delete_vzeroupper_1): Return true if the exit
25943 (move_or_delete_vzeroupper): Visit basic blocks using the
25944 work-list based algorithm based on vt_find_locations in
25947 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25949 2011-01-24 Nick Clifton <nickc@redhat.com>
25951 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25952 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25953 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
25954 then define __v850e1__.
25955 * doc/invoke.texi: Document -mv850es.
25957 2011-01-24 Richard Henderson <rth@redhat.com>
25959 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25960 compound unordered comparisons.
25961 * config/rx/rx.c (rx_split_fp_compare): Remove.
25962 * config/rx/rx-protos.h: Update.
25963 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25964 (cbranchsf4): Don't call rx_split_fp_compare.
25965 (*cbranchsf4): Use rx_split_cbranch.
25966 (*cmpsf): Don't accept "i" constraint.
25967 (*conditional_branch): Only valid after reload.
25968 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
25970 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
25973 * config/rs6000/altivec.md (vector constant splitters): Add
25974 support for creating vector single precision constants if -mvsx is
25975 used and we would create the constant using Altivec primitives.
25977 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
25978 Richard Sandiford <rdsandiford@googlemail.com>
25980 PR rtl-optimization/47166
25981 * reload1.c (emit_reload_insns): Disable the spill_reg_store
25982 mechanism for PRE_MODIFY and POST_MODIFY.
25983 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25986 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
25988 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25990 2011-01-22 Jan Hubicka <jh@suse.cz>
25993 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25995 2011-01-22 Jan Hubicka <jh@suse.cz>
25997 PR tree-optimization/43884
25999 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26000 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26002 2011-01-22 Anatoly Sokolov <aesok@post.ru>
26004 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26005 * config/s390/s390.c (s390_register_move_cost,
26006 s390_memory_move_cost): New.
26007 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26009 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26011 PR middle-end/47401
26012 * except.c (sjlj_assign_call_site_values): Move setting the
26013 crtl->uses_eh_lsda flag to ...
26014 (sjlj_mark_call_sites): ... here.
26015 (sjlj_emit_function_enter): Support NULL dispatch label.
26016 (sjlj_build_landing_pads): In a function with no landing pads
26017 that still has must-not-throw regions, generate code to register
26018 a personality function with empty LSDA.
26020 2011-01-21 Richard Henderson <rth@redhat.com>
26022 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26024 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26026 * compare-elim.c: New file.
26027 * Makefile.in (OBJS-common): Add it.
26028 (compare-elim.o): New.
26029 * common.opt (fcompare-elim): New.
26030 * opts.c (default_options_table): Add OPT_fcompare_elim.
26031 * tree-pass.h (pass_compare_elim_after_reload): New.
26032 * passes.c (init_optimization_passes): Add it.
26033 * recog.h: Protect against re-inclusion.
26034 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26035 * doc/invoke.texi (-fcompare-elim): Document it.
26036 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26037 * doc/tm.texi: Rebuild.
26039 2011-01-22 Nick Clifton <nickc@redhat.com>
26041 * config/rx/rx.md (cstoresf4): Pass comparison operator to
26042 rx_split_fp_compare.
26044 2011-01-22 Nick Clifton <nickc@redhat.com>
26046 * config/rx/rx.md (UNSPEC_CONST): New.
26047 (deallocate_and_return): Wrap the amount popped off the stack in
26048 an UNSPEC_CONST in order to stop it being rejected by
26049 -mmax-constant-size.
26050 (pop_and_return): Add a "(return)" rtx.
26051 (call): Drop the immediate operand.
26052 (call_internal): Likewise.
26053 (call_value): Likewise.
26054 (call_value_internal): Likewise.
26055 (sibcall_internal): Likewise.
26056 (sibcall_value_internal): Likewise.
26057 (sibcall): Likewise. Generate an explicit call using
26059 (sibcall_value): Likewise.
26060 (mov<>): FAIL if a constant operand is not legitimate.
26061 (addsi3_unpsec): New pattern.
26063 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26064 (ok_for_max_constant): New function.
26065 (gen_safe_add): New function.
26066 (rx_expand_prologue): Use gen_safe_add.
26067 (rx_expand_epilogue): Likewise.
26068 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
26071 2011-01-21 Jeff Law <law@redhat.com>
26073 PR tree-optimization/47053
26074 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26075 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26076 statements are deleted.
26077 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
26078 is nonempty, then purge dead edges and cleanup the CFG.
26080 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26083 Temporarily revert:
26084 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26086 * tree-dfa.c (create_var_ann): Mark variable as used.
26088 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26090 PR middle-end/45566
26091 * except.c (convert_to_eh_region_ranges): Emit queued no-region
26092 notes from other section in hot/cold partitioning even if
26093 last_action is -3. Increment call_site_base.
26095 PR rtl-optimization/47366
26096 * fwprop.c (forward_propagate_into): Return bool. If
26097 any changes are made, -fnon-call-exceptions is used and
26098 REG_EH_REGION note is present, call purge_dead_edges
26099 and return true if it purged anything.
26100 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26101 any EH edges were purged.
26103 2011-01-21 Jeff Law <law@redhat.com>
26105 PR rtl-optimization/41619
26106 * caller-save.c (setup_save_areas): Break out code to determine
26107 which hard regs are live across calls by examining the reload chains
26108 so that it is always used.
26109 Eliminate code which checked REG_N_CALLS_CROSSED.
26111 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26113 PR tree-optimization/47355
26114 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26115 NOP has non-debug uses beyond PHIs in new_bb.
26117 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26120 * cfgexpand.c (account_used_vars_for_block): Only account vars
26121 that are annotated as used.
26122 (estimated_stack_frame_size): Don't set TREE_USED.
26123 * tree-dfa.c (create_var_ann): Mark variable as used.
26125 2011-01-21 Richard Guenther <rguenther@suse.de>
26127 PR middle-end/47395
26128 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26130 2011-01-21 Richard Guenther <rguenther@suse.de>
26132 PR tree-optimization/47365
26133 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26134 (vn_reference_lookup_pieces): Adjust.
26135 (vn_reference_lookup): Likewise.
26136 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26137 (vn_reference_lookup_3): Only look through kills if in
26138 VN_WALKREWRITE mode.
26139 (vn_reference_lookup_pieces): Adjust.
26140 (vn_reference_lookup): Likewise.
26141 (visit_reference_op_load): Likewise.
26142 (visit_reference_op_store): Likewise.
26143 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26144 (compute_avail): Likewise.
26145 (eliminate): Likewise.
26147 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26149 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26150 DECL_IGNORED_P non-reg vars if they are used.
26152 PR tree-optimization/47391
26153 * varpool.c (const_value_known_p): Return false if
26156 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
26159 * config/i386/i386.c (ix86_local_alignment): Handle
26160 case for va_list_type_node is nil.
26161 (ix86_canonical_va_list_type): Likewise.
26163 2011-01-21 Alan Modra <amodra@gmail.com>
26165 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26166 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26168 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26170 * config/arm/arm.md (define_attr type): Rename f_load
26171 and f_store to f_fpa_load and f_fpa_store. Update.
26172 (write_conflict): Deal with rename fallout.
26173 (*push_fp_multi): Likewise.
26174 * config/arm/fpa.md (f_load): Use f_fpa_load.
26175 (f_store): Use f_fpa_store.
26176 (*movsf_fpa): Likewise.
26177 (*movdf_fpa): Likewise.
26178 (*movxf_fpa): Likewise.
26179 (*thumb2_movsf_fpa): Likewise.
26180 (*thumb2_movdf_fpa): Likewise.
26181 (*thumb2_movxf_fpa): Likewise.
26182 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
26183 f_loadd and f_stored.
26184 (*thumb2_movdi_vfp): Likewise.
26185 (*thumb2_movsf_vfp): Fix attribute to f_loads.
26186 (*thumb2_movsi_vfp): Likewise.
26187 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
26188 Use f_loads instead of f_load.
26189 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
26191 2011-01-20 Anatoly Sokolov <aesok@post.ru>
26193 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26194 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
26195 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26196 (xtensa_mode_dependent_address_p): New function.
26197 (constantpool_address_p): Make static. Change return type to bool.
26198 Change argument type to const_rtx. Use CONST_INT_P predicate.
26200 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
26203 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
26205 2011-01-20 Jakub Jelinek <jakub@redhat.com>
26208 * cfgexpand.c (expand_debug_expr): Instead of generating
26209 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
26212 2011-01-20 Richard Guenther <rguenther@suse.de>
26214 PR middle-end/47370
26215 * tree-inline.c (remap_gimple_op_r): Recurse manually for
26216 the pointer operand of MEM_REFs.
26218 2011-01-20 Jakub Jelinek <jakub@redhat.com>
26220 PR tree-optimization/46130
26221 * ipa-split.c (consider_split): If return_bb contains non-virtual
26222 PHIs other than for retval or if split_function would not adjust it,
26225 2011-01-20 Richard Guenther <rguenther@suse.de>
26227 PR tree-optimization/47167
26228 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
26229 Revert previous change, only avoid enumeral type changes.
26231 2011-01-19 Mike Stump <mikestump@comcast.net>
26233 * doc/tm.texi.in (BRANCH_COST): Englishify.
26234 * doc/tm.texi (BRANCH_COST): Likewise.
26236 2011-01-19 Dodji Seketeli <dodji@redhat.com>
26239 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
26240 (gen_scheduled_generic_parms_dies): New functions.
26241 (gen_struct_or_union_type_die): Schedule template parameters DIEs
26242 generation for the end of CU compilation.
26243 (dwarf2out_finish): Generate template parameters DIEs here.
26245 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
26248 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
26249 debug bind stmt on merge edges.
26251 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
26255 * function.c (instantiate_expr): Instantiate incoming rtl of
26256 implicit arguments, and recurse on VALUE_EXPRs.
26257 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
26258 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
26260 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
26262 * c-parser.c (c_parser_for_statement): Initialize
26263 collection_expression.
26265 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26267 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
26269 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26271 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
26272 (LINK_SHLIB_SPEC): Don't use %(link_path).
26273 (SUBTARGET_EXTRA_SPECS): Remove link_path.
26275 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26277 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
26278 (NO_SHARED_LIB_SUPPORT): Remove.
26279 (LINK_SHLIB_SPEC): Remove one conditional definition.
26281 2011-01-19 Joseph Myers <joseph@codesourcery.com>
26283 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
26285 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
26286 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
26287 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
26288 %{call_shared} and conditionals on these options not being passed.
26289 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
26292 2011-01-19 Jakub Jelinek <jakub@redhat.com>
26294 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
26297 * ipa-split.c: Spelling fixes.
26299 2011-01-19 Richard Henderson <rth@redhat.com>
26301 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
26302 (*mulsi3): Likewise.
26304 * longlong.h [__mn10300__] (count_leading_zeros): New.
26305 [__mn10300__] (umul_ppmm, smul_ppmm): New.
26306 [__mn10300__] (add_ssaaaa, subddmmss): New.
26307 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
26308 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
26310 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26312 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
26314 2011-01-19 Richard Henderson <rth@redhat.com>
26316 * config/mn10300/mn10300.md (addsi3_flags): New.
26317 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
26318 (subsi3_flags, subc_internal, subdi3): New.
26319 (subdi3_internal, *subdi3_degenerate): New.
26320 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
26322 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
26323 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
26324 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
26325 * config/mn10300/mn10300-protos.h: Update.
26326 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
26327 (return_ret): Likewise. Rename from return_internal_regs.
26328 (return_internal): Remove.
26330 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
26331 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
26332 (mn10300_legitimate_constant_p): Likewise.
26333 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
26334 (mn10300_frame_size): New.
26335 (mn10300_expand_prologue): Use it.
26336 (mn10300_expand_epilogue): Likewise.
26337 (mn10300_initial_offset): Likewise.
26338 * config/mn10300/mn10300-protos.h: Update.
26339 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
26340 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
26341 (prologue, epilogue, return_internal): Tidy output code.
26342 (mn10300_store_multiple_operation, return): Likewise.
26343 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
26344 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
26345 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
26346 (load_pic, am33_load_pic): New.
26347 (mn10300_load_pic0, mn10300_load_pic1): New.
26349 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
26350 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
26351 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
26352 (cc_flags_for_mode, cc_flags_for_code): New.
26353 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
26354 overflow flag is not valid. Validate that the flags we need
26355 for the comparison are valid.
26356 (mn10300_output_cmp): Remove.
26357 (mn10300_output_add): New.
26358 (mn10300_select_cc_mode): Use cc_flags_for_code.
26359 (mn10300_split_cbranch): New.
26360 (mn10300_match_ccmode): New.
26361 (mn10300_split_and_operand_count): New.
26362 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
26364 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
26365 (addsi3): ... here. Use mn10300_output_add.
26366 (*addsi3_flags): New.
26367 (*am33_subsi3, *mn10300_subsi3): Merge...
26368 (subsi3): ... here. Use attribute isa.
26369 (*subsi3_flags): New.
26370 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
26372 (*am33_andsi3, *mn10300_andsi3): Merge...
26373 (andsi3): ... here.
26374 (*andsi3_flags): New.
26375 (andsi3 splitters): New.
26376 (*am33_iorsi3, *mn10300_iorsi3): Merge...
26377 (iorsi3): ... here.
26378 (*iorsi3_flags): New.
26379 (*am33_xorsi3, *mn10300_xorsi3): Merge...
26380 (xorsi3): ... here.
26381 (*xorsi3_flags): New.
26382 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
26383 (one_cmplsi2): ... here.
26384 (*one_cmplsi2_flags): New.
26385 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
26386 instead of "dax" in constraints. Use mn10300_split_cbranch.
26387 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
26388 use matching constraints to eliminate a self-comparison.
26389 (*integer_conditional_branch): Rename from integer_conditional_branch.
26390 Use int_mode_flags to match CC_REG.
26391 (*cbranchsi4_btst, *btstsi): New.
26392 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
26393 mn10300_split_cbranch.
26394 (*am33_cmpsf): Rename from am33_cmpsf.
26395 (*float_conditional_branch): Rename from float_conditional_branch.
26396 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26397 (zero_extendqisi2): ... here.
26398 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26399 (zero_extendhisi2): ... here.
26400 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26401 (extendqisi2): ... here.
26402 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26403 (extendhisi2): ... here.
26404 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26405 (ashlsi3): ... here.
26406 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26407 (lshrsi3): ... here.
26408 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26409 (ashrsi3): ... here.
26410 (consecutive add peephole): Remove.
26411 * config/mn10300/predicates.md (label_ref_operand): New.
26412 (int_mode_flags): New.
26413 (CCZN_comparison_operator): New.
26415 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26416 (throughput_42_latency_43): New reservation.
26417 (mulsidi3, umulsidi3): New expanders.
26418 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
26419 the MDR register to allocation; separately allocate the low and
26420 high parts of the DImode result.
26421 (umulsidi3_internal): Similarly.
26422 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26423 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
26424 (udivsi3, umodsi3): Remove.
26425 (udivmodsi4, divmodsi4): New expanders.
26426 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
26427 (*divmodsi4): Simiarly.
26428 (ext_internal): New.
26430 * config/mn10300/constraints.md ("z"): New constraint.
26431 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26432 (FIXED_REGISTERS): Don't fix MDR.
26433 (CALL_USED_REGSITERS): Reformat nicely.
26434 (REG_ALLOC_ORDER): Add MDR.
26435 (enum regclass): Add MDR_REGS.
26436 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26437 (IRA_COVER_CLASSES): Add MDR_REGS.
26438 (REGNO_REG_CLASS): Handle MDR_REG.
26439 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26440 (mn10300_register_move_cost): Likewise.
26441 * config/mn10300/mn10300.md (MDR_REG): New.
26442 (*movsi_internal): Handle moves to/from MDR_REGS.
26444 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26446 (mn10300_secondary_reload): Tidy combination reload classes.
26447 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26448 addresses for AM33. Allow symbolic offsets for reg+imm.
26449 (mn10300_regno_in_class_p): New.
26450 (mn10300_legitimize_reload_address): New.
26451 * config/mn10300/mn10300.h (enum reg_class): Remove
26452 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26453 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
26454 SP_OR_GENERAL_REGS.
26455 (REG_CLASS_NAMES): Update to match.
26456 (REG_CLASS_CONTENTS): Likewise.
26457 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26458 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26459 (REGNO_IN_RANGE_P): Remove.
26460 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26461 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26462 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26463 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26464 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26465 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26466 (REGNO_GENERAL_P): New.
26467 (HAVE_POST_MODIFY_DISP): New.
26468 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26469 (LEGITIMIZE_RELOAD_ADDRESS): New.
26470 * config/mn10300/mn10300-protos.h: Update.
26472 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26473 DATA_REGS for AM33 stack-pointer destination.
26474 (mn10300_preferred_output_reload_class): Likewise.
26475 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26476 into a form appropriate for ...
26477 (TARGET_SECONDARY_RELOAD): New.
26478 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26479 * config/mn10300/mn10300-protos.h: Update.
26480 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26481 reload_insi; use the "A" constraint for the scratch; handle AM33
26482 moves of sp to non-address registers.
26484 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26485 (*movqi_internal): ... here.
26486 (*am33_movhi, *mn10300_movhi): Merge into...
26487 (*movhi_internal): ... here.
26488 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
26489 as the source/destination of moves from/to SP.
26490 (movsf): Only allow for AM33-2.
26491 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26492 any integer constant constraint. Only allow for AM33-2. Tidy
26493 all of the alternative outputs.
26494 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26495 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
26497 (udivsi3, umodsi3): New patterns for MN103 only.
26499 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
26501 * doc/tm.texi.in: Spell out that a lack of register class unions
26503 * doc/tm.texi: Regenerate.
26505 2011-01-19 Jakub Jelinek <jakub@redhat.com>
26507 PR rtl-optimization/47337
26508 * dce.c (check_argument_store): New function.
26509 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
26511 PR tree-optimization/47290
26512 * tree-eh.c (infinite_empty_loop_p): New function.
26513 (cleanup_empty_eh): Use it.
26515 2011-01-18 Steve Ellcey <sje@cup.hp.com>
26518 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26519 (a64_expand_widen_sum): Ditto.
26520 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26521 (vec_extract_evenodd_help): Ditto.
26522 (vec_extract_evenv4hi): Ditto.
26523 (vec_extract_oddv4hi): Ditto.
26524 (vec_extract_evenv2si): Ditto.
26525 (vec_extract_oddv2si): Ditto.
26526 (vec_extract_evenv2sf): Ditto.
26527 (vec_extract_oddv2sf): Ditto.
26528 (vec_pack_trunc_v4hi: Ditto.
26529 (vec_pack_trunc_v2si): Ditto.
26530 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26531 (vec_interleave_highv8qi): Ditto.
26533 (vec_extract_oddv8qi): Ditto.
26534 (vec_interleave_lowv4hi): Ditto.
26535 (vec_interleave_highv4hi): Ditto.
26536 (vec_interleave_lowv2si): Ditto.
26537 (vec_interleave_highv2si): Ditto.
26539 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26541 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26542 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26543 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
26544 (pa_c_mode_for_suffix): New.
26545 (TARGET_EXPAND_BUILTIN): Define.
26546 (TARGET_C_MODE_FOR_SUFFIX): Define.
26547 (pa_builtins): Define.
26548 (pa_init_builtins): Register __float128 type and init new support
26550 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26551 * config/pa/quadlib.c (_U_Qfcopysign): New.
26553 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
26555 PR middle-end/46894
26556 * explow.c (allocate_dynamic_stack_space): Do not assume more than
26557 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26560 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26562 PR tree-optimization/47179
26563 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26564 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26566 2011-01-18 Richard Guenther <rguenther@suse.de>
26568 PR rtl-optimization/47216
26569 * emit-rtl.c: Include tree-flow.h.
26570 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26571 of replicating it with different semantics.
26572 * Makefile.in (emit-rtl.o): Adjust.
26574 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26576 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26577 (cortex_a9_dp): Handle neon types correctly.
26579 2011-01-18 Jakub Jelinek <jakub@redhat.com>
26581 PR rtl-optimization/47299
26582 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26583 subtarget. Use normal multiplication if both operands are constants.
26584 * expmed.c (expand_widening_mult): Don't try to optimize constant
26585 multiplication if op0 has VOIDmode. Convert op1 constant to mode
26588 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26590 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
26591 spacing after 'e.g.', typos, comma, hyphenation.
26593 2011-01-17 Richard Henderson <rth@redhat.com>
26595 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26596 (rx_restricted_mem_operand): New.
26597 (rx_shift_operand): Use register_operand.
26598 (rx_source_operand, rx_compare_operand): Likewise.
26599 * config/rx/rx.md (addsi3_flags): New expander.
26600 (adddi3): Rewrite as expander.
26601 (adc_internal, *adc_flags, adddi3_internal): New patterns.
26602 (subsi3_flags): New expander.
26603 (subdi3): Rewrite as expander.
26604 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26606 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26607 (rx_init_builtins): Remove sat builtin.
26608 (rx_expand_builtin): Likewise.
26609 * config/rx/rx.md (ssaddsi3): New.
26610 (*sat): Rename from sat. Represent the CC_REG input.
26612 * config/rx/predicates.md (rshift_operator): New.
26613 * config/rx/rx.c (rx_expand_insv): Remove.
26614 * config/rx/rx-protos.h: Update.
26615 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
26616 operand to the canonical position.
26617 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26618 (*bitclr, *bitclr_in_memory): Similarly.
26619 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26620 (insv): Retain the zero_extract in the expansion.
26622 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26623 (bswaphi2, bitinvert, revw): Likewise.
26625 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26626 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26627 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26628 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26629 (bitset, bitset_in_memory): Likewise.
26630 (bitinvert, bitinvert_in_memory): Likewise.
26631 (bitclr, bitclr_in_memory): Likewise.
26632 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26633 (rx_strend, rx_cmpstrn): Likewise.
26634 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
26635 (bitop peep2 patterns): Remove.
26637 * config/rx/rx.c (rx_match_ccmode): New.
26638 * config/rx/rx-protos.h: Update.
26639 * config/rx/rx.md (abssi2): Clobber, don't set flags.
26640 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26641 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26642 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26643 (fix_truncsfsi2, floatsisf2): Likewise.
26644 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26645 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26646 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26647 (*subsi3_flags, *xorsi3_flags): New.
26649 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26651 * config/rx/rx.c (rx_print_operand): Remove workaround for
26652 unsplit comparison operations.
26654 * config/rx/rx.md (movsicc): Split after reload.
26655 (*movsicc): Merge *movsieq and *movsine via match_operator.
26656 (*stcc): New pattern.
26658 * config/rx/rx.c (rx_float_compare_mode): Remove.
26659 * config/rx/rx.h (rx_float_compare_mode): Remove.
26660 * config/rx/rx.md (cstoresi4): Split after reload.
26661 (*sccc): New pattern.
26663 * config/rx/predicates.md (label_ref_operand): New.
26664 (rx_z_comparison_operator): New.
26665 (rx_zs_comparison_operator): New.
26666 (rx_fp_comparison_operator): New.
26667 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26668 Validate that the flags are set properly for the comparison.
26669 (rx_gen_cond_branch_template): Remove.
26670 (rx_cc_modes_compatible): Remove.
26671 (mode_from_flags): New.
26672 (flags_from_code): Rename from flags_needed_for_conditional.
26673 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26674 (rx_select_cc_mode): Likewise.
26675 (rx_split_fp_compare): New.
26676 (rx_split_cbranch): New.
26677 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26678 (*cbranchsi4): Use match_operator and rx_split_cbranch.
26679 (*cbranchsf4): Similarly.
26680 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
26681 match_operator and rx_split_cbranch.
26682 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26683 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
26684 (*cmpsi): Rename from cmpsi.
26685 (*tstsi): Rename from tstsi.
26686 (*cmpsf): Rename from cmpsf; use CC_Fmode.
26687 (*conditional_branch): Rename from conditional_branch.
26688 (*reveresed_conditional_branch): Remove.
26689 (b<code>): Remove expander.
26690 * config/rx/rx-protos.h: Update.
26692 * config/rx/rx.c (rx_compare_redundant): Remove.
26693 * config/rx/rx.md (cmpsi): Don't use it.
26694 * config/rx/rx-protos.h: Update.
26696 * config/rx/rx-modes.def (CC_F): New mode.
26697 * config/rx/rx.c (rx_select_cc_mode): New.
26698 * config/rx/rx.h (SELECT_CC_MODE): Use it.
26699 * config/rx/rx-protos.h: Update.
26701 2011-01-17 Richard Henderson <rth@redhat.com>
26703 * except.c (dump_eh_tree): Fix stray ; after for statement.
26705 2011-01-17 Richard Guenther <rguenther@suse.de>
26707 PR tree-optimization/47313
26708 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26709 handling before copying the body. Properly deal with
26710 by-reference result in SSA form.
26712 2011-01-17 Ian Lance Taylor <iant@google.com>
26715 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26716 (struct_value_alias_set): Don't define.
26717 (sparc_option_override): Don't set sparc_sr_alias_set and
26718 struct_value_alias_set.
26719 (save_or_restore_regs): Use gen_frame_mem rather than calling
26721 (sparc_struct_value_rtx): Likewise.
26723 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
26726 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26727 (_mm_maskstore_pd): Likewise.
26728 (_mm_maskload_ps): Likewise.
26729 (_mm_maskstore_ps): Likewise.
26730 (_mm256_maskload_pd): Change mask to __m256i.
26731 (_mm256_maskstore_pd): Likewise.
26732 (_mm256_maskload_ps): Likewise.
26733 (_mm256_maskstore_ps): Likewise.
26735 * config/i386/i386-builtin-types.def: Updated.
26736 (ix86_expand_special_args_builtin): Likewise.
26738 * config/i386/i386.c (bdesc_special_args): Update
26739 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26740 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26741 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26742 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26744 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26745 Use <avxpermvecmode> on mask register.
26746 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26748 2011-01-17 Olivier Hainque <hainque@adacore.com>
26749 Michael Haubenwallner <michael.haubenwallner@salomon.at>
26750 Eric Botcazou <ebotcazou@adacore.com>
26753 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26754 if <= USHRT_MAX in 32-bit mode.
26756 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26758 * doc/install.texi (Configuration, Specific): Wrap long
26759 lines in examples. Allow line wrapping in long options
26760 and URLs where beneficial for PDF output.
26762 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
26764 * config/mips/mips.c (mips_classify_symbol): Don't return
26765 SYMBOL_PC_RELATIVE for nonlocal labels.
26767 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
26769 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26771 2011-01-15 Jan Hubicka <jh@suse.cz>
26773 PR tree-optimization/47276
26774 * ipa.c (function_and_variable_visibility): Do not try to mark alias
26775 declarations as needed.
26777 2011-01-15 Martin Jambor <mjambor@suse.cz>
26779 * common.opt (fdevirtualize): New flag.
26780 * doc/invoke.texi (Option Summary): Document it.
26781 * opts.c (default_options_table): Add devirtualize flag.
26782 * ipa-prop.c (detect_type_change): Return immediately if
26783 devirtualize flag is not set.
26784 (detect_type_change_ssa): Likewise.
26785 (compute_known_type_jump_func): Likewise.
26786 (ipa_analyze_virtual_call_uses): Likewise.
26788 2011-01-14 Martin Jambor <mjambor@suse.cz>
26790 PR tree-optimization/45934
26791 PR tree-optimization/46302
26792 * ipa-prop.c (type_change_info): New type.
26793 (stmt_may_be_vtbl_ptr_store): New function.
26794 (check_stmt_for_type_change): Likewise.
26795 (detect_type_change): Likewise.
26796 (detect_type_change_ssa): Likewise.
26797 (compute_complex_assign_jump_func): Check for dynamic type change.
26798 (compute_complex_ancestor_jump_func): Likewise.
26799 (compute_known_type_jump_func): Likewise.
26800 (compute_scalar_jump_functions): Likewise.
26801 (ipa_analyze_virtual_call_uses): Likewise.
26802 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26804 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26806 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26807 * config/i386/i386.opt (msse5): New Alias.
26809 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26811 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26812 * config/sparc/linux64.h (CC1_SPEC): Likewise.
26813 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26814 * config/sparc/sparc.h (CC1_SPEC): Likewise.
26816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26818 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26820 * config/sparc/linux64.h (CC1_SPEC): Likewise.
26821 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26822 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26823 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26825 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26827 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26829 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26831 2011-01-14 Mike Stump <mikestump@comcast.net>
26833 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26834 * config/fr30/fr30.md: Likweise
26835 (movsi_push): Likewise.
26836 (movsi_pop): Likewise.
26837 (enter_func): Likewise.
26838 * config/moxie/moxie.md (movsi_push): Likewise.
26839 (movsi_pop): Likewise.
26841 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26843 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26844 %{no_archive} %{exact_version}.
26845 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26846 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26847 %{no_archive} %{exact_version}.
26848 * config/mips/openbsd.h (LINK_SPEC): Likewise.
26849 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26850 * config/mips/vxworks.h: Likewise.
26852 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26854 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26856 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26858 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26859 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26861 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26863 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26866 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26868 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26870 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26871 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26873 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26874 Don't handle -shlib.
26876 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26878 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26879 (CC1_SPEC): Don't handle -profile.
26881 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26883 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26884 * config/mips/mips.h (CC1_SPEC): Likewise.
26886 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26888 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26889 * config/mips/mips.h (CC1_SPEC): Likewise.
26891 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26893 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26894 * config/m32r/linux.h (LINK_SPEC): Likewise.
26895 * config/mips/linux.h (LINK_SPEC): Likewise.
26896 * config/mips/linux64.h (LINK_SPEC): Likewise.
26897 * config/sparc/linux.h (LINK_SPEC): Likewise.
26898 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26899 LINK_SPEC): Likewise.
26900 * config/xtensa/linux.h (LINK_SPEC): Likewise.
26902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26904 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26906 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26908 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26910 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26911 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26913 2011-01-14 Joseph Myers <joseph@codesourcery.com>
26915 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26917 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26919 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26920 supports -Bstatic/-Bdynamic.
26921 * configure: Regenerate.
26923 2011-01-14 Jan Hubicka <jh@suse.cz>
26924 Jack Howarth <howarth@bromo.med.uc.edu>
26927 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26928 when checking debug_info_level. Test write_symbols instead of
26929 debug_hooks->var_location when setting flag_var_tracking_uninit.
26931 2011-01-14 Richard Guenther <rguenther@suse.de>
26933 PR tree-optimization/47179
26934 * target.def (ref_may_alias_errno): New target hook.
26935 * targhooks.h (default_ref_may_alias_errno): Declare.
26936 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26937 (default_ref_may_alias_errno): New function.
26938 * target.h (struct ao_ref_s): Declare.
26939 * tree-ssa-alias.c: Include target.h.
26940 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26941 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26942 (targhooks.o): Likewise.
26943 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26944 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26946 2011-01-14 Richard Guenther <rguenther@suse.de>
26948 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
26950 2011-01-14 Richard Guenther <rguenther@suse.de>
26952 PR tree-optimization/47280
26953 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26954 return CFG changes.
26955 (tree_ssa_forward_propagate_single_use_vars): Deal with
26956 CFG changes from associate_plusminus.
26958 2011-01-14 Richard Guenther <rguenther@suse.de>
26960 PR middle-end/47281
26962 2011-01-11 Richard Guenther <rguenther@suse.de>
26964 PR tree-optimization/46076
26965 * tree-ssa.c (useless_type_conversion_p): Conversions from
26966 unprototyped to empty argument list function types are useless.
26968 2011-01-14 Richard Guenther <rguenther@suse.de>
26970 PR tree-optimization/47286
26971 * tree-ssa-structalias.c (new_var_info): Register variables are global.
26973 2011-01-14 Martin Jambor <mjambor@suse.cz>
26975 PR middle-end/46823
26976 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26978 2011-01-13 Anatoly Sokolov <aesok@post.ru>
26980 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26981 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26982 * config/xtensa/xtensa.c (xtensa_libcall_value,
26983 xtensa_function_value_regno_p): New functions.
26984 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26986 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
26989 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26991 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26992 New function prototype.
26993 * config/i386/winnt.c (i386_pe_assemble_visibility):
26994 Warn only if attribute was specified by user.
26996 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26999 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27001 (floatunsdidf2_fcfidu): Ditto.
27003 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27005 * config/s390/s390.c (print_operand_address): Replace 'error' with
27006 'output_operand_lossage'.
27007 (print_operand): Likewise.
27009 2011-01-13 Jeff Law <law@redhat.com>
27011 PR rtl-optimization/39077
27012 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27013 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27014 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27015 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27016 * gcse.c (prune_insertions_deletions): New function.
27017 (compute_pre_data): Use it.
27019 2011-01-13 Dodji Seketeli <dodji@redhat.com>
27022 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27024 (prune_unused_types_mark): Use it.
27026 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
27028 PR rtl-optimization/45352
27029 * sel-sched.c: Update copyright years.
27030 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27031 in the advancing loop when we have issued issue_rate insns.
27033 2011-01-12 Richard Henderson <rth@redhat.com>
27035 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27036 (TARGET_MD_ASM_CLOBBERS): New.
27038 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27039 (TARGET_DELEGITIMIZE_ADDRESS): New.
27041 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27042 (clzsi2, *bsch): New patterns.
27044 * config/mn10300/mn10300.md (INT): New mode iterator.
27045 (*mov<INT>_clr): New pattern, and peep2 to generate it.
27047 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27048 flag_split_wide_types.
27050 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27051 (mn10300_trampoline_init): Rewrite without a template, an immediate
27052 load and a direct branch.
27053 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27055 2011-01-12 Anatoly Sokolov <aesok@post.ru>
27057 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27058 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27059 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27060 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27062 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
27065 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27068 2011-01-12 Jan Hubicka <jh@suse.cz>
27071 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27072 (PLUGIN_COND_CLOSE): New macro.
27073 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27075 2011-01-12 Richard Guenther <rguenther@suse.de>
27078 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27079 register variables in a MEM_REF.
27081 2011-01-12 Joseph Myers <joseph@codesourcery.com>
27083 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27084 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27085 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27086 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27087 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27088 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27089 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27090 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27091 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27092 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27093 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27094 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27095 * config/gnu-user.h: New. Copied from linux.h.
27096 (LINUX_TARGET_STARTFILE_SPEC): Rename to
27097 GNU_USER_TARGET_STARTFILE_SPEC.
27098 (LINUX_TARGET_ENDFILE_SPEC): Rename to
27099 GNU_USER_TARGET_ENDFILE_SPEC.
27100 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27101 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27102 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27103 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27104 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27105 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27106 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27107 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27108 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27109 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27110 * config/arm/linux-eabi.h (CC1_SPEC): Use
27111 GNU_USER_TARGET_CC1_SPEC.
27112 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27113 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27114 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27115 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27116 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27117 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27118 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27119 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27121 2011-01-12 Richard Guenther <rguenther@suse.de>
27124 * doc/invoke.texi (ffast-math): Document it is turned on
27127 2011-01-12 Jan Hubicka <jh@suse.cz>
27129 PR tree-optimization/47233
27130 * opts.c (common_handle_option): Disable ipa-reference with profile
27133 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27135 * c-parser.c (c_parser_objc_at_property_declaration): Improved
27138 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27140 * c-parser.c (c_lex_one_token): Updated and reindented some
27141 comments. No changes in code.
27143 2011-01-11 Ian Lance Taylor <iant@google.com>
27145 * godump.c (go_output_var): Don't output the variable if there is
27146 already a type with the same name.
27148 2011-01-11 Ian Lance Taylor <iant@google.com>
27150 * godump.c (go_format_type): Don't generate float80.
27152 2011-01-11 Richard Henderson <rth@redhat.com>
27154 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27155 declaration. Rewrite for both speed and size.
27156 (mn10300_address_cost_1): Remove.
27157 (mn10300_register_move_cost): New.
27158 (mn10300_memory_move_cost): New.
27159 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
27160 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
27161 extensions, shifts, BSWAP, CLZ.
27162 (mn10300_wide_const_load_uses_clr): Remove.
27163 (TARGET_REGISTER_MOVE_COST): New.
27164 (TARGET_MEMORY_MOVE_COST): New.
27165 * config/mn10300/mn10300-protos.h: Update.
27166 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27168 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27169 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27170 * config/mn10300/mn10300-protos.h: Update.
27171 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27172 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27173 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27174 (*test_int_bitfield, *test_byte_bitfield): Remove.
27175 (*bit_test, *subreg_bit_test): Remove.
27176 * config/mn10300/predicates.md (const_8bit_operand): Remove.
27178 * config/mn10300/constraints.md ("c"): Rename from "A".
27179 ("A", "D"): New constraint letters.
27180 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27181 (fmssf4, fnmasf4, fnmssf4): Likewise.
27183 * config/mn10300/mn10300.md (isa): New attribute.
27184 (enabled): New attribute.
27186 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
27187 (abssf2, negsf2): Define only for hardware fp.
27188 (sqrtsf2): Reformat.
27189 (addsf3, subsf3, mulsf3): Merge expander and insn.
27191 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
27192 (DEBUGGER_AUTO_OFFSET): Remove.
27193 (DEBUGGER_ARG_OFFSET): Remove.
27195 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
27196 Emit register stores with the same offsets as the hardware.
27197 (mn10300_store_multiple_operation): Don't check that the register
27198 save offsets are monotonic.
27199 * config/mn10300/mn10300-protos.h: Update.
27201 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
27203 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
27204 in terms of the value on the stack, not the MDR register.
27206 2011-01-11 Jan Hubicka <jh@suse.cz>
27210 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
27211 (symbol_alias_set_destroy, symbol_alias_set_contains,
27212 propagate_aliases_backward): Declare.
27213 * lto-streamer-out.c (struct sets): New sturcture.
27214 (trivally_defined_alias): New function.
27215 (output_alias_pair_p): Rewrite.
27216 (output_unreferenced_globals): Fix output of alias pairs.
27217 (produce_symtab): Likewise.
27218 * ipa.c (function_and_variable_visibility): Set weak alias destination
27220 * varasm.c (symbol_alias_set_t): Remove.
27221 (symbol_alias_set_destroy): Export.
27222 (propagate_aliases_forward, propagate_aliases_backward): New functions
27224 (compute_visible_aliases): ... this one; remove.
27225 (trivially_visible_alias): New
27226 (trivially_defined_alias): New.
27227 (remove_unreachable_alias_pairs): Rewrite.
27228 (finish_aliases_1): Reorganize code checking if alias is defined.
27229 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
27232 2011-01-11 Richard Guenther <rguenther@suse.de>
27234 PR tree-optimization/46076
27235 * tree-ssa.c (useless_type_conversion_p): Conversions from
27236 unprototyped to empty argument list function types are useless.
27238 2011-01-11 Richard Guenther <rguenther@suse.de>
27240 PR middle-end/45235
27241 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
27242 volatile MEMs as MEM_READONLY_P.
27244 2011-01-11 Richard Guenther <rguenther@suse.de>
27246 PR tree-optimization/47239
27247 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
27249 2011-01-11 Jeff Law <law@redhat.com>
27251 PR tree-optimization/47086
27252 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
27253 IVs from statements that might throw.
27255 2011-01-10 Jan Hubicka <jh@suse.cz>
27258 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
27260 2011-01-10 Jan Hubicka <jh@suse.cz>
27263 * profile.c (read_profile_edge_counts): Ignore profile inconistency
27264 when correcting profile.
27266 2011-01-10 Jan Hubicka <jh@suse.cz>
27269 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
27270 DECL_FINI_PRIORITY.
27271 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
27272 Restore DECL_FINI_PRIORITY.
27274 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27276 * doc/gimple.texi: Fix quoting of multi-word return values in
27277 @deftypefn statements. Ensure presence of return value. Wrap
27278 overlong @deftypefn lines.
27279 (is_gimple_operand, is_gimple_min_invariant_address): Remove
27280 descriptions of removed functions.
27281 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
27282 of multi-word return value in @deftypefn statement.
27284 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27286 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
27287 (Conditional Expressions, Logical Operators)
27288 (Statement and operand traversals): Do not indent smallexample
27289 code. Fix duplicate function argument in example.
27291 2011-01-10 Jeff Law <law@redhat.com>
27293 PR tree-optimization/47141
27294 * ipa-split.c (split_function): Handle case where we are
27295 returning a value and the return block has a virtual operand phi.
27297 2011-01-10 Jan Hubicka <jh@suse.cz>
27299 PR tree-optimization/47234
27300 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
27301 (pass_feedback_split_functions): Declare.
27302 * passes.c (init_optimization_passes): Add ipa-split as subpass of
27304 * ipa-split.c (gate_split_functions): Update comments; disable
27305 split-functions for profile_arc_flag and branch_probabilities.
27306 (gate_feedback_split_functions): New function.
27307 (execute_feedback_split_functions): New function.
27308 (pass_feedback_split_functions): New global var.
27310 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
27313 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
27314 calling gimple_call_set_cannot_inline.
27316 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
27318 * config/darwin-sections.def: Remove unused section.
27320 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
27323 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
27325 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
27328 * c-parser.c (c_parser_declaration_or_fndef): Improved
27331 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
27333 * config/i386/winnt.c (i386_pe_start_function): Make sure
27334 to switch back to function's section.
27336 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
27340 * plugin.c: Move include of dlfcn.h from here...
27341 * system.h: ... to here.
27343 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27345 * doc/cpp.texi (C++ Named Operators): Fix markup for header
27347 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
27348 two extra empty pages in PDF output.
27350 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
27353 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
27354 for error recovery purposes behave as if it was not specified so
27355 that the default type is usd.
27357 2011-01-07 Jan Hubicka <jh@suse.cz>
27359 PR tree-optmization/46469
27360 * ipa.c (function_and_variable_visibility): Clear needed flags on
27361 nodes with external decls; handle weakrefs merging correctly.
27363 2011-01-07 Joseph Myers <joseph@codesourcery.com>
27365 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
27368 2011-01-07 Jan Hubicka <jh@suse.cz>
27370 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
27371 and no longer claim that gold is required for linker plugin.
27372 * configure: Regenerate.
27373 * gcc.c (PLUGIN_COND): New macro.
27374 (LINK_COMMAND_SPEC): Use it.
27375 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
27376 * config.in (HAVE_LTO_PLUGIN): New.
27377 * configure.ac (--with-lto-plugin): New parameter; autodetect
27380 2011-01-07 Jan Hubicka <jh@suse.cz>
27382 PR tree-optimization/46367
27383 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
27384 when we can update original.
27385 (cgraph_mark_inline_edge): Sanity check.
27386 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
27388 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27390 * config/spu/spu.h (ASM_COMMENT_START): Define.
27392 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
27395 * gcc.c (%>S): New.
27396 (SWITCH_KEEP_FOR_GCC): Likewise.
27397 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27398 (do_spec_1): Handle "%>".
27400 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27402 2011-01-07 Jakub Jelinek <jakub@redhat.com>
27405 * config/i386/i386.c (ix86_delegitimize_address): If
27406 simplify_gen_subreg fails, return orig_x.
27409 * value-prof.c (gimple_stringop_fixed_value): Handle
27410 lhs of the call properly.
27412 2011-01-07 Jan Hubicka <jh@suse.cz>
27415 * lto-opt.c (lto_reissue_options): Set flag_shlib.
27417 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
27419 * target.def (function_switched_text_sections): New hook.
27420 * doc/tm.texi: Regenerated.
27421 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27422 * final.c (default_function_switched_text_sections): New.
27423 (final_scan_insn): Call function_switched_text_sections when a
27424 mid-function section change occurs.
27425 * output.h (default_function_switched_text_sections): Declare.
27426 * config/darwin-protos.h (darwin_function_switched_text_sections):
27428 * config/darwin.c (darwin_function_switched_text_sections): New.
27429 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27431 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
27433 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
27434 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
27435 the secondary code fragment when outputting for DWARF == 2.
27437 2011-01-07 Anatoly Sokolov <aesok@post.ru>
27439 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27440 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27442 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27443 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27445 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
27448 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27449 when it is not empty.
27451 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
27454 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27455 (case ${target}): Add btver1.
27456 * config/i386/driver-i386.c (host_detect_local_cpu): Let
27457 -march=native recognize btver1 processors.
27458 * config/i386/i386-c.c (ix86_target_macros_internal): Add
27459 btver1 def_and_undef
27460 * config/i386/i386.c (struct processor_costs btver1_cost): New
27462 (m_BTVER1): New definition.
27463 (m_AMD_MULTIPLE): Includes m_BTVER1.
27464 (initial_ix86_tune_features): Add btver1 tune.
27465 (processor_target_table): Add btver1 entry.
27466 (static const char *const cpu_names): Add btver1 entry.
27467 (software_prefetching_beneficial_p): Add btver1.
27468 (ix86_option_override_internal): Add btver1 instruction sets.
27469 (ix86_issue_rate): Add btver1.
27470 (ix86_adjust_cost): Add btver1.
27471 * config/i386/i386.h (TARGET_BTVER1): New definition.
27472 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27473 (enum processor_type): Add PROCESSOR_BTVER1.
27474 * config/i386/i386.md (define_attr "cpu"): Add btver1.
27476 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27479 * config/i386/i386.c (legitimize_tls_address)
27480 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27481 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27482 (tls_initial_exec_64_sun): New pattern.
27484 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
27486 * doc/invoke.texi (Overall Options): Improve wording and markup
27487 of the description of -wrapper.
27489 2011-01-06 Joseph Myers <joseph@codesourcery.com>
27491 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27492 rdynamic, threads): New Driver options.
27494 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27497 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27498 if coming from .tdata.
27499 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27501 2011-01-06 Jan Hubicka <jh@suse.cz>
27504 * collect2.c (main): Do not enable LTOmode when plugin is active.
27506 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27509 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27510 --version output if supported.
27511 * configure: Regenerate.
27513 2011-01-06 Joseph Myers <joseph@codesourcery.com>
27515 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27518 2011-01-06 Jakub Jelinek <jakub@redhat.com>
27521 * c-convert.c (convert): When converting a complex expression
27522 other than COMPLEX_EXPR to a different complex type, ensure
27523 c_save_expr is called instead of save_expr, unless in_late_binary_op.
27524 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27525 when converting COMPLEX_TYPE.
27527 2011-01-06 Ira Rosen <irar@il.ibm.com>
27529 PR tree-optimization/47139
27530 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27531 only the last reduction value is used outside the loop. Update
27534 2011-01-05 Joseph Myers <joseph@codesourcery.com>
27536 * config/rtems.opt: New.
27537 * config.gcc (*-*-rtems*): Use rtems.opt.
27539 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
27541 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27542 processors do not support 3DNow instructions.
27544 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27546 * config/spu/spu.c (spu_option_override): Set parameter
27547 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27549 2011-01-05 Jan Hubicka <jh@suse.cz>
27551 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27552 at the command line.
27554 2011-01-05 Martin Jambor <mjambor@suse.cz>
27557 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27558 deltas on streamed outgoing edges.
27559 (output_node_opt_summary): Output info for outgoing edges only when
27560 the node is in new parameter set.
27561 (output_cgraph_opt_summary): New parameter set, passed to the two
27562 aforementioned functions. Update its forward declaration and its
27565 2011-01-05 Tom Tromey <tromey@redhat.com>
27567 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27568 operator to c_finish_omp_atomic.
27569 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27570 (build_unary_op): Update.
27571 (build_modify_expr): Update.
27572 (build_asm_expr): Update.
27574 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27576 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27577 newly inserted insns.
27578 (pad_bb): Likewise.
27579 (spu_emit_branch_hint): Likewise.
27580 (insert_hbrp_for_ilb_runout): Likewise.
27581 (spu_machine_dependent_reorg): Call df_finish_pass after
27582 schedule_insns returns.
27584 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27586 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27588 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
27590 PR tree-optimization/47005
27591 * tree-sra.c (struct access): Add 'non_addressable' bit.
27592 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27593 (decide_one_param_reduction): Return 0 if the parameter is passed by
27594 reference and one of the accesses in the group is non_addressable.
27596 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
27598 PR tree-optimization/47056
27599 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27600 (mark_load): Likewise. Handle FUNCTION_DECL specially.
27601 (mark_store): Likewise. Pass STMT to ipa_record_reference.
27603 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
27605 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27606 initializer. Skip view conversions from aggregate types.
27608 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
27611 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27613 2011-01-04 Philipp Thomas <pth@suse.de>
27615 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27618 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27620 * function.c (thread_prologue_and_epilogue_insns): Do not crash
27621 on empty epilogue sequences.
27623 2011-01-04 Joseph Myers <joseph@codesourcery.com>
27625 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27626 non-static): New Driver options.
27628 2011-01-04 Jie Zhang <jie@codesourcery.com>
27631 * gcc.c (default_compilers[]): Set combinable field to 0
27632 for all assembly languages.
27634 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
27636 * config/mips/loongson3a.md: New file.
27637 * config/mips/mips.md: Include loongson3a.md.
27638 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27641 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
27643 PR middle-end/47017
27644 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27645 instead of convert_memory_address_addr_space on the base expression.
27647 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27649 * config/spu/spu.c (spu_option_override): Update error text
27650 for bad -march= / -mtune= values.
27652 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27654 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27655 if branch-hint optimization will be performed.
27657 2011-01-03 Jakub Jelinek <jakub@redhat.com>
27659 PR tree-optimization/47148
27660 * ipa-split.c (split_function): Convert arguments to
27661 DECL_ARG_TYPE if possible.
27663 PR tree-optimization/47155
27664 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27665 when computing uns.
27667 PR rtl-optimization/47157
27668 * combine.c (try_combine): If undobuf.other_insn becomes
27669 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27670 and set *new_direct_jump_p too.
27672 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
27674 PR tree-optimization/47021
27675 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27677 2011-01-03 Jakub Jelinek <jakub@redhat.com>
27679 * gcc.c (process_command): Update copyright notice dates.
27680 * gcov.c (print_version): Likewise.
27681 * gcov-dump.c (print_version): Likewise.
27682 * mips-tfile.c (main): Likewise.
27683 * mips-tdump.c (main): Likewise.
27685 2011-01-03 Martin Jambor <mjambor@suse.cz>
27687 PR tree-optimization/46801
27688 * tree-sra.c (type_internals_preclude_sra_p): Check whether
27689 aggregate fields start at byte boundary instead of the bit-field flag.
27691 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
27694 * gcc.c (main): Revert revision 168407.
27696 2011-01-03 Martin Jambor <mjambor@suse.cz>
27698 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27700 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27702 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27703 vector optab to expand vector/scalar shift, update gimple to vector.
27705 2011-01-03 Martin Jambor <mjambor@suse.cz>
27707 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27710 2011-01-03 Martin Jambor <mjambor@suse.cz>
27712 PR tree-optimization/46984
27713 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27715 (cgraph_create_indirect_edge): Fixed line length.
27716 (cgraph_indirect_call_info): Declare.
27717 (cgraph_make_edge_direct) Update declaration.
27718 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27719 (cgraph_create_indirect_edge): Use it.
27720 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
27722 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27723 the new thunk_delta representation.
27724 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27726 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27727 (ipa_read_indirect_edge_info): Likewise.
27728 * lto-cgraph.c (output_edge_opt_summary): New function.
27729 (output_node_opt_summary): Call it on all outgoing edges.
27730 (input_edge_opt_summary): New function.
27731 (input_node_opt_summary): Call it on all outgoing edges.
27733 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
27736 * gcc.c (main): Don't check have_o when settting combine_inputs.
27738 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
27740 * regrename.c: Add general comment describing the pass.
27741 (struct du_head): Remove 'length' field.
27742 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27743 (regrename_optimize): Do not sort chains. Rework comments, add others.
27744 Force renaming to the preferred class (if any) in the first pass and do
27745 not consider registers that belong to it in the second pass.
27746 (create_new_chain): Do not set 'length' field.
27747 (scan_rtx_reg): Likewise.
27749 2011-01-02 Jakub Jelinek <jakub@redhat.com>
27751 PR tree-optimization/47140
27752 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27753 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27754 to bit_value_binop.
27756 PR rtl-optimization/47028
27757 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27758 parm_birth_insn instead of at the beginning of first bb.
27760 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
27762 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27763 Remove the word "see" before "@pxref".
27764 * doc/rtl.texi: Remove the word "see" before "@pxref".
27766 2011-01-01 Jan Hubicka <jh@suse.cz>
27768 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27771 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
27774 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27777 Copyright (C) 2011 Free Software Foundation, Inc.
27779 Copying and distribution of this file, with or without modification,
27780 are permitted in any medium without royalty provided the copyright
27781 notice and this notice are preserved.