1 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5 (build_and_insert_call): Likewise.
6 (build_and_insert_ref): New.
7 (gimple_expand_builtin_pow): Minor cleanup.
8 (gimple_expand_builtin_cabs): New.
9 (execute_cse_sincos): Add case for BUILT_IN_CABS.
11 2011-06-10 Jan Hubicka <jh@suse.cz>
13 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
15 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
16 (ipcp_propagate_stage): Skip aliases when propagating.
17 (ipcp_need_redirect_p): Skip aliases.
18 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
19 collect_callers_of_node.
20 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
22 (ipa_compute_jump_functions): Look through aliases.
24 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
28 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
30 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
32 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
34 2011-06-10 Jan Hubicka <jh@suse.cz>
36 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
37 Update call of gimple_get_virt_method_for_binfo.
38 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
39 refuse_thunks parameter.
40 (gimple_fold_call): Update.
41 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
43 2011-06-10 Jan Hubicka <jh@suse.cz>
45 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
46 (not_all_callers_have_enough_arguments_p): ... this one; turn into
47 worker for cgraph_for_node_and_aliases.
48 (convert_callers_for_node): Break out from ...
49 (convert_callers): ... here.
50 (modify_function): Use collect_callers_of_node.
51 (ipa_early_sra): Use cgraph_for_node_and_aliases.
53 2011-06-10 Richard Guenther <rguenther@suse.de>
55 PR tree-optimization/49361
56 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
57 when not already in gimple form.
59 2011-06-10 Richard Guenther <rguenther@suse.de>
62 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
63 FOR_EACH_PHI_OR_STMT_USE.
65 2011-06-10 Jan Hubicka <jh@suse.cz>
67 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
68 (clone_inlined_nodes): ... here.
69 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
70 to real destination prior inlining.
71 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
72 can_early_inline_edge_p, want_early_inline_function_p,
73 want_early_inline_function_p, want_inline_small_function_p,
74 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
75 edge_badness, update_all_callee_keys, lookup_recursive_calls,
76 add_new_edges_to_heap, inline_small_functions, flatten_function,
77 inline_always_inline_functions, early_inline_small_functions): Use
78 cgraph_function_or_thunk_node.
79 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
80 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
81 (do_estimate_edge_growth_1): Break out from ...
82 (do_estimate_growth) ... here; walk aliases.
83 (inline_generate_summary): Skip aliases.
85 2011-06-10 Richard Guenther <rguenther@suse.de>
87 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
88 Scan stmts forward when combining, visit inserted stmts when
91 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
93 * tree.h (error_operand_p): Add.
94 * dbxout.c (dbxout_type_fields): Use the latter.
95 * c-decl.c (add_stmt): Likewise.
96 * gimplify.c (omp_add_variable, omp_notice_variable,
97 gimplify_scan_omp_clauses): Likewise.
99 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
101 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
102 when a value is actually passed in regs.
104 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
105 Laurent Rougé <laurent.rouge@menta.fr>
107 * doc/invoke.texi (SPARC options): Add -mflat.
108 * config/sparc/sparc.opt: Likewise.
109 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
110 (sparc_flat_expand_prologue): Declare.
111 (sparc_flat_expand_epilogue): Likewise.
112 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
113 (CPP_ENDIAN_SPEC): Replace with...
114 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
115 (CPP_SPEC): Adjust to above change.
116 (EXTRA_SPECS): Likewise.
117 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
118 (INCOMING_REGNO): Likewise.
119 (OUTGOING_REGNO): Likewise.
120 (LOCAL_REGNO): Likewise.
121 (SETUP_FRAME_ADDRESSES): Likewise.
122 (FIXED_REGISTERS): Set 0 for %fp.
123 (CALL_USED_REGISTERS): Likewise.
124 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
125 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
126 (RETURN_ADDR_REGNUM): Define.
127 (RETURN_ADDR_RTX): Use it.
128 (INCOMING_RETURN_ADDR_REGNUM): Define.
129 (INCOMING_RETURN_ADDR_RTX): Use it.
130 (DWARF_FRAME_RETURN_COLUMN): Likewise.
131 (EH_RETURN_REGNUM): Define.
132 (EH_RETURN_STACKADJ_RTX): Use it.
133 (EH_RETURN_HANDLER_RTX): Delete.
134 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
135 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
137 (struct machine_function): Add frame_size, apparent_frame_size,
138 frame_base_reg, frame_base_offset, n_global_fp_regs and
139 save_local_in_regs_p fields.
140 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
141 sparc_frame_base_offset, sparc_n_global_fp_regs,
142 sparc_save_local_in_regs_p): New macros.
143 (sparc_option_override): Error out if -fcall-saved-REG is specified
145 (eligible_for_restore_insn): Fix formatting.
146 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
147 (eligible_for_sibcall_delay): Likewise.
148 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
149 (sparc_legitimate_address_p): Adjust to above change.
150 (save_global_or_fp_reg_p): New predicate.
151 (return_addr_reg_needed_p): Likewise.
152 (save_local_or_in_reg_p): Likewise.
153 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
154 (SORR_SAVE, SORR_RESTORE): Delete.
155 (sorr_pred_t): New typedef.
156 (sorr_act_t): New enum.
157 (save_or_restore_regs): Rename to...
158 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
159 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
160 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
161 mechanism. Add CFI information for double-word saves in 32-bit mode.
162 (emit_adjust_base_to_offset): New function extracted from...
163 (emit_save_or_restore_regs): ...this. Rename the rest to...
164 (emit_save_or_restore_regs_global_fp_regs): ...this.
165 (emit_save_or_restore_regs_local_in_regs): New function.
166 (gen_create_flat_frame_[123]): New functions.
167 (sparc_expand_prologue): Use SIZE local variable. Adjust.
168 (sparc_flat_expand_prologue): New function.
169 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
170 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
171 (sparc_flat_expand_epilogue): New function.
172 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
173 (output_return): Likewise.
174 (output_sibcall): Likewise.
175 (sparc_output_mi_thunk): Likewise.
176 (sparc_frame_pointer_required): Likewise.
177 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
178 function optimization.
179 * config/sparc/sparc.md (flat): New attribute.
180 (prologue): Add TARGET_FLAT handling.
181 (save_register_window): Disable if TARGET_FLAT.
182 (create_flat_frame_[123]): New patterns.
183 (epilogue): Add TARGET_FLAT handling.
184 (sibcall_epilogue): Likewise.
185 (eh_return): New expander.
186 (eh_return_internal): New insn and splitter.
187 (return_internal): Add TARGET_FLAT handling.
188 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
189 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
190 (nonlocal_goto): Add TARGET_FLAT handling.
191 * config/sparc/t-elf: Add -mflat multilib.
192 * config/sparc/t-leon: Likewise.
194 2011-06-10 Jan Hubicka <jh@suse.cz>
196 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
197 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
198 (self_recursive_p): Use cgraph_function_node.
199 (propagate_pure_const): Likewise.
200 (propagate_nothrow): Likewise.
201 * ipa-reference.c (ipa_reference_get_not_read_global): Use
202 cgraph_function_node.
203 (propagate_bits): Likewise.
204 (propagate): Likewise.
206 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
207 Richard Earnshaw <rearnsha@arm.com>
209 * config/arm/arm.c (const_ok_for_op): Check to see
211 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
212 (*thumb2_movdi_vfp): Delete.
213 (*arm_movdi_vfp_cortexa8): Delete.
214 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
215 (*movdi_vfp_cortexa8): Likewise.
217 2011-06-10 Richard Guenther <rguenther@suse.de>
219 * stor-layout.c (initialize_sizetypes): Give names to all
222 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
224 PR tree-optimization/49318
225 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
226 irrelevant pattern statements.
228 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
230 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
233 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
236 2011-06-09 Jan Hubicka <jh@suse.cz>
238 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
239 do not recompute reachable flag.
240 (cgraph_finalize_function, cgraph_analyze_functions): Set
241 redefined_extern_inline here.
243 2011-06-09 Jan Hubicka <jh@suse.cz>
245 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
246 (cgraph_only_called_directly_p): ... this one; bring offline.
247 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
248 varpool_used_from_object_file_p): Drop names from the declaratoin.
249 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
250 collect_callers_of_node): New.
251 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
252 (cgraph_edge_recursive_p): Use cgraph_function_node.
253 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
254 (cgraph_node_cannot_be_local_p_1): Break out from ...
255 (cgraph_node_can_be_local_p): ... here; walk aliases.
256 (cgraph_for_node_thunks_and_aliases): New function.
257 (cgraph_for_node_and_aliases): New function.
258 (cgraph_make_node_local_1): Break out from ...
259 (cgraph_make_node_local) ... here; use cgraph_for_node_thunks_and_aliases.
260 (cgraph_set_nothrow_flag_1): Break out from ...
261 (cgraph_set_nothrow_flag) ... here; use cgraph_for_node_thunks_and_aliases.
262 (cgraph_set_const_flag_1): Break out from ...
263 (cgraph_set_const_flag) ... here; use cgraph_for_node_thunks_and_aliases.
264 (cgraph_set_pure_flag_1): Break out from ...
265 (cgraph_set_pure_flag) ... here; use cgraph_for_node_thunks_and_aliases.
266 (cgraph_propagate_frequency_1): Break out from ...
267 (cgraph_propagate_frequency) ... here; use cgraph_for_node_thunks_and_aliases.
268 (cgraph_used_from_object_file_p): Do not care about aliases.
269 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p): New functions.
270 (collect_callers_of_node_1, collect_callers_of_node): New functions.
272 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
274 PR rtl-optimization/49154
275 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
276 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
277 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
278 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
279 * config/cris/cris.h (cris_register_move_cost): Remove
280 !TARGET_V32 code. Tweak comments.
282 2011-06-09 Jan Hubicka <jh@suse.cz>
284 * cgraphbuild.c (record_eh_tables): Mark personality function as having
287 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
289 PR rtl-optimization/49154
290 * ira-costs.c (setup_regno_cost_classes_by_mode): If there
291 already is a matching slot in the hashtable, assign it to
294 PR rtl-optimization/49154
295 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
297 * doc/tm.texi: Regenerate.
299 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
302 * config/sh/sh.md (UNSPEC_CHKADD): New.
303 (chk_guard_add): New define_insn_and_split.
304 (symGOT_load): Use chk_guard_add instead of blockage.
306 2011-06-09 Kai Tietz <ktietz@redhat.com>
308 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
310 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
312 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
314 2011-06-09 Wei Guozhi <carrot@google.com>
317 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
318 (peephole2 for conditional move): Generate 16 bit instructions.
320 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
322 * config/i386/i386.md (*movdi_internal_rex64): Merge
323 alternatives 6 and 8.
325 2011-06-09 David Li <davidxl@google.com>
327 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
328 * passes.c (passr_eq): New function.
329 (create_pass_tab): New function.
330 (pass_traverse): New function.
331 (dump_one_pass): New function.
332 (dump_pass_list): New function.
333 (dump_passes): New function.
335 2011-06-09 David Li <davidxl@google.com>
337 * tree-complex.c (tree_lower_complex): Gate cleanup.
338 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
339 (execute_optimize_stdarg): Ditto.
340 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
341 (execute_cleanup_eh_1): Ditto.
342 (execute_cleanup_eh): Ditto.
343 * gcse.c (gate_rtl_pre): Ditto.
344 (execute_rtl_pre): Ditto.
345 * except.c (finish_eh_generation): Ditto.
346 (convert_to_eh_region_ranges): Ditto.
347 * cprop.c (one_cprop_pass): Ditto.
349 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
352 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
355 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
357 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
358 (HAVE_ENABLE_EXECUTE_STACK): Define.
359 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
360 (HAVE_ENABLE_EXECUTE_STACK): Define.
361 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
362 (HAVE_ENABLE_EXECUTE_STACK): Define.
363 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
364 (ENABLE_EXECUTE_STACK): Remove.
365 (HAVE_ENABLE_EXECUTE_STACK): Define.
366 [IN_LIBGCC2]: Don't include <windows.h>.
367 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
368 (HAVE_ENABLE_EXECUTE_STACK): Define.
369 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
370 (HAVE_ENABLE_EXECUTE_STACK): Define.
371 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
372 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
373 (HAVE_ENABLE_EXECUTE_STACK): Define.
374 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
375 (HAVE_ENABLE_EXECUTE_STACK): Define.
376 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
377 (HAVE_ENABLE_EXECUTE_STACK): Define.
378 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
379 (HAVE_ENABLE_EXECUTE_STACK): Define.
380 * config/alpha/alpha.c (alpha_trampoline_init): Test
381 HAVE_ENABLE_EXECUTE_STACK.
382 * config/i386/i386.c (ix86_trampoline_init): Likewise.
383 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
384 (sparc64_initialize_trampoline): Likewise.
385 * libgcc2.c [L_enable_execute_stack]: Remove.
386 * system.h (ENABLE_EXECUTE_STACK): Poison.
387 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
388 * doc/tm.texi: Regenerate.
389 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
391 2011-06-09 Jakub Jelinek <jakub@redhat.com>
394 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
395 variable. After resetting and rescanning insn continue with previous
398 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
400 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
401 (gcc_cv_ld_hidden): Likewise.
402 * configure: Regenerate.
403 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
404 (ix86_stack_protect_fail): Mark unused.
405 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
406 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
407 [TARGET_MACHO]: Don't define.
408 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
409 (TARGET_STACK_PROTECT_FAIL): Likewise.
410 (rs6000_stack_protect_fail): Mark unused.
411 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
412 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
414 2011-06-08 Andi Kleen <ak@linux.intel.com>
416 * varasm.c (get_section): Print location of other conflict
417 for section conflicts.
419 2011-06-08 Andi Kleen <ak@linux.intel.com>
421 * config/i386/driver-i386.c (host_detect_local_cpu):
422 Add model 0x2d Intel CPU.
424 2011-06-08 Andi Kleen <ak@linux.intel.com>
426 * reginfo.c (global_regs_decl): Add.
427 (globalize_reg): Add decl parameter. Compute location. Pass location
428 to warnings and add inform. Store decl in global_regs_decl.
429 * rtl.h (globalize_reg): Update prototype.
430 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
432 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
434 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
436 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
439 * config/sh/predicates.md (general_movsrc_operand): Check
440 mode for memory with indexed address for QI and HImode.
441 (general_movdst_operand): Likewise.
443 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
445 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
447 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
449 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
450 (num_ssa_operands): Likewise.
451 (op_iter_init_phiuse): Forward-declare.
452 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
454 2011-06-08 Nick Clifton <nickc@redhat.com>
456 * doc/invoke.texi (ARM Options): Update description of
459 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
461 * config/i386/driver-i386.c (host_detect_local_cpu): Support
462 unknown Intel family 0x6 CPUs.
464 2011-06-08 Martin Jambor <mjambor@suse.cz>
466 * tree-sra.c (mark_rw_status): Removed.
467 (analyze_access_subtree): New parameter parent instead of
468 mark_read and mark_write, propagate from that.
470 2011-06-08 Julian Brown <julian@codesourcery.com>
472 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
473 for double-precision helper functions in hard-float mode if only
474 single-precision arithmetic is supported in hardware.
476 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
478 PR rtl-optimization/49303
479 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
480 code_motion_path_driver returned 0 or 1.
481 (sel_region_finish): Clear h_d_i_d.
483 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
485 * config/sh/sh.c (prepare_move_operands): Set pic register
486 appropriately for global and local dynamic tls models even
487 if flag_pic is unset.
489 2011-06-07 Jason Merrill <jason@redhat.com>
491 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
493 2011-06-07 Xinliang David Li <davidxl@google.com>
494 * passes.c (enable_disable_pass): Handle assembler name.
495 (is_pass_explicitly_enabled_or_disabled): Ditto.
497 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
499 PR tree-optimization/48497
500 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
502 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
504 PR tree-optimization/46728
505 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
506 to use gimple_val_nonnegative_real_p.
507 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
508 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
510 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
512 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
514 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
516 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
519 2011-06-07 Richard Guenther <rguenther@suse.de>
521 * stor-layout.c (initialize_sizetypes): Initialize all
522 sizetypes based on target definitions.
523 (set_sizetype): Remove.
524 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
525 * tree.h (set_sizetype): Remove.
527 2011-06-07 Nick Clifton <nickc@redhat.com>
529 * config.gcc: Unify V850 architecture options and add support for
530 newer V850 architectures.
531 * config/v850/t-v850e: Delete.
533 2011-06-07 Richard Guenther <rguenther@suse.de>
535 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
536 Call set_sizetype from here.
538 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
540 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
541 (*maddhisi4tb, *maddhisi4tt): New define_insns.
543 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
544 Andrew Stubbs <ams@codesourcery.com>
546 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
548 * doc/md.texi (Canonicalization of Instructions): Document widening
549 multiply canonicalization.
551 2011-06-07 Jakub Jelinek <jakub@redhat.com>
553 PR gcov-profile/49299
554 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
556 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
558 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
560 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
561 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
562 vect_recog_pow_pattern): Likewise.
563 (vect_pattern_recog_1): Remove declaration.
564 (widened_name_p): Remove declaration. Add new argument to specify
565 whether to check that both types are either signed or unsigned.
566 (vect_recog_widen_mult_pattern): Update documentation. Handle
567 unsigned patterns and multiplication by constants.
568 (vect_pattern_recog_1): Update vect_recog_func references. Use
569 statement information from the statement returned from pattern
571 (vect_pattern_recog): Update vect_recog_func reference.
572 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
573 multiplication by a constant use the type of the other operand.
575 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
577 PR rtl-optimization/49145
578 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
580 2011-06-06 Jakub Jelinek <jakub@redhat.com>
583 * dwarf2out.c (native_encode_initializer): Decrement count in each
587 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
591 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
592 if stmt folded into nothing.
593 * tree-inline.c (fold_marked_statements): If a builtin at the end of
594 a bb folded into nothing, just update cgraph edges and move to next bb.
595 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
596 to be NULL. Don't compute count and frequency if new_call is NULL.
598 2011-06-04 Diego Novillo <dnovillo@google.com>
600 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
601 (cgraph.o): Likewise.
602 (cgraphunit.o): Likewise.
603 * cgraphunit.c: Include lto-streamer.h
604 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
606 * lto-streamer-in.c (unpack_value_fields): Call
607 streamer_hooks.unpack_value_fields if set.
608 (lto_materialize_tree): For unhandled nodes, first try to
609 call lto_streamer_hooks.alloc_tree, if it exists.
610 (lto_input_ts_decl_common_tree_pointers): Move reading of
611 DECL_INITIAL to lto_streamer_read_tree.
612 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
613 (lto_streamer_read_tree): New.
614 (lto_reader_init): Rename from lto_init_reader.
615 Move initialization code to lto/lto.c.
616 * lto-streamer-out.c (pack_value_fields): Call
617 streamer_hooks.pack_value_fields if set.
618 (lto_output_tree_ref): For tree nodes that are not normally indexable,
619 call streamer_hooks.indexable_with_decls_p before giving up.
620 (lto_output_ts_decl_common_tree_pointers): Move handling
621 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
622 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
623 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
624 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
625 (lto_streamer_write_tree): New.
626 (lto_output): Call lto_streamer_init directly.
627 (lto_writer_init): Remove.
628 * lto-streamer.c (streamer_hooks): New.
629 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
630 instead of lto_preload_common_nodes.
631 (lto_is_streamable): Move from lto-streamer.h
632 (lto_streamer_hooks_init): New.
633 (streamer_hooks): New.
634 (streamer_hooks_init): New.
635 * lto-streamer.h (struct output_block): Forward declare.
636 (struct lto_input_block): Likewise.
637 (struct data_in): Likewise.
638 (struct bitpack_d): Likewise.
639 (struct streamer_hooks): Declare.
640 (streamer_hooks): Declare.
641 (lto_streamer_hooks_init): Declare.
642 (lto_streamer_write_tree): Declare.
643 (lto_streamer_read_tree): Declare.
644 (streamer_hooks_init): Declare.
645 (lto_is_streamable): Move to lto-streamer.c
647 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
649 * longlong.h (smul_ppmm): The resulting register pair contains the
650 higher order word first.
652 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
654 PR tree-optimization/46728
655 * builtins.c (powi_table): Remove.
656 (powi_lookup_cost): Remove.
658 (expand_powi_1): Remove.
659 (expand_powi): Remove.
660 (expand_builtin_pow_root): Remove.
661 (expand_builtin_pow): Remove.
662 (expand_builtin_powi): Eliminate handling of constant exponent.
663 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
665 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
667 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
669 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
671 * dce.c (reset_unmarked_insns_debug_uses): New.
672 (delete_unmarked_insns): Skip debug insns.
673 (prescan_insns_for_dce): Likewise.
674 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
675 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
676 active reg can be found.
677 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
678 (convert_regs_1): Use it.
680 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
682 * tree-pretty-print.c (dump_function_header): Add flags.
683 Don't dump decl_uid with nouid.
684 * tree-pretty-print.h (dump_function_header): Adjust.
685 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
686 * passes.c (pass_init_dump_file): Pass dump_flags on.
687 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
689 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
692 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
694 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
696 PR tree-optimization/49243
697 * calls.c (setjmp_call_p): Also check if fndecl has the
698 returns_twice attribute.
700 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
702 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
705 2011-06-06 Richard Henderson <rth@redhat.com>
706 Georg-Johann Lay <avr@gjlay.de>
709 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
711 * config/avr/avr.md ("insv"): New insn expander.
712 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
713 "*insv.not.io", "*insv.reg"): New insns.
715 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
718 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
719 to nonimmediate_operand from memory_operand for the operand that is to
720 be forced to memory by the expander. Lose the constraints.
722 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
724 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
725 EH return when delayed branches are disabled.
727 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
729 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
730 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
732 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
733 Simplify MODE_V1DF and MODE_V2SF handling.
734 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
735 Simplify MODE_SF handling.
737 2011-06-04 Jan Hubicka <jh@suse.cz>
739 PR tree-optimization/48893
740 PR tree-optimization/49091
741 PR tree-optimization/49179
742 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
745 2011-06-04 Jan Hubicka <jh@suse.cz>
748 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
751 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
753 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
755 2011-06-04 Jakub Jelinek <jakub@redhat.com>
758 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
759 to be strictly smaller than 1 << shiftcount.
761 2011-06-04 Jan Hubicka <jh@suse.cz>
763 PR tree-optimize/48929
764 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
767 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
770 * calls.c (emit_call_1): Prefer the __builtin declaration of
773 2011-06-03 Diego Novillo <dnovillo@google.com>
775 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
776 (lto_input_tree_pointers): Likewise.
777 * lto-streamer-out.c (pack_value_fields): Likewise.
778 (lto_output_tree_pointers): Likewise.
779 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
780 and OPTIMIZATION_NODE.
782 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
785 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
786 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
787 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
788 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
789 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
790 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
791 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
792 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
793 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
794 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
795 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
796 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
797 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
798 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
799 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
800 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
801 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
802 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
803 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
804 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
805 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
806 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
807 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
808 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
809 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
810 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
811 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
812 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
813 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
814 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
815 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
816 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
817 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
818 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
819 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
820 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
821 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
822 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
823 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
824 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
825 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
826 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
827 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
828 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
829 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
830 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
831 * system.h (MD_UNWIND_SUPPORT): Poison.
832 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
833 * doc/tm.texi: Regenerate.
834 * unwind-dw2.c: Include md-unwind-support.h instead of
836 * config/ia64/unwind-ia64.c: Likewise.
837 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
839 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
841 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
843 2011-06-03 Richard Henderson <rth@redhat.com>
844 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
846 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
847 (sigill_hdlr): Correct insn, insn size.
848 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
850 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
852 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
854 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
855 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
856 * config/mips/t-iris: Remove.
857 * config/mips/t-irix6: New file.
858 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
860 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
862 * Makefile.in (LIB2ADDEHDEP): Remove.
863 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
864 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
865 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
866 * config/t-darwin (LIB2ADDEHDEP): Remove.
867 * config/t-freebsd (LIB2ADDEHDEP): Remove.
868 * config/t-linux (LIB2ADDEHDEP): Remove.
870 2011-06-03 Diego Novillo <dnovillo@google.com>
872 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
873 (lto_register_var_decl_in_symtab): Likewise.
874 (lto_register_function_decl_in_symtab): Likewise.
875 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
876 logic to uniquify_nodes.
878 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
880 * config/alpha/t-osf5: Remove.
881 * config/alpha/t-osf-pthread: Remove.
882 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
883 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
885 2011-06-03 Julian Brown <julian@codesourcery.com>
887 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
888 (strongarm1110): Use strongarm tuning.
889 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
890 * config/arm/arm.c (arm_strongarm_tune): New.
891 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
892 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
893 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
894 setting, using previous defaults or 1 for Cortex-A5.
895 (arm_option_override): Set max_insns_skipped from current tuning.
897 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
899 * doc/install.texi (Options specification): Document --with-specs.
901 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
903 * config/arm/neon.md (orndi3_neon): Actually split it.
905 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
907 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
908 * var-tracking.c (reverse_op): Limite recurse depth to 5.
910 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
913 * target.def (delay_sched2, delay_vartrack): New.
914 * doc/tm.texi.in: Update.
915 * doc/tm.texi: Rebuild.
916 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
917 * var-tracking.c (gate_handle_var_tracking): Likewise.
918 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
919 (bfin_flag_var_tracking): Drop.
920 (output_file_start): Don't save and override flag_var_tracking.
921 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
922 (bfin_reorg): Test original variables.
923 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
924 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
925 (ia64_flag_var_tracking): Drop.
926 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
927 (ia64_file_start): Don't save and override flag_var_tracking.
928 (ia64_override_options_after_change): Ditto
929 flag_schedule_insns_after_reload.
930 (ia64_reorg): Test original variables.
931 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
932 (picochip_flag_var_tracking): Drop.
933 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
934 (picochip_option_override): Don't save and override
935 flag_schedule_insns_after_reload.
936 (picochip_asm_file_start): Ditto flag_var_tracking.
937 (picochip_reorg): Test original variables.
938 * config/spu/spu.c (spu_flag_var_tracking): Drop.
939 (TARGET_DELAY_VARTRACK): Define.
940 (spu_var_tracking): New.
941 (spu_machine_dependent_reorg): Call it.
942 (asm_file_start): Don't save and override flag_var_tracking.
944 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
947 * config/sh/predicates.md (general_movsrc_operand): Return 0
948 for memory and memory subreg of which address is an invalid
949 indexed address for QI and HImode.
950 (general_movdst_operand): Likewise.
952 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
954 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
955 edges only, when there is a non-local label in the function.
956 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
958 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
960 * config/i386/constraints.md (Y3): New register constraint.
961 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
962 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
963 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
964 *sse2_interleave_lowv2df.
966 2011-06-02 Julian Brown <julian@codesourcery.com>
968 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
969 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
970 (arm_cortex_a5_tune): New.
972 2011-06-02 Julian Brown <julian@codesourcery.com>
974 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
975 * config/arm/arm.c (arm_default_branch_cost): New.
976 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
977 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
978 (arm_fa726_tune): Set branch_cost field using
979 arm_default_branch_cost.
980 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
981 current_tune structure.
982 * dojump.c (tm_p.h): Include file.
984 2011-06-02 Julian Brown <julian@codesourcery.com>
986 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
988 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
989 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
990 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
992 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
993 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
994 (arm_fa726te_tune): Add prefer_constant_pool setting.
995 (arm_v6t2_tune, arm_cortex_tune): New.
996 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
997 prefer_constant_pool setting.
999 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1001 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1003 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1004 (*movdf_internal) <case 6,7,8>: Ditto.
1006 * config/i386/constraints.md (Y4): New register constraint.
1007 * config/i386/sse.md (vec_set<mode>_0): Merge with
1008 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1009 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1010 *vec_extractv2di_1_sse.
1011 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1012 and *vec_concatv2di_rex64_sse.
1014 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1017 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1018 of cgraph_local_info for null before attempting to use it.
1020 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1022 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1023 (current_function_dynamic_alloc_count): Delete.
1024 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1025 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1026 (expand_builtin_update_setjmp_buf): Remove dead code.
1027 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1028 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1030 * function.c (instantiate_virtual_regs): Likewise.
1031 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1032 for a block with a single abnormal incoming edge.
1033 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1034 (SETJMP_VIA_SAVE_AREA): Delete.
1035 * config/sparc/sparc-protos.h (load_got_register): Declare.
1036 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1037 (load_got_register): Make global.
1038 (sparc_frame_pointer_required): Add 'static'.
1039 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1040 (sparc_builtin_setjmp_frame_value): New function.
1041 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1042 (save_stack_nonlocal): New expander.
1043 (restore_stack_nonlocal): Likewise.
1044 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1045 (nonlocal_goto_internal): New insn.
1046 (goto_handler_and_restore): Delete.
1047 (builtin_setjmp_setup): Likewise.
1048 (do_builtin_setjmp_setup): Likewise.
1050 (builtin_setjmp_receiver): New expander.
1052 2011-06-01 David Li <davidxl@google.com>
1055 * tree-pretty-print.c (dump_function_header): Format cleanup.
1057 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1060 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1061 needed when original operands are used for msw_skip comparison.
1063 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1066 * var-tracking.c (add_uses, add_stores): Don't call
1067 cselib_subst_to_values on ENTRY_VALUE.
1069 2011-06-01 Diego Novillo <dnovillo@google.com>
1071 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1072 output_record_start with LTO_null instead of output_zero.
1073 (lto_output_ts_binfo_tree_pointers): Likewise.
1074 (lto_output_tree): Likewise.
1075 (output_eh_try_list): Likewise.
1076 (output_eh_region): Likewise.
1077 (output_eh_lp): Likewise.
1078 (output_eh_regions): Likewise.
1079 (output_bb): Likewise.
1080 (output_function): Likewise.
1081 (output_unreferenced_globals): Likewise.
1082 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1083 instead of NUM_TREE_CODES.
1084 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1085 (lto_output_int_in_range): Change << to >> when shifting VAL.
1087 2011-06-01 Diego Novillo <dnovillo@google.com>
1089 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1090 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1092 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1095 * optabs.h (valid_multiword_target_p): Declare.
1096 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1097 doing multi-word operations.
1098 * optabs.c (expand_binop): Likewise.
1099 (expand_doubleword_bswap): Likewise.
1100 (expand_absneg_bit): Likewise.
1101 (expand_unop): Likewise.
1102 (expand_copysign_bit): Likewise.
1103 (multiword_target_p): New function.
1105 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1107 PR rtl-optimization/48830
1108 PR rtl-optimization/48808
1109 PR rtl-optimization/48792
1110 * reload.c (push_reload): Check contains_reg_of_mode.
1111 * reload1.c (strip_paradoxical_subreg): New function.
1112 (gen_reload_chain_without_interm_reg_p): Use it to handle
1113 paradoxical subregs.
1114 (emit_output_reload_insns, gen_reload): Likewise.
1116 2011-06-01 David Li <davidxl@google.com>
1118 * predict.c : Change pass name
1121 * tree-profile.c: Ditto.
1124 2011-06-01 David Li <davidxl@google.com>
1126 * tree-pretty-print.c (dump_function_header): New function.
1127 * final.c (rest_of_clean_state): Use header dumper.
1128 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1129 * passes.c (pass_init_dump_file): Use header dumper.
1131 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1133 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1134 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1135 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1137 (mem_loc_descriptor): Use them.
1139 * var-tracking.c (create_entry_value): New function.
1140 (vt_add_function_parameter): Use it.
1142 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1144 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1145 Include <signal.h>, <ucontext.h>.
1146 (sigill_caught): Define.
1147 (sigill_hdlr): New function.
1148 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1149 insns can be executed.
1150 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1151 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1153 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1155 * config/t-slibgcc-darwin: Move to ...
1156 * config/t-slibgcc-dummy: ... this. Clarify comments.
1157 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1158 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1159 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1160 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1161 Remove i386/t-crtstuff from tmake_file.
1162 (i[34567]86-*-solaris2*): Remove t-svr4,
1163 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1165 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1166 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1167 sparc/t-crtfm from tmake_file.
1168 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1169 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1171 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1172 * config/i386/t-nwld (SHLIB_LINK): Remove.
1173 * config/i386/t-rtems-i386: Rename to ...
1174 * config/i386/t-rtems: ... this.
1175 ($(T)crti.o, $(T)crtn.o): Remove.
1176 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1177 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1178 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1179 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1180 EXTRA_MULTILIB_PARTS): Remove.
1181 * config/sparc/t-sol2-64: Likewise.
1182 * config/sparc/t-sol2: Remove.
1183 * config/sparc/t-crtin: Remove.
1184 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1185 * config/i386/gmon-sol2.c: Remove.
1186 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1187 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1188 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1189 * config/i386/sol2-gc1.asm: Remove.
1190 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1191 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1192 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1193 * config/t-slibgcc-sld: Remove.
1195 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1197 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1198 base_type_for_mode with op_mode instead of mode.
1200 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1202 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1204 * config/arm/arm-tune.md: Regenerate.
1205 * config/arm/arm-tables.opt: Regenerate.
1206 * config/arm/arm.c (FL_DIV): Rename...
1207 (FL_THUMB_DIV): ... to this.
1208 (FL_ARM_DIV): Define.
1209 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1210 (arm_arch_hwdiv): Remove.
1211 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1212 (arm_issue_rate): Add cortexr5.
1213 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1214 __ARM_ARCH_EXT_IDIV__.
1215 (TARGET_IDIV): Define.
1216 (arm_arch_hwdiv): Remove.
1217 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1218 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1219 (divsi3, udivsi3): New patterns.
1220 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1221 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1223 2011-06-01 Martin Jambor <mjambor@suse.cz>
1225 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1226 * ipa-utils.c (searchc): Set scc_no.
1228 2011-06-01 Martin Jambor <mjambor@suse.cz>
1230 * ipa-utils.c (searchc_env): New field allow_overwritable.
1231 (searchc): do not ignore edges to overwritable nodes if indicated
1232 by env->allow_overwritable.
1233 (ipa_reduced_postorder): Set env.allow_overwritable.
1235 2011-06-01 Richard Guenther <rguenther@suse.de>
1237 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1239 * lto-streamer.c (lto_record_common_node): Take node pointer,
1240 do not register types.
1241 (lto_preload_common_nodes): Explicitly skip preloading nodes
1242 that differ between frontends.
1244 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1246 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1249 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1251 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1252 parameter value for dump. Dump cost on outermost call only.
1253 (rs6000_memory_move_cost): Dump cost on outermost call only.
1255 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1257 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1258 DW_OP_GNU_convert ops.
1260 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1261 cselib_preserve_constants.
1262 (cselib_lookup_1): If cselib_preserve_constants,
1263 a new VALUE is being created for REG and there is a VALUE for the
1264 same register in wider mode, add another loc with lowpart SUBREG of
1266 (cselib_subst_to_values): Handle ENTRY_VALUE.
1267 * var-tracking.c (replace_expr_with_values): Return NULL for
1269 * dwarf2out.c (convert_descriptor_to_signed): New function.
1270 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1271 instead of two shifts.
1272 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1273 the right mode if needed.
1274 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1275 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1276 convert_descriptor_to_signed.
1277 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1278 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1281 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1283 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1285 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1286 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1287 (SWI248x): New mode iterator, rename from X87MODEI.
1288 (X87MODEI): Remove mode iterator.
1289 (X87MODEI12): Ditto.
1290 (SSEMODEI24): Ditto.
1292 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1294 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1295 * doc/invoke.texi: Document max-vartrack-expr-depth.
1296 * var-tracking.c (EXPR_DEPTH): New.
1297 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1299 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1301 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1302 * config/i386/sse.md: Add n to negated FMA pattern names.
1304 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1306 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1308 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1310 * gengtype-state.c (read_state_params_structs): Initialize previous.
1312 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1314 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1315 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1317 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1319 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1320 registers. Penalize F*r->o alternative to prevent partial memory
1321 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1322 CONST_DOUBLE immediates when optimizing function for size. Do not move
1323 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1324 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1325 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1326 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1328 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1330 (fp_register_operand splitters): Use fp_register_operand
1331 constraint. Do not use FP_REG_P in insn condition.
1332 (any_fp_register_operand splitters): Use any_fp_register_operand
1333 constraint. Do not use ANY_FP_REG_P in insn condition.
1335 2011-05-31 Jan Hubicka <jh@suse.cz>
1337 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1338 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1339 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1340 (lto_output_edge): Use output_enum and var_len_unsigned.
1341 (lto_output_varpool_node): Likewise.
1342 (input_overwrite_node): Do not take resolution parameter;
1343 extract it from a bitpack.
1344 (input_node): Do not read resolution; use input_enum and
1346 (input_varpool_node): Likewise.
1347 (input_edge): Likewise.
1348 (input_cgraph_1): Likewise.
1350 2011-05-31 Richard Guenther <rguenther@suse.de>
1352 * gimple.c (gimple_register_canonical_type): Do not register
1353 any types via gimple_register_type.
1355 2011-05-31 Jan Hubicka <jh@suse.cz>
1357 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1360 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1362 PR rtl-optimization/49235
1363 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1364 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1366 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1368 PR tree-optimization/49093
1369 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1372 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1375 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1376 for concrete functions containing the code of cloned functions.
1378 2011-05-31 Richard Guenther <rguenther@suse.de>
1380 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1382 (forward_propagate_into_comparison_1): ... this.
1383 (forward_propagate_comparison): Rename to ...
1384 (forward_propagate_into_comparison): ... this. Split out
1385 real forward propagation code to ...
1386 (forward_propagate_comparison): ... this.
1387 (forward_propagate_into_gimple_cond): Remove looping.
1388 (forward_propagate_into_cond): Likewise.
1389 (simplify_not_neg_expr): Return whether we have done something.
1390 (simplify_gimple_switch): Likewise.
1391 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1392 (ssa_forward_propagate_and_combine): ... this. Re-structure
1393 to do a forward forward-propagation walk on BBs and a backward
1394 stmt combining walk on BBs. Consistently re-scan changed statements.
1395 (pass_forwprop): Adjust.
1397 2011-05-30 Ian Lance Taylor <iant@google.com>
1399 * godump.c (go_format_type): Correct length of name added to
1400 obstack for anonymous field.
1402 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1405 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1406 part of the second operand is 0.
1408 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1410 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1411 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1412 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1413 (*movdf_internal_rex64): Do not penalize F->r alternative.
1414 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1415 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1416 when optimizing function for size. Do not move CONST_DOUBLEs
1417 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1418 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1419 SUBREGs. Do not check for MEM_P operands in the insn condition,
1420 check for ANY_FP_REGNO_P instead.
1421 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1422 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1424 * config/i386/i386.c (ix86_option_override_internal): Do not
1425 set TARGET_INTEGER_DFMODE_MOVES here.
1427 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1430 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1432 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1434 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1435 DW_TAG_rvalue_reference_type even for
1436 -gdwarf-4 -fno-debug-types-section.
1438 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1440 PR tree-optimization/46728
1441 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1442 (build_and_insert_binop): New.
1443 (gimple_expand_builtin_pow): Reorder args for
1444 build_and_insert_call; use build_and_insert_binop; add more
1445 optimizations for fractional exponents.
1447 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1452 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1454 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1456 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1457 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1458 TS_BASE instead of TS_COMMON.
1459 * varasm.c (assemble_name): Remove assert.
1461 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1463 * config.gcc: Keep obselete list sorted.
1465 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1466 Eric Botcazou <ebotcazou@adacore.com>
1468 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1469 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1470 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1471 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1472 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1474 2011-05-30 Richard Guenther <rguenther@suse.de>
1476 * gimple.c (gimple_types_compatible_p_1): Compare record
1477 and union type members properly.
1479 2011-05-30 Richard Guenther <rguenther@suse.de>
1481 PR tree-optimization/49210
1482 * ipa-split.c (split_function): Care for the case where the call
1483 result is not trivially convertible to the result holding variable.
1485 2011-05-30 Richard Guenther <rguenther@suse.de>
1487 PR tree-optimization/49218
1488 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1491 2011-05-30 Richard Guenther <rguenther@suse.de>
1493 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1494 New function split out from ...
1495 (forward_propagate_into_gimple_cond): ... here. Adjust.
1496 (forward_propagate_into_cond): Likewise.
1497 (forward_propagate_comparison): Also propagate into
1498 comparisons on assignment RHS. Change return value to
1499 behave similar to forward_propagate_into_cond.
1500 (tree_ssa_forward_propagate_single_use_vars): Handle
1501 strict-overflow warnings properly for forward_propagate_comparison.
1503 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1507 * configure: Regenerate.
1509 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1511 PR tree-optimization/49199
1512 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1513 non-reduction operands are either defined in the loop or by induction.
1515 2011-05-29 Xinliang David Li <davidxl@google.com>
1517 * opts-global.c (handle_common_deferred_options): Handle new options.
1518 * passes.c (register_one_dump_file): Call register_pass_name.
1519 (execute_one_pass): Check explicit enable/disable flag.
1520 (passr_hash): New function.
1522 (register_pass_name): Ditto.
1523 (get_pass_by_name): Ditto.
1526 (enable_pass): Ditto.
1527 (disable_pass): Ditto.
1528 (is_pass_explicitly_enabled_or_disabled): Ditto.
1530 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1532 * config/i386/i386.md (*movoi_internal_avx): Use
1533 standard_sse_constant_opcode for alternative 0.
1534 (*movti_internal_sse): Ditto.
1535 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1537 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1539 (*movsi_internal): Ditto.
1540 (*movdi_internal): Ditto. Add ssecvt type moves.
1542 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1545 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1547 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1549 PR rtl-optimization/49095
1550 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1551 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1553 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1556 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1557 recurse_p argument. Only follow register copies if it is set,
1558 and prevent mips_find_pic_call_symbol from recursing.
1559 (mips_find_pic_call_symbol): Add a recurse_p argument.
1560 Pass it to mips_pic_call_symbol_from_set.
1561 (mips_annotate_pic_calls): Update accordingly.
1563 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1565 * emit-rtl.c (try_split): Use a loop to search for
1566 NOTE_INSN_CALL_ARG_LOCATIONs.
1568 2011-05-29 Richard Guenther <rguenther@suse.de>
1570 PR tree-optimization/49217
1571 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1573 2011-05-28 Jan Hubicka <jh@suse.cz>
1575 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1577 (string_slot_free): Remove
1578 (create_output_block): Initialize obstack.
1579 (destroy_output_block): Free obstack.
1580 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1581 the string unless it needs to be added into the hash.
1582 (lto_output_string_with_length): Add persistent attribute;
1583 handle NULL strings.
1584 (lto_output_string): Add PERSISTENT parameter.
1585 (output_string_cst, output_identifier): Simplify.
1586 (lto_output_location_bitpack): Update.
1587 (lto_output_builtin_tree): Update.
1588 * lto-streamer.h (struct output_block): Add obstack.
1589 (lto_output_string, lto_output_string_with_length): Remove
1590 declarations; functions are static now.
1592 2011-05-28 Jan Hubicka <jh@suse.cz>
1594 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1595 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1596 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1597 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1598 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1599 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1600 unpack_ts_decl_with_vis_value_fields,
1601 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1602 lto_get_builtin_tree): Use enum and variable length i/o.
1603 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1604 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1606 (bp_pack_enum, bp_unpack_enum): New macros.
1608 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1610 * genrecog.c: Remove redundant forward declarations.
1612 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1614 * config.gcc: Deprecate mips*-*-openbsd*.
1616 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1619 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1622 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1625 * gengtype.c (vec_prefix_type): New function.
1626 (note_def_vec): Use vec_prefix_type and change the length
1627 attribute to be based on the prefix.
1628 * vec.c: Include coretypes.h before vec.h.
1629 (struct vec_prefix): Remove.
1630 (vec_gc_p_reserve): Change the offsetof to sizeof.
1631 (vec_gc_p_reserve_exact): Likewise.
1632 (vec_heap_p_reserve): Likewise.
1633 (vec_heap_p_reserve_exact): Likewise.
1634 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1635 (vec_stack_p_reserve): Change the offsetof to sizeof.
1636 (vec_stack_p_reserve_exact): Likewise.
1637 * vec.h (struct vec_prefix): New struct definition.
1638 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1639 (VEC_T_GTY(T,B)): Likewise.
1640 (DEF_VEC_FUNC_P(T)): Use prefix field.
1641 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1642 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1644 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1646 PR tree-optimization/46728
1647 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1648 (powi_as_mults): Add gimple_set_location.
1649 (build_and_insert_call): New.
1650 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1651 0.5, 0.25, 0.75, 1./3., or 1./6.
1653 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1655 * doc/contrib.texi: Update copyright years.
1656 (Contributors): Add Zdenek Sojka.
1658 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1660 * c-decl.c (c_push_function_context): Copy the current statement
1662 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1663 (finish_struct): Call building_stmt_list_p instead of checking
1665 * c-parser.c (c_parser_postfix_expression): Likewise.
1666 * c-typeck.c (c_end_compound_stmt): Likewise.
1667 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1668 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1669 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1670 (free_stmt_list): Likewise.
1671 * tree.h (struct tree_statement_list): Include typed_tree instead
1673 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1674 as TS_TYPED instead of TS_COMMON.
1676 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1677 Uros Bizjak <ubizjak@gmail.com>
1679 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1680 (HAVE_AS_IX86_TLSGDPTL): Define.
1681 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1682 (HAVE_AS_IX86_TLSLDMPLT): Define.
1683 * configure: Regenerate.
1684 * config.in: Regenerate.
1685 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1686 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1687 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1688 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1689 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1691 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1693 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1695 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1697 (INSN_COND, INSN_REVERSE_COND): New macros.
1698 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1700 (sched_get_condition_with_rev): Cache the results, and look them up
1702 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1703 are clobbered by the current insn.
1704 * target.def (exposed_pipline): New sched data hook.
1705 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1706 * doc/tm.texi: Regenerate.
1708 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1710 PR tree-optimization/49170
1711 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1714 2011-05-27 Richard Guenther <rguenther@suse.de>
1717 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1720 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1722 * haifa-sched.c (sched_scan_info): Remove.
1723 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1725 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1727 (sched_scan): Remove.
1728 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1729 static. All callers changed.
1730 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1731 static. All callers changed.
1732 (sched_init_luids): Remove all arguments except the first. All
1733 callers changed. Don't use sched_scan.
1734 (haifa_init_h_i_d): Likewise.
1735 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1736 manually rather than using sched_init_luids. Likewise with
1737 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1738 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1739 rather than sched_init_luids with NULL args.
1740 * sel-sched-ir.c (new_insns): Remove variable.
1741 (sched_scan): New static function, previously in haifa-sched.c. Remove
1742 all arguments but the first two; all callers changed.
1743 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1744 rather than sched_init_luids.
1745 (sel_init_bbs): Remove second argument. All callers changed.
1746 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1747 with NULL arguments.
1748 (create_insn_rtx_from_pattern): Likewise.
1749 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1750 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1751 (sched_init_insn_luid, sched_extend_luids): Declare.
1752 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1755 2011-05-27 Richard Guenther <rguenther@suse.de>
1758 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1759 A CMP B ? (T) true : (T) false for non-integral types T again.
1761 2011-05-27 Jan Hubicka <jh@suse.cz>
1763 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1764 so 0 means NULL string.
1765 (lto_output_string_with_length): ... here.
1766 (lto_output_string, output_string_cst, output_identifier): Update
1767 handling of NULL strings.
1768 (lto_output_location_bitpack): New function.
1769 (lto_output_location): Use it.
1770 (lto_output_tree_ref): Use output_record_start.
1771 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1773 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1775 (input_string_internal): ... here;
1776 (input_string_cst, input_identifier, lto_input_string): Update handling
1778 (lto_input_location_bitpack): New function
1779 (lto_input_location): Use it.
1780 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1782 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1783 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1784 (bp_pack_value): Sanity check the value range.
1785 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1787 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1790 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1792 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1793 call_arg_location instructions down the floor.
1795 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1797 PR rtl-optimization/49154
1798 * ira.c (setup_pressure_classes): Process class without sublcasses
1799 as a candidate for pressure classes.
1801 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1803 PR rtl-optimization/48575
1804 * genrecog.c (position_type): New enum.
1805 (position): New structure.
1806 (decision): Use position structure instead of a string.
1807 (root_pos, peep2_insn_pos_list): New variables.
1808 (next_position, compare_positions): New functions.
1809 (new_decision): Use position structures instead of strings.
1810 (maybe_both_true): Likewise.
1811 (change_state): Likewise.
1812 (write_tree): Likewise.
1813 (make_insn_sequence): Likewise.
1815 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1817 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1818 TS_BASE instead of TS_COMMON.
1819 (find_decls_types_r): Check for TS_TYPED structure before looking at
1821 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1823 (BLOCK_CHAIN): Use new chain field.
1825 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1827 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1828 moves expensive on Power7 also.
1830 2011-05-26 Richard Guenther <rguenther@suse.de>
1832 * fold-const.c (fold_unary_loc): Remove bogus code.
1834 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1836 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1838 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1839 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1840 TS_BASE instead of TS_COMMON.
1841 * varasm.c (assemble_name): Remove assert.
1843 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1845 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1847 * libgcc-std.ver: Delete file.
1849 2011-05-26 Richard Guenther <rguenther@suse.de>
1851 PR tree-optimization/48702
1852 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1853 only when we know the base address is within bounds.
1854 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1855 assume the base address of TARGET_MEM_REFs is in bounds.
1857 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1860 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1861 declaration in TARGET_SOLARIS.
1863 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1865 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1866 The instruction is then expanded explicitly.
1867 (supported_compare): Callable instruction.
1868 (compare): Likewise.
1870 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1873 * gimplify.c (shortcut_cond_r): Don't special case
1874 COND_EXPRs if they have void type on one of their arms.
1876 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1878 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1879 to reduce duplication, and to achieve a slightly more logical order
1882 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1884 PR tree-optimization/49161
1885 * tree-vrp.c (struct case_info): New type.
1886 (compare_case_labels): Sort case_info structs instead of
1887 trees, and not primarily by CASE_LABEL uids but by
1888 label_for_block indexes.
1889 (find_switch_asserts): Put case labels into struct case_info
1890 array instead of TREE_VEC, adjust sorting, compare label_for_block
1891 values instead of CASE_LABELs.
1893 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1895 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1896 ("orndi3_neon"): Likewise.
1897 ("bic<mode>3_neon"): Likewise.
1899 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1901 PR tree-optimization/49038
1902 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1903 Ensure at least one epilogue iteration if required by data
1905 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1906 to mark loops that require peeling for gaps.
1907 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1908 (vect_get_known_peeling_cost): Take peeling for gaps into
1910 (vect_transform_loop): Generate epilogue if required by data
1912 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1913 loop as requiring an epilogue if there are gaps in the end of
1916 2011-05-25 Ian Lance Taylor <iant@google.com>
1918 * godump.c (go_format_type): Output the first field with a usable
1921 2011-05-25 Ian Lance Taylor <iant@google.com>
1923 * godump.c (go_format_type): Check for invalid type names, pointer
1924 target types, and struct field types.
1926 2011-05-25 Jason Merrill <jason@redhat.com>
1928 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1930 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1932 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1934 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1936 * config/i386/i386.md (*movqi_extv_1)): Put back
1937 "register_operand" check in "type" calculation.
1938 (*movqi_extzv_2): Likewise.
1940 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1942 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1944 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1947 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1948 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1949 __divxc3, __divtc3): Wrap definitions in #ifndef.
1951 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1954 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1955 "register_operand" check and replace q_regs_operand with
1956 QIreg_operand in "type" calculation.
1957 (*movqi_extv_1): Likewise.
1958 (*movqi_extzv_2_rex64): Likewise.
1959 (*movqi_extzv_2): Likewise.
1961 * config/i386/predicates.md (QIreg_operand): New.
1963 2011-05-25 Richard Guenther <rguenther@suse.de>
1965 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1966 type-based offset disambiguation, streamline MEM_REF and
1967 TARGET_MEM_REF handling.
1969 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1971 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1972 (bdesc_special_args): Add pause intrinsic.
1974 * config/i386/i386.md (UNSPEC_PAUSE): New.
1977 * config/i386/ia32intrin.h (__pause): Likewise.
1979 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1982 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1984 PR tree-optimization/46728
1985 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1986 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1988 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1990 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1991 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1992 instead of TS_COMMON.
1994 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1996 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1997 LIBGCC2_GNU_PREFIX is defined.
1999 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2000 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2001 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2002 __clz_tab): Define using __N.
2003 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2004 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2005 * target.def (libfunc_gnu_prefix): New hook.
2006 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2007 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2008 * doc/tm.texi: Regenerate.
2009 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2010 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2012 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2013 (init_optabs): Likewise for the bswap libfuncs.
2014 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2016 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2017 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2018 * libgcc-std.ver: Remove.
2019 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2020 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2022 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2023 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2024 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2025 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2026 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2027 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2028 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2029 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2030 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2031 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2033 2011-05-25 Jan Hubicka <jh@suse.cz>
2035 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2036 (lto_output_tree): Use output_record_start.
2037 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2038 (lto_get_pickled_tree): Use input_record_start.
2039 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2040 (lto_value_range_error): New function.
2041 * lto-streamer.h (lto_value_range_error): Declare.
2042 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2043 (lto_output_enum, lto_input_enum): New macros.
2045 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2047 * common.opt (flag_stack_usage_info): New variable.
2048 (-Wstack-usage): New option.
2049 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2050 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2051 <OPT_fstack_usage>: Likewise.
2052 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2053 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2054 of flag_stack_usage.
2055 (emit_library_call_value_1): Likewise.
2056 * explow.c (allocate_dynamic_stack_space): Likewise.
2057 * function.c (instantiate_virtual_regs ): Likewise.
2058 (prepare_function_start): Likewise.
2059 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2060 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2061 * config/arm/arm.c (arm_expand_prologue): Likewise.
2062 (thumb1_expand_prologue): Likewise.
2063 * config/avr/avr.c (expand_prologue): Likewise.
2064 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2065 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2066 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2067 * config/mips/mips.c (mips_expand_prologue): Likewise.
2068 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2069 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2070 * config/s390/s390.c (s390_emit_prologue): Likewise.
2071 * config/sh/sh.c (sh_expand_prologue): Likewise.
2072 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2073 * config/spu/spu.c (spu_expand_prologue): Likewise.
2075 2011-05-25 Richard Guenther <rguenther@suse.de>
2077 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2078 (gimple_canonical_types_compatible_p): Likewise.
2080 2011-05-25 Jan Hubicka <jh@suse.cz>
2083 * ipa.c (function_and_variable_visibility): Only add to same
2084 comdat group list if DECL_ONE_ONLY.
2086 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2088 PR rtl-optimization/49014
2089 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2091 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2094 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2096 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2098 PR rtl-optimization/48757
2099 * ira-build.c (loop_with_eh_edge_p): Rename to
2100 loop_with_complex_edge_p, check edges on complexity, make function
2102 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2105 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2107 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2108 force flag_ira_share_save_slots to 0.
2110 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2112 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2113 (vt_initialize): Set PROLOGUE_BB unconditionally.
2114 Add block comment about CFA_BASE_RTX machinery.
2115 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2116 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2118 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2121 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2122 parsing of syntax error in ObjC instance variable lists. In
2123 particular, avoid an infinite loop if there is a stray ']'.
2124 Updated error message.
2126 2011-05-24 Ian Lance Taylor <iant@google.com>
2128 * godump.c (go_define): Don't accept a string immediately after
2131 2011-05-24 Ian Lance Taylor <iant@google.com>
2133 * godump.c (struct godump_container): Add invalid_hash field.
2134 (go_format_type): Return false if type is found in invalid_hash.
2135 (go_output_typedef): Add invalid type to invalid_hash.
2136 (go_finish): Create and delete invalid_hash.
2138 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2140 PR tree-optimization/46728
2141 * tree-ssa-math-opts.c (powi_table): New.
2142 (powi_lookup_cost): New.
2144 (powi_as_mults_1): New.
2145 (powi_as_mults): New.
2146 (gimple_expand_builtin_powi): New.
2147 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2148 (gate_cse_sincos): Remove sincos/cexp restriction.
2150 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2153 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2155 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2156 * mips-tdump.c: Likewise.
2158 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2161 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2162 add -mno-XXX. Handle FMA.
2164 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2166 PR rtl-optimization/48633
2167 * ira-build.c (loop_with_eh_edge_p): New function.
2168 (mark_loops_for_removal): Use it.
2170 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2172 PR rtl-optimization/48971
2173 * ira.c (setup_pressure_classes): Don't check register move cost
2174 for classes with one registers. Don't add pressure class if there
2175 is a pressure class with the same available hard registers.
2176 Check contains_reg_of_mode. Fix a typo in collecting
2177 temp_hard_regset. Ignore hard registers not belonging to a class.
2179 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2182 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2184 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2185 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2187 PR gcov-profile/48845
2188 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2190 2011-05-24 Richard Guenther <rguenther@suse.de>
2192 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2193 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2194 (gimple_types_compatible_p_1): Adjust.
2195 (iterative_hash_canonical_type): Do not bother about complete vs.
2197 (gimple_canonical_types_compatible_p): Likewise.
2199 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2201 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2203 2011-05-24 Richard Guenther <rguenther@suse.de>
2206 * gimple.c (gimple_register_canonical_type): Revert
2208 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2209 does not for a tree for the case where it matters. Cache
2210 pointer-type alias-sets.
2212 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2214 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2215 (OBJS): Remove options.o, opts-common.o and prefix.o.
2216 (OBJS-libcommon-target): New.
2217 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2218 (BACKEND): Include libcommon-target.a.
2219 (MOSTLYCLEANFILES): Include libcommon-target.a.
2220 (libcommon-target.a): New.
2221 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2224 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2226 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2227 parts of output shared with the driver.
2228 * optc-gen.awk: Don't generate parts of output not shared with the
2230 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2231 * doc/options.texi (SourcerInclude): Mention options-save.c.
2232 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2233 (OBJS): Add options-save.o.
2234 (options-save.c, options-save.o): New.
2235 (options.o): Update dependencies.
2236 (gcc-options.o): Remove.
2237 (mostlyclean): Remove options-save.c.
2239 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2242 * dbxout.c: Include cgraph.h.
2243 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2244 and without value expr, return NULL if no varpool node exists for
2245 it or if it is not needed.
2246 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2249 * c-decl.c (start_decl): Convert expr to void_type_node.
2251 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2253 PR rtl-optimization/48826
2254 * emit-rtl.c (try_split): When splitting a call that is followed
2255 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2257 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2259 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2260 parameters passed in memory prefer using DECL_INCOMING_RTL over
2261 the pseudos it will be copied into.
2263 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2266 * config/i386/i386.c (ix86_option_override_internal): Save the
2267 initial options after checking vzeroupper.
2269 2011-05-23 David Li <davidxl@google.com>
2271 PR tree-optimization/48988
2272 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2273 Initialize has_valid_pred for each pred chain.
2275 2011-05-23 Richard Guenther <rguenther@suse.de>
2277 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2278 (iterative_hash_gimple_type): Always hash type names.
2280 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2282 * c-typeck.c (build_function_call_vec): Tweak call to
2283 check_function_arguments.
2285 2011-05-23 Richard Guenther <rguenther@suse.de>
2287 PR tree-optimization/49115
2288 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2289 is not necessarily carried out, do not claim it kills the ref.
2290 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2292 2011-05-23 Richard Guenther <rguenther@suse.de>
2295 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2296 what pointer types we accept for folding.
2298 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2300 * gthr-gnat.c: Remove.
2301 * gthr-gnat.h: Remove.
2302 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2303 * config/t-freebsd (LIB2ADDEH): Likewise.
2304 * config/t-linux (LIB2ADDEH): Likewise.
2305 * config/t-sol2 (LIB2ADDEH): Likewise.
2306 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2307 * configure.ac (target_thread_file): Remove gnat handling.
2308 * configure: Regenerate.
2309 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2311 2011-05-23 Tristan Gingold <gingold@adacore.com>
2312 Eric Botcazou <ebotcazou@adacore.com>
2314 * gcov.c (create_file_names): If no object directory is specified,
2315 keep the directory of the file.
2317 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2319 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2320 * configure: Regenerate.
2322 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2325 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2326 failed and the comparison has a single bit signed type, use
2327 constm1_rtx instead of const1_rtx for true value.
2328 (do_store_flag): If ops->type is single bit signed type, disable
2329 signel bit test optimization and pass -1 instead of 1 as last
2330 parameter to emit_store_flag_force.
2332 2011-05-23 Tom de Vries <tom@codesourcery.com>
2335 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2337 (infer_loop_bounds_from_undefined): Use new function.
2339 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2341 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2342 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2343 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2345 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2347 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2349 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2350 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2353 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2355 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2357 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2359 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2360 UNSPEC_MOVE_PIC pattern.
2362 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2364 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2365 (sparc-*-rtems*): Likewise.
2366 (sparc64-*-elf*): Likewise.
2367 (sparc64-*-rtems*): Likewise.
2368 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2369 * config/sparc/t-crtin: New file.
2370 * config/sparc/t-sol2 (crti.o): Delete rule.
2372 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2373 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2374 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2375 (ENDFILE_SPEC): Add crtn.o.
2377 2011-05-22 Tom de Vries <tom@codesourcery.com>
2380 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2381 CODE_CONTAINS_STRUCT (TS_COMMON).
2383 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2386 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2387 only after deciding which mode to use.
2389 2011-05-22 Tom de Vries <tom@codesourcery.com>
2392 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2393 for call to get_shiftadd_cost.
2395 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2398 * config/i386/cpuid.h (bit_MMXEXT): New define.
2400 2011-05-22 Nick Clifton <nickc@redhat.com>
2402 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2403 initialisation of non-existant args[2] element. Use args[] array
2404 not arg[] array to pass arguments to build_function_type_list.
2406 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2408 PR tree-optimization/49087
2409 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2411 2011-05-21 Jason Merrill <jason@redhat.com>
2414 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2415 static storage duration.
2417 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2419 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2422 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2424 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2425 false if there are call-saved registers here...
2426 (sparc_can_use_return_insn_p): ...but here instead.
2427 (save_or_restore_regs): Fix thinko.
2428 (sparc_expand_prologue): Use current_function_is_leaf.
2429 (sparc_frame_pointer_required): Likewise.
2431 2011-05-21 Nick Clifton <nickc@redhat.com>
2434 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2436 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2438 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2439 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2441 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2443 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2444 * optc-gen.awk: Move common code to opt-read.awk.
2445 * opth-gen.awk: Likewise.
2446 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2448 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2450 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2452 2011-05-20 Tom de Vries <tom@codesourcery.com>
2455 * tree-ssa-loop-ivopts.c: Include expmed.h.
2456 (get_shiftadd_cost): New function.
2457 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2459 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2462 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2463 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2465 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2467 * Makefile.in: Update comment referring to $(OBJS-common).
2469 2011-05-20 Ian Lance Taylor <iant@google.com>
2471 * godump.c (go_output_typedef): Put enum constants in the macro
2472 hash table to avoid duplicate Go const definitions.
2474 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2476 * Makefile.in (LIBDEPS): Add libcommon.a.
2478 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2479 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2480 pretty-print.o and version.o.
2481 (OBJS-libcommon): New.
2482 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2483 (BACKEND): Add libcommon.a.
2484 (MOSTLYCLEANFILES): Likewise.
2486 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2487 (cpp$(exeext)): Likewise.
2488 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2489 pretty-print.o and input.o.
2490 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2491 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2493 (mips-tfile): Don't explicitly use version.o.
2494 (mips-tdump): Likewise.
2495 (gcov.o): Depend on $(DIAGNOSTIC_H).
2496 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2497 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2498 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2499 * gcov-dump.c: Include intl.h and diagnostic.h.
2500 (main): Initialize diagnostics.
2501 * gcov.c: Include diagnostic.h.
2503 (main): Initialize diagnostics.
2504 * lto-wrapper.c: Include diagnostic.h.
2505 (main): Initialize diagnostics.
2507 2011-05-20 Michael Matz <matz@suse.de>
2509 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2511 2011-05-20 Michael Matz <matz@suse.de>
2512 Richard Guenther <rguenther@suse.de>
2514 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2515 use lto_streamer_cache_append directly instead of returning a VEC.
2516 (preload_common_node): Remove.
2517 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2519 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2521 2011-05-20 Richard Guenther <rguenther@suse.de>
2523 PR tree-optimization/49079
2524 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2525 MEM_REFs correctly for the trailing array access detection.
2526 Special case constants the same way as decls for overall size
2529 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2531 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2534 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2536 PR tree-optimization/49073
2537 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2538 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2539 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2541 2011-05-20 Richard Guenther <rguenther@suse.de>
2544 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2545 of pointer types the same way the middle-end does.
2547 2011-05-20 Richard Guenther <rguenther@suse.de>
2549 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2550 or pointer-to chains. Delay all fixup to uniquify_nodes.
2552 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2554 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2555 (fma4_fmaddsub): Likewise
2557 2011-05-19 Jan Hubicka <jh@suse.cz>
2559 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2560 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2561 (type_pair_cache): New static var.
2562 (lookup_type_pair): Use fixed sized custom hash; make inline.
2563 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2564 calls of lookup_type_pair.
2565 (print_gimple_types_stats): Remove cache stats.
2566 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2569 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2571 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2572 when TARGET_RDRND is active.
2573 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2574 Generate dummy SImode target register when target is NULL.
2576 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2578 * config/arm/arm-fpus.def: New.
2579 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2581 * config/arm/arm-tables.opt: Regenerate.
2582 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2583 (arm_option_override): Don't decode FPU name to string here.
2584 * config/arm/arm.opt (mfpu=): Use Enum.
2585 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2586 Update dependencies.
2588 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2590 * collect2.c: Include diagnostic.h.
2591 (fatal_perror, fatal, error, fancy_abort): Remove.
2592 (main): Set progname. Call xmalloc_set_program_name and
2593 diagnostic_initialize.
2594 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2595 scan_libraries, resolve_lib_name): Call fatal_error instead of
2596 fatal and fatal_perror.
2597 * collect2.h (error, fatal, fatal_perror): Don't declare.
2598 * tlink.c: Include diagnostic-core.h.
2599 (recompile_files): Call fatal_error instead of fatal_perror.
2600 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2601 pretty-print.o and input.o.
2602 (collect2.o, tlink.o): Update dependencies.
2604 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2606 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2608 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2611 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2612 COMDAT group syntax, both SPARC and x86 variants.
2613 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2614 * configure: Regenerate.
2615 * config/sol2.h (TARGET_SOLARIS): Define.
2616 (PUSHSECTION_FORMAT): Remove.
2617 (SECTION_NAME_FORMAT): Define.
2618 * config/sol2.c: Include hashtab.h.
2619 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2620 expansion, using SECTION_NAME_FORMAT.
2621 (solaris_comdat_htab): New variable.
2622 (struct comdat_entry): Define.
2623 (comdat_hash): New function.
2624 (comdat_eq): New function.
2625 (solaris_elf_asm_comdat_section): New function.
2626 (solaris_define_comdat_signature): New function.
2627 (solaris_code_end): New function.
2628 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2629 (solaris_code_end): Declare.
2630 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2631 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2633 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2634 Remove ATTRIBUTE_UNUSED.
2635 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2636 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2637 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2638 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2639 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2640 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2641 (PUSHSECTION_FORMAT): Remove.
2642 (SECTION_NAME_FORMAT): Redefine.
2644 2011-05-19 Kai Tietz <ktietz@redhat.com>
2646 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2647 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2648 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2650 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2651 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2653 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2655 2011-05-19 Richard Guenther <rguenther@suse.de>
2658 * tree-object-size.c (addr_object_size): If the pointed-to
2659 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2661 2011-05-19 Richard Guenther <rguenther@suse.de>
2663 * gimple.c (gimple_types_compatible_p_1): Compare names of
2664 the types themselves.
2665 (iterative_hash_gimple_type): And hash them that way.
2666 (gimple_register_type_1): If we register a main variant properly
2667 initialize the leader to ourselves.
2669 2011-05-19 Tom de Vries <tom@codesourcery.com>
2672 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2673 get_loop_invariant_expr_id.
2674 (get_loop_invariant_expr_id): Use get_expr_id.
2675 (parm_decl_cost): New function.
2676 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2677 Improve bound cost estimation. Use different inv_expr_id for elim and
2680 2011-05-19 Tom de Vries <tom@codesourcery.com>
2683 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2684 cost_base.cost == 0.
2686 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2689 * config/i386/sse.md
2690 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2693 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2695 PR tree-optimization/49039
2696 * tree-vrp.c (extract_range_from_binary_expr): For
2697 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2698 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2700 2011-05-18 Tom de Vries <tom@codesourcery.com>
2703 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2705 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2707 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2708 (*tls_global_dynamic_64): Ditto.
2709 (*tls_local_dynamic_base_32_gnu): Ditto.
2710 (*tls_local_dynamic_base_64): Ditto.
2711 (tls_initial_exec_64_sun): Ditto.
2713 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2715 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2716 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2718 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2719 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2720 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2721 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2722 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2723 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2724 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2726 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2728 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2729 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2730 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2731 target_thread_pointer, arm_structure_size_boundary, struct
2732 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2733 struct abi_name, arm_all_abis): Remove.
2734 (arm_option_override) Don't process most enumerated option values here.
2735 Don't process target_fpe_name here. Work with integer not string for
2736 structure size boundary; use separate diagnostics for each case.
2737 * config/arm/arm.h (enum float_abi_type, enum
2738 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2740 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2741 arm_structure_size_boundary): Remove.
2742 * config/arm/arm.opt (mabi=): Use Enum and Init.
2743 (arm_abi_type): New Enum and EnumValue entries.
2744 (mfloat-abi=): Use Enum and Init.
2745 (float_abi_type): New Enum and EnumValue entries.
2746 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2747 (mfp16-format=): Use Enum and Init.
2748 (arm_fp16_format_type): New Enum and EnumValue entries.
2749 (mstructure-size-boundary=): Use UInteger and Init.
2750 (mtp=): Use Enum and Init.
2751 (arm_tp_type): New Enum and EnumValue entries.
2753 2011-05-18 Richard Guenther <rguenther@suse.de>
2755 PR tree-optimization/49018
2756 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2757 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2758 gimple_has_side_effects.
2760 2011-05-18 Richard Guenther <rguenther@suse.de>
2762 * gimple.c (gimple_register_type_1): New function, split out from ...
2763 (gimple_register_type): ... here. Avoid infinite recursion.
2765 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2767 PR tree-optimization/41881
2768 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2769 reduction_chains along with a macro for its access.
2770 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2771 (destroy_loop_vec_info): Free reduction chains.
2772 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2773 (vect_is_slp_reduction): New function.
2774 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2775 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2776 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2777 definition types for reduction chains.
2778 (vect_supported_load_permutation_p): Don't allow permutations for
2780 (vect_analyze_slp_instance): Support reduction chains.
2781 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2782 (vect_get_constant_vectors): Handle reduction chains.
2783 (vect_schedule_slp_instance): Mark the first statement of the
2784 reduction chain as reduction.
2786 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2788 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2789 names for group elements access.
2790 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2791 reduction chains as well. Remove data reference and interleaving
2792 related words from the fields names.
2793 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2795 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2796 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2797 vect_update_interleaving_chain, vect_same_range_drs,
2798 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2799 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2800 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2801 vect_analyze_group_access, vect_analyze_data_ref_access,
2802 vect_create_data_ref_ptr, vect_transform_strided_load,
2803 vect_record_strided_load_vectors): Likewise.
2804 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2805 vect_model_load_cost, vectorizable_store, vectorizable_load,
2806 vect_remove_stores, new_stmt_vec_info): Likewise.
2807 * tree-vect-slp.c (vect_build_slp_tree,
2808 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2810 2011-05-18 Richard Guenther <rguenther@suse.de>
2813 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2814 operand verification.
2815 (verify_gimple_assign_binary): Likewise.
2816 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2817 to non-1-precision BOOLEAN_TYPEs.
2819 2011-05-18 Tom de Vries <tom@codesourcery.com>
2822 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2824 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2826 PR tree-optimization/49000
2827 * tree-ssa.c (execute_update_addresses_taken): Call
2828 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2829 be rewritten and decl has been marked for renaming, reset
2832 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2834 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2835 enum_opts_set when testing if attributes have set -mfpmath=.
2837 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2839 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2841 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2843 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2845 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2846 id.transform_lang_insert_block with NULL.
2848 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2850 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2851 (output_fp_compare): Change args 3 and 4 to bool.
2852 (ix86_expand_call): Change arg 6 to bool.
2853 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2854 (ix86_attr_length_vex_default): Change arg 3 to bool.
2855 * config/i386/i386.md: Update all uses.
2856 * config/i386/i386.c: Ditto.
2857 (ix86_flags_dependent): Change return type to bool.
2859 2011-05-17 Richard Guenther <rguenther@suse.de>
2861 * gimple.c (type_hash_pair_compare): Fix comparison.
2863 2011-05-17 Richard Guenther <rguenther@suse.de>
2865 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2866 case some more, fix final hash value of the non-singleton case.
2868 2011-05-17 Richard Guenther <rguenther@suse.de>
2872 2011-05-16 Richard Guenther <rguenther@suse.de>
2874 * gimple.c (gimple_types_compatible_p_1): Use names of the
2875 type itself, not its main variant.
2876 (iterative_hash_gimple_type): Likewise.
2878 2011-05-17 Richard Guenther <rguenther@suse.de>
2880 * gimple.c (gimple_register_canonical_type): Use the main-variant
2881 leader for computing the canonical type.
2883 2011-05-17 Nick Clifton <nickc@redhat.com>
2885 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2888 * config/rx/rx.md: Add peephole to remove redundant extensions
2890 (bitset_in_memory): Use rx_restricted_mem_operand.
2891 (bitinvert_in_memory): Likewise.
2892 (bitclr_in_memory): Likewise.
2894 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2895 Nick Clifton <nickc@redhat.com>
2897 * config/rx/rx.md: Add peepholes to match a register move followed
2898 by a comparison of the moved register. Replace these with an
2899 addition of zero that does both actions in one instruction.
2901 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2904 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2905 predicate to allow CONST_INT.
2906 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2908 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2910 * opts-common.c (opt_enum_arg_to_value): New.
2911 * opts.h (opt_enum_arg_to_value): Declare.
2912 * config/i386/i386.opt (fpmath): Remove.
2913 (mfpmath=): Use Enum, Init and Save.
2914 (fpmath_unit): New Enum and EnumValue entries.
2915 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2916 name for function fpmath state.
2917 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2918 * config/i386/i386.c: Include diagnostic.h.
2919 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2920 (ix86_target_string): Take enum fpmath_unit value instead of string.
2921 (ix86_debug_options): Update call to ix86_target_string.
2922 (ix86_option_override_internal): Don't process fpmath strings here.
2923 (x86_function_specific_save, ix86_function_specific_restore):
2924 Don't handle fpmath state specially.
2925 (ix86_function_specific_print): Pass fpmath state to
2926 ix86_target_string instead of printing in this function.
2927 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2928 Handle enum attributes.
2929 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2930 (ix86_valid_target_attribute_tree): Update option_strings
2931 handling. Handle fpmath as enum option.
2932 (ix86_can_inline_p): Update field names for function fpmath state.
2933 (ix86_expand_builtin): Update call to ix86_target_string.
2934 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2935 (ix86_fpmath): Remove.
2936 * config/i386/t-i386 (i386.o): Update dependencies.
2938 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2940 PR preprocessor/48677
2941 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2942 from decoded_options[0], not from itself.
2944 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2946 * config/i386/constraints.md (z): New constraint.
2947 * config/i386/i386.c (c): New mode attribute.
2948 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2949 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2950 constraint for operand 0.
2951 (*call_vzeroupper): Ditto.
2952 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2953 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2954 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2955 Use "lzm" constraint for operand 0.
2956 (*call_pop_vzeroupper): Ditto.
2957 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2958 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2959 constraint for operand 0.
2960 (*sibcall_vzeroupper): Ditto.
2961 (*sibcall_rex64_ms_sysv): Ditto.
2962 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2963 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2964 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2965 (*sibcall_pop_vzeroupper): Ditto.
2966 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2967 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2968 mode iterator. Use "<c>zm" constraint for operand 1.
2969 (*call_value_vzeroupper): Ditto.
2970 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2972 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2973 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2974 *call_value_pop_1. Use "lzm" constraint for operand 1.
2975 (*call_value_pop_vzeroupper): Ditto.
2976 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2977 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2978 mode iterator. Use "Uz" constraint for operand 1.
2979 (*sibcall_value_vzeroupper): Ditto.
2980 (*sibcall_value_rex64_ms_sysv): Ditto.
2981 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2982 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2983 constraint for operand 1.
2984 (*sibcall_value_pop_vzeroupper): Ditto.
2985 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2986 and "z" constraint for operand 2.
2987 (*tls_global_dynamic_32_gnu): Ditto.
2988 (*tls_local_dynamic_base_32_gnu): Ditto.
2989 (*tls_local_dynamic_base_64): Ditto.
2990 (*tls_local_dynamic_32_once): Ditto.
2991 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2993 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2995 2011-05-16 Richard Guenther <rguenther@suse.de>
2997 * gimple.c (gimple_types_compatible_p_1): Use names of the
2998 type itself, not its main variant.
2999 (iterative_hash_gimple_type): Likewise.
3001 2011-05-16 Richard Guenther <rguenther@suse.de>
3003 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3004 always visit pointer target and function result and argument types.
3006 2011-05-16 Jason Merrill <jason@redhat.com>
3009 * tree-inline.c (copy_statement_list): Put back recursion.
3011 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3015 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3016 * config/avr/avr.md ("*ior<mode>qi.byte0",
3017 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3019 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3022 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3023 register is needed for a function argument.
3025 2011-05-16 Richard Guenther <rguenther@suse.de>
3027 * gimple.c (struct type_hash_pair): New type.
3028 (type_hash_pair_compare): New function.
3029 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3031 2011-05-16 Revital Eres <revital.eres@linaro.org>
3033 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3035 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3037 * config/i386/i386.md (floating point move splitters): Fix
3038 usage of standard_80387_constant_p.
3039 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3041 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3045 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3047 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3048 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3049 (tree_ssa_lim_finalize): Likewise.
3051 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3053 * config/i386/constraint.md (Yd, Yx): New register constraints.
3054 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3055 Yd conditional register constraint.
3056 (*movtf_internal): Use standard_sse_constant_opcode.
3057 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3058 Yx conditional register constraint.
3059 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3060 Yd conditional register constraint. Use standard_sse_constant_p to
3061 check for valid SSE constants and call standard_sse_constant_opcode to
3063 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3064 constants and call standard_sse_constant_opcode to output SSE insn.
3065 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3066 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3067 optimize_size is set.
3068 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3070 2011-05-14 Tobias Burnus <burnus@net-b.de>
3072 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3074 2011-05-13 Martin Jambor <mjambor@suse.cz>
3076 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3077 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3078 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3079 (evaluate_conditions_for_ipcp_clone): Removed.
3080 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3081 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3082 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3084 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3086 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3087 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3088 lieu of MAY_HAVE_DEBUG_STMTS.
3089 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3090 debug statements if !MAY_HAVE_DEBUG_STMTS.
3092 2011-05-13 Martin Thuresson <martint@google.com>
3094 PR gcov-profile/47793
3095 * libgcov.c (gcov_exit): Support relative profile paths.
3096 * doc/invoke.texi (-fprofile-dir): Update for above change.
3098 2011-05-13 Richard Guenther <rguenther@suse.de>
3100 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3101 type-pair caching, do not compare hashes.
3103 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3106 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3107 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3109 2011-05-13 Kai Tietz <ktietz@redhat.com>
3111 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3112 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3113 compatible type for TRUTH_NOT_EXPR.
3115 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3117 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3118 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3119 can_create_pseudo_p ().
3121 2011-05-13 Richard Guenther <rguenther@suse.de>
3124 * gimple.c (iterative_hash_gimple_type): Revert change in
3125 pointer target and function result and argument hashing.
3127 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3129 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3130 (*movxf_internal_nointeger): Ditto.
3131 (*movdf_internal_rex64): Ditto.
3132 (*movdf_internal): Ditto.
3133 (*movdf_internal_nointeger): Ditto.
3134 (*movsf_internal): Ditto.
3135 (sincos splitters): Use can_create_pseudo ().
3137 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3139 * config/i386/i386-opts.h: New.
3140 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3141 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3142 ix86_section_threshold): Remove.
3143 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3144 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3146 (ix86_option_override_internal): Don't decode strings for options
3147 other than -march=, -mtune= and -mfpmath=. Don't allow for
3148 __attribute__ uses in remaining diagnostics for options with
3149 string arguments. Don't check for integer arguments being negative.
3150 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3151 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3152 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3153 ix86_branch_cost, ix86_section_threshold): Remove.
3154 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3156 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3158 (masm=): Use Enum and Init.
3159 (asm_dialect): New Enum and EnumValue entries.
3160 (mbranch-cost=): Use UInteger.
3161 (mlarge-data-threshold=): Use UInteger and Init.
3162 (mcmodel=): Use Enum and Init.
3163 (cmodel): New Enum and EnumValue entries.
3164 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3165 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3166 mregparm=): Use UInteger.
3167 (mstringop-strategy=): Use Enum and Init.
3168 (stringop_alg): New Enum and EnumValue entries.
3169 (mtls-dialect=): Use Enum and Init.
3170 (tls_dialect): New Enum and EnumValue entries.
3171 (mabi=): Use Enum and Init.
3172 (calling_abi): New Enum and EnumValue entries.
3173 (mveclibabi=): Use Enum and Init.
3174 (ix86_veclibabi): New Enum and EnumValue entries.
3176 2011-05-13 Nick Clifton <nickc@redhat.com>
3178 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3179 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3181 2011-05-13 Kai Tietz <ktietz@redhat.com>
3184 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3185 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3186 (gimple_boolify): Check for cast for boolean_type_node instead for
3189 2011-05-13 Richard Guenther <rguenther@suse.de>
3191 PR tree-optimization/48172
3192 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3193 multiplying by number of iterations for equal step.
3194 (vect_create_cond_for_alias_checks): Likewise.
3196 2011-05-13 Andreas Schwab <schwab@redhat.com>
3198 * configure.ac: Use AS_HELP_STRING throughout.
3199 * configure: Regenerate.
3201 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3203 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3204 (ix86_emit_restore_regs_using_mov): Likewise.
3205 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3207 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3209 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3210 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3211 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3212 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3213 RTX_OK_FOR_OLO10_P): ...here.
3214 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3217 2011-05-12 Kai Tietz <ktietz@redhat.com>
3219 * gimplify.c (gimple_boolify): Re-boolify expression
3220 arguments even if expression type is of kind BOOLEAN_TYPE.
3221 (gimplify_boolean_expr): Removed.
3222 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3223 and XOR. Additional take care that we keep expression's type.
3224 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3225 of TRUTH_AND|OR|XOR_EXPR.
3227 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3229 PR tree-optimization/48975
3230 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3231 on all bbs here and free and clear ifc_bbs at the end.
3233 2011-05-12 Richard Guenther <rguenther@suse.de>
3235 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3236 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3237 until after simple checks.
3238 (gimple_types_compatible_p): Likewise.
3239 (iterative_hash_gimple_type): Always hash pointer targets
3240 and function return and argument types.
3241 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3242 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3243 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3244 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3245 completely in the simple compare section.
3246 (gimple_register_canonical_type): Query the cache again after
3249 2011-05-12 Richard Guenther <rguenther@suse.de>
3251 PR tree-optimization/48172
3252 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3253 the number of iterations from the segment size calculation.
3254 (vect_create_cond_for_alias_checks): Adjust.
3256 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3259 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3260 if validate_subreg fails.
3262 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3264 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3265 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3268 2011-05-12 DJ Delorie <dj@redhat.com>
3270 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3271 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3272 created builtin into rx_builtins array.
3273 (rx_builtin_decl): New function.
3274 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3276 2011-05-12 DJ Delorie <dj@redhat.com>
3277 Nick Clifton <nickc@redhat.com>
3279 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3280 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3281 (rx_is_legitimate_address): Add pre-decrement and post-increment
3282 addressing in HImode and QImode. Fix test for out of range
3284 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3285 (rx_align_for_label): Test label before extracting its usage count.
3286 (rx_adjust_insn_lengths): Fix selection of insn codes.
3287 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3289 2011-05-11 Jason Merrill <jason@redhat.com>
3291 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3293 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3295 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3296 reindent the subsequent block.
3298 2011-05-11 Satoru Takabayashi <satorux@google.com>
3299 Paul Pluzhnikov <ppluzhnikov@google.com>
3301 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3302 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3303 * config.in: Add LINKER_HASH_STYLE.
3304 * configure.ac: Add --with-linker-hash-style.
3305 * configure: Regenerate.
3307 2011-05-11 Richard Guenther <rguenther@suse.de>
3310 * gimple.c (iterative_hash_canonical_type): Fix typo.
3312 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3314 * config/i386/i386.c (legitimize_tls_address)
3315 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3316 expanders directly for TARGET_GNU2_TLS. Determine pic and
3317 __tls_get_addr symbol reference here. Update call to
3318 gen_tls_global_dynamic_{32,64} for added arguments.
3319 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3320 expanders directly for TARGET_GNU2_TLS. Determine
3321 __tls_get_addr symbol reference here. Update call to
3322 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3323 unique UNSPEC REG_EQUIV to libcall block.
3324 (ix86_tls_get_addr): Declare static.
3325 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3326 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3327 Do not determine pic and __tls_get_addr symbol reference here. Do not
3328 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3329 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3330 (tls_global_dynamic_64): Add operand 2. Do not determine
3331 __tls_get_addr symbol reference here. Do not call
3332 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3333 (tls_local_dynamic_base64): Ditto for operand 1.
3335 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3337 * function.c (expand_function_start): Initialize stack_check_probe_note
3338 only if the generic stack checking mechanism is used.
3340 2011-05-11 Richard Guenther <rguenther@suse.de>
3342 PR tree-optimization/15256
3343 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3344 (A & B) | C, combine (A op CST1) op CST2.
3345 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3346 visit assigns that have uses.
3348 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3350 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3351 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3352 (unpack_ts_type_common_value_fields): ...this. Update comment.
3353 (unpack_value_fields): Adjust for renaming.
3354 (lto_input_ts_type_tree_pointers): Split into...
3355 (lto_input_ts_type_common_tree_pointer): ...this and...
3356 (lto_input_ts_type_non_common_tree_pointers): ...this.
3357 (lto_input_tree_pointers): Adjust for above split.
3358 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3359 (pack_ts_type_common_value_fields): ...this. Update comment.
3360 (lto_output_ts_type_tree_pointers): Split into...
3361 (lto_output_ts_type_common_tree_pointers): ...this and...
3362 (lto_output_ts_type_non_common_tree_pointers): ...this.
3363 (lto_output_tree_pointers): Adjust for above split.
3364 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3365 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3366 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3367 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3369 (struct tree_type): Split into...
3370 (struct tree_type_common: ...this and...
3371 (struct tree_type_with_lang_specific): ...this and...
3372 (struct tree_type_non_common): ...this. Adjust accessor macros
3374 (TYPE_VALUES_RAW): Define.
3375 (union tree_node): Update for above changes.
3376 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3378 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3379 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3380 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3381 * treestructu.def (TS_TYPE): Remove.
3382 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3385 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3388 * tree-ssa.c (reset_debug_uses): New function.
3389 * tree-flow.h (reset_debug_uses): New prototype.
3390 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3391 * tree-loop-distribution.c (generate_loops_for_partition): Call
3392 reset_debug_uses on the stmts that will be removed. Keep around
3393 all debug stmts, don't count them as bits in partition bitmap.
3394 (generate_builtin): Don't count debug stmts or labels as bits in
3397 2011-05-11 Richard Guenther <rguenther@suse.de>
3399 * gimple.c (gimple_type_hash_1): Merge with ...
3400 (gimple_type_hash): ... this.
3401 (gtc_visit): Remove mode parameter and simplify accordingly.
3402 (gimple_types_compatible_p_1): Likewise.
3403 (gimple_types_compatible_p): Likewise.
3404 (iterative_hash_gimple_type): Likewise.
3406 (gimple_type_eq): Adjust.
3408 2011-05-11 Revital Eres <revital.eres@linaro.org>
3410 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3411 enters the branch create an anti edge in the opposite direction
3412 to prevent the creation of reg-moves.
3413 * modulo-sched.c: Adjust comment to reflect the fact we are
3414 scheduling closing branch.
3415 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3416 (stage_count): New field in struct partial_schedule.
3417 (calculate_stage_count): New function.
3418 (normalize_sched_times): Rename to reset_sched_times and handle
3419 incrementing the sched time of the nodes by a constant value
3420 passed as parameter.
3421 (duplicate_insns_of_cycles): Skip closing branch.
3422 (sms_schedule_by_order): Schedule closing branch.
3423 (ps_insn_find_column): Handle closing branch.
3424 (sms_schedule): Call reset_sched_times and adjust the code to
3425 support scheduling of the closing branch.
3426 (ps_insert_empty_row): Update calls to normalize_sched_times
3427 and rotate_partial_schedule functions.
3429 2011-05-11 Richard Guenther <rguenther@suse.de>
3432 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3434 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3436 * opts.c (finish_options): Move warning settings from process_options.
3437 * toplev.c (process_options): Move warning settings to finish_options.
3439 2011-05-11 Richard Guenther <rguenther@suse.de>
3441 PR tree-optimization/18041
3442 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3443 (simplify_bitwise_binary): ... this. Handle operand conversions
3444 by applying them to the result instead.
3445 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3447 2011-05-11 Richard Guenther <rguenther@suse.de>
3449 * gimple.c (gimple_canonical_types_compatible_p): Split out
3450 from gimple_types_compatible_p and friends. Do not recurse
3451 to pointed-to types.
3452 (gimple_canonical_type_eq): Use it.
3453 (iterative_hash_canonical_type): Split out from
3454 iterative_hash_gimple_type and friends. Do not recurse
3455 to pointed-to types.
3456 (gimple_canonical_type_hash): Use it, allocate the hash here.
3458 2011-05-11 Revital Eres <revital.eres@linaro.org>
3460 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3463 2011-05-11 Revital Eres <revital.eres@linaro.org>
3465 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3466 instead of PREV_INSN.
3468 2011-05-11 Revital Eres <revital.eres@linaro.org>
3470 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3471 * loop-doloop.c (doloop_condition_get): Likewise.
3472 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3474 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3476 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3478 * tree.def (CASE_LABEL_EXPR): Add an operand.
3479 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3481 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3483 * c-decl.c (c_override_global_bindings_to_false): Remove.
3484 (global_bindings_p): Don't check
3485 c_override_global_bindings_to_false.
3486 * c-tree.h (c_override_global_bindings_to_false): Remove.
3487 * c-typeck.c (composite_type): Don't set
3488 c_override_global_bindings_to_false.
3490 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3492 PR target/48857, 48495
3493 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3495 (VSX_MOVE_MODE): Ditto.
3496 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3497 VSX vector types. Add V2DImode.
3498 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3499 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3500 (MODES_TIEABLE_P): Ditto.
3502 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3503 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3505 (init_cumulative_args): Ditto.
3506 (rs6000_function_arg_boundary): Ditto.
3507 (rs6000_function_arg_advance_1): Ditto.
3508 (rs6000_function_arg): Ditto.
3509 (rs6000_function_ok_for_sibcall): Ditto.
3510 (emit_frame_save): Ditto.
3511 (rs6000_function_value): Ditto.
3512 (rs6000_libcall_value): Ditto.
3514 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3516 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3517 i386/darwin-lib.h to $libgcc_tm_file.
3518 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3520 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3522 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3524 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3526 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3527 * config/rs6000/rs6000-tables.opt: New file (generated).
3528 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3529 rs6000/rs6000-tables.opt to extra_options.
3530 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3531 * config/rs6000/rs6000.c (rs6000_select): Remove.
3532 (processor_target_table): Move contents to rs6000-cpus.def.
3533 (darwin_rs6000_override_options): Check
3534 global_options_set.x_rs6000_cpu_index instead of
3535 rs6000_select[1].string.
3536 (rs6000_option_override_internal): Likewise.
3537 (rs6000_handle_option): Don't assert that global structures are in
3538 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3539 (rs6000_default_cpu): New variable.
3540 (rs6000_file_start): Set it instead of local default_cpu. Check
3541 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3542 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3543 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3544 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3545 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3546 rs6000_select): Remove.
3547 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3549 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3550 * config/rs6000/t-rs6000
3551 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3552 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3553 global_options_set.x_rs6000_cpu_index instead of
3554 rs6000_select[1].string.
3555 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3556 global_options_set.x_rs6000_cpu_index instead of
3557 rs6000_select[1].string.
3559 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3561 * config.gcc (libgcc_tm_file): Define instead of including files
3562 from ../../libgcc/config/ in tm_file.
3563 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3564 * configure: Regenerate.
3565 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3566 libgcc_tm.h, cs-libgcc_tm.h): New.
3567 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3568 (clean): Remove libgcc_tm.h.
3569 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3570 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3571 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3573 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3576 * config/avr/avr.c (avr_ret_register): Return unsigned int
3578 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3579 it to avr_libcall_value.
3580 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3582 (avr_expand_binop_builtin): Ditto.
3583 (avr_expand_unop_builtin): Ditto.
3585 2011-05-10 DJ Delorie <dj@redhat.com>
3587 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3588 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3589 * config/rx/rx.c (rx_align_for_label): Add label and
3590 uses_threshold parameters. Do not align when the label is not
3592 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3594 2011-05-10 Richard Guenther <rguenther@suse.de>
3596 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3597 a series of conversions and apply foldings similar to what
3599 (tree_ssa_forward_propagate_single_use_vars): Call it.
3601 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3603 PR tree-optimization/48611
3604 PR tree-optimization/48794
3605 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3606 referenced from RESX or EH_DISPATCH arguments.
3609 * dfp.c (decimal_to_decnumber): Handle conversion from
3610 dconst{1,2,m1,half}.
3612 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3614 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3615 for !flag_prefer_avx128.
3616 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3618 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3620 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3621 (fold_ternary_loc): Use expr_location_or.
3623 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3626 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3627 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3628 Pmode and mem_mode is not VOIDmode.
3630 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3632 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3633 TYPE_QUAL_RESTRICT): Convert to enum.
3635 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3637 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3638 (const_pow2_1_to_8_operand): Ditto.
3639 (const_pow2_1_to_128_operand): Ditto.
3640 (const_pow2_1_to_32768_operand): Ditto.
3641 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3642 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3643 in insn constraint to check integer value of operand 3.
3644 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3646 (PINSR_MODE): New mode iterator.
3647 (sse2p4_1): New mode attribute.
3648 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3649 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3650 iterator. Use const_int_operand instead of
3651 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3652 exact_log2 in insn constraint to check integer value of operand 3.
3654 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3656 * config/i386/sse.md (blendbits): Remove mode attribute.
3657 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3658 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3659 Check integer value of operand 3 in insn constraint.
3661 2011-05-09 Richard Guenther <rguenther@suse.de>
3663 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3665 (lto_symtab_merge): Likewise. Do not register types here.
3666 (lto_symtab_merge_decls_2): Likewise.
3667 (lto_symtab_merge_decls_1): Likewise.
3668 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3669 * gimple.c (enum gtc_mode): Declare.
3670 (gimple_types_compatible_p): Make static.
3672 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3674 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3675 temporary register to match Pmode.
3677 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3679 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3680 and *vec_concatv4si_1_avx.
3682 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3684 PR rtl-optimization/48927
3685 * ira-conflicts.c (commutative_constraint_p): Use
3686 recog_data.alternative_enabled_p to disable alternatives where
3687 "enabled" attribute is false.
3688 (get_dup_num): Ditto.
3689 * ira-lives.c (single_reg_class): Ditto.
3690 (ira_implicitly_set_insn_hard_regs): Ditto.
3692 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3694 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3695 (dataflow_set_preserve_mem_locs): Likewise.
3697 2011-05-09 Philipp Thomas <pth@suse.de>
3699 * config/mep/mep.c (mep_validate_vliw): Syntax description
3700 should not be translated.
3702 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3704 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3705 * config/mips/mips-tables.opt: New file (generated).
3706 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3707 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3708 MIPS_ARCH_OPTION_NATIVE): Define.
3709 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3711 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3712 mips_parse_cpu): Remove.
3713 (mips_cpu_info_from_opt, mips_default_arch): New.
3714 (mips_handle_option): Don't assert that global structures are in
3715 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3716 (mips_option_override): Use new variables and functions to set
3717 state of these options. Use strcmp to check for individual CPU names.
3718 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3720 * config/mips/mips.opt (march=): Use ToLower and Enum.
3721 (mips): Use ToLower, Enum and Var.
3722 (mtune=): Use ToLower and Enum.
3723 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3725 2011-05-08 Jan Hubicka <jh@suse.cz>
3727 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3728 Arrange type pairs to be UID ordered.
3729 (gimple_lookup_type_leader): Make inline.
3731 2011-05-09 Nick Clifton <nickc@redhat.com>
3734 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3738 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3741 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3743 * combine.c (simplify_comparison): Abstract out parts into...
3744 (simplify_compare_const): ... new function.
3745 (try_combine): Generalize parallel arithmetic/compare combining
3746 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3748 2011-05-08 Jan Hubicka <jh@suse.cz>
3750 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3751 (cgraph_create_virtual_clone): Call hooks once virtual clone
3753 * cgraph.h (cgraph_clone_node): Update prototype.
3754 * ipa-cp.c (ipcp_estimate_growth): Use
3755 estimate_ipcp_clone_size_and_time.
3756 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3757 * lto-cgraph.c (input_node): Update.
3758 * ipa-inline.c (recursive_inlining): Update.
3759 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3760 (evaluate_conditions_for_known_args): Break out from ...
3761 (evaluate_conditions_for_edge): ... here.
3762 (evaluate_conditions_for_ipcp_clone): New function.
3763 (inline_node_duplication_hook): Update clone summary based
3765 (estimate_callee_size_and_time): Rename to ...
3766 (estimate_node_size_and_time): take NODE instead of EDGE;
3767 take POSSIBLE_TRUTHS as argument.
3768 (estimate_callee_size_and_time): Update.
3769 (estimate_ipcp_clone_size_and_time): New function.
3770 (do_estimate_edge_time): Update.
3772 2011-05-08 Richard Guenther <rguenther@suse.de>
3776 * expmed.c (expand_shift_1): Compute adjusted constant shift
3779 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3781 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3783 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3785 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3787 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3789 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3791 2011-05-07 Jan Hubicka <jh@suse.cz>
3793 * ipa-inline-transform.c (inline_call): Account when program size
3795 * ipa-inline.c (relative_time_benefit): New function.
3796 (edge_badness): Reorganize to be power 2 based; fix thinko when
3797 computing badness for negative growth; update comments to match
3798 reality; better dumps.
3800 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3802 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3803 type to bool and adjust comment.
3804 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3805 (fold_mathfn_compare): Remove calls to global_bindings_p.
3806 (fold_inf_compare): Likewise.
3807 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3808 * c-tree.h (global_bindings_p): Adjust prototype.
3809 * c-decl.c (global_bindings_p): Return bool and simplify.
3811 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3813 PR tree-optimization/48837
3814 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3815 when accumulator transformation is performed.
3817 2011-05-06 Jan Hubicka <jh@suse.cz>
3819 * i386.h (ix86_tune_indices): Add
3820 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3821 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3822 * i386.c (initial_ix86_tune_features): Add
3823 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3824 (software_prefetching_beneficial_p): Remove predicate.
3825 (ix86_option_override_internal): Use new macro.
3827 2011-05-06 Jan Hubicka <jh@suse.cz>
3829 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3831 2011-05-06 Jan Hubicka <jh@suse.cz>
3833 * cgraph.c (cgraph_add_thunk): Create real function node instead
3834 of alias node; finalize it and mark needed/reachale; arrange visibility
3835 to be right and add it into the corresponding same comdat group list.
3836 (dump_cgraph_node): Dump thunks.
3837 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3838 cgraph_function_with_gimple_body_p,
3839 cgraph_first_function_with_gimple_body,
3840 cgraph_next_function_with_gimple_body): New functions.
3841 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3843 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3844 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3845 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3846 devirtualization when optimizing.
3847 (verify_cgraph_node): Verify thunks.
3848 (cgraph_analyze_function): Analyze thunks.
3849 (cgraph_mark_functions_to_output): Output thunks only in combination
3850 with function they are assigned to.
3851 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3852 alias into normal node.
3853 (assemble_thunks): New functoin.
3854 (cgraph_expand_function): Use it.
3855 * lto-cgraph.c (lto_output_node): Stream thunks.
3856 (input_overwrite_node): Stream in thunks.
3857 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3858 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3859 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3860 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3861 (inline_analyze_function): Do not care about thunk jump functions.
3862 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3863 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3864 cgraph_function_with_gimple_body_p.
3865 * passes.c (do_per_function_toporder): Use
3866 cgraph_function_with_gimple_body_p.
3867 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3868 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3869 (function_called_by_processed_nodes_p): Likewise.
3871 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3873 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3874 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3876 (mabi=): Replace with separate entries for mabi=altivec,
3877 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3878 mabi=ieeelongdouble and mabi=ibmlongdouble.
3879 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3880 check for -mabi=spe without SPE ABI support here.
3881 (rs6000_handle_option): Replace OPT_mabi_ handling with
3882 OPT_mabi_altivec and OPT_mabi_spe handling.
3884 2011-05-06 Cary Coutant <ccoutant@google.com>
3886 * dwarf2out.c (contains_subprogram_definition): New function.
3887 (should_move_die_to_comdat): Call it.
3889 2011-05-06 Jeff Law <law@redhat.com>
3891 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3892 remove_ctrl_stmt_and_useless_edges.
3893 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3894 (fixup_template_block, thread_single_edge): Likewise.
3895 (mark_threaded_blocks): Use THREAD_TARGET.
3897 2011-05-06 Alan Modra <amodra@gmail.com>
3900 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3901 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3903 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3905 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3906 constraint modifier to "r".
3908 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3910 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3911 fall through for OPT_mcmodel_.
3913 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3915 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3917 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3919 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3922 * config/arm/arm.opt (marm): Document it.
3923 (mthumb): Reject negative variant.
3925 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3928 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3929 Fix typo in "ccvt" variable name.
3931 2011-05-06 Tristan Gingold <gingold@adacore.com>
3934 * config/vms/vms-ar.c (main): Remove cwd variable.
3936 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3939 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3941 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3943 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3944 * gimplify.c (gimplify_switch_expr): Likewise.
3945 * omp-low.c (expand_omp_sections): Likewise.
3946 * tree-eh.c (lower_try_finally_switch): Likewise.
3947 (lower_eh_dispatch): Likewise.
3948 * tree.h (build_case_label): Declare.
3949 * tree.c (build_case_label): Define.
3951 2011-05-05 Jason Merrill <jason@redhat.com>
3954 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3955 (copy_statement_list): Don't recurse.
3956 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3959 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3961 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3962 through from -mfpu= handling.
3963 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3965 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3967 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3970 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3972 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3974 (hppa[12]*-*-hpux11*): Ditto.
3975 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3976 * config/ia64/hpux-unix2003.h: New.
3977 * config/pa/pa-hpux1131.opt: New.
3978 * config/pa/pa-hpux1131.h: New.
3979 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3980 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3981 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3983 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3986 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3987 instead of mode as 3rd argument to recursive call.
3988 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3989 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3991 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3992 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3993 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3994 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3996 2011-05-05 Julian Brown <julian@codesourcery.com>
3998 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3999 parenthesis in D-register case.
4001 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4003 * opt-functions.awk (var_type_struct): Handle Enum options.
4004 * optc-gen.awk: Don't check range of variables of character type.
4005 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4006 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4007 rs6000_sdata_name, rs6000_explicit_options): Remove.
4008 (rs6000_option_override_internal): Check for -malign-power here.
4009 Use global_options_set instead of rs6000_explicit_options.
4010 (rs6000_parse_fpu_option): Remove.
4011 (rs6000_handle_option): Access variables via opts and opts_set
4012 pointers. Use error_at and warning_at. Add fall-through
4013 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4014 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4015 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4016 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4017 here. Don't use rs6000_parse_fpu_option.
4018 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4019 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4020 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4022 (mspe): Use Var and Save.
4023 (mtraceback=): Use Enum and Var.
4024 (rs6000_traceback_type): New Enum and EnumValue entries.
4025 (mfloat-gprs=): Use Enum, Var and Save.
4026 (rs6000_float_gprs): New Enum and EnumValue entries.
4027 (mlong-double-): use Var and Save.
4028 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4029 (malign-): Use Enum and Var.
4030 (rs6000_alignment_flags): New Enum and EnumValue entries.
4032 (fpu_type_t): New Enum and EnumValue entries.
4033 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4034 global_options_set instead of rs6000_explicit_options.
4035 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4036 global_options_set instead of rs6000_explicit_options.
4037 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4038 global_options_set instead of rs6000_explicit_options.
4039 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4040 global_options_set instead of rs6000_explicit_options.
4041 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4042 global_options_set instead of rs6000_explicit_options.
4043 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4044 global_options_set instead of rs6000_explicit_options.
4045 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4047 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4048 global_options_set instead of rs6000_explicit_options.
4049 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4050 (rs6000_cmodel): New Enum and EnumValue entries.
4051 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4052 global_options_set instead of rs6000_explicit_options.
4053 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4054 (mtls-size=): Use Enum and Var.
4055 (rs6000_tls_size): New Enum and EnumValue entries.
4057 2011-05-05 Michael Matz <matz@suse.de>
4059 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4060 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4061 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4062 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4063 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4064 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4065 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4066 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4067 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4068 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4069 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4070 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4071 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4072 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4073 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4074 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4076 2011-05-05 Richard Guenther <rguenther@suse.de>
4078 * expmed.c (expand_variable_shift): Rename to ...
4079 (expand_shift_1): ... this. Take an expanded shift amount.
4080 For rotates recurse directly not building trees for the shift amount.
4081 (expand_variable_shift): Wrap around expand_shift_1.
4082 (expand_shift): Adjust.
4084 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4086 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4088 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4090 * tree.h (get_pending_sizes): Remove prototype.
4091 (put_pending_size): Likewise.
4092 (put_pending_sizes): Likewise.
4093 * stor-layout.c (pending_sizes): Delete.
4094 (get_pending_sizes): Likewise.
4095 (put_pending_size): Likewise.
4096 (put_pending_sizes): Likewise.
4097 (variable_size): Do not call put_pending_size and tidy up.
4098 * function.h (struct function): Remove dont_save_pending_sizes_p.
4099 * lto-streamer-in.c (input_function): Do not stream it.
4100 * lto-streamer-out.c (output_function): Likewise.
4101 * tree-inline.c (initialize_cfun): Do not copy it.
4102 * c-decl.c (store_parm_decls): Do not set it.
4103 * omp-low.c (create_task_copyfn): Likewise.
4104 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4106 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4108 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4110 (*movdf_internal): Ditto.
4111 (*movdf_internal_nointeger): Ditto.
4112 (*movsf_internal): Ditto.
4114 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4116 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4117 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4118 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4119 (c_variable_size): Remove.
4120 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4121 call put_pending_sizes.
4122 (get_parm_info): Add parameter expr. Use it to set
4123 arg_info->pending_sizes.
4124 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4126 * c-parser.c (c_parser_parms_declarator): Update call to
4127 c_parser_parms_list_declarator.
4128 (c_parser_parms_list_declarator): Take parameter expr. Update
4129 call to push_parm_decl. Update recursive call. Don't call
4130 get_pending_sizes. Update calls to get_parm_info.
4131 (c_parser_objc_method_definition): Update calls to
4132 c_parser_objc_method_decl and objc_start_method_definition.
4133 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4134 (c_parser_objc_method_decl): Add parameter expr. Update call to
4136 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4137 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4138 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4140 2011-05-05 Michael Hope <michael.hope@linaro.org>
4143 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4146 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4148 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4149 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4150 (spu_output_mi_thunk): New function.
4152 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4154 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4155 targetm.asm_out.print_operand.
4156 * config/sol2.c: Include target.h.
4158 2011-05-04 Jan Hubicka <jh@suse.cz>
4160 * ipa-inline.c (reset_edge_caches): New function.
4161 (update_caller_keys): Add check_inlinablity_for; do not
4162 reset edge caches; remove now unnecesary loop.
4163 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4164 (update_all_callee_keys): Likewise.
4165 (inline_small_functions): Sanity check cache; update code
4168 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4170 PR rtl-optimization/47612
4171 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4172 as the last insn of the sequence to be moved.
4174 2011-05-04 Tobias Burnus <burnus@net-b.de>
4177 * doc/invoke.texi (Ofast): Document that it
4178 enables Fortran's -fno-protect-parens.
4180 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4182 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4184 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4186 * stor-layout.c (variable_size): Do not issue errors.
4188 2011-05-04 Richard Guenther <rguenther@suse.de>
4190 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4191 for array-ref indices.
4192 (tree_coverage_counter_addr): Likewise.
4193 (build_fn_info_type): Use size_int for index types.
4194 (build_gcov_info): Likewise.
4196 2011-05-04 Richard Guenther <rguenther@suse.de>
4198 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4200 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4201 for constructor indices.
4202 (push_init_level): Likewise.
4204 2011-05-04 Richard Guenther <rguenther@suse.de>
4206 * explow.c (promote_mode): Move variable declarations before code.
4208 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4210 * tree.h (build_function_type_array): Declare.
4211 (build_varargs_function_type_array): Declare.
4212 (build_function_type_vec, build_varargs_function_type_vec): Define.
4213 * tree.c (build_function_type_array_1): New function.
4214 (build_function_type_array): New function.
4215 (build_varargs_function_type_array): New function.
4217 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4219 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4220 before setting STMT_VINFO_TYPE.
4222 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4224 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4225 instead of spu_pass_by_reference.
4227 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4229 * calls.c (emit_library_call_value_1): Invoke
4230 promote_function_mode hook on libcall arguments.
4231 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4232 argument being NULL.
4233 * targhooks.c (default_promote_function_mode): Lisewise.
4234 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4235 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4237 * doc/tm.texi: Document that TYPE argument might be NULL.
4239 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4241 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4243 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4246 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4248 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4250 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4251 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4253 * mips-tfile.c: ... here.
4254 Don't include coretypes.h, tm.h, filenames.h.
4255 (saber_stop): Remove definition and all calls.
4256 [__SABER__]: Remove.
4257 (__LINE__): Remove default.
4258 (Size_t, Ptrdiff_t): Remove definitions.
4259 Replace by size_t, ptrdiff_t.
4260 [!MIPS_DEBUGGING_INFO]: Remove.
4261 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4262 (progname): Add const.
4264 Replace all uses by static.
4265 (ALIGN_SYMTABLE_OFFSET): Remove default.
4266 * mips-tdump.c: Don't include coretypes.h, tm.h.
4267 Remove !MIPS_IS_STAB guard.
4268 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4269 $(TM_H), filenames.h dependencies.
4270 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4272 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4275 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4276 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4278 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4281 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4282 account and save/restore RETS.
4283 (PROFILE_BEFORE_PROLOGUE): Define.
4284 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4285 the push insn to use predecrement.
4287 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4290 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4292 2011-05-04 Nick Clifton <nickc@redhat.com>
4294 * config/mn10300/mn10300.c: Include cfgloop.h.
4296 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4297 Lcc or a FLcc insn into the instruction stream.
4298 (mn10300_block_contains_call): New function. Returns true if the
4299 given basic block contains a CALL insn.
4300 (mn10300_loop_contains_call_insn): New function. Returns true if
4301 the given loop contains a CALL insn.
4302 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4303 to use the SETLB and Lcc or FLcc insns.
4304 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4305 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4306 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4307 disable the SETLB optimization.
4308 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4309 __SETLB__ or __NO_SETLB__.
4310 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4311 (movsf_internal): Handle MDR register.
4312 (cmpsi): Make visible.
4313 (setlb): New pattern.
4315 (FLcc): New pattern.
4317 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4320 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4321 for reg<->xmm moves.
4322 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4323 (vec_concatv2di_rex64_sse): Ditto.
4324 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4325 (*vec_extractv2di_1_rex64): Ditto.
4328 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4330 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4332 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4334 2011-05-04 Richard Guenther <rguenther@suse.de>
4336 * tree.h (int_const_binop): Remove notrunc argument.
4337 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4338 create integer constants that are properly truncated.
4339 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4340 (const_binop): Remove zero notrunc argument to int_const_binop.
4341 (size_binop_loc): Likewise.
4342 (fold_div_compare): Likewise.
4343 (maybe_canonicalize_comparison_1): Likewise.
4344 (fold_comparison): Likewise.
4345 (fold_binary_loc): Likewise.
4346 (multiple_of_p): Likewise.
4347 * expr.c (store_constructor): Likewise.
4348 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4349 (maybe_fold_stmt_addition): Likewise.
4350 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4351 * stor-layout.c (layout_type): Likewise.
4352 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4353 * tree-sra.c (build_ref_for_offset): Likewise.
4354 (build_user_friendly_ref_for_offset): Likewise.
4355 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4356 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4357 * tree-ssa-loop-niter.c (inverse): Likewise.
4358 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4359 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4360 * tree-switch-conversion.c (check_range): Likewise.
4361 (build_constructors): Likewise.
4362 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4363 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4364 (extract_range_from_assert): Likewise.
4365 (vrp_int_const_binop): Likewise.
4366 (extract_range_from_binary_expr): Likewise.
4367 (extract_range_from_unary_expr): Likewise.
4368 (check_array_ref): Likewise.
4369 (find_case_label_range): Likewise.
4370 (simplify_div_or_mod_using_ranges): Likewise.
4371 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4372 comparing case labels for merging.
4374 2011-05-03 Mark Wielaard <mjw@redhat.com>
4376 * dwarf2out.c (debug_str_hash_forced): Removed.
4377 (gen_label_for_indirect_string): Removed.
4378 (get_debug_string_label): Removed.
4379 (AT_string_form): Generate label directly.
4380 (output_indirect_string): Test indirect_string_node for
4381 DW_FORM_strp instead of checking label and refcount.
4382 (prune_indirect_string): Removed.
4383 (prune_unused_types): Don't check debug_str_hash_forced or
4384 call prune_indirect_string.
4386 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4389 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4391 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4395 * combine.c (try_combine): Skip debug insns at m_split tests.
4397 2011-04-26 Mark Wielaard <mjw@redhat.com>
4400 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4401 when info_section_emitted.
4403 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4405 * config/mips/mips-opts.h: New.
4406 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4408 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4409 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4410 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4412 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4414 (mips_abi, mips_code_readable): Don't declare.
4415 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4416 (mabi=): Use Enum and Var.
4417 (mips_abi): New Enum and EnumValue entries.
4418 (mcode-readable=): Use Enum and Var.
4419 (mips_code_readable_setting): New Enum and EnumValue entries.
4420 (mr10k-cache-barrier=): Use Enum and Var.
4421 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4423 2011-05-03 Jan Hubicka <jh@suse.cz>
4425 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4426 replace hash by pointer map.
4427 (cgraph_node_set_element_def, cgraph_node_set_element,
4428 const_cgraph_node_set_element, varpool_node_set_element_def,
4429 varpool_node_set_element, const_varpool_node_set_element): Remove.
4430 (free_cgraph_node_set, free_varpool_node_set): New function.
4431 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4432 * tree-emutls.c: Free varpool node set.
4433 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4434 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4435 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4436 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4437 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4438 Move here from ipa.c; implement using pointer_map
4439 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4440 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4441 debug_cgraph_node_set, varpool_node_set_new,
4442 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4443 dump_varpool_node_set, debug_varpool_node_set):
4444 Move to ipa-uitls.c.
4445 * passes.c (ipa_write_summaries): Update.
4447 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4449 From Mike Frysinger:
4450 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4451 bf542/bf544/bf547/bf548/bf549.
4453 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4455 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4457 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4460 * config/bfin/bfin.md (MOVCC): New mode_macro.
4461 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4462 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4463 comments from generated assembly.
4465 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4468 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4469 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4470 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4471 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4472 * config/bfin/lib1funcs.asm (___muldi3): New function.
4474 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4476 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4477 build_function_type_list instead of build_function_type.
4478 Rearrange initialization of `args' to do so.
4480 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4482 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4483 instead of build_function_type.
4485 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4487 * config/rs6000/rs6000.c (spe_init_builtins): Call
4488 build_function_type_list instead of build_function_type.
4489 (paired_init_builtins, altivec_init_builtins): Likewise.
4490 (builtin_function_type): Likewise.
4492 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4494 * config/sh/sh.c (sh_media_init_builtins): Call
4495 build_function_type_list instead of build_function_type.
4497 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4499 * config/sparc/sparc.c (sparc_file_end): Call
4500 build_function_type_list instead of build_function_type.
4502 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4504 * config/alpha/alpha.c (alpha_init_builtins): Call
4505 build_function_type_list instead of build_function_type.
4507 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4509 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4510 build_function_type_list instead of build_function_type.
4512 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4514 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4515 build_function_type_list instead of build_function_type.
4516 Delete `endlink' variable.
4518 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4520 * config/avr/avr.c (avr_init_builtins): Call
4521 build_function_type_list instead of build_function_type.
4523 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4525 * config/picochip/picochip.c (picochip_init_builtins): Call
4526 build_function_type_list instead of build_function_type.
4527 Delete `endlink' variable.
4529 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4531 * config/bfin/bfin.c (bfin_init_builtins): Call
4532 build_function_type_list instead of build_function_type.
4534 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4537 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4538 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4540 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4543 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4544 libbffastfp overrides libgcc when -mfast-fp.
4546 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4548 Originally from Bernd Schmidt
4549 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4550 * config/bfin/bfin.c (override_options): Test it and error if
4553 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4555 Originally From Bernd Schmidt
4556 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4559 2011-05-03 Jeff Law <law@redhat.com>
4561 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4562 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4563 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4564 than accessing AUX field directly. Free the AUX field before
4566 (thread_block, thread_through_loop_header): Likewise.
4567 (thread_single_edge, mark_threaded_blocks): Likewise.
4568 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4569 (register_jump_thread): Do not attempt to thread to a NULL edge.
4571 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4573 * function.c (init_function_start): Call decide_function_section.
4574 * varasm.c (decide_function_section): New function.
4575 (assemble_start_function): When not using
4576 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4577 or first_function_block_is_cold.
4578 * rtl.h (decide_function_section): Declare.
4580 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4581 Jakub Jelinek <jakub@redhat.com>
4584 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4585 only succeed if req_mode is the same as set_mode.
4587 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4589 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4590 * genemit.c (gen_exp): Handle RETURN.
4591 * emit-rtl.c (verify_rtx_sharing): Likewise.
4592 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4593 * rtl.c (copy_rtx): RETURN is shared.
4594 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4596 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4597 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4598 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4599 * config/cris/cris.c (cris_expand_return): Likewise.
4600 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4601 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4602 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4603 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4604 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4606 * config/v850/v850.c (expand_epilogue): Likewise.
4607 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4608 * config/arm/arm.md (epilogue): Likewise.
4609 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4610 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4611 variable to ret_reg.
4613 2011-05-03 Richard Guenther <rguenther@suse.de>
4616 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4617 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4618 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4620 2011-05-03 Richard Guenther <rguenther@suse.de>
4622 * c-decl.c (grokdeclarator): Instead of looking at
4623 TREE_OVERFLOW check if the constant fits in the index type.
4625 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4627 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4628 (vec_store_lanes<mode><mode>): Likewise.
4630 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4632 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4633 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4634 convert_optab_index values.
4635 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4636 * genopinit.c (optabs): Initialize the new optabs.
4637 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4638 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4639 (expand_STORE_LANES): New functions.
4640 * tree.h (build_array_type_nelts): Declare.
4641 * tree.c (build_array_type_nelts): New function.
4642 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4643 (vect_model_load_cost): Likewise.
4644 (vect_store_lanes_supported, vect_load_lanes_supported)
4645 (vect_record_strided_load_vectors): Declare.
4646 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4647 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4648 (vect_transform_strided_load): Split out statement recording into...
4649 (vect_record_strided_load_vectors): ...this new function.
4650 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4651 (write_vector_array, create_array_ref): New functions.
4652 (vect_model_store_cost): Add store_lanes_p argument.
4653 (vect_model_load_cost): Add load_lanes_p argument.
4654 (vectorizable_store): Try to use store-lanes functions for
4656 (vectorizable_load): Likewise load-lanes and loads.
4657 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4658 to vect_model_store_cost.
4659 (vect_build_slp_tree): Likewise vect_model_load_cost.
4661 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4663 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4664 * hooks.c (hook_bool_mode_uhwi_false): New function.
4665 * target.def (array_mode_supported_p): New hook.
4666 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4667 * doc/tm.texi: Regenerate.
4668 * stor-layout.c (mode_for_array): New function.
4669 (layout_type): Use it.
4670 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4671 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4673 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4676 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4677 for -fstack-check if the size to allocate is negative.
4679 2011-05-02 Lawrence Crowl <crowl@google.com>
4681 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4682 (timevar_cond_start): New for starting a timer only when it is not
4684 (timevar_cond_stop): New for stopping a timer when it was not already
4687 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4688 (timevar_cond_start): New as above.
4689 (timevar_cond_stop): New as above.
4691 * timevar.def: Add start/stop timers for compiler phases,
4692 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4693 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4694 and TV_PHASE_FINALIZE.
4695 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4696 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4697 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4698 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4699 Make unused TV_OVERLOAD into a start/stop timer.
4701 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4702 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4703 to indicate that they are start/stop timers.
4705 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4706 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4707 Move initialization to do_compile.
4708 (do_compile): Add initialization from above.
4709 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4711 * c-decl.c (c_write_global_declarations): Add start/stop of
4712 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4714 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4715 or TV_PARSE_INLINE, as appropriate.
4716 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4717 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4719 2011-05-02 Jason Merrill <jason@redhat.com>
4722 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4724 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4727 * c-decl.c (finish_decl): Only create a composite if the types are
4730 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4732 * config/fr30/fr30-protos.h (Mmode): Don't define.
4733 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4734 definition where used.
4735 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4736 define. Expand definitions where used.
4737 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4738 Expand definitions where used.
4739 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4740 rx_function_arg, rx_function_arg_advance,
4741 rx_function_arg_boundary): Expand definitions of those macros.
4742 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4743 definition where used.
4745 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4747 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4749 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4750 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4751 with *movv2sf_internal_rex64_avx.
4752 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4753 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4754 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4755 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4756 "vex" in "prefix" attribute calculation.
4757 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4759 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4762 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4763 inputs match the output.
4765 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4768 * config/m68k/m68k.c (m68k_expand_prologue): Set
4769 current_function_static_stack_size.
4771 2011-05-02 Jan Hubicka <jh@suse.cz>
4773 * lto-streamer.c (lto_streamer_cache_insert_1,
4774 lto_streamer_cache_lookup, lto_streamer_cache_create,
4775 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4776 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4778 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4780 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4781 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4782 config/m68k/t-opts: New files.
4783 * config/m68k/m68k-tables.opt: New file (generated).
4784 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4785 extra_options and m68k/t-opts to tmake_file.
4786 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4787 (all_isas): Initialize using m68k-isas.def.
4788 (all_microarchs): Initialize using m68k-microarchs.def.
4789 (m68k_find_selection): Remove.
4790 (m68k_handle_option): Don't assert that global structures are in
4791 use. Use error_at. Access variables via opts pointer. Don't
4792 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4793 directly for -m68020-40 and -m68020-60.
4794 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4795 m68k_tune_entry here.
4796 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4798 (m68k_library_id_string): Remove declaration.
4799 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4800 (m68k_library_id_string): New Variable.
4801 (march=, mcpu=, mtune=): Use Enum and Var.
4803 2011-05-02 Richard Guenther <rguenther@suse.de>
4805 * varasm.c (output_constructor_regular_field): Compute zero-based
4806 index with double-ints. Make sure to ICE instead of producing
4808 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4809 in asserts. Properly use a signed type.
4811 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4813 * config/i386/sse.md (V): New mode iterator.
4814 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4816 (V_256): Rename from AVX256MODE.
4817 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4818 condition to all users.
4820 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4821 condition to all users.
4822 (VF_128): Make V4SF mode unconditional.
4823 (VF_256): Rename from AVX256MODEF2P.
4824 (VI4F_128): Rename from SSEMODE4S.
4825 (VI8F_128): Rename from SSEMODE2D.
4826 (VI4F_256): Rename from AVX256MODE8P.
4827 (VI8F_256): Rename from AVX256MODE4P.
4828 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4829 (ssescalarmodesuffix): Remove SF and DF modes.
4830 (SSEMODE124): Remove.
4831 (SSEMODE1248): Ditto.
4832 (SSEMODEF2P): Ditto.
4833 (AVXMODEF2P): Ditto.
4834 (AVXMODEFDP): Ditto.
4835 (AVXMODEFSP): Ditto.
4836 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4838 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4840 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4841 xop_pcmov_<mode>256. Use V mode iterator.
4843 Adjust RTX patterns globally for renamed mode attributes.
4845 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4847 * haifa-sched.c (sched_emit_insn): Emit insn before first
4848 non-scheduled insn. Inform back-end about new insn. Add
4849 new insn to scheduled_insns list.
4851 2011-05-02 Richard Guenther <rguenther@suse.de>
4853 PR tree-optimization/48822
4854 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4855 (process_scc): Indicate which iteration we start.
4857 2011-05-02 Jan Hubicka <jh@suse.cz>
4859 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4860 (lto_section_overrun): New.
4861 * lto-section-out.c (append_block): Rename to ...
4862 (lto_append_block): ... this one; export.
4863 (lto_output_1_stream): Move lto lto-streamer.h
4864 (lto_output_data_stream): Update.
4865 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4866 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4869 2011-05-02 Richard Guenther <rguenther@suse.de>
4871 * tree.c (tree_code_counts): New global array.
4872 (record_node_allocation_statistics): Count individual tree codes.
4873 (dump_tree_statistics): Dump individual code stats.
4875 2011-05-01 Jan Hubicka <jh@suse.cz>
4877 * ipa-inline.c (caller_growth_limits): Fix thinko when
4878 looking for largest stack frame.
4879 * ipa-inline.h (dump_inline_summary): Declare.
4880 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4882 (dump_inline_summary): Export.
4883 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4885 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4887 * reginfo.c (memory_move_cost): Change rclass argument type form
4888 'enum reg_class' to reg_class_t.
4889 * reload.h (memory_move_cost): Update prototype.
4890 * postreload.c reload_cse_simplify_set): Change type dclass var to
4892 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4894 (ira_allocate_and_set_costs): Change aclass argument type form
4895 'enum reg_class' to reg_class_t.
4896 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4897 Change aclass argument type to reg_class_t.
4898 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4900 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4901 memory_move_cost call.
4903 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4904 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4905 Change type tmp var to reg_class_t.
4907 2011-04-30 Jan Hubicka <jh@suse.cz>
4909 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4910 inlining into function with flatten attribute.
4911 (want_inline_small_function_p): Be more realistic about inlining
4912 cold calls where callee size grows.
4914 2011-04-30 Jan Hubicka <jh@suse.cz>
4916 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4919 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4921 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4922 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4923 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4924 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4925 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4926 (print_operand): Rename to...
4927 (sparc_print_operand): ...this. Make static. Adjust
4928 sparc_print_operand function call.
4929 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4932 2011-04-30 Jan Hubicka <jh@suse.cz>
4935 * ipa-inline.c (early_inliner): Disable when doing late
4936 addition of function.
4938 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4940 * dwarf2out.c (get_address_mode): New inline.
4941 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4942 if not dwarf_strict emit
4943 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4944 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4945 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4946 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4947 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4948 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4949 mem_loc_descriptor callers.
4950 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4951 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4952 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4953 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4954 (base_types): New variable.
4955 (get_base_type_offset, calc_base_type_die_sizes,
4956 base_type_for_mode, mark_base_types, base_type_cmp,
4957 move_marked_base_types): New functions.
4958 (calc_die_sizes): Assert that die_offset is 0 or equal to
4960 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4961 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4962 callers. If not dwarf_strict, call mem_loc_descriptor even for
4963 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4964 (gen_subprogram_die): Don't give up on call site parameters
4965 with non-integral or large integral modes. Adjust
4966 mem_loc_descriptor callers.
4967 (prune_unused_types): Call prune_unused_types_mark on base_types
4969 (resolve_addr): Call mark_base_types.
4970 (dwarf2out_finish): Call move_marked_base_types.
4972 PR tree-optimization/48809
4973 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4975 (gen_inbound_check): Don't compute index_expr - range_min in utype
4976 again, instead reuse SSA_NAME initialized in build_arrays.
4977 Remove two useless gsi_for_stmt calls.
4979 2011-04-29 Jeff Law <law@redhat.com>
4981 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4983 2011-04-29 Martin Jambor <mjambor@suse.cz>
4985 * cgraph.h (cgraph_postorder): Remove declaration.
4986 * ipa-utils.h (ipa_free_postorder_info): Declare.
4987 (ipa_reverse_postorder): Likewise.
4988 * cgraphunit.c: Include ipa-utils.h.
4989 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4990 * ipa-inline.c: Include ipa-utils.h.
4991 (ipa_inline): Update call to ipa_reverse_postorder.
4992 * ipa-pure-const.c (propagate_pure_const): Update call to
4993 ipa_reduced_postorder and ipa_print_order. Call
4994 ipa_free_postorder_info to clean up.
4995 (propagate_nothrow): Likewise.
4996 * ipa-reference.c (propagate): Removed a useless call to
4997 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4998 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4999 * ipa.c: Include ipa-utils.h.
5000 (ipa_profile): Update call to ipa_reverse_postorder.
5001 (cgraph_postorder): Moved to...
5002 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5003 (ipa_utils_print_order): Renamed to ipa_print_order.
5004 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5006 (ipa_free_postorder_info): New function.
5007 * passes.c: Include ipa-utils.h.
5008 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5009 (ipa_write_summaries): Likewise.
5010 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5011 (cgraphunit.o): Likewise.
5013 (ipa-inline.o): Likewise.
5015 2011-04-29 Jan Hubicka <jh@suse.cz>
5017 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5018 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5019 * ipa-inline.h (clause_t): Turn into unsigned int.
5020 * ipa-inline-analysis.c (add_clause): Do more simplification.
5021 (and_predicates): Shortcut more cases.
5022 (predicates_equal_p): Move forward; check that clauses are properly
5024 (or_predicates): Shortcut more cases.
5025 (edge_execution_predicate): Rewrite as...
5026 (set_cond_stmt_execution_predicate): ... this function; handle
5027 __builtin_constant_p.
5028 (set_switch_stmt_execution_predicate): New .
5029 (compute_bb_predicates): New.
5030 (will_be_nonconstant_predicate): Update TODO.
5031 (estimate_function_body_sizes): Use compute_bb_predicates
5032 and free them later, always try to estimate if stmt is constant.
5033 (estimate_time_after_inlining, estimate_size_after_inlining):
5034 Gracefully handle optimized out edges.
5035 (read_predicate): Fix off by one error.
5037 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5039 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5041 2011-04-27 Xinliang David Li <davidxl@google.com>
5043 * tree-profile.c (init_ic_make_global_vars): Set
5044 tls attribute on ic vars.
5045 * coverage.c (coverage_end_function): Initialize
5046 function_list with zero.
5048 2011-04-29 Richard Guenther <rguenther@suse.de>
5050 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5051 for the type of the result.
5052 (fold_builtin_isascii): Likewise.
5053 (fold_builtin_toascii): Use integer_type_node where appropriate.
5054 (fold_builtin_logb): Likewise.
5055 (fold_builtin_frexp): Likewise.
5056 (fold_builtin_strstr): Likewise.
5057 (fold_builtin_strpbrk): Likewise.
5058 (fold_builtin_fputs): Likewise.
5059 (fold_builtin_sprintf): Likewise.
5060 (fold_builtin_snprintf): Likewise.
5061 (fold_builtin_printf): Likewise.
5062 (do_mpfr_remquo): Use a proper type for the assigned constant.
5063 (do_mpfr_lgamma_r): Likewise.
5064 * dwarf2out.c (resolve_one_addr): Use size_int.
5065 * except.c (init_eh): Likewise.
5066 (assign_filter_values): Use integer_type_node for filter values.
5067 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5069 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5070 for EH region numbers.
5071 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5072 for the shift amount.
5074 2011-04-29 Richard Guenther <rguenther@suse.de>
5076 * expr.h (expand_shift): Rename to ...
5077 (expand_variable_shift): ... this.
5078 (expand_shift): Take a constant shift amount.
5079 * expmed.c (expand_shift): Rename to ...
5080 (expand_variable_shift): ... this.
5081 (expand_shift): New wrapper around expand_variable_shift.
5082 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5083 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5084 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5085 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5086 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5087 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5088 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5089 emit_store_flag_1, emit_store_flag): Likewise.
5090 * builtins.c (expand_builtin_signbit): Likewise.
5091 * calls.c (load_register_parameters): Likewise.
5092 * function.c (assign_parm_setup_block): Likewise.
5093 * lower-subreg.c (resolve_shift_zext): Likewise.
5094 * optabs.c (widen_bswap, expand_abs_nojump,
5095 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5096 * spu/spu.c (spu_expand_extv): Likewise.
5097 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5099 2011-04-29 Richard Guenther <rguenther@suse.de>
5101 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5102 for the remapped region number.
5103 * predict.c (build_predict_expr): Use integer_type_node for the
5105 * fold-const.c (fold_binary_loc): Use integer_type_node for
5106 the shift amount. Use a proper type for the PLUS_EXPR operand.
5108 2011-04-29 Michael Matz <matz@suse.de>
5110 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5111 other trees that just builtins.
5112 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5114 2011-04-29 Richard Guenther <rguenther@suse.de>
5116 * tree-nested.c (get_trampoline_type): Use size_int.
5117 (get_nl_goto_field): Likewise.
5118 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5120 (lower_eh_constructs_2): Likewise.
5121 (lower_resx): Likewise.
5122 (lower_eh_dispatch): Likewise.
5123 * tree-mudflap.c (mf_build_string): Use size_int.
5124 (mudflap_register_call): Use integer_type_node for the flag.
5125 (mudflap_enqueue_constant): Use size_int.
5126 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5127 instead of rebuilding it.
5129 2011-04-29 Richard Guenther <rguenther@suse.de>
5131 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5132 Handle OBJ_TYPE_REF.
5133 (find_func_aliases_for_call): Use it more consistently.
5135 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5137 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5138 (rank_for_schedule): Use it.
5139 (schedule_block): Set it.
5141 2011-04-28 David Li <davidxl@google.com>
5143 * tree.c (crc32_string): Use crc32_byte.
5144 (crc32_byte): New function.
5145 * tree.h (crc32_byte): New function.
5146 * gcov.c (read_graph_file): Handle new cfg_cksum.
5147 (read_count_file): Ditto.
5148 * profile.c (instrument_values): Ditto.
5149 (get_exec_counts): Ditto.
5150 (read_profile_edge_counts): Ditto.
5151 (compute_branch_probabilities): Ditto.
5152 (compute_value_histograms): Ditto.
5153 (branch_prob): Ditto.
5154 (end_branch_prob): Ditto.
5155 * coverage.c (read_counts_file): Ditto.
5156 (get_coverage_counts): Ditto.
5157 (tree_coverage_counter_addr): Ditto.
5158 (coverage_checksum_string): Ditto.
5159 (coverage_begin_output): Ditto.
5160 (coverage_end_function): Ditto.
5161 (build_fn_info_type): Ditto.
5162 (build_fn_info_value): Ditto.
5163 * libgcov.c (gcov_exit): Ditto.
5164 * gcov-dump.c (tag_function): Ditto.
5165 (compute_checksum): Remove.
5167 2011-04-29 Alan Modra <amodra@gmail.com>
5169 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5170 unspec plus offset. Tidy macho code.
5172 2011-04-29 Martin Jambor <mjambor@suse.cz>
5174 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5175 node instead of a decl. Update all callers.
5176 * cgraph.h: Update declaration.
5178 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5180 PR tree-optimization/48765
5181 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5182 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5183 to indicate if loop aware SLP is being used. Scan the statements
5184 and update the vectorization factor according to the type of
5185 vectorization before statement analysis.
5186 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5187 pass it to vect_analyze_loop_operations.
5188 (vectorizable_reduction): Set number of copies to 1 in case of pure
5190 * tree-vect-stmts.c (vectorizable_conversion,
5191 vectorizable_assignment, vectorizable_shift,
5192 vectorizable_operation, vectorizable_type_demotion,
5193 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5195 (vectorizable_condition): Move the check that it is not SLP
5196 vectorization before the number of copies check.
5197 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5198 to vectorize the loop using SLP.
5200 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5203 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5206 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5208 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5209 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5210 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5211 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5212 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5214 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5215 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5216 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5217 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5218 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5219 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5221 * config/i386/linux.h (REG_NAME): Don't define.
5222 * config/i386/linux64.h (REG_NAME): Don't define.
5223 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5224 Undefine before defining.
5226 2011-04-28 Jan Hubicka <jh@suse.cz>
5228 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5229 nonconstant_names array.
5230 (estimate_function_body_sizes): Build nonconstant_names array; handle
5231 BUILT_IN_CONSTANT_P.
5233 2011-04-28 Richard Guenther <rguenther@suse.de>
5237 2011-04-28 Richard Guenther <rguenther@suse.de>
5239 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5240 as late as possible.
5242 2011-04-28 Richard Guenther <rguenther@suse.de>
5244 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5245 (debug_constraint): Do it here.
5246 (dump_constraints): And here.
5247 (rewrite_constraints): And here.
5248 (dump_constraint_edge): Remove.
5249 (dump_constraint_graph): Rewrite to produce DOT output.
5250 (solve_constraints): Build succ graph as late as possible.
5251 Dump constraint graphs before and after solving.
5253 2011-04-28 Richard Guenther <rguenther@suse.de>
5255 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5256 New function split out from ...
5257 (find_func_aliases): ... here. Call it.
5258 (find_func_aliases_for_call): Likewise.
5260 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5262 * internal-fn.h (internal_fn_name_array): Declare.
5263 (internal_fn_flags_array): Likewise.
5265 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5267 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5268 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5270 (ssemodefsuffix): Remove.
5271 (ssevecmodesuffix): New mode attribute.
5272 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5273 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5274 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5275 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5276 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5277 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5278 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5279 ssemodesuffix mode attribute.
5280 (float splitters): Use ssevecmodesuffix mode attribute.
5281 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5282 (sseinsmode): Rename from avxvecmode.
5283 (avxsizesuffix): Rename from avxmodesuffix.
5284 (sseintvecmode): Rename from avxpermvecmode.
5285 (ssedoublevecmode): Rename from ssedoublesizemode.
5286 (ssehalfvecmode): Rename from avxhalfvecmode.
5287 (ssescalarmode): Rename from avxscalarmode.
5288 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5289 templates for ssemodesuffix mode attribute.
5290 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5293 Adjust RTX patterns globally for renamed mode attributes.
5295 2011-04-27 Jan Hubcika <jh@suse.cz>
5297 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5298 * ipa-inline-analysis.c: Include alloc-pool.h.
5299 (edge_predicate_pool): New.
5300 (trye_predicate_p): New function
5301 (false_predicate_p): New function.
5302 (add_clause): Sanity check that false clauses are "optimized";
5303 never add clauses to predicate that is already known to be false.
5304 (and_predicate): Use flase_predicate_p.
5305 (evaulate_predicate): Rename to ...
5306 (evaluate_predicate): ... this one; update all callers; assert
5307 that false is not listed among possible truths.
5308 (dump_predicate): Use true_predicate_p.
5309 (account_size_time): Use false_predicate_p.
5310 (evaulate_conditions_for_edge): Rename to ...
5311 (evaluate_conditions_for_edge) ... this one.
5312 (edge_set_predicate): New function.
5313 (inline_edge_duplication_hook): Duplicate edge predicates.
5314 (inline_edge_removal_hook): Free edge predicates.
5315 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5316 (dump_inline_summary): Update.
5317 (estimate_function_body_sizes): Set edge predicates.
5318 (estimate_calls_size_and_time): Handle predicates.
5319 (estimate_callee_size_and_time): Update.
5320 (remap_predicate): Add toplev_predicate; update comment.
5321 (remap_edge_predicates): New function.
5322 (inline_merge_summary): Compute toplev predicate; update.
5323 (read_predicate): New function.
5324 (read_inline_edge_summary): Use it.
5325 (inline_read_section): Likewise.
5326 (write_predicate): New function.
5327 (write_inline_edge_summary): Use it.
5328 (inline_write_summary): Likewise.
5329 (inline_free_summary): Free alloc pool and edge summary vec.
5331 2011-04-27 Richard Guenther <rguenther@suse.de>
5333 * tree-ssa-structalias.c (changed_count): Remove.
5334 (changed): Use a bitmap.
5335 (unify_nodes): Adjust.
5336 (do_sd_constraint): Likewise.
5337 (do_ds_constraint): Likewise.
5338 (do_complex_constraint): Likewise.
5339 (solve_graph): Likewise.
5341 2011-04-27 Jan Hubicka <jh@suse.cz>
5343 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5345 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5347 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5348 (avx_vperm2f128_*_operand): Ditto.
5349 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5350 Use avx_vpermilp_parallel in insn condition.
5351 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5352 Use avx_vperm2f128_parallel in insn condition.
5354 2011-04-27 Richard Guenther <rguenther@suse.de>
5356 * Makefile.in (tree-ssa-structalias.o): Remove
5357 gt-tree-ssa-structalias.h dependency.
5358 (GTFILES): Remove tree-ssa-structalias.c.
5359 * tree.c (allocate_decl_uid): New function.
5360 (make_node_stat): Use it.
5361 (copy_node_stat): Likewise.
5362 * tree.h (allocate_decl_uid): Declare.
5363 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5364 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5365 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5366 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5367 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5368 (struct heapvar_map): Likewise.
5369 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5370 heapvar_insert): Likewise.
5371 (make_heapvar_for): Rename to ...
5372 (make_heapvar): ... this. Simplify.
5373 (fake_var_decl_obstack): New global var.
5374 (build_fake_var_decl): New function.
5375 (make_constraint_from_heapvar): Adjust.
5376 (handle_lhs_call): Likewise.
5377 (create_function_info_for): Likewise.
5378 (intra_create_variable_infos): Likewise.
5379 (init_alias_vars): Allocate fake_var_decl_obstack.
5380 (init_alias_heapvars, delete_alias_heapvars): Remove.
5381 (compute_points_to_sets): Do not call init_alias_heapvars.
5382 (ipa_pta_execute): Likewise.
5383 (delete_points_to_sets): Free fake_var_decl_obstack.
5385 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5387 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5388 (si_from_UTItype, si_to_UTItype): New functions.
5389 (__udivmodti4): Use them to implement type-punning.
5390 * config/spu/multi3.c (union qword_TItype): New data type.
5391 (si_from_TItype, si_to_TItype): New functions.
5392 (__multi3): Use them to implement type-punning.
5394 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5396 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5398 2011-04-27 Jan Hubicka <jh@suse.cz>
5400 * ipa-prop.c (function_insertion_hook_holder): New holder.
5401 (ipa_add_new_function): New function.
5402 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5403 Register/deregister holder.
5405 2011-04-27 Richard Guenther <rguenther@suse.de>
5407 PR tree-optimization/48772
5408 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5410 2011-04-27 Richard Guenther <rguenther@suse.de>
5412 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5413 TARGET_MEM_REF handling.
5415 2011-04-27 Nick Clifton <nickc@redhat.com>
5417 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5418 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5419 (REG_CLASS_NAMES): Likewise.
5420 (REG_CLASS_CONTENTS): Likewise.
5421 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5422 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5423 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5424 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5425 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5426 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5427 duplicate register classes.
5428 (frv_class_likely_spilled_p): Likewise.
5429 (frv_register_move_cost): Likewise.
5431 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5432 end of the regno_reg_class array.
5434 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5437 * c-typeck.c (build_binary_op): Don't wrap arguments if
5438 int_operands is true.
5440 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5443 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5444 targetm.calls.must_pass_in_stack for void type.
5446 2011-04-26 Jan Hubicka <jh@suse.cz>
5448 * cgraphbuild.c (build_cgraph_edges): Update call
5449 of cgraph_create_edge and cgraph_create_indirect_edge.
5450 * cgraph.c (cgraph_create_edge_including_clones,
5451 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5452 cgraph_update_edges_for_call_stmt_node): Do not take nest
5453 argument; do not initialize call_stmt_size/time.
5454 (dump_cgraph_node): Do not dump nest.
5455 (cgraph_clone_edge): Do not take loop_nest argument;
5456 do not propagate it; do not clone call_stmt_size/time.
5457 (cgraph_clone_node): Likewise.
5458 (cgraph_create_virtual_clone): Update.
5459 * cgraph.h (struct cgraph_edge): Remove
5460 call_stmt_size/call_stmt_time/loop_nest.
5461 (cgraph_create_edge, cgraph_create_indirect_edge,
5462 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5464 * tree-emutls.c (gen_emutls_addr): Update.
5465 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5466 loop_nest; handle indirect calls, too.
5467 (clone_inlined_nodes): Do not care about updating inline summaries.
5468 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5469 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5470 stream call_stmt_size/call_stmt_time/loop_nest.
5471 * ipa-inline.c (edge_badness): Update.
5472 (ipa_inline): dump summaries after inlining.
5473 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5475 (inline_edge_summary): New function.
5476 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5477 (inline_edge_removal_hook): Handle edge summaries.
5478 (inline_edge_duplication_hook): New hook.
5479 (inline_summary_alloc): Alloc hooks.
5480 (initialize_growth_caches): Do not register removal hooks.
5481 (free_growth_caches); Do not free removal hook.
5482 (dump_inline_edge_summary): New function.
5483 (dump_inline_summary): Use it.
5484 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5485 (inline_update_callee_summaries): New function.
5486 (inline_merge_summary): Use it.
5487 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5488 (read_inline_edge_summary): New function.
5489 (inline_read_section): Use it.
5490 (write_inline_edge_summary): New function.
5491 (inline_write_summary): Use it.
5492 (inline_free_summary): Free edge new holders.
5493 * tree-inline.c (copy_bb): Update.
5495 2011-04-26 Jason Merrill <jason@redhat.com>
5497 * tree-eh.c (lower_try_finally_switch): Create the label along with
5498 the CASE_LABEL_EXPR.
5500 2011-04-26 David S. Miller <davem@davemloft.net>
5501 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5503 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5504 * configure: Regenerate.
5506 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5509 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5511 (VEC_reduc): New code iterator and splitters for vector reduction.
5512 (VEC_reduc_name): Ditto.
5513 (VEC_reduc_rtx): Ditto.
5514 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5515 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5517 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5518 support for extracting SF on VSX.
5520 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5521 generating xscvspdp.
5522 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5523 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5524 double add, minimum, maximum vector reduction.
5525 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5526 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5527 optimize double vector reduction.
5528 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5530 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5532 * config/fr30/fr30.h (inhibit_libc): Don't define.
5533 * config/m32r/m32r-protos.h: Correct comment.
5534 * config/v850/v850.h (GHS_default_section_names,
5535 GHS_current_section_names): Use tree, not union tree_node *.
5537 2011-04-26 Xinliang David Li <davidxl@google.com>
5539 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5540 * c-family/c-opts.c (c_common_handle_option): Set
5541 warn_maybe_uninitialized.
5542 * opts.c (common_handle_option): Ditto.
5543 * common.opt: New option.
5544 * tree-ssa.c (warn_uninit): Add one more parameter.
5545 (warn_uninitialized_var): Pass warning code.
5546 * tree-flow.h: Interface change.
5548 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5550 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5551 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5552 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5554 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5556 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5557 * config/mips/mips.opt (mmips-tfile): Remove.
5559 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5560 mips-tdump reference to ...
5561 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5562 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5563 reference by Tru64 UNIX.
5565 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5568 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5569 is error_mark_node, set value to NULL.
5571 PR tree-optimization/48734
5572 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5573 if return value from maybe_fold_*_comparsions isn't something
5574 the code is prepared to handle.
5576 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5578 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5580 (ext_QIreg_nomode_operands): Remove.
5581 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5585 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5587 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5589 2011-04-26 Richard Guenther <rguenther@suse.de>
5591 * c-typeck.c (build_unary_op): Do not expand array-refs via
5592 pointer arithmetic. Only adjust qualifiers for function types.
5594 2011-04-26 Richard Guenther <rguenther@suse.de>
5597 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5598 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5599 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5600 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5602 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5604 * doc/extend.texi: Document __underlying_type.
5606 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5608 * config/rs6000/titan.md (automata_option "progress"): Remove.
5610 2011-04-25 Jeff Law <law@redhat.com>
5612 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5614 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 * system.h (ENUM_BITFIELD): Remove.
5618 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5619 Eric Botcazou <ebotcazou@adacore.com>
5621 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5622 for STORE_FLAG_VALUE==-1 case.
5624 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5627 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5628 LEGITIMATE_PIC_OPERAND_P.
5630 2011-04-24 Jan Hubicka <jh@suse.cz>
5632 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5634 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5635 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5636 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5637 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5638 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5639 Sanity check predicate length.
5640 (remap_predicate): Likewise; sanity check jump functions.
5641 (inline_read_section, inline_write_summary): Sanity check
5644 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5647 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5648 __is_literal_type, and __is_trivial; update throughout about
5649 possibly cv-qualified void types.
5651 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5653 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5654 testsuite and make it version agnostic.
5656 2011-04-22 Jan Hubicka <jh@suse.cz>
5658 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5660 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5663 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5664 to VOID_TYPE even around MODIFY_EXPR.
5666 2011-04-22 Mike Stump <mikestump@comcast.net>
5668 * gensupport.c (read_md_rtx): Fix typo in comment.
5669 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5672 2011-04-22 Jan Hubicka <jh@suse.cz>
5674 * gengtype.c (open_base_files): Add ipa-inline.h include.
5675 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5676 ipa-prop.c; update all uses.
5677 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5678 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5679 merge summary of inlined function into former caller.
5680 * ipa-inline.c (max_benefit): Remove.
5681 (edge_badness): Compensate for removal of benefits.
5682 (update_caller_keys): Use
5683 reset_node_growth_cache/reset_edge_growth_cache.
5684 (update_callee_keys): Likewise.
5685 (update_all_callee_keys): Likewise.
5686 (inline_small_functions): Do not collect max_benefit; do not reset
5687 estimated_growth; call free_growth_caches and initialize_growth_caches.
5688 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5689 struct size_time_entry): New structures.
5690 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5691 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5692 and estimated_growth.
5693 (edge_growth_cache_entry): New structure.
5694 (node_growth_cache, edge_growth_cache): New global vars.
5695 (estimate_growth): Turn into inline.
5696 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5697 initialize_growth_caches, free_growth_caches): Declare.
5698 (estimate_edge_growth): Rewrite.
5699 (estimate_edge_time): Implement as inline cache lookup.
5700 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5702 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5703 (NUM_CONDITIONS): New constant.
5704 (predicate_conditions): New enum.
5705 (IS_NOT_CONSTANT): New constant.
5706 (edge_removal_hook_holder): New var.
5707 (node_growth_cache, edge_growth_cache): New global vars.
5708 (true_predicate, single_cond_predicate, false_predicate,
5709 not_inlined_predicate, add_condition, add_clause, and_predicates,
5710 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5711 dump_clause, dump_predicate, account_size_time,
5712 evaulate_conditions_for_edge): New functions.
5713 (inline_summary_alloc): Move to heap.
5714 (inline_node_removal_hook): Clear condition and entry vectors.
5715 (inline_edge_removal_hook): New function.
5716 (initialize_growth_caches, free_growth_caches): New function.
5717 (dump_inline_summary): Update.
5718 (edge_execution_predicate): New function.
5719 (will_be_nonconstant_predicate): New function.
5720 (estimate_function_body_sizes): Compute BB and constantness predicates.
5721 (compute_inline_parameters): Do not clear estimated_growth.
5722 (estimate_edge_size_and_time): New function.
5723 (estimate_calls_size_and_time): New function.
5724 (estimate_callee_size_and_time): New function.
5725 (remap_predicate): New function.
5726 (inline_merge_summary): New function.
5727 (do_estimate_edge_time): New function based on...
5728 (estimate_edge_time): ... this one.
5729 (do_estimate_edge_growth): New function.
5730 (do_estimate_growth): New function based on....
5731 (estimate_growth): ... this one.
5732 (inline_analyze_function): Analyze after deciding on jump functions.
5733 (inline_read_section): New function.
5734 (inline_read_summary): Use it.
5735 (inline_write_summary): Write all the new data.
5736 * ipa-prop.c (ipa_get_param_decl_index): Export.
5737 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5738 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5740 (ipa_get_lattice): Move here from ipa-cp.c
5741 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5742 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5743 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5744 cgraph_edge_inlinable_p): Remove.
5745 * cgraphunit.c: Include ipainline.h
5746 (cgraph_process_new_functions): Update call of
5747 compute_inline_parameters.
5749 2011-04-22 Richard Guenther <rguenther@suse.de>
5751 * tree.c (build_int_cst): Properly create canonicalized integer
5753 (build_int_cst_type): Remove scary comments.
5755 2011-04-22 Xinliang David Li <davidxl@google.com>
5757 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5758 by default when -Wno-error is not specified.
5759 * opts-global.c (decode_options): Remove call to
5760 control_warning_options.
5762 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5764 PR tree-optimization/48717
5765 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5766 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5768 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5770 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5771 definition where used.
5773 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5776 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5777 TREE_STATIC variables declared inside of some OpenMP construct.
5779 2011-04-22 Martin Jambor <mjambor@suse.cz>
5782 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5784 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5787 * c-typeck.c (pop_init_level): Do not warn about initializing
5790 2011-04-22 Alan Modra <amodra@gmail.com>
5792 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5793 when returning call_cookie.
5794 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5795 pointers, to functions with no more vector args than the current
5796 function, and some non-local calls for ABI_V4.
5797 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5798 sibcall_nonlocal_aix64): Combine to ..
5799 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5800 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5801 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5802 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5803 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5805 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5806 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5807 sibcall_value_symbolic_64): Delete.
5809 2011-04-21 Xinliang David Li <davidxl@google.com>
5811 * cgraph.h: Remove pid.
5812 * cgraph.c: Remove pid.
5813 * value-prof.c (init_node_map): New function.
5814 (del_node_map): New function.
5815 (find_func_by_funcdef_no): New function.
5816 (gimple_ic_transform): Call new function.
5817 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5818 * function.c (get_last_funcdef_no): New function.
5819 * function.h (get_last_funcdef_no): New function.
5820 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5821 to libgcov function.
5822 (tree-profiling): Call node map init and delete function.
5824 2011-04-21 Ian Lance Taylor <iant@google.com>
5826 * godump.c (go_format_type): Use exported Go name for anonymous
5829 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5831 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5832 Call builtin_function_type_list instead of builtin_function_type.
5833 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5835 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5837 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5838 build_function_type_list instead of build_function_type.
5839 Delete variable `endlink'.
5841 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5843 * config/s390/s390.c (s390_init_builtins): Call
5844 build_function_type_list instead of build_function_type.
5846 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5848 * config/ia64/ia64.c (ia64_init_builtins): Call
5849 build_function_type_list instead of builtin_function_type.
5851 2011-04-21 Easwaran Raman <eraman@google.com>
5853 * cfgexpand.c (stack_var): Remove OFFSET...
5854 (add_stack_var): ...and its reference here...
5855 (expand_stack_vars): ...and here.
5856 (stack_var_cmp): Sort by descending order of size.
5857 (partition_stack_vars): Change heuristic.
5858 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5859 (dump_stack_var_partition): Add newline after each partition.
5861 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5862 Jeff Law <law@redhat.com>
5864 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5865 * gengtype.c (matching_file_name_substitute): Likewise.
5867 2011-04-21 Richard Guenther <rguenther@suse.de>
5870 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5872 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5874 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5876 2011-04-21 Richard Guenther <rguenther@suse.de>
5878 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5881 2011-04-21 Richard Guenther <rguenther@suse.de>
5883 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5884 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5885 Use DECL_P, not SSA_VAR_P.
5886 (ptr_derefs_may_alias_p): Likewise.
5887 (ptr_deref_may_alias_ref_p_1): Likewise.
5888 (decl_refs_may_alias_p): Likewise.
5889 (refs_may_alias_p_1): Likewise.
5890 (ref_maybe_used_by_call_p_1): Likewise.
5891 (call_may_clobber_ref_p_1): Likewise.
5892 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5893 are either MEM_REF or TARGET_MEM_REF.
5894 (indirect_refs_may_alias_p): Likewise.
5895 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5896 for MEM_EXPR of indirect calls.
5898 2011-04-21 Tristan Gingold <gingold@adacore.com>
5900 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5901 (dst_file_info_struct): Remove flen field.
5902 (lookup_filename): Remove code that set flen field.
5904 2011-04-21 Tristan Gingold <gingold@adacore.com>
5906 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5908 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5911 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5912 vec_extract and vec_concat for non-SSE4_1 targets.
5914 2011-04-21 Richard Guenther <rguenther@suse.de>
5916 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5919 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5921 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5923 (FILE): Don't undefine.
5925 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5927 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5929 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5931 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5932 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5933 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5935 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5936 definitions where used.
5937 * config/microblaze/microblaze.h (struct microblaze_args): Use
5938 rtx, not struct rtx_def *.
5939 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5941 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5942 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5943 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5944 not struct rtx_def *.
5945 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5947 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5949 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5951 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5953 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5954 operand_equal_p to compare DR_BASE_ADDRESSes.
5955 (vect_check_interleaving): Likewise.
5957 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5960 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5961 for all Neon struct constants.
5963 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5965 * target.def (legitimate_constant_p): New hook.
5966 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5967 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5968 * doc/tm.texi: Regenerate.
5969 * hooks.h (hook_bool_mode_rtx_true): Declare.
5970 * hooks.c (hook_bool_mode_rtx_true): Define.
5971 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5972 * calls.c (precompute_register_parameters): Replace uses of
5973 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5974 (emit_library_call_value_1): Likewise.
5975 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5976 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5977 * ira-costs.c (scan_one_insn): Likewise.
5978 * recog.c (general_operand, immediate_operand): Likewise.
5979 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5980 * reload1.c (init_eliminable_invariants): Likewise.
5982 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5984 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5985 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5987 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5988 * config/alpha/predicates.md (input_operand): Update call to
5989 alpha_legitimate_constant_p.
5991 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5992 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5993 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5994 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5995 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5996 (arm_legitimate_constant_p): New functions.
5997 (arm_cannot_force_const_mem): Make static.
5999 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6001 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6002 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6003 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6004 instead of bfin_legitimate_constant_p.
6005 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6006 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6008 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6010 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6012 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6013 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6014 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6015 (frv_legitimate_constant_p): Make static. Add a mode argument.
6017 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6018 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6019 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6021 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6022 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6023 * config/i386/i386.c (legitimate_constant_p): Rename to...
6024 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6026 (ix86_cannot_force_const_mem): Update accordingly.
6027 (ix86_legitimate_address_p): Likewise.
6028 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6029 * config/i386/i386.md: Update commentary.
6031 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6032 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6033 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6034 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6036 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6038 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6039 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6040 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6041 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6043 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6044 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6045 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6047 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6048 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6049 (m32r_legitimate_constant_p): New function.
6051 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6052 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6053 LEGITIMATE_CONSTANT_P.
6054 (LEGITIMATE_CONSTANT_P): Delete.
6055 * config/m68k/m68k.c (m68k_expand_prologue): Call
6056 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6057 (m68k_legitimate_constant_p): New function.
6058 * config/m68k/m68k.md: Update comments.
6060 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6061 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6062 (mcore_legitimate_constant_p): New function.
6064 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6065 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6066 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6067 Add a mode argument.
6068 (mep_legitimate_address): Update accordingly.
6069 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6071 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6073 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6074 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6075 static. Check OP's mode for VOIDmode.
6076 (microblaze_legitimate_constant_p): New function.
6077 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6079 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6080 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6081 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6082 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6083 * config/mips/predicates.md: Update comments.
6085 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6086 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6087 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6088 (mmix_legitimate_constant_p): Make static, return a bool, and take
6090 (mmix_print_operand_address): Update accordingly.
6092 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6094 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6095 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6096 static. Add a mode argument.
6097 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6099 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6101 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6102 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6103 (pa_legitimate_constant_p): New function.
6105 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6107 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6108 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6109 (pdp11_legitimate_constant_p): New function.
6111 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6112 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6113 (rs6000_legitimate_constant_p): New function.
6115 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6116 (rx_legitimate_constant_p): ...this.
6117 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6118 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6119 (rx_legitimate_constant_p): ...this.
6120 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6121 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6123 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6124 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6125 * config/s390/s390.c (legitimate_constant_p): Rename to...
6126 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6127 and add a mode argument.
6128 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6130 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6132 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6133 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6134 (sh_legitimate_constant_p): New function.
6136 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6137 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6138 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6139 (legitimate_constant_p): Rename to...
6140 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6142 (constant_address_p): Update accordingly.
6144 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6145 argument and return a bool.
6146 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6147 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6148 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6149 (spu_rtx_costs): Update accordingly.
6150 * config/spu/predicates.md (vec_imm_operand): Likewise.
6152 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6154 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6155 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6156 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6158 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6159 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6160 * config/vax/vax.c (legitimate_constant_p): Likewise.
6162 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6163 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6164 (xtensa_legitimate_constant_p): New function.
6166 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6168 * target.def (cannot_force_const_mem): Add a mode argument.
6169 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6170 * doc/tm.texi: Regenerate.
6171 * hooks.h (hook_bool_mode_rtx_false): Declare.
6172 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6173 (hook_bool_mode_const_rtx_true): Likewise.
6174 (hook_bool_mode_rtx_false): New function.
6175 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6176 to be non-VOID. Update call to cannot_force_const_mem.
6177 (find_reloads): Update accordingly.
6178 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6179 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6181 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6182 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6183 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6184 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6185 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6186 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6187 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6188 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6189 (m68k_cannot_force_const_mem): ...this new function.
6190 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6192 (mips_const_insns, mips_legitimize_const_move): Update calls.
6193 (mips_secondary_reload_class): Likewise.
6194 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6195 (pa_cannot_force_const_mem): ...this new function.
6196 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6197 (rs6000_cannot_force_const_mem): ...this new function.
6198 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6200 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6201 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6203 (xtensa_cannot_force_const_mem): ...this new function.
6205 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6207 * config/mips/mips.c (mips16_build_function_stub): Call
6208 build_function_type_list instead of build_function_type.
6209 (mips16_build_call_stub): Likewise.
6211 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6213 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6214 instead of build_function_type.
6216 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6218 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6219 instead of build_function_type.
6221 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6224 * config/i386/i386.md (insv): Change operand 0 constraint to
6225 "register_operand". Change operand 1 and 2 constraint to
6226 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6227 * config/i386/sse.md (sse4_1_pinsrb): Export.
6228 (sse2_pinsrw): Ditto.
6229 (sse4_1_pinsrd): Ditto.
6230 (sse4_1_pinsrq): Ditto.
6231 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6232 * config/i386/i386.c (ix86_expand_pinsr): New.
6234 2011-04-20 Easwaran Raman <eraman@google.com>
6236 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6237 containing union type only with -fstrict-aliasing.
6239 2011-04-20 Jim Meyering <meyering@redhat.com>
6241 Remove useless if-before-free tests.
6242 * calls.c (expand_call, save_area): Likewise.
6243 * cfgcleanup.c (try_forward_edges): Likewise.
6244 * collect2.c (collect_execute): Likewise.
6245 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6246 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6247 * coverage.c (coverage_checksum_string): Likewise.
6248 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6249 * cselib.c (cselib_init): Likewise.
6250 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6251 (df_set_clean_cfg): Likewise.
6252 * function.c (free_after_compilation): Likewise.
6253 * gcc.c (do_spec_1, main): Likewise.
6254 * gcov.c (create_file_names): Likewise.
6255 * gensupport.c (identify_predicable_attribute): Likewise.
6256 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6257 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6258 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6259 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6260 * ipa-pure-const.c (local_pure_const): Likewise.
6261 * ipa-reference.c (propagate): Likewise.
6262 * ira-costs.c (free_ira_costs): Likewise.
6263 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6264 * matrix-reorg.c (mat_free): Likewise.
6265 * prefix.c (get_key_value): Likewise.
6266 * profile.c (compute_value_histograms): Likewise.
6267 * reload1.c (free_reg_equiv): Likewise.
6268 * sched-deps.c (free_deps): Likewise.
6269 * sel-sched-ir.c (fence_clear): Likewise.
6270 * sese.c (set_rename, if_region_set_false_region): Likewise.
6271 * tree-data-ref.c (free_rdg): Likewise.
6272 * tree-eh.c (lower_try_finally): Likewise.
6273 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6274 * tree-ssa-live.c (delete_var_map): Likewise.
6275 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6276 * tree-ssa-pre.c (phi_trans_add): Likewise.
6278 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6280 PR tree-optimization/48611
6281 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6282 beyond ERT_MUST_NOT_THROW region.
6284 2011-04-20 Catherine Moore <clm@codesourcery.com>
6286 * config/mips/mips.opt (mfix-24k): New.
6287 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6288 * config/mips/mips.md (length): Increase by 4 for stores if
6290 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6291 all noreorder if fixing 24K errata.
6292 * doc/invoke.texi: Document mfix-24k.
6294 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6296 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6297 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6299 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6301 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6302 (const_ok_for_op): ... to here.
6304 2011-04-20 Kai Tietz <ktietz@redhat.com>
6306 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6307 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6309 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6311 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6313 2011-04-20 Richard Guenther <rguenther@suse.de>
6315 PR tree-optimization/47892
6316 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6319 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6321 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6323 2011-04-20 Tristan Gingold <gingold@adacore.com>
6325 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6327 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6331 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6332 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6333 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6334 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6335 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6337 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6340 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6341 (avr_asm_named_section, avr_asm_output_aligned_common,
6342 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6343 New functions to update...
6344 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6345 (avr_asm_init_sections): Overwrite section callbacks for
6346 data_section, bss_section.
6347 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6349 (avr_file_end): ...here.
6351 2011-04-20 Richard Guenther <rguenther@suse.de>
6354 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6355 objects and types here. Adjust for their offset before comparing.
6357 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6359 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6362 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6364 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6365 (GIMPLE_H): Include $(INTERNAL_FN_H).
6366 (OBJS-common): Add internal-fn.o.
6367 (internal-fn.o): New rule.
6368 * internal-fn.def: New file.
6369 * internal-fn.h: Likewise.
6370 * internal-fn.c: Likewise.
6371 * gimple.h: Include internal-fn.h.
6372 (GF_CALL_INTERNAL): New gf_mask.
6373 (gimple_statement_call): Put fntype into a union with a new
6375 (gimple_build_call_internal): Declare.
6376 (gimple_build_call_internal_vec): Likewise.
6377 (gimple_call_same_target_p): Likewise.
6378 (gimple_call_internal_p): New function.
6379 (gimple_call_internal_fn): Likewise.
6380 (gimple_call_fntype): Return null for internal calls.
6381 (gimple_call_set_fntype): Assert that the function is not internal.
6382 (gimple_call_set_fn): Likewise.
6383 (gimple_call_set_fndecl): Likewise.
6384 (gimple_call_set_internal_fn): New function.
6385 (gimple_call_addr_fndecl): Handle null functions.
6386 (gimple_call_return_type): Likewise null types.
6387 * gimple.c (gimple_build_call_internal_1): New function.
6388 (gimple_build_call_internal): Likewise.
6389 (gimple_build_call_internal_vec): Likewise.
6390 (gimple_call_same_target_p): Likewise.
6391 (gimple_call_flags): Handle calls to internal functions.
6392 (gimple_call_fnspec): New function.
6393 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6394 (gimple_has_side_effects): Handle null functions.
6395 (gimple_rhs_has_side_effects): Likewise.
6396 (gimple_call_copy_skip_args): Handle calls to internal functions.
6397 * cfgexpand.c (expand_call_stmt): Likewise.
6398 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6399 * gimple-fold.c (gimple_fold_call): Handle null functions.
6400 (gimple_fold_stmt_to_constant_1): Don't fold
6401 calls to internal functions.
6402 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6404 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6405 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6406 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6407 (do_warn_unused_result): Likewise.
6408 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6409 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6410 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6411 the target of a call.
6412 (initialize_hash_element): Update accordingly.
6413 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6414 (iterative_hash_hashable_expr): Handle calls to internal functions.
6415 (print_expr_hash_elt): Likewise.
6416 * tree-ssa-pre.c (can_value_number_call): Likewise.
6417 (eliminate): Handle null functions.
6418 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6419 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6420 (find_func_aliases): Likewise.
6421 * value-prof.c (gimple_ic_transform): Likewise.
6422 (gimple_indirect_call_to_profile): Likewise.
6423 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6424 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6426 2011-04-19 Jan Hubicka <jh@suse.cz>
6428 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6429 * ipa-inline.c (inline_small_functions): Compute summaries first,
6430 populate heap later.
6432 2011-04-19 Jan Hubicka <jh@suse.cz>
6434 * cgraph.h (save_inline_function_body): Remove.
6435 * ipa-inline-transform.c: New file, broke out of...
6436 * ipa-inline.c: ... this one; Update toplevel comment.
6437 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6439 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6440 (cgraph_mark_inline_edge): Rename to inline_call; move to
6441 ipa-inline-transform.c.
6442 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6443 move to ipa-inline-transform.c
6444 (recursive_inlining, inline_small_functions, flatten_function,
6445 ipa_inline, inline_always_inline_functions,
6446 early_inline_small_functions): Update.
6447 (inline_transform): Move to ipa-inline-transform.c.
6448 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6450 * Makefile.in (ipa-inline-transform.o): New file.
6451 * cgraphunit.c (save_inline_function_body): Move to
6452 ipa-inline-transform.c
6454 2011-04-19 DJ Delorie <dj@redhat.com>
6456 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6457 registers if we already know there aren't any.
6458 (m32c_emit_epilogue): Don't emit a barrier here.
6459 (m32c_emit_eh_epilogue): Likewise.
6460 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6461 operands at expand time.
6462 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6464 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6465 duplicates. Provide aliases instead.
6466 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6467 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6470 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6472 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6473 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6474 (general_or_i64_p, sparc_register_move_cost): New function.
6476 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6478 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6479 Add lynx, mipssde. Sort table.
6481 2011-04-19 Xinliang David Li <davidxl@google.com>
6483 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6486 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6489 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6490 is a SUBREG with non-MODE_INT mode inside of it.
6492 2011-04-19 Martin Jambor <mjambor@suse.cz>
6494 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6495 also according to actual contants.
6496 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6497 (gimple_fold_call): Use it.
6498 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6500 2011-04-19 Martin Jambor <mjambor@suse.cz>
6502 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6503 non-pointer assignments.
6505 2011-04-19 Martin Jambor <mjambor@suse.cz>
6507 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6508 account anc_offset and otr_type from the indirect edge info.
6509 * ipa-prop.c (get_ancestor_addr_info): New function.
6510 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6511 get_ancestor_addr_info, call it.
6512 (ipa_note_param_call): Do not initialize information about polymorphic
6513 calls, return the indirect call graph edge. Remove the last
6514 parameter, adjust all callers.
6515 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6516 parameters. Initialize polymorphic information in the indirect edge.
6518 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6521 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6522 the types if they have different enumeration identifiers.
6524 2011-04-19 Jan Hubicka <jh@suse.cz>
6526 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6527 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6528 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6529 (optimize_function_for_size_p) ... here.
6531 2011-04-19 Richard Guenther <rguenther@suse.de>
6534 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6537 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6539 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6540 if DECL_NO_INLINE_WARNING_P is set on the function.
6542 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6545 * reload1.c (inc_for_reload): Return void. All callers changed.
6546 (emit_input_reload_insns): Don't try to delete previous output
6547 reloads to a register, or record spill_reg_store for autoincs.
6549 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6551 * gengtype.h: Updated copyright year.
6552 (struct input_file_st): Add inpisplugin field.
6553 (type_fileloc): New function.
6555 (write_typed_struct_alloc_def): Add gcc_assert.
6556 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6557 (write_typed_alloc_defns): Don't output for plugin files.
6558 (input_file_by_name): Clear inpisplugin field.
6559 (main): Set inpisplugin field for plugin files.
6561 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6563 * gengtype-state.c (string_eq): New.
6564 (read_state): Use string_eq instead of strcmp when creating the
6567 2011-04-19 Wei Guozhi <carrot@google.com>
6570 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6571 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6573 * config/arm/constraints.md (Uu): New constraint.
6574 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6576 2011-04-19 Tristan Gingold <gingold@adacore.com>
6578 * config.gcc (-*-*-*vms): Added.
6579 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6581 * config/vms/vms-ld.c: New file.
6582 * config/vms/vms-ar.c: New file.
6583 * config/vms/t-vmsnative: New file.
6585 2011-04-18 Xinliang David Li <davidxl@google.com>
6587 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6589 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6592 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6593 if TREE_TYPE (v) is non-NULL.
6595 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6596 gimple_get_virt_mehtod_for_binfo.
6597 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6598 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6600 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6602 2011-04-18 Michael Matz <matz@suse.de>
6603 Steve Ellcey <sje@cup.hp.com>
6605 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6606 use its mode as source mode if it isn't VOIDmode.
6608 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6610 * doc/passes.texi: Fill crossref nodes.
6612 2011-04-18 Jim Meyering <meyering@redhat.com>
6614 Fix doubled-word typos in comments and strings
6615 * config/alpha/vms-unwind.h: s/for for/for/
6616 * config/arm/unwind-arm.h: Likewise.
6617 * config/microblaze/microblaze.c: Likewise.
6618 * config/sh/constraints.md: s/in in/in/
6619 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6621 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6623 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6624 (AVX_FLOAT_MODE_P): Ditto.
6625 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6626 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6627 (AVX_VEC_FLOAT_MODE_P): Ditto.
6628 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6629 (UNSPEC_MASKSTORE): Ditto.
6630 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6631 Merge from <sse>_movmsk<ssemodesuffix> and
6632 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6633 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6635 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6636 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6637 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6639 2011-04-18 Jan Hubicka <jh@suse.cz>
6641 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6643 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6644 (want_inline_function_called_once_p): Break out the logic from
6646 (edge_badness): Ensure that profile is not misupdated.
6647 (lookup_recursive_calls): Prioritize by call frequencies.
6648 (inline_small_functions): Move program size estimates here;
6649 actually process whole queue even when unit growth has been
6650 met. (to properly compute inline_failed reasons and for the
6651 case unit size decrease.) Revisit comments on recursive inlining.
6652 (ipa_inline): Remove unit summary code; first inline hot calls
6653 of functions called once, cold calls next.
6654 (order, nnodes): Remove unused variables.
6655 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6656 (GTFILES): Remove ipa-inline.c
6657 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6659 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6661 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6663 2011-04-18 Jie Zhang <jie@codesourcery.com>
6664 Richard Earnshaw <rearnsha@arm.com>
6666 * arm.c (neon_builtin_type_bits): Remove.
6667 (typedef enum neon_builtin_mode): New.
6668 (T_MAX): Don't define.
6669 (typedef enum neon_builtin_datum): Remove bits, codes[],
6670 num_vars and base_fcode. Add mode, code and fcode.
6671 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6672 VAR10): Change accordingly.
6673 (neon_builtin_data[]): Change accordingly
6674 (arm_init_neon_builtins): Change accordingly.
6675 (neon_builtin_compare): Remove.
6676 (locate_neon_builtin_icode): Remove.
6677 (arm_expand_neon_builtin): Change accordingly.
6679 * arm.h (enum arm_builtins): Move to ...
6680 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6682 * arm.c (arm_builtin_decl): Declare.
6683 (TARGET_BUILTIN_DECL): Define.
6684 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6685 (arm_builtin_decls[]): New.
6686 (arm_init_neon_builtins): Store builtin declarations in
6687 arm_builtin_decls[].
6688 (arm_init_tls_builtins): Likewise.
6689 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6690 (arm_builtin_decl): New.
6692 2011-04-18 Richard Guenther <rguenther@suse.de>
6694 * tree.c (upper_bound_in_type): Build properly canonicalized
6696 (lower_bound_in_type): Likewise.
6698 2011-04-18 Richard Guenther <rguenther@suse.de>
6700 * gimple.h (gimple_call_addr_fndecl): New function.
6701 (gimple_call_fndecl): Use it.
6702 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6704 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6705 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6707 2011-04-18 Richard Guenther <rguenther@suse.de>
6710 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6712 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6715 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6716 DECL_IN_CONSTANT_POOL without RTL.
6718 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6719 Ira Rosen <ira.rosen@linaro.org>
6722 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6723 to match neon_vzip/vuzp/vtrn_internal.
6724 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6725 outputs explicitly dependent on both inputs.
6726 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6728 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6730 PR tree-optimization/48616
6731 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6732 whether the shift is by scalar or vector based on whether all SLP
6733 scalar stmts have the same rhs.
6735 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6737 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6740 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6743 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6746 2011-04-17 Jan Hubicka <jh@suse.cz>
6748 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6749 * cgrpahunit.c (cgraph_finalize_function): Do not set
6750 finalized_by_frontend.
6751 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6752 finalized_by_frontend.
6754 2011-04-17 Jan Hubicka <jh@suse.cz>
6756 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6757 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6758 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6759 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6761 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6763 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6765 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6768 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6769 is non-null before accessing it.
6770 (input_cgraph): Remove trailing spaces.
6772 2011-04-17 Revital Eres <revital.eres@linaro.org>
6774 * params.def (sms-min-sc): New param flag.
6775 * modulo-sched.c (sms_schedule): Use it.
6776 * doc/invoke.texi (sms-min-sc): Document it.
6778 2011-04-17 Jan Hubicka <jh@suse.cz>
6780 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6781 present, also set gimple_call_set_cannot_inline.
6782 * ipa-inline.c: Update toplevel comment.
6784 (cgraph_clone_inlined_nodes): Fix linebreaks.
6785 (cgraph_check_inline_limits): Restructure to ...
6786 (caller_growth_limits): ... this one; be more tolerant
6787 on growth in nested inline chains; add explanatory comment;
6788 fix stack accounting thinko introduced by previous patch.
6789 (cgraph_default_inline_p): Remove.
6790 (report_inline_failed_reason): New function.
6791 (can_inline_edge_p): New function.
6792 (can_early_inline_edge_p): New function.
6793 (leaf_node_p): Move upwards in file.
6794 (want_early_inline_function_p): New function.
6795 (want_inline_small_function_p): New function.
6796 (want_inline_self_recursive_call_p): New function.
6797 (cgraph_edge_badness): Rename to ...
6798 (edge_badness) ... this one; fix linebreaks.
6799 (update_edge_key): Update call of edge_baddness; add
6800 detailed dump about queue updates.
6801 (update_caller_keys): Use can_inline_edge_p and
6802 want_inline_small_function_p.
6803 (cgraph_decide_recursive_inlining): Rename to...
6804 (recursive_inlining): Use can_inline_edge_p and
6805 want_inline_self_recursive_call_p; simplify and remove no longer
6807 (cgraph_set_inline_failed): Remove.
6808 (add_new_edges_to_heap): Use can_inline_edge_p and
6809 want_inline_small_function_p.
6810 (cgraph_decide_inlining_of_small_functions): Rename to ...
6811 (inline_small_functions): ... this one; cleanup; use
6812 can/want predicates; cleanup debug ouput; work edges till fibheap
6813 is exhausted and do not stop once unit growth is reached; remove
6814 later loop processing remaining edges.
6815 (cgraph_flatten): Rename to ...
6816 (flatten_function): ... this one; use can_inline_edge_p
6817 and can_early_inline_edge_p predicates.
6818 (cgraph_decide_inlining): Rename to ...
6819 (ipa_inline): ... this one; remove unreachable nodes before
6820 inlining functions called once; simplify the pass.
6821 (cgraph_perform_always_inlining): Rename to ...
6822 (inline_always_inline_functions): ... this one; use
6823 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6824 (cgraph_decide_inlining_incrementally): Rename to ...
6825 (early_inline_small_functions): ... this one; simplify
6826 using new predicates; cleanup; make dumps prettier.
6827 (cgraph_early_inlining): Rename to ...
6828 (early_inliner): newer inline regular functions into always-inlines;
6829 fix updating of call stmt summaries.
6830 (pass_early_inline): Update for new names.
6831 (inline_transform): Fix formating.
6832 (gate_cgraph_decide_inlining): Rename to ...
6833 (pass_ipa_inline): ... this one.
6834 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6835 * ipa-inline-analysis.c (dump_inline_summary): Update.
6836 (compute_inline_parameters): Do not compute disregard_inline_limits;
6837 look for mismatching arguments.
6838 (estimate_growth): Fix handlig of non-trivial self recursion.
6839 (inline_read_summary): Do not read info->disregard_inline_limits.
6840 (inline_write_summary): Do not write info->disregard_inline_limits.
6841 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6842 and move all checks into can_inline_edge_p predicate; re-enable code
6843 comparing optimization levels.
6844 (expand_call_inline): Do not test inline_forbidden_into_p.
6845 * Makefile.in (ipa-inline.o): Update arguments.
6847 2011-04-17 Revital Eres <revital.eres@linaro.org>
6849 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6851 2011-04-17 Revital Eres <revital.eres@linaro.org>
6853 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6855 2011-04-17 Michael Matz <matz@suse.de>
6857 PR tree-optimization/48622
6859 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6860 in same order as they're written.
6862 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6864 * config/pa/predicates.md: Reorganize and simplify predicates.
6865 Eliminate duplicate code checks.
6866 (arith_operand): Rename to arith14_operand
6867 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6868 * config/pa/pa.md: Use renamed operands.
6869 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6870 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6871 arith11_operand, adddi3_operand, indexed_memory_operand,
6872 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6873 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6874 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6875 move_dest_operand, move_src_operand, prefetch_cc_operand,
6876 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6877 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6878 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6879 div_operand, int5_operand, movb_comparison_operator,
6880 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6881 arith_double_operand, ireg_operand, lhs_lshift_operand,
6882 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6883 integer_store_memory_operand): Likewise.
6884 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6885 (integer_store_memory_operand, read_only_operand,
6886 function_label_operand, borx_reg_operand,
6887 non_hard_reg_operand): Likewise.
6888 (eq_neq_comparison_operator): Delete unused operator.
6889 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6890 function_label_operand.
6891 (emit_move_sequence): Likewise.
6893 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6895 * config/i386/sse.md (sseunpackmode): New mode attribute.
6896 (ssepackmode): Ditto.
6897 (vec_pack_trunc_<mode>): Macroize expander from
6898 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6899 (vec_unpacks_lo_<mode>): Macroize expander from
6900 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6901 (vec_unpacks_hi_<mode>): Macroize expander from
6902 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6903 (vec_unpacku_lo_<mode>): Macroize expander from
6904 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6905 (vec_unpacku_hi_<mode>): Macroize expander from
6906 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6907 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6908 ix86_expand_sse4_unpack.
6909 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6911 2011-04-16 Jan Hubicka <jh@suse.cz>
6913 * cgraphbuild.c: Include ipa-inline.h.
6914 (reset_inline_failed): Use initialize_inline_failed.
6915 * cgraph.c: Include ipa-inline.h.
6916 (cgraph_create_node_1): Do not initialize estimated_growth.
6917 (initialize_inline_failed): More to ipa-inline-analysis.c
6918 (dump_cgraph_node): Do not dump inline flags.
6919 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6920 and disregard_inline_limits flags.
6921 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6922 time, size, estimated_growth.
6923 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6925 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6926 DECL_DISREGARD_INLINE_LIMITS.
6927 (cgraph_analyze_function): Do not initialize
6928 node->local.disregard_inline_limits.
6929 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6930 inlinable, versionable and disregard_inline_limits.
6931 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6932 cgraph_check_inline_limits, cgraph_default_inline_p,
6933 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6934 add_new_edges_to_heap): Update.
6935 (cgraph_decide_inlining_of_small_function): Update; set
6936 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6937 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6938 cgraph_decide_inlining_incrementally): Update.
6939 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6940 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6941 time, size and estimated_growth parameters.
6942 (estimate_edge_growth): Update.
6943 (initialize_inline_failed): Declare.
6944 * ipa-split.c: Include ipa-inline.h
6945 (execute_split_functions): Update.
6946 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6947 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6948 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6949 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6950 estimated_growth to INT_MIN.
6951 (inline_node_duplication_hook): Likewise.
6952 (dump_inline_summary): Dump new fields.
6953 (compute_inline_parameters): Update.
6954 (estimate_edge_time, estimate_time_after_inlining,
6955 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6956 inline_write_summary):
6957 (initialize_inline_failed): Move here from cgraph.c.
6958 * tree-sra.c: Include ipa-inline.h.
6959 (ipa_sra_preliminary_function_checks): Update.
6960 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6963 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6965 * config/i386/sse.md (V16): New mode iterator.
6967 (AVXMODEQI, AVXMODEDI): Remove.
6968 (sse2, sse3): New mode attribute.
6969 (mov<mode>): Use V16 mode iterator.
6970 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6971 (push<mode>1): Use V16 mode iterator.
6972 (movmisalign<mode>): Ditto.
6973 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6974 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6975 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6976 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6977 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6978 avx_movdqu<avxmodesuffix>.
6979 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6980 *avx_movdqu<avxmodesuffix>.
6981 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6982 avx_lddqu<avxmodesuffix>.
6983 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6984 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6985 avx_movnt<AVXMODEDI:mode>.
6986 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6987 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6989 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6992 * haifa-sched.c (prune_ready_list, schedule_block): Use
6993 sched_pressure_p rather than flag_sched_pressure.
6995 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6997 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6998 cgraph_get_node instead of cgraph_get_create_node.
7000 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7002 * cfgexpand.c (expand_debug_expr): Use
7003 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7005 2011-04-15 Michael Matz <matz@suse.de>
7007 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7008 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7009 * function.c (gimplify_parameters): Ditto.
7010 * gimplify.c (gimplify_vla_decl): Ditto.
7012 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7013 (gimple_call_set_alloca_for_var): New inline function.
7014 (gimple_call_alloca_for_var_p): Ditto.
7015 * gimple.c (gimple_build_call_from_tree): Remember
7016 CALL_ALLOCA_FOR_VAR_P state.
7017 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7019 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7020 calls if they were for VLA objects.
7022 2011-04-15 Martin Jambor <mjambor@suse.cz>
7024 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7027 2011-04-15 Martin Jambor <mjambor@suse.cz>
7030 * tree-emutls.c (lower_emutls_function_body): Call
7031 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7034 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7036 * c-decl.c (detect_field_duplicates): Call
7037 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7039 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7041 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7042 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7043 * ipa-pure-const.c (check_stmt): Call it.
7044 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7046 2011-04-15 Richard Guenther <rguenther@suse.de>
7048 PR tree-optimization/48290
7049 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7050 Properly decide inhibiting propagation based on the valueized
7051 operand. Do loop-closed SSA form preserving here ...
7052 (init_copy_prop): ... not here.
7054 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7057 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7058 (*ieee_smax<mode>3): Likewise.
7060 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7062 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7063 Replace match_operand with match_dup for the third operand in
7066 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7068 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7069 to track processing of conditionals. Update all callers.
7070 (try_combine, simplify_if_then_else): Update.
7072 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7074 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7077 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7079 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7080 instead of match_operand for operand 3.
7082 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7084 * recog.h (insn_operand_data): Add an "allows_mem" field.
7085 * genoutput.c (output_operand_data): Initialize it.
7086 * optabs.c (maybe_legitimize_operand_same_code): New function.
7087 (maybe_legitimize_operand): Use it when matching the original
7090 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7092 * gimplify.c: Fix issues in comments throughout.
7093 (voidify_wrapper_expr): Fix long line.
7094 (build_stack_save_restore): Likewise.
7095 (gimplify_loop_expr): Likewise.
7096 (gimplify_compound_lval): Likewise.
7097 (gimplify_init_ctor_eval): Likewise.
7098 (gimplify_modify_expr_rhs): Likewise.
7099 (omp_notice_threadprivate_variable): Likewise.
7101 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7103 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7104 original one if this is not a builtin function.
7106 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7109 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7110 offset it as needed based on top 2 bits in operands[3], change
7111 MEM mode to SFmode and mask those 2 bits away from operands[3].
7113 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7115 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7116 change from objc_declare_protocols() to objc_declare_protocol().
7118 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7120 * config/i386/sse.md (sse4_1): New mode attribute.
7121 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7122 avx_blend<ssemodesuffix><avxmodesuffix> and
7123 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7124 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7125 avx_blendv<ssemodesuffix><avxmodesuffix> and
7126 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7127 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7128 avx_dp<ssemodesuffix><avxmodesuffix> and
7129 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7130 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7131 (sse4_1_packusdw): Merge with *avx_packusdw.
7132 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7133 (sse4_1_pblendw): Merge with *avx_pblendw.
7134 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7135 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7136 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7138 (sse4_1_round<ssescalarmodesuffix>): Merge with
7139 *avx_round<ssescalarmodesuffix>.
7140 (aesenc): Merge with *avx_aesenc.
7141 (aesenclast): Merge with *avx_aesenclast.
7142 (aesdec): Merge with *avx_aesdec.
7143 (aesdeclast): Merge with *avx_aesdeclast.
7144 (pclmulqdq): Merge with *pclmulqdq.
7145 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7147 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7149 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7152 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7153 (align_local_variable): This. Update DECL_ALIGN.
7154 (add_stack_var): Updated.
7155 (expand_one_stack_var): Likewise.
7157 2011-04-14 Richard Guenther <rguenther@suse.de>
7159 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7161 (dse_initialize_block_local_data, dse_leave_block,
7162 record_voperand_set, get_stmt_uid): Likewise.
7163 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7164 (dse_optimize_stmt): Remove voperand set handling code.
7165 Simplify and improve to handle any kind of killing stmt.
7166 (dse_record_phi): Remove.
7167 (dse_enter_block): Simplify.
7168 (tree_ssa_dse): Likewise.
7169 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7171 2011-04-14 Jan Hubicka <jh@suse.cz>
7173 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7174 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7175 (cgraph_local_info): Remove inline_summary.
7176 * ipa-cp.c: Include ipa-inline.h.
7177 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7178 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7180 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7181 (input_overwrite_node): Do not set inline summary.
7182 (input_node): Do not stream inline summary.
7183 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7184 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7185 growth; we do not have inline parameters computed for that anyway.
7186 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7187 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7188 (inline_summary_t): New type and VECtor.
7189 (debug_inline_summary, dump_inline_summaries): Declare.
7190 (inline_summary): Use VOCtor.
7191 (estimate_edge_growth): Kill hack computing call stmt size directly.
7192 * lto-section-in.c (lto_section_name): Add inline section.
7193 * ipa-inline-analysis.c: Include lto-streamer.h
7194 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7195 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7196 (inline_summary_vec): Define.
7197 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7198 dump_inline_summaries): New functions.
7199 (estimate_function_body_sizes): Properly compute size/time of outgoing
7201 (compute_inline_parameters): Alloc inline_summary; do not compute
7202 size/time of incomming calls.
7203 (estimate_edge_time): Avoid missing time summary hack.
7204 (inline_read_summary): Read inline summary info.
7205 (inline_write_summary): Write inline summary info.
7206 (inline_free_summary): Free all hooks and inline summary vector.
7207 * lto-streamer.h: Add LTO_section_inline_summary section.
7208 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7209 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7211 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7213 * tree-vectorizer.h (vect_strided_store_supported): Add a
7214 HOST_WIDE_INT argument.
7215 (vect_strided_load_supported): Likewise.
7216 (vect_permute_store_chain): Return void.
7217 (vect_transform_strided_load): Likewise.
7218 (vect_permute_load_chain): Delete.
7219 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7220 count argument. Check that the count is a power of two.
7221 (vect_strided_load_supported): Likewise.
7222 (vect_permute_store_chain): Return void. Update after above changes.
7223 Assert that the access is supported.
7224 (vect_permute_load_chain): Likewise.
7225 (vect_transform_strided_load): Return void.
7226 * tree-vect-stmts.c (vectorizable_store): Update calls after
7227 above interface changes.
7228 (vectorizable_load): Likewise.
7229 (vect_analyze_stmt): Don't check for strided powers of two here.
7231 2011-04-14 Richard Guenther <rguenther@suse.de>
7233 PR tree-optimization/48590
7234 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7235 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7236 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7237 BUILT_IN_STACK_SAVE.
7238 * tree-ssa-dce.c (propagate_necessity): Handle
7239 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7241 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7243 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7246 2011-04-14 Richard Guenther <rguenther@suse.de>
7248 * tree.h (get_object_alignment_1): Declare.
7249 * builtins.c (get_object_alignment_1): Split out worker from ...
7250 (get_object_alignment): ... here.
7251 * fold-const.c (get_pointer_modulus_and_residue): Use
7252 get_object_alignment_1.
7254 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7256 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7258 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7259 parameter. Generalise code to handle arrays as well as vectors.
7260 (vect_setup_realignment): Update accordingly.
7261 * tree-vect-stmts.c (vectorizable_store): Likewise.
7262 (vectorizable_load): Likewise.
7264 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7266 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7267 within the per-copy loop.
7269 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7271 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7274 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7276 * doc/options.texi (Negative): Explicitly mention that the
7277 Negative chain must be circular.
7279 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7281 * function.h (block_chainon): Declare.
7282 * function.c (block_chainon): Define.
7284 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7285 Eric Weddington <eric.weddington@atmel.com>
7286 Georg-Johann Lay <avr@gjlay.de>
7288 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7290 (avr_init_builtins, avr_expand_builtin,
7291 avr_expand_delay_cycles, avr_expand_unop_builtin,
7292 avr_expand_binop_builtin ): New functions.
7293 (avr_builtin_id): New enum
7294 (struct avr_builtin_description): New struct
7295 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7296 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7298 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7299 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7300 UNSPECV_DELAY_CYCLES): new enumeration values
7301 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7302 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7303 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7304 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7305 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7306 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7307 "fmulsu"): New insns
7309 * config/avr/avr-c.c: fix line endings
7310 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7311 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7312 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7313 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7314 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7316 * doc/extend.texi (AVR Built-in Functions): New node
7317 (Target Builtins): Add documentation of AVR
7320 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7323 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7324 alone. Error if non-const data has attribute progmem.
7326 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7328 * tree.h (struct tree_constructor): Include tree_typed instead of
7330 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7331 TS_TYPED instead of TS_COMMON.
7333 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7335 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7336 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7337 (sse2_psadbw): Merge with *avx_psadbw.
7338 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7339 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7340 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7341 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7342 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7343 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7344 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7345 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7346 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7347 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7348 (ssse3_palignrti): Merge with *avx_palignrti.
7350 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7352 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7353 * tree-ssanames.c (fini_ssanames): VEC_free it.
7354 (make_ssa_name_fn): Update for VECness of free_ssanames.
7355 (release_ssa_name, release_dead_ssa_names): Likewise.
7356 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7358 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7359 TS_TYPED instead of TS_COMMON.
7361 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7363 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7364 statistics_counter_event.
7365 * tree-ssa-copyrename.c (stats): Define.
7366 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7367 statistics_counter_event.
7368 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7369 (bswap_stats, widen_mul_stats): Define.
7370 (insert_reciprocals): Increment rdivs_inserted.
7371 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7372 rfuncs_inserted. Add calls to statistics_counter_event.
7373 (execute_cse_sincos_1): Increment inserted.
7374 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7375 statistics_counter_event.
7376 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7377 of bswap_stats. Add calls to statistics_counter_event.
7378 (convert_mult_to_widen): Increment widen_mults_inserted.
7379 (convert_plusminus_to_widen): Increment maccs_inserted.
7380 (convert_mult_to_fma): Increment fmas_inserted.
7381 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7382 calls to statistics_counter_event.
7384 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7386 PR rtl-optimization/48455
7387 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7388 `temp_costs->mem_cost'.
7390 2011-04-13 Jan Hubicka <jh@suse.cz>
7392 * ipa-inline.h: New file.
7393 * ipa-inline-analysis.c: New file. Broken out of ...
7394 * ipa-inline.c: ... this file; update toplevel comment;
7395 include ipa-inline.h
7396 (inline_summary): Move to ipa-inline.h
7397 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7398 ipa-inline-analysis.c.
7399 (cgraph_estimate_time_after_inlining): Rename to
7400 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7401 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7402 to estimate_edge_growth.
7403 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7404 rename to estimate_size_after_inlining.
7405 (cgraph_mark_inline_edge): Update for new naming convention.
7406 (cgraph_check_inline_limits): Likewise.
7407 (cgraph_edge_badness): Likewise.
7408 (cgraph_decide_recursive_inlining): Likewise.
7409 (cgraph_decide_inlining_of_small_functions): Likewise.
7410 (cgraph_decide_inlining_incrementally): Likewise.
7411 (cgraph_estimate_growth): Rename to estimate_growth; move to
7412 ipa-inline-analysis.c.
7413 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7414 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7415 (compute_inline_parameters): Likewise.
7416 (compute_inline_parameters_for_current): Likewise.
7417 (pass_inline_parameters): Likewise.
7418 (inline_indirect_intraprocedural_analysis): Likewise.
7419 (analyze_function): Rename to inline_analyze_function; likewise.
7420 (add_new_function): Move to ipa-inline-analysis.c.
7421 (inline_generate_summary): Likewise.
7422 (inline_read_summary): Likewise.
7423 (inline_write_summary): Likewise.
7424 * Makefile.in (ipa-inline-analysis.c): New file.
7426 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7428 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7429 * configure: Regenerate.
7431 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7433 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7434 instead of tree_common.
7435 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7437 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7438 TS_TYPED rather than TS_COMMON.
7439 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7441 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7444 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7445 r20 around calls of __tablejump_elpm__
7447 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7450 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7452 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7454 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7456 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7457 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7458 (cfi_vec): New typedef.
7459 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7460 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7461 (cie_cfi_vec): New static variable.
7462 (cie_cfi_head): Delete.
7463 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7464 declaration changed. Use vector rather than list operations.
7465 (new_cfi): Don't initialize the dw_cfi_next field.
7466 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7467 rather than list operations.
7468 (lookup_cfa): Use vector rather than list operations.
7469 (output_cfis): New argument upto. Accept a cfi_vec rather than
7470 a dw_cfi_ref list head as argument. All callers changed.
7471 Iterate over the vector using upto as a maximum index.
7472 (output_all_cfis): New static function.
7473 (output_fde): Use vector rather than list operations. Use the
7474 new upto argument for output_cfis rather than manipulating a
7476 (dwarf2out_begin_prologue): Change initializations to match
7478 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7479 from the vector length rather than searching for the end of a list.
7480 Use output_all_cfis.
7481 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7483 2011-04-13 Nick Clifton <nickc@redhat.com>
7485 * config/rx/rx.md (movmemsi): Do not use this pattern when
7486 volatile pointers are involved.
7488 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7490 * config/i386/sse.md (pinsrbits): Remove.
7491 (sse2_packsswb): Merge with *avx_packsswb.
7492 (sse2_packssdw): Merge with *avx_packssdw.
7493 (sse2_packuswb): Merge with *avx_packuswb.
7494 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7495 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7496 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7497 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7498 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7499 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7500 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7501 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7502 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7503 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7504 (sse2_loadld): Merge with *avx_loadld.
7505 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7506 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7507 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7508 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7509 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7511 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7513 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7515 * print-tree.c (print_node): Likewise.
7516 * tree-inline.c (copy_tree_r): Likewise.
7517 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7518 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7519 instead of TS_COMMON.
7520 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7521 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7522 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7523 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7524 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7526 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7528 (TREE_CHAIN): Check for a TS_COMMON structure.
7529 (TREE_TYPE): Check for a TS_TYPED structure.
7531 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7533 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7534 cgraph_get_create_node instead of cgraph_node.
7536 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7538 * c-parser.c (c_parser_initelt): Updated call to
7539 objc_build_message_expr.
7540 (c_parser_postfix_expression): Likewise.
7542 2011-04-12 Kai Tietz <ktietz@redhat.com>
7544 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7545 MASK_MS_BITFIELD_LAYOUT bit.
7547 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7549 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7550 assert it is always true.
7551 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7554 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7556 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7557 compiling Objective-C to be more efficient.
7559 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7561 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7564 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7566 * recog.h, genoutput.c, optabs.c: Revert last patch.
7568 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7571 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7573 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7575 * recog.h (insn_operand_data): Add an "allows_mem" field.
7576 * genoutput.c (output_operand_data): Initialize it.
7577 * optabs.c (maybe_legitimize_operand_same_code): New function.
7578 (maybe_legitimize_operand): Use it when matching the original
7581 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7583 * genpreds.c (process_define_predicate): Move most processing
7584 to gensupport.c. Continue to validate the expression.
7585 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7586 (process_define_predicate): Move processing to gensupport.c.
7587 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7588 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7589 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7591 (valid_predicate_name_p): New function, split out from old
7592 genpreds.c:process_define_predicate.
7593 (process_define_predicate): New function, combining code from
7594 old genpreds.c and genrecog.c functions.
7595 (process_rtx): Call it for DEFINE_PREDICATE and
7596 DEFINE_SPECIAL_PREDICATE.
7598 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7600 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7601 size of a '%A' memory reference.
7602 (T_DREG, T_QREG): New neon_builtin_type_bits.
7603 (arm_init_neon_builtins): Assert that the load and store operands
7604 are neon_struct_operands.
7605 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7606 (NEON_ARG_MEMORY): New builtin_arg.
7607 (neon_dereference_pointer): New function.
7608 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7609 Handle NEON_ARG_MEMORY.
7610 (arm_expand_neon_builtin): Update after above interface changes.
7611 Use NEON_ARG_MEMORY for loads and stores.
7612 * config/arm/predicates.md (neon_struct_operand): New predicate.
7613 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7614 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7615 (V_four_elem): Tweak formatting.
7616 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7617 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7618 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7619 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7620 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7621 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7622 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7623 Use %A in the output template.
7624 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7625 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7626 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7627 the width of the memory access. Remove post-increment.
7628 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7630 2011-04-12 Nick Clifton <nickc@redhat.com>
7632 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7633 instruction for interrupt handlers if the target is the basic V850
7635 (expand_epilogue): Likewise.
7637 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7639 PR rtl-optimization/48549
7640 * combine.c (propagate_for_debug): Also stop after BB_END of
7641 this_basic_block. Process LAST and just stop processing after it.
7642 (combine_instructions): If last_combined_insn has been deleted,
7643 set last_combined_insn to its PREV_INSN.
7645 2011-04-12 Richard Guenther <rguenther@suse.de>
7647 PR tree-optimization/46076
7648 * gimple.h (struct gimple_statement_call): Add fntype field.
7649 (gimple_call_fntype): Adjust.
7650 (gimple_call_set_fntype): New function.
7651 * gimple.c (gimple_build_call_1): Set the call function type.
7652 * gimplify.c (gimplify_call_expr): Preserve the function
7653 type the frontend used for the call.
7654 (gimplify_modify_expr): Likewise.
7655 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7657 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7659 * tree-ssa.c (useless_type_conversion_p): Function pointer
7660 conversions are useless.
7662 2011-04-12 Martin Jambor <mjambor@suse.cz>
7664 * cgraph.h (cgraph_node): Remove function declaration.
7665 (cgraph_create_node): Declare.
7666 (cgraph_get_create_node): Likewise.
7667 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7668 Updated all callers.
7669 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7670 the decl does not already exist. Call cgraph_get_create_node instead
7672 (cgraph_get_create_node): New function.
7673 (cgraph_same_body_alias): Update comment.
7674 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7675 assert it does not return NULL.
7676 (cgraph_update_edges_for_call_stmt): Likewise.
7677 (cgraph_clone_edge): Likewise.
7678 (cgraph_create_virtual_clone): Likewise.
7679 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7680 instead of cgraph_node.
7681 (cgraph_add_new_function): Call cgraph_create_node or
7682 cgraph_get_create_node instead of cgraph_node.
7683 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7684 instead of cgraph_node.
7685 (record_eh_tables): Likewise.
7686 (mark_address): Likewise.
7687 (mark_load): Likewise.
7688 (build_cgraph_edges): Call cgraph_get_create_node instead
7690 (rebuild_cgraph_edges): Likewise.
7691 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7692 instead of cgraph_node.
7693 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7695 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7696 cgraph_create_node instead of cgraph_node.
7697 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7699 * lto-cgraph.c (input_node): Likewise.
7700 * lto-streamer-in.c (input_function): Likewise.
7701 * varasm.c (mark_decl_referenced): Likewise.
7702 (assemble_alias): Likewise.
7704 2011-04-12 Martin Jambor <mjambor@suse.cz>
7706 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7707 instead of cgraph_node and assert it does not return NULL.
7708 * lto-streamer-in.c (lto_read_body): Likewise.
7709 * omp-low.c (new_omp_context): Likewise.
7710 (create_task_copyfn): Likewise.
7711 * tree-emutls.c (lower_emutls_function_body): Likewise.
7712 * matrix-reorg.c (transform_allocation_sites): Likewise.
7714 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7717 * c-typeck.c (build_asm_expr): Error out on attempts to use
7718 void type outputs or inputs for constraints that allow reg or
7721 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7722 Richard Earnshaw <rearnsha@arm.com>
7725 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7726 to use sign-magnitude offsets. Reject unsupported unaligned
7727 cases. Add detailed description in comments.
7728 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7729 condition from TARGET_32BIT to TARGET_ARM.
7731 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7733 * tree.h (struct typed_tree): New.
7734 (struct tree_common): Include it instead of tree_base.
7735 (TREE_TYPE): Update for new location of type field.
7736 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7737 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7738 (union tree_node): Add typed field.
7739 * treestruct.def (TS_TYPED): New.
7740 * lto-streamer.c (check_handled_ts_structures): Handle it.
7741 * tree.c (MARK_TS_TYPED): New macro.
7742 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7744 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7746 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7747 (force_nonfallthru): Do not alter the loop nest if no basic block
7750 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7752 * config/i386/sse.md (VI): New mode iterator.
7754 (AVX256MODEI): Ditto.
7755 (AVXMODEF4P): Ditto.
7756 (avxvecpsmode): Ditto.
7757 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7758 (sse2_andnot<mode>3): New expander.
7759 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7760 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7761 (<any_logic:code><mode>3): Use VI mode iterator.
7762 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7763 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7764 (*andnottf3): Handle AVX three-operand constraints.
7765 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7767 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7768 Robert Millan <rmh@gnu.org>
7770 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7771 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7772 GNU_USER_DYNAMIC_LINKER64): Define.
7773 (REG_NAME): Don't undefine.
7774 (MD_UNWIND_SUPPORT): Undefine.
7775 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7776 (REG_NAME): Don't undefine.
7777 (MD_UNWIND_SUPPORT): Undefine.
7778 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7780 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7782 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7783 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7785 2011-04-11 Xinliang David Li <davidxl@google.com>
7787 * value-profile.c (check_ic_target): New function.
7788 (gimple_ic_transform): Sanity check indirect call target.
7789 * gimple-low.c (gimple_check_call_args): Interface change.
7790 (gimple_check_call_matching_types): New function.
7791 * tree-inline.c (tree_can_inline_p): Call new function.
7793 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7795 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7796 tree-pretty-print.h & realmpfr.h.
7798 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7801 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7802 (setup_allocno_and_important_classes): Ditto.
7804 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7806 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7807 GNU_USER_DYNAMIC_LINKER.
7808 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7809 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7810 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7811 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7812 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7813 GNU_USER_TARGET_OS_CPP_BUILTINS.
7814 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7815 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7816 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7817 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7818 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7819 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7820 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7821 GNU_USER_TARGET_OS_CPP_BUILTINS.
7822 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7823 GNU_USER_DYNAMIC_LINKER.
7824 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7825 GNU_USER_TARGET_OS_CPP_BUILTINS.
7826 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7827 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7828 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7829 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7830 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7831 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7832 GNU_USER_DYNAMIC_LINKER64): Remove.
7833 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7834 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7835 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7836 GNU_USER_DYNAMIC_LINKER.
7837 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7838 GNU_USER_TARGET_OS_CPP_BUILTINS.
7839 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7840 GNU_USER_TARGET_OS_CPP_BUILTINS.
7841 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7842 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7843 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7844 GNU_USER_TARGET_OS_CPP_BUILTINS.
7845 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7846 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7847 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7848 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7849 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7850 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7851 GNU_USER_DYNAMIC_LINKER.
7852 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7853 GNU_USER_TARGET_OS_CPP_BUILTINS.
7854 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7855 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7856 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7857 GNU_USER_DYNAMIC_LINKER.
7858 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7859 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7860 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7861 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7862 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7863 GNU_USER_DYNAMIC_LINKER.
7864 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7865 GNU_USER_DYNAMIC_LINKERN32.
7866 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7867 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7868 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7869 GNU_USER_DYNAMIC_LINKER32.
7870 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7871 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7872 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7873 GNU_USER_DYNAMIC_LINKER.
7874 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7875 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7876 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7877 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7878 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7879 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7880 GNU_USER_DYNAMIC_LINKER32.
7881 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7882 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7883 GNU_USER_DYNAMIC_LINKER.
7884 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7885 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7886 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7887 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7888 GNU_USER_DYNAMIC_LINKER64.
7889 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7890 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7891 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7892 GNU_USER_DYNAMIC_LINKER.
7893 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7894 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7895 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7896 GNU_USER_DYNAMIC_LINKER.
7897 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7899 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7900 GNU_USER_DYNAMIC_LINKER32.
7901 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7902 GNU_USER_DYNAMIC_LINKER64.
7903 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7904 GNU_USER_DYNAMIC_LINKER64.
7905 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7906 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7907 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7909 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7911 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7913 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7914 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7915 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7916 GNU_USER_DYNAMIC_LINKER.
7917 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7918 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7919 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7920 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7921 GNU_USER_DYNAMIC_LINKER64.
7922 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7923 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7924 GNU_USER_LINK_EMULATION.
7925 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7926 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7927 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7928 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7929 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7930 CPP_SPEC, CC1_SPEC): Remove.
7931 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7932 (GNU_USER_DYNAMIC_LINKER): Define.
7933 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7934 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7935 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7936 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7937 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7938 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7939 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7940 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7941 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7942 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7943 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7944 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7945 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7946 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7947 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7948 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7949 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7950 GNU_USER_DYNAMIC_LINKER.
7951 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7952 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7953 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7954 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7955 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7956 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7957 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7958 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7959 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7960 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7962 2011-04-11 Kai Tietz <ktietz@redhat.com>
7966 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7967 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7969 (ix86_is_msabi_thiscall): Removed.
7970 (ix86_is_type_thiscall): Likewise.
7971 (ix86_get_callcvt): New function.
7972 (ix86_comp_type_attributes): Simplify check.
7973 (ix86_function_regparm): Use ix86_get_callcvt for calling
7974 convention attribute checks.
7975 (ix86_return_pops_args): Likewise.
7976 (ix86_static_chain): Likewise.
7977 (x86_this_parameter): Likewise.
7978 (x86_output_mi_thunk): Likewise.
7979 (ix86_function_type_abi): Optimize check for types without attributes.
7980 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7981 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7982 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7984 (IX86_BASE_CALLCVT): Helper macro.
7985 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7986 Use ix86_get_callcvt for calling convention attribute checks and avoid
7987 symbol-decoration for stdcall in TARGET_RTD case.
7988 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7990 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7993 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7995 * config/i386/sse.md (VI_128): New mode iterator.
7996 (VI12_128): Rename from SSEMODE12.
7997 (VI14_128): Rename from SSEMODE14.
7998 (VI124_128): New mode iterator.
7999 (VI24_128): Rename from SSEMODE248.
8000 (VI248_128): Rename from SSEMODE248.
8001 (SSEMODE124C8): Remove.
8002 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8003 (*sse2_<plusminus_insn><mode>3): Merge with
8004 *avx_<plusminus_insn><mode>3.
8005 (*mulv8hi3): Merge with *avx_mulv8hi3.
8006 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8007 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8008 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8009 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8010 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8011 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8012 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8013 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8014 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8015 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8016 (*<smaxmin:code>v8hi3): Ditto.
8017 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8018 (*<smaxmin:code>v16qi3): Ditto.
8019 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8020 (*sse2_eq<mode>3): Ditto.
8021 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8022 (*sse2_gt<mode>3): Ditto.
8023 (vcondv2di): Split out of vcond<mode>.
8024 (vconduv2di): Split out of vcondu<mode>.
8026 2011-04-11 Richard Guenther <rguenther@suse.de>
8028 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8029 before calling tree_low_cst.
8031 2011-04-11 Richard Guenther <rguenther@suse.de>
8033 * stor-layout.c (layout_type): Compute all array index size operations
8034 in the original type.
8035 (initialize_sizetypes): Add comment.
8036 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8038 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8040 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8042 2011-04-11 Martin Jambor <mjambor@suse.cz>
8044 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8045 of cgraph_node, handle NULL return value.
8046 (cgraph_global_info): Likewise.
8047 (cgraph_rtl_info): Likewise.
8048 * tree-inline.c (estimate_num_insns): Likewise.
8049 * gimplify.c (unshare_body): Likewise.
8050 (unvisit_body): Likewise.
8051 (gimplify_body): Likewise.
8052 * predict.c (optimize_function_for_size_p): Likewise.
8053 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8054 (call_may_clobber_ref_p_1): Likewise.
8055 * varasm.c (function_section_1): Likewise.
8056 (assemble_start_function): Likewise.
8058 2011-04-11 Martin Jambor <mjambor@suse.cz>
8060 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8062 * final.c (rest_of_clean_state): Likewise.
8063 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8064 * passes.c (pass_init_dump_file): Likewise.
8065 (execute_all_ipa_transforms): Likewise.
8066 (function_called_by_processed_nodes_p): Likewise.
8067 * predict.c (maybe_hot_frequency_p): Likewise.
8068 (probably_never_executed_bb_p): Likewise.
8069 (compute_function_frequency): Likewise.
8070 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8071 (unnest_nesting_tree_1): Likewise.
8072 (lower_nested_functions): Likewise.
8073 * tree-optimize.c (execute_fixup_cfg): Likewise.
8074 (tree_rest_of_compilation): Likewise.
8075 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8076 * tree-sra.c (ipa_early_sra): Likewise.
8077 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8078 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8079 * ipa.c (record_cdtor_fn): Likewise.
8080 * ipa-inline.c (cgraph_early_inlining): Likewise.
8081 (compute_inline_parameters_for_current): Likewise.
8082 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8083 * ipa-pure-const.c (local_pure_const): Likewise.
8084 * ipa-split.c (split_function): Likewise.
8085 (execute_split_functions): Likewise.
8086 * cgraphbuild.c (build_cgraph_edges): Likewise.
8087 (rebuild_cgraph_edges): Likewise.
8088 (cgraph_rebuild_references): Likewise.
8089 (remove_cgraph_callee_edges): Likewise.
8090 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8091 (verify_cgraph_node): Likewise.
8092 (cgraph_analyze_functions): Likewise.
8093 (cgraph_preserve_function_body_p): Likewise.
8094 (save_inline_function_body): Likewise.
8095 (save_inline_function_body): Likewise.
8096 * tree-inline.c (copy_bb): Likewise.
8097 (optimize_inline_calls): Likewise.
8099 2011-04-11 Martin Jambor <mjambor@suse.cz>
8101 PR tree-optimization/48195
8102 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8103 ipa_check_create_edge_args.
8104 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8105 ipa_check_create_edge_args.
8106 * ipa-inline.c (inline_generate_summary): Do not call
8107 ipa_check_create_node_params and ipa_check_create_edge_args.
8108 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8109 ipa_check_create_edge_args.
8111 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8113 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8115 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8116 * function.c (record_hard_reg_sets): Likewise.
8117 * ira.c (compute_regs_asm_clobbered): Likewise.
8118 * sched-deps.c (sched_analyze_1): Likewise.
8119 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8121 2011-04-09 Xinliang David Li <davidxl@google.com>
8123 PR tree-optimization/PR48484
8124 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8125 has_valid_pred lazily
8127 2011-04-09 Duncan Sands <baldrick@free.fr>
8129 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8131 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8133 * combine.c (combine_validate_cost): Adjust comments. Set registered
8134 cost of I0 to zero at the end, if any.
8136 2011-04-08 Xinliang David Li <davidxl@google.com>
8138 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8139 to insane profile data.
8141 2011-04-08 Xinliang David Li <davidxl@google.com>
8143 * ipa-cp.c (ipcp_update_profiling): Correct
8144 negative scale factor due to insane profile data.
8146 2011-04-08 Xinliang David Li <davidxl@google.com>
8148 * final.c (dump_basic_block_info): New function.
8149 (final): Dump basic block.
8150 (final_scan_insn): Remove old dump.
8152 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8155 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8158 2011-04-08 Michael Matz <matz@suse.de>
8161 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8163 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8164 * rtl.h (rebuild_jump_labels_chain): Declare.
8165 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8166 insns inserted on edges.
8168 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8170 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8171 * config/arm/arm-arches.def: New.
8172 * config/arm/arm-opts.h: New.
8173 * config/arm/genopt.sh: New.
8174 * config/arm/arm-tables.opt: New (generated).
8175 * config/arm/arm.c (arm_handle_option, arm_target_help,
8176 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8177 (all_architectures): Get most table contents from arm-arches.def.
8178 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8179 arm_selected_tune here.
8180 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8181 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8182 (march=, mcpu=, mtune=): Use Enum and Var.
8183 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8184 (arm.o): Update dependencies.
8186 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8188 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8190 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8191 (write_typed_alloc_defns): Likewise.
8192 (main): Calls write_typed_alloc_defns with output_header.
8194 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8197 * ira-color.c (setup_profitable_hard_regs): Add comments.
8198 Don't take prohibited hard regs into account.
8199 (setup_conflict_profitable_regs): Rename to
8200 get_conflict_profitable_regs.
8201 (check_hard_reg_p): Check prohibited hard regs.
8203 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8205 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8206 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8207 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8209 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8212 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8213 move from floating point to shift amount register.
8214 (emit_move_sequence): Remove secondary reload support for floating
8215 point to shift amount amount register copies.
8216 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8217 amount register copies.
8218 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8219 register, return false if mode isn't a scalar integer mode.
8220 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8222 2011-04-08 Richard Guenther <rguenther@suse.de>
8224 * gimple.c (gimple_call_flags): Remove kludge.
8226 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8228 * sel-sched.c (sel_region_init): Move call to
8229 sel_setup_region_sched_flags after setup_current_loop_nest.
8231 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8233 PR rtl-optimization/48272
8234 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8235 init_insn_reg_pressure_info. Adjust a caller.
8236 * sched-int.h (init_insn_reg_pressure_info): Declare.
8237 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8238 when sched-pressure is enabled.
8240 2011-04-08 Richard Guenther <rguenther@suse.de>
8242 * gimple.c (gimple_set_modified): Do not queue calls to
8243 MODIFIED_NORETURN_CALLS here ...
8244 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8246 2011-04-08 Richard Guenther <rguenther@suse.de>
8249 * toplev.c (lang_dependent_init): Do not open asm_out_file
8250 in WPA mode, nor perform debug machinery initialization.
8251 (finalize): Do not unlink asm_out_file in WPA mode.
8253 2011-04-08 Richard Guenther <rguenther@suse.de>
8255 * gimple.h (gimple_call_fntype): New function.
8256 (gimple_call_return_type): Use it.
8257 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8258 * gimple-low.c (gimple_check_call_args): Likewise.
8259 * gimple.c (gimple_call_flags): Likewise.
8260 (gimple_call_arg_flags): Likewise.
8261 (gimple_call_return_flags): Likewise.
8262 * tree-cfg.c (verify_gimple_call): Likewise.
8263 (do_warn_unused_result): Likewise.
8264 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8265 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8267 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8269 PR rtl-optimization/48235
8270 * sel-sched.c (code_motion_process_successors): Recompute the last
8271 insn in basic block if control flow changed.
8272 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8273 Update condition for ilist_remove.
8275 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8277 PR rtl-optimization/48302
8278 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8279 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8280 it to record added preheader blocks.
8281 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8282 on to sel_add_loop_preheaders.
8283 (sel_region_init): Move call to setup_current_loop_nest after
8286 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8289 * cfgloop.h (loop_has_exit_edges): New helper.
8290 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8292 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8293 that have no exit edges.
8295 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8297 PR rtl-optimization/48442
8298 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8299 all callers. Adjust assert.
8301 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8303 PR tree-optimization/48377
8304 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8305 is_packed to true even for types with smaller TYPE_ALIGN than
8308 2011-04-08 Richard Guenther <rguenther@suse.de>
8311 * doc/tm.texi: Re-generate.
8313 2011-04-08 Wei Guozhi <carrot@google.com>
8316 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8317 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8318 * config/arm/arm.md (*push_multi): Change the length computation to
8321 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8323 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8324 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8325 * doc/tm.texi: Regenerate.
8326 * system.h (ASM_OUTPUT_BSS): Poison.
8327 * varasm.c (asm_output_bss): Remove function.
8328 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8330 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8331 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8332 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8333 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8335 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8337 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8339 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8341 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8343 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8346 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8348 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8349 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8350 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8352 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8353 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8354 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8355 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8356 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8357 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8358 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8359 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8360 options. Don't map other m68k options manually. Don't handle
8361 old-style options as canonical.
8362 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8363 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8365 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8367 * basic-block.h (force_nonfallthru): Move to...
8368 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8369 (force_nonfallthru): ...here.
8370 * cfghooks.c (force_nonfallthru): New function.
8371 * cfgrtl.c (force_nonfallthru): Rename into...
8372 (rtl_force_nonfallthru): ...this.
8373 (commit_one_edge_insertion): Do not set AUX field.
8374 (commit_edge_insertions): Do not discover new basic blocks.
8375 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8376 (cfg_layout_rtl_cfg_hooks): Likewise.
8377 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8378 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8379 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8381 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8383 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8386 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8388 * config/i386/sse.md: Update copyright year.
8389 (avxcvtvecmode): Remove.
8390 (sse_movhlps): Merge with *avx_movhlps.
8391 (sse_movlhps): Merge with *avx_movlhps.
8392 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8393 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8394 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8395 (sse_loadhps): Merge with *avx_loadhps.
8396 (sse_storelps): Merge with *avx_storelps.
8397 (sse_loadlps): Merge with *avx_loadlps.
8398 (sse_movss): Merge with *avx_movss.
8399 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8400 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8401 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8402 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8403 (vec_set<mode>_0): Ditto.
8404 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8405 (sse4_1_insertps): Merge with *avx_insertps.
8406 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8407 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8408 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8409 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8410 (sse2_storehpd): Merge with *avx_storehpd.
8411 (sse2_loadhpd): Merge with *avx_loadhpd.
8412 (sse2_loadlpd): Merge with *avx_loadlpd.
8413 (sse2_movsd): Merge with *avx_movsd.
8414 (*vec_concatv2df): Merge with *vec_concatv2df.
8416 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8419 * combine.c (combine_instructions): Add last_combined_insn,
8420 update it if insn is after it, pass it to all try_combine calls.
8421 (try_combine): Add last_combined_insn parameter, pass it instead of
8422 i3 to propagate_for_debug.
8424 2011-04-07 Nick Clifton <nickc@redhat.com>
8426 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8427 to handle MDR <-> data register transfers.
8428 (movhi_internal): Likewise.
8430 2011-04-07 Alan Modra <amodra@gmail.com>
8432 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8433 previous stack info.
8435 2011-04-07 Tom de Vries <tom@codesourcery.com>
8438 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8439 flow_find_cross_jump. Swap variables to implement backward replacement.
8440 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8442 2011-04-07 Tom de Vries <tom@codesourcery.com>
8445 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8446 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8448 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8449 src1 or src2. Redirect edges to the last basic block. Update
8450 frequency and count on multiple basic blocks in case of fallthru.
8452 2011-04-07 Tom de Vries <tom@codesourcery.com>
8455 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8457 (old_insns_match_p): Change return type. Replace return false/true
8458 with return dir_none/dir_both. Use can_replace_by.
8459 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8460 direction from dir_p. Register replacement direction in dir, last_dir
8461 and afterlast_dir. Handle new return type of old_insns_match_p using
8462 merge_dir. Return replacement direction in dir_p.
8463 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8464 return type of old_insns_match_p.
8465 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8466 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8467 flow_find_cross_jump.
8468 * basic-block.h (enum replace_direction): New type.
8469 (flow_find_cross_jump): Add parameter to declaration.
8471 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8473 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8474 (AVXMODEDCVTPS2DQ): Ditto.
8475 (VEC_FLOAT_MODE): Ditto.
8476 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8477 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8478 (<any_logic:code><mode>3): Use VF mode iterator.
8479 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8480 Use VF mode iterator.
8481 (copysign<mode>3): Use VF mode iterator.
8482 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8483 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8484 (*<any_logic:code><MODEF:mode>3): Merge with
8485 *avx_<any_logic:code><MODEF:mode>3.
8486 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8487 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8488 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8489 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8490 (sse2_cvtdq2ps): Use %v modifier.
8491 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8492 (avx_cvtps2dq<avxmodesuffix>): Remove.
8493 (sse2_cvtps2dq): Use %v modifier.
8494 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8495 (avx_cvttps2dq<avxmodesuffix>): Remove.
8496 (sse2_cvttps2dq): Use %v modifier.
8497 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8498 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8499 (sse2_cvtsd2siq): Fix insn template.
8500 (sse2_cvtsd2siq_2): Ditto.
8501 (sse2_cvttsd2siq): Ditto.
8502 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8503 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8505 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8507 * gcov-io.c: Use GCC Runtime Library Exception.
8509 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8512 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8513 as base_reg whatever register reg has been eliminated to, instead
8514 of hardcoding STACK_POINTER_REGNUM.
8516 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8518 * doc/tm.texi.in: Document C target hooks as separate from general
8520 * doc/tm.texi: Regenerate.
8521 * genhooks.c (struct hook_desc): Add docname field.
8522 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8524 (hook_array): Include c-target.def.
8525 (emit_documentation): Use docname field in output.
8526 (emit_init_macros): Take docname argument. Only emit definitions
8527 for hooks matching docname.
8528 (main): Expect additional arguments in all cases. Pass argument
8529 to emit_init_macros.
8530 * target.def: Move initial macro definitions and comments to
8531 target-hooks-macros.h.
8532 (gcc_targetcm): Move to c-family/c-target.def.
8533 * target.h (targetcm): Move declaration to c-family/c-target.h.
8534 * targhooks.c (default_handle_c_option): Move to
8536 * targhooks.h (default_handle_c_option): Move declaration to
8537 c-family/c-common.h.
8538 * target-hooks-macros.h: New file.
8539 * config.gcc (target_has_targetcm): Define and use to add to
8540 c_target_objs and cxx_target_objs.
8541 * config/default-c.c: New file.
8542 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8543 of target.h and target-def.h.
8544 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8545 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8546 darwin_check_cfstring_format_arg): Make static.
8547 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8548 TARGET_STRING_OBJECT_REF_TYPE_P,
8549 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8550 * config/darwin-protos.h (darwin_objc_construct_string,
8551 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8553 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8554 TARGET_STRING_OBJECT_REF_TYPE_P,
8555 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8556 * config/t-darwin (darwin-c.o): Update dependencies.
8557 * system.h (TARGET_HAS_TARGETCM): Poison.
8558 * Makefile.in (TARGET_H): Update.
8559 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8560 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8561 (default-c.o): New target.
8562 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8563 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8564 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8566 (build/genhooks.o): Update dependencies.
8568 2011-04-06 Richard Guenther <rguenther@suse.de>
8570 * ipa-inline.c (enum inlining_mode): Remove.
8571 (cgraph_flatten): Use some other token.
8572 (cgraph_edge_early_inlinable_p): New function, split out from ...
8573 (cgraph_perform_always_inlining): New function, split out from ...
8574 (cgraph_decide_inlining_incrementally): ... here.
8575 (cgraph_mark_inline_edge): Adjust.
8576 (cgraph_early_inlining): Re-structure.
8577 (pass_early_inline): Require SSA form.
8579 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8580 Julian Brown <julian@codesourcery.com>
8581 Mark Shinwell <shinwell@codesourcery.com>
8583 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8584 LO_REGS only for Thumb-1.
8585 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8586 be used in short instructions when optimising for size on Thumb-2.
8588 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8590 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8591 associated with user returns to be preserved.
8593 2011-04-06 Tristan Gingold <gingold@adacore.com>
8595 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8596 symbol_queue_size, DBXOUT_DECR_NESTING,
8597 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8598 if XCOFF_DEBUGGING_INFO.
8600 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8602 * config/i386/i386.md (attribute isa): New.
8603 (attribute enabled): New.
8604 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8605 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8606 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8607 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8608 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8609 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8610 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8611 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8613 * config/i386/sse.md (VF): New mode iterator.
8617 (SSEMODEF4): Remove.
8618 (attribute sse): Handle V8SF and V4DF modes.
8619 (<absneg:code><mode>2): Use VF mode iterator.
8620 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8622 (<plusminus_insn><mode>3): Use VF mode iterator.
8623 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8624 Use VF mode iterator.
8625 (<sse>_vm<plusminus_insn><mode>3): Merge with
8626 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8627 (mul<mode>3): Use VF mode iterator.
8628 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8629 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8631 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8632 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8633 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8634 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8636 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8637 Use VF1 mode iterator.
8638 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8639 (sqrt<VF2:mode>2): New expander.
8640 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8641 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8642 and sqrtv2df2. Use VF mode iterator.
8643 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8645 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8646 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8647 Use VF1 mode iterator.
8648 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8649 (<smaxmin:code><mode>3): Use VF mode iterator.
8650 (*<smaxmin:code><mode>3_finite): Merge with
8651 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8652 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8653 (<sse>_vm<smaxmin:code><mode>2): Merge with
8654 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8655 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8657 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8659 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8660 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8661 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8662 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8663 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8665 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8666 Use VF_128 mode iterator.
8667 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8669 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8670 VF_128 mode iterator.
8671 (vcond<mode>): Use VF mode iterator.
8672 * config/i386/predicates.md (sse_comparison_operator): Merge with
8673 avx_comparison_float_operator. Do not declare as special_predicate.
8674 * config/i386/i386.c (struct builtin_description): Update for renamed
8676 (ix86_expand_args_builtin): Ditto.
8677 (ix86_expand_sse_compare_mask): Ditto.
8679 2011-04-06 Richard Guenther <rguenther@suse.de>
8681 * tree-inline.c (estimate_num_insns): For calls simply account
8682 for all passed arguments and a used return value.
8684 2011-04-06 Richard Guenther <rguenther@suse.de>
8686 PR tree-optimization/47663
8687 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8688 call_stmt_time fields.
8689 (cgraph_edge_inlinable_p): Declare.
8690 (cgraph_edge_recursive_p): New inline function.
8691 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8692 (cgraph_clone_edge): Copy it.
8693 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8694 Account for call stmt time.
8695 (cgraph_estimate_time_after_inlining): Take edge argument.
8696 (cgraph_estimate_edge_growth): Account call stmt size.
8697 (cgraph_estimate_size_after_inlining): Take edge argument.
8698 (cgraph_mark_inline_edge): Adjust.
8699 (cgraph_check_inline_limits): Likewise.
8700 (cgraph_recursive_inlining_p): Remove.
8701 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8702 (cgraph_decide_recursive_inlining): Take edge argument and
8704 (cgraph_decide_inlining_of_small_functions): Do not avoid
8705 diags for recursive inlining here.
8706 (cgraph_flatten): Adjust.
8707 (cgraph_decide_inlining_incrementally): Likewise.
8708 (estimate_function_body_sizes): Remove call cost handling.
8709 (compute_inline_parameters): Initialize caller edge call costs.
8710 (cgraph_estimate_edge_growth): New function.
8711 (cgraph_estimate_growth): Use it.
8712 (cgraph_edge_badness): Likewise.
8713 (cgraph_check_inline_limits): Take an edge argument.
8714 (cgraph_decide_inlining_of_small_functions): Adjust.
8715 (cgraph_decide_inlining): Likewise.
8716 * tree-inline.c (estimate_num_insns): Only account for call
8717 return value if it is used.
8718 (expand_call_inline): Avoid diagnostics on recursive inline
8720 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8721 (input_edge): Input edge call costs.
8723 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8725 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8727 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8729 * doc/invoke.texi (Spec Files): Fix typo.
8731 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8733 * profile.c (branch_prob): Move declaration of local variable. Remove
8734 obsolete ??? comment. Expand the location explicitly instead of using
8735 the LOCATION_FILE and LOCATION_LINE macros.
8737 2011-04-06 Wei Guozhi <carrot@google.com>
8740 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8741 (arm_cond_branch): Likewise.
8742 (arm_cond_branch_reversed): Likewise.
8743 (arm_jump): Likewise.
8744 (push_multi): Likewise.
8745 * config/arm/constraints.md (Py): New constraint.
8747 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8750 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8752 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8753 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8754 #ifdef DBX_DEBUGGING_INFO.
8756 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8759 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8760 if old and new states differ.
8762 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8764 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8765 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8766 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8767 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8768 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8770 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8771 ColdFire options to -mcpu= options.
8773 2011-04-05 Jeff Law <law@redhat.com>
8775 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8776 check if BB is a successor of LOOP->header and return
8777 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8779 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8781 * cprop.c (struct reg_use): Remove.
8782 (reg_use_table): Make an array of RTX.
8783 (find_used_regs, constprop_register, local_cprop_pass,
8784 bypass_block): Simplify users of reg_use_table.
8785 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8786 on one of the uses found by find_used_regs.
8788 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8791 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8794 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8796 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8798 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8800 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8803 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8805 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8807 * combine.c: Include obstack.h.
8808 (struct insn_link): Define.
8809 (uid_log_links): Adjust type.
8810 (FOR_EACH_LOG_LINK): New macro.
8811 (insn_link_obstack): Declare.
8812 (alloc_insn_link): Define.
8813 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8814 type of link variables.
8815 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8816 (try_combine, record_promoted_values, distribute_notes): Likewise.
8817 (distribute_links): Likewise. Tweak prototype.
8818 (clear_log_links): Delete.
8819 (adjust_for_new_dest): Call alloc_insn_link.
8820 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8822 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8824 * gcse.c (modify_mem_list): Convert to an array of VECs.
8825 (canon_modify_mem_list, compute_transp): Tweak formatting.
8826 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8827 (load_killed_in_block_p): Likewise.
8828 (record_last_mem_set_info): Likewise.
8829 (clear_modify_mem_tables): Likewise.
8831 2011-04-05 Tom de Vries <tom@codesourcery.com>
8834 * function.c (emit_use_return_register_into_block): Only define if
8837 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8839 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8841 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8843 * config/rx/rx-opts.h: New.
8844 * config/rx/rx.c (rx_cpu_type): Remove.
8845 (rx_handle_option): Don't assert that global structures are in
8846 use. Access variables via opts pointer. Defer most handling of
8847 OPT_mint_register_. Use error_at.
8848 (rx_option_override): Handle deferred OPT_mint_register_ here.
8849 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8850 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8851 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8852 (rx_cpu_types): New Enum and EnumValue entries.
8853 (mint-register=): Use Defer and use Var accordingly.
8855 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8857 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8858 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8859 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8861 (debug_free_queue, debug_nesting, symbol_queue_index):
8863 * dbxout.c: ...to here. Make static.
8865 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8867 * gcse.c (modify_pair): Define. Define a VEC of it.
8868 (canon_modify_mem_list): Convert to an array of VECs.
8869 (free_insn_expr_list_list): Delete.
8870 (clear_modify_mem_tables): Call VEC_free instead.
8871 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8872 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8873 (canon_list_insert, compute_transp): Likewise.
8875 2011-04-05 Tom de Vries <tom@codesourcery.com>
8878 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8881 2011-04-05 Tom de Vries <tom@codesourcery.com>
8884 * function.c (emit_use_return_register_into_block): New function.
8885 (thread_prologue_and_epilogue_insns): Use
8886 emit_use_return_register_into_block.
8888 2011-04-05 Tom de Vries <tom@codesourcery.com>
8891 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8894 2011-04-05 Tom de Vries <tom@codesourcery.com>
8896 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8898 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8900 * config/arm/arm.md (define_constants for unspec): Replace with
8902 (define_constants for unspecv): Replace with define_c_enum.
8903 * config/arm/neon.md (define_constants for unspec): Replace with
8906 2011-04-04 Richard Henderson <rth@redhat.com>
8909 * dwarf2out.c (output_line_info): Always emit line info from
8910 at least one section.
8911 (dwarf2out_init): Create text_section_line_info here ...
8912 (set_cur_line_info_table): ... not here.
8914 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8917 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8920 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8922 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8924 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8925 (expr_equiv_p): Remove.
8926 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8927 (hash_scan_set): Update call to insert_set_in_table.
8928 (dump_hash_table): Dump <dest, src> pair.
8929 (lookup_set): Simplify. Lookup <dest, src> pair.
8930 (compute_transp): Remove, fold heavily simplified code into...
8931 (compute_local_properties): ...here. Expect COMP and TRANSP
8933 (find_avail_set): Take set directly from struct expr.
8934 (find_bypass-set): Likewise.
8935 (bypass_block): Likewise.
8936 (cprop_insn): Likewise. Remove redundant INSN_P test.
8938 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8939 checks on form of COND from find_implicit_sets to here.
8940 (find_implicit_sets): Cleanup control flow. Split critical edges
8941 if it exposes implicit sets. Allocate/resize implicit_sets as
8943 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8944 changed something. Run df_analyze after find_implicit_sets if any
8945 edges were split. Do not allocate implicit_sets here.
8947 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8948 (gcse_obstack): Renamed to cprop_obstack.
8949 (GNEW, GNEWVEC, GNEWVAR): Remove.
8951 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8952 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8953 (gcse_alloc): Likewise, and rename to cprop_alloc.
8954 (alloc_gcse_men, free_gcse_mem): Remove.
8955 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8956 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8957 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8959 * cprop.c (oprs_not_set_p): Remove.
8960 (mark_set, mark_clobber): Remove.
8961 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8962 (reg_not_set_p): New function.
8963 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8964 (cprop_insn): Likewise.
8965 (cprop_jump): Use FOR_EACH_EDGE.
8967 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8970 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8971 (rank_for_schedule): Use scheduled_insns vector instead of
8972 last_scheduled_insn.
8973 (ok_for_early_queue_removal): Likewise.
8974 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8976 (choose_ready): Likewise.
8977 (commit_schedule): Use VEC_iterate.
8978 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8979 a dbg_cnt, use it and ensure the first insn is in the ready list.
8980 (haifa_sched_init): Allocate scheduled_insns.
8981 (sched_extend_ready_list): Don't allocate it; reserve space.
8982 (haifa_sched_finish): Free it.
8984 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8986 * optc-gen.awk: Always remove type from Variable entry before
8987 recording in var_seen.
8989 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8991 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8992 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8993 call to tidy_fallthru_edges.
8995 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8997 * doc/options.texi (ToLower): Document.
8998 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8999 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9000 * opts.h (cl_option): Add cl_tolower field.
9001 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9002 arguments with lowercase strings.
9003 * config/rx/rx.opt (mcpu=): Add ToLower.
9004 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9007 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9009 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9011 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9013 * config/vax/vax.c: Include reload.h.
9015 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9017 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9018 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9019 (sparc_preferred_reload_class): New function.
9021 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9024 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9025 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9027 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9029 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9030 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9032 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9034 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9035 (ASM_OUTPUT_ALIGNED_BSS): Define.
9037 2011-04-03 Michael Matz <matz@suse.de>
9039 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9040 and next_slot members.
9041 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9042 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9043 (lto_streamer_cache_append): Declare.
9044 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9045 unsigned index, remove offset parameter, ensure that we append
9046 or update existing entries.
9047 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9048 parameter, update next_slot for append.
9049 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9051 (lto_streamer_cache_insert_at): Likewise.
9052 (lto_streamer_cache_append): New function.
9053 (lto_streamer_cache_lookup): Use unsigned index.
9054 (lto_streamer_cache_get): Likewise.
9055 (lto_record_common_node): Don't test tree_node_can_be_shared.
9056 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9057 (lto_streamer_cache_delete): Don't free offsets member.
9058 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9059 (lto_output_string_with_length): Use lto_output_data_stream.
9060 (lto_output_tree_header): Remove ix parameter, don't write it.
9061 (lto_output_builtin_tree): Likewise.
9062 (lto_write_tree): Adjust callers to above, don't track and write
9063 offset, write unsigned index.
9064 (output_unreferenced_globals): Don't emit all global vars.
9065 (write_global_references): Use unsigned indices.
9066 (lto_output_decl_state_refs): Likewise.
9067 (write_symbol): Likewise.
9068 * lto-streamer-in.c (lto_input_chain): Move earlier.
9069 (input_function): Use unsigned index.
9070 (input_alias_pairs): Don't read and then ignore all global vars.
9071 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9072 don't pass it back, use lto_streamer_cache_append.
9073 (lto_register_var_decl_in_symtab): Use unsigned index.
9074 (lto_register_function_decl_in_symtab): Likewise.
9075 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9077 (lto_get_builtin_tree): Don't read index, use
9078 lto_streamer_cache_append.
9079 (lto_read_tree): Adjust call to lto_materialize_tree.
9081 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9082 don't use function calls in arguments to MIN.
9084 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9087 * gimple.c (gimple_type_leader_entry): Mark deletable.
9089 2011-04-03 Alan Modra <amodra@gmail.com>
9091 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9093 2011-04-03 Michael Matz <matz@suse.de>
9095 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9097 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9099 2011-04-03 Michael Matz <matz@suse.de>
9101 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9102 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9103 without function context.
9104 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9105 current_function_decl and cfun.
9107 2011-04-03 Michael Matz <matz@suse.de>
9109 * tree.c (decl_init_priority_insert): Don't create entry for
9111 (decl_fini_priority_insert): Ditto.
9112 (fields_compatible_p, find_compatible_field): Remove.
9113 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9114 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9116 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9118 * combine.c (try_combine): Remove useless local variable.
9120 2011-04-03 Richard Guenther <rguenther@suse.de>
9121 Ira Rosen <ira.rosen@linaro.org>
9123 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9124 non-variable offsets and compare the remaining bases of the two
9125 accesses instead of looking for exact same data-ref.
9127 2011-04-02 Kai Tietz <ktietz@redhat.com>
9130 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9132 * i386.c (ix86_is_msabi_thiscall): New helper function.
9133 (ix86_is_type_thiscall): New helper function.
9134 (ix86_comp_type_attributes): Handle thiscall for method-functions
9136 (init_cumulative_args): Likewise.
9137 (find_drap_reg): Likewise.
9138 (ix86_static_chain): Likewise.
9139 (x86_this_parameter): Likewise.
9140 (x86_output_mi_thunk): Likewise.
9142 2011-04-01 Olivier Hainque <hainque@adacore.com>
9143 Nicolas Setton <setton@adacore.com>
9144 Eric Botcazou <ebotcazou@adacore.com>
9146 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9147 (add_gnat_descriptive_type_attribute): New function.
9148 (gen_array_type_die): Call it.
9149 (gen_enumeration_type_die): Likewise.
9150 (gen_struct_or_union_type_die): Likewise.
9151 (modified_type_die): Likewise.
9152 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9153 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9154 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9156 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9159 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9160 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9163 2011-03-17 Richard Guenther <rguenther@suse.de>
9166 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9167 origin for decls in other ltrans units.
9168 (input_varpool_node): Likewise.
9170 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9173 * expr.c (expand_assignment): Handle all possibilities
9174 if TO_RTX is CONCAT.
9175 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9176 (store_split_bit_field): If SUBREG_REG (op0) or
9177 op0 itself has smaller mode than word, return it
9178 for offset 0 and const0_rtx for out-of-bounds stores.
9179 If word is const0_rtx, skip it.
9181 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9183 * config/h8300/h8300.c (print_operand_address): Rename to...
9184 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9185 Call h8300_print_operand and h8300_print_operand_address instead of
9186 print_operand and print_operand_address. Declare.
9187 (print_operand): Renake to...
9188 (h8300_print_operand): ...this. Make static. Adjust comments.
9189 Call h8300_print_operand instead of print_operand. Declare.
9190 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9191 (h8300_register_move_cost): Likewise.
9192 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9193 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9194 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9195 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9196 * config/h8300/h8300-protos.h (print_operand): Delete.
9197 (print_operand_address): Delete.
9199 2011-04-01 Richard Henderson <rth@redhat.com>
9202 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9203 in strict mode before dwarf4. Re-order tests to early out
9204 before switching sections.
9206 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9208 * config/h8300/constraints.md: New file.
9209 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9210 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9211 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9212 * config/h8300/predicates.md (bit_operand): Likewise.
9213 (incdec_operand): Use satisfies_constraint_M and
9214 satisfies_constraint_O. Don't use C code block.
9215 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9216 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9217 (compute_mov_length): Use satisfies_constraint_G.
9218 (fix_bit_operand): Use satisfies_constraint_U.
9219 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9220 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9221 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9222 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9223 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9224 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9225 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9226 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9227 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9228 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9229 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9230 (EXTRA_MEMORY_CONSTRAINT): Delete.
9232 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9233 Michael Meissner <meissner@linux.vnet.ibm.com>
9236 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9237 operands, as per the specifications.
9239 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9240 (vec_extract_evenv4sf): Ditto.
9241 (vec_extract_evenv8hi): Ditto.
9242 (vec_extract_evenv16qi): Ditto.
9243 (vec_extract_oddv4si): Ditto.
9245 2011-03-31 Mark Wielaard <mjw@redhat.com>
9247 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9248 high_pc attribute if the CU has no associated code. Only output
9249 DW_AT_entry_pc for CU if not generating strict dwarf and
9252 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9254 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9255 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9257 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9258 * final.c (final_start_function): Call the new function rather
9259 than using a NULL argument for dwarf2out_frame_debug.
9261 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9262 that contains the prologue.
9264 * haifa-sched.c (queue_insn): New arg REASON. All callers
9265 changed. Print it in debugging output.
9267 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9269 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9270 Split most of the code into...
9271 (begin_move_insn): ... here. New function.
9272 (ebb_sched_info): Add a pointer to it.
9273 * haifa-sched.c (scheduled_insns): New static variable.
9274 (sched_extend_ready_list): Allocate it.
9275 (schedule_block): Use it to record the order of scheduled insns.
9276 Perform RTL changes to move insns only after all scheduling
9277 decisions have been made.
9278 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9279 begin_move_insn field.
9280 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9281 * sched-int.h (struct haifa_sched_info): Remove second argument
9282 from begin_schedule_ready hook. Add new member begin_move_insn.
9283 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9284 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9286 * haifa-sched.c (prune_ready_list): New function, broken out of
9288 (schedule_block): Use it.
9290 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9292 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9294 2011-04-01 Kai Tietz <ktietz@redhat.com>
9296 * config.gcc (*-*-mingw*): Allow as option the
9297 posix threading model.
9298 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9299 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9301 (CPP_SPEC): Add pthread/no-pthread handling.
9302 (LIB_SPEC): Likewise.
9303 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9304 (LIB_SPEC): Likewise.
9305 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9306 flag to pass -pthread option for shared libgcc build.
9307 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9308 for shared libgcc build.
9309 * config/i386/t-mingw-pthread: New file.
9310 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9311 New define to enable use of library pthread by default.
9312 * config/i386/mingw.opt (pthread): New driver option.
9313 (no-pthread): New driver option.
9314 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9315 * config/i386/mingw-w64.opt: Likewise.
9317 2011-04-01 Gary Funck <gary@intrepid.com>
9319 * c-decl.c (grokdeclarator): Fix formatting.
9321 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9323 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9324 instead of n_operands.
9325 (set_storage_via_setmem): Likewise.
9326 * optabs.c (maybe_gen_insn): Likewise.
9327 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9328 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9329 (mips_expand_builtin_direct): Likewise.
9330 * config/spu/spu.c (expand_builtin_args): Likewise.
9332 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9334 * recog.h (insn_data_d): Add n_generator_args.
9335 * genoutput.c (data): Likewise.
9336 (output_insn_data): Print it.
9337 (max_opno, num_dups): Delete.
9338 (scan_operands): Just fill in "d->operand[...]".
9339 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9341 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9343 * gensupport.h (pattern_stats): New structure.
9344 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9345 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9346 (max_operand_1, max_operand_vec): Delete.
9347 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9349 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9351 * emit-rtl.c (emit_pattern_after_setloc): New function.
9352 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9353 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9354 (emit_pattern_after): New function.
9355 (emit_insn_after, emit_jump_insn_after): Call it.
9356 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9357 (emit_pattern_before_setloc): New function.
9358 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9359 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9361 (emit_pattern_before): New function.
9362 (emit_insn_before, emit_jump_insn_before): Call it.
9363 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9365 2011-03-31 Richard Henderson <rth@redhat.com>
9367 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9368 (dw_separate_line_info_entry): Remove.
9369 (enum dw_line_info_opcode): New.
9370 (dw_line_info_entry): Use it.
9371 (dw_line_info_table, dw_line_info_table_p): New.
9372 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9373 (line_info_table, line_info_label_num): Remove.
9374 (line_info_table_in_use): Remove.
9375 (separate_line_info_table): Remove.
9376 (separate_line_info_table_allocated): Remove.
9377 (separate_line_info_table_in_use): Remove.
9378 (LINE_INFO_TABLE_INCREMENT): Remove.
9379 (line_info_label_num): New.
9380 (cur_line_info_table): New.
9381 (text_section_line_info, cold_text_section_line_info): New.
9382 (separate_line_info): New.
9383 (SEPARATE_LINE_CODE_LABEL): Remove.
9384 (print_dwarf_line_table): Remove.
9385 (debug_dwarf): Don't dump it.
9386 (output_one_line_info_table): New.
9387 (output_line_info): Use it.
9388 (new_line_info_table): New.
9389 (set_cur_line_info_table): New.
9390 (dwarf2out_switch_text_section): Use it.
9391 (dwarf2out_begin_function): Likewise.
9392 (push_dw_line_info_entry): New.
9393 (dwarf2out_source_line): Rewrite for new line info tables.
9394 (dwarf2out_init): Remove dead initailizations.
9396 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9398 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9400 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9401 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9402 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9403 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9404 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9405 * opt-functions.awk (flag_init, switch_bit_fields): New.
9406 (switch_flags): Don't handle flags moved to bit-fields. Don't
9407 generate CL_MISSING_OK or CL_SAVE.
9408 * optc-gen.awk: Update to generate bit-field output as well as
9410 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9411 bit-field instead of CL_REJECT_DRIVER flag.
9412 * opts-common.c (generate_canonical_option,
9413 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9414 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9415 instead of CL_REJECT_NEGATIVE flag.
9416 * toplev.c (print_switch_values): Use cl_report bit-field instead
9419 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9421 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9422 a zero minimum index only if it is redundant.
9424 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9426 PR rtl-optimization/48381
9427 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9428 instead of ira_class_hard_reg_index for calculating conflicting
9431 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9433 * cprop.c: Clean up hash table building.
9434 (reg_avail_info): Remove.
9435 (oprs_available_p): Remove.
9436 (record_last_reg_set_info): Remove.
9437 (record_last_set_info): Remove.
9438 (reg_available_p): New function.
9439 (gcse_constant_p): Do not treat unfolded conditions as constants.
9440 (make_set_regs_unavailable): New function.
9441 (hash_scan_set): Simplify with new reg_available_p.
9442 (compute_hash_table_work): Traverse insns stream only once.
9443 Do not compute reg_avail_info. Traverse insns in reverse order.
9444 Record implicit sets after recording explicit sets from the block.
9446 2011-03-31 Michael Matz <matz@suse.de>
9448 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9450 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9452 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9453 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9454 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9455 (h8300_mode_dependent_address_p): New function.
9456 (h8300_get_index): Make static.
9458 2011-03-31 Jeff Law <law@redhat.com>
9460 * reload1.c (elimination_effects): Fix typo in recent change.
9462 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9463 typo potentially leading to null pointer dereference.
9465 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9466 (setup_save_areas): Corresponding changes to avoid useless
9469 * jump.c (reversed_comparison_code_parts): Avoid successive return
9470 statements when REVERSE_CONDITION is defined.
9472 * expr.c (expand_assignment): Avoid useless assignments.
9473 (expand_expr_real_1): Likewise.
9474 (expand_expr_real_2): Avoid useless statements.
9476 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9478 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9480 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9483 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9485 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9488 * doc/tm.texi.in (TARGET_VERSION): Remove.
9489 * doc/tm.texi: Regenerate.
9490 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9491 * collect2.c (main): Don't use TARGET_VERSION.
9492 * mips-tdump.c (main): Don't use TARGET_VERSION.
9493 * mips-tfile.c (main): Don't use TARGET_VERSION.
9494 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9495 * config/rs6000/vxworksae.h: Remove.
9496 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9497 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9498 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9499 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9500 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9501 * config/arm/arm.h (TARGET_VERSION): Remove.
9502 * config/arm/coff.h (TARGET_VERSION): Remove.
9503 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9504 * config/arm/elf.h (TARGET_VERSION): Remove.
9505 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9506 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9507 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9508 * config/arm/pe.h (TARGET_VERSION): Remove.
9509 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9510 * config/arm/semi.h (TARGET_VERSION): Remove.
9511 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9512 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9513 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9514 * config/avr/avr.h (TARGET_VERSION): Remove.
9515 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9516 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9517 * config/frv/frv.h (TARGET_VERSION): Remove.
9518 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9519 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9520 * config/i386/darwin.h (TARGET_VERSION): Remove.
9521 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9522 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9523 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9524 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9525 * config/i386/gnu.h (TARGET_VERSION): Remove.
9526 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9527 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9528 * config/i386/linux.h (TARGET_VERSION): Remove.
9529 * config/i386/linux64.h (TARGET_VERSION): Remove.
9530 * config/i386/lynx.h (TARGET_VERSION): Remove.
9531 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9532 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9533 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9534 * config/i386/netware.h (TARGET_VERSION): Remove.
9535 * config/i386/nto.h (TARGET_VERSION): Remove.
9536 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9537 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9538 * config/ia64/elf.h (TARGET_VERSION): Remove.
9539 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9540 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9541 * config/ia64/linux.h (TARGET_VERSION): Remove.
9542 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9543 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9544 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9545 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9546 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9547 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9548 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9549 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9550 * config/m68k/linux.h (TARGET_VERSION): Remove.
9551 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9552 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9553 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9554 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9555 * config/mep/mep.h (TARGET_VERSION): Remove.
9556 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9557 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9558 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9559 * config/mips/linux.h (TARGET_VERSION): Remove.
9560 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9561 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9562 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9563 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9564 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9565 * config/pa/pa.h (TARGET_VERSION): Remove.
9566 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9567 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9568 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9569 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9570 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9571 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9572 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9573 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9574 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9575 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9576 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9577 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9578 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9579 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9580 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9581 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9582 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9583 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9584 * config/s390/linux.h (TARGET_VERSION): Remove.
9585 * config/s390/s390.h (TARGET_VERSION): Remove.
9586 * config/s390/tpf.h (TARGET_VERSION): Remove.
9587 * config/score/score.h (TARGET_VERSION): Remove.
9588 * config/sh/linux.h (TARGET_VERSION): Remove.
9589 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9590 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9591 * config/sh/sh.h (TARGET_VERSION): Remove.
9592 * config/sh/sh64.h (TARGET_VERSION): Remove.
9593 * config/sh/superh.h (TARGET_VERSION): Remove.
9594 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9595 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9596 * config/sparc/linux.h (TARGET_VERSION): Remove.
9597 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9598 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9599 TARGET_NAME32, TARGET_NAME): Remove.
9600 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9601 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9602 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9603 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9604 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9605 * config/spu/spu.h (TARGET_VERSION): Remove.
9606 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9607 * config/v850/v850.h (TARGET_VERSION): Remove.
9608 * config/vax/linux.h (TARGET_VERSION): Remove.
9609 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9610 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9611 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9613 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9616 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9617 frame-related from frame-unrelated adjustments to the stack pointer.
9619 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9621 * common.opt (fdebug-types-section): Move earlier.
9622 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9624 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9626 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9629 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9631 * tree.h (CASE_CHAIN): Define.
9632 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9633 (gimple_redirect_edge_and_branch): Likewise.
9635 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9638 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9641 2011-03-30 Jeff Law <law@redhat.com>
9643 * PR bootstrap/48371
9644 * reload1.c (reload): Fix botch in last change.
9646 * reload.h (struct reload): Fix typo introduced in last change.
9648 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9650 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9651 Undocumented. Remove help text.
9652 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9655 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9657 * doc/options.texi (NegativeAlias): Document.
9658 (Alias): Mention NegativeAlias.
9659 * opt-functions.awk: Handle NegativeAlias.
9660 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9661 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9662 * opts.h (CL_NEGATIVE_ALIAS): Define.
9663 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9664 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9666 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9668 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9669 mno-spe and mno-isel instead of mspe=no and -misel=no.
9671 2011-03-29 Mark Wielaard <mjw@redhat.com>
9673 * common.opt (fdebug-types-section): New flag.
9674 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9675 * dwarf2out.c (use_debug_types): New define.
9676 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9677 (print_die): Guard output of type unit signatures using
9679 (build_abbrev_table): Replace assert of dwarf_version >= 4
9680 with assert on use_debug_types.
9681 (size_of_die): Likewise.
9682 (unmark_dies): Likewise.
9683 (value_format): Decide AT_ref_external form on use_debug_types.
9684 (output_die): Replace dwarf_version version check guard with
9685 use_debug_types where appropriate.
9686 (modified_type_die): Likewise.
9687 (gen_reference_type_die): Likewise.
9688 (dwarf2out_start_source_file): Likewise.
9689 (dwarf2out_end_source_file): Likewise.
9690 (prune_unused_types_walk_attribs): Likewise.
9691 (dwarf2out_finish): Likewise.
9693 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9695 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9697 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9699 PR rtl-optimization/48332
9700 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9701 mode of input operand N and modeN to its actual mode.
9703 2011-03-30 Jeff Law <law@redhat.com>
9705 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9706 define accessor macro.
9707 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9708 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9709 (reg_equiv_init): Likewise.
9710 (reg_equivs_size): New variable.
9711 (reg_equiv_init_size): Remove.
9712 (allocate_initial_values): Move prototype to here from....
9713 * integrate.h (allocate_initial_values): Remove prototype.
9714 * integrate.c: Include reload.h.
9715 (allocate_initial_values): Corresponding changes.
9716 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9717 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9718 (update_equiv_regs): Corresponding changes.
9719 (ira): Corresponding changes.
9720 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9721 (push_secondary_reload): Corresponding changes.
9722 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9723 (make_memloc, find_reloads_address): Corresponding changes.
9724 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9725 (find_reloads_address_1): Corresponding changes.
9726 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9727 (refers_to_regno_for_reload_p): Corresponding changes.
9728 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9729 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9730 * reload1.c: Include ggc.h.
9731 (grow_reg_equivs): New function.
9732 (replace_pseudos_in, reload): Corresponding changes.
9733 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9734 (eliminate_regs_1, elimination_effects): Corresponding changes.
9735 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9736 (delete_output_reload): Likewise.
9737 * caller-save.c (mark_referenced_regs): Corresponding changes.
9738 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9739 * frv/predicates.md (frv_load_operand): Corresponding changes.
9740 * microblaze/microblaze.c (double_memory_operand): Corresponding
9742 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9743 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9744 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9745 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9746 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9748 * pa/pa.c (emit_move_sequence): Corresponding changes.
9749 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9751 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9754 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9755 structure modes. Don't check neon_vector_mem_operand for
9756 vector or structure modes.
9758 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9759 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9762 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9763 operand 1 and reshuffle the operands to match.
9764 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9766 2011-03-30 Christian SchĂĽler <cschueler@gmx.de>
9769 * config/c.opt (F): Added 'Driver' to -F option.
9772 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9774 * config/darwin.opt: Added '-arch' option.
9776 2011-03-30 Nick Clifton <nickc@redhat.com>
9778 * config/rx/rx.md: Add peepholes and patterns to combine
9779 extending loads and simple arithmetic instructions.
9780 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9781 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9782 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9783 modes to use pre-decrement and post-increment addressing.
9784 (rx_is_restricted_memory_address): Add range checking of REG+INT
9786 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9787 (rx_memory_move_cost): Adjust cost of stores.
9788 (rx_adjust_insn_length): New function.
9790 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9793 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9794 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9795 matching arg00/arg01 types.
9797 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9799 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9800 last_location to UNKNOWN_LOCATION.
9802 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9805 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9808 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9809 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9812 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9814 (sparc_cpu): Likewise.
9815 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9818 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9822 PR rtl-optimization/48345
9823 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9824 hard regs for given mode from profitable regs when doing secondary
9827 2011-03-29 Jeff Law <law@redhat.com>
9830 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9831 do_not_duplicate field.
9832 (lookup_redirection_data): Corresponding changes.
9833 (create_duplicates): Always create a template block.
9834 (redirect_edges): Remove code which reused the original block
9835 when it was going to become unreachable code.
9836 (thread_block): Don't set do_not_duplicate field.
9838 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9840 * lto-opts.c (register_user_option_p, lto_register_user_option):
9841 Make type argument unsigned.
9842 * lto-streamer.h (lto_register_user_option): Make type argument
9844 * opth-gen.awk: Make CL_* macros unsigned.
9845 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9846 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9847 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9848 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9849 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9850 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9851 (find_opt): Make lang_mask argument unsigned.
9853 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9855 PR rtl-optimization/48331
9856 PR rtl-optimization/48334
9857 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9858 for any used algorithm.
9860 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9862 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9865 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9867 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9868 (alpha_option_override): Don't set alpha_sr_alias_set.
9869 (emit_frame_store_1): Use gen_frame_mem rather than calling
9871 (alpha_expand_epilogue): Ditto.
9873 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9875 PR tree-optimization/48290
9876 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9877 vectorization, check that relevant phis in the basic block after
9878 the inner loop are really inner loop's exit phis.
9880 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9883 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9884 (cached_dw_loc_list_def): New structure.
9885 (cached_dw_loc_list): New typedef.
9886 (cached_dw_loc_list_table): New variable.
9887 (cached_dw_loc_list_table_hash): New function.
9888 (cached_dw_loc_list_table_eq): Likewise.
9889 (add_location_or_const_value_attribute): Take a bool cache_p.
9890 Cache the list when the parameter is true.
9891 (gen_formal_parameter_die): Update caller.
9892 (gen_variable_die): Likewise.
9893 (dwarf2out_finish): Likewise.
9894 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9895 while generating debug info for the decl.
9896 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9897 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9898 (resolve_addr): Cache the result of resolving a chain of
9901 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9903 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9904 conflict object hard regset nodes have intersecting hard reg sets.
9906 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9907 after regstat_init_n_sets_and_refs.
9909 * ira.c: Add more comments at the top.
9910 (setup_stack_reg_pressure_class, setup_pressure_classes):
9911 Add comments how we compute the register pressure classes.
9912 (setup_allocno_and_important_classes): Add more comments.
9913 (setup_class_translate_array, reorder_important_classes)
9914 (setup_reg_class_relations): Add comments.
9916 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9919 * ira-color.c: Add 2011 to the Copyright line.
9920 (assign_hard_reg): Add more comments.
9921 (improve_allocation): Ditto.
9923 * ira-costs.c: Add 2011 to the Copyright line.
9924 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9926 (setup_regno_cost_classes_by_mode): Ditto.
9928 Initial patches from ira-improv branch:
9930 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9932 * ira-build.c (ira_create_object): Remove initialization of
9933 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9934 (ira_create_allocno): Remove initialization of
9935 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9936 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9937 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9938 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9939 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9940 Initialize ALLOCNO_ADD_DATA.
9941 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9942 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9944 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9945 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9947 * ira.c (ira_reallocate): Remove.
9948 (setup_pressure_classes): Call
9949 ira_init_register_move_cost_if_necessary. Use
9950 ira_register_move_cost instead of ira_get_register_move_cost.
9951 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9952 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9954 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9955 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9956 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9957 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9958 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9959 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9961 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9962 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9963 (struct allocno_color_data): New.
9964 (allocno_color_data_t): New typedef.
9965 (allocno_color_data): New definition.
9966 (ALLOCNO_COLOR_DATA): New macro.
9967 (struct object_color_data): New.
9968 (object_color_data_t): New typedef.
9969 (object_color_data): New definition.
9970 (OBJECT_COLOR_DATA): New macro.
9971 (update_copy_costs, calculate_allocno_spill_cost): Call
9972 ira_init_register_move_cost_if_necessary. Use
9973 ira_register_move_cost instead of ira_get_register_move_cost.
9974 (move_spill_restore, update_curr_costs): Ditto.
9975 (allocno_spill_priority): Make it inline.
9976 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9977 (struct coalesce_data, coalesce_data_t): New.
9978 (allocno_coalesce_data): New definition.
9979 (ALLOCNO_COALESCE_DATA): New macro.
9980 (merge_allocnos, coalesced_allocno_conflict_p): Use
9981 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9982 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9983 (coalesce_allocnos): Ditto.
9984 (setup_coalesced_allocno_costs_and_nums): Ditto.
9985 (collect_spilled_coalesced_allocnos): Ditto.
9986 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9987 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9988 (coalesce_spill_slots): Ditto.
9989 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9990 free allocno_coalesce_data.
9992 * ira-conflicts.c: Fix formatting.
9993 (process_regs_for_copy): Call
9994 ira_init_register_move_cost_if_necessary. Use
9995 ira_register_move_cost instead of ira_get_register_move_cost.
9996 (build_object_conflicts): Optimize.
9998 * ira-costs.c (record_reg_classes): Optimize. Call
9999 ira_init_register_move_cost_if_necessary. Use
10000 ira_register_move_cost, ira_may_move_in_cost, and
10001 ira_may_move_out_cost instead of ira_get_register_move_cost and
10002 ira_get_may_move_cost.
10003 (record_address_regs): Ditto.
10004 (scan_one_insn): Optimize.
10005 (find_costs_and_classes): Optimize.
10006 (process_bb_node_for_hard_reg_moves): Call
10007 ira_init_register_move_cost_if_necessary. Use
10008 ira_register_move_cost instead of ira_get_register_move_cost.
10010 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10011 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10012 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10013 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10015 (ira_initiate_emit_data, ira_finish_emit_data)
10016 (create_new_allocno): New functions.
10017 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10018 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10019 Use ira_register_move_cost instead of ira_get_register_move_cost.
10021 * ira-int.h: Fix some comments.
10022 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10023 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10024 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10025 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10027 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10028 bitfield after mode. Make hard_regno a short int. Make
10029 hard_regno short. Remove first_coalesced_allocno and
10030 next_coalesced_allocno. Move mem_optimized_dest_p,
10031 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10032 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10033 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10034 temp, colorable_p. Add new member add_data.
10035 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10036 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10037 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10038 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10039 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10040 (ALLOCNO_ADD_DATA): New macro.
10041 (ira_emit_data_t): New typedef.
10042 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10043 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10044 from struct ira_allocno.
10045 (ALLOCNO_EMIT_DATA): New macro.
10046 (ira_allocno_emit_data, allocno_emit_reg): New.
10047 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10048 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10049 (OBJECT_ADD_DATA): New macro.
10050 (ira_reallocate): Remove.
10051 (ira_initiate_emit_data, ira_finish_emit_data): New.
10052 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10053 (ira_init_register_move_cost_if_necessary): New.
10054 (ira_object_conflict_iter_next): Merge into
10055 ira_object_conflict_iter_cond.
10056 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10058 * ira-live.c (process_single_reg_class_operands): Call
10059 ira_init_register_move_cost_if_necessary. Use
10060 ira_register_move_cost instead of ira_get_register_move_cost.
10062 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10064 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10066 * ira-costs.c: Fix formatting.
10067 (cost_classes, cost_classes_num): Remove.
10068 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10069 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10070 (cost_classes_del, cost_classes_htab): New.
10071 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10072 (initiate_regno_cost_classes, setup_cost_classes): New.
10073 (setup_regno_cost_classes_by_aclass): New.
10074 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10075 (record_reg_classes): Use regno_cost_classes instead of
10076 cost_classes. Move checking opposite operand up.
10077 (record_address_regs): Use regno_cost_classes
10078 instead of cost_classes.
10079 (scan_one_insn): Ditto. Use always general register.
10080 (print_allocno_costs): Use regno_cost_classes instead of
10082 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10083 (find_costs_and_classes): Set up cost classes for each registers.
10084 Use also their mode for this. Use regno_cost_classes instead of
10086 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10088 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10089 (ira_costs, ira_set_pseudo_classes): Call
10090 initiate_regno_cost_classes and finish_regno_cost_classes.
10092 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10094 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10096 * target.def (ira_cover_classes): Remove.
10098 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10100 * doc/tm.texi.in: Ditto.
10102 * ira-conflicts.c: Remove mentioning cover classes from the file.
10103 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10104 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10106 * targhooks.c (default_ira_cover_classes): Remove.
10108 * targhooks.h (default_ira_cover_classes): Ditto.
10110 * haifa-sched.c: Remove mentioning cover classes from the file.
10111 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10112 ira_pressure_classes and ira_pressure_classes_num instead of
10113 ira_reg_class_cover_size and ira_reg_class_cover. Use
10114 sched_regno_pressure_class instead of sched_regno_cover_class.
10115 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10116 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10118 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10119 classes from the file.
10120 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10121 (struct object_hard_regs, struct object_hard_regs_node): New.
10122 (struct ira_object): New members profitable_hard_regs,
10123 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10124 (struct ira_allocno): Rename cover_class to aclass. Rename
10125 cover_class_cost and updated_cover_class_cost to class_cost and
10126 updated_class_cost. Remove splay_removed_p and
10127 left_conflict_size. Add new members colorable_p.
10128 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10129 (ALLOCNO_COLORABLE_P): New macro.
10130 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10131 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10132 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10133 (OBJECT_...): Rename parameter C to O.
10134 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10135 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10136 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10137 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10138 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10139 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10140 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10141 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10142 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10143 x_ira_reg_class_subunion.
10144 (ira_max_memory_move_cost, ira_max_register_move_cost)
10145 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10146 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10147 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10148 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10149 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10150 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10151 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10152 (ira_tune_allocno_costs_and_cover_classes): Rename to
10153 ira_tune_allocno_costs.
10154 (ira_debug_hard_regs_forest): New.
10155 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10156 (ira_object_conflict_iter_next): Fix comments.
10157 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10158 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10159 cover_class to aclass.
10160 (ira_allocate_and_accumulate_costs): Ditto.
10161 (ira_allocate_and_set_or_copy_costs): Ditto.
10163 * opts.c (decode_options): Remove ira_cover_class check.
10165 * ira-color.c: Remove mentioning cover classes from the file. Use
10166 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10167 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10168 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10169 (splay-tree.h): Remove include.
10170 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10171 before copy_freq_compare_func.
10172 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10173 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10175 (hard_regs_roots, hard_regs_node_vec): Ditto.
10176 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10177 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10178 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10179 (create_new_object_hard_regs_node): Ditto.
10180 (add_new_object_hard_regs_node_to_forest): Ditto.
10181 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10182 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10184 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10185 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10186 (remove_unused_object_hard_regs_nodes): Ditto.
10187 (enumerate_object_hard_regs_nodes): Ditto.
10188 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10189 (object_hard_regs_subnode_t): Ditto.
10190 (struct object_hard_regs_subnode): Ditto.
10191 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10192 (setup_object_hard_regs_subnode_index): Ditto.
10193 (get_object_hard_regs_subnodes_num): Ditto.
10194 (form_object_hard_regs_nodes_forest): Ditto.
10195 (finish_object_hard_regs_nodes_tree): Ditto.
10196 (finish_object_hard_regs_nodes_forest): Ditto.
10197 (allocnos_have_intersected_live_ranges_p): Rename to
10198 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10199 (pseudos_have_intersected_live_ranges_p): Rename to
10200 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10201 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10202 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10203 (update_copy_costs): Remove assert. Skip cost update if the hard
10204 reg does not belong the class.
10205 (assign_hard_reg): Process only profitable hard regs.
10206 (uncolorable_allocnos_num): Make it scalar.
10207 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10208 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10209 and ira_reg_class_max_nregs.
10210 (bucket_allocno_compare_func): Check frequency first.
10211 (sort_bucket): Add compare function as a parameter.
10212 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10213 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10214 (push_allocno_to_stack): Rewrite for checking new allocno
10216 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10217 (push_only_colorable): Pass new parameter to sort_bucket.
10218 (push_allocno_to_spill): Remove.
10219 (allocno_spill_priority_compare): Make it inline and rewrite.
10220 (splay_tree_allocate, splay_tree_free): Remove.
10221 (allocno_spill_sort_compare): New function.
10222 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10223 build and use splay tree. Choose first allocno in uncolorable
10224 allocno bucket to spill. Remove setting spill cost.
10225 (all_conflicting_hard_regs): Remove.
10226 (setup_allocno_available_regs_num): Check only profitable hard
10227 regs. Print info about hard regs nodes.
10228 (setup_allocno_left_conflicts_size): Remove.
10229 (put_allocno_into_bucket): Don't call
10230 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10231 (improve_allocation): New.
10232 (color_allocnos): Call setup_profitable_hard_regs,
10233 form_object_hard_regs_nodes_forest, improve_allocation,
10234 finish_object_hard_regs_nodes_forest. Setup spill cost.
10235 (print_loop_title): Use pressure classes.
10236 (color_allocnso): Ditto.
10237 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10238 and allocnos_for_spilling.
10239 (ira_sort_regnos_for_alter_reg): Don't setup members
10240 {first,next}_coalesced_allocno.
10241 (color): Remove allocating and freeing removed_splay_allocno_vec.
10242 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10243 prohibited_class_mode_regs.
10245 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10247 (update_allocno_pressure_excess_length): Use pressure classes.
10248 (inc_register_pressure, dec_register_pressure): Check for pressure
10250 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10251 pressure class. Use ira_reg_class_nregs instead of
10252 ira_reg_class_max_nregs.
10253 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10254 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10255 (single_reg_class): Use ira_reg_class_nregs instead of
10256 ira_reg_class_max_nregs.
10257 (process_bb_node_lives): Use pressure classes.
10259 * ira-emit.c: Remove mentioning cover classes from the file. Use
10260 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10261 (change_loop): Use pressure classes.
10262 (modify_move_list): Call ira_set_allocno_class instead of
10263 ira_set_allocno_cover_class.
10265 * ira-build.c: Remove mentioning cover classes from the file. Use
10266 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10267 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10268 ALLOCNO_UPDATED_CLASS_COST instead of
10269 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10270 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10271 (ira_create_allocno): Remove initialization of
10272 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10273 ALLOCNO_COLORABLE_P.
10274 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10275 Update conflict regs for the objects.
10276 (create_cap_allocno): Remove assert. Don't propagate
10277 ALLOCNO_AVAILABLE_REGS_NUM.
10278 (ira_free_allocno_costs): New function.
10279 (finish_allocno): Change a part of code into call of
10280 ira_free_allocno_costs.
10281 (low_pressure_loop_node_p): Use pressure classes.
10282 (object_range_compare_func): Don't compare classes.
10283 (setup_min_max_conflict_allocno_ids): Ditto.
10285 * loop-invariant.c: Remove mentioning cover classes from the file.
10286 Use ira_pressure_classes and ira_pressure_classes_num instead of
10287 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10288 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10289 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10290 Use reg_allocno_class instead of reg_cover_class.
10291 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10292 STACK_REG_COVER_CLASS.
10293 (get_regno_cover_class): Rename to get_regno_pressure_class.
10294 (move_loop_invariants): Initialize and finalize regstat.
10296 * ira.c: Remove mentioning cover classes from the file. Add
10297 comments about coloring without cover classes. Use ALLOCNO_CLASS
10298 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10299 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10300 setup_class_subset_and_memory_move_costs.
10301 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10302 (setup_cover_and_important_classes): Rename to
10303 setup_allocno_and_important_classes.
10304 (setup_class_translate_array): New.
10305 (setup_class_translate): Call it for allocno and pressure classes.
10306 (cover_class_order): Rename to allocno_class_order.
10307 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10308 of ira_class_translate.
10309 (reorder_important_classes): Set up ira_important_class_nums.
10310 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10311 (print_class_cover): Rename to print_classes. Add parameter.
10312 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10313 Print pressure classes too.
10314 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10315 setup_reg_subclasses.
10316 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10317 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10318 (setup_prohibited_class_mode_regs): Use
10319 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10320 (clarify_prohibited_class_mode_regs): New function.
10321 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10322 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10323 (ira_init_once): Initialize them.
10324 (free_register_move_costs): Process them.
10325 (ira_init): Move calls of find_reg_classes and
10326 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10327 Call clarify_prohibited_class_mode_regs.
10328 (ira_no_alloc_reg): Remove.
10329 (too_high_register_pressure_p): Use pressure classes.
10331 * sched-deps.c: Remove mentioning cover classes from the file.
10332 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10333 ira_pressure_classes and ira_pressure_classes_num instead of
10334 ira_reg_class_cover_size and ira_reg_class_cover.
10335 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10336 sched_regno_pressure_class instead of sched_regno_cover_class.
10337 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10338 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10340 * ira.h: Add 2010 to Copyright.
10341 (ira_no_alloc_reg): Remove external.
10342 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10343 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10344 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10345 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10346 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10347 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10348 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10349 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10350 x_ira_no_alloc_regs.
10351 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10352 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10353 ira_allocno_classes_num and ira_allocno_classes.
10354 (ira_class_translate): Rename to ira_allocno_class_translate.
10355 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10356 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10357 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10358 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10359 (ira_no_alloc_regs): New.
10361 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10362 classes from the file. Use ALLOCNO_CLASS instead of
10363 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10364 ALLOCNO_COVER_CLASS_COST.
10365 (regno_cover_class): Rename to regno_aclass.
10366 (record_reg_classes): Use ira_reg_class_subunion instead of
10367 ira_reg_class_union.
10368 (record_address_regs): Check overflow.
10369 (scan_one_insn): Ditto.
10370 (print_allocno_costs): Print total mem cost fore regional allocation.
10371 (print_pseudo_costs): Use REG_N_REFS.
10372 (find_costs_and_classes): Use classes intersected with them on the
10373 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10374 ira_reg_class_union. Use ira_allocno_class_translate and
10375 regno_aclass instead of ira_class_translate and regno_cover_class.
10376 Modify code for finding regno_aclass. Setup preferred classes for
10378 (setup_allocno_cover_class_and_costs): Rename to
10379 setup_allocno_class_and_costs. Use regno_aclass instead of
10380 regno_cover_class. Use ira_set_allocno_class instead of
10381 ira_set_allocno_cover_class.
10382 (init_costs, finish_costs): Use regno_aclass instead of
10384 (ira_costs): Use setup_allocno_class_and_costs instead of
10385 setup_allocno_cover_class_and_costs.
10386 (ira_tune_allocno_costs_and_cover_classes): Rename to
10387 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10388 by processing objects. Use ira_reg_class_max_nregs instead of
10389 ira_reg_class_nregs.
10391 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10393 * sched-int.h: Remove mentioning cover classes from the file.
10394 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10396 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10397 classes from the file.
10398 (struct reg_pref): Rename coverclass into allocnoclass.
10399 (reg_cover_class): Rename to reg_allocno_class.
10401 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10403 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10405 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10407 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10409 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10411 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10413 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10415 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10417 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10419 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10421 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10422 (i386_ira_cover_classes): Ditto.
10424 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10426 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10428 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10430 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10432 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10434 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10436 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10437 (mips_ira_cover_classes): Ditto.
10439 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10441 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10443 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10445 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10447 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10449 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10450 (IRA_COVER_CLASSES_VSX): Ditto.
10452 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10453 (rs6000_ira_cover_classes): Ditto.
10455 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10457 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10459 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10461 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10463 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10465 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10467 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10469 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10471 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10473 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10475 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10478 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10479 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10480 dw_fde_unlikely_section_end_label, cold_in_std_section,
10481 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10482 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10484 (output_fde): Use dw_fde_second_{begin,end} if second is
10485 true, otherwise dw_fde_{begin,end}.
10486 (output_call_frame_info): Test dw_fde_second_begin != NULL
10487 instead of dw_fde_switched_sections.
10488 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10489 fields, initialize new fields. Initialize in_std_section
10490 unconditionally from the first partition.
10491 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10492 dw_fde_second_begin is non-NULL.
10493 (dwarf2out_switch_text_section): Stop initializing removed
10494 dw_fde_struct fields, initialize new fields, initialize
10495 also dw_fde_end here. Set dw_fde_switch_cfi even when
10496 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10497 (struct var_loc_list_def): Add last_before_switch field.
10498 (arange_table, arange_table_allocated, arange_table_in_use,
10499 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10500 (size_of_aranges): Count !in_std_section and !second_in_std_section
10501 hunks in fdes, instead of looking at arange_table_in_use.
10502 (output_aranges): Add aranges_length argument, don't call
10503 size_of_aranges here. Instead of using aranges_table*
10504 emit ranges for fdes when !in_std_section resp.
10505 !second_in_std_section.
10506 (dw_loc_list): Break ranges crossing section switch.
10507 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10508 use dw_fde_second_end instead of dw_fde_end as end of last range.
10509 (gen_subprogram_die): Don't call add_arange. Use
10510 dw_fde_{begin,end} for first partition and if switched
10511 section dw_fde_second_{begin,end} for the second.
10512 (var_location_switch_text_section_1,
10513 var_location_switch_text_section): New functions.
10514 (dwarf2out_begin_function): Initialize cold_text_section even
10515 when function_section () isn't text_section.
10516 (prune_unused_types): Don't walk arange_table.
10517 (dwarf2out_finish): Don't needlessly test
10518 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10519 If info_section_emitted, call size_of_aranges and if it indicates
10520 non-empty .debug_aranges, call output_aranges with the computed
10521 size. Stop using removed dw_fde_struct fields, use
10522 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10526 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10527 create ENTRY_VALUE if incoming or address of incoming's MEM
10529 * dwarf2out.c (mem_loc_descriptor): Don't emit
10530 DW_OP_GNU_entry_value of DW_OP_fbreg.
10531 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10532 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10533 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10534 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10536 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10537 is a REG_P or MEM_P with REG_P address, compute hash directly
10538 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10539 (preserve_only_constants): Don't clear VALUES forwaring
10540 ENTRY_VALUE to some other VALUE.
10542 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10544 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10545 instead of GEN_INT.
10547 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10549 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10550 block before expanding the statement.
10551 (expand_gimple_stmt_1): Likewise. Set them here...
10552 (expand_gimple_stmt): ...and not here. Tidy.
10553 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10556 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10558 * Makefile.in: New rule for cprop.o.
10559 * gcse.c: Move constant/copy propagation to cprop.c.
10560 (compute_local_properties): Only handle expression tables.
10561 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10562 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10563 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10564 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10565 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10566 compute_cprop_data, find_used_regs, try_replace_reg,
10567 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10568 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10569 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10570 find_bypass_set, reg_killed_on_edge, bypass_block,
10571 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10572 execute_rtl_cprop, pass_rtl_cprop): Move to...
10573 * cprop.c: ...here. New file, constant/copy propagation for RTL
10574 moved from gcse.c to here with minor cleanups in duplicated code.
10576 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10578 * config/i386/i386.c (flag_opts): Fix a typo in
10579 -mavx256-split-unaligned-store.
10581 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10583 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10584 LIBCALL_VALUE): Remove macros.
10585 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10586 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10587 (h8300_function_value, h8300_libcall_value,
10588 h8300_function_value_regno_p): New functions.
10590 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10592 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10594 2011-03-28 Jeff Law <law@redhat.com>
10596 * tree-ssa-threadupdate.c (redirect_edges): Call
10597 create_edge_and_update_destination_phis as needed.
10598 (create_edge_and_update_destination_phis): Accept new BB argument.
10599 All callers updated.
10600 (thread_block): Do not update the profile when threading around
10601 intermediate blocks.
10602 (thread_single_edge): Likewise.
10603 (determine_bb_domination_status): If BB is not a successor of the
10604 loop header, return NONDOMINATING.
10605 (register_jump_thread): Note when we register a jump thread around
10606 an intermediate block.
10607 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10608 (thread_across_edge): Use it.
10610 2011-03-28 Tristan Gingold <gingold@adacore.com>
10612 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10613 when for_return is 2.
10615 2011-03-28 Jeff Law <law@redhat.com>
10617 * var-tracking.c (canonicalize_values_mark): Delete unused
10619 (canonicalize_values_star, set_variable_part): Likewise.
10620 (clobber_variable_part, delete_variable_part): Likewise.
10622 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10624 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10626 2011-03-28 Martin Jambor <mjambor@suse.cz>
10628 * tree-inline.c (expand_call_inline): Do not check that destination
10630 (optimize_inline_calls): Assert that destination node is analyzed.
10631 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10632 not call tree_lowering_passes.
10633 * cgraph.h (cgraph_analyze_function): Declare.
10634 * cgraphunit.c (cgraph_analyze_function): Make public.
10636 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10638 * config/sparc/sparc-opts.h: New.
10639 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10640 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10641 (sparc_option_override): Store processor_type enumeration rather
10642 than string in cpu_default. Remove name and enumeration from
10643 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10644 without using sparc_select. Use target_flags_explicit instead of
10646 * config/sparc/sparc.h (enum processor_type): Move to
10648 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10649 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10650 HeaderInclude entry.
10651 (mcpu=, mtune=): Use Var and Enum.
10652 (sparc_processor_type): New Enum and EnumValue entries.
10654 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10655 Iain Sandoe <iains@gcc.gnu.org>
10658 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10660 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10662 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10663 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10664 Insert new statements at it in lieu of STMT.
10665 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10666 * tree-vect-stmts.c (vectorizable_store): Likewise.
10667 (vectorizable_load): Likewise.
10669 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10671 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10676 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10678 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10679 unaligned 256bit load/store.
10680 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10681 (*avx_movdqu<avxmodesuffix>): Likewise.
10683 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10686 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10687 * config/pa/pa.md (iordi3): Use new predicate in expander.
10688 (iorsi3): Likewise.
10690 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10692 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10693 FUNCTION_VALUE_REGNO_P): Remove macros.
10694 * config/mips/mips-protos.h (mips_function_value): Remove.
10695 * config/mips/mips.c (mips_function_value): Rename to...
10696 (mips_function_value_1): ... this. Make static. Handle receiving
10697 the function type in 'fn_decl_or_type' argument.
10698 (mips_function_value, mips_libcall_value,
10699 mips_function_value_regno_p): New function.
10700 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10701 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10703 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10705 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10706 and -mavx256-split-unaligned-store.
10707 (ix86_option_override_internal): Split 32-byte AVX unaligned
10708 load/store by default.
10709 (ix86_avx256_split_vector_move_misalign): New.
10710 (ix86_expand_vector_move_misalign): Use it.
10712 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10713 -mavx256-split-unaligned-store.
10715 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10716 256bit load/store. Generate unaligned store on misaligned memory
10718 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10720 (*avx_movdqu<avxmodesuffix>): Likewise.
10722 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10723 -mavx256-split-unaligned-store.
10725 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10728 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10731 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10733 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10734 opno arguments with an expand_operand. Use create_input_operand.
10735 (mips_prepare_builtin_target): Delete.
10736 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10738 (mips_expand_builtin_direct): Use create_output_operand and
10739 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10740 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10741 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10743 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10745 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10747 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10749 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10751 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10752 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10753 basic blocks and call commit_edge_insertions directly.
10754 (fixup_abnormal_edges): Move from here to...
10755 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10756 on the edges and return whether some have actually been inserted.
10757 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10760 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10762 PR rtl-optimization/48144
10763 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10764 (merge_expr_data): ... here.
10765 (av_set_intersect): Rename to av_set_code_motion_filter.
10766 Update all callers. Call merge_history_vect when an expression
10767 is found in both sets.
10768 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10770 2011-03-26 Alan Modra <amodra@gmail.com>
10772 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10773 cmodel medium addresses.
10774 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10775 64-bit gpr loads and stores.
10776 (rs6000_secondary_reload_ppc64): New function.
10777 * config/rs6000/rs6000-protos.h: Declare it.
10778 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10780 2011-03-26 Alan Modra <amodra@gmail.com>
10783 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10784 GNU Go in traceback table.
10786 2011-03-25 Richard Henderson <rth@redhat.com>
10788 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10789 if there are exactly 6 operands.
10790 (set_storage_via_setmem): Similarly.
10792 2011-03-25 Kai Tietz <ktietz@redhat.com>
10794 * collect2.c (write_c_file_stat): Handle backslash
10795 as right-hand directory separator.
10796 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10797 checking just for slash.
10798 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10799 instead of checking for trailing slash.
10800 * gcc.c (record_temp_file): Use filename_cmp instead
10802 (do_spec_1): Likewise.
10803 (replace_outfile_spec_function): Likewise.
10804 (is_directory): Use filename_ncmp instead of strncmp.
10805 (print_multilib_info): Likewise.
10806 * gcov.c (find_source): Use filename_cmp instead
10808 (make_gcov_file_name): Fix order of slash/backslash
10810 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10811 (add_standard_paths): Likewise.
10812 * mips-tfile.c (saber_stop): Handle backslash.
10813 * prefix.c (update_path): Use filename_ncmp instead of
10815 * profile.c (output_location): Use filename_cmp instead
10817 * read-md.c (handle_toplevel_file): Handle backslash.
10818 * tlink.c (frob_extension): Likewise.
10819 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10821 * tree-dump.c (dequeue_and_dump): Handle backslash.
10822 * tree.c (get_file_function_name): Likewise.
10823 * gengtype.c (read_input_list): Likewise.
10824 (get_file_realbasename): Likewise.
10825 (get_output_file_with_visibility): Use filename_cmp
10828 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10830 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10833 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10835 * fold-const.c (expr_location_or): New function.
10836 (fold_truth_not_expr): Call it.
10838 2011-03-25 Jeff Law <law@redhat.com>
10840 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10842 * c-family/c-common.c (def_fn_type): Likewise.
10843 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10844 * emit-rtl.c (gen_rtvec): Likewise.
10845 * lto/lto-lang.c (def_fn_type): Likewise.
10847 2011-03-25 Richard Guenther <rguenther@suse.de>
10849 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10850 also generate copies.
10851 (fini_copy_prop): Handle constant values properly.
10853 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10855 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10856 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10857 (hash_loc_operands, compare_loc_operands): Handle
10858 DW_OP_GNU_entry_value.
10860 2011-03-25 Kai Tietz <ktietz@redhat.com>
10862 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10863 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10864 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10865 comment and use macro TARGET_64BIT_MS_ABI instead.
10866 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10867 and change default behavior for 32-bit MS_ABI.
10868 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10869 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10871 (ix86_cfun_abi): Likewise.
10872 (ix86_maybe_switch_abi): Adjust comment.
10873 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10874 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10875 instead of checking for SYSV_ABI.
10876 (ix86_nsaved_sseregs): Likewise.
10877 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10879 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10880 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10881 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10882 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10883 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10885 2011-03-25 Richard Guenther <rguenther@suse.de>
10887 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10888 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10889 (verify_gimple): Remove.
10890 * tree-cfg.c (verify_gimple_call): Merge verification
10892 (verify_gimple_phi): Merge verification from verify_stmts.
10893 (verify_gimple_label): New function.
10894 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10895 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10896 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10897 (verify_stmts): Rename to verify_gimple_in_cfg.
10898 (verify_gimple_in_cfg): New function.
10899 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10900 * tree-ssa.c (verify_ssa): Likewise.
10901 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10903 2011-03-25 Richard Guenther <rguenther@suse.de>
10905 * passes.c (init_optimization_passes): Add FRE pass after
10908 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10909 Andrew Stubbs <ams@codesourcery.com>
10911 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10913 (arm_movdi_vfp_cortexa8): New pattern.
10914 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10915 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10916 instructions when tuning for Cortex-A8. Set attribute "arch".
10917 * config/arm/arm.md: Move include arm-tune.md up a bit.
10918 (define_attr "arch"): Add "onlya8" and "nota8" values.
10919 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10921 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10925 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10927 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10928 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10929 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10930 * passes.c (init_optimization_passes): Move
10931 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10933 2011-03-25 Kai Tietz <ktietz@redhat.com>
10935 * c-typeck.c (comptypes_internal): Replace target
10936 hook call of comp_type_attributes by version in tree.c file.
10937 * gimple.c (gimple_types_compatible_p_1): Likewise.
10938 * tree-ssa.c (useless_type_conversion_p): Likewise.
10939 * tree.c (build_type_attribute_qual_variant): Likewise.
10940 (attribute_value_equal): New static helper function.
10941 (comp_type_attributes): New function.
10942 (merge_attributes): Use attribute_value_equal for comparison.
10943 (attribute_list_contained): Likewise.
10944 * tree.h (comp_type_attributes): New prototype.
10946 2011-03-25 Richard Guenther <rguenther@suse.de>
10948 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10949 of complex types at -O0.
10950 (verify_gimple_assign_binary): Likewise.
10951 (verify_gimple_assign_ternary): Likewise.
10953 2011-03-24 Mark Wielaard <mjw@redhat.com>
10955 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10956 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10958 2011-03-24 Mark Wielaard <mjw@redhat.com>
10961 * dwarf2out.c (output_abbrev_section): Only write table when
10962 abbrev_die_table_in_use > 1.
10964 2011-02-24 Richard Henderson <rth@redhat.com>
10966 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10967 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10968 (alpha_expand_unaligned_load_words): Use extql.
10969 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10970 (emit_insxl): Handle all modes for consistency.
10972 2011-02-24 Richard Henderson <rth@redhat.com>
10974 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10975 (alpha_expand_unaligned_load): Likewise.
10976 (alpha_expand_unaligned_store): Likewise.
10977 (alpha_expand_unaligned_load_words): Likewise.
10978 (alpha_expand_unaligned_store_words): Likewise.
10979 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10980 (alpha_split_lock_test_and_set_12): Likewise.
10981 (print_operand, alpha_fold_builtin_extxx): Likewise.
10982 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10983 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10984 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10985 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10986 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10987 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10988 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10989 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10990 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10991 (extwl, extll, extql): Similarly.
10992 (inswh, inslh, insqh): Similarly.
10993 (mskbl, mskwl, mskll, mskql): Similarly.
10994 (mskwh, msklh, mskqh): Similarly.
10996 2011-02-24 Richard Henderson <rth@redhat.com>
10998 * config/alpha/alpha.md (attribute isa): Add er, ner.
10999 (attribute enabled): Handle them.
11000 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11002 2011-02-24 Richard Henderson <rth@redhat.com>
11004 * config/alpha/alpha.md (attribute isa): Add vms.
11005 (attribute enabled): Handle it.
11006 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11007 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11008 (*movtf): Rename from *movtf_internal for consistency.
11009 (*movsi): Merge with *movsi_nt_vms.
11010 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11011 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11012 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11013 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11015 2011-02-24 Richard Henderson <rth@redhat.com>
11017 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11018 (extendqisi2, extendhisi2): Likewise.
11019 (extendqidi2): Simplify BWX/non-BWX expansions.
11020 (extendhidi2): Similarly.
11022 2011-02-24 Richard Henderson <rth@redhat.com>
11024 * config/alpha/alpha.md (attribute isa): New.
11025 (attribute enabled): New.
11026 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11027 (zero_extendqisi2, zero_extendqidi2): Similarly.
11028 (zero_extendhisi2, zero_extendhidi2): Similarly.
11029 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11031 2011-02-24 Richard Henderson <rth@redhat.com>
11033 * config/alpha/predicates.md (input_operand): Revert last change;
11034 update comment to mention 32-bit VMS rather than Windows.
11036 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11038 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11039 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11040 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11041 * passes.c (init_optimization_passes): Move
11042 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11044 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11046 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11048 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11050 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11053 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11056 * simplify-rtx.c (simplify_const_unary_operation): Call
11057 real_convert when changing mode class with FLOAT_EXTEND.
11059 2011-03-24 Nick Clifton <nickc@redhat.com>
11061 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11062 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11063 * config/rx/rx.c (rx_option_override): Set align_jumps,
11064 align_loops and align_labels if not set by the user.
11065 (rx_align_for_label): New function.
11066 (rx_max_skip_for_label): New function.
11067 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11068 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11069 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11070 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11071 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11073 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11075 PR rtl-optimization/48263
11076 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11077 and original commutative_p handling. Use maybe_gen_insn.
11079 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11081 * reload.c (find_reloads_subreg_address): Add address_reloaded
11082 parameter and return true there if the full address has been
11084 (find_reloads_toplev): Pass address_reloaded flag.
11085 (find_reloads_address_1): Don't use address_reloaded parameter.
11087 2011-03-24 Jeff Law <law@redhat.com>
11089 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11090 unused variable "ann".
11091 (remove_unused_locals): Likewise.
11093 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11096 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11099 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11101 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11102 for invalid symbolic addresses.
11103 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11106 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11108 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11109 the argument in calls to fold_truth_not_expr.
11111 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11113 * tree.c (record_node_allocation_statistics): New function.
11114 (make_node_stat, copy_node_stat, build_string): Call it.
11115 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11116 (build1_stat, build_omp_clause): Likewise.
11118 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11120 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11123 2011-03-24 Richard Guenther <rguenther@suse.de>
11125 PR tree-optimization/48271
11126 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11127 blocks that still exist.
11129 2011-03-24 Richard Guenther <rguenther@suse.de>
11131 PR tree-optimization/48270
11132 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11133 not free datarefs before ddrs.
11135 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11137 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11138 from the address built for a reference with variable offset.
11140 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11143 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11144 alternatives that can be handled with movq or movabsq insn.
11145 (*movdf_internal): Disable for !TARGET_64BIT.
11146 (*movdf_internal_nointeger): Ditto.
11147 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11149 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11151 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11152 (FUNCTION_ARG_ADVANCE): Likewise.
11153 * tm.texi.in: Change references to them to hook references.
11154 * tm.texi: Regenerate.
11155 * targhooks.c (default_function_arg): Eliminate check for target macro.
11156 (default_function_incoming_arg): Likewise.
11157 (default_function_arg_advance): Likewise.
11158 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11159 (function_arg_advance): Likewise.
11160 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11162 2011-03-24 Richard Guenther <rguenther@suse.de>
11164 PR middle-end/48269
11165 * tree-object-size.c (addr_object_size): Do not double-account
11166 for MEM_REF offsets.
11168 2011-03-24 Diego Novillo <dnovillo@google.com>
11170 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11171 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11172 (lto_input_data_block): Move from lto-opts.c. Make extern.
11174 (lto_input_string): Rename from input_string. Make extern.
11176 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11177 output_string_with_length.
11178 Output 0 to indicate a non-NULL string. Update all callers to
11180 (lto_output_string): Rename from output_string. Make extern.
11182 (lto_output_decl_state_streams): Make extern.
11183 (lto_output_decl_state_refs): Make extern.
11184 * lto-streamer.h (lto_input_string): Declare.
11185 (lto_input_data_block): Declare.
11186 (lto_output_string): Declare.
11187 (lto_output_string_with_length): Declare.
11188 (lto_output_decl_state_streams): Declare.
11189 (lto_output_decl_state_refs): Declare.
11191 2011-03-24 Richard Guenther <rguenther@suse.de>
11193 PR tree-optimization/46562
11194 * tree.c (build_invariant_address): New function.
11195 * tree.h (build_invariant_address): Declare.
11196 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11197 a renamed function moved ...
11198 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11199 Take valueization callback parameter.
11200 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11201 * gimple-fold.h: New file.
11202 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11203 (ccp_fold, fold_const_aggregate_ref,
11204 fold_ctor_reference, fold_nonarray_ctor_reference,
11205 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11206 get_base_constructor): Move ...
11207 * gimple-fold.c: ... here.
11208 (gimple_fold_stmt_to_constant_1): New function
11209 split out from ccp_fold. Take a valueization callback parameter.
11210 Valueize all operands.
11211 (gimple_fold_stmt_to_constant): New wrapper function.
11212 (fold_const_aggregate_ref_1): New function split out from
11213 fold_const_aggregate_ref. Take a valueization callback parameter.
11214 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11215 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11216 invariant POINTER_PLUS_EXPRs to invariant form.
11217 (vn_valueize): New function.
11218 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11219 * tree-vrp.c (vrp_valueize): New function.
11220 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11221 to fold statements to constants.
11222 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11223 function declarations.
11224 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11225 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11227 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11229 * config/h8300/predicates.md (jump_address_operand): Fix register
11232 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11234 * doc/invoke.texi (max-stores-to-sink): Document.
11235 * params.h (MAX_STORES_TO_SINK): Define.
11236 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11237 if either vectorization or if-conversion is disabled.
11238 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11239 tree-vect-data-refs.c vect_equal_offsets.
11240 (dr_equal_offsets_p): New function.
11241 (find_data_references_in_bb): Remove static.
11242 * tree-data-ref.h (find_data_references_in_bb): Declare.
11243 (dr_equal_offsets_p): Likewise.
11244 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11245 (vect_drs_dependent_in_basic_block): Update calls to
11246 vect_equal_offsets.
11247 (vect_check_interleaving): Likewise.
11248 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11249 (cond_if_else_store_replacement): Rename to...
11250 (cond_if_else_store_replacement_1): ... this. Change arguments and
11252 (cond_if_else_store_replacement): New function.
11253 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11254 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11256 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11259 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11260 to subtract lower bound instead of GEN_INT().
11262 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11267 * doc/extend.texi (Alignment): Move section to match order in TOC.
11268 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11269 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11271 2011-03-23 Jeff Law <law@redhat.com>
11273 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11274 before removing the edge.
11276 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11277 it may have been freed by redirect_branch_edge or
11278 redirect_edge_succ_nodup.
11280 2011-03-23 Richard Guenther <rguenther@suse.de>
11282 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11283 (check_va_list_escapes): Likewise.
11284 (check_all_va_list_escapes): Likewise.
11286 2011-03-23 Richard Guenther <rguenther@suse.de>
11288 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11289 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11290 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11291 (alias.o): Likewise.
11292 (ipa-type-escape.o): Remove.
11293 (ipa-struct-reorg.o): Likewise.
11294 (GTFILES): Remove ipa-struct-reorg.c.
11295 * alias.c: Do not include ipa-type-escape.h.
11296 * tree-ssa-alias.c: Likewise.
11297 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11298 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11299 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11300 and ipa-type-escape passes.
11301 * tree-pass.h (pass_ipa_type_escape): Remove.
11302 (pass_ipa_struct_reorg): Likewise.
11303 * ipa-struct-reorg.h: Remove.
11304 * ipa-struct-reorg.c: Likewise.
11305 * ipa-type-escape.h: Likewise.
11306 * ipa-type-escape.c: Likewise.
11307 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11308 (--param struct-reorg-cold-struct-ratio): Likewise.
11309 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11310 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11311 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11313 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11315 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11316 cpu attribute value.
11317 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11318 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11319 * config/s390/s390.c (processor_flags_table): New constant array.
11320 (s390_handle_arch_option): Remove.
11321 (s390_handle_option): Remove s390_handle_arch_option invocations
11322 and OPT_mwarn_framesize_ handling.
11323 (s390_option_override): Remove s390_handle_arch_option invocation.
11324 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11326 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11327 * config/s390/s390.opt (s390_tune, s390_arch)
11328 (march=): Replace s390_arch_option enum and values with
11329 processor_type. Set variable name to s390_arch. Set
11330 initialization value.
11331 (mtune=): Replace s390_arch_option with processor_type. Set
11332 variable name to s390_tune. Set initialization value.
11334 2011-03-23 Julian Brown <julian@codesourcery.com>
11336 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11337 accesses which are not naturally aligned.
11339 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11342 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11344 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11346 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11347 parameter from "int" to "enum insn_code".
11348 (expand_operand_type): New enum.
11349 (expand_operand): New structure.
11350 (create_expand_operand): New function.
11351 (create_fixed_operand, create_output_operand): Likewise
11352 (create_input_operand, create_convert_operand_to): Likewise.
11353 (create_convert_operand_from, create_address_operand): Likewise.
11354 (create_integer_operand): Likewise.
11355 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11356 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11357 (expand_insn, expand_jump_insn): Likewise.
11358 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11359 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11360 (expand_movstr, expand_builtin___clear_cache): Likewise.
11361 (expand_builtin_lock_release): Likewise.
11362 * explow.c (allocate_dynamic_stack_space): Likewise.
11363 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11364 and use the default handling in that case.
11365 * expmed.c (check_predicate_volatile_ok): Delete.
11366 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11367 (emit_cstore): Likewise.
11368 * expr.c (emit_block_move_via_movmem): Likewise.
11369 (set_storage_via_setmem, expand_assignment): Likewise.
11370 (emit_storent_insn, try_casesi): Likewise.
11371 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11372 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11373 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11374 (expand_twoval_unop, expand_twoval_binop): Likewise.
11375 (expand_unop_direct, emit_indirect_jump): Likewise.
11376 (emit_conditional_move, vector_compare_rtx): Likewise.
11377 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11378 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11379 (expand_sync_lock_test_and_set): Likewise.
11380 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11381 (emit_unop_insn): Likewise.
11382 (expand_copysign_absneg): Change icode to an insn_code.
11383 (create_convert_operand_from_type): New function.
11384 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11385 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11386 (expand_insn, expand_jump_insn): Likewise.
11387 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11388 than const_int_operand for operand 2.
11390 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11392 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11395 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11397 * emit-rtl.c (emit_pattern_before_noloc): New function.
11398 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11399 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11400 (emit_pattern_after_noloc): New function.
11401 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11402 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11404 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11406 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11407 (__ffsDI2): Likewise.
11409 2011-03-22 Richard Henderson <rth@redhat.com>
11411 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11412 of !TARGET_ABI_OPEN_VMS.
11413 (alpha_trampoline_init, alpha_start_function): Likewise.
11414 (alpha_expand_epilogue, alpha_file_start): Likewise.
11415 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11416 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11417 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11418 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11419 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11423 * config/s390/s390-opts.h: New.
11424 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11425 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11426 s390_stack_guard): Remove.
11427 (s390_handle_arch_option): Return void. Take enum
11428 s390_arch_option value instead of string and searching array.
11429 (s390_handle_option): Don't assert that global structures are in
11430 use. Access variables via opts pointer. Use error_at. Don't use
11431 sscanf for -mstack-guard= or -mstack-size=. Update call to
11432 s390_handle_arch_option.
11433 (s390_option_override): Update call to s390_handle_arch_option.
11434 (s390_emit_prologue): Use %d format for s390_stack_size in
11435 diagnostic. Use %wd for HOST_WIDE_INT.
11436 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11437 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11438 * config/s390/s390.opt (config/s390/s390-opts.h): New
11439 HeaderInclude entry.
11440 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11441 s390_arch_flags, s390_warn_framesize): New Variable entries.
11442 (s390_arch_option): New Enum and EnumValue entries.
11443 (march=): Use Enum instead of Var.
11444 (mstack-guard=, mstack-size=): Use UInteger and Var.
11445 (mtune=): Use Enum.
11447 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11449 * config/score/score.c (score_handle_option): Don't assert that
11450 global structures are in use. Access target_flags via opts
11451 pointer. Use value of -march= option to determine target_flags
11453 * config/score/score.opt (march=): Use Enum.
11454 (score_arch): New Enum and EnumValue entries.
11456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11458 * config/mep/mep.c (option_mtiny_specified): Remove.
11459 (mep_option_override): Move register handling for -mivc2 from
11460 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11461 instead of option_mtiny_specified.
11462 (mep_handle_option): Access target_flags via opts pointer. Don't
11463 assert that global structures are in use. Defer part of -mivc2
11464 handling and move it to mep_option_override.
11465 * config/mep/mep.opt (IVC2): New Mask entry.
11466 (mivc2): Use Var and Defer instead of Mask.
11468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11470 * config/v850/v850-opts.h: New.
11471 * config/v850/v850.c (small_memory): Replace with
11472 small_memory_physical_max array. Make that array static const.
11473 (v850_handle_memory_option): Take integer value of argument. Take
11474 gcc_options pointer, option text and location. Return void.
11475 Update for changes to small memory structures.
11476 (v850_handle_option): Access target_flags via opts pointer. Don't
11477 assert that global structures are in use. Update calls to
11478 v850_handle_memory_option.
11479 (v850_encode_data_area): Update references to small memory settings.
11480 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11481 (enum small_memory_type): Move to v850-opts.h.
11482 * config/v850/v850.opt (config/v850/v850-opts.h): New
11483 HeaderInclude entry.
11484 (small_memory_max): New Variable entry.
11485 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11486 (mtda, mzda): Likewise.
11488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11490 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11491 pointer. Don't assert that global structures are in use.
11493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11495 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11496 via opts pointer. Don't assert that global structures are in use.
11498 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11500 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11501 (munix=93): Use Var.
11502 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11503 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11504 * config/pa/pa-opts.h: New.
11505 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11506 (pa_handle_option): Don't assert that global structures are in
11507 use. Access target_flags via opts pointer. Don't handle
11508 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11510 (pa_option_override): Handle deferred OPT_mfixed_range_.
11512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11514 * config/mn10300/mn10300-opts.h: New.
11515 * config/mn10300/mn10300.c (mn10300_processor,
11516 mn10300_tune_string): Remove.
11517 (mn10300_handle_option): Don't assert that global structures are
11518 in use. Access mn10300_processor via opts pointer. Don't handle
11520 * config/mn10300/mn10300.h (enum processor_type): Move to
11522 (mn10300_processor): Remove.
11523 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11524 HeaderInclude entry.
11525 (mn10300_processor): New Variable entry.
11528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11530 * config/microblaze/microblaze.c: Don't include opts.h.
11531 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11532 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11533 (mno-clearbss): Use Var and Warn.
11535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11537 * config/m32r/m32r-opts.h: New.
11538 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11539 (m32r_handle_option): Don't assert that global structures are in
11540 use. Access target_flags and m32r_cache_flush_func via opts
11541 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11542 OPT_mno_flush_trap here.
11543 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11544 include of m32r-opts.h.
11545 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11546 HeaderInclude entry.
11547 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11548 (mmodel=): Use Enum and Var.
11549 (m32r_model): New Enum and EnumValue entries.
11550 (mno-flush-trap): Use Var.
11551 (msdata=): Use Enum and Var.
11552 (m32r_sdata): New Enum and EnumValue entries.
11554 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11556 * config/m32c/m32c.c: Don't include opts.h.
11557 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11558 m32c_handle_option): Remove.
11559 (m32c_option_override): Check global_options_set.x_target_memregs
11560 instead of target_memregs_set.
11561 * config/m32c/m32c.h (target_memregs): Remove.
11562 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11567 * config/iq2000/iq2000-opts.h: New.
11568 * config/iq2000/iq2000.c: Don't include opts.h.
11569 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11570 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11571 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11572 HeaderInclude entry.
11573 (iq2000_tune): New Variable entry.
11574 (march=): Add comment. Use Enum.
11575 (iq2000_arch): New Enum and EnumValue entries.
11576 (mcpu=): Use Enum and Var.
11577 (iq2000_tune): New Enum and EnumValue entries.
11579 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11581 * config/ia64/ia64-opts.h: New.
11582 * config/ia64/ia64.c (ia64_tune): Remove.
11583 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11584 here. Use error_at.
11585 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11586 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11587 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11588 HeaderInclude entry.
11589 (ia64_tune): New Variable entry.
11590 (mfixed-range=): Use Defer and Var.
11591 (mtune=): Use Enum and Var.
11592 (ia64_tune): New Enum and EnumValue entries.
11594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11596 * config/frv/frv-opts.h: New.
11597 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11599 (frv_cpu_type): Remove.
11600 * config/frv/frv.c: Don't include opts.h.
11601 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11602 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11603 (frv_cpu_type): New Variable entry.
11604 (frv_cpu): New Enum and EnumValue entries.
11606 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11608 * config/cris/cris.c (cris_handle_option): Access target_flags via
11609 opts pointer. Don't assert that global structures are in use.
11610 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11611 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11613 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11615 * config/bfin/bfin-opts.h: New.
11616 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11617 bfin_si_revision, bfin_workarounds): Remove.
11618 (bfin_cpus): Make static const.
11619 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11620 not bfin_lib_id_given.
11621 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11622 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11623 pointer. Use error_at. Don't assert that global structures are in use.
11624 * config/bfin/bfin.h: Include bfin-opts.h.
11625 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11626 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11627 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11628 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11631 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11633 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11634 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11635 or -msoft-float here.
11636 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11637 -msoft-float and -mhard-float.
11638 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11639 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11641 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11643 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11644 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11646 (LIBGCC_SPEC): Don't handle -msoft-float.
11647 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11649 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11651 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11652 -mfloat-abi=*, not -msoft-float and -mhard-float.
11653 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11655 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11656 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11657 mhard-float and msoft-float.
11658 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11659 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11660 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11661 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11663 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11664 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11666 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11668 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11671 2011-03-22 Richard Henderson <rth@redhat.com>
11673 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11674 TARGET_ABI_WINDOWS_NT.
11675 (alpha_output_function_end_prologue): Likewise.
11676 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11677 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11678 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11679 (trap, *movsi_nt_vms): Likewise.
11680 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11681 (*tablejump_osf_nt_internal): Remove.
11682 * config/alpha/predicates.md (input_operand): Only test Pmode.
11684 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11686 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11687 via opts pointer. Use error_at. Don't assert that global
11688 structures are in use.
11690 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11692 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11693 (ix86_handle_option): Access ix86_isa_flags and
11694 ix86_isa_flags_explicit via opts pointer. Don't assert that
11695 global structures are in use.
11696 (ix86_function_specific_save, ix86_function_specific_restore):
11697 Update ix86_isa_flags_explicit field name.
11698 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11699 (ix86_isa_flags_explicit): Rename TargetSave entry to
11700 x_ix86_isa_flags_explicit.
11702 2011-03-22 Richard Henderson <rth@redhat.com>
11704 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11705 (alpha_option_override, direct_return): Likewise.
11706 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11707 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11708 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11709 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11710 (alpha_expand_epilogue, alpha_end_function): Likewise.
11711 (alpha_init_libfuncs): Likewise.
11712 (struct machine_function): Remove unicosmk members.
11713 (print_operand) ['t']: Remove.
11714 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11715 unicosmk_output_module_name, unicosmk_output_common,
11716 current_section_align, unicosmk_output_text_section_asm_op,
11717 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11718 unicosmk_section_type_flags, unicosmk_unique_section,
11719 unicosmk_asm_named_section, unicosmk_insert_attributes,
11720 unicosmk_output_align, unicosmk_defer_case_vector,
11721 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11722 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11723 unicosmk_output_ssib, unicosmk_add_call_info_word,
11724 unicosmk_extern_head, unicosmk_output_default_externs,
11725 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11726 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11727 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11728 * config/alpha/alpha-protos.h: Update.
11729 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11730 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11731 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11732 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11733 (*mulsi_se, mulvsi3): Likewise.
11734 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11735 (*divmodsi_internal, call, call_value, realign): Likewise.
11736 (moddi3, umoddi3): Likewise; remove duplicate expander.
11737 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11738 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11739 (*movdi_nofix): Remove r/U alternative.
11740 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11741 * config/alpha/constraints.md ("U"): Remove.
11742 * config/alpha/predicates.md (call_operand"): Don't test
11743 TARGET_ABI_UNICOSMK.
11745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11747 * target.def (handle_option): Take gcc_options and
11748 cl_decoded_option pointers and location_t.
11749 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11750 * doc/tm.texi: Regenerate.
11751 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11752 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11753 * lto-opts.c (lto_reissue_options): Generate option structure for
11754 targetm.handle_option call.
11755 * opts.c (target_handle_option): Update call to
11756 targetm.handle_option. Remove assertions about values now passed
11758 * targhooks.c (default_target_handle_option): New.
11759 * targhooks.h (default_target_handle_option): Declare.
11760 * config/alpha/alpha.c: Include opts.h.
11761 (alpha_handle_option): Update to new hook interface.
11762 * config/arm/arm.c: Include opts.h.
11763 (arm_handle_option): Update to new hook interface.
11764 * config/arm/t-arm (arm.o): Update dependencies.
11765 * config/bfin/bfin.c: Include opts.h.
11766 (bfin_handle_option): Update to new hook interface.
11767 * config/cris/cris.c: Include opts.h.
11768 (cris_handle_option): Update to new hook interface.
11769 * config/frv/frv.c: Include opts.h.
11770 (frv_handle_option): Update to new hook interface.
11771 * config/i386/i386.c: Include opts.h.
11772 (ix86_handle_option): Update to new hook interface.
11773 (ix86_valid_target_attribute_inner_p): Generate option structure
11774 for call to ix86_handle_option.
11775 * config/i386/t-i386 (i386.o): Update dependencies.
11776 * config/ia64/ia64.c: Include opts.h.
11777 (ia64_handle_option): Update to new hook interface.
11778 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11779 * config/iq2000/iq2000.c: Include opts.h.
11780 (iq2000_handle_option): Update to new hook interface.
11781 * config/m32c/m32c.c: Include opts.h.
11782 (m32c_handle_option): Update to new hook interface.
11783 * config/m32r/m32r.c: Include opts.h.
11784 (m32r_handle_option): Update to new hook interface.
11785 * config/m68k/m68k.c: Include opts.h.
11786 (m68k_handle_option): Update to new hook interface.
11787 * config/mep/mep.c: Include opts.h.
11788 (mep_handle_option): Update to new hook interface.
11789 * config/microblaze/microblaze.c: Include opts.h.
11790 (microblaze_handle_option): Update to new hook interface.
11791 * config/mips/mips.c: Include opts.h.
11792 (mips_handle_option): Update to new hook interface.
11793 * config/mn10300/mn10300.c: Include opts.h.
11794 (mn10300_handle_option): Update to new hook interface.
11795 * config/pa/pa.c: Include opts.h.
11796 (pa_handle_option): Update to new hook interface.
11797 * config/pdp11/pdp11.c: Include opts.h.
11798 (pdp11_handle_option): Update to new hook interface.
11799 * config/rs6000/rs6000.c: Include opts.h.
11800 (rs6000_handle_option): Update to new hook interface.
11801 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11802 * config/rx/rx.c: Include opts.h.
11803 (rx_handle_option): Update to new hook interface.
11804 * config/s390/s390.c: Include opts.h.
11805 (s390_handle_option): Update to new hook interface.
11806 * config/score/score.c: Include opts.h.
11807 (score_handle_option): Update to new hook interface.
11808 * config/sh/sh.c: Include opts.h.
11809 (sh_handle_option): Update to new hook interface.
11810 * config/sparc/sparc.c: Include opts.h.
11811 (sparc_handle_option): Update to new hook interface.
11812 * config/v850/v850.c: Include opts.h.
11813 (v850_handle_option): Update to new hook interface.
11815 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11817 * gcc.c (driver_unknown_option_callback): Only permit and save
11818 unknown -Wno- options.
11819 (driver_wrong_lang_callback): Save options directly instead of via
11820 driver_unknown_option_callback.
11822 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11824 * combine.c (simplify_set): Try harder to find the best CC mode when
11825 simplifying a nested COMPARE on the RHS.
11827 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11829 * config/alpha/gnu.h: Remove.
11830 * config/arc: Remove directory.
11831 * config/arm/netbsd.h: Remove.
11832 * config/arm/t-pe: Remove.
11833 * config/crx: Remove directory.
11834 * config/i386/netbsd.h: Remove.
11835 * config/m68hc11: Remove directory.
11836 * config/m68k/uclinux-oldabi.h: Remove.
11837 * config/mcore/mcore-pe.h: Remove.
11838 * config/mcore/t-mcore-pe: Remove.
11839 * config/netbsd-aout.h: Remove.
11840 * config/rs6000/gnu.h: Remove.
11841 * config/sh/sh-symbian.h: Remove.
11842 * config/sh/symbian-base.c: Remove.
11843 * config/sh/symbian-c.c: Remove.
11844 * config/sh/symbian-cxx.c: Remove.
11845 * config/sh/symbian-post.h: Remove.
11846 * config/sh/symbian-pre.h: Remove.
11847 * config/sh/t-symbian: Remove.
11848 * config/svr3.h: Remove.
11849 * config/vax/netbsd.h: Remove.
11850 * config.build: Don't handle i[34567]86-*-pe.
11851 * config.gcc: Remove handling of deprecations for most deprecated
11853 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11854 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11855 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11856 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11857 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11858 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11860 * config.host: Don't handle i[34567]86-*-pe.
11861 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11862 (ASM_SPEC32): Don't handle -mcall-gnu.
11863 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11865 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11866 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11867 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11868 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11869 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11870 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11871 conditional on SYMBIAN.
11872 * configure.ac: Don't handle powerpc*-*-gnu*.
11873 * configure: Regenerate.
11874 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11875 * doc/install-old.texi (m6811, m6812): Don't mention.
11876 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11877 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11878 (m68k-uclinuxoldabi): Don't mention.
11879 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11881 (-mcall-gnu): Remove.
11882 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11883 families): Remove constraint documentation.
11885 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11887 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11888 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11889 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11891 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11894 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11895 vector when peeking at the next token for vector, don't expand the
11898 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11900 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11901 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11902 * config/avr/avr.c (init_cumulative_args)
11903 (avr_function_arg_advance): Use it.
11904 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11906 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11907 (avr_function_ok_for_sibcall): ...this new function.
11908 (avr_lookup_function_attribute1): New static Function.
11909 (avr_naked_function_p, interrupt_function_p)
11910 (signal_function_p, avr_OS_task_function_p)
11911 (avr_OS_main_function_p): Use it.
11912 * config/avr/avr.md ("sibcall", "sibcall_value")
11913 ("sibcall_epilogue"): New expander.
11914 ("*call_insn", "*call_value_insn"): New insn.
11915 ("call_insn", "call_value_insn"): Remove
11916 ("call", "call_value", "epilogue"): Change expander to handle
11919 2011-03-21 Nick Clifton <nickc@redhat.com>
11921 * doc/invoke.texi (Overall Options): Move closing brace to end of
11923 (Optimization Options): Add missing @gol.
11924 (Directory Options): Likewise.
11925 (i386 and x86-64 Options): Likewise.
11926 (RS6000 and PowerPC Options): Likewise.
11927 (i386 and x86-64 Windows Options): Likewise.
11928 (V850 Options): Add text missing from descriptions.
11930 2011-03-22 Richard Henderson <rth@redhat.com>
11932 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11933 (avr_incoming_return_addr_rtx): New.
11934 (emit_push_byte): New.
11935 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11936 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11937 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11938 (emit_pop_byte): New.
11939 (expand_epilogue): Use it. Pop frame pointer by bytes.
11940 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11941 (INCOMING_RETURN_ADDR_RTX): New.
11942 (INCOMING_FRAME_SP_OFFSET): New.
11943 (ARG_POINTER_CFA_OFFSET): New.
11944 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11945 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11948 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11950 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11952 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11953 (FUNCTION_ARG_ADVANCE): Likewise.
11954 * tm.texi.in: Change references to them to hook references.
11955 * tm.texi: Regenerate.
11956 * targhooks.c (default_function_arg): Eliminate check for target
11958 (default_function_incoming_arg): Likewise.
11959 (default_function_arg_advance): Likewise.
11960 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11961 (function_arg_advance): Likewise.
11962 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11964 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11966 * tree.c (build_call_1): New function.
11967 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11969 2011-03-22 Richard Guenther <rguenther@suse.de>
11971 PR tree-optimization/48228
11972 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11973 for single-arg PHIs.
11975 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11977 PR rtl-optimization/48143
11978 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11979 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11980 sse2_cvtps2pd): Likewise.
11982 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11984 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11986 2011-03-22 Richard Guenther <rguenther@suse.de>
11988 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11989 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11990 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11991 and REALIGN_LOAD_EXPR.
11992 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11993 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11994 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11995 DOT_PROD_EXPR case ...
11996 (expand_expr_real_2): ... here.
11997 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11998 and REALIGN_LOAD_EXPR.
11999 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12000 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12001 (vect_create_epilog_for_reduction): Likewise.
12002 (vectorizable_reduction): Likewise.
12003 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12004 * tree-vect-stmts.c (vectorizable_load): Likewise.
12006 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12008 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12010 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12012 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12013 handling for PLTOFF/GOTOFF.
12015 2011-03-22 Nick Clifton <nickc@redhat.com>
12017 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12018 trailing backslash from the end of the macro definition.
12020 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12022 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12025 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12027 * expr.h (prepare_operand): Move to...
12028 * optabs.h (prepare_operand): ...here and change the insn code
12029 parameter from "int" to "enum insn_code".
12030 (insn_operand_matches): Declare.
12031 * expr.c (init_expr_target): Use insn_operand_matches.
12032 (compress_float_constant): Likewise.
12033 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12034 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12035 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12036 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12038 (gen_cond_trap): Likewise.
12039 (prepare_operand): Likewise. Change icode to an insn_code.
12040 (insn_operand_matches): New function.
12041 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12042 * reload1.c (gen_reload): Likewise.
12043 * targhooks.c (default_secondary_reload): Likewise.
12045 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12047 * config/alpha/alpha.md (unspec): New define_c_enum.
12050 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12053 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12054 between a call and its CALL_ARG_LOCATION note.
12056 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12058 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12060 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12064 * c-common.c (shorten_compare): If primopN is first sign-extended
12065 to opN and then zero-extended to result type, set primopN to opN.
12067 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12069 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12070 for barrier handlers.
12072 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12074 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12075 UNSPEC constants to be in the unspec enumeration, and redefine
12076 all UNSPECV constants to be in the unspecv enumeration, so that
12077 dumps print which unspec/unspec_volatile this is.
12078 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12079 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12080 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12081 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12082 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12084 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12085 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12086 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12087 * config/rs6000/sync.md (isync, lwsync): Ditto.
12089 2011-03-21 Richard Guenther <rguenther@suse.de>
12091 * params.def (lto-min-partition): Fix typo.
12093 2011-03-21 Richard Guenther <rguenther@suse.de>
12096 * c-decl.c (grokdeclarator): Drop to the main variant only
12097 for array types. Drop flag_gen_aux_info check.
12099 2011-03-21 Richard Guenther <rguenther@suse.de>
12101 PR translation/47911
12102 * params.def (lto-partitions): Fix typo.
12103 (lto-min-partition): Fix wording.
12105 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12107 * config/rs6000/t-freebsd: Remove duplication from file.
12109 2011-03-21 Richard Guenther <rguenther@suse.de>
12111 PR middle-end/47661
12112 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12114 2011-03-21 Richard Guenther <rguenther@suse.de>
12117 * params.def (lto-partitions): Require at least 1 partition.
12119 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12121 * gthr-solaris.h: Remove.
12122 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12123 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12124 (LIB_SPEC): Likewise.
12125 * config/sol2.opt (threads): Remove.
12126 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12127 (sparc*-*-solaris2*): Likewise.
12128 * configure.ac (enable_threads): Enable solaris support.
12129 * configure: Regenerate.
12130 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12131 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12134 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12136 * config.gcc: Obsolete *-*-solaris2.8*.
12137 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12139 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12142 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12143 reference. Solaris 8 perl works.
12145 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12148 * doc/install.texi (Prerequisites): Move jar etc. up.
12149 Explain support library version requirements.
12151 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12154 * doc/install.texi (Prerequisites): Move Perl to build
12155 requirements. Always necessary on Solaris 2 with Sun ld.
12157 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12159 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12161 (Specific, i?86-*-solaris2.[89]): Likewise.
12162 (Specific, i?86-*-solaris2.10): Likewise.
12163 (Specific, mips-sgi-irix6): Likewise.
12164 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12165 Update for binutils 2.21.
12167 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12169 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12170 Allow -fuse-linker-plugin for non-default plugin linker.
12171 * configure: Regenerate.
12173 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12176 * gengtype.c (files_rules): Added rule for cp/parser.h.
12178 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12181 * config/s390/s390.c (s390_delegitimize_address): Don't call
12182 lowpart_subreg if orig_x has BLKmode.
12184 2011-03-21 Kai Tietz <ktietz@redhat.com>
12187 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12188 * tree.h (attribute_spec): Add new member affects_type_identity.
12189 * attribs.c (empty_attribute_table): Adjust attribute_spec
12191 * config/alpha/alpha.c: Likewise.
12192 * config/arc/arc.c: Likewise.
12193 * config/arm/arm.c: Likewise.
12194 * config/avr/avr.c: Likewise.
12195 * config/bfin/bfin.c: Likewise.
12196 * config/crx/crx.c: Likewise.
12197 * config/darwin.h: Likewise.
12198 * config/h8300/h8300.c: Likewise.
12199 * config/i386/cygming.h: Likewise.
12200 * config/i386/i386.c: Likewise.
12201 * config/ia64/ia64.c: Likewise.
12202 * config/m32c/m32c.c: Likewise.
12203 * config/m32r/m32r.c: Likewise.
12204 * config/m68hc11/m68hc11.c: Likewise.
12205 * config/m68k/m68k.c: Likewise.
12206 * config/mcore/mcore.c: Likewise.
12207 * config/mep/mep.c: Likewise.
12208 * config/microblaze/microblaze.c: Likewise.
12209 * config/mips/mips.c: Likewise.
12210 * config/rs6000/rs6000.c: Likewise.
12211 * config/rx/rx.c: Likewise.
12212 * config/sh/sh.c: Likewise.
12213 * config/sol2.h: Likewise.
12214 * config/sparc/sparc.c: Likewise.
12215 * config/spu/spu.c: Likewise.
12216 * config/stormy16/stormy16.c: Likewise.
12217 * config/v850/v850.c: Likewise.
12219 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12221 * simplify-rtx.c (simplify_binary_operation_1): Handle
12222 (xor (and A B) C) case when B and C are both constants.
12224 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12226 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12228 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12231 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12233 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12235 PR rtl-optimization/48156
12236 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12237 assume df and df_lr are not NULL.
12239 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12242 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12243 between a call and its CALL_ARG_LOCATION note.
12245 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12248 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12249 between a call and its corresponding CALL_ARG_LOCATION note.
12251 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12253 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12254 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12255 * haifa-sched.c (setup_ref_regs): Ditto.
12256 * caller-save.c (add_used_regs_1): Ditto.
12257 * dse.c (look_for_hardregs): Ditto.
12258 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12259 * sched-rgn.c (check_live_1): Ditto.
12261 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12263 * c-decl.c (diagnose_mismatched_decls): Give an error for
12264 redefining a typedef with variably modified type.
12266 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12268 * c-decl.c (grokfield): Don't allow typedefs for structures or
12269 unions with no tag by default.
12270 * doc/extend.texi (Unnamed Fields): Update.
12272 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12274 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12275 Rewrite using indirect functions.
12276 (lwp_slwpcb): Ditto.
12277 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12278 (avx_vinsertf128<mode>): Ditto.
12280 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12282 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12285 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12287 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12288 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12290 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12292 PR rtl-optimization/48170
12293 * gcse.c (hoist_code): Remove bogus asserts.
12295 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12297 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12298 computation for prologue/epilogue.
12300 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12302 * Makefile.in (check-consistency): Remove.
12304 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12307 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12308 arange_table_in_use is 0, but either text_section_used or
12309 cold_text_section_used is true. Don't call it if
12310 !info_section_emitted.
12312 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12314 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12315 FUNCTION_VALUE_REGNO_P): Remove.
12316 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12318 * config/avr/avr.c (avr_ret_register): Make static inline.
12319 (avr_function_value_regno_p): New function.
12320 (avr_libcall_value): Make static. Add 'func' argument.
12321 (avr_function_value): Make static. Rename 'func' argument to
12322 'fn_decl_or_type', forward it to avr_libcall_value. Call
12323 avr_ret_register function instead of RET_REGISTER macro.
12324 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12326 2011-03-18 Jason Merrill <jason@redhat.com>
12329 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12331 2011-03-18 Richard Guenther <rguenther@suse.de>
12333 * doc/install.texi (--enable-gold): Remove.
12334 (--with-plugin-ld): Document.
12335 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12337 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12339 PR middle-end/47790
12340 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12341 again after expansion changes.
12343 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12345 * combine.c (try_combine): Do simplification only call of
12346 subst() on i2 even when i1 is present. Update comments.
12348 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12350 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12351 and UNSPEC_PCREL_SYMOFF.
12353 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12355 * config/s390/s390.md: Use define_c_enum for the unspec constant
12358 2011-03-18 Richard Henderson <rth@redhat.com>
12359 Jakub Jelinek <jakub@redhat.com>
12362 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12363 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12365 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12367 PR middle-end/47725
12368 * combine.c (cant_combine_insn_p): Don't check zero/sign
12369 extended hard registers.
12371 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12373 PR middle-end/47725
12374 * combine.c (cant_combine_insn_p): Check zero/sign extended
12377 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12379 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12380 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12381 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12382 Change return type to bool.
12383 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12385 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12388 * var-tracking.c (prepare_call_arguments): If CALL target
12389 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12390 pc instead of looking it up using cselib_lookup and use
12391 Pmode for it if x has VOIDmode.
12392 * dwarf2out.c (gen_subprogram_die): If also both first and
12393 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12396 * function.c (assign_parms): For data.passed_pointer parms
12397 use MEM of data.entry_parm instead of data.entry_parm itself
12398 as DECL_INCOMING_RTL.
12399 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12400 also when passed and declared mode is the same, DECL_RTL
12401 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12404 2011-03-16 Jeff Law <law@redhat.com>
12406 PR rtl-optimization/37273
12407 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12408 handle them like argument loads from stack slots. Do not double
12409 count memory for memory constants and argument loads from stack slots.
12411 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12414 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12416 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12419 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12421 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12424 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12426 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12427 Clear call_arg_locations and call_arg_loc_last always.
12429 PR middle-end/48152
12430 * var-tracking.c (prepare_call_arguments): If argument needs to be
12431 passed by reference, adjust argtype and mode.
12433 2011-03-17 Richard Guenther <rguenther@suse.de>
12435 PR middle-end/48134
12436 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12437 a value make sure to fold the statement.
12439 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12442 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12443 return condition with !cfun->calls_alloca.
12445 2011-03-17 Richard Guenther <rguenther@suse.de>
12448 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12449 origin for decls in other ltrans units.
12450 (input_varpool_node): Likewise.
12452 2011-03-17 Richard Guenther <rguenther@suse.de>
12454 PR middle-end/48165
12455 * tree-object-size.c (compute_object_offset): Properly return
12456 the offset operand of MEM_REFs as sizetype.
12458 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12460 PR rtl-optimization/48141
12461 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12462 * dse.c: Include params.h.
12463 (active_local_stores_len): New variable.
12464 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12466 (record_store, check_mem_read_rtx): Decrease it when removing
12468 (scan_insn): Likewise. Increase it when adding to chain, if it
12469 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12470 set active_local_stores to NULL before the addition.
12471 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12473 PR rtl-optimization/48141
12474 * dse.c (record_store): If no positions are needed in an insn
12475 that cannot be deleted, at least unchain it from active_local_stores.
12477 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12480 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12481 (lookup_type_die_strip_naming_typedef): ... here.
12482 (get_context_die): Use it.
12483 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12484 the anonymous struct named by the naming typedef.
12486 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12489 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12490 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12492 2011-03-16 Jeff Law <law@redhat.com>
12494 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12495 check for operands of conditional. Allow type to be a pointer.
12497 2011-03-16 Richard Guenther <rguenther@suse.de>
12499 PR tree-optimization/48149
12500 * fold-const.c (fold_binary_loc): Fold
12501 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12503 2011-03-16 Richard Guenther <rguenther@suse.de>
12505 PR tree-optimization/26134
12506 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12507 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12508 (non_rewritable_mem_ref_base): Handle complex type component
12509 accesses, constrain offsets for vector and complex extracts
12512 2011-03-16 Richard Guenther <rguenther@suse.de>
12514 PR tree-optimization/48146
12515 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12516 operands avoiding the need for renaming.
12518 2011-03-16 Richard Guenther <rguenther@suse.de>
12520 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12521 constant folding. Move MEM_REF canonicalization first.
12522 Rely on fold_const_aggregate_ref for initializer folding.
12523 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12525 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12527 PR middle-end/48136
12528 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12529 arg0/arg1 or their arguments are always fold converted to matching
12532 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12535 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12538 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12539 Handle in-tree gold.
12540 (ld_vers): Extract binutils version for gold.
12541 (gcc_cv_ld_hidden): Handle gold here.
12542 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12543 * configure: Regenerate.
12544 * config.in: Regenerate.
12545 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12546 -fuse-linker-plugin otherwise.
12547 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12548 (LINK_COMMAND_SPEC): Use it.
12549 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12551 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12553 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12554 * calls.c: Remove debug.h include.
12555 (emit_call_1): Don't call virtual_call_token debug hook.
12556 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12557 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12558 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12559 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12560 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12561 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12562 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12563 dwarf2out_virtual_call): Remove.
12564 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12565 copy_call_info and virtual_call hooks.
12566 (dwarf2out_init): Don't initialize vcall_insn_table,
12567 debug_dcall_section and debug_vcall_section.
12568 (prune_unused_types): Don't mark nodes from dcall_table.
12569 (dwarf2out_finish): Don't output dcall or vcall tables.
12570 * final.c (final_scan_insn): Don't call direct_call or
12571 virtual_call debug hooks.
12572 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12573 virtual_call_token, copy_call_info and virtual_call hooks.
12574 (debug_nothing_uid): Remove prototype.
12575 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12576 copy_call_info and virtual_call hooks.
12577 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12578 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12579 * debug.c (do_nothing_debug_hooks): Likewise.
12580 (debug_nothing_uid): Remove.
12581 * doc/invoke.texi (-fenable-icf-debug): Remove.
12582 * common.opt (-fenable-icf-debug): Likewise.
12584 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12585 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12586 call's MEM. Handle functions returning aggregate through a hidden
12587 first pointer. For virtual calls add clobbered pc to call arguments
12589 * dwarf2out.c (gen_subprogram_die): Emit
12590 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12594 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12595 * rtl.h (ENTRY_VALUE_EXP): Define.
12596 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12597 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12598 * print-rtl.c (print_rtx): Likewise.
12599 * gengtype.c (adjust_field_rtx_def): Likewise.
12600 * var-tracking.c (vt_add_function_parameter): Adjust
12601 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12602 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12603 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12604 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12605 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12607 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12608 Call var_location debug hook even on CALL_INSNs.
12609 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12610 * rtl.def (ENTRY_VALUE): New.
12611 * dwarf2out.c: Include cfglayout.h.
12612 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12613 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12614 (struct call_arg_loc_node): New type.
12615 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12616 tail_call_site_count): New variables.
12617 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12618 DW_TAG_GNU_call_site_parameter.
12619 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12620 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12621 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12622 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12623 and DW_AT_GNU_all_source_call_sites.
12624 (mem_loc_descriptor): Handle ENTRY_VALUE.
12625 (add_src_coords_attributes): Don't add enything if
12626 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12627 (dwarf2out_abstract_function): Save and clear call_arg_location,
12628 call_site_count and tail_call_site_count around dwarf2out_decl call.
12629 (gen_call_site_die): New function.
12630 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12631 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12632 (dwarf2out_function_decl): Clear call_arg_locations,
12633 call_arg_loc_last, set call_site_count and tail_call_site_count
12634 to -1 and free block_map.
12635 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12636 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12637 followed by any real instructions.
12638 (dwarf2out_begin_function): Set call_site_count and
12639 tail_call_site_count to 0.
12640 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12641 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12642 attempt to force a DIE for it and worst case remove the attribute.
12643 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12644 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12646 * var-tracking.c: Include tm_p.h.
12647 (vt_stack_adjustments): For calls call note_register_arguments.
12648 (argument_reg_set): New variable.
12649 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12650 ensure the VALUE is resolved.
12651 (call_arguments): New variable.
12652 (prepare_call_arguments): New function.
12653 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12654 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12655 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12656 always use the best expression.
12657 (vt_expand_loc): Add ignore_cur_loc argument.
12658 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12659 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12660 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12661 note for all calls.
12662 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12663 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12664 argument. Don't call cselib_preserve_only_values and
12665 cselib_reset_table.
12666 (note_register_arguments): New function.
12667 (vt_initialize): Compute argument_reg_set. Call
12668 vt_add_function_parameters before processing basic blocks instead of
12669 afterwards. For calls call prepare_call_arguments before calling
12670 cselib_process_insn.
12671 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12672 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12673 (var-tracking.o): Depend on $(TM_P_H).
12674 * cfglayout.h (insn_scope): New prototype.
12675 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12676 * cfglayout.c (insn_scope): No longer static.
12677 * insn-notes.def (CALL_ARG_LOCATION): New.
12678 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12679 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12680 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12681 nothing for DECL_EXTERNAL BLOCK_VARS.
12683 2011-03-16 Alan Modra <amodra@gmail.com>
12686 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12687 create invalid offset address for vsx splat insn.
12688 * config/rs6000/predicates.md (splat_input_operand): New.
12689 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12691 2011-03-15 Xinliang David Li <davidxl@google.com>
12694 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12695 (normalize_preds): New function.
12696 (is_use_properly_guarded): Normalize def predicates.
12698 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12701 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12702 in the output template.
12704 2011-03-15 Richard Guenther <rguenther@suse.de>
12706 PR middle-end/47650
12707 * tree-pretty-print.c (dump_function_declaration): Properly
12708 dump unprototyped and varargs function types.
12710 2011-03-15 Richard Guenther <rguenther@suse.de>
12712 PR tree-optimization/13954
12713 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12716 2011-03-15 Richard Guenther <rguenther@suse.de>
12718 PR tree-optimization/48037
12719 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12720 selects into BIT_FIELD_REFs.
12721 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12724 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12726 PR tree-optimization/48129
12727 * builtins.c (fold_builtin_snprintf): Convert to type of
12728 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12729 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12731 2011-03-15 Richard Guenther <rguenther@suse.de>
12733 PR tree-optimization/41490
12734 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12735 value but with VUSE.
12736 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12738 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12739 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12740 * tree-tailcall.c (find_tail_calls): Ignore returns.
12742 2011-03-15 Richard Guenther <rguenther@suse.de>
12744 PR middle-end/48031
12745 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12746 or variable-indexed array accesses when in gimple form.
12748 2011-03-15 Richard Guenther <rguenther@suse.de>
12750 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12752 2011-03-15 Alan Modra <amodra@gmail.com>
12755 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12756 presume symbol_refs without a symbol_ref_decl are suitably
12757 aligned, nor other trees we may see here. Handle anchor symbols.
12758 (legitimate_constant_pool_address_p): Comment. Add mode param.
12759 Check cmodel=medium addresses. Adjust all calls.
12760 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12761 creating cmodel=medium optimized access to locals.
12762 * config/rs6000/constraints.md (R): Pass QImode to
12763 legitimate_constant_pool_address_p.
12764 * config/rs6000/predicates.md (input_operand): Pass mode to
12765 legitimate_constant_pool_address_p.
12766 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12769 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12772 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12773 64-bit constants being loaded into registers other than GPRs such
12774 as loading 0 into a VSX register.
12776 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12778 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12780 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12782 PR middle-end/47917
12783 * builtins.c (fold_builtin_snprintf): New function.
12784 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12785 (fold_builtin_4): Likewise.
12787 PR middle-end/38878
12788 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12789 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12790 and C - X == X also strip nops from +/-/p+ operand.
12791 When optimizing -X == C, fold C to arg0's type.
12794 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12795 emit it as add_AT_int instead of add_AT_unsigned.
12797 2011-03-14 Tom Tromey <tromey@redhat.com>
12799 * unwind-dw2.c: Include sys/sdt.h if it exists.
12800 (_Unwind_DebugHook): Use STAP_PROBE2.
12801 * config.in, configure: Rebuild.
12802 * configure.ac: Check for sys/sdt.h.
12804 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12806 * config/i386/i386.md (ROUND_FLOOR): New constant.
12807 (ROUND_CEIL): Ditto.
12808 (ROUND_TRUNC): Ditto.
12809 (ROUND_MXCSR): Ditto.
12810 (ROUND_NO_EXC): Ditto.
12811 (rint<mode>2): Use new defines instead of numerical constants.
12812 (floor<mode>2): Ditto.
12813 (ceil<mode>2): Ditto.
12814 (btrunc<mode>2): Ditto.
12815 * config/i386/i386-builtin-types.def: Define ROUND function type
12817 * config/i386/i386.c (enum ix86_builtins): Add
12818 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12819 (struct builtin_description): Add
12820 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12821 (ix86_expand_sse_round): New static function.
12822 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12824 (ix86_builtin_vectorized_function): Handle
12825 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12827 2011-03-14 Tom Tromey <tromey@redhat.com>
12829 * c-parser.c (c_parser_asm_string_literal): Clear
12830 warn_overlength_strings.
12832 2011-03-14 Tom Tromey <tromey@redhat.com>
12834 * c-parser.c (disable_extension_diagnostics): Save
12835 warn_overlength_strings.
12836 (restore_extension_diagnostics): Restore warn_overlength_strings.
12838 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12840 * BASE-VER: Change to 4.7.0.
12842 2011-03-14 Richard Guenther <rguenther@suse.de>
12844 PR middle-end/48098
12845 * tree.c (build_vector_from_val): Adjust assert to requirements
12848 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12851 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12853 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12855 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12856 terms of target_flags_explicit. Adjust copyright year.
12858 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12859 * config/rs6000/t-freebsd: New file. Add override for
12862 2011-03-13 Chris Demetriou <cgd@google.com>
12864 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12865 (-fno-diagnostics-show-option): this, to reflect current default.
12866 (-Werror=): Update text about -fno-diagnostics-show-option.
12868 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12871 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12872 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12873 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12874 mode is not V2DImode or V2DFmode.
12875 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12876 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12877 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12879 (movdi_internal64): Likewise.
12881 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12883 PR tree-optimization/47127
12884 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12886 (set_cloog_options): Same.
12887 (scop_to_clast): Same.
12888 (print_clast_stmt): Do not call cloog_state_malloc and
12890 (print_generated_program): Same.
12892 * graphite-clast-to-gimple.h (cloog_state): Declared.
12893 (scop_to_clast): Adjust declaration.
12894 * graphite.c (cloog_state): Defined here.
12895 (graphite_initialize): Call cloog_state_malloc.
12896 (graphite_finalize): Call cloog_state_free.
12898 2011-03-11 Jason Merrill <jason@redhat.com>
12900 * attribs.c (lookup_attribute_spec): Take const_tree.
12903 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12905 * config/sparc/sparc.c (sparc_option_override): Use
12906 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12908 2011-03-11 Richard Guenther <rguenther@suse.de>
12910 PR tree-optimization/48067
12911 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12912 multiplication result will be only used once on the target
12915 2011-03-11 Richard Guenther <rguenther@suse.de>
12917 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12919 2011-03-11 Richard Guenther <rguenther@suse.de>
12922 * tree.c (find_decls_types_r): Do not walk types only reachable
12923 from IDENTIFIER_NODEs.
12925 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12927 PR middle-end/48044
12928 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12929 all vnode->force_output nodes as needed.
12931 2011-03-11 Jason Merrill <jason@redhat.com>
12934 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12935 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12937 2011-03-11 Martin Jambor <mjambor@suse.cz>
12939 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12942 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12944 PR tree-optimization/48063
12945 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12946 inline functions called once if !tree_can_inline_p (node->callers).
12948 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12950 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12952 * config/score/score3.c: Delete.
12953 * config/score/score3.h: Delete.
12954 * config/score/mul-div.S: Delete.
12955 * config/score/sfp-machine.h: Add new file.
12956 * config/score/constraints.md: Add new file.
12957 * config/score/t-score-softfp: Add new file.
12958 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12959 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12960 (score7_extra_constraint): Delete.
12961 (score7_option_override): Remove unused code.
12962 * config/score/score.c: Remove score3 and score5 define and code.
12963 * config/score/score.h: Remove score3 and score5 define and code.
12964 * config/score/score.md: Remove score3 template and unusual insn.
12965 * config/score/score.opt: Remove score3 and score5 options.
12967 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12969 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12970 when _HPUX_SOURCE is defined.
12971 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12973 2011-03-10 Jason Merrill <jason@redhat.com>
12976 * stor-layout.c (layout_type): Don't set structural equality
12977 on arrays of incomplete type.
12978 * tree.c (type_hash_eq): Handle comparing them properly.
12980 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12983 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12984 result mode matches original rtl mode.
12986 2011-03-10 Nick Clifton <nickc@redhat.com>
12988 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12989 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12991 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12993 PR rtl-optimization/47866
12994 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12995 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12996 if target wasn't scalar.
12997 * function.c (assign_stack_temp_for_type): Assert that neither
12998 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12999 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13001 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13003 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13005 * config/s390/s390-protos.h (s390_label_align): New prototype.
13006 * config/s390/s390.c (s390_label_align): New function.
13007 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13009 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13012 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13013 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13014 (output_vec_const_move): Ditto.
13016 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13018 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13019 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13020 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13021 Change 'rclass' argument and result type to reg_class_t.
13022 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13024 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13026 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13027 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13028 (TARGET_MEMORY_MOVE_COST): Define.
13029 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13031 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13034 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13037 PR tree-optimization/48022
13038 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13041 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13044 * var-tracking.c (find_use_val): Return NULL for
13045 cui->sets && cui->store_p BLKmode MEMs.
13047 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13049 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13051 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13052 xstormy16_print_operand_address): Remove.
13053 * config/stormy16/stormy16.c (xstormy16_print_operand,
13054 xstormy16_print_operand_address): Make static.
13055 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13057 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13060 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13061 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13064 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13067 * cfgloopmanip.c (fix_bb_placements): Return immediately
13068 if FROM is BASE_LOOP's header.
13070 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13072 * gimplify.c (gimplify_function_tree): Fix building calls
13073 to __builtin_return_address.
13075 2011-03-07 Alan Modra <amodra@gmail.com>
13077 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13078 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13079 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13080 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13082 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13083 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13084 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13085 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13086 * config/rs6000/rs6000.c
13087 (rs6000_elf_end_indicate_exec_stack): Rename to..
13088 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13089 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13090 (rs6000_file_start): ..here.
13091 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13092 file scope variables.
13093 (call_ABI_of_interest): New function.
13094 (init_cumulative_args): Set above vars when function return value
13095 is a float, vector, or small struct.
13096 (rs6000_function_arg_advance_1): Likewise for function args.
13097 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13098 references float args.
13100 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13102 * doc/cfg.texi: Remove "See" before @ref.
13103 * doc/invoke.texi: Likewise.
13105 2011-03-05 Jason Merrill <jason@redhat.com>
13107 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13109 2011-03-05 Anthony Green <green@moxielogic.com>
13111 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13113 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13115 PR rtl-optimization/47899
13116 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13117 to flow_loop_nested_p when moving the loop upward.
13119 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13122 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13124 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13126 PR tree-optimization/47967
13127 * ipa-cp.c (build_const_val): Return NULL instead of creating
13128 VIEW_CONVERT_EXPR for mismatching sizes.
13129 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13130 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13131 give up on versioning.
13133 2011-03-05 Alan Modra <amodra@gmail.com>
13136 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13137 full cmodel medium/large lo_sum + high addresses.
13139 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13141 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13142 pool references in UNSPEC_LTREL_OFFSET.
13144 2011-03-04 Jan Hubicka <jh@suse.cz>
13147 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13148 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13149 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13151 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13152 cgraph_add_thunk): Add node pointers.
13153 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13154 associated to right node.
13155 (input_node): Update use of cgraph_same_body_alias
13156 and cgraph_add_thunk.
13158 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13160 * config/i386/i386.opt (mprefer-avx128): New flag.
13161 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13162 modes when the flag -mprefer-avx128 is on.
13164 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13166 * dwarf2out.c (compare_loc_operands): Fix address handling.
13168 2011-03-04 Alan Modra <amodra@gmail.com>
13170 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13172 2011-03-04 Richard Guenther <rguenther@suse.de>
13174 PR middle-end/47968
13175 * expmed.c (extract_bit_field_1): Prefer vector modes that
13176 vec_extract patterns can handle.
13178 2011-03-04 Richard Guenther <rguenther@suse.de>
13180 PR middle-end/47975
13181 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13183 2011-03-04 Richard Henderson <rth@redhat.com>
13185 * explow.c (emit_stack_save): Remove 'after' parameter.
13186 (emit_stack_restore): Likewise.
13187 * expr.h: Update to match.
13188 * builtins.c, calls.c, stmt.c: Likewise.
13189 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13190 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13191 * function.c (expand_function_end): Insert the emit_stack_save
13192 sequence before parm_birth_insn instead of after.
13194 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13196 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13197 (ssse3_pmaddubsw128): Ditto.
13198 (ssse3_pmaddubsw): Ditto.
13200 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13202 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13204 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13207 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13208 on TYPE_SIZE_UNIT if it is a DECL.
13211 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13212 first operand is not is_gimple_mem_ref_addr, try to fold it.
13213 If the operand still isn't is_gimple_mem_ref_addr, clear
13216 2011-03-03 Richard Guenther <rguenther@suse.de>
13218 PR middle-end/47283
13219 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13221 (refs_may_alias_p_1): For release branches return true if
13222 we are confused by our input.
13224 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13226 * config/s390/s390.c (s390_function_value): Rename to ...
13227 (s390_function_and_libcall_value): ... this.
13228 (s390_function_value): New function.
13229 (s390_libcall_value): New function.
13230 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13231 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13232 target macro definitions.
13233 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13235 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13237 * config/i386/freebsd64.h (CC1_SPEC): Define.
13238 * config/i386/linux64.h (CC1_SPEC): Define.
13239 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13241 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13243 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13245 * config/stormy16/stormy16.c: Include reload.h.
13246 (xstormy16_memory_move_cost): New function.
13247 (TARGET_MEMORY_MOVE_COST): Define.
13249 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13251 PR rtl-optimization/47925
13252 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13253 with side effects. Remove the more-specific check for volatile asms.
13255 2011-03-02 Alan Modra <amodra@gmail.com>
13258 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13259 toc relative addresses for valid offsets.
13261 2011-03-01 Richard Guenther <rguenther@suse.de>
13263 PR tree-optimization/47890
13264 * tree-vect-loop.c (get_initial_def_for_induction): Set
13265 related stmt properly.
13267 2011-03-01 Richard Guenther <rguenther@suse.de>
13270 * lto-streamer.c (lto_record_common_node): Also register
13271 the canonical type.
13273 2011-03-01 Richard Guenther <rguenther@suse.de>
13276 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13277 Do not stream DECL_ABSTRACT_ORIGIN.
13278 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13279 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13280 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13281 Do not stream DECL_ABSTRACT_ORIGIN.
13282 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13283 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13285 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13287 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13288 FUNCTION_VALUE_REGNO_P): Remove.
13289 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13290 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13291 Add 'outgoing' argument.
13292 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13294 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13295 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13297 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13300 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13301 (lookup_filename): Likewise.
13302 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13304 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13305 Jakub Jelinek <jakub@redhat.com>
13307 PR middle-end/47893
13308 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13309 (assign_stack_local_1): Change last argument type to int.
13310 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13311 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13312 don't record padding space into frame_space_list nor use those areas.
13313 (assign_stack_local): Adjust caller.
13314 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13315 of assign_stack_local, pass 0 as last argument.
13316 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13319 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13322 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13323 Use target address_mode and pointer_mode hooks instead of hardcoded
13324 Pmode and ptr_mode. Handle some simple cases of extending if
13325 POINTERS_EXTEND_UNSIGNED < 0.
13326 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13327 Call convert_debug_memory_address.
13328 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13329 convert_debug_memory_address.
13331 PR middle-end/46790
13332 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13333 * configure: Regenerated.
13334 * config.in: Regenerated.
13335 * varasm.c (default_function_section): Return NULL
13336 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13338 2011-02-28 Martin Jambor <mjambor@suse.cz>
13340 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13341 the description to match the printed values.
13343 2011-02-28 Richard Guenther <rguenther@suse.de>
13345 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13346 of the copied scope tree.
13348 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13350 * doc/extend.texi (Function Attributes): Avoid deeply (and
13351 wrongly) nested tables.
13353 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13355 PR middle-end/47903
13356 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13357 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13358 r isn't op0 nor op1.
13360 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13362 * config/avr/avr.md: Remove magic comment for emacs.
13364 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13367 * config/avr/avr.c (avr_option_override): Use error on bad options.
13368 (avr_help): New function.
13369 (TARGET_HELP): Define.
13371 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13374 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13375 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13377 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13379 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13380 (ARM Options): Ditto.
13381 (i386 and x86-64 Options): Ditto.
13382 (RX Options): Ditto.
13383 (SPARC Options): Ditto.
13385 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13387 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13388 FreeBSD 6 and later. Generally use cpu generic.
13390 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13392 * doc/cpp.texi: Update copyright years.
13394 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13397 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13399 2011-02-25 Jon Beniston <jon@beniston.com>
13402 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13403 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13404 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13405 (lm32_block_move_inline): Add type cast to remove warning.
13406 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13407 (gen_int_relational): Move declarations to start of function.
13409 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13411 PR tree-optimization/45470
13412 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13413 can throw internally only.
13414 * tree-vect-stmts.c (vectorizable_call): Likewise.
13416 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13418 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13419 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13420 * config/stormy16/stormy16-protos.h
13421 (xstormy16_preferred_reload_class): Remove.
13422 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13423 static. Change 'rclass' argument and return type to reg_class_t.
13424 (TARGET_PREFERRED_RELOAD_CLASS,
13425 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13427 2011-02-24 Richard Guenther <rguenther@suse.de>
13429 * lto-streamer-in.c (input_bb): Do not find referenced vars
13430 in debug statements.
13432 2011-02-23 Jason Merrill <jason@redhat.com>
13434 * common.opt (fabi-version): Document v5 and v6.
13436 2011-02-23 Richard Guenther <rguenther@suse.de>
13438 PR tree-optimization/47849
13439 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13441 2011-02-23 Jie Zhang <jie@codesourcery.com>
13443 * opts-common.c (decode_cmdline_option): Print empty string
13444 argument as "" in decoded->orig_option_with_args_text.
13445 * gcc.c (execute): Print empty string argument as ""
13446 in the verbose output.
13447 (do_spec_1): Keep empty string argument.
13449 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13451 * config.gcc: Declare score-* and crx-* obsolete.
13453 2011-02-23 Jie Zhang <jie@codesourcery.com>
13455 PR rtl-optimization/47763
13456 * web.c (web_main): Ignore naked clobber when replacing register.
13458 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13460 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13463 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13466 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13468 2011-02-22 Mike Stump <mikestump@comcast.net>
13470 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13472 * configure: Regenerate.
13474 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13476 PR rtl-optimization/46002
13477 * ira-color.c (update_copy_costs): Change class intersection
13478 test to reg_class_contents[] test of 'hard_regno'.
13480 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13482 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13483 than Driver option.
13484 * config/hpux11.opt (mt): Likewise.
13485 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13486 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13487 * config/vax/elf.opt (mno-asm-pic): Likewise.
13488 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13490 2011-02-21 Mike Stump <mikestump@comcast.net>
13493 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13494 tree so we can get save the type.
13495 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13496 for CFString instead of trying to use past the end of the builtins.
13497 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13498 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13499 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13500 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13501 Rename to darwin_builtin_cfstring.
13502 (darwin_init_cfstring_builtins): Return the built type.
13504 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13507 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13508 (_mm256_insert_epi64): Use _mm_insert_epi64.
13510 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13512 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13513 * config/stormy16/stormy16-protos.h
13514 (xstormy16_mode_dependent_address_p): Remove.
13515 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13516 Make static. Change return type to bool. Change argument type to
13517 const_rtx. Remove dead code.
13518 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13520 2011-02-21 Richard Guenther <rguenther@suse.de>
13523 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13524 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13525 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13527 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13528 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13530 2011-02-20 Richard Guenther <rguenther@suse.de>
13533 * tree.c (free_lang_data_in_decl): Clean builtins from
13534 the TU decl BLOCK_VARS.
13536 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13540 * haifa-sched.c (fix_tick_ready): Skip tick computation
13543 2011-02-19 Richard Guenther <rguenther@suse.de>
13546 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13547 Remove lazy BLOCK_VARS streaming.
13548 (lto_input_ts_block_tree_pointers): Likewise.
13549 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13551 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13553 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13555 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13557 * config/i386/biarch32.h, config/i386/mach.h,
13558 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13560 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13563 * config/i386/i386.md (peephole2 for shift and plus): Use
13564 operands[1] original mode in the first insn.
13566 2011-02-18 Mike Stump <mikestump@comcast.net>
13568 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13570 2011-02-18 Jan Hubicka <jh@suse.cz>
13572 PR middle-end/47788
13573 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13574 to zero when the function is not inlinable at all.
13576 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13578 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13579 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13580 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13581 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13582 * config/pa/t-pa64: Likewise.
13583 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13585 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13588 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13590 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13593 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13595 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13597 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13598 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13599 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13600 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13601 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13602 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13603 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13604 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13605 m32r_legitimate_address_p): New functions.
13606 * config/m32r/constraints.md (constraint "S"): Don't use
13607 STORE_PREINC_PREDEC_P.
13608 (constraint "U"): Don't use LOAD_POSTINC_P.
13610 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13612 PR rtl-optimization/46178
13613 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13614 compute ira_hard_regno_cover_class[].
13616 2011-02-18 Richard Guenther <rguenther@suse.de>
13619 * lto-streamer.h (lto_global_var_decls): Declare.
13620 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13621 statics for global var processing.
13623 2011-02-18 Richard Guenther <rguenther@suse.de>
13625 PR tree-optimization/47737
13626 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13627 edge dominance check.
13629 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13632 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13633 avoid invalid rtx sharing.
13635 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13637 * doc/cpp.texi (Obsolete Features): Add background on the
13638 origin of assertions.
13640 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13642 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13644 * config/darwin.c (output_objc_section_asm_op): Added support for
13646 (is_objc_metadata): New.
13647 (darwin_objc2_section): New.
13648 (darwin_objc1_section): New.
13649 (machopic_select_section): Added support for ABI v1 and v2.
13650 (darwin_emit_objc_zeroed): New.
13651 (darwin_output_aligned_bss): Detect objc metadata and treat it
13653 (darwin_asm_output_aligned_decl_common): Same.
13654 (darwin_asm_output_aligned_decl_local): Same.
13655 * config/darwin-sections.def: Updated for ABI v1 and v2.
13656 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13657 compiling Objective-C code for the NeXT runtime, default to using
13658 ABI version 0 for 32-bit, and version 2 for 64-bit.
13660 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13662 * common.opt (optimize_fast): New Variable.
13663 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13664 instead of local variable ofast.
13666 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13668 * doc/invoke.texi (fobjc-abi-version): Documented.
13669 (fobjc-nilcheck): Documented.
13670 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13673 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13676 * common.opt (export-dynamic): New Driver option.
13677 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13679 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13681 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13683 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13684 Jan Hubicka <jh@suse.cz>
13688 * cfgexpand.c (account_used_vars_for_block): Remove.
13689 (estimated_stack_frame_size): Use referenced vars.
13690 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13691 that were referenced in the original function. Test src_fn
13692 rather than cfun. Drop redundant get_var_ann.
13693 (setup_one_parameter): Drop redundant get_var_ann.
13694 (declare_return_variable): Likewise.
13695 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13696 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13697 * ipa-inline.c (compute_inline_parameters): Do not compute
13698 disregard_inline_limits here.
13699 (compute_inlinable_for_current, pass_inlinable): New.
13700 (pass_inline_parameters): Require PROP_referenced_vars.
13701 * cgraphunit.c (cgraph_process_new_functions): Don't run
13702 compute_inline_parameters explicitly unless function is in SSA form.
13703 (cgraph_analyze_function): Set .disregard_inline_limits.
13704 * tree-sra.c (convert_callers): Compute inliner parameters
13705 only for functions already in SSA form.
13707 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13709 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13710 -mlittle-endian-data.
13712 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13714 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13715 -mno-fpu, not -fpu and -no-fpu.
13716 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13717 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13719 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13722 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13723 input reload with PLUS RTX.
13725 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13727 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13728 of InverseVar(MDMX).
13730 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13732 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13735 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13737 * config/mn10300/mn10300.opt (mno-crt0): New.
13739 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13741 * config/m68k/uclinux.opt (static-libc): New Driver option.
13743 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13745 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13747 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13749 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13750 %{muser-extend-enabled}.
13752 2011-02-16 Richard Guenther <rguenther@suse.de>
13754 PR tree-optimization/47738
13755 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13756 the TODO from tree_predictive_commoning.
13758 2011-02-15 Jeff Law <law@redhat.com>
13761 2011-01-25 Jeff Law <law@redhat.com>
13763 PR rtl-optimization/37273
13764 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13765 handle them like argument loads from stack slots. Do not double
13766 count memory for memory constants and argument loads from stack slots.
13768 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13770 PR middle-end/47725
13771 * combine.c (cant_combine_insn_p): Revert the last change.
13773 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13776 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13777 mode for vector constants. Remove code that checks for TImode.
13779 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13783 * cgraph.h (compute_inline_parameters): Return void.
13784 * ipa-inline.c (compute_inline_parameters): Adjust.
13786 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13790 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13792 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13793 * ipa-inline.c (compute_inline_parameters): Adjust.
13795 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13799 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13800 Adjust all users. Pass FN to...
13801 * tree-flow-inline.h (first_referenced_var): ... this. Add
13803 * ipa-struct-reorg.c: Adjust.
13804 * tree-dfa.c: Adjust.
13805 * tree-into-ssa.c: Adjust.
13806 * tree-sra.c: Adjust.
13807 * tree-ssa-alias.c: Adjust.
13808 * tree-ssa-live.c: Adjust.
13809 * tree-ssa.c: Adjust.
13810 * tree-ssanames.c: Adjust.
13811 * tree-tailcall.c: Adjust.
13813 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13817 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13818 Adjust all callers.
13819 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13820 * tree-flow-inline.h: Adjust.
13821 * gimple-pretty-print.c: Adjust.
13822 * tree-into-ssa.c: Adjust.
13823 * tree-ssa.c: Adjust.
13824 * cfgexpand.c: Adjust.
13826 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13828 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13829 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13830 (EXTRA_CONSTRAINT): Delete.
13831 * config/iq2000/constraints.md: New file.
13832 * config/iq2000/iq2000.md: Include it.
13833 (define_insn ""): Delete.
13834 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13835 unsupported constraint letters from patterns.
13836 (call_value, call_value_internal1): Likewise.
13837 (call_value_multiple_internal1): Likewise.
13839 2011-02-15 Nick Clifton <nickc@redhat.com>
13841 * config/mn10300/mn10300.c: Include tm-constrs.h.
13842 (struct liw_data): New data structure describing an LIW candidate
13844 (extract_bundle): Use struct liw_data. Allow small integer
13845 operands for some instructions.
13846 (check_liw_constraints): Use struct liw_data. Remove swapped
13847 parameter. Add comments describing the checks. Fix bug when
13848 assigning the source of liw1 to the source of liw2.
13849 (liw_candidate): Delete. Code moved into extract_bundle.
13850 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13852 * config/mn10300/predicates.md (liw_operand): New predicate.
13853 Allows registers and small integer constants.
13854 * config/mn10300/constraints.md (O): New constraint. Accetps
13855 integers in the range -8 to +7 inclusive.
13856 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13857 for moving a small integer into a register. Give this alternative
13859 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13860 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13861 using the J,K,L and M constraints,
13862 (liw): Remove SI mode on second operands to allow for HI and QI
13864 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13867 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13869 PR middle-end/47725
13870 * combine.c (cant_combine_insn_p): Check zero/sign extended
13873 2011-02-15 Richard Guenther <rguenther@suse.de>
13875 PR tree-optimization/47743
13876 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13877 for a non-type-compatible VN lookup bail out.
13879 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13881 * config/fr30/constraints.md: New file.
13882 * config/fr30/fr30.md: Include it.
13883 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13884 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13885 (EXTRA_CONSTRAINT): Delete.
13887 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13889 * config/frv/constraints.md: New file.
13890 * config/frv/predicates.md: Include it.
13891 * config/frv/frv.c (reg_class_from_letter): Delete.
13892 (frv_option_override): Don't initialize it.
13893 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13894 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13895 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13896 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13897 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13898 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13899 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13900 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13901 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13902 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13903 (REG_CLASS_FROM_CONSTRAINT): Delete.
13905 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13907 PR middle-end/47581
13908 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13909 if frame size is 0 in a leaf function.
13911 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13914 * config/alpha/host-osf.c: New file.
13915 * config/alpha/x-osf: New file.
13916 * config.host (alpha*-dec-osf*): Use it.
13918 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13920 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13921 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13922 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13923 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13925 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13927 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13929 * config/stormy16/constraints.md: New file.
13930 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13931 Use satisfies_constraint_Q and satisfies_constraint_R.
13932 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13934 (xstormy16_legitiamte_address_p): Declare.
13935 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13936 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13937 (EXTRA_CONSTRAINT): Delete.
13938 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13940 (xstormy16_extra_constraint_p): Delete.
13942 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13944 PR tree-optimization/46494
13945 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13946 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13947 (pass_rtl_loop_done): Add TODO_verify_flow.
13948 * fwprop.c (pass_rtl_fwprop): Likewise.
13949 * modulo-sched.c (pass_sms): Likewise.
13950 * tree-ssa-dom.c (pass_dominator): Likewise.
13951 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13952 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13953 (pass_tree_loop_done): Likewise.
13954 * tree-ssa-pre.c (execute_pre): Likewise.
13955 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13956 * tree-ssa-sink.c (pass_sink_code): Likewise.
13957 * tree-vrp.c (pass_vrp): Likewise.
13959 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13961 * config/v850/constraints.md: New file.
13962 * config/v850/v850.md: Include it.
13963 * config/v850/predicates.md (reg_or_0_operand): Use
13964 satisfies_constraint_G.
13965 (special_symbolref_operand): Use satisfies_constraint_K.
13966 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13967 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13968 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13969 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13970 (EXTRA_CONSTRAINT): Delete.
13971 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13972 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13973 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13975 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13978 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13981 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13983 * config/mcore/constraints.md: New file.
13984 * config/mcore/mcore.md: Include it.
13985 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13986 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13987 (REG_CLASS_FROM_LETTER): Delete.
13988 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13989 insn_const_int_ok_for_constraint.
13990 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13991 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13992 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13993 (EXTRA_CONSTRAINT): Delete.
13995 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13998 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13999 (IS_SIGHANDLER): Define.
14000 (sparc64_is_sighandler): New function, split off from
14001 sparc64_fallback_frame_state.
14002 (sparc_is_sighandler): New function, split off from
14003 sparc_fallback_frame_state.
14004 (sparc64_fallback_frame_state): Merge with ...
14005 (sparc_fallback_frame_state): ... this into ...
14006 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14007 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14008 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14009 stack instead of hardcoded offsets.
14011 2011-02-14 Andriy Gapon <avg@freebsd.org>
14014 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14016 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14018 * configure: Regenerate.
14020 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14023 * gcc.c (asm_options): Correct spec matching --target-help.
14025 2011-02-12 Martin Jambor <mjambor@suse.cz>
14027 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14028 to gimple call error.
14030 2011-02-12 Mike Stump <mikestump@comcast.net>
14032 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14033 comments in backslash regions.
14035 2011-02-12 Mike Stump <mikestump@comcast.net>
14036 Jakub Jelinek <jakub@redhat.com>
14037 Iain Sandoe <iains@gcc.gnu.org>
14040 * dwarf2out.c (output_cfa_loc): When required, apply the
14041 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14042 (output_loc_sequence): Likewise.
14043 (output_loc_operands_raw): Likewise.
14044 (output_loc_sequence_raw): Likewise.
14045 (output_cfa_loc): Likewise.
14046 (output_loc_list): Suppress register number adjustment when
14047 calling output_loc_sequence()
14048 (output_die): Likewise.
14050 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14052 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14054 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14055 xtensa_memory_move_cost): New functions.
14056 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14058 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14061 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14062 in the current directory.
14063 * configure: Rebuilt.
14065 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14067 * config/darwin.c (darwin_override_options): Add a hunk missed
14068 from the commit of r168571. Trim comment line lengths and
14069 correct indents of the preceding block.
14071 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14073 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14076 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14078 * common.opt (nostartfiles): New Driver option.
14080 2011-02-11 Xinliang David Li <davidxl@google.com>
14082 PR tree-optimization/47707
14083 * tree-chrec.c (convert_affine_scev): Keep type precision.
14085 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14087 PR tree-optimization/47420
14088 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14090 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14092 PR rtl-optimization/47614
14093 * rtl.h (check_for_inc_dec): Declare.
14094 * dse.c (check_for_inc_dec): Externalize...
14095 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14096 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14098 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14101 * gcc.c (main): Do not compile inputs if there were errors in
14103 * opts-common.c (read_cmdline_option): Check for wrong language
14104 after other error checks.
14106 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14108 * cgraph.c: Fix comment typos.
14109 * cgraph.h: Likewise.
14110 * cgraphunit.c: Likewise.
14111 * ipa-cp.c: Likewise.
14112 * ipa-inline.c: Likewise.
14113 * ipa-prop.c: Likewise.
14114 * ipa-pure-const.c: Likewise.
14115 * ipa-ref.c: Likewise.
14116 * ipa-reference.c: Likewise.
14118 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14121 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14123 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14126 * doc/sourcebuild.texi (Require Support): Document
14127 dg-require-ascii-locale.
14129 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14131 * doc/lto.texi (Write summary): Fix missing parentheses.
14133 2011-02-10 DJ Delorie <dj@redhat.com>
14135 * config/m32c/m32c.c (m32c_option_override): Disable
14136 -fcombine-stack-adjustments until flag value tracking and compare
14137 optimization can be rewritten.
14139 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14141 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14143 (PROCESSOR_DEFAULT64): Likewise.
14145 2011-02-10 Richard Henderson <rth@redhat.com>
14147 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14148 change from 2011-02-03.
14149 * config/rx/rx.c (flags_from_code): Likewise.
14150 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14151 is valid, n/pz otherwise.
14152 (rx_select_cc_mode): Return CCmode if Y is not zero.
14154 2011-02-10 Richard Guenther <rguenther@suse.de>
14156 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14158 2011-02-10 Richard Guenther <rguenther@suse.de>
14160 PR tree-optimization/47677
14161 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14163 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14166 * combine.c (make_compound_operation): Only change shifts into
14167 multiplication for SCALAR_INT_MODE_P.
14169 2011-02-10 Jie Zhang <jie@codesourcery.com>
14173 2011-02-05 Jie Zhang <jie@codesourcery.com>
14175 * web.c (entry_register): Don't clobber the number of the
14176 first uninitialized reference in used[].
14178 2011-02-09 Richard Guenther <rguenther@suse.de>
14180 PR tree-optimization/47664
14181 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14184 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14188 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14190 (PROCESSOR_DEFAULT64): Same.
14191 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14193 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14195 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14197 2011-02-09 Martin Jambor <mjambor@suse.cz>
14199 PR middle-end/45505
14200 * tree-sra.c (struct access): New flags grp_scalar_read and
14201 grp_scalar_write. Changed description of assignment read and write
14203 (dump_access): Dump new flags, reorder all of them.
14204 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14205 to detect multiple scalar reads.
14206 (analyze_access_subtree): Use the new scalar read write flags instead
14207 of the old flags. Adjusted comments.
14209 2011-02-08 DJ Delorie <dj@redhat.com>
14212 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14215 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14217 * config/m68k/uclinux.opt: New.
14218 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14220 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14222 * config/cris/elf.opt (sim): New Driver option.
14224 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14226 * config/xtensa/elf.opt: New.
14227 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14229 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14231 * config/vax/elf.opt: New.
14232 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14234 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14236 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14238 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14240 * config/gnu-user.opt: New.
14241 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14242 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14243 *-*-uclinux*): Use gnu-user.opt.
14245 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14247 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14248 * config/i386/gnu.h (CPP_SPEC): Likewise.
14250 2011-02-08 Ian Lance Taylor <iant@google.com>
14252 * common.opt (fcx-limited-range): Add SetByCombined flag.
14253 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14254 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14255 (fassociative-math, freciprocal-math): Likewise.
14256 (funsafe-math-optimizations): Likewise.
14257 * opth-gen.awk: Handle SetByCombined.
14258 * optc-gen.awk: Likewise.
14259 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14260 (set_unsafe_math_optimizations_flags): Likewise.
14261 * doc/options.texi (Option properties): Document SetByCombined.
14263 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14265 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14266 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14267 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14268 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14269 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14271 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14273 PR tree-optimization/46834
14274 PR tree-optimization/46994
14275 PR tree-optimization/46995
14276 * graphite-sese-to-poly.c (used_outside_reduction): New.
14277 (detect_commutative_reduction): Call used_outside_reduction.
14278 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14279 translate_scalar_reduction_to_array only when at least one
14280 loop-phi/close-phi tuple has been detected.
14282 2011-02-08 Richard Guenther <rguenther@suse.de>
14284 PR middle-end/47639
14285 * tree-vect-generic.c (expand_vector_operations_1): Update
14287 (expand_vector_operations): ... not here. Cleanup EH info
14288 and the CFG if required.
14290 2011-02-08 Richard Guenther <rguenther@suse.de>
14292 PR tree-optimization/47641
14293 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14294 require type compatibility.
14296 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14298 * gimple-low.c (lower_function_body): Don't remove the location of
14299 the return statement here.
14300 (lower_gimple_return): Do it here instead but only if the return
14301 statement is actually used twice.
14303 2011-02-08 Richard Guenther <rguenther@suse.de>
14305 PR tree-optimization/47632
14306 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14307 unused up_to_stmt parameter, return whether cfg-cleanup is
14308 necessary, remove EH info properly.
14309 (forward_propagate_into_gimple_cond): Adjust caller.
14310 (forward_propagate_into_cond): Likewise.
14311 (forward_propagate_comparison): Likewise.
14312 (tree_ssa_forward_propagate_single_use_vars): Make
14313 forward_propagate_comparison case similar to the two others.
14315 2011-02-08 Nick Clifton <nickc@redhat.com>
14317 * config/mn10300/mn10300.opt (mliw): New command line option.
14318 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14319 (liw_bundling): New automaton.
14320 (liw): New attribute.
14321 (liw_op): New attribute.
14322 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14323 (movsi_internal): Add LIW attributes.
14324 (andsi3): Likewise.
14325 (iorsi3): Likewise.
14326 (xorsi3): Likewise.
14327 (addsi3): Separate register and immediate alternatives.
14328 Add LIW attributes.
14329 (subsi3): Likewise.
14331 (aslsi3): Likewise.
14332 (lshrsi3): Likewise.
14333 (ashrsi3): Likewise.
14334 (liw): New pattern.
14335 * config/mn10300/mn10300.c (liw_op_names): New
14336 (mn10300_print_operand): Handle 'W' operand descriptor.
14337 (extract_bundle): New function.
14338 (check_liw_constraints): New function.
14339 (liw_candidate): New function.
14340 (mn10300_bundle_liw): New function.
14341 (mn10300_reorg): New function.
14342 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14343 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14344 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14345 __LIW__ or __NO_LIW__.
14346 * doc/invoke.texi: Describe the -mliw command line option.
14348 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14350 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14351 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14352 pthread_mutex_unlock): Remove.
14353 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14354 * config/pa/t-pa64: Likewise.
14355 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14356 shared libc if not linking against libpthread.
14357 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14359 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14362 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14363 on 10.6 and later to ensure that we always use the unwinder from
14364 the system. Only add -no_compact_unwind when tarteting darwin
14367 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14370 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14371 (vec_interleave_lowv2sf): Ditto.
14372 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14373 (vec_extract_oddv2sf): Ditto.
14375 2011-02-07 Mike Stump <mikestump@comcast.net>
14378 Add __ieee_divdc3 entry point.
14379 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14381 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14382 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14383 * config/darwin.c (darwin_rename_builtins): Add.
14384 * config/darwin-protos.h (darwin_rename_builtins): Add.
14386 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14389 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14392 2011-02-07 Mike Stump <mikestump@comcast.net>
14394 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14396 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14399 * config/avr/libgcc.S (exit): Move .endfunc
14401 2011-02-07 Richard Guenther <rguenther@suse.de>
14403 PR tree-optimization/47615
14404 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14405 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14406 (run_scc_vn): Initialize it.
14407 (visit_reference_op_load): Use it.
14408 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14410 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14412 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14413 DImode trapping arithmetic libfuncs.
14415 2011-02-07 Richard Guenther <rguenther@suse.de>
14417 PR tree-optimization/47621
14418 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14420 (execute_update_addresses_taken): ... here. Make it more
14421 conservative in what we accept.
14423 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14425 * config/sparc/freebsd.h (ASM_SPEC): Define.
14426 * config/sparc/vxworks.h (ASM_SPEC): Define.
14428 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14430 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14432 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14434 * doc/invoke.texi: Remove reference to compiler internals from
14435 user documentation.
14437 * reg-notes.def: Remove REG_VALUE_PROFILE.
14438 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14440 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14442 PR middle-end/47610
14443 * varasm.c (default_section_type_flags): If decl is NULL,
14444 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14446 2011-02-05 Jie Zhang <jie@codesourcery.com>
14449 * web.c (entry_register): Don't clobber the number of the
14450 first uninitialized reference in used[].
14452 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14454 PR tree-optimization/46194
14455 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14456 (build_classic_dist_vector_1): Do not represent classic distance
14457 vectors when the access functions are variating in different loops.
14459 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14461 * config/mips/iris6.opt: New.
14462 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14464 2011-02-04 Richard Henderson <rth@redhat.com>
14465 Steve Ellcey <sje@cup.hp.com>
14468 * config/ia64/predicates.md (mux1_brcst_element): New.
14469 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14470 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14471 (ia64_unpack_sign): New.
14472 (ia64_expand_unpack): Rewrite using new routines.
14473 (ia64_expand_widen_sum): Ditto.
14474 (ia64_expand_dot_prod_v8qi): Ditto.
14475 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14476 routines, add endian check.
14477 (pmpy2_even): Rename from pmpy2_r, add endian check.
14478 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14479 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14480 (vec_widen_smult_hi_v4hi): Ditto.
14481 (vec_widen_umult_lo_v4hi): Ditto.
14482 (vec_widen_umult_hi_v4hi): Ditto.
14483 (mulv2si3): Change endian checks.
14484 (sdot_prodv4hi): Rewrite with new calls.
14485 (udot_prodv4hi): New.
14486 (vec_pack_ssat_v4hi): Add endian check.
14487 (vec_pack_usat_v4hi): Ditto.
14488 (vec_pack_ssat_v2si): Ditto.
14489 (max1_even): Rename from max1_r, add endian check.
14490 (max1_odd): Rename from max1_l, add endian check.
14491 (*mux1_rev): Format change.
14492 (*mux1_mix): Ditto.
14493 (*mux1_shuf): Ditto.
14494 (*mux1_alt): Ditto.
14495 (*mux1_brcst_v8qi): Use new predicate.
14496 (vec_extract_evenv8qi): Remove endian check.
14497 (vec_extract_oddv8qi): Ditto.
14498 (vec_interleave_lowv4hi): Format change.
14499 (vec_interleave_highv4hi): Ditto.
14500 (mix2_even): Rename from mix2_r, add endian check.
14501 (mix2_odd): Rename from mux2_l, add endian check.
14502 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14503 (vec_extract_evenodd_helper): Format change.
14504 (vec_extract_evenv4hi): Remove endian check.
14505 (vec_extract_oddv4hi): Remove endian check.
14506 (vec_interleave_lowv2si): Format change.
14507 (vec_interleave_highv2si): Format change.
14508 (vec_initv2si): Remove endian check.
14509 (vecinit_v2si): Add endian check.
14510 (reduc_splus_v2sf): Add endian check.
14511 (reduc_smax_v2sf): Ditto.
14512 (reduc_smin_v2sf): Ditto.
14513 (vec_initv2sf): Remove endian check.
14514 (fpack): Add endian check.
14515 (fswap): Add endian check.
14516 (vec_interleave_highv2sf): Add endian check.
14517 (vec_interleave_lowv2sf): Add endian check.
14518 (fmix_lr): Add endian check.
14519 (vec_setv2sf): Format change.
14520 (*vec_extractv2sf_0_be): Use shift to extract operand.
14521 (*vec_extractv2sf_1_be): New.
14522 (vec_pack_trunc_v4hi): Add endian check.
14523 (vec_pack_trunc_v2si): Format change.
14525 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14527 PR inline-asm/23200
14528 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14529 do bb, locus and block comparison and disallow loads if it is not set.
14530 (stmt_is_replaceable_p): New function.
14531 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14533 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14534 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14536 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14538 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14540 * config/rs6000/xilinx.opt: New.
14541 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14543 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14545 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14547 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14549 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14550 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14551 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14552 secondary_reload_info, xtensa_secondary_reload): Remove.
14553 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14554 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14555 (xtensa_preferred_reload_class): Make static. Change return and
14556 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14557 Use CONST_DOUBLE_P predicate.
14558 (xtensa_preferred_output_reload_class): New function.
14559 (xtensa_secondary_reload): Make static.
14561 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14563 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14564 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14565 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14567 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14569 PR middle-end/31490
14570 * output.h (SECTION_RELRO): Define.
14571 (SECTION_MACH_DEP): Adjust.
14572 (get_variable_section): New prototype.
14573 * varpool.c (varpool_finalize_named_section_flags): New function.
14574 (varpool_assemble_pending_decls): Call it.
14575 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14576 * cgraphunit.c (cgraph_output_in_order): Call
14577 varpool_finalize_named_section_flags.
14578 * varasm.c (get_section): Allow section flags conflicts between
14579 relro and read-only sections if the section hasn't been declared yet.
14580 Set SECTION_OVERRIDE after diagnosing section type conflict.
14581 (get_variable_section): No longer static.
14582 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14583 readonly sections that need relocations.
14584 (decl_readonly_section_1): New function.
14585 (decl_readonly_section): Use it.
14588 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14589 Steve Ellcey <sje@cup.hp.com>
14591 PR middle-end/31490
14592 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14593 if section attribute used.
14595 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14597 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14598 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14599 (darwin_init_sections): Remove assertion.
14601 2011-02-03 Nick Clifton <nickc@redhat.com>
14603 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14605 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14606 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14607 instead of "n" and "pz".
14608 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14611 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14614 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14615 fma, expand FMA_EXPR as fma{,f,l} call.
14618 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14619 copy them into a unsigned char variable and pass address of it to
14620 lto_output_data_stream.
14623 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14624 around backend_init_target and lang_dependent_init_target calls.
14625 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14626 (verify_cgraph_node): Don't call set_cfun here. Use
14627 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14628 Set error_found for incorrectly represented calls to thunks.
14630 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14633 PR rtl-optimization/43494
14634 * rtl.h (for_each_inc_dec_fn): New type.
14635 (for_each_inc_dec): Declare.
14636 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14637 (for_each_inc_dec_find_inc_dec): New fn.
14638 (for_each_inc_dec_find_mem): New fn.
14639 (for_each_inc_dec): New fn.
14640 * dse.c (struct insn_size): Remove.
14641 (replace_inc_dec, replace_inc_dec_mem): Remove.
14642 (emit_inc_dec_insn_before): New fn.
14643 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14644 (canon_address): Pass mem modes to cselib_lookup.
14645 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14646 (cselib_lookup_from_insn): Likewise.
14647 (cselib_subst_to_values): Likewise.
14648 * cselib.c (find_slot_memmode): New var.
14649 (cselib_find_slot): New fn. Use it instead of
14650 htab_find_slot_with_hash everywhere.
14651 (entry_and_rtx_equal_p): Use find_slot_memmode.
14652 (autoinc_split): New fn.
14653 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14654 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14655 Deal with autoinc. Special-case recursion into MEMs.
14656 (cselib_hash_rtx): Likewise.
14657 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14658 address and MEM modes.
14659 (cselib_subst_to_values): Add memmode, pass it on.
14661 (cselib_lookup): Add memmode argument, pass it on.
14662 (cselib_lookup_from_insn): Add memmode.
14663 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14664 (struct cselib_record_autoinc_data): New.
14665 (cselib_record_autoinc_cb): New fn.
14666 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14667 mode to cselib_lookup. Reset autoinced REGs here instead of...
14668 (cselib_process_insn): ... here.
14669 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14671 (add_uses): Likewise, also to cselib_subst_to_values.
14672 (add_stores): Likewise.
14673 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14674 cselib_subst_to_values.
14675 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14676 * gcse.c (do_local_cprop): Adjusted.
14677 * postreload.c (reload_cse_simplify_set): Adjusted.
14678 (reload_cse_simplify_operands): Adjusted.
14679 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14681 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14683 PR tree-optimization/45122
14684 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14685 unsafe assumptions when there's more than one loop exit.
14687 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14690 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14691 Document using vector double with the load/store builtins, and
14692 that the load/store builtins always use Altivec instructions.
14694 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14695 to use altivec memory instructions, even on VSX.
14696 (vector_altivec_store_<mode>): Ditto.
14698 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14701 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14702 V2DF, V2DI support to load/store overloaded builtins.
14704 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14705 altivec load/store builtins for V2DF/V2DI types.
14707 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14708 set avoid indexed addresses on power6 if -maltivec.
14709 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14710 vector_altivec_load/vector_altivec_store builtins.
14711 (altivec_expand_st_builtin): Ditto.
14712 (altivec_expand_builtin): Add VSX memory builtins.
14713 (rs6000_init_builtins): Add V2DI types to internal types.
14714 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14715 load/store builtins.
14716 (rs6000_address_for_altivec): Insure memory address is appropriate
14719 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14720 vec_vsx_ld and vec_vsx_st.
14721 (vsx_store_<mode>): Ditto.
14723 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14724 variables to hold long long types for VSX vector memory builtins.
14725 (RS6000_BTI_unsigned_long_long): Ditto.
14726 (long_long_integer_type_internal_node): Ditti.
14727 (long_long_unsigned_type_internal_node): Ditti.
14729 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14730 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14731 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14733 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14735 (vec_vsx_st): Ditto.
14737 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14739 * config/pa/pa-hpux10.opt: New.
14740 * config/hpux11.opt (pthread): New Driver option.
14741 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14742 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14744 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14746 * config/ia64/vms.opt: New.
14747 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14749 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14752 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14753 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14754 generator functions.
14755 (vsx_floatuns<VSi><mode>2): Ditto.
14756 (vsx_fix_trunc<mode><VSi>2): Ditto.
14757 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14759 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14761 * config/i386/djgpp.opt (posix): New Driver option.
14763 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14765 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14766 Move to the unsupported targets list.
14768 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14770 PR rtl-optimization/47525
14771 * df-scan.c: Update copyright years.
14772 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14773 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14775 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14777 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14778 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14779 (ASM_OUTPUT_ASCII): Remove.
14780 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14782 2011-02-02 Jeff Law <law@redhat.com>
14784 PR middle-end/47543
14785 * reload.c (find_reloads_address): Handle reg+d address where both
14786 components are invalid by reloading the entire address.
14788 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14789 Richard Guenther <rguenther@suse.de>
14791 PR tree-optimization/40979
14793 * passes.c (init_optimization_passes): After LIM call copy_prop
14794 and DCE to clean up.
14795 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14797 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14799 PR tree-optimization/47576
14800 PR tree-optimization/47555
14801 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14802 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14803 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14804 * tree-scalar-evolution.c (follow_ssa_edge): Use
14805 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14807 2011-02-02 Richard Guenther <rguenther@suse.de>
14809 PR tree-optimization/47566
14810 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14812 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14816 * tree-inline.c (declare_return_variable): Remove unused caller
14821 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14822 * cfgexpand.c (account_used_vars_for_block): Use them.
14823 * tree-nrv.c (tree_nrv): Likewise.
14824 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14825 (dump_scope_block): Likewise.
14826 (remove_unused_locals): Likewise.
14830 * tree-inline.c (declare_return_variable): Add result decl to
14831 local decls only once.
14832 * gimple-low.c (record_vars_into): Mark newly-created variables
14835 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14841 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14843 (no_real_insns_p, schedule_block, set_priorities): Drop special
14844 treatment of boundary debug insns.
14845 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14846 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14847 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14848 (BOUNDARY_DEBUG_INSN_P): Likewise.
14849 (SCHEDULE_DEBUG_INSN_P): Likewise.
14850 * sched-rgn.c (init_ready_list): Drop special treatment of
14851 boundary debug insns.
14852 * final.c (rest_of_clean_state): Clear notes' BB.
14854 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14856 * config/openbsd.opt (assert=): New Driver option.
14858 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14860 * config/i386/nto.opt: New.
14861 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14863 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14865 * config/i386/netware.opt: New.
14866 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14868 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14870 * config/interix.opt (posix): New Driver option.
14872 2011-02-01 DJ Delorie <dj@redhat.com>
14874 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14876 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14879 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14881 PR tree-optimization/47561
14882 * toplev.c (process_options): Print the Graphite flags. Add
14883 flag_loop_flatten to the list of options requiring Graphite.
14885 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14887 * config/i386/cygming.opt (posix): New Driver option.
14889 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14891 * config/arm/vxworks.opt: New.
14892 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14894 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14896 * config/alpha/elf.opt: New.
14897 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14898 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14900 2011-02-01 Richard Guenther <rguenther@suse.de>
14902 PR tree-optimization/47559
14903 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14904 store-motion on references that can throw.
14906 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14908 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14909 * tree-pass.h (TDF_CSELIB): New macro.
14910 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14911 cselib_lookup): Check for it rather than for TDF_DETAILS.
14913 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14916 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14917 is HOST_BIT_BUCKET.
14919 * opts.c (finish_options): Don't add x_aux_base_name if it is
14922 2011-02-01 Richard Guenther <rguenther@suse.de>
14924 PR tree-optimization/47555
14926 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14928 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14930 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14933 * config/lm32/t-lm32: Add multilib for all CPU options.
14935 2011-02-01 Richard Guenther <rguenther@suse.de>
14937 PR tree-optimization/47541
14938 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14939 sure to have a field at offset zero.
14941 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14943 * config/arc/arc.opt (EB, EL): New Driver options.
14945 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14947 * config/alpha/osf5.opt: New.
14948 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14950 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14952 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14954 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14956 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14957 -floop-interchange.
14958 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14959 is an alias of -floop-interchange and that it requires the
14960 Graphite infrastructure.
14961 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14962 flag_loop_interchange based on the value of flag_tree_loop_linear.
14964 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14965 Richard Guenther <rguenther@suse.de>
14967 PR tree-optimization/47538
14968 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14969 type instead of r1type, except for comparisons. For right
14970 shifts and comparisons punt if there are mismatches in
14971 sizetype vs. non-sizetype types.
14973 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14975 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14978 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14980 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14982 * configure: Regenerate.
14984 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14986 * configure.ac (gcc_cv_ld_static_option): Define.
14987 (gcc_cv_ld_dynamic_option): Define.
14988 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14990 (HAVE_LD_STATIC_DYNAMIC): Update message.
14991 (LD_STATIC_OPTION): Define.
14992 (LD_DYNAMIC_OPTION): Define.
14993 * configure: Regenerate.
14994 * config.in: Regenerate.
14995 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14996 HAVE_LD_STATIC_DYNAMIC]: Use them.
14998 2011-01-31 Nick Clifton <nickc@redhat.com>
15000 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15001 registers inside interrupt handlers if the handler is not a leaf
15004 2011-01-31 Nick Clifton <nickc@redhat.com>
15006 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15007 reg_renumber returning an INVALID_REGNUM.
15009 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15012 * doc/install.texi: Document host options discarded when cross
15013 configuring target libraries.
15015 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15018 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15021 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15023 (no_real_insns_p, schedule_block, set_priorities): Drop special
15024 treatment of boundary debug insns.
15025 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15026 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15027 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15028 (BOUNDARY_DEBUG_INSN_P): Likewise.
15029 (SCHEDULE_DEBUG_INSN_P): Likewise.
15030 * sched-rgn.c (init_ready_list): Drop special treatment of
15031 boundary debug insns.
15032 * final.c (rest_of_clean-state): Clear notes' BB.
15034 2011-01-31 Alan Modra <amodra@gmail.com>
15036 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15037 toc relative expressions as we do in print_operand_address.
15039 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15041 * doc/extend.texi: Follow spelling conventions.
15042 * doc/invoke.texi: Fix a typo.
15044 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15046 * config/hpux11.opt: New.
15047 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15048 ia64*-*-hpux*): Use hpux11.opt.
15050 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15052 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15055 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15057 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15060 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15062 * doc/install.texi (Binaries): Remove outdated reference for
15063 Motorola 68HC11/68HC12 downloads.
15065 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15067 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15070 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15073 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15076 2011-01-28 Ahmad Sharif <asharif@google.com>
15078 * value-prof.c (check_counter): Corrected error message.
15080 2011-01-29 Jie Zhang <jie@codesourcery.com>
15082 * config/arm/arm.c (arm_legitimize_reload_address): New.
15083 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15084 arm_legitimize_reload_address.
15085 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15087 2011-01-28 Ian Lance Taylor <iant@google.com>
15089 * godump.c (go_define): Ignore macros whose definitions include
15090 two adjacent operands.
15092 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15095 * varasm.c (force_const_mem): Store copy of x in desc->constant
15096 instead of x itself.
15097 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15098 itself into REG_EQUAL note.
15100 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15102 * config/freebsd.opt (posix, rdynamic): New Driver options.
15104 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15106 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15107 -Bstatic/-Bdynamic.
15108 * configure: Regenerate.
15110 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15112 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15113 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15115 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15117 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15118 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15119 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15120 (s390_preferred_reload_class): Make static. Change return and
15121 'rclass' argument type to reg_class_t.
15123 2011-01-27 Jan Hubicka <jh@suse.cz>
15125 PR middle-end/46949
15126 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15127 (process_function_and_variable_attributes): Check defined weakrefs.
15129 2011-01-27 Martin Jambor <mjambor@suse.cz>
15131 PR tree-optimization/47228
15132 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15133 build_ref_for_offset.
15135 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15137 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15139 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15141 PR rtl-optimization/46856
15142 * postreload.c (reload_combine_recognize_const_pattern): Do not
15143 separate cc0 setter and user on cc0 targets.
15145 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15148 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15149 passed a VOID_TYPE expression, immediately emit an error and
15150 return error_mark_node.
15152 2011-01-26 Jeff Law <law@redhat.com>
15154 PR rtl-optimization/47464
15155 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15156 rather than may_trap_p as needed.
15158 2011-01-26 DJ Delorie <dj@redhat.com>
15160 PR rtl-optimization/46878
15161 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15162 setter/user dependency as well.
15164 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15166 PR rtl-optimization/44469
15167 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15168 after removing trivially dead basic blocks.
15170 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15172 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15173 * config/frv/frv.h (LINK_SPEC): Likewise.
15174 * config/i386/netware.h (LINK_SPEC): Likewise.
15175 * config/m68k/linux.h (ASM_SPEC): Likewise.
15176 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15177 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15178 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15179 * config/sparc/linux.h (ASM_SPEC): Likewise.
15180 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15181 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15183 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15185 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15186 * config/frv/frv.h (ASM_SPEC): Likewise.
15187 * config/m68k/linux.h (ASM_SPEC): Likewise.
15188 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15189 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15190 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15191 * config/sparc/linux.h (ASM_SPEC): Likewise.
15192 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15193 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15195 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15197 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15198 * config/frv/frv.h (LINK_SPEC): Likewise.
15199 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15201 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15203 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15204 * config/frv/frv.h (ASM_SPEC): Likewise.
15205 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15206 * config/m68k/linux.h (ASM_SPEC): Likewise.
15207 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15208 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15209 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15210 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15211 * config/sparc/linux.h (ASM_SPEC): Likewise.
15212 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15213 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15214 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15216 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15219 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15221 (vec_extract_evenodd_help): Ditto.
15222 (vec_extract_evenv4hi): Ditto.
15223 (vec_extract_oddv4hi): Ditto.
15224 (vec_interleave_lowv2si): Ditto.
15225 (vec_interleave_highv2si): Ditto.
15226 (vec_extract_evenv2si): Ditto.
15227 (vec_extract_oddv2si: Ditto.
15228 (vec_pack_trunc_v2si): Ditto.
15230 2011-01-22 Jan Hubicka <jh@suse.cz>
15233 * cgraph.h (cgraph_local_info): New field can_change_signature.
15234 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15235 signature can change.
15236 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15238 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15239 (cgraph_function_versioning): We can not change signature of functions
15240 that don't allow that.
15241 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15242 (lto_input_node): Likewise.
15243 * ipa-inline.c (compute_inline_parameters): Compute
15244 local.can_change_signature.
15245 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15246 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15247 functions that can not change signature.
15248 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15249 init_cumulative_args): Do not use local calling conventions
15250 for functions that can not change signature.
15252 2011-01-22 Jan Hubicka <jh@suse.cz>
15254 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15256 2011-01-26 Richard Guenther <rguenther@suse.de>
15258 PR tree-optimization/47190
15259 * cgraphunit.c (process_common_attributes): New function.
15260 (process_function_and_variable_attributes): Use it.
15262 2011-01-26 Richard Guenther <rguenther@suse.de>
15265 * cgraphbuild.c (record_eh_tables): Record reference to personality
15268 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15271 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15272 non-debug insns from moving up.
15274 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15277 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15278 t-dlldir{,-x} fragment for build and add it to tmake_file.
15279 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15280 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15281 * config/i386/t-dlldir: New file.
15282 (SHLIB_DLLDIR): Define.
15283 * config/i386/t-dlldir-x: New file.
15284 (SHLIB_DLLDIR): Define.
15285 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15286 (SHLIB_INSTALL): Use it.
15288 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15291 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15292 lower bound of the allowed Thumb-2 coprocessor load/store
15293 index range to -256. Add explaining comment.
15295 2011-01-25 Ian Lance Taylor <iant@google.com>
15297 * godump.c (go_define): Improve lexing of macro expansion to only
15298 accept expressions which match Go spec.
15300 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15303 * tree.c (handle_dll_attribute): Handle it.
15304 * doc/extend.texi (@item dllexport): Mention it.
15305 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15307 2011-01-25 Ian Lance Taylor <iant@google.com>
15309 PR tree-optimization/26854
15310 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15311 (decl_jump_unsafe): Move higher in file, with no other change.
15312 (bind): Set has_jump_unsafe_decl if appropriate.
15313 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15314 (check_earlier_gotos): Likewise.
15315 (c_check_switch_jump_warnings): Likewise.
15317 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15319 * doc/invoke.texi (Warning Options): Add missing hyphen.
15320 (-fprofile-dir): Minor grammatical fixes.
15321 (-fbranch-probabilities): Likewise.
15323 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15327 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15329 (no_real_insns_p, schedule_block, set_priorities): Drop special
15330 treatment of boundary debug insns.
15331 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15332 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15333 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15334 (BOUNDARY_DEBUG_INSN_P): Likewise.
15335 (SCHEDULE_DEBUG_INSN_P): Likewise.
15336 * sched-rgn.c (init_ready_list): Drop special treatment of
15337 boundary debug insns.
15338 * final.c (rest_of_clean-state): Clear notes' BB.
15340 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15342 * Makefile.in (LAMBDA_H): Removed.
15343 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15344 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15345 lambda-trans.o, and tree-loop-linear.o.
15346 (lto-symtab.o): Remove dependence on LAMBDA_H.
15347 (tree-loop-linear.o): Remove rule.
15348 (lambda-mat.o): Same.
15349 (lambda-trans.o): Same.
15350 (lambda-code.o): Same.
15351 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15352 (tree-vect-slp.o): Same.
15353 * hwint.h (gcd): Moved here.
15354 (least_common_multiple): Same.
15355 * lambda-code.c: Removed.
15356 * lambda-mat.c: Removed.
15357 * lambda-trans.c: Removed.
15358 * lambda.h: Removed.
15359 * tree-loop-linear.c: Removed.
15360 * lto-symtab.c: Do not include lambda.h.
15361 * omega.c (gcd): Removed.
15362 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15363 * tree-data-ref.c (print_lambda_vector): Moved here.
15364 (lambda_vector_copy): Same.
15365 (lambda_matrix_copy): Same.
15366 (lambda_matrix_id): Same.
15367 (lambda_vector_first_nz): Same.
15368 (lambda_matrix_row_add): Same.
15369 (lambda_matrix_row_exchange): Same.
15370 (lambda_vector_mult_const): Same.
15371 (lambda_vector_negate): Same.
15372 (lambda_matrix_row_negate): Same.
15373 (lambda_vector_equal): Same.
15374 (lambda_matrix_right_hermite): Same.
15375 * tree-data-ref.h: Do not include lambda.h.
15376 (lambda_vector): Moved here.
15377 (lambda_matrix): Same.
15378 (dependence_level): Same.
15379 (lambda_transform_legal_p): Removed declaration.
15380 (lambda_collect_parameters): Same.
15381 (lambda_compute_access_matrices): Same.
15382 (lambda_vector_gcd): Same.
15383 (lambda_vector_new): Same.
15384 (lambda_vector_clear): Same.
15385 (lambda_vector_lexico_pos): Same.
15386 (lambda_vector_zerop): Same.
15387 (lambda_matrix_new): Same.
15388 * tree-flow.h (least_common_multiple): Removed declaration.
15389 * tree-parloops.c (lambda_trans_matrix): Moved here.
15390 (LTM_MATRIX): Same.
15391 (LTM_ROWSIZE): Same.
15392 (LTM_COLSIZE): Same.
15393 (LTM_DENOMINATOR): Same.
15394 (lambda_trans_matrix_new): Same.
15395 (lambda_matrix_vector_mult): Same.
15396 (lambda_transform_legal_p): Same.
15397 * tree-pass.h (pass_linear_transform): Removed declaration.
15398 * tree-ssa-loop.c (tree_linear_transform): Removed.
15399 (gate_tree_linear_transform): Removed.
15400 (pass_linear_transform): Removed.
15401 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15402 flag_loop_interchange.
15404 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15406 PR tree-optimization/47265
15407 PR tree-optimization/47443
15408 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15409 if name still has some uses.
15411 2011-01-25 Martin Jambor <mjambor@suse.cz>
15413 PR tree-optimization/47382
15414 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15415 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15417 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15419 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15420 sjlj_except_unwind_info.
15422 2011-01-25 Richard Guenther <rguenther@suse.de>
15424 PR tree-optimization/47426
15425 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15426 visible functions results escape.
15428 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15431 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15432 (arm_get_frame_offsets): Use it.
15434 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15435 Jakub Jelinek <jakub@redhat.com>
15437 PR tree-optimization/47271
15438 * tree-if-conv.c (bb_postdominates_preds): New.
15439 (if_convertible_bb_p): Call bb_postdominates_preds.
15440 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15441 (predicate_scalar_phi): Call bb_postdominates_preds.
15443 2011-01-25 Nick Clifton <nickc@redhat.com>
15445 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15446 * config/rx/rx.c (rx_function_value): Likewise.
15447 (rx_promote_function_mode): Likewise.
15448 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15449 in order to make it legitimate.
15450 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15451 make sure that the first operand is the same as the result register.
15452 (addsi3_unspec): Delete.
15453 (subdi3): Do not accept immediate operands.
15454 (subdi3_internal): Likewise.
15456 2011-01-25 Jeff Law <law@redhat.com>
15458 PR rtl-optimization/37273
15459 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15460 handle them like argument loads from stack slots. Do not double
15461 count memory for memory constants and argument loads from stack slots.
15463 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15465 PR tree-optimization/47427
15466 PR tree-optimization/47428
15467 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15468 coalesce if the new root var would be TREE_READONLY.
15470 2011-01-25 Richard Guenther <rguenther@suse.de>
15472 PR middle-end/47414
15473 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15474 correct type for TBAA.
15476 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15478 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15479 (close_phi_written_to_memory): Call for_each_index with
15480 dr_indices_valid_in_loop.
15482 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15484 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15485 when it is initialized.
15487 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15489 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15490 call to graphite_find_data_references_in_stmt.
15491 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15492 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15493 call to graphite_find_data_references_in_stmt.
15494 (analyze_drs_in_stmts): Same.
15495 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15496 in which the scalar analysis of indices is performed.
15497 (create_data_ref): Same. Update call to dr_analyze_indices.
15498 (find_data_references_in_stmt): Update call to create_data_ref.
15499 (graphite_find_data_references_in_stmt): Same.
15500 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15502 (create_data_ref): Same.
15503 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15504 call to create_data_ref.
15506 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15508 * graphite-sese-to-poly.c (build_poly_scop): Move
15509 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15511 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15513 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15514 VAR_DECL, PARM_DECL, and RESULT_DECL.
15516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15518 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15519 in a reduction PBB.
15520 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15521 that have already been marked as PBB_IS_REDUCTION.
15523 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15525 * graphite-scop-detection.c (same_close_phi_node): New.
15526 (remove_duplicate_close_phi): New.
15527 (make_close_phi_nodes_unique): New.
15528 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15530 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15532 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15533 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15534 of both data references to be the same.
15536 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15538 * graphite-dependences.c (build_lexicographical_constraint): Remove
15539 the gdim parameter.
15540 (build_lexicographical_constraint): Adjust call to
15541 ppl_powerset_is_empty.
15542 (dependence_polyhedron): Same.
15543 (graphite_legal_transform_dr): Same.
15544 (graphite_carried_dependence_level_k): Same.
15545 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15547 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15549 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15551 * graphite-sese-to-poly.c
15552 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15553 (close_phi_written_to_memory): New.
15554 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15557 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15559 * doc/install.texi: Update the expected version number of PPL to 0.11.
15560 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15561 #if PPL_VERSION_MINOR < 11.
15563 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15565 * graphite-dependences.c: Include graphite-cloog-util.h.
15566 (new_poly_ddr): Inlined into dependence_polyhedron.
15567 (free_poly_ddr): Moved close by new_poly_ddr.
15568 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15569 Early return NULL when ppl_powerset_is_empty returns true.
15570 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15571 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15572 (graphite_legal_transform_dr): Call new_poly_ddr.
15573 (graphite_carried_dependence_level_k): Same.
15574 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15575 (dot_transformed_deps_stmt_1): Removed.
15576 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15577 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15578 (dot_deps_1): Call dot_deps_2.
15579 * Makefile.in (graphite-dependences.o): Add missing dependence on
15580 graphite-cloog-util.h.
15582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15584 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15585 (build_lexicographical_constraint): Same.
15586 (dependence_polyhedron_1): Same.
15587 (graphite_legal_transform_dr): Same.
15588 (graphite_carried_dependence_level_k): Same.
15589 * graphite-ppl.c (ppl_powerset_is_empty): New.
15590 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15591 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15593 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15595 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15596 the "a followed by b" relation and document it.
15598 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15600 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15601 iteration when the bag of constraints is empty.
15603 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15605 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15607 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15609 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15610 nest and two loop depths as parameters.
15611 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15612 lst_perfect_nestify.
15614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15616 * graphite-dependences.c (print_pddr): Call
15617 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15621 * graphite-ppl.c (debug_gmp_value): New.
15622 * graphite-ppl.h (debug_gmp_value): Declared.
15624 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15626 * doc/install.texi: Document availability of cloog-0.16.
15628 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15630 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15631 invalid postdominance info.
15633 2011-01-24 Jan Hubicka <jh@suse.cz>
15636 * doc/extend.texi (weak pragma): Drop claim that it must
15637 appear before definition.
15638 * varasm.c (merge_weak, declare_weak): Only sanity check
15639 that DECL is not output at a time it is declared weak.
15641 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15643 * machmode.def: Fixed comments.
15645 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15647 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15649 2011-01-24 Paul Koning <ni1d@arrl.net>
15651 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15654 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15657 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15658 (block_info): Add scanned and prev.
15659 (move_or_delete_vzeroupper_2): Return if the basic block
15660 has been scanned and the upper 128bit state is unchanged
15661 from the last scan.
15662 (move_or_delete_vzeroupper_1): Return true if the exit
15664 (move_or_delete_vzeroupper): Visit basic blocks using the
15665 work-list based algorithm based on vt_find_locations in
15668 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15670 2011-01-24 Nick Clifton <nickc@redhat.com>
15672 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15673 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15674 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15675 then define __v850e1__.
15676 * doc/invoke.texi: Document -mv850es.
15678 2011-01-24 Richard Henderson <rth@redhat.com>
15680 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15681 compound unordered comparisons.
15682 * config/rx/rx.c (rx_split_fp_compare): Remove.
15683 * config/rx/rx-protos.h: Update.
15684 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15685 (cbranchsf4): Don't call rx_split_fp_compare.
15686 (*cbranchsf4): Use rx_split_cbranch.
15687 (*cmpsf): Don't accept "i" constraint.
15688 (*conditional_branch): Only valid after reload.
15689 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15691 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15694 * config/rs6000/altivec.md (vector constant splitters): Add
15695 support for creating vector single precision constants if -mvsx is
15696 used and we would create the constant using Altivec primitives.
15698 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15699 Richard Sandiford <rdsandiford@googlemail.com>
15701 PR rtl-optimization/47166
15702 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15703 mechanism for PRE_MODIFY and POST_MODIFY.
15704 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15707 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15709 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15711 2011-01-22 Jan Hubicka <jh@suse.cz>
15714 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15716 2011-01-22 Jan Hubicka <jh@suse.cz>
15718 PR tree-optimization/43884
15720 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15721 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15723 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15725 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15726 * config/s390/s390.c (s390_register_move_cost,
15727 s390_memory_move_cost): New.
15728 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15730 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15732 PR middle-end/47401
15733 * except.c (sjlj_assign_call_site_values): Move setting the
15734 crtl->uses_eh_lsda flag to ...
15735 (sjlj_mark_call_sites): ... here.
15736 (sjlj_emit_function_enter): Support NULL dispatch label.
15737 (sjlj_build_landing_pads): In a function with no landing pads
15738 that still has must-not-throw regions, generate code to register
15739 a personality function with empty LSDA.
15741 2011-01-21 Richard Henderson <rth@redhat.com>
15743 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15745 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15747 * compare-elim.c: New file.
15748 * Makefile.in (OBJS-common): Add it.
15749 (compare-elim.o): New.
15750 * common.opt (fcompare-elim): New.
15751 * opts.c (default_options_table): Add OPT_fcompare_elim.
15752 * tree-pass.h (pass_compare_elim_after_reload): New.
15753 * passes.c (init_optimization_passes): Add it.
15754 * recog.h: Protect against re-inclusion.
15755 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15756 * doc/invoke.texi (-fcompare-elim): Document it.
15757 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15758 * doc/tm.texi: Rebuild.
15760 2011-01-22 Nick Clifton <nickc@redhat.com>
15762 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15763 rx_split_fp_compare.
15765 2011-01-22 Nick Clifton <nickc@redhat.com>
15767 * config/rx/rx.md (UNSPEC_CONST): New.
15768 (deallocate_and_return): Wrap the amount popped off the stack in
15769 an UNSPEC_CONST in order to stop it being rejected by
15770 -mmax-constant-size.
15771 (pop_and_return): Add a "(return)" rtx.
15772 (call): Drop the immediate operand.
15773 (call_internal): Likewise.
15774 (call_value): Likewise.
15775 (call_value_internal): Likewise.
15776 (sibcall_internal): Likewise.
15777 (sibcall_value_internal): Likewise.
15778 (sibcall): Likewise. Generate an explicit call using
15780 (sibcall_value): Likewise.
15781 (mov<>): FAIL if a constant operand is not legitimate.
15782 (addsi3_unpsec): New pattern.
15784 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15785 (ok_for_max_constant): New function.
15786 (gen_safe_add): New function.
15787 (rx_expand_prologue): Use gen_safe_add.
15788 (rx_expand_epilogue): Likewise.
15789 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15792 2011-01-21 Jeff Law <law@redhat.com>
15794 PR tree-optimization/47053
15795 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15796 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15797 statements are deleted.
15798 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15799 is nonempty, then purge dead edges and cleanup the CFG.
15801 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15804 Temporarily revert:
15805 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15807 * tree-dfa.c (create_var_ann): Mark variable as used.
15809 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15811 PR middle-end/45566
15812 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15813 notes from other section in hot/cold partitioning even if
15814 last_action is -3. Increment call_site_base.
15816 PR rtl-optimization/47366
15817 * fwprop.c (forward_propagate_into): Return bool. If
15818 any changes are made, -fnon-call-exceptions is used and
15819 REG_EH_REGION note is present, call purge_dead_edges
15820 and return true if it purged anything.
15821 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15822 any EH edges were purged.
15824 2011-01-21 Jeff Law <law@redhat.com>
15826 PR rtl-optimization/41619
15827 * caller-save.c (setup_save_areas): Break out code to determine
15828 which hard regs are live across calls by examining the reload chains
15829 so that it is always used.
15830 Eliminate code which checked REG_N_CALLS_CROSSED.
15832 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15834 PR tree-optimization/47355
15835 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15836 NOP has non-debug uses beyond PHIs in new_bb.
15838 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15841 * cfgexpand.c (account_used_vars_for_block): Only account vars
15842 that are annotated as used.
15843 (estimated_stack_frame_size): Don't set TREE_USED.
15844 * tree-dfa.c (create_var_ann): Mark variable as used.
15846 2011-01-21 Richard Guenther <rguenther@suse.de>
15848 PR middle-end/47395
15849 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15851 2011-01-21 Richard Guenther <rguenther@suse.de>
15853 PR tree-optimization/47365
15854 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15855 (vn_reference_lookup_pieces): Adjust.
15856 (vn_reference_lookup): Likewise.
15857 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15858 (vn_reference_lookup_3): Only look through kills if in
15859 VN_WALKREWRITE mode.
15860 (vn_reference_lookup_pieces): Adjust.
15861 (vn_reference_lookup): Likewise.
15862 (visit_reference_op_load): Likewise.
15863 (visit_reference_op_store): Likewise.
15864 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15865 (compute_avail): Likewise.
15866 (eliminate): Likewise.
15868 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15870 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15871 DECL_IGNORED_P non-reg vars if they are used.
15873 PR tree-optimization/47391
15874 * varpool.c (const_value_known_p): Return false if
15877 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15880 * config/i386/i386.c (ix86_local_alignment): Handle
15881 case for va_list_type_node is nil.
15882 (ix86_canonical_va_list_type): Likewise.
15884 2011-01-21 Alan Modra <amodra@gmail.com>
15886 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15887 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15889 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15891 * config/arm/arm.md (define_attr type): Rename f_load
15892 and f_store to f_fpa_load and f_fpa_store. Update.
15893 (write_conflict): Deal with rename fallout.
15894 (*push_fp_multi): Likewise.
15895 * config/arm/fpa.md (f_load): Use f_fpa_load.
15896 (f_store): Use f_fpa_store.
15897 (*movsf_fpa): Likewise.
15898 (*movdf_fpa): Likewise.
15899 (*movxf_fpa): Likewise.
15900 (*thumb2_movsf_fpa): Likewise.
15901 (*thumb2_movdf_fpa): Likewise.
15902 (*thumb2_movxf_fpa): Likewise.
15903 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15904 f_loadd and f_stored.
15905 (*thumb2_movdi_vfp): Likewise.
15906 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15907 (*thumb2_movsi_vfp): Likewise.
15908 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15909 Use f_loads instead of f_load.
15910 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15912 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15914 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15915 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15916 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15917 (xtensa_mode_dependent_address_p): New function.
15918 (constantpool_address_p): Make static. Change return type to bool.
15919 Change argument type to const_rtx. Use CONST_INT_P predicate.
15921 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15924 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15926 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15929 * cfgexpand.c (expand_debug_expr): Instead of generating
15930 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15933 2011-01-20 Richard Guenther <rguenther@suse.de>
15935 PR middle-end/47370
15936 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15937 the pointer operand of MEM_REFs.
15939 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15941 PR tree-optimization/46130
15942 * ipa-split.c (consider_split): If return_bb contains non-virtual
15943 PHIs other than for retval or if split_function would not adjust it,
15946 2011-01-20 Richard Guenther <rguenther@suse.de>
15948 PR tree-optimization/47167
15949 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15950 Revert previous change, only avoid enumeral type changes.
15952 2011-01-19 Mike Stump <mikestump@comcast.net>
15954 * doc/tm.texi.in (BRANCH_COST): Englishify.
15955 * doc/tm.texi (BRANCH_COST): Likewise.
15957 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15960 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15961 (gen_scheduled_generic_parms_dies): New functions.
15962 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15963 generation for the end of CU compilation.
15964 (dwarf2out_finish): Generate template parameters DIEs here.
15966 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15969 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15970 debug bind stmt on merge edges.
15972 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15976 * function.c (instantiate_expr): Instantiate incoming rtl of
15977 implicit arguments, and recurse on VALUE_EXPRs.
15978 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15979 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15981 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15983 * c-parser.c (c_parser_for_statement): Initialize
15984 collection_expression.
15986 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15988 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15990 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15992 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15993 (LINK_SHLIB_SPEC): Don't use %(link_path).
15994 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15996 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15998 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15999 (NO_SHARED_LIB_SUPPORT): Remove.
16000 (LINK_SHLIB_SPEC): Remove one conditional definition.
16002 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16004 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16006 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16007 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16008 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16009 %{call_shared} and conditionals on these options not being passed.
16010 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16013 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16015 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16018 * ipa-split.c: Spelling fixes.
16020 2011-01-19 Richard Henderson <rth@redhat.com>
16022 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16023 (*mulsi3): Likewise.
16025 * longlong.h [__mn10300__] (count_leading_zeros): New.
16026 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16027 [__mn10300__] (add_ssaaaa, subddmmss): New.
16028 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16029 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16031 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16033 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16035 2011-01-19 Richard Henderson <rth@redhat.com>
16037 * config/mn10300/mn10300.md (addsi3_flags): New.
16038 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16039 (subsi3_flags, subc_internal, subdi3): New.
16040 (subdi3_internal, *subdi3_degenerate): New.
16041 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16043 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16044 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16045 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16046 * config/mn10300/mn10300-protos.h: Update.
16047 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16048 (return_ret): Likewise. Rename from return_internal_regs.
16049 (return_internal): Remove.
16051 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16052 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16053 (mn10300_legitimate_constant_p): Likewise.
16054 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16055 (mn10300_frame_size): New.
16056 (mn10300_expand_prologue): Use it.
16057 (mn10300_expand_epilogue): Likewise.
16058 (mn10300_initial_offset): Likewise.
16059 * config/mn10300/mn10300-protos.h: Update.
16060 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16061 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16062 (prologue, epilogue, return_internal): Tidy output code.
16063 (mn10300_store_multiple_operation, return): Likewise.
16064 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16065 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16066 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16067 (load_pic, am33_load_pic): New.
16068 (mn10300_load_pic0, mn10300_load_pic1): New.
16070 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16071 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16072 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16073 (cc_flags_for_mode, cc_flags_for_code): New.
16074 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16075 overflow flag is not valid. Validate that the flags we need
16076 for the comparison are valid.
16077 (mn10300_output_cmp): Remove.
16078 (mn10300_output_add): New.
16079 (mn10300_select_cc_mode): Use cc_flags_for_code.
16080 (mn10300_split_cbranch): New.
16081 (mn10300_match_ccmode): New.
16082 (mn10300_split_and_operand_count): New.
16083 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16085 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16086 (addsi3): ... here. Use mn10300_output_add.
16087 (*addsi3_flags): New.
16088 (*am33_subsi3, *mn10300_subsi3): Merge...
16089 (subsi3): ... here. Use attribute isa.
16090 (*subsi3_flags): New.
16091 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16093 (*am33_andsi3, *mn10300_andsi3): Merge...
16094 (andsi3): ... here.
16095 (*andsi3_flags): New.
16096 (andsi3 splitters): New.
16097 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16098 (iorsi3): ... here.
16099 (*iorsi3_flags): New.
16100 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16101 (xorsi3): ... here.
16102 (*xorsi3_flags): New.
16103 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16104 (one_cmplsi2): ... here.
16105 (*one_cmplsi2_flags): New.
16106 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16107 instead of "dax" in constraints. Use mn10300_split_cbranch.
16108 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16109 use matching constraints to eliminate a self-comparison.
16110 (*integer_conditional_branch): Rename from integer_conditional_branch.
16111 Use int_mode_flags to match CC_REG.
16112 (*cbranchsi4_btst, *btstsi): New.
16113 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16114 mn10300_split_cbranch.
16115 (*am33_cmpsf): Rename from am33_cmpsf.
16116 (*float_conditional_branch): Rename from float_conditional_branch.
16117 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16118 (zero_extendqisi2): ... here.
16119 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16120 (zero_extendhisi2): ... here.
16121 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16122 (extendqisi2): ... here.
16123 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16124 (extendhisi2): ... here.
16125 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16126 (ashlsi3): ... here.
16127 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16128 (lshrsi3): ... here.
16129 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16130 (ashrsi3): ... here.
16131 (consecutive add peephole): Remove.
16132 * config/mn10300/predicates.md (label_ref_operand): New.
16133 (int_mode_flags): New.
16134 (CCZN_comparison_operator): New.
16136 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16137 (throughput_42_latency_43): New reservation.
16138 (mulsidi3, umulsidi3): New expanders.
16139 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16140 the MDR register to allocation; separately allocate the low and
16141 high parts of the DImode result.
16142 (umulsidi3_internal): Similarly.
16143 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16144 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16145 (udivsi3, umodsi3): Remove.
16146 (udivmodsi4, divmodsi4): New expanders.
16147 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16148 (*divmodsi4): Simiarly.
16149 (ext_internal): New.
16151 * config/mn10300/constraints.md ("z"): New constraint.
16152 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16153 (FIXED_REGISTERS): Don't fix MDR.
16154 (CALL_USED_REGSITERS): Reformat nicely.
16155 (REG_ALLOC_ORDER): Add MDR.
16156 (enum regclass): Add MDR_REGS.
16157 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16158 (IRA_COVER_CLASSES): Add MDR_REGS.
16159 (REGNO_REG_CLASS): Handle MDR_REG.
16160 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16161 (mn10300_register_move_cost): Likewise.
16162 * config/mn10300/mn10300.md (MDR_REG): New.
16163 (*movsi_internal): Handle moves to/from MDR_REGS.
16165 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16167 (mn10300_secondary_reload): Tidy combination reload classes.
16168 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16169 addresses for AM33. Allow symbolic offsets for reg+imm.
16170 (mn10300_regno_in_class_p): New.
16171 (mn10300_legitimize_reload_address): New.
16172 * config/mn10300/mn10300.h (enum reg_class): Remove
16173 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16174 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16175 SP_OR_GENERAL_REGS.
16176 (REG_CLASS_NAMES): Update to match.
16177 (REG_CLASS_CONTENTS): Likewise.
16178 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16179 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16180 (REGNO_IN_RANGE_P): Remove.
16181 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16182 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16183 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16184 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16185 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16186 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16187 (REGNO_GENERAL_P): New.
16188 (HAVE_POST_MODIFY_DISP): New.
16189 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16190 (LEGITIMIZE_RELOAD_ADDRESS): New.
16191 * config/mn10300/mn10300-protos.h: Update.
16193 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16194 DATA_REGS for AM33 stack-pointer destination.
16195 (mn10300_preferred_output_reload_class): Likewise.
16196 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16197 into a form appropriate for ...
16198 (TARGET_SECONDARY_RELOAD): New.
16199 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16200 * config/mn10300/mn10300-protos.h: Update.
16201 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16202 reload_insi; use the "A" constraint for the scratch; handle AM33
16203 moves of sp to non-address registers.
16205 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16206 (*movqi_internal): ... here.
16207 (*am33_movhi, *mn10300_movhi): Merge into...
16208 (*movhi_internal): ... here.
16209 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16210 as the source/destination of moves from/to SP.
16211 (movsf): Only allow for AM33-2.
16212 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16213 any integer constant constraint. Only allow for AM33-2. Tidy
16214 all of the alternative outputs.
16215 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16216 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16218 (udivsi3, umodsi3): New patterns for MN103 only.
16220 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16222 * doc/tm.texi.in: Spell out that a lack of register class unions
16224 * doc/tm.texi: Regenerate.
16226 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16228 PR rtl-optimization/47337
16229 * dce.c (check_argument_store): New function.
16230 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16232 PR tree-optimization/47290
16233 * tree-eh.c (infinite_empty_loop_p): New function.
16234 (cleanup_empty_eh): Use it.
16236 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16239 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16240 (a64_expand_widen_sum): Ditto.
16241 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16242 (vec_extract_evenodd_help): Ditto.
16243 (vec_extract_evenv4hi): Ditto.
16244 (vec_extract_oddv4hi): Ditto.
16245 (vec_extract_evenv2si): Ditto.
16246 (vec_extract_oddv2si): Ditto.
16247 (vec_extract_evenv2sf): Ditto.
16248 (vec_extract_oddv2sf): Ditto.
16249 (vec_pack_trunc_v4hi: Ditto.
16250 (vec_pack_trunc_v2si): Ditto.
16251 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16252 (vec_interleave_highv8qi): Ditto.
16254 (vec_extract_oddv8qi): Ditto.
16255 (vec_interleave_lowv4hi): Ditto.
16256 (vec_interleave_highv4hi): Ditto.
16257 (vec_interleave_lowv2si): Ditto.
16258 (vec_interleave_highv2si): Ditto.
16260 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16262 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16263 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16264 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16265 (pa_c_mode_for_suffix): New.
16266 (TARGET_EXPAND_BUILTIN): Define.
16267 (TARGET_C_MODE_FOR_SUFFIX): Define.
16268 (pa_builtins): Define.
16269 (pa_init_builtins): Register __float128 type and init new support
16271 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16272 * config/pa/quadlib.c (_U_Qfcopysign): New.
16274 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16276 PR middle-end/46894
16277 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16278 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16281 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16283 PR tree-optimization/47179
16284 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16285 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16287 2011-01-18 Richard Guenther <rguenther@suse.de>
16289 PR rtl-optimization/47216
16290 * emit-rtl.c: Include tree-flow.h.
16291 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16292 of replicating it with different semantics.
16293 * Makefile.in (emit-rtl.o): Adjust.
16295 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16297 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16298 (cortex_a9_dp): Handle neon types correctly.
16300 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16302 PR rtl-optimization/47299
16303 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16304 subtarget. Use normal multiplication if both operands are constants.
16305 * expmed.c (expand_widening_mult): Don't try to optimize constant
16306 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16309 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16311 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16312 spacing after 'e.g.', typos, comma, hyphenation.
16314 2011-01-17 Richard Henderson <rth@redhat.com>
16316 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16317 (rx_restricted_mem_operand): New.
16318 (rx_shift_operand): Use register_operand.
16319 (rx_source_operand, rx_compare_operand): Likewise.
16320 * config/rx/rx.md (addsi3_flags): New expander.
16321 (adddi3): Rewrite as expander.
16322 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16323 (subsi3_flags): New expander.
16324 (subdi3): Rewrite as expander.
16325 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16327 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16328 (rx_init_builtins): Remove sat builtin.
16329 (rx_expand_builtin): Likewise.
16330 * config/rx/rx.md (ssaddsi3): New.
16331 (*sat): Rename from sat. Represent the CC_REG input.
16333 * config/rx/predicates.md (rshift_operator): New.
16334 * config/rx/rx.c (rx_expand_insv): Remove.
16335 * config/rx/rx-protos.h: Update.
16336 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16337 operand to the canonical position.
16338 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16339 (*bitclr, *bitclr_in_memory): Similarly.
16340 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16341 (insv): Retain the zero_extract in the expansion.
16343 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16344 (bswaphi2, bitinvert, revw): Likewise.
16346 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16347 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16348 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16349 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16350 (bitset, bitset_in_memory): Likewise.
16351 (bitinvert, bitinvert_in_memory): Likewise.
16352 (bitclr, bitclr_in_memory): Likewise.
16353 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16354 (rx_strend, rx_cmpstrn): Likewise.
16355 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16356 (bitop peep2 patterns): Remove.
16358 * config/rx/rx.c (rx_match_ccmode): New.
16359 * config/rx/rx-protos.h: Update.
16360 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16361 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16362 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16363 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16364 (fix_truncsfsi2, floatsisf2): Likewise.
16365 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16366 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16367 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16368 (*subsi3_flags, *xorsi3_flags): New.
16370 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16372 * config/rx/rx.c (rx_print_operand): Remove workaround for
16373 unsplit comparison operations.
16375 * config/rx/rx.md (movsicc): Split after reload.
16376 (*movsicc): Merge *movsieq and *movsine via match_operator.
16377 (*stcc): New pattern.
16379 * config/rx/rx.c (rx_float_compare_mode): Remove.
16380 * config/rx/rx.h (rx_float_compare_mode): Remove.
16381 * config/rx/rx.md (cstoresi4): Split after reload.
16382 (*sccc): New pattern.
16384 * config/rx/predicates.md (label_ref_operand): New.
16385 (rx_z_comparison_operator): New.
16386 (rx_zs_comparison_operator): New.
16387 (rx_fp_comparison_operator): New.
16388 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16389 Validate that the flags are set properly for the comparison.
16390 (rx_gen_cond_branch_template): Remove.
16391 (rx_cc_modes_compatible): Remove.
16392 (mode_from_flags): New.
16393 (flags_from_code): Rename from flags_needed_for_conditional.
16394 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16395 (rx_select_cc_mode): Likewise.
16396 (rx_split_fp_compare): New.
16397 (rx_split_cbranch): New.
16398 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16399 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16400 (*cbranchsf4): Similarly.
16401 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16402 match_operator and rx_split_cbranch.
16403 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16404 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16405 (*cmpsi): Rename from cmpsi.
16406 (*tstsi): Rename from tstsi.
16407 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16408 (*conditional_branch): Rename from conditional_branch.
16409 (*reveresed_conditional_branch): Remove.
16410 (b<code>): Remove expander.
16411 * config/rx/rx-protos.h: Update.
16413 * config/rx/rx.c (rx_compare_redundant): Remove.
16414 * config/rx/rx.md (cmpsi): Don't use it.
16415 * config/rx/rx-protos.h: Update.
16417 * config/rx/rx-modes.def (CC_F): New mode.
16418 * config/rx/rx.c (rx_select_cc_mode): New.
16419 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16420 * config/rx/rx-protos.h: Update.
16422 2011-01-17 Richard Henderson <rth@redhat.com>
16424 * except.c (dump_eh_tree): Fix stray ; after for statement.
16426 2011-01-17 Richard Guenther <rguenther@suse.de>
16428 PR tree-optimization/47313
16429 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16430 handling before copying the body. Properly deal with
16431 by-reference result in SSA form.
16433 2011-01-17 Ian Lance Taylor <iant@google.com>
16436 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16437 (struct_value_alias_set): Don't define.
16438 (sparc_option_override): Don't set sparc_sr_alias_set and
16439 struct_value_alias_set.
16440 (save_or_restore_regs): Use gen_frame_mem rather than calling
16442 (sparc_struct_value_rtx): Likewise.
16444 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16447 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16448 (_mm_maskstore_pd): Likewise.
16449 (_mm_maskload_ps): Likewise.
16450 (_mm_maskstore_ps): Likewise.
16451 (_mm256_maskload_pd): Change mask to __m256i.
16452 (_mm256_maskstore_pd): Likewise.
16453 (_mm256_maskload_ps): Likewise.
16454 (_mm256_maskstore_ps): Likewise.
16456 * config/i386/i386-builtin-types.def: Updated.
16457 (ix86_expand_special_args_builtin): Likewise.
16459 * config/i386/i386.c (bdesc_special_args): Update
16460 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16461 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16462 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16463 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16465 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16466 Use <avxpermvecmode> on mask register.
16467 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16469 2011-01-17 Olivier Hainque <hainque@adacore.com>
16470 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16471 Eric Botcazou <ebotcazou@adacore.com>
16474 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16475 if <= USHRT_MAX in 32-bit mode.
16477 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16479 * doc/install.texi (Configuration, Specific): Wrap long
16480 lines in examples. Allow line wrapping in long options
16481 and URLs where beneficial for PDF output.
16483 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16485 * config/mips/mips.c (mips_classify_symbol): Don't return
16486 SYMBOL_PC_RELATIVE for nonlocal labels.
16488 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16490 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16492 2011-01-15 Jan Hubicka <jh@suse.cz>
16494 PR tree-optimization/47276
16495 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16496 declarations as needed.
16498 2011-01-15 Martin Jambor <mjambor@suse.cz>
16500 * common.opt (fdevirtualize): New flag.
16501 * doc/invoke.texi (Option Summary): Document it.
16502 * opts.c (default_options_table): Add devirtualize flag.
16503 * ipa-prop.c (detect_type_change): Return immediately if
16504 devirtualize flag is not set.
16505 (detect_type_change_ssa): Likewise.
16506 (compute_known_type_jump_func): Likewise.
16507 (ipa_analyze_virtual_call_uses): Likewise.
16509 2011-01-14 Martin Jambor <mjambor@suse.cz>
16511 PR tree-optimization/45934
16512 PR tree-optimization/46302
16513 * ipa-prop.c (type_change_info): New type.
16514 (stmt_may_be_vtbl_ptr_store): New function.
16515 (check_stmt_for_type_change): Likewise.
16516 (detect_type_change): Likewise.
16517 (detect_type_change_ssa): Likewise.
16518 (compute_complex_assign_jump_func): Check for dynamic type change.
16519 (compute_complex_ancestor_jump_func): Likewise.
16520 (compute_known_type_jump_func): Likewise.
16521 (compute_scalar_jump_functions): Likewise.
16522 (ipa_analyze_virtual_call_uses): Likewise.
16523 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16527 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16528 * config/i386/i386.opt (msse5): New Alias.
16530 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16532 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16533 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16534 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16535 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16539 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16541 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16542 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16543 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16544 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16546 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16548 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16550 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16552 2011-01-14 Mike Stump <mikestump@comcast.net>
16554 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16555 * config/fr30/fr30.md: Likweise
16556 (movsi_push): Likewise.
16557 (movsi_pop): Likewise.
16558 (enter_func): Likewise.
16559 * config/moxie/moxie.md (movsi_push): Likewise.
16560 (movsi_pop): Likewise.
16562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16564 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16565 %{no_archive} %{exact_version}.
16566 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16567 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16568 %{no_archive} %{exact_version}.
16569 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16570 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16571 * config/mips/vxworks.h: Likewise.
16573 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16575 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16577 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16579 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16580 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16582 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16584 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16587 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16589 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16591 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16592 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16594 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16595 Don't handle -shlib.
16597 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16599 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16600 (CC1_SPEC): Don't handle -profile.
16602 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16604 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16605 * config/mips/mips.h (CC1_SPEC): Likewise.
16607 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16609 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16610 * config/mips/mips.h (CC1_SPEC): Likewise.
16612 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16614 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16615 * config/m32r/linux.h (LINK_SPEC): Likewise.
16616 * config/mips/linux.h (LINK_SPEC): Likewise.
16617 * config/mips/linux64.h (LINK_SPEC): Likewise.
16618 * config/sparc/linux.h (LINK_SPEC): Likewise.
16619 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16620 LINK_SPEC): Likewise.
16621 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16623 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16625 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16627 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16629 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16631 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16632 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16634 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16636 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16638 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16640 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16641 supports -Bstatic/-Bdynamic.
16642 * configure: Regenerate.
16644 2011-01-14 Jan Hubicka <jh@suse.cz>
16645 Jack Howarth <howarth@bromo.med.uc.edu>
16648 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16649 when checking debug_info_level. Test write_symbols instead of
16650 debug_hooks->var_location when setting flag_var_tracking_uninit.
16652 2011-01-14 Richard Guenther <rguenther@suse.de>
16654 PR tree-optimization/47179
16655 * target.def (ref_may_alias_errno): New target hook.
16656 * targhooks.h (default_ref_may_alias_errno): Declare.
16657 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16658 (default_ref_may_alias_errno): New function.
16659 * target.h (struct ao_ref_s): Declare.
16660 * tree-ssa-alias.c: Include target.h.
16661 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16662 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16663 (targhooks.o): Likewise.
16664 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16665 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16667 2011-01-14 Richard Guenther <rguenther@suse.de>
16669 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16671 2011-01-14 Richard Guenther <rguenther@suse.de>
16673 PR tree-optimization/47280
16674 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16675 return CFG changes.
16676 (tree_ssa_forward_propagate_single_use_vars): Deal with
16677 CFG changes from associate_plusminus.
16679 2011-01-14 Richard Guenther <rguenther@suse.de>
16681 PR middle-end/47281
16683 2011-01-11 Richard Guenther <rguenther@suse.de>
16685 PR tree-optimization/46076
16686 * tree-ssa.c (useless_type_conversion_p): Conversions from
16687 unprototyped to empty argument list function types are useless.
16689 2011-01-14 Richard Guenther <rguenther@suse.de>
16691 PR tree-optimization/47286
16692 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16694 2011-01-14 Martin Jambor <mjambor@suse.cz>
16696 PR middle-end/46823
16697 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16699 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16701 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16702 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16703 * config/xtensa/xtensa.c (xtensa_libcall_value,
16704 xtensa_function_value_regno_p): New functions.
16705 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16707 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16710 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16712 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16713 New function prototype.
16714 * config/i386/winnt.c (i386_pe_assemble_visibility):
16715 Warn only if attribute was specified by user.
16717 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16720 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16722 (floatunsdidf2_fcfidu): Ditto.
16724 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16726 * config/s390/s390.c (print_operand_address): Replace 'error' with
16727 'output_operand_lossage'.
16728 (print_operand): Likewise.
16730 2011-01-13 Jeff Law <law@redhat.com>
16732 PR rtl-optimization/39077
16733 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16734 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16735 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16736 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16737 * gcse.c (prune_insertions_deletions): New function.
16738 (compute_pre_data): Use it.
16740 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16743 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16745 (prune_unused_types_mark): Use it.
16747 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16749 PR rtl-optimization/45352
16750 * sel-sched.c: Update copyright years.
16751 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16752 in the advancing loop when we have issued issue_rate insns.
16754 2011-01-12 Richard Henderson <rth@redhat.com>
16756 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16757 (TARGET_MD_ASM_CLOBBERS): New.
16759 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16760 (TARGET_DELEGITIMIZE_ADDRESS): New.
16762 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16763 (clzsi2, *bsch): New patterns.
16765 * config/mn10300/mn10300.md (INT): New mode iterator.
16766 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16768 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16769 flag_split_wide_types.
16771 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16772 (mn10300_trampoline_init): Rewrite without a template, an immediate
16773 load and a direct branch.
16774 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16776 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16778 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16779 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16780 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16781 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16783 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16786 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16789 2011-01-12 Jan Hubicka <jh@suse.cz>
16792 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16793 (PLUGIN_COND_CLOSE): New macro.
16794 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16796 2011-01-12 Richard Guenther <rguenther@suse.de>
16799 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16800 register variables in a MEM_REF.
16802 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16804 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16805 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16806 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16807 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16808 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16809 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16810 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16811 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16812 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16813 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16814 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16815 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16816 * config/gnu-user.h: New. Copied from linux.h.
16817 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16818 GNU_USER_TARGET_STARTFILE_SPEC.
16819 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16820 GNU_USER_TARGET_ENDFILE_SPEC.
16821 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16822 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16823 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16824 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16825 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16826 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16827 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16828 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16829 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16830 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16831 * config/arm/linux-eabi.h (CC1_SPEC): Use
16832 GNU_USER_TARGET_CC1_SPEC.
16833 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16834 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16835 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16836 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16837 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16838 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16839 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16840 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16842 2011-01-12 Richard Guenther <rguenther@suse.de>
16845 * doc/invoke.texi (ffast-math): Document it is turned on
16848 2011-01-12 Jan Hubicka <jh@suse.cz>
16850 PR tree-optimization/47233
16851 * opts.c (common_handle_option): Disable ipa-reference with profile
16854 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16856 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16859 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16861 * c-parser.c (c_lex_one_token): Updated and reindented some
16862 comments. No changes in code.
16864 2011-01-11 Ian Lance Taylor <iant@google.com>
16866 * godump.c (go_output_var): Don't output the variable if there is
16867 already a type with the same name.
16869 2011-01-11 Ian Lance Taylor <iant@google.com>
16871 * godump.c (go_format_type): Don't generate float80.
16873 2011-01-11 Richard Henderson <rth@redhat.com>
16875 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16876 declaration. Rewrite for both speed and size.
16877 (mn10300_address_cost_1): Remove.
16878 (mn10300_register_move_cost): New.
16879 (mn10300_memory_move_cost): New.
16880 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16881 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16882 extensions, shifts, BSWAP, CLZ.
16883 (mn10300_wide_const_load_uses_clr): Remove.
16884 (TARGET_REGISTER_MOVE_COST): New.
16885 (TARGET_MEMORY_MOVE_COST): New.
16886 * config/mn10300/mn10300-protos.h: Update.
16887 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16889 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16890 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16891 * config/mn10300/mn10300-protos.h: Update.
16892 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16893 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16894 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16895 (*test_int_bitfield, *test_byte_bitfield): Remove.
16896 (*bit_test, *subreg_bit_test): Remove.
16897 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16899 * config/mn10300/constraints.md ("c"): Rename from "A".
16900 ("A", "D"): New constraint letters.
16901 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16902 (fmssf4, fnmasf4, fnmssf4): Likewise.
16904 * config/mn10300/mn10300.md (isa): New attribute.
16905 (enabled): New attribute.
16907 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16908 (abssf2, negsf2): Define only for hardware fp.
16909 (sqrtsf2): Reformat.
16910 (addsf3, subsf3, mulsf3): Merge expander and insn.
16912 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16913 (DEBUGGER_AUTO_OFFSET): Remove.
16914 (DEBUGGER_ARG_OFFSET): Remove.
16916 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16917 Emit register stores with the same offsets as the hardware.
16918 (mn10300_store_multiple_operation): Don't check that the register
16919 save offsets are monotonic.
16920 * config/mn10300/mn10300-protos.h: Update.
16922 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16924 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16925 in terms of the value on the stack, not the MDR register.
16927 2011-01-11 Jan Hubicka <jh@suse.cz>
16931 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16932 (symbol_alias_set_destroy, symbol_alias_set_contains,
16933 propagate_aliases_backward): Declare.
16934 * lto-streamer-out.c (struct sets): New sturcture.
16935 (trivally_defined_alias): New function.
16936 (output_alias_pair_p): Rewrite.
16937 (output_unreferenced_globals): Fix output of alias pairs.
16938 (produce_symtab): Likewise.
16939 * ipa.c (function_and_variable_visibility): Set weak alias destination
16941 * varasm.c (symbol_alias_set_t): Remove.
16942 (symbol_alias_set_destroy): Export.
16943 (propagate_aliases_forward, propagate_aliases_backward): New functions
16945 (compute_visible_aliases): ... this one; remove.
16946 (trivially_visible_alias): New
16947 (trivially_defined_alias): New.
16948 (remove_unreachable_alias_pairs): Rewrite.
16949 (finish_aliases_1): Reorganize code checking if alias is defined.
16950 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16953 2011-01-11 Richard Guenther <rguenther@suse.de>
16955 PR tree-optimization/46076
16956 * tree-ssa.c (useless_type_conversion_p): Conversions from
16957 unprototyped to empty argument list function types are useless.
16959 2011-01-11 Richard Guenther <rguenther@suse.de>
16961 PR middle-end/45235
16962 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16963 volatile MEMs as MEM_READONLY_P.
16965 2011-01-11 Richard Guenther <rguenther@suse.de>
16967 PR tree-optimization/47239
16968 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16970 2011-01-11 Jeff Law <law@redhat.com>
16972 PR tree-optimization/47086
16973 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16974 IVs from statements that might throw.
16976 2011-01-10 Jan Hubicka <jh@suse.cz>
16979 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16981 2011-01-10 Jan Hubicka <jh@suse.cz>
16984 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16985 when correcting profile.
16987 2011-01-10 Jan Hubicka <jh@suse.cz>
16990 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16991 DECL_FINI_PRIORITY.
16992 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16993 Restore DECL_FINI_PRIORITY.
16995 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16997 * doc/gimple.texi: Fix quoting of multi-word return values in
16998 @deftypefn statements. Ensure presence of return value. Wrap
16999 overlong @deftypefn lines.
17000 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17001 descriptions of removed functions.
17002 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17003 of multi-word return value in @deftypefn statement.
17005 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17007 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17008 (Conditional Expressions, Logical Operators)
17009 (Statement and operand traversals): Do not indent smallexample
17010 code. Fix duplicate function argument in example.
17012 2011-01-10 Jeff Law <law@redhat.com>
17014 PR tree-optimization/47141
17015 * ipa-split.c (split_function): Handle case where we are
17016 returning a value and the return block has a virtual operand phi.
17018 2011-01-10 Jan Hubicka <jh@suse.cz>
17020 PR tree-optimization/47234
17021 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17022 (pass_feedback_split_functions): Declare.
17023 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17025 * ipa-split.c (gate_split_functions): Update comments; disable
17026 split-functions for profile_arc_flag and branch_probabilities.
17027 (gate_feedback_split_functions): New function.
17028 (execute_feedback_split_functions): New function.
17029 (pass_feedback_split_functions): New global var.
17031 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17034 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17035 calling gimple_call_set_cannot_inline.
17037 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17039 * config/darwin-sections.def: Remove unused section.
17041 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17044 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17046 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17049 * c-parser.c (c_parser_declaration_or_fndef): Improved
17052 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17054 * config/i386/winnt.c (i386_pe_start_function): Make sure
17055 to switch back to function's section.
17057 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17061 * plugin.c: Move include of dlfcn.h from here...
17062 * system.h: ... to here.
17064 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17066 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17068 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17069 two extra empty pages in PDF output.
17071 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17074 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17075 for error recovery purposes behave as if it was not specified so
17076 that the default type is usd.
17078 2011-01-07 Jan Hubicka <jh@suse.cz>
17080 PR tree-optmization/46469
17081 * ipa.c (function_and_variable_visibility): Clear needed flags on
17082 nodes with external decls; handle weakrefs merging correctly.
17084 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17086 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17089 2011-01-07 Jan Hubicka <jh@suse.cz>
17091 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17092 and no longer claim that gold is required for linker plugin.
17093 * configure: Regenerate.
17094 * gcc.c (PLUGIN_COND): New macro.
17095 (LINK_COMMAND_SPEC): Use it.
17096 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17097 * config.in (HAVE_LTO_PLUGIN): New.
17098 * configure.ac (--with-lto-plugin): New parameter; autodetect
17101 2011-01-07 Jan Hubicka <jh@suse.cz>
17103 PR tree-optimization/46367
17104 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17105 when we can update original.
17106 (cgraph_mark_inline_edge): Sanity check.
17107 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17109 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17111 * config/spu/spu.h (ASM_COMMENT_START): Define.
17113 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17116 * gcc.c (%>S): New.
17117 (SWITCH_KEEP_FOR_GCC): Likewise.
17118 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17119 (do_spec_1): Handle "%>".
17121 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17123 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17126 * config/i386/i386.c (ix86_delegitimize_address): If
17127 simplify_gen_subreg fails, return orig_x.
17130 * value-prof.c (gimple_stringop_fixed_value): Handle
17131 lhs of the call properly.
17133 2011-01-07 Jan Hubicka <jh@suse.cz>
17136 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17138 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17140 * target.def (function_switched_text_sections): New hook.
17141 * doc/tm.texi: Regenerated.
17142 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17143 * final.c (default_function_switched_text_sections): New.
17144 (final_scan_insn): Call function_switched_text_sections when a
17145 mid-function section change occurs.
17146 * output.h (default_function_switched_text_sections): Declare.
17147 * config/darwin-protos.h (darwin_function_switched_text_sections):
17149 * config/darwin.c (darwin_function_switched_text_sections): New.
17150 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17152 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17154 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17155 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17156 the secondary code fragment when outputting for DWARF == 2.
17158 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17160 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17161 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17163 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17164 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17166 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17169 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17170 when it is not empty.
17172 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17175 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17176 (case ${target}): Add btver1.
17177 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17178 -march=native recognize btver1 processors.
17179 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17180 btver1 def_and_undef
17181 * config/i386/i386.c (struct processor_costs btver1_cost): New
17183 (m_BTVER1): New definition.
17184 (m_AMD_MULTIPLE): Includes m_BTVER1.
17185 (initial_ix86_tune_features): Add btver1 tune.
17186 (processor_target_table): Add btver1 entry.
17187 (static const char *const cpu_names): Add btver1 entry.
17188 (software_prefetching_beneficial_p): Add btver1.
17189 (ix86_option_override_internal): Add btver1 instruction sets.
17190 (ix86_issue_rate): Add btver1.
17191 (ix86_adjust_cost): Add btver1.
17192 * config/i386/i386.h (TARGET_BTVER1): New definition.
17193 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17194 (enum processor_type): Add PROCESSOR_BTVER1.
17195 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17197 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17200 * config/i386/i386.c (legitimize_tls_address)
17201 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17202 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17203 (tls_initial_exec_64_sun): New pattern.
17205 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17207 * doc/invoke.texi (Overall Options): Improve wording and markup
17208 of the description of -wrapper.
17210 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17212 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17213 rdynamic, threads): New Driver options.
17215 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17218 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17219 if coming from .tdata.
17220 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17222 2011-01-06 Jan Hubicka <jh@suse.cz>
17225 * collect2.c (main): Do not enable LTOmode when plugin is active.
17227 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17230 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17231 --version output if supported.
17232 * configure: Regenerate.
17234 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17236 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17239 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17242 * c-convert.c (convert): When converting a complex expression
17243 other than COMPLEX_EXPR to a different complex type, ensure
17244 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17245 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17246 when converting COMPLEX_TYPE.
17248 2011-01-06 Ira Rosen <irar@il.ibm.com>
17250 PR tree-optimization/47139
17251 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17252 only the last reduction value is used outside the loop. Update
17255 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17257 * config/rtems.opt: New.
17258 * config.gcc (*-*-rtems*): Use rtems.opt.
17260 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17262 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17263 processors do not support 3DNow instructions.
17265 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17267 * config/spu/spu.c (spu_option_override): Set parameter
17268 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17270 2011-01-05 Jan Hubicka <jh@suse.cz>
17272 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17273 at the command line.
17275 2011-01-05 Martin Jambor <mjambor@suse.cz>
17278 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17279 deltas on streamed outgoing edges.
17280 (output_node_opt_summary): Output info for outgoing edges only when
17281 the node is in new parameter set.
17282 (output_cgraph_opt_summary): New parameter set, passed to the two
17283 aforementioned functions. Update its forward declaration and its
17286 2011-01-05 Tom Tromey <tromey@redhat.com>
17288 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17289 operator to c_finish_omp_atomic.
17290 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17291 (build_unary_op): Update.
17292 (build_modify_expr): Update.
17293 (build_asm_expr): Update.
17295 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17297 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17298 newly inserted insns.
17299 (pad_bb): Likewise.
17300 (spu_emit_branch_hint): Likewise.
17301 (insert_hbrp_for_ilb_runout): Likewise.
17302 (spu_machine_dependent_reorg): Call df_finish_pass after
17303 schedule_insns returns.
17305 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17307 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17309 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17311 PR tree-optimization/47005
17312 * tree-sra.c (struct access): Add 'non_addressable' bit.
17313 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17314 (decide_one_param_reduction): Return 0 if the parameter is passed by
17315 reference and one of the accesses in the group is non_addressable.
17317 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17319 PR tree-optimization/47056
17320 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17321 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17322 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17324 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17326 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17327 initializer. Skip view conversions from aggregate types.
17329 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17332 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17334 2011-01-04 Philipp Thomas <pth@suse.de>
17336 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17339 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17341 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17342 on empty epilogue sequences.
17344 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17346 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17347 non-static): New Driver options.
17349 2011-01-04 Jie Zhang <jie@codesourcery.com>
17352 * gcc.c (default_compilers[]): Set combinable field to 0
17353 for all assembly languages.
17355 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17357 * config/mips/loongson3a.md: New file.
17358 * config/mips/mips.md: Include loongson3a.md.
17359 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17362 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17364 PR middle-end/47017
17365 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17366 instead of convert_memory_address_addr_space on the base expression.
17368 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17370 * config/spu/spu.c (spu_option_override): Update error text
17371 for bad -march= / -mtune= values.
17373 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17375 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17376 if branch-hint optimization will be performed.
17378 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17380 PR tree-optimization/47148
17381 * ipa-split.c (split_function): Convert arguments to
17382 DECL_ARG_TYPE if possible.
17384 PR tree-optimization/47155
17385 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17386 when computing uns.
17388 PR rtl-optimization/47157
17389 * combine.c (try_combine): If undobuf.other_insn becomes
17390 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17391 and set *new_direct_jump_p too.
17393 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17395 PR tree-optimization/47021
17396 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17398 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17400 * gcc.c (process_command): Update copyright notice dates.
17401 * gcov.c (print_version): Likewise.
17402 * gcov-dump.c (print_version): Likewise.
17403 * mips-tfile.c (main): Likewise.
17404 * mips-tdump.c (main): Likewise.
17406 2011-01-03 Martin Jambor <mjambor@suse.cz>
17408 PR tree-optimization/46801
17409 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17410 aggregate fields start at byte boundary instead of the bit-field flag.
17412 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17415 * gcc.c (main): Revert revision 168407.
17417 2011-01-03 Martin Jambor <mjambor@suse.cz>
17419 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17421 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17423 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17424 vector optab to expand vector/scalar shift, update gimple to vector.
17426 2011-01-03 Martin Jambor <mjambor@suse.cz>
17428 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17431 2011-01-03 Martin Jambor <mjambor@suse.cz>
17433 PR tree-optimization/46984
17434 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17436 (cgraph_create_indirect_edge): Fixed line length.
17437 (cgraph_indirect_call_info): Declare.
17438 (cgraph_make_edge_direct) Update declaration.
17439 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17440 (cgraph_create_indirect_edge): Use it.
17441 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17443 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17444 the new thunk_delta representation.
17445 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17447 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17448 (ipa_read_indirect_edge_info): Likewise.
17449 * lto-cgraph.c (output_edge_opt_summary): New function.
17450 (output_node_opt_summary): Call it on all outgoing edges.
17451 (input_edge_opt_summary): New function.
17452 (input_node_opt_summary): Call it on all outgoing edges.
17454 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17457 * gcc.c (main): Don't check have_o when settting combine_inputs.
17459 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17461 * regrename.c: Add general comment describing the pass.
17462 (struct du_head): Remove 'length' field.
17463 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17464 (regrename_optimize): Do not sort chains. Rework comments, add others.
17465 Force renaming to the preferred class (if any) in the first pass and do
17466 not consider registers that belong to it in the second pass.
17467 (create_new_chain): Do not set 'length' field.
17468 (scan_rtx_reg): Likewise.
17470 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17472 PR tree-optimization/47140
17473 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17474 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17475 to bit_value_binop.
17477 PR rtl-optimization/47028
17478 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17479 parm_birth_insn instead of at the beginning of first bb.
17481 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17483 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17484 Remove the word "see" before "@pxref".
17485 * doc/rtl.texi: Remove the word "see" before "@pxref".
17487 2011-01-01 Jan Hubicka <jh@suse.cz>
17489 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17492 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17495 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17498 Copyright (C) 2011 Free Software Foundation, Inc.
17500 Copying and distribution of this file, with or without modification,
17501 are permitted in any medium without royalty provided the copyright
17502 notice and this notice are preserved.